@openremote/or-map 1.32.0-snapshot.20261012122155 → 1.32.1

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.
@@ -1,5 +1,5 @@
1
1
  var ORMap;(()=>{var t={51(t,i,n){var r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=c||d||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,f=function(){return h.Date.now()};function g(t){var i=typeof t;return!!t&&("object"==i||"function"==i)}function _(t){if("number"==typeof t)return t;if("symbol"==typeof(i=t)||i&&"object"==typeof i&&"[object Symbol]"==u.call(i))return 0/0;if(g(t)){var i,n="function"==typeof t.valueOf?t.valueOf():t;t=g(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var c=o.test(t);return c||s.test(t)?l(t.slice(2),c?2:8):a.test(t)?0/0:+t}t.exports=function(t,i,n){var r,a,o,s,l,c,d=0,h=!1,u=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(i){var n=r,o=a;return r=a=void 0,d=i,s=t.apply(o,n)}function b(t){var n=t-c,r=t-d;return void 0===c||n>=i||n<0||u&&r>=o}function x(){var t,n,r,a=f();if(b(a))return w(a);l=setTimeout(x,(t=a-c,n=a-d,r=i-t,u?m(r,o-n):r))}function w(t){return(l=void 0,v&&r)?y(t):(r=a=void 0,s)}function C(){var t,n=f(),o=b(n);if(r=arguments,a=this,c=n,o){if(void 0===l)return d=t=c,l=setTimeout(x,i),h?y(t):s;if(u)return l=setTimeout(x,i),y(c)}return void 0===l&&(l=setTimeout(x,i)),s}return i=_(i)||0,g(n)&&(h=!!n.leading,o=(u="maxWait"in n)?p(_(n.maxWait)||0,i):o,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==l&&clearTimeout(l),d=0,r=c=a=l=void 0},C.flush=function(){return void 0===l?s:w(f())},C}},28(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-touch-target-wrapper {\n display: inline;\n}\n\n.mdc-elevation-overlay {\n position: absolute;\n border-radius: inherit;\n pointer-events: none;\n opacity: 0;\n /* @alternate */\n opacity: var(--mdc-elevation-overlay-opacity, 0);\n transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-elevation-overlay-color, #fff);\n}\n\n.mdc-button {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-button-font-size, 0.875rem);\n line-height: 2.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-button-line-height, 2.25rem);\n font-weight: 500;\n /* @alternate */\n font-weight: var(--mdc-typography-button-font-weight, 500);\n letter-spacing: 0.0892857143em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-button-letter-spacing, 0.0892857143em);\n text-decoration: none;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-button-text-decoration, none);\n text-decoration: var(--mdc-typography-button-text-decoration, none);\n text-transform: uppercase;\n /* @alternate */\n text-transform: var(--mdc-typography-button-text-transform, uppercase);\n padding: 0 8px 0 8px;\n /* @alternate */\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: 64px;\n border: none;\n outline: none;\n /* @alternate */\n line-height: inherit;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-appearance: none;\n overflow: visible;\n vertical-align: middle;\n border-radius: 4px;\n /* @alternate */\n border-radius: var(--mdc-shape-small, 4px);\n height: 36px;\n}\n.mdc-button .mdc-elevation-overlay {\n width: 100%;\n height: 100%;\n top: 0;\n /* @noflip */\n left: 0;\n}\n.mdc-button::-moz-focus-inner {\n padding: 0;\n border: 0;\n}\n.mdc-button:active {\n outline: none;\n}\n.mdc-button:hover {\n cursor: pointer;\n}\n.mdc-button:disabled {\n cursor: default;\n pointer-events: none;\n}\n.mdc-button .mdc-button__ripple {\n border-radius: 4px;\n /* @alternate */\n border-radius: var(--mdc-shape-small, 4px);\n}\n.mdc-button:not(:disabled) {\n background-color: transparent;\n}\n.mdc-button:disabled {\n background-color: transparent;\n}\n.mdc-button .mdc-button__icon {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 8px;\n display: inline-block;\n width: 18px;\n height: 18px;\n font-size: 18px;\n vertical-align: top;\n}\n[dir=rtl] .mdc-button .mdc-button__icon, .mdc-button .mdc-button__icon[dir=rtl] {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-button .mdc-button__touch {\n position: absolute;\n top: 50%;\n right: 0;\n height: 48px;\n left: 0;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n.mdc-button:not(:disabled) {\n color: #6200ee;\n /* @alternate */\n color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-button:disabled {\n color: rgba(0, 0, 0, 0.38);\n}\n\n.mdc-button__label + .mdc-button__icon {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 0;\n}\n[dir=rtl] .mdc-button__label + .mdc-button__icon, .mdc-button__label + .mdc-button__icon[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 8px;\n}\n\nsvg.mdc-button__icon {\n fill: currentColor;\n}\n\n.mdc-button--raised .mdc-button__icon,\n.mdc-button--unelevated .mdc-button__icon,\n.mdc-button--outlined .mdc-button__icon {\n /* @noflip */\n margin-left: -4px;\n /* @noflip */\n margin-right: 8px;\n}\n[dir=rtl] .mdc-button--raised .mdc-button__icon, .mdc-button--raised .mdc-button__icon[dir=rtl],\n[dir=rtl] .mdc-button--unelevated .mdc-button__icon,\n.mdc-button--unelevated .mdc-button__icon[dir=rtl],\n[dir=rtl] .mdc-button--outlined .mdc-button__icon,\n.mdc-button--outlined .mdc-button__icon[dir=rtl] {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: -4px;\n}\n.mdc-button--raised .mdc-button__label + .mdc-button__icon,\n.mdc-button--unelevated .mdc-button__label + .mdc-button__icon,\n.mdc-button--outlined .mdc-button__label + .mdc-button__icon {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: -4px;\n}\n[dir=rtl] .mdc-button--raised .mdc-button__label + .mdc-button__icon, .mdc-button--raised .mdc-button__label + .mdc-button__icon[dir=rtl],\n[dir=rtl] .mdc-button--unelevated .mdc-button__label + .mdc-button__icon,\n.mdc-button--unelevated .mdc-button__label + .mdc-button__icon[dir=rtl],\n[dir=rtl] .mdc-button--outlined .mdc-button__label + .mdc-button__icon,\n.mdc-button--outlined .mdc-button__label + .mdc-button__icon[dir=rtl] {\n /* @noflip */\n margin-left: -4px;\n /* @noflip */\n margin-right: 8px;\n}\n\n.mdc-button--raised,\n.mdc-button--unelevated {\n padding: 0 16px 0 16px;\n}\n.mdc-button--raised:not(:disabled),\n.mdc-button--unelevated:not(:disabled) {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-button--raised:not(:disabled),\n.mdc-button--unelevated:not(:disabled) {\n color: #fff;\n /* @alternate */\n color: var(--mdc-theme-on-primary, #fff);\n}\n.mdc-button--raised:disabled,\n.mdc-button--unelevated:disabled {\n background-color: rgba(0, 0, 0, 0.12);\n}\n.mdc-button--raised:disabled,\n.mdc-button--unelevated:disabled {\n color: rgba(0, 0, 0, 0.38);\n}\n\n.mdc-button--raised {\n /* @alternate */\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.mdc-button--raised:hover, .mdc-button--raised:focus {\n /* @alternate */\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}\n.mdc-button--raised:active {\n /* @alternate */\n box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n}\n.mdc-button--raised:disabled {\n /* @alternate */\n box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n}\n\n.mdc-button--outlined {\n padding: 0 15px 0 15px;\n border-width: 1px;\n border-style: solid;\n}\n.mdc-button--outlined .mdc-button__ripple {\n top: -1px;\n left: -1px;\n border: 1px solid transparent;\n}\n.mdc-button--outlined .mdc-button__touch {\n left: -1px;\n width: calc(100% + 2 * 1px);\n}\n.mdc-button--outlined:not(:disabled) {\n border-color: rgba(0, 0, 0, 0.12);\n}\n.mdc-button--outlined:disabled {\n border-color: rgba(0, 0, 0, 0.12);\n}\n\n.mdc-button--touch {\n margin-top: 6px;\n margin-bottom: 6px;\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-button {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-button .mdc-button__ripple::before,\n.mdc-button .mdc-button__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-button .mdc-button__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-button .mdc-button__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-button.mdc-ripple-upgraded .mdc-button__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-button.mdc-ripple-upgraded .mdc-button__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-button.mdc-ripple-upgraded--unbounded .mdc-button__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-button.mdc-ripple-upgraded--foreground-activation .mdc-button__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-button.mdc-ripple-upgraded--foreground-deactivation .mdc-button__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-button .mdc-button__ripple::before,\n.mdc-button .mdc-button__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n.mdc-button.mdc-ripple-upgraded .mdc-button__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-button .mdc-button__ripple::before, .mdc-button .mdc-button__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n.mdc-button:hover .mdc-button__ripple::before, .mdc-button.mdc-ripple-surface--hover .mdc-button__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before, .mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-button:not(.mdc-ripple-upgraded) .mdc-button__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-button:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-button.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-button .mdc-button__ripple {\n position: absolute;\n box-sizing: content-box;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.mdc-button:not(.mdc-button--outlined) .mdc-button__ripple {\n top: 0;\n left: 0;\n}\n\n.mdc-button--raised .mdc-button__ripple::before, .mdc-button--raised .mdc-button__ripple::after,\n.mdc-button--unelevated .mdc-button__ripple::before,\n.mdc-button--unelevated .mdc-button__ripple::after {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-on-primary, #fff));\n}\n.mdc-button--raised:hover .mdc-button__ripple::before, .mdc-button--raised.mdc-ripple-surface--hover .mdc-button__ripple::before,\n.mdc-button--unelevated:hover .mdc-button__ripple::before,\n.mdc-button--unelevated.mdc-ripple-surface--hover .mdc-button__ripple::before {\n opacity: 0.08;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.08);\n}\n.mdc-button--raised.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before, .mdc-button--raised:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before,\n.mdc-button--unelevated.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,\n.mdc-button--unelevated:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.24);\n}\n.mdc-button--raised:not(.mdc-ripple-upgraded) .mdc-button__ripple::after,\n.mdc-button--unelevated:not(.mdc-ripple-upgraded) .mdc-button__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-button--raised:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after,\n.mdc-button--unelevated:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n.mdc-button--raised.mdc-ripple-upgraded,\n.mdc-button--unelevated.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n\n/*# sourceMappingURL=mdc.button.css.map*/'},188(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-checkbox {\n padding: calc((40px - 18px) / 2);\n /* @alternate */\n padding: calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);\n margin: calc((40px - 40px) / 2);\n /* @alternate */\n margin: calc((var(--mdc-checkbox-ripple-size, 40px) - var(--mdc-checkbox-ripple-size, 40px)) / 2);\n}\n.mdc-checkbox .mdc-checkbox__ripple::before, .mdc-checkbox .mdc-checkbox__ripple::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #000);\n}\n.mdc-checkbox:hover .mdc-checkbox__ripple::before, .mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before, .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-checkbox.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before, .mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after {\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786));\n}\n.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before, .mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before, .mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,\n.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after {\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786));\n}\n.mdc-checkbox .mdc-checkbox__background {\n top: calc((40px - 18px) / 2);\n /* @alternate */\n top: calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);\n left: calc((40px - 18px) / 2);\n /* @alternate */\n left: calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);\n}\n.mdc-checkbox .mdc-checkbox__native-control {\n top: calc((40px - 40px) / 2);\n /* @alternate */\n top: calc((var(--mdc-checkbox-ripple-size, 40px) - var(--mdc-checkbox-ripple-size, 40px)) / 2);\n right: calc((40px - 40px) / 2);\n /* @alternate */\n right: calc((var(--mdc-checkbox-ripple-size, 40px) - var(--mdc-checkbox-ripple-size, 40px)) / 2);\n left: calc((40px - 40px) / 2);\n /* @alternate */\n left: calc((var(--mdc-checkbox-ripple-size, 40px) - var(--mdc-checkbox-ripple-size, 40px)) / 2);\n width: 40px;\n /* @alternate */\n width: var(--mdc-checkbox-ripple-size, 40px);\n height: 40px;\n /* @alternate */\n height: var(--mdc-checkbox-ripple-size, 40px);\n}\n.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true]) ~ .mdc-checkbox__background {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n}\n.mdc-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,\n.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background,\n.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled ~ .mdc-checkbox__background {\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n}\n@-webkit-keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786 {\n 0% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n 50% {\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n }\n}\n@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786 {\n 0% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n 50% {\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n }\n}\n@-webkit-keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786 {\n 0%, 80% {\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n }\n 100% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n}\n@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786 {\n 0%, 80% {\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));\n }\n 100% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n}\n.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background, .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background {\n -webkit-animation-name: mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786;\n animation-name: mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786;\n}\n.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background, .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background {\n -webkit-animation-name: mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786;\n animation-name: mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786;\n}\n.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true]) ~ .mdc-checkbox__background {\n border-color: rgba(0, 0, 0, 0.38);\n /* @alternate */\n border-color: var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));\n background-color: transparent;\n}\n.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked ~ .mdc-checkbox__background,\n.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate ~ .mdc-checkbox__background,\n.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled] ~ .mdc-checkbox__background {\n border-color: transparent;\n background-color: rgba(0, 0, 0, 0.38);\n /* @alternate */\n background-color: var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));\n}\n.mdc-checkbox .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background .mdc-checkbox__checkmark {\n color: #fff;\n /* @alternate */\n color: var(--mdc-checkbox-ink-color, #fff);\n}\n.mdc-checkbox .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background .mdc-checkbox__mixedmark {\n border-color: #fff;\n /* @alternate */\n border-color: var(--mdc-checkbox-ink-color, #fff);\n}\n.mdc-checkbox .mdc-checkbox__native-control:disabled ~ .mdc-checkbox__background .mdc-checkbox__checkmark {\n color: #fff;\n /* @alternate */\n color: var(--mdc-checkbox-ink-color, #fff);\n}\n.mdc-checkbox .mdc-checkbox__native-control:disabled ~ .mdc-checkbox__background .mdc-checkbox__mixedmark {\n border-color: #fff;\n /* @alternate */\n border-color: var(--mdc-checkbox-ink-color, #fff);\n}\n\n.mdc-touch-target-wrapper {\n display: inline;\n}\n\n@-webkit-keyframes mdc-checkbox-unchecked-checked-checkmark-path {\n 0%, 50% {\n stroke-dashoffset: 29.7833385;\n }\n 50% {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n stroke-dashoffset: 0;\n }\n}\n\n@keyframes mdc-checkbox-unchecked-checked-checkmark-path {\n 0%, 50% {\n stroke-dashoffset: 29.7833385;\n }\n 50% {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n stroke-dashoffset: 0;\n }\n}\n@-webkit-keyframes mdc-checkbox-unchecked-indeterminate-mixedmark {\n 0%, 68.2% {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n }\n 68.2% {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0, 1);\n animation-timing-function: cubic-bezier(0, 0, 0, 1);\n }\n 100% {\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n }\n}\n@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark {\n 0%, 68.2% {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n }\n 68.2% {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0, 1);\n animation-timing-function: cubic-bezier(0, 0, 0, 1);\n }\n 100% {\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n }\n}\n@-webkit-keyframes mdc-checkbox-checked-unchecked-checkmark-path {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n opacity: 1;\n stroke-dashoffset: 0;\n }\n to {\n opacity: 0;\n stroke-dashoffset: -29.7833385;\n }\n}\n@keyframes mdc-checkbox-checked-unchecked-checkmark-path {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1);\n opacity: 1;\n stroke-dashoffset: 0;\n }\n to {\n opacity: 0;\n stroke-dashoffset: -29.7833385;\n }\n}\n@-webkit-keyframes mdc-checkbox-checked-indeterminate-checkmark {\n from {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n opacity: 1;\n }\n to {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n opacity: 0;\n }\n}\n@keyframes mdc-checkbox-checked-indeterminate-checkmark {\n from {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n opacity: 1;\n }\n to {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n opacity: 0;\n }\n}\n@-webkit-keyframes mdc-checkbox-indeterminate-checked-checkmark {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n opacity: 0;\n }\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n opacity: 1;\n }\n}\n@keyframes mdc-checkbox-indeterminate-checked-checkmark {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n opacity: 0;\n }\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n opacity: 1;\n }\n}\n@-webkit-keyframes mdc-checkbox-checked-indeterminate-mixedmark {\n from {\n -webkit-animation-timing-function: mdc-animation-deceleration-curve-timing-function;\n animation-timing-function: mdc-animation-deceleration-curve-timing-function;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n opacity: 0;\n }\n to {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n opacity: 1;\n }\n}\n@keyframes mdc-checkbox-checked-indeterminate-mixedmark {\n from {\n -webkit-animation-timing-function: mdc-animation-deceleration-curve-timing-function;\n animation-timing-function: mdc-animation-deceleration-curve-timing-function;\n -webkit-transform: rotate(-45deg);\n transform: rotate(-45deg);\n opacity: 0;\n }\n to {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n opacity: 1;\n }\n}\n@-webkit-keyframes mdc-checkbox-indeterminate-checked-mixedmark {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n opacity: 1;\n }\n to {\n -webkit-transform: rotate(315deg);\n transform: rotate(315deg);\n opacity: 0;\n }\n}\n@keyframes mdc-checkbox-indeterminate-checked-mixedmark {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n animation-timing-function: cubic-bezier(0.14, 0, 0, 1);\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n opacity: 1;\n }\n to {\n -webkit-transform: rotate(315deg);\n transform: rotate(315deg);\n opacity: 0;\n }\n}\n@-webkit-keyframes mdc-checkbox-indeterminate-unchecked-mixedmark {\n 0% {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n opacity: 1;\n }\n 32.8%, 100% {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n opacity: 0;\n }\n}\n@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark {\n 0% {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n opacity: 1;\n }\n 32.8%, 100% {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n opacity: 0;\n }\n}\n.mdc-checkbox {\n display: inline-block;\n position: relative;\n flex: 0 0 18px;\n box-sizing: content-box;\n width: 18px;\n height: 18px;\n line-height: 0;\n white-space: nowrap;\n cursor: pointer;\n vertical-align: bottom;\n}\n\n@media screen and (-ms-high-contrast: active) {\n .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true]) ~ .mdc-checkbox__background {\n border-color: GrayText;\n /* @alternate */\n border-color: var(--mdc-checkbox-disabled-color, GrayText);\n background-color: transparent;\n }\n\n .mdc-checkbox__native-control[disabled]:checked ~ .mdc-checkbox__background,\n.mdc-checkbox__native-control[disabled]:indeterminate ~ .mdc-checkbox__background,\n.mdc-checkbox__native-control[data-indeterminate=true][disabled] ~ .mdc-checkbox__background {\n border-color: GrayText;\n background-color: transparent;\n /* @alternate */\n background-color: var(--mdc-checkbox-disabled-color, transparent);\n }\n\n .mdc-checkbox__native-control:disabled ~ .mdc-checkbox__background .mdc-checkbox__checkmark {\n color: GrayText;\n /* @alternate */\n color: var(--mdc-checkbox-ink-color, GrayText);\n }\n .mdc-checkbox__native-control:disabled ~ .mdc-checkbox__background .mdc-checkbox__mixedmark {\n border-color: GrayText;\n /* @alternate */\n border-color: var(--mdc-checkbox-ink-color, GrayText);\n }\n\n .mdc-checkbox__mixedmark {\n margin: 0 1px;\n }\n}\n.mdc-checkbox--disabled {\n cursor: default;\n pointer-events: none;\n}\n\n.mdc-checkbox__background {\n display: inline-flex;\n position: absolute;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 18px;\n height: 18px;\n border: 2px solid currentColor;\n border-radius: 2px;\n background-color: transparent;\n pointer-events: none;\n will-change: background-color, border-color;\n transition: background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n}\n\n.mdc-checkbox__checkmark {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n opacity: 0;\n transition: opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n}\n.mdc-checkbox--upgraded .mdc-checkbox__checkmark {\n opacity: 1;\n}\n\n.mdc-checkbox__checkmark-path {\n transition: stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n stroke: currentColor;\n stroke-width: 3.12px;\n stroke-dashoffset: 29.7833385;\n stroke-dasharray: 29.7833385;\n}\n\n.mdc-checkbox__mixedmark {\n width: 100%;\n height: 0;\n -webkit-transform: scaleX(0) rotate(0deg);\n transform: scaleX(0) rotate(0deg);\n border-width: 1px;\n border-style: solid;\n opacity: 0;\n transition: opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n}\n\n.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background, .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background, .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background, .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background {\n -webkit-animation-duration: 180ms;\n animation-duration: 180ms;\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n}\n.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path {\n -webkit-animation: mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;\n animation: mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;\n transition: none;\n}\n.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark {\n -webkit-animation: mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;\n animation: mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;\n transition: none;\n}\n.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path {\n -webkit-animation: mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;\n animation: mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;\n transition: none;\n}\n.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark {\n -webkit-animation: mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;\n animation: mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;\n transition: none;\n}\n.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark {\n -webkit-animation: mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;\n animation: mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;\n transition: none;\n}\n.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark {\n -webkit-animation: mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;\n animation: mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;\n transition: none;\n}\n.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark {\n -webkit-animation: mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;\n animation: mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;\n transition: none;\n}\n.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark {\n -webkit-animation: mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;\n animation: mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;\n transition: none;\n}\n\n.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,\n.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background,\n.mdc-checkbox__native-control[data-indeterminate=true] ~ .mdc-checkbox__background {\n transition: border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1), background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1);\n}\n.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background .mdc-checkbox__checkmark-path,\n.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background .mdc-checkbox__checkmark-path,\n.mdc-checkbox__native-control[data-indeterminate=true] ~ .mdc-checkbox__background .mdc-checkbox__checkmark-path {\n stroke-dashoffset: 0;\n}\n\n.mdc-checkbox__native-control {\n position: absolute;\n margin: 0;\n padding: 0;\n opacity: 0;\n cursor: inherit;\n}\n.mdc-checkbox__native-control:disabled {\n cursor: default;\n pointer-events: none;\n}\n\n.mdc-checkbox--touch {\n margin: calc((48px - 40px) / 2);\n /* @alternate */\n margin: calc((var(--mdc-checkbox-touch-target-size, 48px) - var(--mdc-checkbox-ripple-size, 40px)) / 2);\n}\n.mdc-checkbox--touch .mdc-checkbox__native-control {\n top: calc((40px - 48px) / 2);\n /* @alternate */\n top: calc((var(--mdc-checkbox-ripple-size, 40px) - var(--mdc-checkbox-touch-target-size, 48px)) / 2);\n right: calc((40px - 48px) / 2);\n /* @alternate */\n right: calc((var(--mdc-checkbox-ripple-size, 40px) - var(--mdc-checkbox-touch-target-size, 48px)) / 2);\n left: calc((40px - 48px) / 2);\n /* @alternate */\n left: calc((var(--mdc-checkbox-ripple-size, 40px) - var(--mdc-checkbox-touch-target-size, 48px)) / 2);\n width: 48px;\n /* @alternate */\n width: var(--mdc-checkbox-touch-target-size, 48px);\n height: 48px;\n /* @alternate */\n height: var(--mdc-checkbox-touch-target-size, 48px);\n}\n\n.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background .mdc-checkbox__checkmark {\n transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);\n opacity: 1;\n}\n.mdc-checkbox__native-control:checked ~ .mdc-checkbox__background .mdc-checkbox__mixedmark {\n -webkit-transform: scaleX(1) rotate(-45deg);\n transform: scaleX(1) rotate(-45deg);\n}\n\n.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background .mdc-checkbox__checkmark,\n.mdc-checkbox__native-control[data-indeterminate=true] ~ .mdc-checkbox__background .mdc-checkbox__checkmark {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n opacity: 0;\n transition: opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n}\n.mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background .mdc-checkbox__mixedmark,\n.mdc-checkbox__native-control[data-indeterminate=true] ~ .mdc-checkbox__background .mdc-checkbox__mixedmark {\n -webkit-transform: scaleX(1) rotate(0deg);\n transform: scaleX(1) rotate(0deg);\n opacity: 1;\n}\n\n.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,\n.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,\n.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,\n.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark {\n transition: none;\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-checkbox {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-checkbox .mdc-checkbox__ripple::before,\n.mdc-checkbox .mdc-checkbox__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-checkbox .mdc-checkbox__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-checkbox .mdc-checkbox__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-checkbox.mdc-ripple-upgraded--unbounded .mdc-checkbox__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-checkbox.mdc-ripple-upgraded--foreground-activation .mdc-checkbox__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-checkbox.mdc-ripple-upgraded--foreground-deactivation .mdc-checkbox__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-checkbox .mdc-checkbox__ripple::before,\n.mdc-checkbox .mdc-checkbox__ripple::after {\n top: calc(50% - 50%);\n /* @noflip */\n left: calc(50% - 50%);\n width: 100%;\n height: 100%;\n}\n.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::before,\n.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after {\n top: var(--mdc-ripple-top, calc(50% - 50%));\n /* @noflip */\n left: var(--mdc-ripple-left, calc(50% - 50%));\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-checkbox.mdc-ripple-upgraded .mdc-checkbox__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-checkbox {\n z-index: 0;\n}\n.mdc-checkbox .mdc-checkbox__ripple::before,\n.mdc-checkbox .mdc-checkbox__ripple::after {\n z-index: -1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, -1);\n}\n\n.mdc-checkbox__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n/*# sourceMappingURL=mdc.checkbox.css.map*/'},384(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-elevation-overlay {\n position: absolute;\n border-radius: inherit;\n pointer-events: none;\n opacity: 0;\n /* @alternate */\n opacity: var(--mdc-elevation-overlay-opacity, 0);\n transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-elevation-overlay-color, #fff);\n}\n\n.mdc-dialog,\n.mdc-dialog__scrim {\n position: fixed;\n top: 0;\n left: 0;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n}\n\n.mdc-dialog {\n display: none;\n z-index: 7;\n}\n.mdc-dialog .mdc-dialog__surface {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n}\n.mdc-dialog .mdc-dialog__scrim {\n background-color: rgba(0, 0, 0, 0.32);\n}\n.mdc-dialog .mdc-dialog__title {\n color: rgba(0, 0, 0, 0.87);\n}\n.mdc-dialog .mdc-dialog__content {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title, .mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions {\n border-color: rgba(0, 0, 0, 0.12);\n}\n.mdc-dialog .mdc-dialog__content {\n padding: 20px 24px 20px 24px;\n}\n.mdc-dialog .mdc-dialog__surface {\n min-width: 280px;\n}\n@media (max-width: 592px) {\n .mdc-dialog .mdc-dialog__surface {\n max-width: calc(100vw - 32px);\n }\n}\n@media (min-width: 592px) {\n .mdc-dialog .mdc-dialog__surface {\n max-width: 560px;\n }\n}\n.mdc-dialog .mdc-dialog__surface {\n max-height: calc(100% - 32px);\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n .mdc-dialog .mdc-dialog__container {\n /* stylelint-disable */\n /* stylelint-enable*/\n }\n}\n.mdc-dialog .mdc-dialog__surface {\n border-radius: 4px;\n /* @alternate */\n border-radius: var(--mdc-shape-medium, 4px);\n}\n\n.mdc-dialog__scrim {\n opacity: 0;\n z-index: -1;\n}\n\n.mdc-dialog__container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-around;\n box-sizing: border-box;\n height: 100%;\n -webkit-transform: scale(0.8);\n transform: scale(0.8);\n opacity: 0;\n pointer-events: none;\n}\n\n.mdc-dialog__surface {\n /* @alternate */\n position: relative;\n /* @alternate */\n box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);\n display: flex;\n flex-direction: column;\n flex-grow: 0;\n flex-shrink: 0;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n pointer-events: auto;\n overflow-y: auto;\n}\n.mdc-dialog__surface .mdc-elevation-overlay {\n width: 100%;\n height: 100%;\n top: 0;\n /* @noflip */\n left: 0;\n}\n.mdc-dialog[dir=rtl] .mdc-dialog__surface, [dir=rtl] .mdc-dialog .mdc-dialog__surface {\n /* @noflip */\n text-align: right;\n}\n\n.mdc-dialog__title {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1.25rem;\n /* @alternate */\n font-size: var(--mdc-typography-headline6-font-size, 1.25rem);\n line-height: 2rem;\n /* @alternate */\n line-height: var(--mdc-typography-headline6-line-height, 2rem);\n font-weight: 500;\n /* @alternate */\n font-weight: var(--mdc-typography-headline6-font-weight, 500);\n letter-spacing: 0.0125em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-headline6-letter-spacing, 0.0125em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-headline6-text-decoration, inherit);\n text-decoration: var(--mdc-typography-headline6-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-headline6-text-transform, inherit);\n position: relative;\n flex-shrink: 0;\n box-sizing: border-box;\n margin: 0;\n padding: 0 24px 9px;\n border-bottom: 1px solid transparent;\n}\n.mdc-dialog__title::before {\n display: inline-block;\n width: 0;\n height: 40px;\n content: "";\n vertical-align: 0;\n}\n.mdc-dialog[dir=rtl] .mdc-dialog__title, [dir=rtl] .mdc-dialog .mdc-dialog__title {\n /* @noflip */\n text-align: right;\n}\n\n.mdc-dialog--scrollable .mdc-dialog__title {\n padding-bottom: 15px;\n}\n\n.mdc-dialog__content {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-body1-font-size, 1rem);\n line-height: 1.5rem;\n /* @alternate */\n line-height: var(--mdc-typography-body1-line-height, 1.5rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body1-font-weight, 400);\n letter-spacing: 0.03125em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body1-letter-spacing, 0.03125em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body1-text-transform, inherit);\n flex-grow: 1;\n box-sizing: border-box;\n margin: 0;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n.mdc-dialog__content > :first-child {\n margin-top: 0;\n}\n.mdc-dialog__content > :last-child {\n margin-bottom: 0;\n}\n\n.mdc-dialog__title + .mdc-dialog__content {\n padding-top: 0;\n}\n\n.mdc-dialog--scrollable .mdc-dialog__title + .mdc-dialog__content {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n\n.mdc-dialog__content .mdc-list:first-child:last-child {\n padding: 6px 0 0;\n}\n\n.mdc-dialog--scrollable .mdc-dialog__content .mdc-list:first-child:last-child {\n padding: 0;\n}\n\n.mdc-dialog__actions {\n display: flex;\n position: relative;\n flex-shrink: 0;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n box-sizing: border-box;\n min-height: 52px;\n margin: 0;\n padding: 8px;\n border-top: 1px solid transparent;\n}\n.mdc-dialog--stacked .mdc-dialog__actions {\n flex-direction: column;\n align-items: flex-end;\n}\n\n.mdc-dialog__button {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 0;\n max-width: 100%;\n /* @noflip */\n text-align: right;\n}\n[dir=rtl] .mdc-dialog__button, .mdc-dialog__button[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 8px;\n}\n.mdc-dialog__button:first-child {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 0;\n}\n[dir=rtl] .mdc-dialog__button:first-child, .mdc-dialog__button:first-child[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-dialog[dir=rtl] .mdc-dialog__button, [dir=rtl] .mdc-dialog .mdc-dialog__button {\n /* @noflip */\n text-align: left;\n}\n\n.mdc-dialog--stacked .mdc-dialog__button:not(:first-child) {\n margin-top: 12px;\n}\n\n.mdc-dialog--open,\n.mdc-dialog--opening,\n.mdc-dialog--closing {\n display: flex;\n}\n\n.mdc-dialog--opening .mdc-dialog__scrim {\n transition: opacity 150ms linear;\n}\n.mdc-dialog--opening .mdc-dialog__container {\n transition: opacity 75ms linear, -webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 75ms linear, transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 75ms linear, transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.mdc-dialog--closing .mdc-dialog__scrim,\n.mdc-dialog--closing .mdc-dialog__container {\n transition: opacity 75ms linear;\n}\n.mdc-dialog--closing .mdc-dialog__container {\n -webkit-transform: none;\n transform: none;\n}\n\n.mdc-dialog--open .mdc-dialog__scrim {\n opacity: 1;\n}\n.mdc-dialog--open .mdc-dialog__container {\n -webkit-transform: none;\n transform: none;\n opacity: 1;\n}\n\n.mdc-dialog-scroll-lock {\n overflow: hidden;\n}\n\n/*# sourceMappingURL=mdc.dialog.css.map*/'},702(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-touch-target-wrapper {\n display: inline;\n}\n\n.mdc-elevation-overlay {\n position: absolute;\n border-radius: inherit;\n pointer-events: none;\n opacity: 0;\n /* @alternate */\n opacity: var(--mdc-elevation-overlay-opacity, 0);\n transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-elevation-overlay-color, #fff);\n}\n\n.mdc-fab {\n /* @alternate */\n position: relative;\n /* @alternate */\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n display: inline-flex;\n position: relative;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 56px;\n height: 56px;\n padding: 0;\n border: none;\n fill: currentColor;\n text-decoration: none;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n overflow: visible;\n transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, -webkit-transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-theme-secondary, #018786);\n color: #fff;\n /* @alternate */\n color: var(--mdc-theme-on-secondary, #fff);\n}\n.mdc-fab .mdc-elevation-overlay {\n width: 100%;\n height: 100%;\n top: 0;\n /* @noflip */\n left: 0;\n}\n.mdc-fab:not(.mdc-fab--extended) {\n border-radius: 50%;\n}\n.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple {\n border-radius: 50%;\n}\n.mdc-fab::-moz-focus-inner {\n padding: 0;\n border: 0;\n}\n.mdc-fab:hover, .mdc-fab:focus {\n /* @alternate */\n box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n}\n.mdc-fab:active {\n /* @alternate */\n box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n}\n.mdc-fab:active, .mdc-fab:focus {\n outline: none;\n}\n.mdc-fab:hover {\n cursor: pointer;\n}\n.mdc-fab > svg {\n width: 100%;\n}\n.mdc-fab .mdc-fab__icon {\n width: 24px;\n height: 24px;\n font-size: 24px;\n}\n\n.mdc-fab--mini {\n width: 40px;\n height: 40px;\n}\n\n.mdc-fab--extended {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-button-font-size, 0.875rem);\n line-height: 2.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-button-line-height, 2.25rem);\n font-weight: 500;\n /* @alternate */\n font-weight: var(--mdc-typography-button-font-weight, 500);\n letter-spacing: 0.0892857143em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-button-letter-spacing, 0.0892857143em);\n text-decoration: none;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-button-text-decoration, none);\n text-decoration: var(--mdc-typography-button-text-decoration, none);\n text-transform: uppercase;\n /* @alternate */\n text-transform: var(--mdc-typography-button-text-transform, uppercase);\n border-radius: 24px;\n /* @noflip */\n padding-left: 20px;\n /* @noflip */\n padding-right: 20px;\n width: auto;\n max-width: 100%;\n height: 48px;\n /* @alternate */\n line-height: normal;\n}\n.mdc-fab--extended .mdc-fab__ripple {\n border-radius: 24px;\n}\n.mdc-fab--extended .mdc-fab__icon {\n /* @noflip */\n margin-left: calc(12px - 20px);\n /* @noflip */\n margin-right: 12px;\n}\n[dir=rtl] .mdc-fab--extended .mdc-fab__icon, .mdc-fab--extended .mdc-fab__icon[dir=rtl] {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: calc(12px - 20px);\n}\n.mdc-fab--extended .mdc-fab__label + .mdc-fab__icon {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: calc(12px - 20px);\n}\n[dir=rtl] .mdc-fab--extended .mdc-fab__label + .mdc-fab__icon, .mdc-fab--extended .mdc-fab__label + .mdc-fab__icon[dir=rtl] {\n /* @noflip */\n margin-left: calc(12px - 20px);\n /* @noflip */\n margin-right: 12px;\n}\n\n.mdc-fab--touch {\n margin-top: 4px;\n margin-bottom: 4px;\n margin-right: 4px;\n margin-left: 4px;\n}\n.mdc-fab--touch .mdc-fab__touch {\n position: absolute;\n top: 50%;\n right: 0;\n height: 48px;\n /* @noflip */\n left: 50%;\n width: 48px;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n\n.mdc-fab::before {\n position: absolute;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border: 1px solid transparent;\n border-radius: inherit;\n content: "";\n}\n\n.mdc-fab__label {\n justify-content: flex-start;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow-x: hidden;\n overflow-y: visible;\n}\n\n.mdc-fab__icon {\n transition: -webkit-transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);\n fill: currentColor;\n will-change: transform;\n}\n\n.mdc-fab .mdc-fab__icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.mdc-fab--exited {\n -webkit-transform: scale(0);\n transform: scale(0);\n opacity: 0;\n transition: opacity 15ms linear 150ms, -webkit-transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1);\n transition: opacity 15ms linear 150ms, transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1);\n transition: opacity 15ms linear 150ms, transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1);\n}\n.mdc-fab--exited .mdc-fab__icon {\n -webkit-transform: scale(0);\n transform: scale(0);\n transition: -webkit-transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1);\n transition: transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1);\n transition: transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1);\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-fab {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-fab .mdc-fab__ripple::before,\n.mdc-fab .mdc-fab__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-fab .mdc-fab__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-fab .mdc-fab__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-fab.mdc-ripple-upgraded .mdc-fab__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-fab.mdc-ripple-upgraded .mdc-fab__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-fab.mdc-ripple-upgraded--unbounded .mdc-fab__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-fab.mdc-ripple-upgraded--foreground-activation .mdc-fab__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-fab.mdc-ripple-upgraded--foreground-deactivation .mdc-fab__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-fab .mdc-fab__ripple::before,\n.mdc-fab .mdc-fab__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n.mdc-fab.mdc-ripple-upgraded .mdc-fab__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-fab .mdc-fab__ripple::before, .mdc-fab .mdc-fab__ripple::after {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-on-secondary, #fff));\n}\n.mdc-fab:hover .mdc-fab__ripple::before, .mdc-fab.mdc-ripple-surface--hover .mdc-fab__ripple::before {\n opacity: 0.08;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.08);\n}\n.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__ripple::before, .mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__ripple::before {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.24);\n}\n.mdc-fab:not(.mdc-ripple-upgraded) .mdc-fab__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-fab:not(.mdc-ripple-upgraded):active .mdc-fab__ripple::after {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n.mdc-fab.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n.mdc-fab .mdc-fab__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n z-index: -1;\n}\n\n/*# sourceMappingURL=mdc.fab.css.map*/'},788(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-floating-label {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n position: absolute;\n /* @noflip */\n left: 0;\n /* @noflip */\n -webkit-transform-origin: left top;\n transform-origin: left top;\n line-height: 1.15rem;\n text-align: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: text;\n overflow: hidden;\n /* @alternate */\n will-change: transform;\n transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n[dir=rtl] .mdc-floating-label, .mdc-floating-label[dir=rtl] {\n /* @noflip */\n right: 0;\n /* @noflip */\n left: auto;\n /* @noflip */\n -webkit-transform-origin: right top;\n transform-origin: right top;\n /* @noflip */\n text-align: right;\n}\n\n.mdc-floating-label--float-above {\n cursor: auto;\n}\n\n.mdc-floating-label--required::after {\n /* @noflip */\n margin-left: 1px;\n /* @noflip */\n margin-right: 0px;\n content: "*";\n}\n[dir=rtl] .mdc-floating-label--required::after, .mdc-floating-label--required[dir=rtl]::after {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 1px;\n}\n\n.mdc-floating-label--float-above {\n -webkit-transform: translateY(-106%) scale(0.75);\n transform: translateY(-106%) scale(0.75);\n}\n\n.mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-standard 250ms 1;\n animation: mdc-floating-label-shake-float-above-standard 250ms 1;\n}\n\n@-webkit-keyframes mdc-floating-label-shake-float-above-standard {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n}\n\n@keyframes mdc-floating-label-shake-float-above-standard {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n}\n\n/*# sourceMappingURL=mdc.floating-label.css.map*/'},360(t){"use strict";t.exports="/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-form-field {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n}\n.mdc-form-field > label {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: auto;\n /* @noflip */\n padding-left: 4px;\n /* @noflip */\n padding-right: 0;\n order: 0;\n}\n[dir=rtl] .mdc-form-field > label, .mdc-form-field > label[dir=rtl] {\n /* @noflip */\n margin-left: auto;\n /* @noflip */\n margin-right: 0;\n}\n[dir=rtl] .mdc-form-field > label, .mdc-form-field > label[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 4px;\n}\n\n.mdc-form-field--nowrap > label {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.mdc-form-field--align-end > label {\n /* @noflip */\n margin-left: auto;\n /* @noflip */\n margin-right: 0;\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 4px;\n order: -1;\n}\n[dir=rtl] .mdc-form-field--align-end > label, .mdc-form-field--align-end > label[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: auto;\n}\n[dir=rtl] .mdc-form-field--align-end > label, .mdc-form-field--align-end > label[dir=rtl] {\n /* @noflip */\n padding-left: 4px;\n /* @noflip */\n padding-right: 0;\n}\n\n.mdc-form-field--space-between {\n justify-content: space-between;\n}\n.mdc-form-field--space-between > label {\n margin: 0;\n}\n[dir=rtl] .mdc-form-field--space-between > label, .mdc-form-field--space-between > label[dir=rtl] {\n margin: 0;\n}\n\n/*# sourceMappingURL=mdc.form-field.css.map*/"},168(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-icon-button {\n display: inline-block;\n position: relative;\n box-sizing: border-box;\n border: none;\n outline: none;\n background-color: transparent;\n fill: currentColor;\n color: inherit;\n font-size: 24px;\n text-decoration: none;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n width: 48px;\n height: 48px;\n padding: 12px;\n}\n.mdc-icon-button svg,\n.mdc-icon-button img {\n width: 24px;\n height: 24px;\n}\n.mdc-icon-button:disabled {\n color: rgba(0, 0, 0, 0.38);\n /* @alternate */\n color: var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38));\n}\n.mdc-icon-button:disabled {\n cursor: default;\n pointer-events: none;\n}\n\n.mdc-icon-button__icon {\n display: inline-block;\n}\n.mdc-icon-button__icon.mdc-icon-button__icon--on {\n display: none;\n}\n\n.mdc-icon-button--on .mdc-icon-button__icon {\n display: none;\n}\n.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on {\n display: inline-block;\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-icon-button {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-icon-button::before, .mdc-icon-button::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-icon-button::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-icon-button::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-icon-button.mdc-ripple-upgraded::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-icon-button.mdc-ripple-upgraded::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-icon-button.mdc-ripple-upgraded--unbounded::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-icon-button.mdc-ripple-upgraded--foreground-activation::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-icon-button.mdc-ripple-upgraded--foreground-deactivation::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-icon-button::before, .mdc-icon-button::after {\n top: calc(50% - 50%);\n /* @noflip */\n left: calc(50% - 50%);\n width: 100%;\n height: 100%;\n}\n.mdc-icon-button.mdc-ripple-upgraded::before, .mdc-icon-button.mdc-ripple-upgraded::after {\n top: var(--mdc-ripple-top, calc(50% - 50%));\n /* @noflip */\n left: var(--mdc-ripple-left, calc(50% - 50%));\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-icon-button.mdc-ripple-upgraded::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-icon-button::before, .mdc-icon-button::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #000);\n}\n.mdc-icon-button:hover::before, .mdc-icon-button.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-icon-button.mdc-ripple-upgraded--background-focused::before, .mdc-icon-button:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-icon-button:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-icon-button:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-icon-button.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n/*# sourceMappingURL=mdc.icon-button.css.map*/'},618(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-line-ripple::before, .mdc-line-ripple::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n border-bottom-style: solid;\n content: "";\n}\n.mdc-line-ripple::before {\n border-bottom-width: 1px;\n z-index: 1;\n}\n.mdc-line-ripple::after {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n border-bottom-width: 2px;\n opacity: 0;\n z-index: 2;\n}\n.mdc-line-ripple::after {\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 180ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.mdc-line-ripple--active::after {\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n opacity: 1;\n}\n\n.mdc-line-ripple--deactivating::after {\n opacity: 0;\n}\n\n/*# sourceMappingURL=mdc.line-ripple.css.map*/'},612(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-list {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n line-height: 1.75rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle1-line-height, 1.75rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n /* @alternate */\n line-height: 1.5rem;\n margin: 0;\n padding: 8px 0;\n list-style-type: none;\n color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));\n}\n.mdc-list:focus {\n outline: none;\n}\n\n.mdc-list-item {\n height: 48px;\n}\n\n.mdc-list-item__secondary-text {\n color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n color: var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54));\n}\n\n.mdc-list-item__graphic {\n background-color: transparent;\n}\n\n.mdc-list-item__graphic {\n color: rgba(0, 0, 0, 0.38);\n /* @alternate */\n color: var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38));\n}\n\n.mdc-list-item__meta {\n color: rgba(0, 0, 0, 0.38);\n /* @alternate */\n color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38));\n}\n\n.mdc-list-group__subheader {\n color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));\n}\n\n.mdc-list-item--disabled .mdc-list-item__text {\n opacity: 0.38;\n}\n\n.mdc-list-item--disabled .mdc-list-item__text,\n.mdc-list-item--disabled .mdc-list-item__primary-text,\n.mdc-list-item--disabled .mdc-list-item__secondary-text {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n\n.mdc-list-item--selected,\n.mdc-list-item--activated {\n color: #6200ee;\n /* @alternate */\n color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-list-item--selected .mdc-list-item__graphic,\n.mdc-list-item--activated .mdc-list-item__graphic {\n color: #6200ee;\n /* @alternate */\n color: var(--mdc-theme-primary, #6200ee);\n}\n\n.mdc-list--dense {\n padding-top: 4px;\n padding-bottom: 4px;\n font-size: 0.812rem;\n}\n\n.mdc-list-item {\n display: flex;\n position: relative;\n align-items: center;\n justify-content: flex-start;\n overflow: hidden;\n padding: 0;\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n height: 48px;\n}\n.mdc-list-item:focus {\n outline: none;\n}\n.mdc-list-item:not(.mdc-list-item--selected):focus::before, .mdc-list-item.mdc-ripple-upgraded--background-focused::before {\n position: absolute;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border: 1px solid transparent;\n border-radius: inherit;\n content: "";\n}\n.mdc-list-item.mdc-list-item--selected::before {\n position: absolute;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border: 3px double transparent;\n border-radius: inherit;\n content: "";\n}\n[dir=rtl] .mdc-list-item, .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-list--icon-list .mdc-list-item {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n height: 56px;\n}\n[dir=rtl] .mdc-list--icon-list .mdc-list-item, .mdc-list--icon-list .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-list--avatar-list .mdc-list-item {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n height: 56px;\n}\n[dir=rtl] .mdc-list--avatar-list .mdc-list-item, .mdc-list--avatar-list .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-list--thumbnail-list .mdc-list-item {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n height: 56px;\n}\n[dir=rtl] .mdc-list--thumbnail-list .mdc-list-item, .mdc-list--thumbnail-list .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-list--image-list .mdc-list-item {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n height: 72px;\n}\n[dir=rtl] .mdc-list--image-list .mdc-list-item, .mdc-list--image-list .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-list--video-list .mdc-list-item {\n /* @noflip */\n padding-left: 0px;\n /* @noflip */\n padding-right: 16px;\n height: 72px;\n}\n[dir=rtl] .mdc-list--video-list .mdc-list-item, .mdc-list--video-list .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 0px;\n}\n\n.mdc-list--dense .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n width: 20px;\n height: 20px;\n}\n[dir=rtl] .mdc-list--dense .mdc-list-item__graphic, .mdc-list--dense .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-list-item__graphic {\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n fill: currentColor;\n -o-object-fit: cover;\n object-fit: cover;\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 32px;\n width: 24px;\n height: 24px;\n}\n[dir=rtl] .mdc-list-item__graphic, .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 32px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-list--icon-list .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 32px;\n width: 24px;\n height: 24px;\n}\n[dir=rtl] .mdc-list--icon-list .mdc-list-item__graphic, .mdc-list--icon-list .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 32px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-list--avatar-list .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n}\n[dir=rtl] .mdc-list--avatar-list .mdc-list-item__graphic, .mdc-list--avatar-list .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-list--thumbnail-list .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n width: 40px;\n height: 40px;\n}\n[dir=rtl] .mdc-list--thumbnail-list .mdc-list-item__graphic, .mdc-list--thumbnail-list .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-list--image-list .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n width: 56px;\n height: 56px;\n}\n[dir=rtl] .mdc-list--image-list .mdc-list-item__graphic, .mdc-list--image-list .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-list--video-list .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n width: 100px;\n height: 56px;\n}\n[dir=rtl] .mdc-list--video-list .mdc-list-item__graphic, .mdc-list--video-list .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-list .mdc-list-item__graphic {\n display: inline-flex;\n}\n\n.mdc-list-item__meta {\n /* @noflip */\n margin-left: auto;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-list-item__meta:not(.material-icons) {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.75rem;\n /* @alternate */\n font-size: var(--mdc-typography-caption-font-size, 0.75rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-caption-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-caption-font-weight, 400);\n letter-spacing: 0.0333333333em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-caption-text-transform, inherit);\n}\n.mdc-list-item[dir=rtl] .mdc-list-item__meta, [dir=rtl] .mdc-list-item .mdc-list-item__meta {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: auto;\n}\n\n.mdc-list-item__text {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.mdc-list-item__text[for] {\n pointer-events: none;\n}\n\n.mdc-list-item__primary-text {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 28px;\n content: "";\n vertical-align: 0;\n}\n.mdc-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-list--video-list .mdc-list-item__primary-text, .mdc-list--image-list .mdc-list-item__primary-text, .mdc-list--thumbnail-list .mdc-list-item__primary-text, .mdc-list--avatar-list .mdc-list-item__primary-text, .mdc-list--icon-list .mdc-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-list--video-list .mdc-list-item__primary-text::before, .mdc-list--image-list .mdc-list-item__primary-text::before, .mdc-list--thumbnail-list .mdc-list-item__primary-text::before, .mdc-list--avatar-list .mdc-list-item__primary-text::before, .mdc-list--icon-list .mdc-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-list--video-list .mdc-list-item__primary-text::after, .mdc-list--image-list .mdc-list-item__primary-text::after, .mdc-list--thumbnail-list .mdc-list-item__primary-text::after, .mdc-list--avatar-list .mdc-list-item__primary-text::after, .mdc-list--icon-list .mdc-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-list--dense .mdc-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-list--dense .mdc-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 24px;\n content: "";\n vertical-align: 0;\n}\n.mdc-list--dense .mdc-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n\n.mdc-list-item__secondary-text {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-list-item__secondary-text::before {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: 0;\n}\n.mdc-list--dense .mdc-list-item__secondary-text {\n font-size: inherit;\n}\n\n.mdc-list--dense .mdc-list-item {\n height: 40px;\n}\n\n.mdc-list--two-line .mdc-list-item__text {\n align-self: flex-start;\n}\n\n.mdc-list--two-line .mdc-list-item {\n height: 64px;\n}\n.mdc-list--two-line.mdc-list--video-list .mdc-list-item, .mdc-list--two-line.mdc-list--image-list .mdc-list-item, .mdc-list--two-line.mdc-list--thumbnail-list .mdc-list-item, .mdc-list--two-line.mdc-list--avatar-list .mdc-list-item, .mdc-list--two-line.mdc-list--icon-list .mdc-list-item {\n height: 72px;\n}\n.mdc-list--two-line.mdc-list--icon-list .mdc-list-item__graphic {\n align-self: flex-start;\n margin-top: 16px;\n}\n\n.mdc-list--two-line.mdc-list--dense .mdc-list-item,\n.mdc-list--avatar-list.mdc-list--dense .mdc-list-item {\n height: 60px;\n}\n\n.mdc-list--avatar-list.mdc-list--dense .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n width: 36px;\n height: 36px;\n}\n[dir=rtl] .mdc-list--avatar-list.mdc-list--dense .mdc-list-item__graphic, .mdc-list--avatar-list.mdc-list--dense .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n}\n\n:not(.mdc-list-item--disabled).mdc-list-item {\n cursor: pointer;\n}\n\na.mdc-list-item {\n color: inherit;\n text-decoration: none;\n}\n\n.mdc-list-divider {\n height: 0;\n margin: 0;\n border: none;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n}\n\n.mdc-list-divider {\n border-bottom-color: rgba(0, 0, 0, 0.12);\n}\n\n.mdc-list-divider--padded {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 32px);\n}\n[dir=rtl] .mdc-list-divider--padded, .mdc-list-divider--padded[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n\n.mdc-list-divider--inset {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 72px);\n}\n[dir=rtl] .mdc-list-divider--inset, .mdc-list-divider--inset[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n\n.mdc-list-divider--inset.mdc-list-divider--padded {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 88px);\n}\n[dir=rtl] .mdc-list-divider--inset.mdc-list-divider--padded, .mdc-list-divider--inset.mdc-list-divider--padded[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n\n.mdc-list .mdc-list-divider--inset-leading {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 16px);\n}\n[dir=rtl] .mdc-list .mdc-list-divider--inset-leading, .mdc-list .mdc-list-divider--inset-leading[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-list .mdc-list-divider--inset-trailing {\n width: calc(100% - 16px);\n}\n.mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 32px);\n}\n[dir=rtl] .mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing, .mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 16px);\n}\n[dir=rtl] .mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--padding, .mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 32px);\n}\n[dir=rtl] .mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding, .mdc-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n\n.mdc-list--icon-list .mdc-list-divider--inset-leading {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 72px);\n}\n[dir=rtl] .mdc-list--icon-list .mdc-list-divider--inset-leading, .mdc-list--icon-list .mdc-list-divider--inset-leading[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n.mdc-list--icon-list .mdc-list-divider--inset-trailing {\n width: calc(100% - 16px);\n}\n.mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 88px);\n}\n[dir=rtl] .mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing, .mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n.mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 16px);\n}\n[dir=rtl] .mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--padding, .mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 32px);\n}\n[dir=rtl] .mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding, .mdc-list--icon-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n\n.mdc-list--avatar-list .mdc-list-divider--inset-leading {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 72px);\n}\n[dir=rtl] .mdc-list--avatar-list .mdc-list-divider--inset-leading, .mdc-list--avatar-list .mdc-list-divider--inset-leading[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n.mdc-list--avatar-list .mdc-list-divider--inset-trailing {\n width: calc(100% - 16px);\n}\n.mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 88px);\n}\n[dir=rtl] .mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing, .mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n.mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 16px);\n}\n[dir=rtl] .mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--padding, .mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 32px);\n}\n[dir=rtl] .mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding, .mdc-list--avatar-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n\n.mdc-list--thumbnail-list .mdc-list-divider--inset-leading {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 72px);\n}\n[dir=rtl] .mdc-list--thumbnail-list .mdc-list-divider--inset-leading, .mdc-list--thumbnail-list .mdc-list-divider--inset-leading[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n.mdc-list--thumbnail-list .mdc-list-divider--inset-trailing {\n width: calc(100% - 16px);\n}\n.mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing {\n /* @noflip */\n margin-left: 72px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 88px);\n}\n[dir=rtl] .mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing, .mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 72px;\n}\n.mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 16px);\n}\n[dir=rtl] .mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--padding, .mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 32px);\n}\n[dir=rtl] .mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding, .mdc-list--thumbnail-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n\n.mdc-list--image-list .mdc-list-divider--inset-leading {\n /* @noflip */\n margin-left: 88px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 88px);\n}\n[dir=rtl] .mdc-list--image-list .mdc-list-divider--inset-leading, .mdc-list--image-list .mdc-list-divider--inset-leading[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 88px;\n}\n.mdc-list--image-list .mdc-list-divider--inset-trailing {\n width: calc(100% - 16px);\n}\n.mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing {\n /* @noflip */\n margin-left: 88px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 104px);\n}\n[dir=rtl] .mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing, .mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 88px;\n}\n.mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 16px);\n}\n[dir=rtl] .mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--padding, .mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 32px);\n}\n[dir=rtl] .mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding, .mdc-list--image-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n\n.mdc-list--video-list .mdc-list-divider--inset-leading {\n /* @noflip */\n margin-left: 116px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 116px);\n}\n[dir=rtl] .mdc-list--video-list .mdc-list-divider--inset-leading, .mdc-list--video-list .mdc-list-divider--inset-leading[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 116px;\n}\n.mdc-list--video-list .mdc-list-divider--inset-trailing {\n width: calc(100% - 16px);\n}\n.mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing {\n /* @noflip */\n margin-left: 116px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 132px);\n}\n[dir=rtl] .mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing, .mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 116px;\n}\n.mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--padding {\n /* @noflip */\n margin-left: 0px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 0px);\n}\n[dir=rtl] .mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--padding, .mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 0px;\n}\n.mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding {\n /* @noflip */\n margin-left: 0px;\n /* @noflip */\n margin-right: 0;\n width: calc(100% - 16px);\n}\n[dir=rtl] .mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding, .mdc-list--video-list .mdc-list-divider--inset-leading.mdc-list-divider--inset-trailing.mdc-list-divider--inset-padding[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 0px;\n}\n\n.mdc-list-group .mdc-list {\n padding: 0;\n}\n\n.mdc-list-group__subheader {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n line-height: 1.75rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle1-line-height, 1.75rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n margin: calc( (3rem - 1.5rem) / 2 ) 16px;\n}\n\n.mdc-evolution-list-item__primary-text {\n color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));\n}\n\n.mdc-evolution-list-item__secondary-text {\n color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n color: var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54));\n}\n\n.mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start,\n.mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end {\n background-color: transparent;\n}\n\n.mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start,\n.mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end {\n color: rgba(0, 0, 0, 0.38);\n /* @alternate */\n color: var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38));\n}\n\n.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n color: rgba(0, 0, 0, 0.38);\n /* @alternate */\n color: var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38));\n}\n\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__start,\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__content,\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__end {\n opacity: 0.38;\n}\n\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__primary-text {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__secondary-text {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-evolution-list-item--disabled.mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-evolution-list-item--disabled.mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-evolution-list-item--disabled.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n\n.mdc-evolution-list-item--selected .mdc-evolution-list-item__primary-text,\n.mdc-evolution-list-item--activated .mdc-evolution-list-item__primary-text {\n color: #6200ee;\n /* @alternate */\n color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-evolution-list-item--selected.mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start,\n.mdc-evolution-list-item--activated.mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start {\n color: #6200ee;\n /* @alternate */\n color: var(--mdc-theme-primary, #6200ee);\n}\n\n.mdc-list-group__subheader {\n color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n color: var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));\n}\n\n@media screen and (-ms-high-contrast: active) {\n .mdc-evolution-list-divider::after {\n content: "";\n display: block;\n border-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: white;\n }\n}\n.mdc-evolution-list {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n line-height: 1.75rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle1-line-height, 1.75rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n /* @alternate */\n line-height: 1.5rem;\n margin: 0;\n padding: 8px 0;\n list-style-type: none;\n}\n.mdc-evolution-list:focus {\n outline: none;\n}\n\n.mdc-evolution-list-item {\n display: flex;\n position: relative;\n align-items: center;\n justify-content: flex-start;\n overflow: hidden;\n padding: 0;\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n align-items: stretch;\n cursor: pointer;\n}\n.mdc-evolution-list-item:focus {\n outline: none;\n}\n[dir=rtl] .mdc-evolution-list-item, .mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-one-line {\n height: 48px;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-two-lines {\n height: 64px;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-three-lines {\n height: 88px;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-one-line .mdc-evolution-list-item__start {\n align-self: center;\n margin-top: 0;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__start {\n align-self: flex-start;\n margin-top: 16px;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__start {\n align-self: flex-start;\n margin-top: 16px;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-one-line .mdc-evolution-list-item__end {\n align-self: center;\n margin-top: 0;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__end {\n align-self: center;\n margin-top: 0;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__end {\n align-self: flex-start;\n margin-top: 16px;\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--disabled, .mdc-evolution-list-item.mdc-evolution-list-item--non-interactive {\n cursor: auto;\n}\n.mdc-evolution-list-item:not(.mdc-evolution-list-item--selected):focus::before, .mdc-evolution-list-item.mdc-ripple-upgraded--background-focused::before {\n position: absolute;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border: 1px solid transparent;\n border-radius: inherit;\n content: "";\n}\n.mdc-evolution-list-item.mdc-evolution-list-item--selected::before {\n position: absolute;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n border: 3px double transparent;\n border-radius: inherit;\n content: "";\n}\n\na.mdc-evolution-list-item {\n color: inherit;\n text-decoration: none;\n}\n\n.mdc-evolution-list-item__start {\n fill: currentColor;\n flex-shrink: 0;\n}\n\n.mdc-evolution-list-item__end {\n flex-shrink: 0;\n}\n\n.mdc-evolution-list-item__content {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n align-self: center;\n flex: 1;\n}\n.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__content, .mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__content {\n align-self: stretch;\n}\n.mdc-evolution-list-item__content[for] {\n pointer-events: none;\n}\n\n.mdc-evolution-list-item__primary-text {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n line-height: 1.75rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle1-line-height, 1.75rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text, .mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before, .mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 28px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after, .mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n\n.mdc-evolution-list-item__secondary-text {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item__secondary-text::before {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: 0;\n}\n\n.mdc-evolution-list-item__overline-text {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__overline-text, .mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__overline-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__overline-text::before, .mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__overline-text::before {\n display: inline-block;\n width: 0;\n height: 24px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__overline-text::after, .mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__overline-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-avatar .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-avatar .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-avatar .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-evolution-list-item--with-leading-avatar .mdc-evolution-list-item__start {\n width: 40px;\n height: 40px;\n}\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item--with-one-line {\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-avatar.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n.mdc-evolution-list-item--with-leading-avatar .mdc-evolution-list-item__start {\n border-radius: 50%;\n}\n\n.mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start {\n width: 24px;\n height: 24px;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 32px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 32px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item--with-one-line {\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-icon.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-thumbnail .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-thumbnail .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-thumbnail .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-evolution-list-item--with-leading-thumbnail .mdc-evolution-list-item__start {\n width: 40px;\n height: 40px;\n}\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item--with-one-line {\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-thumbnail.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-image .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-image .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-image .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-evolution-list-item--with-leading-image .mdc-evolution-list-item__start {\n width: 56px;\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item--with-one-line {\n height: 72px;\n}\n.mdc-evolution-list-item--with-leading-image.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__start {\n align-self: flex-start;\n margin-top: 8px;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-video .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-video .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-video .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-evolution-list-item--with-leading-video .mdc-evolution-list-item__start {\n width: 100px;\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-one-line {\n height: 72px;\n}\n.mdc-evolution-list-item--with-leading-video.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-checkbox .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 24px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-checkbox .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-checkbox .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 24px;\n /* @noflip */\n margin-right: 8px;\n}\n.mdc-evolution-list-item--with-leading-checkbox .mdc-evolution-list-item__start {\n width: 40px;\n height: 40px;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__start {\n align-self: flex-start;\n margin-top: 8px;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-one-line {\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-checkbox.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-radio .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 24px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-radio .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-radio .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 24px;\n /* @noflip */\n margin-right: 8px;\n}\n.mdc-evolution-list-item--with-leading-radio .mdc-evolution-list-item__start {\n width: 40px;\n height: 40px;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__start {\n align-self: flex-start;\n margin-top: 8px;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-one-line {\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-radio.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item, .mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-evolution-list-item--with-leading-switch .mdc-evolution-list-item__start {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-leading-switch .mdc-evolution-list-item__start, .mdc-evolution-list-item--with-leading-switch .mdc-evolution-list-item__start[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-evolution-list-item--with-leading-switch .mdc-evolution-list-item__start {\n width: 36px;\n height: 20px;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__start {\n align-self: flex-start;\n margin-top: 16px;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin-bottom: -20px;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__primary-text::after {\n display: inline-block;\n width: 0;\n height: 20px;\n content: "";\n vertical-align: -20px;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-two-lines.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 32px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-one-line {\n height: 56px;\n}\n.mdc-evolution-list-item--with-leading-switch.mdc-evolution-list-item--with-two-lines {\n height: 72px;\n}\n\n.mdc-evolution-list-item--with-trailing-icon.mdc-evolution-list-item {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-icon.mdc-evolution-list-item, .mdc-evolution-list-item--with-trailing-icon.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n.mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end, .mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end {\n width: 24px;\n height: 24px;\n}\n\n.mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__end {\n align-self: flex-start;\n margin-top: 0;\n}\n.mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__end {\n align-self: flex-start;\n margin-top: 0;\n}\n.mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item, .mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n /* @noflip */\n margin-left: 28px;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end, .mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 28px;\n}\n.mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item--with-two-lines .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 28px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__end {\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n.mdc-evolution-list-item--with-trailing-meta.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__end::before {\n display: inline-block;\n width: 0;\n height: 28px;\n content: "";\n vertical-align: 0;\n}\n.mdc-evolution-list-item--with-trailing-meta .mdc-evolution-list-item__end {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.75rem;\n /* @alternate */\n font-size: var(--mdc-typography-caption-font-size, 0.75rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-caption-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-caption-font-weight, 400);\n letter-spacing: 0.0333333333em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-caption-text-transform, inherit);\n}\n\n.mdc-evolution-list-item--with-trailing-checkbox.mdc-evolution-list-item {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-checkbox.mdc-evolution-list-item, .mdc-evolution-list-item--with-trailing-checkbox.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n.mdc-evolution-list-item--with-trailing-checkbox .mdc-evolution-list-item__end {\n /* @noflip */\n margin-left: 24px;\n /* @noflip */\n margin-right: 8px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-checkbox .mdc-evolution-list-item__end, .mdc-evolution-list-item--with-trailing-checkbox .mdc-evolution-list-item__end[dir=rtl] {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 24px;\n}\n.mdc-evolution-list-item--with-trailing-checkbox .mdc-evolution-list-item__end {\n width: 40px;\n height: 40px;\n}\n.mdc-evolution-list-item--with-trailing-checkbox.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__end {\n align-self: flex-start;\n margin-top: 8px;\n}\n\n.mdc-evolution-list-item--with-trailing-radio.mdc-evolution-list-item {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-radio.mdc-evolution-list-item, .mdc-evolution-list-item--with-trailing-radio.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n.mdc-evolution-list-item--with-trailing-radio .mdc-evolution-list-item__end {\n /* @noflip */\n margin-left: 24px;\n /* @noflip */\n margin-right: 8px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-radio .mdc-evolution-list-item__end, .mdc-evolution-list-item--with-trailing-radio .mdc-evolution-list-item__end[dir=rtl] {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 24px;\n}\n.mdc-evolution-list-item--with-trailing-radio .mdc-evolution-list-item__end {\n width: 40px;\n height: 40px;\n}\n.mdc-evolution-list-item--with-trailing-radio.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__end {\n align-self: flex-start;\n margin-top: 8px;\n}\n\n.mdc-evolution-list-item--with-trailing-switch.mdc-evolution-list-item {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-switch.mdc-evolution-list-item, .mdc-evolution-list-item--with-trailing-switch.mdc-evolution-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: auto;\n}\n.mdc-evolution-list-item--with-trailing-switch .mdc-evolution-list-item__end {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-item--with-trailing-switch .mdc-evolution-list-item__end, .mdc-evolution-list-item--with-trailing-switch .mdc-evolution-list-item__end[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-evolution-list-item--with-trailing-switch .mdc-evolution-list-item__end {\n width: 36px;\n height: 20px;\n}\n.mdc-evolution-list-item--with-trailing-switch.mdc-evolution-list-item--with-three-lines .mdc-evolution-list-item__end {\n align-self: flex-start;\n margin-top: 16px;\n}\n\n.mdc-evolution-list-group .mdc-list {\n padding: 0;\n}\n\n.mdc-evolution-list-group__subheader {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n line-height: 1.75rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle1-line-height, 1.75rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n margin: calc( (3rem - 1.5rem) / 2 ) 16px;\n}\n\n.mdc-evolution-list-divider {\n background-color: rgba(0, 0, 0, 0.12);\n}\n\n.mdc-evolution-list-divider {\n height: 1px;\n padding: 0;\n background-clip: content-box;\n}\n.mdc-evolution-list-divider.mdc-evolution-list-divider--with-leading-padding {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider.mdc-evolution-list-divider--with-leading-padding, .mdc-evolution-list-divider.mdc-evolution-list-divider--with-leading-padding[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-evolution-list-divider.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-evolution-list-divider.mdc-evolution-list-divider--with-trailing-inset {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 16px;\n}\n[dir=rtl] .mdc-evolution-list-divider.mdc-evolution-list-divider--with-trailing-inset, .mdc-evolution-list-divider.mdc-evolution-list-divider--with-trailing-inset[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: auto;\n}\n\n.mdc-evolution-list-divider--with-leading-icon.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 72px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-icon.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-icon.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 72px;\n}\n\n.mdc-evolution-list-divider--with-leading-image.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 88px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-image.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-image.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 88px;\n}\n\n.mdc-evolution-list-divider--with-leading-thumbnail.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 72px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-thumbnail.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-thumbnail.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 72px;\n}\n\n.mdc-evolution-list-divider--with-leading-video.mdc-evolution-list-divider--with-leading-padding {\n /* @noflip */\n padding-left: 0px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-video.mdc-evolution-list-divider--with-leading-padding, .mdc-evolution-list-divider--with-leading-video.mdc-evolution-list-divider--with-leading-padding[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 0px;\n}\n.mdc-evolution-list-divider--with-leading-video.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 116px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-video.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-video.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 116px;\n}\n\n.mdc-evolution-list-divider--with-leading-avatar.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 72px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-avatar.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-avatar.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 72px;\n}\n\n.mdc-evolution-list-divider--with-leading-checkbox.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 72px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-checkbox.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-checkbox.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 72px;\n}\n\n.mdc-evolution-list-divider--with-leading-switch.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 84px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-switch.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-switch.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 84px;\n}\n\n.mdc-evolution-list-divider--with-leading-radio.mdc-evolution-list-divider--with-leading-inset {\n /* @noflip */\n padding-left: 72px;\n /* @noflip */\n padding-right: auto;\n}\n[dir=rtl] .mdc-evolution-list-divider--with-leading-radio.mdc-evolution-list-divider--with-leading-inset, .mdc-evolution-list-divider--with-leading-radio.mdc-evolution-list-divider--with-leading-inset[dir=rtl] {\n /* @noflip */\n padding-left: auto;\n /* @noflip */\n padding-right: 72px;\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n:not(.mdc-list-item--disabled).mdc-list-item {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before,\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before,\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #000);\n}\n:not(.mdc-list-item--disabled).mdc-list-item:hover .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-surface--hover .mdc-list-item__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after {\n transition: opacity 150ms linear;\n}\n:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple::before {\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-activated-opacity, 0.12);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n:not(.mdc-list-item--disabled).mdc-list-item--activated:hover .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-surface--hover .mdc-list-item__ripple::before {\n opacity: 0.16;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.16);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.24);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after {\n transition: opacity 150ms linear;\n}\n:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple::before {\n opacity: 0.08;\n /* @alternate */\n opacity: var(--mdc-ripple-selected-opacity, 0.08);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n:not(.mdc-list-item--disabled).mdc-list-item--selected:hover .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before {\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.12);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before, :not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.2;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.2);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after {\n transition: opacity 150ms linear;\n}\n:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after {\n transition-duration: 75ms;\n opacity: 0.2;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.2);\n}\n:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.2);\n}\n:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.mdc-list-item--disabled {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-list-item--disabled .mdc-list-item__ripple::before,\n.mdc-list-item--disabled .mdc-list-item__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-list-item--disabled .mdc-list-item__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-list-item--disabled .mdc-list-item__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-list-item--disabled .mdc-list-item__ripple::before,\n.mdc-list-item--disabled .mdc-list-item__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-list-item--disabled .mdc-list-item__ripple::before,\n.mdc-list-item--disabled .mdc-list-item__ripple::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #000);\n}\n.mdc-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before, .mdc-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-list-item--disabled .mdc-list-item__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::before,\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded .mdc-evolution-list-item__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded .mdc-evolution-list-item__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded--unbounded .mdc-evolution-list-item__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded--foreground-activation .mdc-evolution-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-evolution-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::before,\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded .mdc-evolution-list-item__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #000);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item:hover .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-surface--hover .mdc-evolution-list-item__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded--background-focused .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item:not(.mdc-ripple-upgraded):focus .mdc-evolution-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item:not(.mdc-ripple-upgraded) .mdc-evolution-list-item__ripple::after {\n transition: opacity 150ms linear;\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item:not(.mdc-ripple-upgraded):active .mdc-evolution-list-item__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated .mdc-evolution-list-item__ripple::before {\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-activated-opacity, 0.12);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated .mdc-evolution-list-item__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated:hover .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated.mdc-ripple-surface--hover .mdc-evolution-list-item__ripple::before {\n opacity: 0.16;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.16);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-evolution-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.24);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated:not(.mdc-ripple-upgraded) .mdc-evolution-list-item__ripple::after {\n transition: opacity 150ms linear;\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-evolution-list-item__ripple::after {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--activated.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected .mdc-evolution-list-item__ripple::before {\n opacity: 0.08;\n /* @alternate */\n opacity: var(--mdc-ripple-selected-opacity, 0.08);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected .mdc-evolution-list-item__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected:hover .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected.mdc-ripple-surface--hover .mdc-evolution-list-item__ripple::before {\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.12);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-evolution-list-item__ripple::before, :not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-evolution-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.2;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.2);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected:not(.mdc-ripple-upgraded) .mdc-evolution-list-item__ripple::after {\n transition: opacity 150ms linear;\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-evolution-list-item__ripple::after {\n transition-duration: 75ms;\n opacity: 0.2;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.2);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item--selected.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.2);\n}\n:not(.mdc-evolution-list-item--disabled).mdc-evolution-list-item .mdc-evolution-list-item__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.mdc-evolution-list-item--disabled {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::before,\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-evolution-list-item--disabled.mdc-ripple-upgraded .mdc-evolution-list-item__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-evolution-list-item--disabled.mdc-ripple-upgraded .mdc-evolution-list-item__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-evolution-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-evolution-list-item__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-evolution-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-evolution-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-evolution-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-evolution-list-item__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::before,\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n.mdc-evolution-list-item--disabled.mdc-ripple-upgraded .mdc-evolution-list-item__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::before,\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #000);\n}\n.mdc-evolution-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-evolution-list-item__ripple::before, .mdc-evolution-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-evolution-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-evolution-list-item--disabled .mdc-evolution-list-item__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n/*# sourceMappingURL=mdc.list.css.map*/'},724(t){"use strict";t.exports="/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-menu-surface {\n display: none;\n position: absolute;\n box-sizing: border-box;\n max-width: calc(100vw - 32px);\n max-height: calc(100vh - 32px);\n margin: 0;\n padding: 0;\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n opacity: 0;\n overflow: auto;\n will-change: transform, opacity;\n z-index: 8;\n transition: opacity 0.03s linear, height 250ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.12s cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 0.03s linear, transform 0.12s cubic-bezier(0, 0, 0.2, 1), height 250ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 0.03s linear, transform 0.12s cubic-bezier(0, 0, 0.2, 1), height 250ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.12s cubic-bezier(0, 0, 0.2, 1);\n /* @alternate */\n box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n border-radius: 4px;\n /* @alternate */\n border-radius: var(--mdc-shape-medium, 4px);\n /* @noflip */\n transform-origin-left: top left;\n /* @noflip */\n transform-origin-right: top right;\n}\n.mdc-menu-surface:focus {\n outline: none;\n}\n.mdc-menu-surface--open {\n display: inline-block;\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1;\n}\n.mdc-menu-surface--animating-open {\n display: inline-block;\n -webkit-transform: scale(0.8);\n transform: scale(0.8);\n opacity: 0;\n}\n.mdc-menu-surface--animating-closed {\n display: inline-block;\n opacity: 0;\n transition: opacity 0.075s linear;\n}\n[dir=rtl] .mdc-menu-surface, .mdc-menu-surface[dir=rtl] {\n /* @noflip */\n transform-origin-left: top right;\n /* @noflip */\n transform-origin-right: top left;\n}\n\n.mdc-menu-surface--anchor {\n position: relative;\n overflow: visible;\n}\n\n.mdc-menu-surface--fixed {\n position: fixed;\n}\n\n.mdc-menu-surface--fullwidth {\n width: 100%;\n}\n\n/*# sourceMappingURL=mdc.menu-surface.css.map*/"},396(t){"use strict";t.exports="/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-elevation-overlay {\n position: absolute;\n border-radius: inherit;\n pointer-events: none;\n opacity: 0;\n /* @alternate */\n opacity: var(--mdc-elevation-overlay-opacity, 0);\n transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-elevation-overlay-color, #fff);\n}\n\n.mdc-menu {\n min-width: 112px;\n}\n.mdc-menu .mdc-list-item__meta {\n color: rgba(0, 0, 0, 0.87);\n}\n.mdc-menu .mdc-list-item__graphic {\n color: rgba(0, 0, 0, 0.87);\n}\n.mdc-menu .mdc-list {\n color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n position: relative;\n}\n.mdc-menu .mdc-list .mdc-elevation-overlay {\n width: 100%;\n height: 100%;\n top: 0;\n /* @noflip */\n left: 0;\n}\n.mdc-menu .mdc-list-divider {\n margin: 8px 0;\n}\n.mdc-menu .mdc-list-item {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.mdc-menu .mdc-list-item--disabled {\n cursor: auto;\n}\n.mdc-menu a.mdc-list-item .mdc-list-item__text,\n.mdc-menu a.mdc-list-item .mdc-list-item__graphic {\n pointer-events: none;\n}\n\n.mdc-menu__selection-group {\n padding: 0;\n fill: currentColor;\n}\n.mdc-menu__selection-group .mdc-list-item {\n /* @noflip */\n padding-left: 56px;\n /* @noflip */\n padding-right: 16px;\n}\n[dir=rtl] .mdc-menu__selection-group .mdc-list-item, .mdc-menu__selection-group .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 56px;\n}\n.mdc-menu__selection-group .mdc-menu__selection-group-icon {\n /* @noflip */\n left: 16px;\n /* @noflip */\n right: initial;\n display: none;\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n[dir=rtl] .mdc-menu__selection-group .mdc-menu__selection-group-icon, .mdc-menu__selection-group .mdc-menu__selection-group-icon[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 16px;\n}\n\n.mdc-menu-item--selected .mdc-menu__selection-group-icon {\n display: inline;\n}\n\n/*# sourceMappingURL=mdc.menu.css.map*/"},814(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-touch-target-wrapper {\n display: inline;\n}\n\n.mdc-radio {\n padding: 10px;\n display: inline-block;\n position: relative;\n flex: 0 0 auto;\n box-sizing: content-box;\n width: 20px;\n height: 20px;\n cursor: pointer;\n /* @alternate */\n will-change: opacity, transform, border-color, color;\n}\n.mdc-radio .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background .mdc-radio__outer-circle {\n border-color: rgba(0, 0, 0, 0.54);\n}\n.mdc-radio .mdc-radio__native-control:enabled:checked + .mdc-radio__background .mdc-radio__outer-circle {\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-theme-secondary, #018786);\n}\n.mdc-radio .mdc-radio__native-control:enabled + .mdc-radio__background .mdc-radio__inner-circle {\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-theme-secondary, #018786);\n}\n.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked) + .mdc-radio__background .mdc-radio__outer-circle,\n.mdc-radio .mdc-radio__native-control:disabled:not(:checked) + .mdc-radio__background .mdc-radio__outer-circle {\n border-color: rgba(0, 0, 0, 0.38);\n}\n.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked + .mdc-radio__background .mdc-radio__outer-circle,\n.mdc-radio .mdc-radio__native-control:disabled:checked + .mdc-radio__background .mdc-radio__outer-circle {\n border-color: rgba(0, 0, 0, 0.38);\n}\n.mdc-radio [aria-disabled=true] .mdc-radio__native-control + .mdc-radio__background .mdc-radio__inner-circle,\n.mdc-radio .mdc-radio__native-control:disabled + .mdc-radio__background .mdc-radio__inner-circle {\n border-color: rgba(0, 0, 0, 0.38);\n}\n.mdc-radio .mdc-radio__background::before {\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-theme-secondary, #018786);\n}\n.mdc-radio .mdc-radio__background::before {\n top: -10px;\n left: -10px;\n width: 40px;\n height: 40px;\n}\n.mdc-radio .mdc-radio__native-control {\n top: 0px;\n right: 0px;\n left: 0px;\n width: 40px;\n height: 40px;\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked) + .mdc-radio__background .mdc-radio__outer-circle,\n.mdc-radio .mdc-radio__native-control:disabled:not(:checked) + .mdc-radio__background .mdc-radio__outer-circle {\n border-color: GrayText;\n }\n .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked + .mdc-radio__background .mdc-radio__outer-circle,\n.mdc-radio .mdc-radio__native-control:disabled:checked + .mdc-radio__background .mdc-radio__outer-circle {\n border-color: GrayText;\n }\n .mdc-radio [aria-disabled=true] .mdc-radio__native-control + .mdc-radio__background .mdc-radio__inner-circle,\n.mdc-radio .mdc-radio__native-control:disabled + .mdc-radio__background .mdc-radio__inner-circle {\n border-color: GrayText;\n }\n}\n.mdc-radio__background {\n display: inline-block;\n position: relative;\n box-sizing: border-box;\n width: 20px;\n height: 20px;\n}\n.mdc-radio__background::before {\n position: absolute;\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n}\n.mdc-radio__outer-circle {\n position: absolute;\n top: 0;\n left: 0;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n border-width: 2px;\n border-style: solid;\n border-radius: 50%;\n transition: border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n}\n.mdc-radio__inner-circle {\n position: absolute;\n top: 0;\n left: 0;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n border-width: 10px;\n border-style: solid;\n border-radius: 50%;\n transition: border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n transition: transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n}\n.mdc-radio__native-control {\n position: absolute;\n margin: 0;\n padding: 0;\n opacity: 0;\n cursor: inherit;\n z-index: 1;\n}\n.mdc-radio--touch {\n margin-top: 4px;\n margin-bottom: 4px;\n margin-right: 4px;\n margin-left: 4px;\n}\n.mdc-radio--touch .mdc-radio__native-control {\n top: -4px;\n right: -4px;\n left: -4px;\n width: 48px;\n height: 48px;\n}\n\n.mdc-radio__native-control:checked + .mdc-radio__background,\n.mdc-radio__native-control:disabled + .mdc-radio__background {\n transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n}\n.mdc-radio__native-control:checked + .mdc-radio__background .mdc-radio__outer-circle,\n.mdc-radio__native-control:disabled + .mdc-radio__background .mdc-radio__outer-circle {\n transition: border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n}\n.mdc-radio__native-control:checked + .mdc-radio__background .mdc-radio__inner-circle,\n.mdc-radio__native-control:disabled + .mdc-radio__background .mdc-radio__inner-circle {\n transition: border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.mdc-radio--disabled {\n cursor: default;\n pointer-events: none;\n}\n\n.mdc-radio__native-control:checked + .mdc-radio__background .mdc-radio__inner-circle {\n -webkit-transform: scale(0.5);\n transform: scale(0.5);\n transition: border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.mdc-radio__native-control:disabled + .mdc-radio__background,\n[aria-disabled=true] .mdc-radio__native-control + .mdc-radio__background {\n cursor: default;\n}\n\n.mdc-radio__native-control:focus + .mdc-radio__background::before {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 0.12;\n transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-radio {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-radio .mdc-radio__ripple::before,\n.mdc-radio .mdc-radio__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-radio .mdc-radio__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-radio .mdc-radio__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-radio.mdc-ripple-upgraded--unbounded .mdc-radio__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-radio.mdc-ripple-upgraded--foreground-activation .mdc-radio__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-radio.mdc-ripple-upgraded--foreground-deactivation .mdc-radio__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-radio .mdc-radio__ripple::before,\n.mdc-radio .mdc-radio__ripple::after {\n top: calc(50% - 50%);\n /* @noflip */\n left: calc(50% - 50%);\n width: 100%;\n height: 100%;\n}\n.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::before,\n.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after {\n top: var(--mdc-ripple-top, calc(50% - 50%));\n /* @noflip */\n left: var(--mdc-ripple-left, calc(50% - 50%));\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-radio.mdc-ripple-upgraded .mdc-radio__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-radio .mdc-radio__ripple::before, .mdc-radio .mdc-radio__ripple::after {\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786));\n}\n.mdc-radio:hover .mdc-radio__ripple::before, .mdc-radio.mdc-ripple-surface--hover .mdc-radio__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__ripple::before, .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-radio:not(.mdc-ripple-upgraded) .mdc-radio__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-radio:not(.mdc-ripple-upgraded):active .mdc-radio__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-radio.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__background::before {\n content: none;\n}\n\n.mdc-radio__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n/*# sourceMappingURL=mdc.radio.css.map*/'},104(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-ripple-surface {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n position: relative;\n outline: none;\n overflow: hidden;\n}\n.mdc-ripple-surface::before, .mdc-ripple-surface::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-ripple-surface::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-ripple-surface::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-ripple-surface.mdc-ripple-upgraded::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-ripple-surface.mdc-ripple-upgraded::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-ripple-surface::before, .mdc-ripple-surface::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #000);\n}\n.mdc-ripple-surface:hover::before, .mdc-ripple-surface.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before, .mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-ripple-surface.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-ripple-surface::before, .mdc-ripple-surface::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n.mdc-ripple-surface.mdc-ripple-upgraded::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n\n.mdc-ripple-surface[data-mdc-ripple-is-unbounded],\n.mdc-ripple-upgraded--unbounded {\n overflow: visible;\n}\n.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before, .mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,\n.mdc-ripple-upgraded--unbounded::before,\n.mdc-ripple-upgraded--unbounded::after {\n top: calc(50% - 50%);\n /* @noflip */\n left: calc(50% - 50%);\n width: 100%;\n height: 100%;\n}\n.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before, .mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,\n.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,\n.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after {\n top: var(--mdc-ripple-top, calc(50% - 50%));\n /* @noflip */\n left: var(--mdc-ripple-left, calc(50% - 50%));\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,\n.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n\n/*# sourceMappingURL=mdc.ripple.css.map*/'},512(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n@charset "UTF-8";\n.mdc-floating-label {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n position: absolute;\n /* @noflip */\n left: 0;\n /* @noflip */\n -webkit-transform-origin: left top;\n transform-origin: left top;\n line-height: 1.15rem;\n text-align: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: text;\n overflow: hidden;\n /* @alternate */\n will-change: transform;\n transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n[dir=rtl] .mdc-floating-label, .mdc-floating-label[dir=rtl] {\n /* @noflip */\n right: 0;\n /* @noflip */\n left: auto;\n /* @noflip */\n -webkit-transform-origin: right top;\n transform-origin: right top;\n /* @noflip */\n text-align: right;\n}\n\n.mdc-floating-label--float-above {\n cursor: auto;\n}\n\n.mdc-floating-label--required::after {\n /* @noflip */\n margin-left: 1px;\n /* @noflip */\n margin-right: 0px;\n content: "*";\n}\n[dir=rtl] .mdc-floating-label--required::after, .mdc-floating-label--required[dir=rtl]::after {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 1px;\n}\n\n.mdc-floating-label--float-above {\n -webkit-transform: translateY(-106%) scale(0.75);\n transform: translateY(-106%) scale(0.75);\n}\n\n.mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-standard 250ms 1;\n animation: mdc-floating-label-shake-float-above-standard 250ms 1;\n}\n\n@-webkit-keyframes mdc-floating-label-shake-float-above-standard {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n}\n\n@keyframes mdc-floating-label-shake-float-above-standard {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-line-ripple::before, .mdc-line-ripple::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n border-bottom-style: solid;\n content: "";\n}\n.mdc-line-ripple::before {\n border-bottom-width: 1px;\n z-index: 1;\n}\n.mdc-line-ripple::after {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n border-bottom-width: 2px;\n opacity: 0;\n z-index: 2;\n}\n.mdc-line-ripple::after {\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 180ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.mdc-line-ripple--active::after {\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n opacity: 1;\n}\n\n.mdc-line-ripple--deactivating::after {\n opacity: 0;\n}\n\n.mdc-notched-outline {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n box-sizing: border-box;\n width: 100%;\n max-width: 100%;\n height: 100%;\n /* @noflip */\n text-align: left;\n pointer-events: none;\n}\n[dir=rtl] .mdc-notched-outline, .mdc-notched-outline[dir=rtl] {\n /* @noflip */\n text-align: right;\n}\n.mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {\n box-sizing: border-box;\n height: 100%;\n border-top: 1px solid;\n border-bottom: 1px solid;\n pointer-events: none;\n}\n.mdc-notched-outline__leading {\n /* @noflip */\n border-left: 1px solid;\n /* @noflip */\n border-right: none;\n width: 12px;\n}\n[dir=rtl] .mdc-notched-outline__leading, .mdc-notched-outline__leading[dir=rtl] {\n /* @noflip */\n border-left: none;\n /* @noflip */\n border-right: 1px solid;\n}\n.mdc-notched-outline__trailing {\n /* @noflip */\n border-left: none;\n /* @noflip */\n border-right: 1px solid;\n flex-grow: 1;\n}\n[dir=rtl] .mdc-notched-outline__trailing, .mdc-notched-outline__trailing[dir=rtl] {\n /* @noflip */\n border-left: 1px solid;\n /* @noflip */\n border-right: none;\n}\n.mdc-notched-outline__notch {\n flex: 0 0 auto;\n width: auto;\n max-width: calc(100% - 12px * 2);\n}\n.mdc-notched-outline .mdc-floating-label {\n display: inline-block;\n position: relative;\n max-width: 100%;\n}\n.mdc-notched-outline .mdc-floating-label--float-above {\n text-overflow: clip;\n}\n.mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n max-width: calc(100% / 0.75);\n}\n\n.mdc-notched-outline--notched .mdc-notched-outline__notch {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 8px;\n border-top: none;\n}\n[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch, .mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl] {\n /* @noflip */\n padding-left: 8px;\n /* @noflip */\n padding-right: 0;\n}\n\n.mdc-notched-outline--no-label .mdc-notched-outline__notch {\n display: none;\n}\n\n.mdc-select {\n display: inline-flex;\n position: relative;\n}\n.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text {\n color: rgba(0, 0, 0, 0.87);\n}\n.mdc-select.mdc-select--disabled .mdc-select__selected-text {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-select:not(.mdc-select--disabled) .mdc-floating-label {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label {\n color: rgba(98, 0, 238, 0.87);\n}\n.mdc-select.mdc-select--disabled .mdc-floating-label {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon {\n fill: rgba(0, 0, 0, 0.54);\n}\n.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon {\n fill: #6200ee;\n /* @alternate */\n fill: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon {\n fill: rgba(0, 0, 0, 0.38);\n}\n.mdc-select:not(.mdc-select--disabled) + .mdc-select-helper-text {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-select.mdc-select--disabled + .mdc-select-helper-text {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-select:not(.mdc-select--disabled) .mdc-select__icon {\n color: rgba(0, 0, 0, 0.54);\n}\n.mdc-select.mdc-select--disabled .mdc-select__icon {\n color: rgba(0, 0, 0, 0.38);\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-select.mdc-select--disabled .mdc-select__selected-text {\n color: GrayText;\n }\n .mdc-select.mdc-select--disabled .mdc-select__dropdown-icon {\n fill: red;\n }\n .mdc-select.mdc-select--disabled .mdc-floating-label {\n color: GrayText;\n }\n .mdc-select.mdc-select--disabled .mdc-line-ripple::before {\n border-bottom-color: GrayText;\n }\n .mdc-select.mdc-select--disabled .mdc-notched-outline__leading,\n.mdc-select.mdc-select--disabled .mdc-notched-outline__notch,\n.mdc-select.mdc-select--disabled .mdc-notched-outline__trailing {\n border-color: GrayText;\n }\n .mdc-select.mdc-select--disabled .mdc-select__icon {\n color: GrayText;\n }\n .mdc-select.mdc-select--disabled + .mdc-select-helper-text {\n color: GrayText;\n }\n}\n.mdc-select .mdc-floating-label {\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n pointer-events: none;\n}\n.mdc-select .mdc-select__anchor {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-select .mdc-select__anchor, .mdc-select .mdc-select__anchor[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor, .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-select .mdc-select__icon {\n width: 24px;\n height: 24px;\n font-size: 24px;\n}\n.mdc-select .mdc-select__dropdown-icon {\n width: 24px;\n height: 24px;\n}\n.mdc-select .mdc-select__menu .mdc-list-item {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n[dir=rtl] .mdc-select .mdc-select__menu .mdc-list-item, .mdc-select .mdc-select__menu .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-select .mdc-select__menu .mdc-list-item__graphic {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 12px;\n}\n[dir=rtl] .mdc-select .mdc-select__menu .mdc-list-item__graphic, .mdc-select .mdc-select__menu .mdc-list-item__graphic[dir=rtl] {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-select__dropdown-icon {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: 12px;\n display: inline-flex;\n position: relative;\n align-self: center;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n pointer-events: none;\n}\n.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active,\n.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive {\n position: absolute;\n top: 0;\n left: 0;\n}\n.mdc-select__dropdown-icon .mdc-select__dropdown-icon-graphic {\n width: 41.6666666667%;\n height: 20.8333333333%;\n}\n.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive {\n opacity: 1;\n transition: opacity 75ms linear 75ms;\n}\n.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active {\n opacity: 0;\n transition: opacity 75ms linear;\n}\n[dir=rtl] .mdc-select__dropdown-icon, .mdc-select__dropdown-icon[dir=rtl] {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: 12px;\n}\n.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive {\n opacity: 0;\n transition: opacity 49.5ms linear;\n}\n.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-active {\n opacity: 1;\n transition: opacity 100.5ms linear 49.5ms;\n}\n\n.mdc-select__anchor {\n width: 200px;\n min-width: 0;\n flex: 1 1 auto;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n outline: none;\n cursor: pointer;\n}\n.mdc-select__anchor .mdc-floating-label--float-above {\n -webkit-transform: translateY(-106%) scale(0.75);\n transform: translateY(-106%) scale(0.75);\n}\n\n.mdc-select__selected-text-container {\n display: flex;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n pointer-events: none;\n box-sizing: border-box;\n width: auto;\n min-width: 0;\n flex-grow: 1;\n height: 28px;\n border: none;\n outline: none;\n padding: 0;\n background-color: transparent;\n color: inherit;\n}\n\n.mdc-select__selected-text {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n line-height: 1.75rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle1-line-height, 1.75rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n display: block;\n width: 100%;\n /* @noflip */\n text-align: left;\n}\n[dir=rtl] .mdc-select__selected-text, .mdc-select__selected-text[dir=rtl] {\n /* @noflip */\n text-align: right;\n}\n\n.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label {\n color: #b00020;\n /* @alternate */\n color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label {\n color: #b00020;\n /* @alternate */\n color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid + .mdc-select-helper-text--validation-msg {\n color: #b00020;\n /* @alternate */\n color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--invalid:not(.mdc-select--disabled) .mdc-select__dropdown-icon {\n fill: #b00020;\n /* @alternate */\n fill: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon {\n fill: #b00020;\n /* @alternate */\n fill: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--disabled {\n cursor: default;\n pointer-events: none;\n}\n\n.mdc-select--with-leading-icon .mdc-select__menu .mdc-list-item {\n /* @noflip */\n padding-left: 12px;\n /* @noflip */\n padding-right: 12px;\n}\n[dir=rtl] .mdc-select--with-leading-icon .mdc-select__menu .mdc-list-item, .mdc-select--with-leading-icon .mdc-select__menu .mdc-list-item[dir=rtl] {\n /* @noflip */\n padding-left: 12px;\n /* @noflip */\n padding-right: 12px;\n}\n\n.mdc-select__menu .mdc-list .mdc-select__icon {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 0;\n}\n[dir=rtl] .mdc-select__menu .mdc-list .mdc-select__icon, .mdc-select__menu .mdc-list .mdc-select__icon[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-select__menu .mdc-list .mdc-list-item--selected,\n.mdc-select__menu .mdc-list .mdc-list-item--activated {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-select__menu .mdc-list .mdc-list-item--selected .mdc-list-item__graphic,\n.mdc-select__menu .mdc-list .mdc-list-item--activated .mdc-list-item__graphic {\n color: #000;\n /* @alternate */\n color: var(--mdc-theme-on-surface, #000);\n}\n\n.mdc-select--filled .mdc-select__anchor {\n height: 56px;\n display: flex;\n align-items: baseline;\n}\n.mdc-select--filled .mdc-select__anchor::before {\n display: inline-block;\n width: 0;\n height: 40px;\n content: "";\n vertical-align: 0;\n}\n.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text::before {\n content: "​";\n}\n.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text-container {\n height: 100%;\n display: inline-flex;\n align-items: center;\n}\n.mdc-select--filled.mdc-select--no-label .mdc-select__anchor::before {\n display: none;\n}\n.mdc-select--filled .mdc-select__anchor {\n border-top-left-radius: 4px;\n /* @alternate */\n border-top-left-radius: var(--mdc-shape-small, 4px);\n border-top-right-radius: 4px;\n /* @alternate */\n border-top-right-radius: var(--mdc-shape-small, 4px);\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.mdc-select--filled:not(.mdc-select--disabled) .mdc-select__anchor {\n background-color: whitesmoke;\n}\n.mdc-select--filled.mdc-select--disabled .mdc-select__anchor {\n background-color: #fafafa;\n}\n.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::before {\n border-bottom-color: rgba(0, 0, 0, 0.42);\n}\n.mdc-select--filled:not(.mdc-select--disabled):hover .mdc-line-ripple::before {\n border-bottom-color: rgba(0, 0, 0, 0.87);\n}\n.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::after {\n border-bottom-color: #6200ee;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-select--filled.mdc-select--disabled .mdc-line-ripple::before {\n border-bottom-color: rgba(0, 0, 0, 0.06);\n}\n.mdc-select--filled .mdc-floating-label {\n max-width: calc(100% - 64px);\n}\n.mdc-select--filled .mdc-floating-label--float-above {\n max-width: calc(100% / 0.75 - 64px / 0.75);\n}\n.mdc-select--filled .mdc-menu-surface--is-open-below {\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.mdc-select--filled.mdc-select--focused.mdc-line-ripple::after {\n -webkit-transform: scale(1, 2);\n transform: scale(1, 2);\n opacity: 1;\n}\n.mdc-select--filled .mdc-floating-label {\n /* @noflip */\n left: 16px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-select--filled .mdc-floating-label, .mdc-select--filled .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 16px;\n}\n.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label {\n /* @noflip */\n left: 48px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label, .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 48px;\n}\n.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label {\n max-width: calc(100% - 96px);\n}\n.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label--float-above {\n max-width: calc(100% / 0.75 - 96px / 0.75);\n}\n\n.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before {\n border-bottom-color: #b00020;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before {\n border-bottom-color: #b00020;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::after {\n border-bottom-color: #b00020;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--outlined {\n border: none;\n}\n.mdc-select--outlined .mdc-select__anchor {\n height: 56px;\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above {\n -webkit-transform: translateY(-37.25px) scale(1);\n transform: translateY(-37.25px) scale(1);\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-34.75px) scale(0.75);\n transform: translateY(-34.75px) scale(0.75);\n}\n.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1;\n animation: mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-select-outlined-56px {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-select-outlined-56px {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n}\n.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading {\n /* @noflip */\n border-top-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-left-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-top-right-radius: 0;\n /* @noflip */\n border-bottom-right-radius: 0;\n /* @noflip */\n border-bottom-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-left-radius: var(--mdc-shape-small, 4px);\n}\n[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading, .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl] {\n /* @noflip */\n border-top-left-radius: 0;\n /* @noflip */\n border-top-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-left-radius: 0;\n}\n@supports (top: max(0%)) {\n .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading {\n width: max(12px, var(--mdc-shape-small, 4px));\n }\n}\n@supports (top: max(0%)) {\n .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__notch {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n }\n}\n.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing {\n /* @noflip */\n border-top-left-radius: 0;\n /* @noflip */\n border-top-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-left-radius: 0;\n}\n[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing, .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl] {\n /* @noflip */\n border-top-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-left-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-top-right-radius: 0;\n /* @noflip */\n border-bottom-right-radius: 0;\n /* @noflip */\n border-bottom-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-left-radius: var(--mdc-shape-small, 4px);\n}\n@supports (top: max(0%)) {\n .mdc-select--outlined .mdc-select__anchor {\n /* @noflip */\n padding-left: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n[dir=rtl] .mdc-select--outlined .mdc-select__anchor, .mdc-select--outlined .mdc-select__anchor[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n}\n@supports (top: max(0%)) {\n [dir=rtl] .mdc-select--outlined .mdc-select__anchor, .mdc-select--outlined .mdc-select__anchor[dir=rtl] {\n /* @noflip */\n padding-right: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n@supports (top: max(0%)) {\n .mdc-select--outlined + .mdc-select-helper-text {\n /* @noflip */\n margin-left: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n[dir=rtl] .mdc-select--outlined + .mdc-select-helper-text, .mdc-select--outlined + .mdc-select-helper-text[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n}\n@supports (top: max(0%)) {\n [dir=rtl] .mdc-select--outlined + .mdc-select-helper-text, .mdc-select--outlined + .mdc-select-helper-text[dir=rtl] {\n /* @noflip */\n margin-right: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor {\n background-color: transparent;\n}\n.mdc-select--outlined.mdc-select--disabled .mdc-select__anchor {\n background-color: transparent;\n}\n.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,\n.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,\n.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.38);\n}\n.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.87);\n}\n.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing {\n border-width: 2px;\n}\n.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__leading,\n.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__notch,\n.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.06);\n}\n.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch {\n max-width: calc(100% - 60px);\n}\n.mdc-select--outlined .mdc-select__anchor {\n display: flex;\n align-items: baseline;\n overflow: visible;\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-select-outlined 250ms 1;\n animation: mdc-floating-label-shake-float-above-select-outlined 250ms 1;\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above {\n -webkit-transform: translateY(-37.25px) scale(1);\n transform: translateY(-37.25px) scale(1);\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-34.75px) scale(0.75);\n transform: translateY(-34.75px) scale(0.75);\n}\n.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--notched .mdc-notched-outline__notch {\n padding-top: 1px;\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text::before {\n content: "​";\n}\n.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text-container {\n height: 100%;\n display: inline-flex;\n align-items: center;\n}\n.mdc-select--outlined .mdc-select__anchor::before {\n display: none;\n}\n.mdc-select--outlined .mdc-select__selected-text-container {\n display: flex;\n border: none;\n z-index: 1;\n background-color: transparent;\n}\n.mdc-select--outlined .mdc-select__icon {\n z-index: 2;\n}\n.mdc-select--outlined .mdc-floating-label {\n line-height: 1.15rem;\n /* @noflip */\n left: 4px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-select--outlined .mdc-floating-label, .mdc-select--outlined .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 4px;\n}\n.mdc-select--outlined.mdc-select--focused .mdc-notched-outline--notched .mdc-notched-outline__notch {\n padding-top: 2px;\n}\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__leading,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__notch,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__trailing {\n border-color: #b00020;\n /* @alternate */\n border-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing {\n border-color: #b00020;\n /* @alternate */\n border-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing {\n border-width: 2px;\n}\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing {\n border-color: #b00020;\n /* @alternate */\n border-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label {\n /* @noflip */\n left: 36px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label, .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 36px;\n}\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above {\n -webkit-transform: translateY(-37.25px) translateX(-32px) scale(1);\n transform: translateY(-37.25px) translateX(-32px) scale(1);\n}\n[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above, .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl] {\n -webkit-transform: translateY(-37.25px) translateX(32px) scale(1);\n transform: translateY(-37.25px) translateX(32px) scale(1);\n}\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-34.75px) translateX(-32px) scale(0.75);\n transform: translateY(-34.75px) translateX(-32px) scale(0.75);\n}\n[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],\n[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl] {\n -webkit-transform: translateY(-34.75px) translateX(32px) scale(0.75);\n transform: translateY(-34.75px) translateX(32px) scale(0.75);\n}\n.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1;\n animation: mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px {\n 0% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px {\n 0% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n}\n[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake, .mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl] .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1;\n animation: mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl {\n 0% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl {\n 0% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n}\n.mdc-select--outlined.mdc-select--with-leading-icon .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch {\n max-width: calc(100% - 96px);\n}\n.mdc-select--outlined .mdc-menu-surface {\n margin-bottom: 8px;\n}\n.mdc-select--outlined.mdc-select--no-label .mdc-menu-surface,\n.mdc-select--outlined .mdc-menu-surface--is-open-below {\n margin-bottom: 0;\n}\n\n.mdc-select__anchor {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-select__anchor .mdc-select__ripple::before,\n.mdc-select__anchor .mdc-select__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-select__anchor .mdc-select__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-select__anchor .mdc-select__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-select__anchor.mdc-ripple-upgraded--unbounded .mdc-select__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation .mdc-select__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation .mdc-select__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-select__anchor .mdc-select__ripple::before,\n.mdc-select__anchor .mdc-select__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-select__anchor .mdc-select__ripple::before,\n.mdc-select__anchor .mdc-select__ripple::after {\n background-color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.87));\n}\n.mdc-select__anchor:hover .mdc-select__ripple::before, .mdc-select__anchor.mdc-ripple-surface--hover .mdc-select__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-select__anchor.mdc-ripple-upgraded--background-focused .mdc-select__ripple::before, .mdc-select__anchor:not(.mdc-ripple-upgraded):focus .mdc-select__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-select__anchor .mdc-select__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.mdc-select__menu .mdc-list .mdc-list-item--selected .mdc-list-item__ripple::before, .mdc-select__menu .mdc-list .mdc-list-item--selected .mdc-list-item__ripple::after {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000));\n}\n.mdc-select__menu .mdc-list .mdc-list-item--selected:hover .mdc-list-item__ripple::before, .mdc-select__menu .mdc-list .mdc-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-select__menu .mdc-list .mdc-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before, .mdc-select__menu .mdc-list .mdc-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-select__menu .mdc-list .mdc-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-select__menu .mdc-list .mdc-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-select__menu .mdc-list .mdc-list-item--selected.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n.mdc-select-helper-text {\n margin: 0;\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.75rem;\n /* @alternate */\n font-size: var(--mdc-typography-caption-font-size, 0.75rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-caption-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-caption-font-weight, 400);\n letter-spacing: 0.0333333333em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-caption-text-transform, inherit);\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n}\n[dir=rtl] .mdc-select-helper-text, .mdc-select-helper-text[dir=rtl] {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 16px;\n}\n.mdc-select-helper-text::before {\n display: inline-block;\n width: 0;\n height: 16px;\n content: "";\n vertical-align: 0;\n}\n\n.mdc-select-helper-text--validation-msg {\n opacity: 0;\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.mdc-select--invalid + .mdc-select-helper-text--validation-msg,\n.mdc-select-helper-text--validation-msg-persistent {\n opacity: 1;\n}\n\n.mdc-select--with-leading-icon .mdc-select__icon {\n display: inline-block;\n box-sizing: border-box;\n border: none;\n text-decoration: none;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n flex-shrink: 0;\n align-self: center;\n background-color: transparent;\n fill: currentColor;\n}\n.mdc-select--with-leading-icon .mdc-select__icon {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: 12px;\n}\n[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon, .mdc-select--with-leading-icon .mdc-select__icon[dir=rtl] {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: 12px;\n}\n\n.mdc-select__icon:not([tabindex]),\n.mdc-select__icon[tabindex="-1"] {\n cursor: default;\n pointer-events: none;\n}\n\n/*# sourceMappingURL=mdc.select.css.map*/'},376(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-slider__thumb {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-slider__thumb::before, .mdc-slider__thumb::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-slider__thumb::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-slider__thumb::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-slider__thumb.mdc-ripple-upgraded::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-slider__thumb.mdc-ripple-upgraded::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-slider__thumb.mdc-ripple-upgraded--unbounded::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-slider__thumb.mdc-ripple-upgraded--foreground-activation::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-slider__thumb.mdc-ripple-upgraded--foreground-deactivation::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-slider__thumb::before, .mdc-slider__thumb::after {\n top: calc(50% - 50%);\n /* @noflip */\n left: calc(50% - 50%);\n width: 100%;\n height: 100%;\n}\n.mdc-slider__thumb.mdc-ripple-upgraded::before, .mdc-slider__thumb.mdc-ripple-upgraded::after {\n top: var(--mdc-ripple-top, calc(50% - 50%));\n /* @noflip */\n left: var(--mdc-ripple-left, calc(50% - 50%));\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-slider__thumb.mdc-ripple-upgraded::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-slider__thumb::before, .mdc-slider__thumb::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n.mdc-slider__thumb:hover::before, .mdc-slider__thumb.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before, .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-slider__thumb:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-slider__thumb.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n.mdc-slider {\n cursor: pointer;\n height: 48px;\n margin: 0 24px;\n position: relative;\n touch-action: pan-y;\n}\n.mdc-slider .mdc-slider__track {\n height: 4px;\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 100%;\n}\n.mdc-slider .mdc-slider__track--active,\n.mdc-slider .mdc-slider__track--inactive {\n display: flex;\n height: 100%;\n position: absolute;\n width: 100%;\n}\n.mdc-slider .mdc-slider__track--active {\n border-radius: 3px;\n height: 6px;\n overflow: hidden;\n top: -1px;\n}\n.mdc-slider .mdc-slider__track--active_fill {\n border: 6px solid;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n position: relative;\n /* @noflip */\n -webkit-transform-origin: left;\n transform-origin: left;\n}\n[dir=rtl] .mdc-slider .mdc-slider__track--active_fill, .mdc-slider .mdc-slider__track--active_fill[dir=rtl] {\n /* @noflip */\n -webkit-transform-origin: right;\n transform-origin: right;\n}\n.mdc-slider .mdc-slider__track--inactive {\n border-radius: 2px;\n height: 4px;\n left: 0;\n outline: 1px solid transparent;\n top: 0;\n}\n.mdc-slider .mdc-slider__track--active_fill {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill {\n border-color: #000;\n /* @alternate */\n border-color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-slider .mdc-slider__track--inactive {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-theme-primary, #6200ee);\n opacity: 0.24;\n}\n.mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-theme-on-surface, #000);\n opacity: 0.24;\n}\n.mdc-slider .mdc-slider__value-indicator-container {\n bottom: 44px;\n left: 50%;\n position: absolute;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n visibility: hidden;\n}\n.mdc-slider .mdc-slider__value-indicator {\n transition: -webkit-transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);\n transition: transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);\n transition: transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);\n align-items: center;\n border-radius: 4px;\n display: flex;\n height: 32px;\n outline: 1px solid transparent;\n padding: 0 12px;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: bottom;\n transform-origin: bottom;\n}\n.mdc-slider .mdc-slider__value-indicator::before {\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid;\n bottom: -5px;\n content: "";\n height: 0;\n left: 50%;\n position: absolute;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n width: 0;\n}\n.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container {\n visibility: visible;\n}\n.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator {\n transition: -webkit-transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);\n transition: transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n@media (prefers-reduced-motion) {\n .mdc-slider .mdc-slider__value-indicator,\n.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator {\n transition: none;\n }\n}\n.mdc-slider .mdc-slider__value-indicator-text {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle2-font-size, 0.875rem);\n line-height: 1.375rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle2-line-height, 1.375rem);\n font-weight: 500;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle2-font-weight, 500);\n letter-spacing: 0.0071428571em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle2-text-transform, inherit);\n}\n.mdc-slider .mdc-slider__value-indicator {\n background-color: #000;\n opacity: 0.6;\n}\n.mdc-slider .mdc-slider__value-indicator::before {\n border-top-color: #000;\n}\n.mdc-slider .mdc-slider__value-indicator {\n color: #fff;\n /* @alternate */\n color: var(--mdc-theme-on-primary, #fff);\n}\n.mdc-slider .mdc-slider__thumb {\n display: flex;\n height: 48px;\n left: -24px;\n outline: none;\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n width: 48px;\n}\n.mdc-slider .mdc-slider__thumb--top {\n z-index: 1;\n}\n.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob {\n border: 1px solid;\n box-sizing: content-box;\n border-color: #fff;\n}\n.mdc-slider .mdc-slider__thumb-knob {\n /* @alternate */\n box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n border: 10px solid;\n border-radius: 50%;\n box-sizing: border-box;\n height: 20px;\n /* @noflip */\n left: 50%;\n position: absolute;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n width: 20px;\n}\n.mdc-slider .mdc-slider__thumb-knob {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-theme-primary, #6200ee);\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-theme-on-surface, #000);\n border-color: #000;\n /* @alternate */\n border-color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-slider .mdc-slider__thumb::before, .mdc-slider .mdc-slider__thumb::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n.mdc-slider .mdc-slider__thumb:hover::before, .mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before, .mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-slider .mdc-slider__tick-marks {\n align-items: center;\n box-sizing: border-box;\n display: flex;\n height: 100%;\n justify-content: space-between;\n padding: 0 1px;\n position: absolute;\n width: 100%;\n}\n.mdc-slider .mdc-slider__tick-mark--active,\n.mdc-slider .mdc-slider__tick-mark--inactive {\n border-radius: 50%;\n height: 2px;\n width: 2px;\n}\n.mdc-slider .mdc-slider__tick-mark--active {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-on-primary, #fff);\n opacity: 0.6;\n}\n.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-on-primary, #fff);\n opacity: 0.6;\n}\n.mdc-slider .mdc-slider__tick-mark--inactive {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-theme-primary, #6200ee);\n opacity: 0.6;\n}\n.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-theme-on-surface, #000);\n opacity: 0.6;\n}\n.mdc-slider.mdc-slider--disabled {\n opacity: 0.38;\n cursor: auto;\n}\n.mdc-slider.mdc-slider--disabled .mdc-slider__thumb {\n pointer-events: none;\n}\n.mdc-slider--discrete .mdc-slider__thumb,\n.mdc-slider--discrete .mdc-slider__track--active_fill {\n transition: -webkit-transform 80ms ease;\n transition: transform 80ms ease;\n transition: transform 80ms ease, -webkit-transform 80ms ease;\n}\n@media (prefers-reduced-motion) {\n .mdc-slider--discrete .mdc-slider__thumb,\n.mdc-slider--discrete .mdc-slider__track--active_fill {\n transition: none;\n }\n}\n\n.mdc-slider__input {\n cursor: pointer;\n left: 0;\n margin: 0;\n height: 100%;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%;\n}\n\n/*# sourceMappingURL=mdc.slider.css.map*/'},324(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-switch__thumb-underlay {\n /* @noflip */\n left: -14px;\n /* @noflip */\n right: initial;\n top: -17px;\n width: 48px;\n height: 48px;\n}\n[dir=rtl] .mdc-switch__thumb-underlay, .mdc-switch__thumb-underlay[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: -14px;\n}\n\n.mdc-switch__native-control {\n width: 64px;\n height: 48px;\n}\n\n.mdc-switch {\n display: inline-block;\n position: relative;\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.mdc-switch.mdc-switch--checked .mdc-switch__track {\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-theme-secondary, #018786);\n}\n.mdc-switch.mdc-switch--checked .mdc-switch__thumb {\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-theme-secondary, #018786);\n border-color: #018786;\n /* @alternate */\n border-color: var(--mdc-theme-secondary, #018786);\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track {\n background-color: #000;\n /* @alternate */\n background-color: var(--mdc-theme-on-surface, #000);\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n border-color: #fff;\n /* @alternate */\n border-color: var(--mdc-theme-surface, #fff);\n}\n\n.mdc-switch__native-control {\n /* @noflip */\n left: 0;\n /* @noflip */\n right: initial;\n position: absolute;\n top: 0;\n margin: 0;\n opacity: 0;\n cursor: pointer;\n pointer-events: auto;\n transition: -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n[dir=rtl] .mdc-switch__native-control, .mdc-switch__native-control[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 0;\n}\n\n.mdc-switch__track {\n box-sizing: border-box;\n width: 36px;\n height: 14px;\n border: 1px solid transparent;\n border-radius: 7px;\n opacity: 0.38;\n transition: opacity 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), border-color 90ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.mdc-switch__thumb-underlay {\n display: flex;\n position: absolute;\n align-items: center;\n justify-content: center;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n transition: background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), border-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), border-color 90ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), border-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.mdc-switch__thumb {\n /* @alternate */\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n box-sizing: border-box;\n width: 20px;\n height: 20px;\n border: 10px solid;\n border-radius: 50%;\n pointer-events: none;\n z-index: 1;\n}\n\n.mdc-switch--checked .mdc-switch__track {\n opacity: 0.54;\n}\n.mdc-switch--checked .mdc-switch__thumb-underlay {\n -webkit-transform: translateX(16px);\n transform: translateX(16px);\n}\n[dir=rtl] .mdc-switch--checked .mdc-switch__thumb-underlay, .mdc-switch--checked .mdc-switch__thumb-underlay[dir=rtl] {\n -webkit-transform: translateX(-16px);\n transform: translateX(-16px);\n}\n.mdc-switch--checked .mdc-switch__native-control {\n -webkit-transform: translateX(-16px);\n transform: translateX(-16px);\n}\n[dir=rtl] .mdc-switch--checked .mdc-switch__native-control, .mdc-switch--checked .mdc-switch__native-control[dir=rtl] {\n -webkit-transform: translateX(16px);\n transform: translateX(16px);\n}\n\n.mdc-switch--disabled {\n opacity: 0.38;\n pointer-events: none;\n}\n.mdc-switch--disabled .mdc-switch__thumb {\n border-width: 1px;\n}\n.mdc-switch--disabled .mdc-switch__native-control {\n cursor: default;\n pointer-events: none;\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay::before, .mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay::after {\n background-color: #9e9e9e;\n /* @alternate */\n background-color: var(--mdc-ripple-color, #9e9e9e);\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay:hover::before, .mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay.mdc-ripple-surface--hover::before {\n opacity: 0.08;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.08);\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay.mdc-ripple-upgraded--background-focused::before, .mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.24);\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.24;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb-underlay.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.24);\n}\n\n.mdc-switch__thumb-underlay {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-switch__thumb-underlay::before, .mdc-switch__thumb-underlay::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-switch__thumb-underlay::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-switch__thumb-underlay::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded--unbounded::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded--foreground-activation::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded--foreground-deactivation::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-switch__thumb-underlay::before, .mdc-switch__thumb-underlay::after {\n top: calc(50% - 50%);\n /* @noflip */\n left: calc(50% - 50%);\n width: 100%;\n height: 100%;\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded::before, .mdc-switch__thumb-underlay.mdc-ripple-upgraded::after {\n top: var(--mdc-ripple-top, calc(50% - 50%));\n /* @noflip */\n left: var(--mdc-ripple-left, calc(50% - 50%));\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n.mdc-switch__thumb-underlay::before, .mdc-switch__thumb-underlay::after {\n background-color: #018786;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786));\n}\n.mdc-switch__thumb-underlay:hover::before, .mdc-switch__thumb-underlay.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded--background-focused::before, .mdc-switch__thumb-underlay:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-switch__thumb-underlay:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-switch__thumb-underlay:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-switch__thumb-underlay.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n/*# sourceMappingURL=mdc.switch.css.map*/'},914(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-floating-label {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n position: absolute;\n /* @noflip */\n left: 0;\n /* @noflip */\n -webkit-transform-origin: left top;\n transform-origin: left top;\n line-height: 1.15rem;\n text-align: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: text;\n overflow: hidden;\n /* @alternate */\n will-change: transform;\n transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n[dir=rtl] .mdc-floating-label, .mdc-floating-label[dir=rtl] {\n /* @noflip */\n right: 0;\n /* @noflip */\n left: auto;\n /* @noflip */\n -webkit-transform-origin: right top;\n transform-origin: right top;\n /* @noflip */\n text-align: right;\n}\n\n.mdc-floating-label--float-above {\n cursor: auto;\n}\n\n.mdc-floating-label--required::after {\n /* @noflip */\n margin-left: 1px;\n /* @noflip */\n margin-right: 0px;\n content: "*";\n}\n[dir=rtl] .mdc-floating-label--required::after, .mdc-floating-label--required[dir=rtl]::after {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 1px;\n}\n\n.mdc-floating-label--float-above {\n -webkit-transform: translateY(-106%) scale(0.75);\n transform: translateY(-106%) scale(0.75);\n}\n\n.mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-standard 250ms 1;\n animation: mdc-floating-label-shake-float-above-standard 250ms 1;\n}\n\n@-webkit-keyframes mdc-floating-label-shake-float-above-standard {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n}\n\n@keyframes mdc-floating-label-shake-float-above-standard {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);\n }\n}\n.mdc-line-ripple::before, .mdc-line-ripple::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n border-bottom-style: solid;\n content: "";\n}\n.mdc-line-ripple::before {\n border-bottom-width: 1px;\n z-index: 1;\n}\n.mdc-line-ripple::after {\n -webkit-transform: scaleX(0);\n transform: scaleX(0);\n border-bottom-width: 2px;\n opacity: 0;\n z-index: 2;\n}\n.mdc-line-ripple::after {\n transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 180ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 180ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.mdc-line-ripple--active::after {\n -webkit-transform: scaleX(1);\n transform: scaleX(1);\n opacity: 1;\n}\n\n.mdc-line-ripple--deactivating::after {\n opacity: 0;\n}\n\n.mdc-notched-outline {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n box-sizing: border-box;\n width: 100%;\n max-width: 100%;\n height: 100%;\n /* @noflip */\n text-align: left;\n pointer-events: none;\n}\n[dir=rtl] .mdc-notched-outline, .mdc-notched-outline[dir=rtl] {\n /* @noflip */\n text-align: right;\n}\n.mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {\n box-sizing: border-box;\n height: 100%;\n border-top: 1px solid;\n border-bottom: 1px solid;\n pointer-events: none;\n}\n.mdc-notched-outline__leading {\n /* @noflip */\n border-left: 1px solid;\n /* @noflip */\n border-right: none;\n width: 12px;\n}\n[dir=rtl] .mdc-notched-outline__leading, .mdc-notched-outline__leading[dir=rtl] {\n /* @noflip */\n border-left: none;\n /* @noflip */\n border-right: 1px solid;\n}\n.mdc-notched-outline__trailing {\n /* @noflip */\n border-left: none;\n /* @noflip */\n border-right: 1px solid;\n flex-grow: 1;\n}\n[dir=rtl] .mdc-notched-outline__trailing, .mdc-notched-outline__trailing[dir=rtl] {\n /* @noflip */\n border-left: 1px solid;\n /* @noflip */\n border-right: none;\n}\n.mdc-notched-outline__notch {\n flex: 0 0 auto;\n width: auto;\n max-width: calc(100% - 12px * 2);\n}\n.mdc-notched-outline .mdc-floating-label {\n display: inline-block;\n position: relative;\n max-width: 100%;\n}\n.mdc-notched-outline .mdc-floating-label--float-above {\n text-overflow: clip;\n}\n.mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n max-width: calc(100% / 0.75);\n}\n\n.mdc-notched-outline--notched .mdc-notched-outline__notch {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 8px;\n border-top: none;\n}\n[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch, .mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl] {\n /* @noflip */\n padding-left: 8px;\n /* @noflip */\n padding-right: 0;\n}\n\n.mdc-notched-outline--no-label .mdc-notched-outline__notch {\n display: none;\n}\n\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n\n@keyframes mdc-ripple-fg-radius-in {\n from {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n }\n to {\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@keyframes mdc-ripple-fg-opacity-in {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: 0;\n }\n to {\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n}\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n@keyframes mdc-ripple-fg-opacity-out {\n from {\n -webkit-animation-timing-function: linear;\n animation-timing-function: linear;\n opacity: var(--mdc-ripple-fg-opacity, 0);\n }\n to {\n opacity: 0;\n }\n}\n.mdc-text-field--filled {\n --mdc-ripple-fg-size: 0;\n --mdc-ripple-left: 0;\n --mdc-ripple-top: 0;\n --mdc-ripple-fg-scale: 1;\n --mdc-ripple-fg-translate-end: 0;\n --mdc-ripple-fg-translate-start: 0;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n will-change: transform, opacity;\n}\n.mdc-text-field--filled .mdc-text-field__ripple::before,\n.mdc-text-field--filled .mdc-text-field__ripple::after {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n pointer-events: none;\n content: "";\n}\n.mdc-text-field--filled .mdc-text-field__ripple::before {\n transition: opacity 15ms linear, background-color 15ms linear;\n z-index: 1;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 1);\n}\n.mdc-text-field--filled .mdc-text-field__ripple::after {\n z-index: 0;\n /* @alternate */\n z-index: var(--mdc-ripple-z-index, 0);\n}\n.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before {\n -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n transform: scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after {\n top: 0;\n /* @noflip */\n left: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after {\n top: var(--mdc-ripple-top, 0);\n /* @noflip */\n left: var(--mdc-ripple-left, 0);\n}\n.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after {\n -webkit-animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;\n}\n.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after {\n -webkit-animation: mdc-ripple-fg-opacity-out 150ms;\n animation: mdc-ripple-fg-opacity-out 150ms;\n -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n}\n.mdc-text-field--filled .mdc-text-field__ripple::before,\n.mdc-text-field--filled .mdc-text-field__ripple::after {\n top: calc(50% - 100%);\n /* @noflip */\n left: calc(50% - 100%);\n width: 200%;\n height: 200%;\n}\n.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after {\n width: var(--mdc-ripple-fg-size, 100%);\n height: var(--mdc-ripple-fg-size, 100%);\n}\n\n.mdc-text-field__ripple {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.mdc-text-field {\n border-top-left-radius: 4px;\n /* @alternate */\n border-top-left-radius: var(--mdc-shape-small, 4px);\n border-top-right-radius: 4px;\n /* @alternate */\n border-top-right-radius: var(--mdc-shape-small, 4px);\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n display: inline-flex;\n align-items: baseline;\n padding: 0 16px;\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n /* @alternate */\n will-change: opacity, transform, color;\n}\n.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input {\n color: rgba(0, 0, 0, 0.87);\n}\n@media all {\n .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder {\n color: rgba(0, 0, 0, 0.54);\n }\n .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {\n color: rgba(0, 0, 0, 0.54);\n }\n .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::-ms-input-placeholder {\n color: rgba(0, 0, 0, 0.54);\n }\n .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder {\n color: rgba(0, 0, 0, 0.54);\n }\n}\n@media all {\n .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder {\n color: rgba(0, 0, 0, 0.54);\n }\n}\n.mdc-text-field .mdc-text-field__input {\n caret-color: #6200ee;\n /* @alternate */\n caret-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-helper-text {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,\n.mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-character-counter {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading {\n color: rgba(0, 0, 0, 0.54);\n}\n.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing {\n color: rgba(0, 0, 0, 0.54);\n}\n.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-text-field .mdc-floating-label {\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n pointer-events: none;\n}\n\n.mdc-text-field__input {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n height: 28px;\n transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);\n width: 100%;\n min-width: 0;\n border: none;\n border-radius: 0;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n padding: 0;\n}\n.mdc-text-field__input::-ms-clear {\n display: none;\n}\n.mdc-text-field__input::-webkit-calendar-picker-indicator {\n display: none;\n}\n.mdc-text-field__input:focus {\n outline: none;\n}\n.mdc-text-field__input:invalid {\n box-shadow: none;\n}\n@media all {\n .mdc-text-field__input::-webkit-input-placeholder {\n transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n }\n .mdc-text-field__input:-ms-input-placeholder {\n transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n }\n .mdc-text-field__input::-ms-input-placeholder {\n transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n }\n .mdc-text-field__input::placeholder {\n transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n }\n}\n@media all {\n .mdc-text-field__input:-ms-input-placeholder {\n transition: opacity 67ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n }\n}\n@media all {\n .mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder, .mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder {\n transition-delay: 40ms;\n transition-duration: 110ms;\n opacity: 1;\n }\n .mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {\n transition-delay: 40ms;\n transition-duration: 110ms;\n opacity: 1;\n }\n .mdc-text-field--no-label .mdc-text-field__input::-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input::-ms-input-placeholder {\n transition-delay: 40ms;\n transition-duration: 110ms;\n opacity: 1;\n }\n .mdc-text-field--no-label .mdc-text-field__input::placeholder, .mdc-text-field--focused .mdc-text-field__input::placeholder {\n transition-delay: 40ms;\n transition-duration: 110ms;\n opacity: 1;\n }\n}\n@media all {\n .mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder, .mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder {\n transition-delay: 40ms;\n transition-duration: 110ms;\n opacity: 1;\n }\n}\n\n.mdc-text-field__affix {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 1rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle1-font-size, 1rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle1-font-weight, 400);\n letter-spacing: 0.009375em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);\n height: 28px;\n transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n white-space: nowrap;\n}\n.mdc-text-field--label-floating .mdc-text-field__affix, .mdc-text-field--no-label .mdc-text-field__affix {\n opacity: 1;\n}\n@supports (-webkit-hyphens: none) {\n .mdc-text-field--outlined .mdc-text-field__affix {\n align-items: center;\n align-self: center;\n display: inline-flex;\n height: 100%;\n }\n}\n\n.mdc-text-field__affix--prefix {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 2px;\n}\n[dir=rtl] .mdc-text-field__affix--prefix, .mdc-text-field__affix--prefix[dir=rtl] {\n /* @noflip */\n padding-left: 2px;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-text-field--end-aligned .mdc-text-field__affix--prefix {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 12px;\n}\n[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix, .mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl] {\n /* @noflip */\n padding-left: 12px;\n /* @noflip */\n padding-right: 0;\n}\n\n.mdc-text-field__affix--suffix {\n /* @noflip */\n padding-left: 12px;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-text-field__affix--suffix, .mdc-text-field__affix--suffix[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 12px;\n}\n.mdc-text-field--end-aligned .mdc-text-field__affix--suffix {\n /* @noflip */\n padding-left: 2px;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix, .mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 2px;\n}\n\n.mdc-text-field--filled {\n height: 56px;\n}\n.mdc-text-field--filled .mdc-text-field__ripple::before,\n.mdc-text-field--filled .mdc-text-field__ripple::after {\n background-color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.87));\n}\n.mdc-text-field--filled:hover .mdc-text-field__ripple::before, .mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before, .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-text-field--filled::before {\n display: inline-block;\n width: 0;\n height: 40px;\n content: "";\n vertical-align: 0;\n}\n.mdc-text-field--filled:not(.mdc-text-field--disabled) {\n background-color: whitesmoke;\n}\n.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before {\n border-bottom-color: rgba(0, 0, 0, 0.42);\n}\n.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before {\n border-bottom-color: rgba(0, 0, 0, 0.87);\n}\n.mdc-text-field--filled .mdc-line-ripple::after {\n border-bottom-color: #6200ee;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-text-field--filled .mdc-floating-label {\n /* @noflip */\n left: 16px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-text-field--filled .mdc-floating-label, .mdc-text-field--filled .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 16px;\n}\n.mdc-text-field--filled .mdc-floating-label--float-above {\n -webkit-transform: translateY(-106%) scale(0.75);\n transform: translateY(-106%) scale(0.75);\n}\n.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input {\n height: 100%;\n}\n.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label {\n display: none;\n}\n.mdc-text-field--filled.mdc-text-field--no-label::before {\n display: none;\n}\n@supports (-webkit-hyphens: none) {\n .mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix {\n align-items: center;\n align-self: center;\n display: inline-flex;\n height: 100%;\n }\n}\n\n.mdc-text-field--outlined {\n height: 56px;\n overflow: visible;\n}\n.mdc-text-field--outlined .mdc-floating-label--float-above {\n -webkit-transform: translateY(-37.25px) scale(1);\n transform: translateY(-37.25px) scale(1);\n}\n.mdc-text-field--outlined .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-34.75px) scale(0.75);\n transform: translateY(-34.75px) scale(0.75);\n}\n.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-text-field--outlined .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-text-field-outlined 250ms 1;\n animation: mdc-floating-label-shake-float-above-text-field-outlined 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-text-field-outlined {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-text-field-outlined {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75);\n }\n}\n.mdc-text-field--outlined .mdc-text-field__input {\n height: 100%;\n}\n.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,\n.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,\n.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.38);\n}\n.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.87);\n}\n.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,\n.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,\n.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-theme-primary, #6200ee);\n}\n.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading {\n /* @noflip */\n border-top-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-left-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-top-right-radius: 0;\n /* @noflip */\n border-bottom-right-radius: 0;\n /* @noflip */\n border-bottom-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-left-radius: var(--mdc-shape-small, 4px);\n}\n[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading, .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl] {\n /* @noflip */\n border-top-left-radius: 0;\n /* @noflip */\n border-top-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-left-radius: 0;\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading {\n width: max(12px, var(--mdc-shape-small, 4px));\n }\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch {\n max-width: calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2);\n }\n}\n.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing {\n /* @noflip */\n border-top-left-radius: 0;\n /* @noflip */\n border-top-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-right-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-right-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-bottom-left-radius: 0;\n}\n[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing, .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl] {\n /* @noflip */\n border-top-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-top-left-radius: var(--mdc-shape-small, 4px);\n /* @noflip */\n border-top-right-radius: 0;\n /* @noflip */\n border-bottom-right-radius: 0;\n /* @noflip */\n border-bottom-left-radius: 4px;\n /* @alternate */\n /* @noflip */\n border-bottom-left-radius: var(--mdc-shape-small, 4px);\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined {\n /* @noflip */\n padding-left: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined {\n /* @noflip */\n padding-right: max(16px, var(--mdc-shape-small, 4px));\n }\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined + .mdc-text-field-helper-line {\n /* @noflip */\n padding-left: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined + .mdc-text-field-helper-line {\n /* @noflip */\n padding-right: max(16px, var(--mdc-shape-small, 4px));\n }\n}\n.mdc-text-field--outlined.mdc-text-field--with-leading-icon {\n /* @noflip */\n padding-left: 0;\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined.mdc-text-field--with-leading-icon {\n /* @noflip */\n padding-right: max(16px, var(--mdc-shape-small, 4px));\n }\n}\n[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon, .mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl] {\n /* @noflip */\n padding-right: 0;\n}\n@supports (top: max(0%)) {\n [dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon, .mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl] {\n /* @noflip */\n padding-left: max(16px, var(--mdc-shape-small, 4px));\n }\n}\n.mdc-text-field--outlined.mdc-text-field--with-trailing-icon {\n /* @noflip */\n padding-right: 0;\n}\n@supports (top: max(0%)) {\n .mdc-text-field--outlined.mdc-text-field--with-trailing-icon {\n /* @noflip */\n padding-left: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon, .mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n}\n@supports (top: max(0%)) {\n [dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon, .mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl] {\n /* @noflip */\n padding-right: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));\n }\n}\n.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {\n padding-top: 1px;\n}\n.mdc-text-field--outlined .mdc-text-field__ripple::before,\n.mdc-text-field--outlined .mdc-text-field__ripple::after {\n content: none;\n}\n.mdc-text-field--outlined .mdc-floating-label {\n /* @noflip */\n left: 4px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-text-field--outlined .mdc-floating-label, .mdc-text-field--outlined .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 4px;\n}\n.mdc-text-field--outlined .mdc-text-field__input {\n display: flex;\n border: none !important;\n background-color: transparent;\n}\n.mdc-text-field--outlined .mdc-notched-outline {\n z-index: 1;\n}\n\n.mdc-text-field--textarea {\n flex-direction: column;\n align-items: center;\n width: auto;\n height: auto;\n padding: 0;\n transition: none;\n}\n.mdc-text-field--textarea .mdc-floating-label {\n top: 19px;\n}\n.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above) {\n -webkit-transform: none;\n transform: none;\n}\n.mdc-text-field--textarea .mdc-text-field__input {\n flex-grow: 1;\n height: auto;\n min-height: 1.5rem;\n overflow-x: hidden;\n overflow-y: auto;\n box-sizing: border-box;\n resize: none;\n padding: 0 16px;\n line-height: 1.5rem;\n}\n.mdc-text-field--textarea.mdc-text-field--filled::before {\n display: none;\n}\n.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above {\n -webkit-transform: translateY(-10.25px) scale(0.75);\n transform: translateY(-10.25px) scale(0.75);\n}\n.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-textarea-filled 250ms 1;\n animation: mdc-floating-label-shake-float-above-textarea-filled 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-textarea-filled {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-textarea-filled {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75);\n }\n}\n.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input {\n margin-top: 23px;\n margin-bottom: 9px;\n}\n.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input {\n margin-top: 16px;\n margin-bottom: 16px;\n}\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {\n padding-top: 0;\n}\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above {\n -webkit-transform: translateY(-27.25px) scale(1);\n transform: translateY(-27.25px) scale(1);\n}\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-24.75px) scale(0.75);\n transform: translateY(-24.75px) scale(0.75);\n}\n.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-textarea-outlined 250ms 1;\n animation: mdc-floating-label-shake-float-above-textarea-outlined 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-textarea-outlined {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-textarea-outlined {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n}\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input {\n margin-top: 16px;\n margin-bottom: 16px;\n}\n.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label {\n top: 18px;\n}\n.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input {\n margin-bottom: 2px;\n}\n.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter {\n align-self: flex-end;\n padding: 0 16px;\n}\n.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after {\n display: inline-block;\n width: 0;\n height: 16px;\n content: "";\n vertical-align: -16px;\n}\n.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before {\n display: none;\n}\n\n.mdc-text-field__resizer {\n align-self: stretch;\n display: inline-flex;\n flex-direction: column;\n flex-grow: 1;\n max-height: 100%;\n max-width: 100%;\n min-height: 56px;\n min-width: -webkit-fit-content;\n min-width: -moz-fit-content;\n min-width: fit-content;\n /* @alternate */\n min-width: -moz-available;\n /* @alternate */\n min-width: -webkit-fill-available;\n overflow: hidden;\n resize: both;\n}\n.mdc-text-field--filled .mdc-text-field__resizer {\n -webkit-transform: translateY(-1px);\n transform: translateY(-1px);\n}\n.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,\n.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter {\n -webkit-transform: translateY(1px);\n transform: translateY(1px);\n}\n.mdc-text-field--outlined .mdc-text-field__resizer {\n -webkit-transform: translateX(-1px) translateY(-1px);\n transform: translateX(-1px) translateY(-1px);\n}\n[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer, .mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl] {\n -webkit-transform: translateX(1px) translateY(-1px);\n transform: translateX(1px) translateY(-1px);\n}\n.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,\n.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter {\n -webkit-transform: translateX(1px) translateY(1px);\n transform: translateX(1px) translateY(1px);\n}\n[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input, .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],\n[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,\n.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl] {\n -webkit-transform: translateX(-1px) translateY(1px);\n transform: translateX(-1px) translateY(1px);\n}\n\n.mdc-text-field--with-leading-icon {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 16px;\n}\n[dir=rtl] .mdc-text-field--with-leading-icon, .mdc-text-field--with-leading-icon[dir=rtl] {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label {\n max-width: calc(100% - 48px);\n /* @noflip */\n left: 48px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label, .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 48px;\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above {\n max-width: calc(100% / 0.75 - 64px / 0.75);\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label {\n /* @noflip */\n left: 36px;\n /* @noflip */\n right: initial;\n}\n[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label, .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl] {\n /* @noflip */\n left: initial;\n /* @noflip */\n right: 36px;\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch {\n max-width: calc(100% - 60px);\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above {\n -webkit-transform: translateY(-37.25px) translateX(-32px) scale(1);\n transform: translateY(-37.25px) translateX(-32px) scale(1);\n}\n[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above, .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl] {\n -webkit-transform: translateY(-37.25px) translateX(32px) scale(1);\n transform: translateY(-37.25px) translateX(32px) scale(1);\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-34.75px) translateX(-32px) scale(0.75);\n transform: translateY(-34.75px) translateX(-32px) scale(0.75);\n}\n[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above, .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],\n[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl] {\n -webkit-transform: translateY(-34.75px) translateX(32px) scale(0.75);\n transform: translateY(-34.75px) translateX(32px) scale(0.75);\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1;\n animation: mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon {\n 0% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon {\n 0% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75);\n }\n}\n[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake, .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1;\n animation: mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl {\n 0% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl {\n 0% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n transform: translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75);\n }\n}\n\n.mdc-text-field--with-trailing-icon {\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-text-field--with-trailing-icon, .mdc-text-field--with-trailing-icon[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 16px;\n}\n.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label {\n max-width: calc(100% - 64px);\n}\n.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above {\n max-width: calc(100% / 0.75 - 64px / 0.75);\n}\n.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch {\n max-width: calc(100% - 60px);\n}\n\n.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 0;\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label {\n max-width: calc(100% - 96px);\n}\n.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above {\n max-width: calc(100% / 0.75 - 96px / 0.75);\n}\n\n.mdc-text-field-helper-line {\n display: flex;\n justify-content: space-between;\n box-sizing: border-box;\n}\n.mdc-text-field + .mdc-text-field-helper-line {\n padding-right: 16px;\n padding-left: 16px;\n}\n\n.mdc-form-field > .mdc-text-field + label {\n align-self: flex-start;\n}\n\n.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {\n color: rgba(98, 0, 238, 0.87);\n}\n.mdc-text-field--focused .mdc-notched-outline__leading,\n.mdc-text-field--focused .mdc-notched-outline__notch,\n.mdc-text-field--focused .mdc-notched-outline__trailing {\n border-width: 2px;\n}\n.mdc-text-field--focused + .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg) {\n opacity: 1;\n}\n.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch {\n padding-top: 2px;\n}\n.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch {\n padding-top: 0;\n}\n\n.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before {\n border-bottom-color: #b00020;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after {\n border-bottom-color: #b00020;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label {\n color: #b00020;\n /* @alternate */\n color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid + .mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg {\n color: #b00020;\n /* @alternate */\n color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid .mdc-text-field__input {\n caret-color: #b00020;\n /* @alternate */\n caret-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing {\n color: #b00020;\n /* @alternate */\n color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before {\n border-bottom-color: #b00020;\n /* @alternate */\n border-bottom-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,\n.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,\n.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing {\n border-color: #b00020;\n /* @alternate */\n border-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,\n.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,\n.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing {\n border-color: #b00020;\n /* @alternate */\n border-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,\n.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,\n.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing {\n border-color: #b00020;\n /* @alternate */\n border-color: var(--mdc-theme-error, #b00020);\n}\n.mdc-text-field--invalid + .mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg {\n opacity: 1;\n}\n\n.mdc-text-field--disabled {\n pointer-events: none;\n}\n.mdc-text-field--disabled .mdc-text-field__input {\n color: rgba(0, 0, 0, 0.38);\n}\n@media all {\n .mdc-text-field--disabled .mdc-text-field__input::-webkit-input-placeholder {\n color: rgba(0, 0, 0, 0.38);\n }\n .mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder {\n color: rgba(0, 0, 0, 0.38);\n }\n .mdc-text-field--disabled .mdc-text-field__input::-ms-input-placeholder {\n color: rgba(0, 0, 0, 0.38);\n }\n .mdc-text-field--disabled .mdc-text-field__input::placeholder {\n color: rgba(0, 0, 0, 0.38);\n }\n}\n@media all {\n .mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder {\n color: rgba(0, 0, 0, 0.38);\n }\n}\n.mdc-text-field--disabled .mdc-floating-label {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-text-field--disabled + .mdc-text-field-helper-line .mdc-text-field-helper-text {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-text-field--disabled .mdc-text-field-character-counter,\n.mdc-text-field--disabled + .mdc-text-field-helper-line .mdc-text-field-character-counter {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-text-field--disabled .mdc-text-field__icon--leading {\n color: rgba(0, 0, 0, 0.3);\n}\n.mdc-text-field--disabled .mdc-text-field__icon--trailing {\n color: rgba(0, 0, 0, 0.3);\n}\n.mdc-text-field--disabled .mdc-text-field__affix--prefix {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-text-field--disabled .mdc-text-field__affix--suffix {\n color: rgba(0, 0, 0, 0.38);\n}\n.mdc-text-field--disabled .mdc-line-ripple::before {\n border-bottom-color: rgba(0, 0, 0, 0.06);\n}\n.mdc-text-field--disabled .mdc-notched-outline__leading,\n.mdc-text-field--disabled .mdc-notched-outline__notch,\n.mdc-text-field--disabled .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.06);\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-text-field__input::-webkit-input-placeholder {\n color: GrayText;\n }\n .mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder {\n color: GrayText;\n }\n .mdc-text-field--disabled .mdc-text-field__input::-ms-input-placeholder {\n color: GrayText;\n }\n .mdc-text-field--disabled .mdc-text-field__input::placeholder {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-floating-label {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled + .mdc-text-field-helper-line .mdc-text-field-helper-text {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-text-field-character-counter,\n.mdc-text-field--disabled + .mdc-text-field-helper-line .mdc-text-field-character-counter {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-text-field__icon--leading {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-text-field__icon--trailing {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-text-field__affix--prefix {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-text-field__affix--suffix {\n color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-line-ripple::before {\n border-bottom-color: GrayText;\n }\n}\n@media screen and (-ms-high-contrast: active) {\n .mdc-text-field--disabled .mdc-notched-outline__leading,\n.mdc-text-field--disabled .mdc-notched-outline__notch,\n.mdc-text-field--disabled .mdc-notched-outline__trailing {\n border-color: GrayText;\n }\n}\n.mdc-text-field--disabled .mdc-floating-label {\n cursor: default;\n}\n.mdc-text-field--disabled.mdc-text-field--filled {\n background-color: #fafafa;\n}\n.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple {\n display: none;\n}\n.mdc-text-field--disabled .mdc-text-field__input {\n pointer-events: auto;\n}\n\n.mdc-text-field--end-aligned .mdc-text-field__input {\n /* @noflip */\n text-align: right;\n}\n[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input, .mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl] {\n /* @noflip */\n text-align: left;\n}\n\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,\n.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix {\n /* @noflip */\n direction: ltr;\n}\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 2px;\n}\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix {\n /* @noflip */\n padding-left: 12px;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading {\n order: 1;\n}\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix {\n order: 2;\n}\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input {\n order: 3;\n}\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix {\n order: 4;\n}\n[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing, .mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing {\n order: 5;\n}\n[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input, .mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input {\n /* @noflip */\n text-align: right;\n}\n[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix, .mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix {\n /* @noflip */\n padding-right: 12px;\n}\n[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix, .mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix {\n /* @noflip */\n padding-left: 2px;\n}\n\n.mdc-text-field-helper-text {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.75rem;\n /* @alternate */\n font-size: var(--mdc-typography-caption-font-size, 0.75rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-caption-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-caption-font-weight, 400);\n letter-spacing: 0.0333333333em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-caption-text-transform, inherit);\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n margin: 0;\n opacity: 0;\n will-change: opacity;\n transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.mdc-text-field-helper-text::before {\n display: inline-block;\n width: 0;\n height: 16px;\n content: "";\n vertical-align: 0;\n}\n\n.mdc-text-field-helper-text--persistent {\n transition: none;\n opacity: 1;\n will-change: initial;\n}\n\n.mdc-text-field-character-counter {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.75rem;\n /* @alternate */\n font-size: var(--mdc-typography-caption-font-size, 0.75rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-caption-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-caption-font-weight, 400);\n letter-spacing: 0.0333333333em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-caption-letter-spacing, 0.0333333333em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-decoration: var(--mdc-typography-caption-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-caption-text-transform, inherit);\n display: block;\n margin-top: 0;\n /* @alternate */\n line-height: normal;\n /* @noflip */\n margin-left: auto;\n /* @noflip */\n margin-right: 0;\n /* @noflip */\n padding-left: 16px;\n /* @noflip */\n padding-right: 0;\n white-space: nowrap;\n}\n.mdc-text-field-character-counter::before {\n display: inline-block;\n width: 0;\n height: 16px;\n content: "";\n vertical-align: 0;\n}\n[dir=rtl] .mdc-text-field-character-counter, .mdc-text-field-character-counter[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: auto;\n}\n[dir=rtl] .mdc-text-field-character-counter, .mdc-text-field-character-counter[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 16px;\n}\n\n.mdc-text-field__icon {\n align-self: center;\n cursor: pointer;\n}\n.mdc-text-field__icon:not([tabindex]), .mdc-text-field__icon[tabindex="-1"] {\n cursor: default;\n pointer-events: none;\n}\n.mdc-text-field__icon svg {\n display: block;\n}\n\n.mdc-text-field__icon--leading {\n /* @noflip */\n margin-left: 16px;\n /* @noflip */\n margin-right: 8px;\n}\n[dir=rtl] .mdc-text-field__icon--leading, .mdc-text-field__icon--leading[dir=rtl] {\n /* @noflip */\n margin-left: 8px;\n /* @noflip */\n margin-right: 16px;\n}\n\n.mdc-text-field__icon--trailing {\n padding: 12px;\n /* @noflip */\n margin-left: 0px;\n /* @noflip */\n margin-right: 0px;\n}\n[dir=rtl] .mdc-text-field__icon--trailing, .mdc-text-field__icon--trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0px;\n /* @noflip */\n margin-right: 0px;\n}\n\n/*# sourceMappingURL=mdc.textfield.css.map*/'},126(t){"use strict";t.exports='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}'},954(t){"use strict";t.exports=__rspack_external__954},487(t){"use strict";t.exports=__rspack_external__487},368(t){"use strict";t.exports=__rspack_external__368},650(t){"use strict";t.exports=__rspack_external__650},673(t){"use strict";t.exports=__rspack_external__673},554(t,i,n){"use strict";let r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E;var T,k,A,I=Object.create,S=Object.defineProperty,D=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyNames,M=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,L=(t,i)=>()=>(i||(t((i={exports:{}}).exports,i),t=null),i.exports);function R(t,i){this.x=t,this.y=i}function F(){return r??="u">typeof OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap}function O(){if(null==a&&(a=!1,F())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let i=0;i<25;i++){let n=4*i;t.fillStyle=`rgb(${n},${n+1},${n+2})`,t.fillRect(i%5,Math.floor(i/5),1,1)}let i=t.getImageData(0,0,5,5).data;for(let t=0;t<100;t++)if(t%4!=3&&i[t]!==t){a=!0;break}}}return a||!1}R.prototype={clone(){return new R(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,i){return this.clone()._rotateAround(t,i)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let i=t.x-this.x,n=t.y-this.y;return i*i+n*n},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,i){return Math.atan2(this.x*i-this.y*t,this.x*t+this.y*i)},_matMult(t){let i=t[0]*this.x+t[1]*this.y,n=t[2]*this.x+t[3]*this.y;return this.x=i,this.y=n,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let i=Math.cos(t),n=Math.sin(t),r=i*this.x-n*this.y,a=n*this.x+i*this.y;return this.x=r,this.y=a,this},_rotateAround(t,i){let n=Math.cos(t),r=Math.sin(t),a=i.x+n*(this.x-i.x)-r*(this.y-i.y),o=i.y+r*(this.x-i.x)+n*(this.y-i.y);return this.x=a,this.y=o,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:R},R.convert=function(t){if(t instanceof R)return t;if(Array.isArray(t))return new R(+t[0],+t[1]);if(void 0!==t.x&&void 0!==t.y)return new R(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};var B="u">typeof Float32Array?Float32Array:Array;function N(){var t=new B(9);return B!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function V(t,i){var n=Math.sin(i),r=Math.cos(i);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function $(){var t=new B(16);return B!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function j(t){var i=new B(16);return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i[6]=t[6],i[7]=t[7],i[8]=t[8],i[9]=t[9],i[10]=t[10],i[11]=t[11],i[12]=t[12],i[13]=t[13],i[14]=t[14],i[15]=t[15],i}function U(t,i){return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],t}function q(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function G(t,i){var n=i[0],r=i[1],a=i[2],o=i[3],s=i[4],l=i[5],c=i[6],d=i[7],h=i[8],u=i[9],p=i[10],m=i[11],f=i[12],g=i[13],_=i[14],v=i[15],y=n*l-r*s,b=n*c-a*s,x=n*d-o*s,w=r*c-a*l,C=r*d-o*l,E=a*d-o*c,T=h*g-u*f,k=h*_-p*f,A=h*v-m*f,I=u*_-p*g,S=u*v-m*g,D=p*v-m*_,P=y*D-b*S+x*I+w*A-C*k+E*T;return P?(P=1/P,t[0]=(l*D-c*S+d*I)*P,t[1]=(a*S-r*D-o*I)*P,t[2]=(g*E-_*C+v*w)*P,t[3]=(p*C-u*E-m*w)*P,t[4]=(c*A-s*D-d*k)*P,t[5]=(n*D-a*A+o*k)*P,t[6]=(_*x-f*E-v*b)*P,t[7]=(h*E-p*x+m*b)*P,t[8]=(s*S-l*A+d*T)*P,t[9]=(r*A-n*S-o*T)*P,t[10]=(f*C-g*x+v*y)*P,t[11]=(u*x-h*C-m*y)*P,t[12]=(l*k-s*I-c*T)*P,t[13]=(n*I-r*k+a*T)*P,t[14]=(g*b-f*w-_*y)*P,t[15]=(h*w-u*b+p*y)*P,t):null}function H(t,i,n){var r=i[0],a=i[1],o=i[2],s=i[3],l=i[4],c=i[5],d=i[6],h=i[7],u=i[8],p=i[9],m=i[10],f=i[11],g=i[12],_=i[13],v=i[14],y=i[15],b=n[0],x=n[1],w=n[2],C=n[3];return t[0]=b*r+x*l+w*u+C*g,t[1]=b*a+x*c+w*p+C*_,t[2]=b*o+x*d+w*m+C*v,t[3]=b*s+x*h+w*f+C*y,b=n[4],x=n[5],w=n[6],C=n[7],t[4]=b*r+x*l+w*u+C*g,t[5]=b*a+x*c+w*p+C*_,t[6]=b*o+x*d+w*m+C*v,t[7]=b*s+x*h+w*f+C*y,b=n[8],x=n[9],w=n[10],C=n[11],t[8]=b*r+x*l+w*u+C*g,t[9]=b*a+x*c+w*p+C*_,t[10]=b*o+x*d+w*m+C*v,t[11]=b*s+x*h+w*f+C*y,b=n[12],x=n[13],w=n[14],C=n[15],t[12]=b*r+x*l+w*u+C*g,t[13]=b*a+x*c+w*p+C*_,t[14]=b*o+x*d+w*m+C*v,t[15]=b*s+x*h+w*f+C*y,t}function Z(t,i,n){var r,a,o,s,l,c,d,h,u,p,m,f,g=n[0],_=n[1],v=n[2];return i===t?(t[12]=i[0]*g+i[4]*_+i[8]*v+i[12],t[13]=i[1]*g+i[5]*_+i[9]*v+i[13],t[14]=i[2]*g+i[6]*_+i[10]*v+i[14],t[15]=i[3]*g+i[7]*_+i[11]*v+i[15]):(r=i[0],a=i[1],o=i[2],s=i[3],l=i[4],c=i[5],d=i[6],h=i[7],u=i[8],p=i[9],m=i[10],f=i[11],t[0]=r,t[1]=a,t[2]=o,t[3]=s,t[4]=l,t[5]=c,t[6]=d,t[7]=h,t[8]=u,t[9]=p,t[10]=m,t[11]=f,t[12]=r*g+l*_+u*v+i[12],t[13]=a*g+c*_+p*v+i[13],t[14]=o*g+d*_+m*v+i[14],t[15]=s*g+h*_+f*v+i[15]),t}function X(t,i,n){var r=n[0],a=n[1],o=n[2];return t[0]=i[0]*r,t[1]=i[1]*r,t[2]=i[2]*r,t[3]=i[3]*r,t[4]=i[4]*a,t[5]=i[5]*a,t[6]=i[6]*a,t[7]=i[7]*a,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=i[11]*o,t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],t}function W(t,i,n){var r=Math.sin(n),a=Math.cos(n),o=i[4],s=i[5],l=i[6],c=i[7],d=i[8],h=i[9],u=i[10],p=i[11];return i!==t&&(t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15]),t[4]=o*a+d*r,t[5]=s*a+h*r,t[6]=l*a+u*r,t[7]=c*a+p*r,t[8]=d*a-o*r,t[9]=h*a-s*r,t[10]=u*a-l*r,t[11]=p*a-c*r,t}function Y(t,i,n){var r=Math.sin(n),a=Math.cos(n),o=i[0],s=i[1],l=i[2],c=i[3],d=i[8],h=i[9],u=i[10],p=i[11];return i!==t&&(t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15]),t[0]=o*a-d*r,t[1]=s*a-h*r,t[2]=l*a-u*r,t[3]=c*a-p*r,t[8]=o*r+d*a,t[9]=s*r+h*a,t[10]=l*r+u*a,t[11]=c*r+p*a,t}function K(t,i,n){var r=Math.sin(n),a=Math.cos(n),o=i[0],s=i[1],l=i[2],c=i[3],d=i[4],h=i[5],u=i[6],p=i[7];return i!==t&&(t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15]),t[0]=o*a+d*r,t[1]=s*a+h*r,t[2]=l*a+u*r,t[3]=c*a+p*r,t[4]=d*a-o*r,t[5]=h*a-s*r,t[6]=u*a-l*r,t[7]=p*a-c*r,t}function J(t,i){return t[0]=i[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=i[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}var Q=function(t,i,n,r,a){var o=1/Math.tan(i/2);if(t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=a&&1/0!==a){var s=1/(r-a);t[10]=(a+r)*s,t[14]=2*a*r*s}else t[10]=-1,t[14]=-2*r;return t},ee=function(t,i,n,r,a,o,s){var l=1/(i-n),c=1/(r-a),d=1/(o-s);return t[0]=-2*l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*d,t[11]=0,t[12]=(i+n)*l,t[13]=(a+r)*c,t[14]=(s+o)*d,t[15]=1,t};function et(t,i){return t[0]===i[0]&&t[1]===i[1]&&t[2]===i[2]&&t[3]===i[3]&&t[4]===i[4]&&t[5]===i[5]&&t[6]===i[6]&&t[7]===i[7]&&t[8]===i[8]&&t[9]===i[9]&&t[10]===i[10]&&t[11]===i[11]&&t[12]===i[12]&&t[13]===i[13]&&t[14]===i[14]&&t[15]===i[15]}function ei(t,i){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5],c=t[6],d=t[7],h=t[8],u=t[9],p=t[10],m=t[11],f=t[12],g=t[13],_=t[14],v=t[15],y=i[0],b=i[1],x=i[2],w=i[3],C=i[4],E=i[5],T=i[6],k=i[7],A=i[8],I=i[9],S=i[10],D=i[11],P=i[12],M=i[13],z=i[14],L=i[15];return Math.abs(n-y)<=1e-6*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-b)<=1e-6*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(a-x)<=1e-6*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(o-w)<=1e-6*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-C)<=1e-6*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-E)<=1e-6*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-T)<=1e-6*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(d-k)<=1e-6*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(h-A)<=1e-6*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(u-I)<=1e-6*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(p-S)<=1e-6*Math.max(1,Math.abs(p),Math.abs(S))&&Math.abs(m-D)<=1e-6*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(f-P)<=1e-6*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(g-M)<=1e-6*Math.max(1,Math.abs(g),Math.abs(M))&&Math.abs(_-z)<=1e-6*Math.max(1,Math.abs(_),Math.abs(z))&&Math.abs(v-L)<=1e-6*Math.max(1,Math.abs(v),Math.abs(L))}function en(){var t=new B(3);return B!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function er(t){var i=new B(3);return i[0]=t[0],i[1]=t[1],i[2]=t[2],i}function ea(t){var i=t[0],n=t[1],r=t[2];return Math.sqrt(i*i+n*n+r*r)}function eo(t,i,n){var r=new B(3);return r[0]=t,r[1]=i,r[2]=n,r}function es(t,i,n){return t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function el(t,i,n){return t[0]=i[0]-n[0],t[1]=i[1]-n[1],t[2]=i[2]-n[2],t}function ec(t,i,n){return t[0]=i[0]*n,t[1]=i[1]*n,t[2]=i[2]*n,t}function ed(t,i,n,r){return t[0]=i[0]+n[0]*r,t[1]=i[1]+n[1]*r,t[2]=i[2]+n[2]*r,t}function eh(t,i){var n=i[0]-t[0],r=i[1]-t[1],a=i[2]-t[2];return Math.sqrt(n*n+r*r+a*a)}function eu(t,i){return t[0]=-i[0],t[1]=-i[1],t[2]=-i[2],t}function ep(t,i){var n=i[0],r=i[1],a=i[2],o=n*n+r*r+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=i[0]*o,t[1]=i[1]*o,t[2]=i[2]*o,t}function em(t,i){return t[0]*i[0]+t[1]*i[1]+t[2]*i[2]}function ef(t,i,n){var r=i[0],a=i[1],o=i[2],s=n[0],l=n[1],c=n[2];return t[0]=a*c-o*l,t[1]=o*s-r*c,t[2]=r*l-a*s,t}function eg(t,i,n){var r=i[0],a=i[1],o=i[2],s=n[3]*r+n[7]*a+n[11]*o+n[15];return s||=1,t[0]=(n[0]*r+n[4]*a+n[8]*o+n[12])/s,t[1]=(n[1]*r+n[5]*a+n[9]*o+n[13])/s,t[2]=(n[2]*r+n[6]*a+n[10]*o+n[14])/s,t}function e_(t,i,n){var r=i[0],a=i[1],o=i[2];return t[0]=r*n[0]+a*n[3]+o*n[6],t[1]=r*n[1]+a*n[4]+o*n[7],t[2]=r*n[2]+a*n[5]+o*n[8],t}function ev(t,i,n){var r=n[0],a=n[1],o=n[2],s=n[3],l=i[0],c=i[1],d=i[2],h=a*d-o*c,u=o*l-r*d,p=r*c-a*l;return h+=h,u+=u,p+=p,t[0]=l+s*h+a*p-o*u,t[1]=c+s*u+o*h-r*p,t[2]=d+s*p+r*u-a*h,t}function ey(t,i,n,r){var a=[],o=[];return a[0]=i[0]-n[0],a[1]=i[1]-n[1],a[2]=i[2]-n[2],o[0]=a[0],o[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),o[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function eb(t,i,n,r){var a=[],o=[];return a[0]=i[0]-n[0],a[1]=i[1]-n[1],a[2]=i[2]-n[2],o[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),o[1]=a[1],o[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function ex(t,i,n,r){var a=[],o=[];return a[0]=i[0]-n[0],a[1]=i[1]-n[1],a[2]=i[2]-n[2],o[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),o[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),o[2]=a[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function ew(t){return t[0]=0,t[1]=0,t[2]=0,t}function eC(t,i,n){return t[0]=i[0]*n,t[1]=i[1]*n,t[2]=i[2]*n,t[3]=i[3]*n,t}function eE(t,i,n){var r=i[0],a=i[1],o=i[2],s=i[3];return t[0]=n[0]*r+n[4]*a+n[8]*o+n[12]*s,t[1]=n[1]*r+n[5]*a+n[9]*o+n[13]*s,t[2]=n[2]*r+n[6]*a+n[10]*o+n[14]*s,t[3]=n[3]*r+n[7]*a+n[11]*o+n[15]*s,t}en();var eT=function(t,i,n){return t[0]=i[0]*n[0],t[1]=i[1]*n[1],t[2]=i[2]*n[2],t[3]=i[3]*n[3],t};function ek(){var t=new B(4);return B!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function eA(t,i,n){var r=i[0],a=i[1],o=i[2],s=i[3],l=n[0],c=n[1],d=n[2],h=n[3];return t[0]=r*h+s*l+a*d-o*c,t[1]=a*h+s*c+o*l-r*d,t[2]=o*h+s*d+r*c-a*l,t[3]=s*h-r*l-a*c-o*d,t}function eI(t,i,n,r){var a,o,s,l,c=i[0],d=i[1],h=i[2],u=i[3],p=n[0],m=n[1],f=n[2],g=n[3],_=c*p+d*m+h*f+u*g;return _<0&&(_=-_,p=-p,m=-m,f=-f,g=-g),1-_>1e-6?(o=Math.sin(a=Math.acos(_)),s=Math.sin((1-r)*a)/o,l=Math.sin(r*a)/o):(s=1-r,l=r),t[0]=s*c+l*p,t[1]=s*d+l*m,t[2]=s*h+l*f,t[3]=s*u+l*g,t}function eS(t,i,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"zyx",o=Math.PI/360;i*=o,r*=o,n*=o;var s=Math.sin(i),l=Math.cos(i),c=Math.sin(n),d=Math.cos(n),h=Math.sin(r),u=Math.cos(r);switch(a){case"xyz":t[0]=s*d*u+l*c*h,t[1]=l*c*u-s*d*h,t[2]=l*d*h+s*c*u,t[3]=l*d*u-s*c*h;break;case"xzy":t[0]=s*d*u-l*c*h,t[1]=l*c*u-s*d*h,t[2]=l*d*h+s*c*u,t[3]=l*d*u+s*c*h;break;case"yxz":t[0]=s*d*u+l*c*h,t[1]=l*c*u-s*d*h,t[2]=l*d*h-s*c*u,t[3]=l*d*u+s*c*h;break;case"yzx":t[0]=s*d*u+l*c*h,t[1]=l*c*u+s*d*h,t[2]=l*d*h-s*c*u,t[3]=l*d*u-s*c*h;break;case"zxy":t[0]=s*d*u-l*c*h,t[1]=l*c*u+s*d*h,t[2]=l*d*h+s*c*u,t[3]=l*d*u-s*c*h;break;case"zyx":t[0]=s*d*u-l*c*h,t[1]=l*c*u+s*d*h,t[2]=l*d*h-s*c*u,t[3]=l*d*u+s*c*h;break;default:throw Error("Unknown angle order "+a)}return t}he=new B(4),B!=Float32Array&&(he[0]=0,he[1]=0,he[2]=0,he[3]=0);var eD=function(t,i,n,r){var a=new B(4);return a[0]=t,a[1]=i,a[2]=n,a[3]=r,a};function eP(){var t=new B(2);return B!=Float32Array&&(t[0]=0,t[1]=0),t}function eM(t,i){var n=new B(2);return n[0]=t,n[1]=i,n}function ez(t,i,n){return t[0]=i[0]*n,t[1]=i[1]*n,t}function eL(t){var i=t[0],n=t[1];return Math.sqrt(i*i+n*n)}function eR(t){return t[0]=0,t[1]=0,t}en(),eo(1,0,0),eo(0,1,0),ek(),ek(),N();var eF=function(t){var i=t[0],n=t[1];return i*i+n*n};function eO(t,i,n){return i*(8192/(t.tileSize*2**(n-t.tileID.overscaledZ)))}function eB(t){return t instanceof Error?t:Error("string"==typeof t?t:String(t))}function eN(){return new Float64Array(4)}function eV(){return new Float64Array(3)}function e$(){return new Float64Array(16)}function ej(){let t=new Float64Array(16);return q(t),t}function eU(){let t=new Float32Array(16);return q(t),t}function eq(t,i,n,r,a=!1){if(!n[0]&&!n[1])return[0,0];let o=a?"map"===r?-t.bearingInRadians:0:"viewport"===r?t.bearingInRadians:0;if(o){let t=Math.sin(o),i=Math.cos(o);n=[n[0]*i-n[1]*t,n[0]*t+n[1]*i]}return[a?n[0]:eO(i,n[0],t.zoom),a?n[1]:eO(i,n[1],t.zoom)]}function eG(t,i){return t[0]*i[0]+t[1]*i[1]+t[2]*i[2]+t[3]}function eH(t,i,n){var r,a,o,s,l,c,d,h,u,p;let m=(a=(r=[t[0],t[1],t[2],i[0],i[1],i[2],n[0],n[1],n[2]])[0],o=r[1],s=r[2],l=r[3],c=r[4],d=r[5],h=r[6],u=r[7],a*((p=r[8])*c-d*u)+o*(-p*l+d*h)+s*(u*l-c*h));if(0===m)return null;let f=ef([],[i[0],i[1],i[2]],[n[0],n[1],n[2]]),g=ef([],[n[0],n[1],n[2]],[t[0],t[1],t[2]]),_=ef([],[t[0],t[1],t[2]],[i[0],i[1],i[2]]),v=ec([],f,-t[3]);return es(v,v,ec([],g,-i[3])),es(v,v,ec([],_,-n[3])),ec(v,v,1/m),v}function eZ(t,i,n){let r=t[0]*n[0]+t[1]*n[1]+t[2]*n[2],a=i[0]*n[0]+i[1]*n[1]+i[2]*n[2];return 0===a?null:(-r-n[3])/a}function eX(t,i,n,r){let a=Math.sqrt(t*t+i*i),o=Math.sqrt(n*n+r*r);t/=a,i/=a;let s=Math.acos(t*(n/=o)+i*(r/=o));return-i*n+t*r>0?s:-s}function eW(t,i){let n=eK(t,360),r=eK(i,360),a=r-n,o=r>n?a-360:a+360;return Math.abs(a)<Math.abs(o)?a:o}function eY(t,i){let n=eK(t,2*Math.PI),r=eK(i,2*Math.PI);return Math.min(Math.abs(n-r),Math.abs(n-r+2*Math.PI),Math.abs(n-r-2*Math.PI))}function eK(t,i){return(t%i+i)%i}function eJ(t,i,n,r,a){return eQ(r,a,e5((t-i)/(n-i),0,1))}function eQ(t,i,n){return t*(1-n)+i*n}function e0(t){let i=1/0,n=1/0,r=-1/0,a=-1/0;for(let o of t)i=Math.min(i,o.x),n=Math.min(n,o.y),r=Math.max(r,o.x),a=Math.max(a,o.y);return[i,n,r,a]}function e2(t){if(!t.length)return new Set;let i=Math.max(...t.map(t=>t.canonical.z)),n=1/0,r=-1/0,a=1/0,o=-1/0,s=[];for(let l of t){let{x:t,y:c,z:d}=l.canonical,h=2**(i-d),u=t*h,p=c*h;s.push({id:l,x:u,y:p}),u<n&&(n=u),u>r&&(r=u),p<a&&(a=p),p>o&&(o=p)}let l=new Set;for(let t of s)(t.x===n||t.x===r||t.y===a||t.y===o)&&l.add(t.id);return l}function e1(t,i,n,r){let a,o,s,l,c,d;return a=3*t,o=3*(n-t)-a,s=1-a-o,l=3*i,c=3*(r-i)-l,d=1-l-c,function(t,i=1e-6){if(t<=0)return 0;if(t>=1)return 1;let n=t;for(let r=0;r<8;r++){let r=((s*n+o)*n+a)*n-t;if(Math.abs(r)<i)return((d*n+c)*n+l)*n;let h=(3*s*n+2*o)*n+a;if(1e-6>Math.abs(h))break;n-=r/h}let r=0,h=1;n=t;for(let l=0;l<20;l++){let l=((s*n+o)*n+a)*n;if(Math.abs(l-t)<i)break;t>l?r=n:h=n,n=(r+h)*.5}return((d*n+c)*n+l)*n}}eP();let e3=e1(.25,.1,.25,1);function e5(t,i,n){return Math.min(n,Math.max(i,t))}function e4(t,i,n){let r=n-i,a=((t-i)%r+r)%r+i;return a===i?n:a}function e6(t,...i){for(let n of i)for(let i in n)t[i]=n[i];return t}function e8(t,i){let n={};for(let r of i)r in t&&(n[r]=t[r]);return n}let e7=1;function e9(){return e7++}function te(t){return t<=1?1:2**Math.ceil(Math.log(t)/Math.LN2)}function tt(t){return 2**t}function ti(t){return Math.log(t)/Math.LN2}function tn(t,i,n){if(i<=0)return t;let r=1/i;return void 0===n||1e-10>Math.abs(n)?Math.round(t*r)/r:(n>0?Math.ceil(t*r-1e-9):Math.floor(t*r+1e-10))/r}function tr(t,i,n){let r={};for(let a in t)r[a]=i.call(n||this,t[a],a,t);return r}function ta(t,i,n){let r={};for(let a in t)i.call(n||this,t[a],a,t)&&(r[a]=t[a]);return r}function to(t){return Array.isArray(t)?t.map(to):"object"==typeof t&&t?tr(t,to):t}let ts={};function tl(t){ts[t]||("u">typeof console&&console.warn(t),ts[t]=!0)}function tc(t,i,n){return(n.y-t.y)*(i.x-t.x)>(i.y-t.y)*(n.x-t.x)}function td(t,i,n,r){let a=i.y-t.y,o=i.x-t.x,s=r.y-n.y,l=r.x-n.x,c=s*o-l*a;if(0===c)return null;let d=(l*(t.y-n.y)-s*(t.x-n.x))/c;return new R(t.x+d*o,t.y+d*a)}function th([t,i,n]){return i+=90,[t*Math.cos(i*=Math.PI/180)*Math.sin(n*=Math.PI/180),t*Math.sin(i)*Math.sin(n),t*Math.cos(n)]}function tu(t){return"u">typeof WorkerGlobalScope&&void 0!==t&&t instanceof WorkerGlobalScope}function tp(t){let i={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(t,n,r,a)=>{let o=r||a;return i[n]=!o||o.toLowerCase(),""}),i["max-age"]){let t=parseInt(i["max-age"],10);isNaN(t)?delete i["max-age"]:i["max-age"]=t}return i}let tm=null;function tf(t){if(null==tm){let i=t.navigator?t.navigator.userAgent:null;tm=!!t.safari||!!(i&&(/\b(iPad|iPhone|iPod)\b/.test(i)||i.match("Safari")&&!i.match("Chrome")))}return tm}function tg(t){return"u">typeof ImageBitmap&&t instanceof ImageBitmap}let t_=async(t,i)=>{let n=new Blob([new Uint8Array(t)],{type:"image/png"});try{return createImageBitmap(n,i)}catch(t){throw Error(`Could not load image because of ${eB(t).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}};async function tv(t,i,n,r,a){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let o=new VideoFrame(t,{timestamp:0});try{let s,l,c,d=o?.format;if(!d||!(d.startsWith("BGR")||d.startsWith("RGB")))throw Error(`Unrecognized format ${d}`);let h=d.startsWith("BGR"),u=new Uint8ClampedArray(r*a*4);if(await o.copyTo(u,(s=(Math.max(0,n)-n)*r*4+4*Math.max(-i,0),l=Math.max(0,i),c=Math.max(0,n),{rect:{x:l,y:c,width:Math.min(t.width,i+r)-l,height:Math.min(t.height,n+a)-c},layout:[{offset:s,stride:4*r}]})),h)for(let t=0;t<u.length;t+=4){let i=u[t];u[t]=u[t+2],u[t+2]=i}return u}finally{o.close()}}function ty(t,i,n,r){return t.addEventListener(i,n,r),{unsubscribe:()=>{t.removeEventListener(i,n,r)}}}function tb(t){return t*Math.PI/180}function tx(t){return t/Math.PI*180}function tw(t,i){return t.roll==i.roll&&t.pitch==i.pitch&&t.bearing==i.bearing}function tC(t){var i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_;let v=new Float64Array(9);i=t[0],n=t[1],r=t[2],a=t[3],o=i+i,s=n+n,l=r+r,c=i*o,d=n*o,h=n*s,u=r*o,p=r*s,m=r*l,f=a*o,g=a*s,_=a*l,v[0]=1-h-m,v[3]=d-_,v[6]=u+g,v[1]=d+_,v[4]=1-c-m,v[7]=p-f,v[2]=u-g,v[5]=p+f,v[8]=1-c-h;let y=tx(-Math.asin(e5(v[2],-1,1))),b,x;return .001>Math.hypot(v[5],v[8])?(b=0,x=-tx(Math.atan2(v[3],v[4]))):(b=tx(0===v[5]&&0===v[8]?0:Math.atan2(v[5],v[8])),x=tx(0===v[1]&&0===v[0]?0:Math.atan2(v[1],v[0]))),{roll:b,pitch:y+90,bearing:x}}function tE(t,i,n){let r=eM(i.x-n.x,i.y-n.y),a=eM(t.x-n.x,t.y-n.y);return tx(Math.atan2(r[0]*a[1]-r[1]*a[0],r[0]*a[0]+r[1]*a[1]))}function tT(t,i,n){let r=new Float64Array(4);return eS(r,t,i-90,n),r}let tk={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},tA={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};function tI(t,i){return tk[i]&&"touches"in t}function tS(t,i){if(!tA[i])return!1;let n=t?.target?.ownerDocument?.defaultView||window;return t instanceof n.MouseEvent||t instanceof n.WheelEvent}function tD(t){return tk[t]||tA[t]}let tP="AbortError";var tM=class extends Error{constructor(t=tP){super(t instanceof Error?t.message:t),this.name=tP,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function tz(t){return t instanceof Error&&"AbortError"===t.name}function tL(t){if(t.aborted)throw new tM(t.reason)}let tR={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function tF(t){return tR.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function tO(t,i){tR.REGISTERED_PROTOCOLS[t]=i}function tB(t){delete tR.REGISTERED_PROTOCOLS[t]}let tN="global-dispatcher";var tV=class extends Error{constructor(t,i,n,r){super(`AJAXError: ${i} (${t}): ${n}`),this.status=t,this.statusText=i,this.url=n,this.body=r}};function t$(){if(tu(self))return self.worker?.referrer;if("blob:"===window.location.protocol)try{return window.parent.location.href}catch{}return window.location.href}async function tj(t,i){let n,r,a=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:t$(),referrerPolicy:t.referrerPolicy,signal:i.signal});"json"!==t.type||a.headers.has("Accept")||a.headers.set("Accept","application/json");try{n=await fetch(a)}catch(i){throw tz(i)?i:new tV(0,eB(i).message,t.url,new Blob)}if(!n.ok){let i=await n.blob();throw new tV(n.status,n.statusText,t.url,i)}r="arrayBuffer"===t.type||"image"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text();let o=await r;return tL(i.signal),{data:o,cacheControl:n.headers.get("Cache-Control"),expires:n.headers.get("Expires"),etag:n.headers.get("ETag")}}let tU=async function(t,i){let n;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let n=tF(t.url);if(n){let r=await n(t,i);return r.data||"arrayBuffer"!==t.type?r:e6(r,{data:new ArrayBuffer(0)})}if(tu(self)&&self.worker?.actor)return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:tN},i)}if(!((n=t.url).startsWith("file:")||t$()?.startsWith("file:")&&!/^\w+:/.test(n))){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return tj(t,i);if(tu(self)&&self.worker?.actor)return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:tN},i)}return new Promise((n,r)=>{let a=new XMLHttpRequest;for(let i in a.open(t.method||"GET",t.url,!0),("arrayBuffer"===t.type||"image"===t.type)&&(a.responseType="arraybuffer"),t.headers)a.setRequestHeader(i,t.headers[i]);"json"===t.type&&(a.responseType="text",t.headers?.Accept||a.setRequestHeader("Accept","application/json")),a.withCredentials="include"===t.credentials,a.onerror=()=>{r(Error(a.statusText))},a.onload=()=>{if(!i.signal.aborted)if((a.status>=200&&a.status<300||0===a.status)&&null!==a.response){let i=a.response;if("json"===t.type)try{i=JSON.parse(a.response)}catch(t){r(t);return}n({data:i,cacheControl:a.getResponseHeader("Cache-Control"),expires:a.getResponseHeader("Expires"),etag:a.getResponseHeader("ETag")})}else{let i=new Blob([a.response],{type:a.getResponseHeader("Content-Type")});r(new tV(a.status,a.statusText,t.url,i))}},i.signal.addEventListener("abort",()=>{a.abort(),r(new tM(i.signal.reason))}),a.send(t.body)})};function tq(t){if(!t||t.startsWith("data:image/"))return!0;if(t.startsWith("blob:")&&(t=t.slice(5)).startsWith("null"))return!1;if(0>=t.indexOf("://"))return!0;let i=new URL(t),n=window.location;return i.protocol===n.protocol&&i.host===n.host}function tG(t,i,n){n[t]?.includes(i)||(n[t]||=[],n[t].push(i))}function tH(t,i,n){if(n?.[t]){let r=n[t].indexOf(i);-1!==r&&n[t].splice(r,1)}}var tZ=class{constructor(t,i={}){e6(this,i),this.type=t}},tX=class extends tZ{constructor(t,i={}){super("error",e6({error:t},i))}},tW=class{on(t,i){return this._listeners||={},tG(t,i,this._listeners),{unsubscribe:()=>{this.off(t,i)}}}off(t,i){return tH(t,i,this._listeners),tH(t,i,this._oneTimeListeners),this}once(t,i){return i?(this._oneTimeListeners||={},tG(t,i,this._oneTimeListeners),this):new Promise(i=>this.once(t,i))}fire(t,i){let n="string"==typeof t?new tZ(t,i||{}):t,r=n.type;if(this.listens(r)){for(let t of(n.target=this,this._listeners?.[r]?.slice()??[]))t.call(this,n);for(let t of this._oneTimeListeners?.[r]?.slice()??[])tH(r,t,this._oneTimeListeners),t.call(this,n);let t=this._eventedParent;t&&(e6(n,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),t.fire(n))}else n instanceof tX&&console.error(n.error);return this}listens(t){return!!(this._listeners?.[t]?.length||this._oneTimeListeners?.[t]?.length||this._eventedParent?.listens(t))}setEventedParent(t,i){return this._eventedParent=t,this._eventedParentData=i,this}},tY={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},tK=class{constructor(t,i,n,r,a="error"){this.message=(t?`${t}: `:"")+n,r&&(this.identifier=r),this.severity=a,null!=i&&i.__line__&&(this.line=i.__line__)}};let tJ={kind:"null"},tQ={kind:"number"},t0={kind:"string"},t2={kind:"boolean"},t1={kind:"color"},t3={kind:"projectionDefinition"},t5={kind:"object"},t4={kind:"value"},t6={kind:"collator"},t8={kind:"formatted"},t7={kind:"padding"},t9={kind:"colorArray"},ie={kind:"numberArray"},it={kind:"resolvedImage"},ii={kind:"variableAnchorOffsetCollection"};function ir(t,i){return{kind:"array",itemType:t,N:i}}function ia(t){if("array"===t.kind){let i=ia(t.itemType);return"number"==typeof t.N?`array<${i}, ${t.N}>`:"value"===t.itemType.kind?"array":`array<${i}>`}return t.kind}let io=[tJ,tQ,t0,t2,t1,t3,t8,t5,ir(t4),t7,ie,t9,it,ii];function is(t,i){if("error"===i.kind)return null;if("array"===t.kind){if("array"===i.kind&&(0===i.N&&"value"===i.itemType.kind||!is(t.itemType,i.itemType))&&("number"!=typeof t.N||t.N===i.N))return null}else if(t.kind===i.kind)return null;else if("value"===t.kind){for(let t of io)if(!is(t,i))return null}return`Expected ${ia(t)} but found ${ia(i)} instead.`}function il(t,i){return i.some(i=>i.kind===t.kind)}function ic(t,i){return i.some(i=>"null"===i?null===t:"array"===i?Array.isArray(t):"object"===i?t&&!Array.isArray(t)&&"object"==typeof t:i===typeof t)}function id(t,i){return"array"===t.kind&&"array"===i.kind?t.itemType.kind===i.itemType.kind&&"number"==typeof t.N:t.kind===i.kind}let ih=4/29,iu=6/29,ip=6/29*3*(6/29),im=Math.PI/180,ig=180/Math.PI;function i_(t){return(t%=360)<0&&(t+=360),t}function iv([t,i,n,r]){t=iy(t);let a,o,s=ib((.2225045*t+.7168786*(i=iy(i))+.0606169*(n=iy(n)))/1);t===i&&i===n?a=o=s:(a=ib((.4360747*t+.3850649*i+.1430804*n)/.96422),o=ib((.0139322*t+.0971045*i+.7141733*n)/.82521));let l=116*s-16;return[l<0?0:l,500*(a-s),200*(s-o),r]}function iy(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function ib(t){return t>.008856451679035631?t**(1/3):t/ip+ih}function ix([t,i,n,r]){let a=(t+16)/116,o=isNaN(i)?a:a+i/500,s=isNaN(n)?a:a-n/200;return a=+iC(a),[iw(3.1338561*(o=.96422*iC(o))-1.6168667*a-.4906146*(s=.82521*iC(s))),iw(-.9787684*o+1.9161415*a+.033454*s),iw(.0719453*o-.2289914*a+1.4052427*s),r]}function iw(t){return(t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055)<0?0:t>1?1:t}function iC(t){return t>iu?t*t*t:ip*(t-ih)}let iE=Object.hasOwn||function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};function iT(t,i){return iE(t,i)?t[i]:void 0}function ik(t){return parseInt(t.padEnd(2,t),16)/255}function iA(t,i){return iI(i?t/100:t,0,1)}function iI(t,i,n){return Math.min(Math.max(i,t),n)}function iS(t){return!t.some(Number.isNaN)}let iD={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function iP(t,i,n){return t.map((t,r)=>t+n*(i[r]-t))}var iM=class t{constructor(t,i,n,r=1,a=!0){this.r=t,this.g=i,this.b=n,this.a=r,a||(this.r*=r,this.g*=r,this.b*=r,r||this.overwriteGetter("rgb",[t,i,n,r]))}static{this.black=new t(0,0,0,1)}static{this.white=new t(1,1,1,1)}static{this.transparent=new t(0,0,0,0)}static{this.red=new t(1,0,0,1)}static parse(i){if(i instanceof t)return i;if("string"!=typeof i)return;let n=function(t){if("transparent"===(t=t.toLowerCase().trim()))return[0,0,0,0];let i=iT(iD,t);if(i){let[t,n,r]=i;return[t/255,n/255,r/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,n=1;return[ik(t.slice(n,n+=i)),ik(t.slice(n,n+=i)),ik(t.slice(n,n+=i)),ik(t.slice(n,n+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[t,n,r,a,o,s,l,c,d,h,u,p]=i,m=[a||" ",l||" ",h].join("");if(" "===m||" /"===m||",,"===m||",,,"===m){let t=[r,s,d].join(""),i="%%%"===t?100:255*(""===t);if(i){let t=[iI(n/i,0,1),iI(o/i,0,1),iI(c/i,0,1),u?iA(+u,p):1];if(iS(t))return t}}return}}let n=t.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(n){let[t,i,r,a,o,s,l,c,d]=n,h=[r||" ",o||" ",l].join("");if(" "===h||" /"===h||",,"===h||",,,"===h){let t=[+i,iI(+a,0,100),iI(+s,0,100),c?iA(+c,d):1];if(iS(t))return function([t,i,n,r]){function a(r){let a=(r+t/30)%12,o=i*Math.min(n,1-n);return n-o*Math.max(-1,Math.min(a-3,9-a,1))}return t=i_(t),i/=100,n/=100,[a(0),a(8),a(4),r]}(t)}}}(i);if(n)return new t(...n,!1)}get rgb(){let{r:t,g:i,b:n,a:r}=this,a=r||1/0;return this.overwriteGetter("rgb",[t/a,i/a,n/a,r])}get hcl(){return this.overwriteGetter("hcl",function(t){let[i,n,r,a]=iv(t),o=Math.sqrt(n*n+r*r);return[Math.round(1e4*o)?i_(Math.atan2(r,n)*ig):0/0,o,i,a]}(this.rgb))}get lab(){return this.overwriteGetter("lab",iv(this.rgb))}overwriteGetter(t,i){return Object.defineProperty(this,t,{value:i}),i}toString(){let[t,i,n,r]=this.rgb;return`rgba(${[t,i,n].map(t=>Math.round(255*t)).join(",")},${r})`}static interpolate(i,n,r,a="rgb"){switch(a){case"rgb":{let[a,o,s,l]=iP(i.rgb,n.rgb,r);return new t(a,o,s,l,!1)}case"hcl":{let[a,o,s,l]=i.hcl,[c,d,h,u]=n.hcl,p,m;if(isNaN(a)||isNaN(c))isNaN(a)?isNaN(c)?p=0/0:(p=c,(1===s||0===s)&&(m=d)):(p=a,(1===h||0===h)&&(m=o));else{let t=c-a;c>a&&t>180?t-=360:c<a&&a-c>180&&(t+=360),p=a+r*t}let[f,g,_,v]=function([t,i,n,r]){return ix([n,Math.cos(t=isNaN(t)?0:t*im)*i,Math.sin(t)*i,r])}([p,m??o+r*(d-o),s+r*(h-s),l+r*(u-l)]);return new t(f,g,_,v,!1)}case"lab":{let[a,o,s,l]=ix(iP(i.lab,n.lab,r));return new t(a,o,s,l,!1)}}}};let iz=["bottom","center","top"];var iL=class{constructor(t,i,n,r,a,o){this.text=t,this.image=i,this.scale=n,this.fontStack=r,this.textColor=a,this.verticalAlign=o}},iR=class t{constructor(t){this.sections=t}static fromString(i){return new t([new iL(i,null,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(t=>0!==t.text.length||t.image&&0!==t.image.name.length)}static factory(i){return i instanceof t?i:t.fromString(i)}toString(){return 0===this.sections.length?"":this.sections.map(t=>t.text).join("")}},iF=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if("number"==typeof i)return new t([i,i,i,i]);if(Array.isArray(i)&&!(i.length<1||i.length>4)){for(let t of i)if("number"!=typeof t)return;switch(i.length){case 1:i=[i[0],i[0],i[0],i[0]];break;case 2:i=[i[0],i[1],i[0],i[1]];break;case 3:i=[i[0],i[1],i[2],i[1]]}return new t(i)}}toString(){return JSON.stringify(this.values)}static interpolate(i,n,r){return new t(iP(i.values,n.values,r))}},iO=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if("number"==typeof i)return new t([i]);if(Array.isArray(i)){for(let t of i)if("number"!=typeof t)return;return new t(i)}}toString(){return JSON.stringify(this.values)}static interpolate(i,n,r){return new t(iP(i.values,n.values,r))}},iB=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if("string"==typeof i){let n=iM.parse(i);return n?new t([n]):void 0}if(!Array.isArray(i))return;let n=[];for(let t of i){if("string"!=typeof t)return;let i=iM.parse(t);if(!i)return;n.push(i)}return new t(n)}toString(){return JSON.stringify(this.values)}static interpolate(i,n,r,a="rgb"){let o=[];if(i.values.length!=n.values.length)throw Error(`colorArray: Arrays have mismatched length (${i.values.length} vs. ${n.values.length}), cannot interpolate.`);for(let t=0;t<i.values.length;t++)o.push(iM.interpolate(i.values[t],n.values[t],r,a));return new t(o)}},iN=class extends Error{constructor(t,i){super(t),this.name="RuntimeError",this.path=i}toJSON(){return this.message}};let iV=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);var i$=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if(!(!Array.isArray(i)||i.length<1||i.length%2!=0)){for(let t=0;t<i.length;t+=2){let n=i[t],r=i[t+1];if("string"!=typeof n||!iV.has(n)||!Array.isArray(r)||2!==r.length||"number"!=typeof r[0]||"number"!=typeof r[1])return}return new t(i)}}toString(){return JSON.stringify(this.values)}static interpolate(i,n,r,a){let o=i.values,s=n.values;if(o.length!==s.length)throw new iN(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${n.toString()}`,a);let l=[];for(let t=0;t<o.length;t+=2){if(o[t]!==s[t])throw new iN(`Cannot interpolate values containing mismatched anchors. from[${t}]: ${o[t]}, to[${t}]: ${s[t]}`,a);l.push(o[t]);let[i,n]=o[t+1],[c,d]=s[t+1];l.push([i+r*(c-i),n+r*(d-n)])}return new t(l)}},ij=class t{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(i){return i?new t({name:i,available:!1}):null}},iU=class t{constructor(t,i,n){this.from=t,this.to=i,this.transition=n}toString(){return this.from===this.to&&1===this.transition?this.from:JSON.stringify([this.from,this.to,this.transition])}static interpolate(i,n,r){return new t(i,n,r)}static parse(i){return i instanceof t?i:Array.isArray(i)&&3===i.length&&"string"==typeof i[0]&&"string"==typeof i[1]&&"number"==typeof i[2]?new t(i[0],i[1],i[2]):"object"==typeof i&&"string"==typeof i.from&&"string"==typeof i.to&&"number"==typeof i.transition?new t(i.from,i.to,i.transition):"string"==typeof i?new t(i,i,1):void 0}},iq=class{constructor(t,i,n){this.sensitivity=t?i?"variant":"case":i?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,i){return this.collator.compare(t,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}};function iG(t,i,n,r){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[t,i,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[t,i,n,r]:[t,i,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function iH(t){if(null===t||"string"==typeof t||"boolean"==typeof t||"number"==typeof t||t instanceof iU||t instanceof iM||t instanceof iq||t instanceof iR||t instanceof iF||t instanceof iO||t instanceof iB||t instanceof i$||t instanceof ij)return!0;if(Array.isArray(t)){for(let i of t)if(!iH(i))return!1;return!0}if("object"==typeof t){for(let i in t)if(!iH(t[i]))return!1;return!0}return!1}function iZ(t){if(null===t)return tJ;if("string"==typeof t)return t0;if("boolean"==typeof t)return t2;if("number"==typeof t)return tQ;if(t instanceof iM)return t1;if(t instanceof iU)return t3;if(t instanceof iq)return t6;if(t instanceof iR)return t8;if(t instanceof iF)return t7;if(t instanceof iO)return ie;if(t instanceof iB)return t9;if(t instanceof i$)return ii;if(t instanceof ij)return it;if(Array.isArray(t)){let i=t.length,n;for(let i of t){let t=iZ(i);if(n){if(n===t)continue;n=t4;break}n=t}return ir(n||t4,i)}return t5}function iX(t){let i=typeof t;return null===t?"":"string"===i||"number"===i||"boolean"===i?String(t):t instanceof iM||t instanceof iU||t instanceof iR||t instanceof iF||t instanceof iO||t instanceof iB||t instanceof i$||t instanceof ij?t.toString():JSON.stringify(t)}var iW=class t{constructor(t,i){this.type=t,this.value=i}static parse(i,n){if(2!==i.length)return n.error(`'literal' expression requires exactly one argument, but found ${i.length-1} instead.`);if(!iH(i[1]))return n.error(`invalid value of type "${typeof i[1]}"`);let r=i[1],a=iZ(r),o=n.expectedType;return"array"===a.kind&&0===a.N&&o&&"array"===o.kind&&("number"!=typeof o.N||0===o.N)&&(a=o),new t(a,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}};let iY=["Unknown","Point","LineString","Polygon"];var iK=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?iY[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let i=this._parseColorCache.get(t);return i||(i=iM.parse(t),this._parseColorCache.set(t,i)),i}};function iJ(t,i,n){let r=t.length-1,a=0,o=r,s=0,l,c;for(;a<=o;)if(l=t[s=Math.floor((a+o)/2)],c=t[s+1],l<=i){if(s===r||i<c)return s;a=s+1}else if(l>i)o=s-1;else throw new iN("Input is not a number.",n);return 0}var iQ=class t{constructor(t,i,n,r){for(let[a,o]of(this.type=t,this.input=i,this.key=r,this.labels=[],this.outputs=[],n))this.labels.push(a),this.outputs.push(o)}static parse(i,n){if(i.length-1<4)return n.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return n.error("Expected an even number of arguments.");let r=n.parse(i[1],1,tQ);if(!r)return null;let a=[],o=null;n.expectedType&&"value"!==n.expectedType.kind&&(o=n.expectedType);for(let t=1;t<i.length;t+=2){let r=1===t?-1/0:i[t],s=i[t+1],l=t,c=t+1;if("number"!=typeof r)return n.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(a.length&&a[a.length-1][0]>=r)return n.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);let d=n.parse(s,c,o);if(!d)return null;o||=d.type,a.push([r,d])}return new t(o,r,a,n.key)}evaluate(t){let i=this.labels,n=this.outputs;if(1===i.length)return n[0].evaluate(t);let r=this.input.evaluate(t);if(r<=i[0])return n[0].evaluate(t);let a=i.length;return r>=i[a-1]?n[a-1].evaluate(t):n[iJ(i,r,this.key)].evaluate(t)}eachChild(t){for(let i of(t(this.input),this.outputs))t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}},i0=class t{constructor(t,i,n,r,a,o){for(let[s,l]of(this.type=t,this.operator=i,this.interpolation=n,this.input=r,this.key=o,this.labels=[],this.outputs=[],a))this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,i,n,r){let a=0;if("exponential"===t.name)a=i2(i,t.base,n,r);else if("linear"===t.name)a=i2(i,1,n,r);else if("cubic-bezier"===t.name){var o,s,l,c;let d,h,u,p,m,f,g=t.controlPoints;a=(o=g[0],s=g[1],l=g[2],c=g[3],d=3*o,h=3*(l-o)-d,u=1-d-h,p=3*s,m=3*(c-s)-p,f=1-p-m,function(t,i=1e-6){if(t<=0)return 0;if(t>=1)return 1;let n=t;for(let r=0;r<8;r++){let r=((u*n+h)*n+d)*n-t;if(Math.abs(r)<i)return((f*n+m)*n+p)*n;let a=(3*u*n+2*h)*n+d;if(1e-6>Math.abs(a))break;n-=r/a}let r=0,a=1;n=t;for(let o=0;o<20;o++){let o=((u*n+h)*n+d)*n;if(Math.abs(o-t)<i)break;t>o?r=n:a=n,n=(r+a)*.5}return((f*n+m)*n+p)*n})(i2(i,1,n,r))}return a}static parse(i,n){let[r,a,o,...s]=i;if(!Array.isArray(a)||0===a.length)return n.error("Expected an interpolation type expression.",1);if("linear"===a[0])a={name:"linear"};else if("exponential"===a[0]){let t=a[1];if("number"!=typeof t)return n.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:t}}else{if("cubic-bezier"!==a[0])return n.error(`Unknown interpolation type ${String(a[0])}`,1,0);let t=a.slice(1);if(4!==t.length||t.some(t=>"number"!=typeof t||t<0||t>1))return n.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:t}}if(i.length-1<4)return n.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return n.error("Expected an even number of arguments.");if(!(o=n.parse(o,2,tQ)))return null;let l=[],c=null;("interpolate-hcl"===r||"interpolate-lab"===r)&&n.expectedType!=t9?c=t1:n.expectedType&&"value"!==n.expectedType.kind&&(c=n.expectedType);for(let t=0;t<s.length;t+=2){let i=s[t],r=s[t+1],a=t+3,o=t+4;if("number"!=typeof i)return n.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(l.length&&l[l.length-1][0]>=i)return n.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',a);let d=n.parse(r,o,c);if(!d)return null;c||=d.type,l.push([i,d])}return id(c,tQ)||id(c,t3)||id(c,t1)||id(c,t7)||id(c,ie)||id(c,t9)||id(c,ii)||id(c,ir(tQ))?new t(c,r,a,o,l,n.key):n.error(`Type ${ia(c)} is not interpolatable.`)}evaluate(i){let n=this.labels,r=this.outputs;if(1===n.length)return r[0].evaluate(i);let a=this.input.evaluate(i);if(a<=n[0])return r[0].evaluate(i);let o=n.length;if(a>=n[o-1])return r[o-1].evaluate(i);let s=iJ(n,a,this.key),l=n[s],c=n[s+1],d=t.interpolationFactor(this.interpolation,a,l,c),h=r[s].evaluate(i),u=r[s+1].evaluate(i);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return h+d*(u-h);case"color":return iM.interpolate(h,u,d);case"padding":return iF.interpolate(h,u,d);case"colorArray":return iB.interpolate(h,u,d);case"numberArray":return iO.interpolate(h,u,d);case"variableAnchorOffsetCollection":return i$.interpolate(h,u,d,this.key);case"array":return iP(h,u,d);case"projectionDefinition":return iU.interpolate(h,u,d)}case"interpolate-hcl":switch(this.type.kind){case"color":return iM.interpolate(h,u,d,"hcl");case"colorArray":return iB.interpolate(h,u,d,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return iM.interpolate(h,u,d,"lab");case"colorArray":return iB.interpolate(h,u,d,"lab")}}}eachChild(t){for(let i of(t(this.input),this.outputs))t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};function i2(t,i,n,r){let a=r-n,o=t-n;return 0===a?0:1===i?o/a:(i**o-1)/(i**a-1)}let i1={color:iM.interpolate,number:function(t,i,n){return t+n*(i-t)},padding:iF.interpolate,numberArray:iO.interpolate,colorArray:iB.interpolate,variableAnchorOffsetCollection:i$.interpolate,array:iP};var i3=class t{constructor(t){this.type=t8,this.sections=t}static parse(i,n){if(i.length<2)return n.error("Expected at least one argument.");let r=i[1];if(!Array.isArray(r)&&"object"==typeof r)return n.error("First argument must be an image or text section.");let a=[],o=!1;for(let t=1;t<=i.length-1;++t){let r=i[t];if(o&&"object"==typeof r&&!Array.isArray(r)){o=!1;let t=null;if(r["font-scale"]&&!(t=n.parse(r["font-scale"],1,tQ)))return null;let i=null;if(r["text-font"]&&!(i=n.parse(r["text-font"],1,ir(t0))))return null;let s=null;if(r["text-color"]&&!(s=n.parse(r["text-color"],1,t1)))return null;let l=null;if(r["vertical-align"]){if("string"==typeof r["vertical-align"]&&!iz.includes(r["vertical-align"]))return n.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${r["vertical-align"]}' instead.`);if(!(l=n.parse(r["vertical-align"],1,t0)))return null}let c=a[a.length-1];c.scale=t,c.font=i,c.textColor=s,c.verticalAlign=l}else{let r=n.parse(i[t],1,t4);if(!r)return null;let s=r.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return n.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,a.push({content:r,scale:null,font:null,textColor:null,verticalAlign:null})}}return new t(a)}evaluate(t){return new iR(this.sections.map(i=>{let n=i.content.evaluate(t);return iZ(n)===it?new iL("",n,null,null,null,i.verticalAlign?i.verticalAlign.evaluate(t):null):new iL(iX(n),null,i.scale?i.scale.evaluate(t):null,i.font?i.font.evaluate(t).join(","):null,i.textColor?i.textColor.evaluate(t):null,i.verticalAlign?i.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let i of this.sections)t(i.content),i.scale&&t(i.scale),i.font&&t(i.font),i.textColor&&t(i.textColor),i.verticalAlign&&t(i.verticalAlign)}outputDefined(){return!1}};function i5(t,i,n){let r=t[i];t[i]=t[n],t[n]=r}function i4(t,i){if(t.length<=1)return[t];let n=[],r,a;for(let i of t){let t=function(t){let i=0;for(let n=0,r=t.length,a=r-1,o,s;n<r;a=n++)o=t[n],i+=((s=t[a]).x-o.x)*(o.y+s.y);return i}(i);0!==t&&(i.area=Math.abs(t),void 0===a&&(a=t<0),a===t<0?(r&&n.push(r),r=[i]):r.push(i))}if(r&&n.push(r),i>1)for(let t=0;t<n.length;t++)n[t].length<=i||(function t(i,n,r=0,a=i.length-1,o=function(t,i){return t<i?-1:+(t>i)}){for(;a>r;){if(a-r>600){let s=a-r+1,l=n-r+1,c=Math.log(s),d=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*d*(s-d)/s)*(l-s/2<0?-1:1);t(i,n,Math.max(r,Math.floor(n-l*d/s+h)),Math.min(a,Math.floor(n+(s-l)*d/s+h)),o)}let s=i[n],l=r,c=a;for(i5(i,r,n),o(i[a],s)>0&&i5(i,r,a);l<c;){for(i5(i,l,c),l++,c--;0>o(i[l],s);)l++;for(;o(i[c],s)>0;)c--}0===o(i[r],s)?i5(i,r,c):i5(i,++c,a),c<=n&&(r=c+1),n<=c&&(a=c-1)}}(n[t],i,1,n[t].length-1,i6),n[t]=n[t].slice(0,i));return n}function i6(t,i){return i.area-t.area}let i8={string:t0,number:tQ,boolean:t2,object:t5};var i7=class t{constructor(t,i,n){this.type=t,this.args=i,this.key=n}static parse(i,n){if(i.length<2)return n.error("Expected at least one argument.");let r=1,a,o=i[0];if("array"===o){let t,o;if(i.length>2){let a=i[1];if("string"!=typeof a||!(a in i8)||"object"===a)return n.error('The item type argument of "array" must be one of string, number, boolean',1);t=i8[a],r++}else t=t4;if(i.length>3){if(null!==i[2]&&("number"!=typeof i[2]||i[2]<0||i[2]!==Math.floor(i[2])))return n.error('The length argument to "array" must be a positive integer literal',2);o=i[2],r++}a=ir(t,o)}else{if(!i8[o])throw Error(`Types doesn't contain name = ${o}`);a=i8[o]}let s=[];for(;r<i.length;r++){let t=n.parse(i[r],r,t4);if(!t)return null;s.push(t)}return new t(a,s,n.key)}evaluate(t){for(let i=0;i<this.args.length;i++){let n=this.args[i].evaluate(t);if(!is(this.type,iZ(n)))return n;if(i===this.args.length-1)throw new iN(`Expected value to be of type ${ia(this.type)}, but found ${ia(iZ(n))} instead.`,this.key)}throw Error()}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};let i9={"to-boolean":t2,"to-color":t1,"to-number":tQ,"to-string":t0};var ne=class t{constructor(t,i,n){this.type=t,this.args=i,this.key=n}static parse(i,n){if(i.length<2)return n.error("Expected at least one argument.");let r=i[0];if(!i9[r])throw Error(`Can't parse ${r} as it is not part of the known types`);if(("to-boolean"===r||"to-string"===r)&&2!==i.length)return n.error("Expected one argument.");let a=i9[r],o=[];for(let t=1;t<i.length;t++){let r=n.parse(i[t],t,t4);if(!r)return null;o.push(r)}return new t(a,o,n.key)}evaluate(t){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(t);case"color":{let i,n;for(let r of this.args){if(i=r.evaluate(t),n=null,i instanceof iM)return i;if("string"==typeof i){let n=t.parseColor(i);if(n)return n}else if(Array.isArray(i)&&!(n=i.length<3||i.length>4?`Invalid rgba value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:iG(i[0],i[1],i[2],i[3])))return new iM(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new iN(n||`Could not parse color from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"padding":{let i;for(let n of this.args){i=n.evaluate(t);let r=iF.parse(i);if(r)return r}throw new iN(`Could not parse padding from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"numberArray":{let i;for(let n of this.args){i=n.evaluate(t);let r=iO.parse(i);if(r)return r}throw new iN(`Could not parse numberArray from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"colorArray":{let i;for(let n of this.args){i=n.evaluate(t);let r=iB.parse(i);if(r)return r}throw new iN(`Could not parse colorArray from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"variableAnchorOffsetCollection":{let i;for(let n of this.args){i=n.evaluate(t);let r=i$.parse(i);if(r)return r}throw new iN(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"number":{let i=null;for(let n of this.args){if(null===(i=n.evaluate(t)))return 0;let r=Number(i);if(!isNaN(r))return r}throw new iN(`Could not convert ${JSON.stringify(i)} to number.`,this.key)}case"formatted":return iR.fromString(iX(this.args[0].evaluate(t)));case"resolvedImage":return ij.fromString(iX(this.args[0].evaluate(t)));case"projectionDefinition":{let i=this.args[0].evaluate(t);if(iU.parse(i))return i;throw new iN(`Could not parse projectionDefinition from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}default:return iX(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},nt=class t{constructor(t,i){this.type=i.type,this.bindings=[].concat(t),this.result=i}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let i of this.bindings)t(i[1]);t(this.result)}static parse(i,n){if(i.length<4)return n.error(`Expected at least 3 arguments, but found ${i.length-1} instead.`);let r=[];for(let t=1;t<i.length-1;t+=2){let a=i[t];if("string"!=typeof a)return n.error(`Expected string, but found ${typeof a} instead.`,t);if(/[^a-zA-Z0-9_]/.test(a))return n.error("Variable names must contain only alphanumeric characters or '_'.",t);let o=n.parse(i[t+1],t+1);if(!o)return null;r.push([a,o])}let a=n.parse(i[i.length-1],i.length-1,n.expectedType,r);return a?new t(r,a):null}outputDefined(){return this.result.outputDefined()}},ni=class t{constructor(t,i){this.type=i.type,this.name=t,this.boundExpression=i}static parse(i,n){if(2!==i.length||"string"!=typeof i[1])return n.error("'var' expression requires exactly one string literal argument.");let r=i[1];return n.scope.has(r)?new t(r,n.scope.get(r)):n.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}},nn=class t{constructor(t,i,n,r){this.type=t,this.index=i,this.input=n,this.key=r}static parse(i,n){if(3!==i.length)return n.error(`Expected 2 arguments, but found ${i.length-1} instead.`);let r=n.parse(i[1],1,tQ),a=n.parse(i[2],2,ir(n.expectedType||t4));return r&&a?new t(a.type.itemType,r,a,n.key):null}evaluate(t){let i=this.index.evaluate(t),n=this.input.evaluate(t);if(i<0)throw new iN(`Array index out of bounds: ${i} < 0.`,this.key);if(i>=n.length)throw new iN(`Array index out of bounds: ${i} > ${n.length-1}.`,this.key);if(i!==Math.floor(i))throw new iN(`Array index must be an integer, but found ${i} instead.`,this.key);return n[i]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},nr=class t{constructor(t,i,n){this.needle=t,this.haystack=i,this.key=n,this.type=t2}static parse(i,n){if(3!==i.length)return n.error(`Expected 2 arguments, but found ${i.length-1} instead.`);let r=n.parse(i[1],1,t4),a=n.parse(i[2],2,t4);return r&&a?il(r.type,[t2,t0,tQ,tJ,t4])?new t(r,a,n.key):n.error(`Expected first argument to be of type boolean, string, number or null, but found ${ia(r.type)} instead`):null}evaluate(t){let i=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!ic(i,["boolean","string","number","null"]))throw new iN(`Expected first argument to be of type boolean, string, number or null, but found ${ia(iZ(i))} instead.`,this.key);if(!ic(n,["string","array"]))throw new iN(`Expected second argument to be of type array or string, but found ${ia(iZ(n))} instead.`,this.key);return n.indexOf(i)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},na=class t{constructor(t,i,n,r){this.needle=t,this.haystack=i,this.key=n,this.fromIndex=r,this.type=tQ}static parse(i,n){if(i.length<=2||i.length>=5)return n.error(`Expected 2 or 3 arguments, but found ${i.length-1} instead.`);let r=n.parse(i[1],1,t4),a=n.parse(i[2],2,t4);if(!r||!a)return null;if(!il(r.type,[t2,t0,tQ,tJ,t4]))return n.error(`Expected first argument to be of type boolean, string, number or null, but found ${ia(r.type)} instead`);if(4===i.length){let o=n.parse(i[3],3,tQ);return o?new t(r,a,n.key,o):null}return new t(r,a,n.key)}evaluate(t){let i,n=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!ic(n,["boolean","string","number","null"]))throw new iN(`Expected first argument to be of type boolean, string, number or null, but found ${ia(iZ(n))} instead.`,this.key);if(this.fromIndex&&(i=this.fromIndex.evaluate(t)),ic(r,["string"])){let t=r.indexOf(n,i);return -1===t?-1:[...r.slice(0,t)].length}if(ic(r,["array"]))return r.indexOf(n,i);throw new iN(`Expected second argument to be of type array or string, but found ${ia(iZ(r))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},no=class t{constructor(t,i,n,r,a,o){this.inputType=t,this.type=i,this.input=n,this.cases=r,this.outputs=a,this.otherwise=o}static parse(i,n){let r,a;if(i.length<5)return n.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if(i.length%2!=1)return n.error("Expected an even number of arguments.");n.expectedType&&"value"!==n.expectedType.kind&&(a=n.expectedType);let o={},s=[];for(let t=2;t<i.length-1;t+=2){let l=i[t],c=i[t+1];Array.isArray(l)||(l=[l]);let d=n.concat(t);if(0===l.length)return d.error("Expected at least one branch label.");for(let t of l){if("number"!=typeof t&&"string"!=typeof t)return d.error("Branch labels must be numbers or strings.");if("number"==typeof t&&Math.abs(t)>0x1fffffffffffff)return d.error("Branch labels must be integers no larger than 9007199254740991.");if("number"==typeof t&&Math.floor(t)!==t)return d.error("Numeric branch labels must be integer values.");if(r){if(d.checkSubtype(r,iZ(t)))return null}else r=iZ(t);if(void 0!==o[String(t)])return d.error("Branch labels must be unique.");o[String(t)]=s.length}let h=n.parse(c,t,a);if(!h)return null;a||=h.type,s.push(h)}let l=n.parse(i[1],1,t4);if(!l)return null;let c=n.parse(i[i.length-1],i.length-1,a);return!c||"value"!==l.type.kind&&n.concat(1).checkSubtype(r,l.type)?null:new t(r,a,l,o,s,c)}evaluate(t){let i=this.input.evaluate(t);return(iZ(i)===this.inputType&&this.outputs[this.cases[i]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},ns=class t{constructor(t,i,n){this.type=t,this.branches=i,this.otherwise=n}static parse(i,n){let r;if(i.length<4)return n.error(`Expected at least 3 arguments, but found only ${i.length-1}.`);if(i.length%2!=0)return n.error("Expected an odd number of arguments.");n.expectedType&&"value"!==n.expectedType.kind&&(r=n.expectedType);let a=[];for(let t=1;t<i.length-1;t+=2){let o=n.parse(i[t],t,t2);if(!o)return null;let s=n.parse(i[t+1],t+1,r);if(!s)return null;a.push([o,s]),r||=s.type}let o=n.parse(i[i.length-1],i.length-1,r);if(!o)return null;if(!r)throw Error("Can't infer output type");return new t(r,a,o)}evaluate(t){for(let[i,n]of this.branches)if(i.evaluate(t))return n.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(let[i,n]of this.branches)t(i),t(n);t(this.otherwise)}outputDefined(){return this.branches.every(([t,i])=>i.outputDefined())&&this.otherwise.outputDefined()}},nl=class t{constructor(t,i,n,r,a){this.type=t,this.input=i,this.beginIndex=n,this.key=r,this.endIndex=a}static parse(i,n){if(i.length<=2||i.length>=5)return n.error(`Expected 2 or 3 arguments, but found ${i.length-1} instead.`);let r=n.parse(i[1],1,t4),a=n.parse(i[2],2,tQ);if(!r||!a)return null;if(!il(r.type,[ir(t4),t0,t4]))return n.error(`Expected first argument to be of type array or string, but found ${ia(r.type)} instead`);if(4===i.length){let o=n.parse(i[3],3,tQ);return o?new t(r.type,r,a,n.key,o):null}return new t(r.type,r,a,n.key)}evaluate(t){let i=this.input.evaluate(t),n=this.beginIndex.evaluate(t),r;if(this.endIndex&&(r=this.endIndex.evaluate(t)),ic(i,["string"]))return[...i].slice(n,r).join("");if(ic(i,["array"]))return i.slice(n,r);throw new iN(`Expected first argument to be of type array or string, but found ${ia(iZ(i))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},nc=class t{constructor(t,i){this.type=t,this.args=i}static parse(i,n){if(i.length<2)return n.error("Expected at least one argument.");let r=null,a=n.expectedType;a&&"value"!==a.kind&&(r=a);let o=[];for(let t of i.slice(1)){let i=n.parse(t,1+o.length,r,void 0,{typeAnnotation:"omit"});if(!i)return null;r||=i.type,o.push(i)}if(!r)throw Error("No output type");return a&&o.some(t=>is(a,t.type))?new t(t4,o):new t(r,o)}evaluate(t){let i=null,n=0,r;for(let a of this.args)if(n++,(i=a.evaluate(t))&&i instanceof ij&&!i.available&&(r||=i.name,i=null,n===this.args.length&&(i=r)),null!==i)break;return i}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};function nd(t,i){return"=="===t||"!="===t?"boolean"===i.kind||"string"===i.kind||"number"===i.kind||"null"===i.kind||"value"===i.kind:"string"===i.kind||"number"===i.kind||"value"===i.kind}function nh(t,i,n,r){return 0===r.compare(i,n)}function nu(t,i,n){let r="=="!==t&&"!="!==t;return class a{constructor(t,i,n,r){this.lhs=t,this.rhs=i,this.key=n,this.collator=r,this.type=t2,this.hasUntypedArgument="value"===t.type.kind||"value"===i.type.kind}static parse(t,i){if(3!==t.length&&4!==t.length)return i.error("Expected two or three arguments.");let n=t[0],o=i.parse(t[1],1,t4);if(!o)return null;if(!nd(n,o.type))return i.concat(1).error(`"${n}" comparisons are not supported for type '${ia(o.type)}'.`);let s=i.parse(t[2],2,t4);if(!s)return null;if(!nd(n,s.type))return i.concat(2).error(`"${n}" comparisons are not supported for type '${ia(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return i.error(`Cannot compare types '${ia(o.type)}' and '${ia(s.type)}'.`);r&&("value"===o.type.kind&&"value"!==s.type.kind?o=new i7(s.type,[o],i.key):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new i7(o.type,[s],i.key)));let l=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return i.error("Cannot use collator to compare non-string types.");if(!(l=i.parse(t[3],3,t6)))return null}return new a(o,s,i.key,l)}evaluate(a){let o=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(r&&this.hasUntypedArgument){let i=iZ(o),n=iZ(s);if(i.kind!==n.kind||"string"!==i.kind&&"number"!==i.kind)throw new iN(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${i.kind}, ${n.kind}) instead.`,this.key)}if(this.collator&&!r&&this.hasUntypedArgument){let t=iZ(o),n=iZ(s);if("string"!==t.kind||"string"!==n.kind)return i(a,o,s)}return this.collator?n(a,o,s,this.collator.evaluate(a)):i(a,o,s)}eachChild(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)}outputDefined(){return!0}}}let np=nu("==",function(t,i,n){return i===n},nh),nm=nu("!=",function(t,i,n){return i!==n},function(t,i,n,r){return!nh(t,i,n,r)}),nf=nu("<",function(t,i,n){return i<n},function(t,i,n,r){return 0>r.compare(i,n)}),ng=nu(">",function(t,i,n){return i>n},function(t,i,n,r){return r.compare(i,n)>0}),n_=nu("<=",function(t,i,n){return i<=n},function(t,i,n,r){return 0>=r.compare(i,n)}),nv=nu(">=",function(t,i,n){return i>=n},function(t,i,n,r){return r.compare(i,n)>=0});var ny=class t{constructor(t,i,n){this.type=t6,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=i}static parse(i,n){if(2!==i.length)return n.error("Expected one argument.");let r=i[1];if("object"!=typeof r||Array.isArray(r))return n.error("Collator options argument must be an object.");let a=n.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,t2);if(!a)return null;let o=n.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,t2);if(!o)return null;let s=null;return!r.locale||(s=n.parse(r.locale,1,t0))?new t(a,o,s):null}evaluate(t){return new iq(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},nb=class t{constructor(t,i,n,r,a,o){this.type=t0,this.number=t,this.locale=i,this.currency=n,this.unit=r,this.minFractionDigits=a,this.maxFractionDigits=o}static parse(i,n){if(3!==i.length)return n.error("Expected two arguments.");let r=n.parse(i[1],1,tQ);if(!r)return null;let a=i[2];if("object"!=typeof a||Array.isArray(a))return n.error("NumberFormat options argument must be an object.");let o=null;if(a.locale&&!(o=n.parse(a.locale,1,t0)))return null;let s=null;if(a.currency&&!(s=n.parse(a.currency,1,t0)))return null;let l=null;if(a.unit&&!(l=n.parse(a.unit,1,t0)))return null;if(s&&l)return n.error("NumberFormat options `currency` and `unit` are mutually exclusive");let c=null;if(a["min-fraction-digits"]&&!(c=n.parse(a["min-fraction-digits"],1,tQ)))return null;let d=null;return!a["max-fraction-digits"]||(d=n.parse(a["max-fraction-digits"],1,tQ))?new t(r,o,s,l,c,d):null}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},nx=class t{constructor(t){this.type=it,this.input=t}static parse(i,n){if(2!==i.length)return n.error("Expected two arguments.");let r=n.parse(i[1],1,t0);return r?new t(r):n.error("No image name provided.")}evaluate(t){let i=this.input.evaluate(t),n=ij.fromString(i);return n&&t.availableImages&&(n.available=t.availableImages.indexOf(i)>-1),n}eachChild(t){t(this.input)}outputDefined(){return!1}},nw=class t{constructor(t,i){this.input=t,this.key=i,this.type=tQ}static parse(i,n){if(2!==i.length)return n.error(`Expected 1 argument, but found ${i.length-1} instead.`);let r=n.parse(i[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?n.error(`Expected argument of type string or array, but found ${ia(r.type)} instead.`):new t(r,n.key):null}evaluate(t){let i=this.input.evaluate(t);if("string"==typeof i)return[...i].length;if(Array.isArray(i))return i.length;throw new iN(`Expected value to be of type string or array, but found ${ia(iZ(i))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}};function nC(t,i){let n=2**i.z;return[360*((t[0]/8192+i.x)/n)-180,360/Math.PI*Math.atan(Math.exp((180-360*((t[1]/8192+i.y)/n))*Math.PI/180))-90]}function nE(t,i){t[0]=Math.min(t[0],i[0]),t[1]=Math.min(t[1],i[1]),t[2]=Math.max(t[2],i[0]),t[3]=Math.max(t[3],i[1])}function nT(t,i){return!(t[0]<=i[0]||t[2]>=i[2]||t[1]<=i[1]||t[3]>=i[3])}function nk(t,i,n,r){var a,o;let s=[i[0]-t[0],i[1]-t[1]];return 0!=(a=[r[0]-n[0],r[1]-n[1]],a[0]*(o=s)[1]-a[1]*o[0])&&!!(nS(t,i,n,r)&&nS(n,r,t,i))}function nA(t,i,n=!1){let r=!1;for(let s of i)for(let i=0;i<s.length-1;i++){var a,o;if(function(t,i,n){let r=t[0]-i[0],a=t[1]-i[1],o=t[0]-n[0],s=t[1]-n[1];return r*s-o*a==0&&r*o<=0&&a*s<=0}(t,s[i],s[i+1]))return n;a=s[i],o=s[i+1],a[1]>t[1]!=o[1]>t[1]&&t[0]<(o[0]-a[0])*(t[1]-a[1])/(o[1]-a[1])+a[0]&&(r=!r)}return r}function nI(t,i){for(let n of t)if(!nA(n,i))return!1;for(let n=0;n<t.length-1;++n)if(function(t,i,n){for(let r of n)for(let n=0;n<r.length-1;++n)if(nk(t,i,r[n],r[n+1]))return!0;return!1}(t[n],t[n+1],i))return!1;return!0}function nS(t,i,n,r){let a=t[0]-n[0],o=t[1]-n[1],s=i[0]-n[0],l=i[1]-n[1],c=r[0]-n[0],d=r[1]-n[1],h=a*d-c*o,u=s*d-c*l;return h>0&&u<0||h<0&&u>0}function nD(t,i,n){let r=[];for(let a=0;a<t.length;a++){let o=[];for(let r=0;r<t[a].length;r++){let s=function(t,i){let n=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,a=2**i.z;return[Math.round(n*a*8192),Math.round(r*a*8192)]}(t[a][r],n);nE(i,s),o.push(s)}r.push(o)}return r}function nP(t,i,n){let r=[];for(let a=0;a<t.length;a++){let o=nD(t[a],i,n);r.push(o)}return r}function nM(t,i,n,r){if(t[0]<n[0]||t[0]>n[2]){let i=.5*r,a=t[0]-n[0]>i?-r:n[0]-t[0]>i?r:0;0===a&&(a=t[0]-n[2]>i?-r:n[2]-t[0]>i?r:0),t[0]+=a}nE(i,t)}function nz(t,i,n,r){let a=2**r.z*8192,o=[8192*r.x,8192*r.y],s=[];for(let r of t)for(let t of r){let r=[t.x+o[0],t.y+o[1]];nM(r,i,n,a),s.push(r)}return s}function nL(t,i,n,r){let a=2**r.z*8192,o=[8192*r.x,8192*r.y],s=[];for(let n of t){let t=[];for(let r of n){let n=[r.x+o[0],r.y+o[1]];nE(i,n),t.push(n)}s.push(t)}if(i[2]-i[0]<=a/2){for(let t of(i[0]=i[1]=1/0,i[2]=i[3]=-1/0,s))for(let r of t)nM(r,i,n,a)}return s}var nR=class t{constructor(t,i){this.type=t2,this.geojson=t,this.geometries=i}static parse(i,n){if(2!==i.length)return n.error(`'within' expression requires exactly one argument, but found ${i.length-1} instead.`);if(iH(i[1])){let n=i[1];if("FeatureCollection"===n.type){let i=[];for(let t of n.features){let{type:n,coordinates:r}=t.geometry;"Polygon"===n&&i.push(r),"MultiPolygon"===n&&i.push(...r)}if(i.length)return new t(n,{type:"MultiPolygon",coordinates:i})}else if("Feature"===n.type){let i=n.geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new t(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new t(n,n)}return n.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,i){let n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=t.canonicalID();if("Polygon"===i.type){let o=nD(i.coordinates,r,a),s=nz(t.geometry(),n,r,a);if(!nT(n,r))return!1;for(let t of s)if(!nA(t,o))return!1}if("MultiPolygon"===i.type){let o=nP(i.coordinates,r,a),s=nz(t.geometry(),n,r,a);if(!nT(n,r))return!1;for(let t of s)if(!function(t,i){for(let n of i)if(nA(t,n))return!0;return!1}(t,o))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,i){let n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=t.canonicalID();if("Polygon"===i.type){let o=nD(i.coordinates,r,a),s=nL(t.geometry(),n,r,a);if(!nT(n,r))return!1;for(let t of s)if(!nI(t,o))return!1}if("MultiPolygon"===i.type){let o=nP(i.coordinates,r,a),s=nL(t.geometry(),n,r,a);if(!nT(n,r))return!1;for(let t of s)if(!function(t,i){for(let n of i)if(nI(t,n))return!0;return!1}(t,o))return!1}return!0}(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},nF=class{constructor(t=[],i=(t,i)=>t<i?-1:+(t>i)){if(this.data=t,this.length=this.data.length,this.compare=i,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;let t=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:i,compare:n}=this,r=i[t];for(;t>0;){let a=t-1>>1,o=i[a];if(n(r,o)>=0)break;i[t]=o,t=a}i[t]=r}_down(t){let{data:i,compare:n}=this,r=this.length>>1,a=i[t];for(;t<r;){let r=(t<<1)+1,o=r+1;if(o<this.length&&0>n(i[o],i[r])&&(r=o),n(i[r],a)>=0)break;i[t]=i[r],t=r}i[t]=a}};let nO=Math.PI/180;var nB=class{constructor(t){let i=6378.137*nO*1e3,n=Math.cos(t*nO),r=1/(1-.0066943799901413165*(1-n*n)),a=Math.sqrt(r);this.kx=i*a*n,this.ky=i*a*r*.9933056200098587}distance(t,i){let n=this.wrap(t[0]-i[0])*this.kx,r=(t[1]-i[1])*this.ky;return Math.sqrt(n*n+r*r)}pointOnLine(t,i){let n=1/0,r,a,o,s;for(let l=0;l<t.length-1;l++){let c=t[l][0],d=t[l][1],h=this.wrap(t[l+1][0]-c)*this.kx,u=(t[l+1][1]-d)*this.ky,p=0;(0!==h||0!==u)&&((p=(this.wrap(i[0]-c)*this.kx*h+(i[1]-d)*this.ky*u)/(h*h+u*u))>1?(c=t[l+1][0],d=t[l+1][1]):p>0&&(c+=h/this.kx*p,d+=u/this.ky*p));let m=(h=this.wrap(i[0]-c)*this.kx)*h+(u=(i[1]-d)*this.ky)*u;m<n&&(n=m,r=c,a=d,o=l,s=p)}return{point:[r,a],index:o,t:Math.max(0,Math.min(1,s))}}wrap(t){for(;t<-180;)t+=360;for(;t>180;)t-=360;return t}};function nN(t,i){return i[0]-t[0]}function nV(t){return t[1]-t[0]+1}function n$(t,i){return t[1]>=t[0]&&t[1]<i}function nj(t,i){if(t[0]>t[1])return[null,null];let n=nV(t);if(i){if(2===n)return[t,null];let i=Math.floor(n/2);return[[t[0],t[0]+i],[t[0]+i,t[1]]]}if(1===n)return[t,null];let r=Math.floor(n/2)-1;return[[t[0],t[0]+r],[t[0]+r+1,t[1]]]}function nU(t,i){if(!n$(i,t.length))return[1/0,1/0,-1/0,-1/0];let n=[1/0,1/0,-1/0,-1/0];for(let r=i[0];r<=i[1];++r)nE(n,t[r]);return n}function nq(t){let i=[1/0,1/0,-1/0,-1/0];for(let n of t)for(let t of n)nE(i,t);return i}function nG(t){return -1/0!==t[0]&&-1/0!==t[1]&&1/0!==t[2]&&1/0!==t[3]}function nH(t,i,n){if(!nG(t)||!nG(i))return 0/0;let r=0,a=0;return t[2]<i[0]&&(r=i[0]-t[2]),t[0]>i[2]&&(r=t[0]-i[2]),t[1]>i[3]&&(a=t[1]-i[3]),t[3]<i[1]&&(a=i[1]-t[3]),n.distance([0,0],[r,a])}function nZ(t,i,n){let r=n.pointOnLine(i,t);return n.distance(t,r.point)}function nX(t,i,n,r,a){return Math.min(Math.min(nZ(t,[n,r],a),nZ(i,[n,r],a)),Math.min(nZ(n,[t,i],a),nZ(r,[t,i],a)))}function nW(t,i){for(let n of t)for(let t of n)if(nA(t,i,!0))return!0;return!1}function nY(t,i,n,r,a,o){if(!o)return;let s=nH(nU(r,o),a,n);s<i&&t.push([s,o,[0,0]])}function nK(t,i,n,r,a,o,s){if(!o||!s)return;let l=nH(nU(r,o),nU(a,s),n);l<i&&t.push([l,o,s])}function nJ(t,i,n,r,a=1/0){let o=Math.min(r.distance(t[0],n[0][0]),a);if(0===o)return o;let s=new nF([[0,[0,t.length-1],[0,0]]],nN),l=nq(n);for(;s.length>0;){let a=s.pop();if(a[0]>=o)continue;let c=a[1],d=i?50:100;if(nV(c)<=d){if(!n$(c,t.length))return 0/0;if(i){let i=function(t,i,n,r){if(!n$(i,t.length))return 0/0;for(let r=i[0];r<=i[1];++r)if(nA(t[r],n,!0))return 0;let a=1/0;for(let o=i[0];o<i[1];++o){let i=t[o],s=t[o+1];for(let t of n)for(let n=0,o=t.length,l=o-1;n<o;l=n++){let o=t[l],c=t[n];if(nk(i,s,o,c))return 0;a=Math.min(a,nX(i,s,o,c,r))}}return a}(t,c,n,r);if(isNaN(i)||0===i)return i;o=Math.min(o,i)}else for(let i=c[0];i<=c[1];++i)if(0===(o=Math.min(o,function(t,i,n){if(nA(t,i,!0))return 0;let r=1/0;for(let a of i){let i=a[0],o=a[a.length-1];if(i!==o&&0===(r=Math.min(r,nZ(t,[o,i],n))))break;let s=n.pointOnLine(a,t);if(0===(r=Math.min(r,n.distance(t,s.point))))break}return r}(t[i],n,r))))return 0}else{let n=nj(c,i);nY(s,o,r,t,l,n[0]),nY(s,o,r,t,l,n[1])}}return o}function nQ(t,i,n,r,a,o=1/0){let s=Math.min(o,a.distance(t[0],n[0]));if(0===s)return s;let l=new nF([[0,[0,t.length-1],[0,n.length-1]]],nN);for(;l.length>0;){let o=l.pop();if(o[0]>=s)continue;let c=o[1],d=o[2],h=i?50:100,u=r?50:100;if(nV(c)<=h&&nV(d)<=u){if(!n$(c,t.length)&&n$(d,n.length))return 0/0;if(i&&r)s=Math.min(s,function(t,i,n,r,a){if(!(n$(i,t.length)&&n$(r,n.length)))return 1/0;let o=1/0;for(let s=i[0];s<i[1];++s){let i=t[s],l=t[s+1];for(let t=r[0];t<r[1];++t){let r=n[t],s=n[t+1];if(nk(i,l,r,s))return 0;o=Math.min(o,nX(i,l,r,s,a))}}return o}(t,c,n,d,a));else if(i&&!r){let i=t.slice(c[0],c[1]+1);for(let t=d[0];t<=d[1];++t)if(0===(s=Math.min(s,nZ(n[t],i,a))))return s}else if(!i&&r){let i=n.slice(d[0],d[1]+1);for(let n=c[0];n<=c[1];++n)if(0===(s=Math.min(s,nZ(t[n],i,a))))return s}else s=Math.min(s,function(t,i,n,r,a){if(!(n$(i,t.length)&&n$(r,n.length)))return 0/0;let o=1/0;for(let s=i[0];s<=i[1];++s)for(let i=r[0];i<=r[1];++i)if(0===(o=Math.min(o,a.distance(t[s],n[i]))))return o;return o}(t,c,n,d,a))}else{let o=nj(c,i),h=nj(d,r);nK(l,s,a,t,n,o[0],h[0]),nK(l,s,a,t,n,o[0],h[1]),nK(l,s,a,t,n,o[1],h[0]),nK(l,s,a,t,n,o[1],h[1])}}return s}function n0(t){return"MultiPolygon"===t.type?t.coordinates.map(t=>({type:"Polygon",coordinates:t})):"MultiLineString"===t.type?t.coordinates.map(t=>({type:"LineString",coordinates:t})):"MultiPoint"===t.type?t.coordinates.map(t=>({type:"Point",coordinates:t})):[t]}var n2=class t{constructor(t,i){this.type=tQ,this.geojson=t,this.geometries=i}static parse(i,n){if(2!==i.length)return n.error(`'distance' expression requires exactly one argument, but found ${i.length-1} instead.`);if(iH(i[1])){let n=i[1];if("FeatureCollection"===n.type)return new t(n,n.features.map(t=>n0(t.geometry)).flat());if("Feature"===n.type)return new t(n,n0(n.geometry));if("type"in n&&"coordinates"in n)return new t(n,n0(n))}return n.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,i){let n=t.geometry(),r=n.flat().map(i=>nC([i.x,i.y],t.canonical));if(0===n.length)return 0/0;let a=new nB(r[0][1]),o=1/0;for(let t of i){switch(t.type){case"Point":o=Math.min(o,nQ(r,!1,[t.coordinates],!1,a,o));break;case"LineString":o=Math.min(o,nQ(r,!1,t.coordinates,!0,a,o));break;case"Polygon":o=Math.min(o,nJ(r,!1,t.coordinates,a,o))}if(0===o)break}return o}(t,this.geometries);if("LineString"===t.geometryType())return function(t,i){let n=t.geometry(),r=n.flat().map(i=>nC([i.x,i.y],t.canonical));if(0===n.length)return 0/0;let a=new nB(r[0][1]),o=1/0;for(let t of i){switch(t.type){case"Point":o=Math.min(o,nQ(r,!0,[t.coordinates],!1,a,o));break;case"LineString":o=Math.min(o,nQ(r,!0,t.coordinates,!0,a,o));break;case"Polygon":o=Math.min(o,nJ(r,!0,t.coordinates,a,o))}if(0===o)break}return o}(t,this.geometries);if("Polygon"===t.geometryType())return function(t,i){let n=t.geometry();if(0===n.length||0===n[0].length)return 0/0;let r=i4(n,0).map(i=>i.map(i=>i.map(i=>nC([i.x,i.y],t.canonical)))),a=new nB(r[0][0][0][1]),o=1/0;for(let t of i)for(let i of r){switch(t.type){case"Point":o=Math.min(o,nJ([t.coordinates],!1,i,a,o));break;case"LineString":o=Math.min(o,nJ(t.coordinates,!0,i,a,o));break;case"Polygon":o=Math.min(o,function(t,i,n,r=1/0){let a=nq(t),o=nq(i);if(1/0!==r&&nH(a,o,n)>=r)return r;if(nT(a,o)){if(nW(t,i))return 0}else if(nW(i,t))return 0;let s=1/0;for(let r of t)for(let t=0,a=r.length,o=a-1;t<a;o=t++){let a=r[o],l=r[t];for(let t of i)for(let i=0,r=t.length,o=r-1;i<r;o=i++){let r=t[o],c=t[i];if(nk(a,l,r,c))return 0;s=Math.min(s,nX(a,l,r,c,n))}}return s}(i,t.coordinates,a,o))}if(0===o)return o}return o}(t,this.geometries)}return 0/0}eachChild(){}outputDefined(){return!0}},n1=class t{constructor(t){let i=null;for(let n of t)if(i){if(i===n.type)continue;i=t4;break}else i=n.type;this.type=ir(i??t4,t.length),this.arr=t}static parse(i,n){if(2!==i.length)return n.error(`'semiliteral' expression requires exactly one argument, but found ${i.length-1} instead.`);if(!iH(i[1]))return n.error(`invalid value of type "${typeof i[1]}"`);let r=i[1],a=iZ(r);return"array"===a.kind?new t(r.map(t=>n.parse(t,null,t4))):new iW(a,r)}evaluate(t){return this.arr.map(i=>i.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},n3=class t{constructor(t){this.key=t,this.type=t4}static parse(i,n){if(2!==i.length)return n.error(`Expected 1 argument, but found ${i.length-1} instead.`);let r=i[1];return null==r?n.error("Global state property must be defined."):"string"==typeof r?new t(r):n.error(`Global state property must be string, but found ${typeof i[1]} instead.`)}evaluate(t){let i=t.globals?.globalState;return i&&0!==Object.keys(i).length?iT(i,this.key)??null:null}eachChild(){}outputDefined(){return!1}};let n5={"==":np,"!=":nm,">":ng,"<":nf,">=":nv,"<=":n_,array:i7,at:nn,boolean:i7,case:ns,coalesce:nc,collator:ny,format:i3,image:nx,in:nr,"index-of":na,interpolate:i0,"interpolate-hcl":i0,"interpolate-lab":i0,length:nw,let:nt,literal:iW,match:no,number:i7,"number-format":nb,object:i7,semiliteral:n1,slice:nl,step:iQ,string:i7,"to-boolean":ne,"to-color":ne,"to-number":ne,"to-string":ne,var:ni,within:nR,distance:n2,"global-state":n3};var n4=class extends Error{constructor(t,i){super(i),this.message=i,this.key=t}},n6=class t{constructor(t,i=[]){for(let[n,r]of(this.parent=t,this.bindings={},i))this.bindings[n]=r}concat(i){return new t(this,i)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}},n8=class t{constructor(t,i,n=[],r,a=new n6,o=[]){this.registry=t,this.path=n,this.key=n.map(t=>`[${t}]`).join(""),this.scope=a,this.errors=o,this.expectedType=r,this._isConstant=i}parse(t,i,n,r,a={}){return i?this.concat(i,n,r)._parse(t,a):this._parse(t,a)}_parse(t,i){(null===t||"string"==typeof t||"boolean"==typeof t||"number"==typeof t)&&(t=["literal",t]);let n=this.key;function r(t,i,r){return"assert"===r?new i7(i,[t],n):"coerce"===r?new ne(i,[t],n):t}if(Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let n=t[0];if("string"!=typeof n)return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let a=this.registry[n];if(a){let n=a.parse(t,this);if(!n)return null;if(this.expectedType){let t=this.expectedType,a=n.type;if(("string"===t.kind||"number"===t.kind||"boolean"===t.kind||"object"===t.kind||"array"===t.kind)&&"value"===a.kind)n=r(n,t,i.typeAnnotation||"assert");else if("projectionDefinition"===t.kind&&["string","array","value"].includes(a.kind)||["color","formatted","resolvedImage"].includes(t.kind)&&["value","string"].includes(a.kind)||["padding","numberArray"].includes(t.kind)&&["value","number","array"].includes(a.kind)||"colorArray"===t.kind&&["value","string","array"].includes(a.kind)||"variableAnchorOffsetCollection"===t.kind&&["value","array"].includes(a.kind))n=r(n,t,i.typeAnnotation||"coerce");else if(this.checkSubtype(t,a))return null}if(!(n instanceof iW)&&"resolvedImage"!==n.type.kind&&this._isConstant(n)){let t=new iK;try{n=new iW(n.type,n.evaluate(t))}catch(t){return this.error(t.message),null}}return n}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(i,n,r){let a="number"==typeof i?this.path.concat(i):this.path,o=r?this.scope.concat(r):this.scope;return new t(this.registry,this._isConstant,a,n||null,o,this.errors)}error(t,...i){let n=`${this.key}${i.map(t=>`[${t}]`).join("")}`;this.errors.push(new n4(n,t))}checkSubtype(t,i){let n=is(t,i);return n&&this.error(n),n}},n7=class t{constructor(t,i,n,r,a){this.name=t,this.type=i,this._evaluate=n,this.args=r,this.key=a}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(i,n){let r=i[0],a=t.definitions[r];if(!a)return n.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);let o=Array.isArray(a)?a[0]:a.type,s=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,l=s.filter(([t])=>!Array.isArray(t)||t.length===i.length-1),c=null;for(let[a,s]of l){c=new n8(n.registry,rn,n.path,null,n.scope);let l=[],d=!1;for(let t=1;t<i.length;t++){let n=i[t],r=Array.isArray(a)?a[t-1]:a.type,o=c.parse(n,1+l.length,r);if(!o){d=!0;break}l.push(o)}if(!d){if(Array.isArray(a)&&a.length!==l.length){c.error(`Expected ${a.length} arguments, but found ${l.length} instead.`);continue}for(let t=0;t<l.length;t++){let i=Array.isArray(a)?a[t]:a.type,n=l[t];c.concat(t+1).checkSubtype(i,n.type)}if(0===c.errors.length)return new t(r,o,s,l,n.key)}}if(1===l.length)n.errors.push(...c.errors);else{let t=(l.length?l:s).map(([t])=>{var i;return Array.isArray(i=t)?`(${i.map(ia).join(", ")})`:`(${ia(i.type)}...)`}).join(" | "),r=[];for(let t=1;t<i.length;t++){let a=n.parse(i[t],1+r.length);if(!a)return null;r.push(ia(a.type))}n.error(`Expected arguments of type ${t}, but found (${r.join(", ")}) instead.`)}return null}static register(i,n){for(let r in t.definitions=n,n)i[r]=t}};function n9(t,[i,n,r,a],o){i=i.evaluate(t),n=n.evaluate(t),r=r.evaluate(t);let s=a?a.evaluate(t):1,l=iG(i,n,r,s);if(l)throw new iN(l,o);return new iM(i/255,n/255,r/255,s,!1)}function re(t,i){return t in i&&void 0!==i[t]}function rt(t,i){let n=i[t];return void 0===n?null:n}function ri(t){return{type:t}}function rn(t){if(t instanceof ni)return rn(t.boundExpression);if(t instanceof n7&&"error"===t.name||t instanceof ny||t instanceof nR||t instanceof n2||t instanceof n3)return!1;let i=t instanceof ne||t instanceof i7,n=!0;return t.eachChild(t=>{n&&=i?rn(t):t instanceof iW}),!!n&&rr(t)&&ro(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"])}function rr(t){if(t instanceof n7&&("get"===t.name&&1===t.args.length||"feature-state"===t.name||"has"===t.name&&1===t.args.length||"properties"===t.name||"geometry-type"===t.name||"id"===t.name||/^filter-/.test(t.name))||t instanceof nR||t instanceof n2)return!1;let i=!0;return t.eachChild(t=>{i&&!rr(t)&&(i=!1)}),i}function ra(t){if(t instanceof n7&&"feature-state"===t.name)return!1;let i=!0;return t.eachChild(t=>{i&&!ra(t)&&(i=!1)}),i}function ro(t,i){if(t instanceof n7&&i.indexOf(t.name)>=0)return!1;let n=!0;return t.eachChild(t=>{n&&!ro(t,i)&&(n=!1)}),n}function rs(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function rl(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function rc(t){return!!t.expression&&t.expression.interpolated}function rd(t,...i){for(let n of i)for(let i in n)t[i]=n[i];return t}function rh(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function ru(t){return"object"==typeof t&&!!t&&!Array.isArray(t)&&iZ(t)===t5}function rp(t){return t}function rm(t,i,n){return void 0!==t?t:void 0!==i?i:void 0!==n?n:void 0}function rf(t,i,n,r,a){return rm(typeof n===a?r[n]:void 0,t.default,i.default)}function rg(t,i,n){if("number"!==rh(n))return rm(t.default,i.default);let r=t.stops.length;if(1===r||n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];let a=iJ(t.stops.map(t=>t[0]),n,"");return t.stops[a][1]}function r_(t,i,n){var r,a,o;let s,l,c=void 0===t.base?1:t.base;if("number"!==rh(n))return rm(t.default,i.default);let d=t.stops.length;if(1===d||n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[d-1][0])return t.stops[d-1][1];let h=iJ(t.stops.map(t=>t[0]),n,""),u=(r=n,a=c,o=t.stops[h][0],s=t.stops[h+1][0]-o,l=r-o,0===s?0:1===a?l/s:(a**l-1)/(a**s-1)),p=t.stops[h][1],m=t.stops[h+1][1],f=i1[i.type]||rp;return"function"==typeof p.evaluate?{evaluate(...i){let n=p.evaluate.apply(void 0,i),r=m.evaluate.apply(void 0,i);if(void 0!==n&&void 0!==r)return f(n,r,u,t.colorSpace)}}:f(p,m,u,t.colorSpace)}function rv(t,i,n){switch(i.type){case"color":n=iM.parse(n);break;case"formatted":n=iR.fromString(n.toString());break;case"resolvedImage":n=ij.fromString(n.toString());break;case"padding":n=iF.parse(n);break;case"colorArray":n=iB.parse(n);break;case"numberArray":n=iO.parse(n);break;default:rh(n)===i.type||"enum"===i.type&&i.values[n]||(n=void 0)}return rm(n,t.default,i.default)}function ry(t){return{result:"success",value:t}}function rb(t){return{result:"error",value:t}}n7.register(n5,{error:[{kind:"error"},[t0],(t,[i],n)=>{throw new iN(i.evaluate(t),n)}],typeof:[t0,[t4],(t,[i])=>ia(iZ(i.evaluate(t)))],"to-rgba":[ir(tQ,4),[t1],(t,[i])=>{let[n,r,a,o]=i.evaluate(t).rgb;return[255*n,255*r,255*a,o]}],rgb:[t1,[tQ,tQ,tQ],n9],rgba:[t1,[tQ,tQ,tQ,tQ],n9],has:{type:t2,overloads:[[[t0],(t,[i])=>re(i.evaluate(t),t.properties())],[[t0,t5],(t,[i,n])=>re(i.evaluate(t),n.evaluate(t))]]},get:{type:t4,overloads:[[[t0],(t,[i])=>rt(i.evaluate(t),t.properties())],[[t0,t5],(t,[i,n])=>rt(i.evaluate(t),n.evaluate(t))]]},"feature-state":[t4,[t0],(t,[i])=>rt(i.evaluate(t),t.featureState||{})],properties:[t5,[],t=>t.properties()],"geometry-type":[t0,[],t=>t.geometryType()],id:[t4,[],t=>t.id()],zoom:[tQ,[],t=>t.globals.zoom],"heatmap-density":[tQ,[],t=>t.globals.heatmapDensity||0],elevation:[tQ,[],t=>t.globals.elevation||0],"line-progress":[tQ,[],t=>t.globals.lineProgress||0],accumulated:[t4,[],t=>void 0===t.globals.accumulated?null:t.globals.accumulated],"+":[tQ,ri(tQ),(t,i)=>{let n=0;for(let r of i)n+=r.evaluate(t);return n}],"*":[tQ,ri(tQ),(t,i)=>{let n=1;for(let r of i)n*=r.evaluate(t);return n}],"-":{type:tQ,overloads:[[[tQ,tQ],(t,[i,n])=>i.evaluate(t)-n.evaluate(t)],[[tQ],(t,[i])=>-i.evaluate(t)]]},"/":[tQ,[tQ,tQ],(t,[i,n])=>i.evaluate(t)/n.evaluate(t)],"%":[tQ,[tQ,tQ],(t,[i,n])=>i.evaluate(t)%n.evaluate(t)],ln2:[tQ,[],()=>Math.LN2],pi:[tQ,[],()=>Math.PI],e:[tQ,[],()=>Math.E],"^":[tQ,[tQ,tQ],(t,[i,n])=>i.evaluate(t)**n.evaluate(t)],sqrt:[tQ,[tQ],(t,[i])=>Math.sqrt(i.evaluate(t))],log10:[tQ,[tQ],(t,[i])=>Math.log(i.evaluate(t))/Math.LN10],ln:[tQ,[tQ],(t,[i])=>Math.log(i.evaluate(t))],log2:[tQ,[tQ],(t,[i])=>Math.log(i.evaluate(t))/Math.LN2],sin:[tQ,[tQ],(t,[i])=>Math.sin(i.evaluate(t))],cos:[tQ,[tQ],(t,[i])=>Math.cos(i.evaluate(t))],tan:[tQ,[tQ],(t,[i])=>Math.tan(i.evaluate(t))],asin:[tQ,[tQ],(t,[i])=>Math.asin(i.evaluate(t))],acos:[tQ,[tQ],(t,[i])=>Math.acos(i.evaluate(t))],atan:[tQ,[tQ],(t,[i])=>Math.atan(i.evaluate(t))],min:[tQ,ri(tQ),(t,i)=>Math.min(...i.map(i=>i.evaluate(t)))],max:[tQ,ri(tQ),(t,i)=>Math.max(...i.map(i=>i.evaluate(t)))],abs:[tQ,[tQ],(t,[i])=>Math.abs(i.evaluate(t))],round:[tQ,[tQ],(t,[i])=>{let n=i.evaluate(t);return n<0?-Math.round(-n):Math.round(n)}],floor:[tQ,[tQ],(t,[i])=>Math.floor(i.evaluate(t))],ceil:[tQ,[tQ],(t,[i])=>Math.ceil(i.evaluate(t))],"filter-==":[t2,[t0,t4],(t,[i,n])=>t.properties()[i.value]===n.value],"filter-id-==":[t2,[t4],(t,[i])=>t.id()===i.value],"filter-type-==":[t2,[t0],(t,[i])=>t.geometryType()===i.value],"filter-<":[t2,[t0,t4],(t,[i,n])=>{let r=t.properties()[i.value],a=n.value;return typeof r==typeof a&&r<a}],"filter-id-<":[t2,[t4],(t,[i])=>{let n=t.id(),r=i.value;return typeof n==typeof r&&n<r}],"filter->":[t2,[t0,t4],(t,[i,n])=>{let r=t.properties()[i.value],a=n.value;return typeof r==typeof a&&r>a}],"filter-id->":[t2,[t4],(t,[i])=>{let n=t.id(),r=i.value;return typeof n==typeof r&&n>r}],"filter-<=":[t2,[t0,t4],(t,[i,n])=>{let r=t.properties()[i.value],a=n.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[t2,[t4],(t,[i])=>{let n=t.id(),r=i.value;return typeof n==typeof r&&n<=r}],"filter->=":[t2,[t0,t4],(t,[i,n])=>{let r=t.properties()[i.value],a=n.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[t2,[t4],(t,[i])=>{let n=t.id(),r=i.value;return typeof n==typeof r&&n>=r}],"filter-has":[t2,[t4],(t,[i])=>{let n=i.value,r=t.properties();return n in r&&void 0!==r[n]}],"filter-has-id":[t2,[],t=>null!==t.id()&&void 0!==t.id()],"filter-type-in":[t2,[ir(t0)],(t,[i])=>i.value.indexOf(t.geometryType())>=0],"filter-id-in":[t2,[ir(t4)],(t,[i])=>i.value.indexOf(t.id())>=0],"filter-in-small":[t2,[t0,ir(t4)],(t,[i,n])=>n.value.indexOf(t.properties()[i.value])>=0],"filter-in-large":[t2,[t0,ir(t4)],(t,[i,n])=>(function(t,i,n,r){for(;n<=r;){let a=n+r>>1;if(i[a]===t)return!0;i[a]>t?r=a-1:n=a+1}return!1})(t.properties()[i.value],n.value,0,n.value.length-1)],all:{type:t2,overloads:[[[t2,t2],(t,[i,n])=>i.evaluate(t)&&n.evaluate(t)],[ri(t2),(t,i)=>{for(let n of i)if(!n.evaluate(t))return!1;return!0}]]},any:{type:t2,overloads:[[[t2,t2],(t,[i,n])=>i.evaluate(t)||n.evaluate(t)],[ri(t2),(t,i)=>{for(let n of i)if(n.evaluate(t))return!0;return!1}]]},"!":[t2,[t2],(t,[i])=>!i.evaluate(t)],"is-supported-script":[t2,[t0],(t,[i])=>{let n=t.globals&&t.globals.isSupportedScript;return!n||n(i.evaluate(t))}],upcase:[t0,[t0],(t,[i])=>i.evaluate(t).toUpperCase()],downcase:[t0,[t0],(t,[i])=>i.evaluate(t).toLowerCase()],concat:[t0,ri(t4),(t,i)=>i.map(i=>iX(i.evaluate(t))).join("")],split:[ir(t0),[t0,t0],(t,[i,n])=>i.evaluate(t).split(n.evaluate(t))],join:[t0,[ir(t0),t0],(t,[i,n])=>i.evaluate(t).join(n.evaluate(t))],"resolved-locale":[t0,[t6],(t,[i])=>i.evaluate(t).resolvedLocale()]});var rx=class{constructor(t,i,n,r){this.expression=t,this._warningHistory={},this._evaluator=new iK,this._defaultValue=n?rP(n):null,this._enumValues=n&&"enum"===n.type?n.values:null,this._globalState=r,this._rootKey=i}evaluateWithoutErrorHandling(t,i,n,r,a,o){return this._globalState&&(t=rM(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=i,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)}evaluate(t,i,n,r,a,o){this._globalState&&(t=rM(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=i||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o||null;try{let t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new iN(`Expected value to be one of ${Object.keys(this._enumValues).map(t=>JSON.stringify(t)).join(", ")}, but found ${JSON.stringify(t)} instead.`,"");return t}catch(n){let t=n instanceof iN?n.path:"",i=`${t}|${n.message}`;return this._warningHistory[i]||(this._warningHistory[i]=!0,"u">typeof console&&console.warn(rw(this._rootKey,t,n.message,this._defaultValue))),this._defaultValue}}};function rw(t,i,n,r){return`${t}${i}: ${n}${null==r?"":` Falling back to ${String(r)}.`}`}function rC(t){if(!t)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function rE(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in n5}function rT(t,i,n,r){var a;let o;rC(i);let s=new n8(n5,rn,[],n?(a=n,o={color:t1,string:t0,number:tQ,enum:t0,boolean:t2,formatted:t8,padding:t7,numberArray:ie,colorArray:t9,projectionDefinition:t3,resolvedImage:it,variableAnchorOffsetCollection:ii},"array"===a.type?ir(o[a.value]||t4,a.length):o[a.type]):void 0),l=s.parse(t,void 0,void 0,void 0,n&&"string"===n.type?{typeAnnotation:"coerce"}:void 0);return l?ry(new rx(l,i,n,r)):rb(s.errors)}var rk=class{constructor(t,i,n){this.kind=t,this._styleExpression=i,this.isStateDependent="constant"!==t&&!ra(i.expression),this.globalStateRefs=rD(i.expression),this._globalState=n}evaluateWithoutErrorHandling(t,i,n,r,a,o){return this._globalState&&(t=rM(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,i,n,r,a,o)}evaluate(t,i,n,r,a,o){return this._globalState&&(t=rM(t,this._globalState)),this._styleExpression.evaluate(t,i,n,r,a,o)}},rA=class{constructor(t,i,n,r,a){this.kind=t,this.zoomStops=n,this._styleExpression=i,this.isStateDependent="camera"!==t&&!ra(i.expression),this.globalStateRefs=rD(i.expression),this.interpolationType=r,this._globalState=a}evaluateWithoutErrorHandling(t,i,n,r,a,o){return this._globalState&&(t=rM(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,i,n,r,a,o)}evaluate(t,i,n,r,a,o){return this._globalState&&(t=rM(t,this._globalState)),this._styleExpression.evaluate(t,i,n,r,a,o)}interpolationFactor(t,i,n){return this.interpolationType?i0.interpolationFactor(this.interpolationType,t,i,n):0}};function rI(t,i,n,r){let a=rT(t,i,n,r);if("error"===a.result)return a;let o=a.value.expression,s=rr(o);if(!s&&!rs(n))return rb([new n4("","data expressions not supported")]);let l=ro(o,["zoom"]);if(!l&&!rl(n))return rb([new n4("","zoom expressions not supported")]);let c=function t(i){let n=null;if(i instanceof nt)n=t(i.result);else if(i instanceof nc){for(let r of i.args)if(n=t(r))break}else(i instanceof iQ||i instanceof i0)&&i.input instanceof n7&&"zoom"===i.input.name&&(n=i);return n instanceof n4||i.eachChild(i=>{let r=t(i);r instanceof n4?n=r:!n&&r?n=new n4("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new n4("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}(o);if(!c&&!l)return rb([new n4("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(c instanceof n4)return rb([c]);if(c instanceof i0&&!rc(n))return rb([new n4("",'"interpolate" expressions cannot be used with this property')]);if(!c)return ry(s?new rk("constant",a.value,r):new rk("source",a.value,r));let d=c instanceof i0?c.interpolation:void 0;return ry(s?new rA("camera",a.value,c.labels,d,r):new rA("composite",a.value,c.labels,d,r))}var rS=class t{constructor(t,i,n){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,rC(i),this._parameters=t,this._specification=n,this._rootKey=i,this._defaultValue=rP(n),this._warningHistory={};let r=function t(i,n){var r;let a=i.stops&&"object"==typeof i.stops[0][0],o=a||void 0!==i.property,s=i.type||(rc(n)?"exponential":"interval"),l=function(t){switch(t.type){case"color":return iM.parse;case"padding":return iF.parse;case"numberArray":return iO.parse;case"colorArray":return iB.parse;default:return null}}(n);if(l&&((i=rd({},i)).stops&&(i.stops=i.stops.map(t=>[t[0],l(t[1])])),i.default?i.default=l(i.default):i.default=l(n.default)),i.colorSpace&&"rgb"!==(r=i.colorSpace)&&"hcl"!==r&&"lab"!==r)throw Error(`Unknown color space: "${i.colorSpace}"`);let c=function(t){switch(t){case"exponential":return r_;case"interval":return rg;case"categorical":return rf;case"identity":return rv;default:throw Error(`Unknown function type "${t}"`)}}(s),d,h;if("categorical"===s){for(let t of(d=Object.create(null),i.stops))d[t[0]]=t[1];h=typeof i.stops[0][0]}if(a){let r={},a=[];for(let t=0;t<i.stops.length;t++){let n=i.stops[t],o=n[0].zoom;void 0===r[o]&&(r[o]={zoom:o,type:i.type,property:i.property,default:i.default,stops:[]},a.push(o)),r[o].stops.push([n[0].value,n[1]])}let o=[];for(let i of a)o.push([r[i].zoom,t(r[i],n)]);let s={name:"linear"};return{kind:"composite",interpolationType:s,interpolationFactor:i0.interpolationFactor.bind(void 0,s),zoomStops:o.map(t=>t[0]),evaluate:({zoom:t},r)=>r_({stops:o,base:i.base},n,t).evaluate(t,r)}}if(a||!o){let t="exponential"===s?{name:"exponential",base:void 0===i.base?1:i.base}:null;return{kind:"camera",interpolationType:t,interpolationFactor:i0.interpolationFactor.bind(void 0,t),zoomStops:i.stops.map(t=>t[0]),evaluate:({zoom:t})=>c(i,n,t,d,h)}}return{kind:"source",evaluate(t,r){let a=r&&r.properties?r.properties[i.property]:void 0;return void 0===a?rm(i.default,n.default):c(i,n,a,d,h)}}}(this._parameters,this._specification);this.kind=r.kind,this.interpolationFactor=r.interpolationFactor,this.zoomStops=r.zoomStops,this.interpolationType=r.interpolationType,this._innerEvaluate=r.evaluate}evaluate(t,i){try{return this._innerEvaluate(t,i)}catch(n){let t=n instanceof Error?n.message:String(n),i=`|${t}`;return this._warningHistory[i]||(this._warningHistory[i]=!0,"u">typeof console&&console.warn(rw(this._rootKey,"",t,this._defaultValue))),this._defaultValue}}static deserialize(i){return new t(i._parameters,i._rootKey,i._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};function rD(t,i=new Set){return t instanceof n3&&i.add(t.key),t.eachChild(t=>{rD(t,i)}),i}function rP(t){if("color"===t.type&&ru(t.default))return new iM(0,0,0,0);switch(t.type){case"color":return iM.parse(t.default)||null;case"padding":return iF.parse(t.default)||null;case"numberArray":return iO.parse(t.default)||null;case"colorArray":return iB.parse(t.default)||null;case"variableAnchorOffsetCollection":return i$.parse(t.default)||null;case"projectionDefinition":return iU.parse(t.default)||null;default:return void 0===t.default?null:t.default}}function rM(t,i){let{zoom:n,heatmapDensity:r,elevation:a,lineProgress:o,isSupportedScript:s,accumulated:l}=t??{};return{zoom:n,heatmapDensity:r,elevation:a,lineProgress:o,isSupportedScript:s,accumulated:l,globalState:i}}function rz(t){return"legacy"!==function t(i){if("boolean"==typeof i)return"neutral";if(!Array.isArray(i)||0===i.length)return"legacy";switch(i[0]){case"has":return i.length<2||"$id"===i[1]||"$type"===i[1]?"legacy":2===i.length?"neutral":"expression";case"in":return i.length>=3&&("string"!=typeof i[1]||Array.isArray(i[2]))?"expression":"legacy";case"!in":case"!has":case"none":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==i.length||Array.isArray(i[1])||Array.isArray(i[2])?"expression":"legacy";case"any":case"all":var n=i.slice(1);let r=!1;for(let i of n){let n=t(i);if("expression"===n)return"expression";"legacy"===n&&(r=!0)}return r?"legacy":"neutral";default:return"expression"}}(t)}function rL(t){return"$type"===t?["geometry-type"]:"$id"===t?["id"]:["get",t]}function rR(t){if(("<"===t[0]||"<="===t[0]||">"===t[0]||">="===t[0])&&"$type"===t[1])return`"$type" cannot be use with operator "${t[0]}"`;let i=function(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return 3!==t.length||"string"!=typeof t[1]?null:[t[0],rL(t[1]),t[2]];case"in":case"!in":{if(t.length<2||"string"!=typeof t[1])return null;let i=["in",rL(t[1]),["literal",t.slice(2)]];return"!in"===t[0]?["!",i]:i}case"has":case"!has":{if(2!==t.length||"string"!=typeof t[1]||"$type"===t[1]||"$id"===t[1])return null;let i=["has",t[1]];return"!has"===t[0]?["!",i]:i}default:return null}}(t);return i?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(i)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function rF(t,i,n){let r=n[t];return Array.isArray(r)?rz(r)?rO(r,i.concat(t)):{path:i.concat(t),legacyFilter:r}:null}function rO(t,i=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let n=1;n<t.length;n++){let r=rF(n,i,t);if(r)return r}break;case"!":{let n=rF(1,i,t);if(n)return n;break}case"case":for(let n=1;n<t.length-1;n+=2){let r=rF(n,i,t);if(r)return r}}return null}let rB={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function rN(t,i,n){if(null==t)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};rz(t)?function(t,i){let n=rO(t);if(!n||typeof console>"u")return;let r=n.path.map(t=>`[${t}]`).join("");console.warn(`${i}${r}: ${rR(n.legacyFilter)}`)}(t,i):t=function t(i){if(!i)return!0;let n=i[0];return i.length<=1?"any"!==n:"=="===n?r$(i[1],i[2],"=="):"!="===n?rq(r$(i[1],i[2],"==")):"<"===n||">"===n||"<="===n||">="===n?r$(i[1],i[2],n):"any"===n?["any"].concat(i.slice(1).map(t)):"all"===n?["all"].concat(i.slice(1).map(t)):"none"===n?["all"].concat(i.slice(1).map(t).map(rq)):"in"===n?rj(i[1],i.slice(2)):"!in"===n?rq(rj(i[1],i.slice(2))):"has"===n?rU(i[1]):"!has"!==n||rq(rU(i[1]))}(t);let r=rT(t,i,rB,n);if("error"===r.result)throw Error(r.value.map(t=>`${t.key}: ${t.message}`).join(", "));return{filter:(t,i,n)=>r.value.evaluate(t,i,{},n),needGeometry:function t(i){if(!Array.isArray(i))return!1;if("within"===i[0]||"distance"===i[0])return!0;for(let n=1;n<i.length;n++)if(t(i[n]))return!0;return!1}(t),getGlobalStateRefs:()=>rD(r.value.expression)}}function rV(t,i){return t<i?-1:+(t>i)}function r$(t,i,n){switch(t){case"$type":return[`filter-type-${n}`,i];case"$id":return[`filter-id-${n}`,i];default:return[`filter-${n}`,t,i]}}function rj(t,i){if(0===i.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",i]];case"$id":return["filter-id-in",["literal",i]];default:return i.length>200&&!i.some(t=>typeof t!=typeof i[0])?["filter-in-large",t,["literal",i.sort(rV)]]:["filter-in-small",t,["literal",i]]}}function rU(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function rq(t){return["!",t]}function rG(t){let i=t.key,n=t.value;return n?[new tK(i,n,"constants have been deprecated as of v8")]:[]}function rH(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function rZ(t){if(Array.isArray(t))return t.map(rZ);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let i={};for(let n in t)i[n]=rZ(t[n]);return i}return rH(t)}function rX(t){let i=t.key,n=t.value,r=t.valueSpec||{},a=t.objectElementValidators||{},o=t.style,s=t.styleSpec,l=t.validateSpec,c=[],d=rh(n);if("object"!==d)return[new tK(i,n,`object expected, ${d} found`)];for(let t in n){let d=t.split(".")[0],h=iT(r,d)||r["*"],u;if(iT(a,d))u=a[d];else if(iT(r,d)){if(void 0===n[t])continue;u=l}else if(a["*"])u=a["*"];else if(r["*"])u=l;else{c.push(new tK(i,n[t],`unknown property "${t}"`));continue}c=c.concat(u({key:(i&&`${i}.`)+t,value:n[t],valueSpec:h,style:o,styleSpec:s,object:n,objectKey:t,validateSpec:l},n))}for(let t in r)a[t]||r[t].required&&void 0===r[t].default&&void 0===n[t]&&c.push(new tK(i,n,`missing required property "${t}"`));return c}function rW(t){let i=t.value,n=t.valueSpec,r=t.validateSpec,a=t.style,o=t.styleSpec,s=t.key,l=t.arrayElementValidator||r;if("array"!==rh(i))return[new tK(s,i,`array expected, ${rh(i)} found`)];if(n.length&&i.length!==n.length)return[new tK(s,i,`array length ${n.length} expected, length ${i.length} found`)];let c={type:n.value,values:n.values};o.$version<7&&(c.function=n.function),"object"===rh(n.value)&&(c=n.value);let d=[];for(let n=0;n<i.length;n++)d=d.concat(l({array:i,arrayIndex:n,value:i[n],valueSpec:c,validateSpec:t.validateSpec,style:a,styleSpec:o,key:`${s}[${n}]`}));return d}function rY(t){let i=t.key,n=t.value,r=t.valueSpec,a=rh(n);return"number"===a&&n!=n&&(a="NaN"),"number"===a?"minimum"in r&&n<r.minimum?[new tK(i,n,`${n} is less than the minimum value ${r.minimum}`)]:"maximum"in r&&n>r.maximum?[new tK(i,n,`${n} is greater than the maximum value ${r.maximum}`)]:[]:[new tK(i,n,`number expected, ${a} found`)]}function rK(t){let i=t.valueSpec,n=rH(t.value.type),r,a={},o,s,l="categorical"!==n&&void 0===t.value.property,c="array"===rh(t.value.stops)&&"array"===rh(t.value.stops[0])&&"object"===rh(t.value.stops[0][0]),d=rX({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===n)return[new tK(t.key,t.value,'identity function may not have a "stops" property')];let i=[],r=t.value;return i=i.concat(rW({key:t.key,value:r,valueSpec:t.valueSpec,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===rh(r)&&0===r.length&&i.push(new tK(t.key,r,"array must have at least one stop")),i},default:function(t){return t.validateSpec({key:t.key,value:t.value,valueSpec:i,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===n&&l&&d.push(new tK(t.key,t.value,'missing required property "property"')),"identity"===n||t.value.stops||d.push(new tK(t.key,t.value,'missing required property "stops"')),"exponential"===n&&t.valueSpec.expression&&!rc(t.valueSpec)&&d.push(new tK(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l||rs(t.valueSpec)?l&&!rl(t.valueSpec)&&d.push(new tK(t.key,t.value,"zoom functions not supported")):d.push(new tK(t.key,t.value,"property functions not supported"))),("categorical"===n||c)&&void 0===t.value.property&&d.push(new tK(t.key,t.value,'"property" property is required')),d;function h(t){let n=[],r=t.value,l=t.key;if("array"!==rh(r))return[new tK(l,r,`array expected, ${rh(r)} found`)];if(2!==r.length)return[new tK(l,r,`array length 2 expected, length ${r.length} found`)];if(c){if("object"!==rh(r[0]))return[new tK(l,r,`object expected, ${rh(r[0])} found`)];if(void 0===r[0].zoom)return[new tK(l,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new tK(l,r,"object stop key must have value")];if(s&&s>rH(r[0].zoom))return[new tK(l,r[0].zoom,"stop zoom values must appear in ascending order")];rH(r[0].zoom)!==s&&(s=rH(r[0].zoom),o=void 0,a={}),n=n.concat(rX({key:`${l}[0]`,value:r[0],valueSpec:{zoom:{}},validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:rY,value:u}}))}else n=n.concat(u({key:`${l}[0]`,value:r[0],valueSpec:{},validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec},r));return rE(rZ(r[1]))?n.concat([new tK(`${l}[1]`,r[1],"expressions are not allowed in function stops.")]):n.concat(t.validateSpec({key:`${l}[1]`,value:r[1],valueSpec:i,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec}))}function u(t,s){let l=rh(t.value),c=rH(t.value),d=null===t.value?s:t.value;if(r){if(l!==r)return[new tK(t.key,d,`${l} stop domain type must match previous stop domain type ${r}`)]}else r=l;if("number"!==l&&"string"!==l&&"boolean"!==l)return[new tK(t.key,d,"stop domain value must be a number, string, or boolean")];if("number"!==l&&"categorical"!==n){let r=`number expected, ${l} found`;return rs(i)&&void 0===n&&(r+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new tK(t.key,d,r)]}return"categorical"!==n||"number"!==l||isFinite(c)&&Math.floor(c)===c?"categorical"!==n&&"number"===l&&void 0!==o&&c<o?[new tK(t.key,d,"stop domain values must appear in ascending order")]:(o=c,"categorical"===n&&c in a?[new tK(t.key,d,"stop domain values must be unique")]:(a[c]=!0,[])):[new tK(t.key,d,`integer expected, found ${c}`)]}}function rJ(t){let i=("property"===t.expressionContext?rI:rT)(rZ(t.value),t.key,t.valueSpec);if("error"===i.result)return i.value.map(i=>new tK(`${t.key}${i.key}`,t.value,i.message));let n=i.value.expression||i.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!n.outputDefined())return[new tK(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!ra(n))return[new tK(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!ra(n))return[new tK(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!ro(n,["zoom","feature-state"]))return[new tK(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!rr(n))return[new tK(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function rQ(t){let i=t.key,n=t.value,r=rh(n);return"string"===r?iM.parse(String(n))?[]:[new tK(i,n,`color expected, "${n}" found`)]:[new tK(i,n,`color expected, ${r} found`)]}function r0(t){let i=t.key,n=t.value,r=t.valueSpec,a=[];return Array.isArray(r.values)?-1===r.values.indexOf(rH(n))&&a.push(new tK(i,n,`expected one of [${r.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(r.values).indexOf(rH(n))&&a.push(new tK(i,n,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(n)} found`)),a}function r2(t){let i,n=rZ(t.value);return rz(n)?[...(i=rO(n))?[new tK(`${t.key}${i.path.map(t=>`[${t}]`).join("")}`,function(t,i){let n=t;for(let t of i)n=n[t];return n}(t.value,i.path),rR(i.legacyFilter),null,"warning")]:[],...rJ(rd({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:function t(i){let n=i.value,r=i.key;if("array"!==rh(n))return[new tK(r,n,`array expected, ${rh(n)} found`)];let a=i.styleSpec,o,s=[];if(n.length<1)return[new tK(r,n,"filter array must have at least 1 element")];switch(s=s.concat(r0({key:`${r}[0]`,value:n[0],valueSpec:a.filter_operator,style:i.style,styleSpec:i.styleSpec})),rH(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===rH(n[1])&&s.push(new tK(r,n,`"$type" cannot be use with operator "${n[0]}"`));case"==":case"!=":3!==n.length&&s.push(new tK(r,n,`filter array for operator "${n[0]}" must have 3 elements`));case"in":case"!in":n.length>=2&&"string"!==(o=rh(n[1]))&&s.push(new tK(`${r}[1]`,n[1],`string expected, ${o} found`));for(let t=2;t<n.length;t++)o=rh(n[t]),"$type"===rH(n[1])?s=s.concat(r0({key:`${r}[${t}]`,value:n[t],valueSpec:a.geometry_type,style:i.style,styleSpec:i.styleSpec})):"string"!==o&&"number"!==o&&"boolean"!==o&&s.push(new tK(`${r}[${t}]`,n[t],`string, number, or boolean expected, ${o} found`));break;case"any":case"all":case"none":for(let a=1;a<n.length;a++)s=s.concat(t({key:`${r}[${a}]`,value:n[a],style:i.style,styleSpec:i.styleSpec}));break;case"has":case"!has":o=rh(n[1]),2===n.length?"string"!==o&&s.push(new tK(`${r}[1]`,n[1],`string expected, ${o} found`)):s.push(new tK(r,n,`filter array for "${n[0]}" operator must have 2 elements`))}return s}(t)}function r1(t,i){let n,r=t.key,a=t.validateSpec,o=t.style,s=t.styleSpec,l=t.value,c=t.objectKey,d=s[`${i}_${t.layerType}`];if(!d)return[];let h=c.match(/^(.*)-transition$/);if("paint"===i&&h&&d[h[1]]&&d[h[1]].transition)return a({key:r,value:l,valueSpec:s.transition,style:o,styleSpec:s});let u=t.valueSpec||d[c];if(!u)return[new tK(r,l,`unknown property "${c}"`)];if("string"===rh(l)&&rs(u)&&!u.tokens&&(n=/^{([^}]+)}$/.exec(l)))return[new tK(r,l,`"${c}" does not support interpolation syntax
2
- Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(n[1])} }\`.`)];let p=[];return"symbol"===t.layerType&&"text-font"===c&&ru(rZ(l))&&"identity"===rH(l.type)&&p.push(new tK(r,l,'"text-font" does not support identity functions')),p.concat(a({key:t.key,value:l,valueSpec:u,style:o,styleSpec:s,expressionContext:"property",propertyType:i,propertyKey:c}))}function r3(t){return r1(t,"paint")}function r5(t){return r1(t,"layout")}function r4(t){let i=[],n=t.value,r=t.key,a=t.style,o=t.styleSpec;if("object"!==rh(n))return[new tK(r,n,`object expected, ${rh(n)} found`)];n.type||n.ref||i.push(new tK(r,n,'either "type" or "ref" is required'));let s=rH(n.type),l=rH(n.ref);if(n.id){let o=rH(n.id);for(let s=0;s<t.arrayIndex;s++){let t=a.layers[s];rH(t.id)===o&&i.push(new tK(r,n.id,`duplicate layer id "${n.id}", previously used at line ${t.id.__line__}`))}}if("ref"in n){let t;["type","source","source-layer","filter","layout"].forEach(t=>{t in n&&i.push(new tK(r,n[t],`"${t}" is prohibited for ref layers`))}),a.layers.forEach(i=>{rH(i.id)===l&&(t=i)}),t?t.ref?i.push(new tK(r,n.ref,"ref cannot reference another ref layer")):s=rH(t.type):i.push(new tK(r,n.ref,`ref layer "${l}" not found`))}else if("background"!==s)if(n.source){let t=a.sources&&a.sources[n.source],o=t&&rH(t.type);t?"vector"===o&&"raster"===s?i.push(new tK(r,n.source,`layer "${n.id}" requires a raster source`)):"raster-dem"!==o&&"hillshade"===s||"raster-dem"!==o&&"color-relief"===s?i.push(new tK(r,n.source,`layer "${n.id}" requires a raster-dem source`)):"raster"===o&&"raster"!==s?i.push(new tK(r,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==o||n["source-layer"]?"raster-dem"===o&&"hillshade"!==s&&"color-relief"!==s?i.push(new tK(r,n.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):"line"===s&&n.paint&&n.paint["line-gradient"]&&("geojson"!==o||!t.lineMetrics)&&i.push(new tK(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):i.push(new tK(r,n,`layer "${n.id}" must specify a "source-layer"`)):i.push(new tK(r,n.source,`source "${n.source}" not found`))}else i.push(new tK(r,n,'missing required property "source"'));return"raster"===s&&n.paint?.resampling&&n.paint?.["raster-resampling"]&&i.push(new tK(r,n.paint,`layer "${n.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),i=i.concat(rX({key:r,value:n,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":()=>[],type:()=>t.validateSpec({key:`${r}.type`,value:n.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:n,objectKey:"type"}),filter:r2,layout:t=>rX({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>r5(rd({layerType:s},t))}}),paint:t=>rX({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>r3(rd({layerType:s},t))}})}}))}function r6(t){let i=t.value,n=t.key,r=rh(i);return"string"===r?[]:[new tK(n,i,`string expected, ${r} found`)]}let r8={promoteId:function({key:t,value:i}){if("string"===rh(i))return r6({key:t,value:i});{let n=[];for(let r in i)n.push(...r6({key:`${t}.${r}`,value:i[r]}));return n}}};function r7(t){let i=t.value,n=t.key,r=t.styleSpec,a=t.style,o=t.validateSpec;if(!i.type)return[new tK(n,i,'"type" is required')];let s=rH(i.type),l;switch(s){case"vector":case"raster":return rX({key:n,value:i,valueSpec:r[`source_${s.replace("-","_")}`],style:t.style,styleSpec:r,objectElementValidators:r8,validateSpec:o});case"raster-dem":return function(t){let i=t.sourceName??"",n=t.value,r=t.styleSpec,a=r.source_raster_dem,o=t.style,s=[],l=rh(n);if(void 0===n)return s;if("object"!==l)return s.push(new tK("source_raster_dem",n,`object expected, ${l} found`)),s;let c="custom"===rH(n.encoding),d=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let l in n)!c&&d.includes(l)?s.push(new tK(l,n[l],`In "${i}": "${l}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):a[l]?s=s.concat(t.validateSpec({key:l,value:n[l],valueSpec:a[l],validateSpec:t.validateSpec,style:o,styleSpec:r})):s.push(new tK(l,n[l],`unknown property "${l}"`));return s}({sourceName:n,value:i,style:t.style,styleSpec:r,validateSpec:o});case"geojson":if(l=rX({key:n,value:i,valueSpec:r.source_geojson,style:a,styleSpec:r,validateSpec:o,objectElementValidators:r8}),i.cluster)for(let t in i.clusterProperties){let[r,a]=i.clusterProperties[t],s="string"==typeof r?[r,["accumulated"],["get",t]]:r;l.push(...rJ({key:`${n}.${t}.map`,value:a,validateSpec:o,expressionContext:"cluster-map"})),l.push(...rJ({key:`${n}.${t}.reduce`,value:s,validateSpec:o,expressionContext:"cluster-reduce"}))}return l;case"video":return rX({key:n,value:i,valueSpec:r.source_video,style:a,validateSpec:o,styleSpec:r});case"image":return rX({key:n,value:i,valueSpec:r.source_image,style:a,validateSpec:o,styleSpec:r});case"canvas":return[new tK(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return r0({key:`${n}.type`,value:i.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,validateSpec:o,styleSpec:r})}}function r9(t){let i=t.value,n=t.styleSpec,r=n.light,a=t.style,o=[],s=rh(i);if(void 0===i)return o;if("object"!==s)return o.concat([new tK("light",i,`object expected, ${s} found`)]);for(let s in i){let l=s.match(/^(.*)-transition$/);o=l&&r[l[1]]&&r[l[1]].transition?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:n.transition,validateSpec:t.validateSpec,style:a,styleSpec:n})):r[s]?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:r[s],validateSpec:t.validateSpec,style:a,styleSpec:n})):o.concat([new tK(s,i[s],`unknown property "${s}"`)])}return o}function ae(t){let i=t.value,n=t.styleSpec,r=n.sky,a=t.style,o=rh(i);if(void 0===i)return[];if("object"!==o)return[new tK("sky",i,`object expected, ${o} found`)];let s=[];for(let o in i)s=r[o]?s.concat(t.validateSpec({key:o,value:i[o],valueSpec:r[o],style:a,styleSpec:n})):s.concat([new tK(o,i[o],`unknown property "${o}"`)]);return s}function at(t){let i=t.value,n=t.styleSpec,r=n.terrain,a=t.style,o=[],s=rh(i);if(void 0===i)return o;if("object"!==s)return o.concat([new tK("terrain",i,`object expected, ${s} found`)]);for(let s in i)o=r[s]?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:r[s],validateSpec:t.validateSpec,style:a,styleSpec:n})):o.concat([new tK(s,i[s],`unknown property "${s}"`)]);return o}function ai(t){let i=[],n=t.value,r=t.key;if(Array.isArray(n)){let a=[],o=[];for(let s in n)n[s].id&&a.includes(n[s].id)&&i.push(new tK(r,n,`all the sprites' ids must be unique, but ${n[s].id} is duplicated`)),a.push(n[s].id),n[s].url&&o.includes(n[s].url)&&i.push(new tK(r,n,`all the sprites' URLs must be unique, but ${n[s].url} is duplicated`)),o.push(n[s].url),i=i.concat(rX({key:`${r}[${s}]`,value:n[s],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:t.validateSpec}));return i}return r6({key:r,value:n})}function an(t){return!!t&&t.constructor===Object}function ar(t){return an(t.value)?[]:[new tK(t.key,t.value,`object expected, ${rh(t.value)} found`)]}let aa=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;function ao(t){let i=t.key??"font-faces",n=t.value,r=t.validateSpec,a=t.styleSpec??tY,o=t.style;if(!an(n))return[new tK(i,n,`object expected, ${rh(n)} found`)];let s=[];for(let t in n){let l=n[t],c=rh(l);if("string"===c)s.push(...r6({key:`${i}.${t}`,value:l}));else if("array"===c){let n={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[c,d]of l.entries()){let l=`${i}.${t}[${c}]`;s.push(...rX({key:l,value:d,valueSpec:n,styleSpec:a,style:o,validateSpec:r}));let h=an(d)?d["unicode-range"]:void 0;if("array"===rh(h))for(let[t,i]of h.entries())s.push(...function(t,i){if("string"!==rh(i))return[];let n=`${i}`,r=()=>[new tK(t,i,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],a=n.match(aa);if(!a)return r();let[,o,s,l]=a;if(void 0!==l)return l.length>6?r():[];let c=parseInt(o,16),d=void 0===s?c:parseInt(s,16);return c>1114111||d>1114111?[new tK(t,i,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:c>d?[new tK(t,i,`unicode range start must not be greater than its end, but ${n} is`)]:[]}(`${l}.unicode-range[${t}]`,i))}}else s.push(new tK(`${i}.${t}`,l,`string or array expected, ${c} found`))}return s}let as={"*":()=>[],array:rW,boolean:function(t){let i=t.value,n=t.key,r=rh(i);return"boolean"===r?[]:[new tK(n,i,`boolean expected, ${r} found`)]},number:rY,color:rQ,constants:rG,enum:r0,filter:r2,function:rK,layer:r4,object:rX,source:r7,light:r9,sky:ae,terrain:at,projection:function(t){let i=t.value,n=t.styleSpec,r=n.projection,a=t.style,o=rh(i);if(void 0===i)return[];if("object"!==o)return[new tK("projection",i,`object expected, ${o} found`)];let s=[];for(let o in i)s=r[o]?s.concat(t.validateSpec({key:o,value:i[o],valueSpec:r[o],style:a,styleSpec:n})):s.concat([new tK(o,i[o],`unknown property "${o}"`)]);return s},projectionDefinition:function(t){var i;let n=t.key,r=t.value,a=rh(r=r instanceof String?r.valueOf():r);return"array"!==a||Array.isArray(i=r)&&3===i.length&&"string"==typeof i[0]&&"string"==typeof i[1]&&"number"==typeof i[2]||["interpolate","step","literal"].includes(r[0])?["array","string"].includes(a)?[]:[new tK(n,r,`projection expected, invalid type "${a}" found`)]:[new tK(n,r,`projection expected, invalid array ${JSON.stringify(r)} found`)]},string:r6,formatted:function(t){return 0===r6(t).length?[]:rJ(t)},resolvedImage:function(t){return 0===r6(t).length?[]:rJ(t)},padding:function(t){let i=t.key,n=t.value;if("array"===rh(n)){if(n.length<1||n.length>4)return[new tK(i,n,`padding requires 1 to 4 values; ${n.length} values found`)];let r={type:"number"},a=[];for(let o=0;o<n.length;o++)a=a.concat(t.validateSpec({key:`${i}[${o}]`,value:n[o],validateSpec:t.validateSpec,valueSpec:r}));return a}return rY({key:i,value:n,valueSpec:{}})},numberArray:function(t){let i=t.key,n=t.value;if("array"===rh(n)){let r={type:"number"};if(n.length<1)return[new tK(i,n,"array length at least 1 expected, length 0 found")];let a=[];for(let o=0;o<n.length;o++)a=a.concat(t.validateSpec({key:`${i}[${o}]`,value:n[o],validateSpec:t.validateSpec,valueSpec:r}));return a}return rY({key:i,value:n,valueSpec:{}})},colorArray:function(t){let i=t.key,n=t.value;if("array"===rh(n)){if(n.length<1)return[new tK(i,n,"array length at least 1 expected, length 0 found")];let t=[];for(let r=0;r<n.length;r++)t=t.concat(rQ({key:`${i}[${r}]`,value:n[r],valueSpec:{}}));return t}return rQ({key:i,value:n,valueSpec:{}})},variableAnchorOffsetCollection:function(t){let i=t.key,n=t.value,r=rh(n),a=t.styleSpec;if("array"!==r||n.length<1||n.length%2!=0)return[new tK(i,n,"variableAnchorOffsetCollection requires a non-empty array of even length")];let o=[];for(let r=0;r<n.length;r+=2)o=(o=o.concat(r0({key:`${i}[${r}]`,value:n[r],valueSpec:a.layout_symbol["text-anchor"]}))).concat(rW({key:`${i}[${r+1}]`,value:n[r+1],valueSpec:{length:2,value:"number"},validateSpec:t.validateSpec,style:t.style,styleSpec:a}));return o},sprite:ai,state:ar,fontFaces:ao};function al(t){let i=t.value,n=t.valueSpec,r=t.styleSpec;return t.validateSpec=al,n.expression&&ru(rH(i))?rK(t):n.expression&&rE(rZ(i))?rJ(t):n.type&&as[n.type]?as[n.type](t):rX(rd({},t,{valueSpec:n.type?r[n.type]:n}))}function ac(t){let i=t.value,n=t.key,r=r6(t);return r.length||(-1===i.indexOf("{fontstack}")&&r.push(new tK(n,i,'"glyphs" url must include a "{fontstack}" token')),-1===i.indexOf("{range}")&&r.push(new tK(n,i,'"glyphs" url must include a "{range}" token'))),r}function ad(t,i=tY){let n=[];return n=n.concat(al({key:"",value:t,valueSpec:i.$root,styleSpec:i,style:t,validateSpec:al,objectElementValidators:{glyphs:ac,"*":()=>[]}})),t.constants&&(n=n.concat(rG({key:"constants",value:t.constants,style:t,styleSpec:i,validateSpec:al}))),au(n)}function ah(t){return function(i){return t(Object.assign({},i,{validateSpec:al}))}}function au(t){return[].concat(t).sort((t,i)=>t.line-i.line)}function ap(t){return function(...i){return au(t.apply(this,i))}}ad.source=ap(ah(r7)),ad.sprite=ap(ah(ai)),ad.glyphs=ap(ah(ac)),ad.fontFaces=ap(ah(ao)),ad.light=ap(ah(r9)),ad.sky=ap(ah(ae)),ad.terrain=ap(ah(at)),ad.state=ap(ah(ar)),ad.layer=ap(ah(r4)),ad.filter=ap(ah(r2)),ad.paintProperty=ap(ah(r3)),ad.layoutProperty=ap(ah(r5));let am={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"};var af=class{constructor(t,i,n){this._rootKey=i,this._globalState=n,this.setValue(t)}evaluate(){return this._literalValue??this._compiledValue.evaluate({})}setValue(t){if(null==t||"visible"===t||"none"===t){this._literalValue="none"===t?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let i=rT(t,this._rootKey,am,this._globalState);if("error"===i.result)throw this._literalValue="visible",this._compiledValue=void 0,Error(i.value.map(t=>`${t.key}: ${t.message}`).join(", "));this._literalValue=void 0,this._compiledValue=i.value,this._globalStateRefs=rD(i.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};let ag=new Set(Object.keys(tY).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function a_(t,i){let n=Object.entries(i.sources??{}).filter(([,t])=>!ag.has(t.type)).map(([t])=>`sources.${t}`);return av(t,ad(i).filter(({message:t})=>!n.some(i=>t.startsWith(`${i}:`)||t.startsWith(`${i}.`))))}function av(t,i){let n=!1;for(let r of i){if("warning"===r.severity){tl(r.message);continue}t.fire(new tX(Error(r.message))),n=!0}return n}function ay(t,i,n,r){return r?.validate!==!1&&av(t,i({styleSpec:tY,...n}))}var ab=class t{constructor(t,i,n){let r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let a=new Int32Array(this.arrayBuffer);t=a[0],i=a[1],n=a[2],this.d=i+2*n;for(let t=0;t<this.d*this.d;t++){let i=a[3+t],n=a[3+t+1];r.push(i===n?null:a.subarray(i,n))}let o=a[3+r.length],s=a[3+r.length+1];this.keys=a.subarray(o,s),this.bboxes=a.subarray(s),this.insert=this._insertReadonly}else{this.d=i+2*n;for(let t=0;t<this.d*this.d;t++)r.push([]);this.keys=[],this.bboxes=[]}this.n=i,this.extent=t,this.padding=n,this.scale=i/t,this.uid=0;let a=n/i*t;this.min=-a,this.max=t+a}insert(t,i,n,r,a){this._forEachCell(i,n,r,a,this._insertCell,this.uid++,void 0,void 0),this.keys.push(t),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)}_insertReadonly(){throw Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(t,i,n,r,a,o){this.cells[a].push(o)}query(t,i,n,r,a){let o=this.min,s=this.max;if(t<=o&&i<=o&&s<=n&&s<=r&&!a)return[...this.keys];{let o=[];return this._forEachCell(t,i,n,r,this._queryCell,o,{},a),o}}_queryCell(t,i,n,r,a,o,s,l){let c=this.cells[a];if(null!==c){let a=this.keys,d=this.bboxes;for(let h of c)if(void 0===s[h]){let c=4*h;(l?l(d[c+0],d[c+1],d[c+2],d[c+3]):t<=d[c+2]&&i<=d[c+3]&&n>=d[c+0]&&r>=d[c+1])?(s[h]=!0,o.push(a[h])):s[h]=!1}}}_forEachCell(t,i,n,r,a,o,s,l){let c=this._convertToCellCoord(t),d=this._convertToCellCoord(i),h=this._convertToCellCoord(n),u=this._convertToCellCoord(r);for(let p=c;p<=h;p++)for(let c=d;c<=u;c++){let d=this.d*c+p;if((!l||l(this._convertFromCellCoord(p),this._convertFromCellCoord(c),this._convertFromCellCoord(p+1),this._convertFromCellCoord(c+1)))&&a.call(this,t,i,n,r,d,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,i=3+this.cells.length+1+1,n=0;for(let t of this.cells)n+=t.length;let r=new Int32Array(i+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;let a=i;for(let i=0;i<t.length;i++){let n=t[i];r[3+i]=a,r.set(n,a),a+=n.length}return r[3+t.length]=a,r.set(this.keys,a),a+=this.keys.length,r[3+t.length+1]=a,r.set(this.bboxes,a),a+=this.bboxes.length,r.buffer}static serialize(t,i){let n=t.toArrayBuffer();return i&&i.push(n),{buffer:n}}static deserialize(i){return new t(i.buffer)}};let ax={};function aw(t,i,n={}){if(ax[t])throw Error(`${t} is already registered.`);Object.defineProperty(i,"_classRegistryKey",{value:t,writeable:!1}),ax[t]={klass:i,omit:n.omit||[],shallow:n.shallow||[]}}for(let t in aw("Object",Object),aw("Set",Set),aw("TransferableGridIndex",ab),aw("Color",iM),aw("Error",Error),aw("AJAXError",tV),aw("ResolvedImage",ij),aw("StylePropertyFunction",rS),aw("StyleExpression",rx,{omit:["_evaluator"]}),aw("ZoomDependentExpression",rA),aw("ZoomConstantExpression",rk),aw("CompoundExpression",n7,{omit:["_evaluate"]}),n5)n5[t]._classRegistryKey||aw(`Expression_${t}`,n5[t]);function aC(t){return t&&"u">typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor?.name==="ArrayBuffer")}function aE(t){let i=t.constructor;return t.$name||i._classRegistryKey}function aT(t){return!function(t){if("object"!=typeof t||!t)return!1;let i=aE(t);return i&&"Object"!==i}(t)&&(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof Blob||t instanceof Error||aC(t)||tg(t)||ArrayBuffer.isView(t)||t instanceof ImageData)}function ak(t,i){if(aT(t))return(aC(t)||tg(t))&&i&&i.push(t),ArrayBuffer.isView(t)&&i&&i.push(t.buffer),t instanceof ImageData&&i&&i.push(t.data.buffer),t;if(Array.isArray(t)){let n=[];for(let r of t)n.push(ak(r,i));return n}if("object"!=typeof t)throw Error(`can't serialize object of type ${typeof t}`);let n=aE(t);if(!n)throw Error(`can't serialize object of unregistered class ${t.constructor.name}`);if(!ax[n])throw Error(`${n} is not registered.`);let{klass:r}=ax[n],a=r.serialize?r.serialize(t,i):{};if(r.serialize){if(a===i?.[i.length-1])throw Error("statically serialized object won't survive transfer of $name property")}else{for(let r in t){if(!t.hasOwnProperty(r)||ax[n].omit.includes(r))continue;let o=t[r];void 0!==o&&(a[r]=ax[n].shallow.includes(r)?o:ak(o,i))}t instanceof Error&&(a.message=t.message)}if(a.$name)throw Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(a.$name=n),a}function aA(t){if(aT(t))return t;if(Array.isArray(t))return t.map(aA);if("object"!=typeof t)throw Error(`can't deserialize object of type ${typeof t}`);let i=aE(t)||"Object";if(!ax[i])throw Error(`can't deserialize unregistered class ${i}`);let{klass:n}=ax[i];if(!n)throw Error(`can't deserialize unregistered class ${i}`);if(n.deserialize)return n.deserialize(t);let r=Object.create(n.prototype);for(let n of Object.keys(t)){if("$name"===n)continue;let a=t[n];r[n]=ax[i].shallow.includes(n)?a:aA(a)}return r}var aI=class{constructor(){this.first=!0}update(t,i){let n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=i):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=i),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))}};function aS(t){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t))}function aD(t){return/[\u02EA\u02EB\u1100-\u11FF\u1400-\u167F\u18B0-\u18F5\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3007\u3012\u3013\u3020-\u302F\u3031-\u303F\u3041-\u3096\u309D-\u30FB\u30FD-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFE4\uDFF0-\uDFF6]|[\uD81C-\uD822\uD83D\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD30-\uDEFB]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83C[\uDC00-\uDE00\uDF00-\uDFFF]|\uD83E[\uDD00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t))}function aP(t){return/[\u0E01-\u0E3A\u0E40-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u109F\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u19E0-\u19FF\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9FE\uAA60-\uAA7F]|\uD805[\uDED0-\uDEE3]/gim.test(String.fromCodePoint(t))}function aM(t){return/\s/u.test(String.fromCodePoint(t))}function az(t){for(let i of t)if(aD(i.codePointAt(0)))return!0;return!1}function aL(t){return RegExp(t.map(t=>{try{return RegExp(`\\p{sc=${t}}`,"u").source}catch{return null}}).filter(t=>t).join("|"),"u")}let aR=aL(["Arab","Dupl","Mong","Ougr","Syrc"]);function aF(t){return!(aD(t)||/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(t)))}function aO(t){return/\p{sc=Arab}/u.test(String.fromCodePoint(t))}let aB=aL("Adlm.Arab.Armi.Avst.Chrs.Cprt.Egyp.Elym.Gara.Hatr.Hebr.Hung.Khar.Lydi.Mand.Mani.Mend.Merc.Mero.Narb.Nbat.Nkoo.Orkh.Palm.Phli.Phlp.Phnx.Prti.Rohg.Samr.Sarb.Sogo.Syrc.Thaa.Todr.Yezi".split("."));function aN(t){return aB.test(String.fromCodePoint(t))}let aV=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(aV.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return null!=this.applyArabicShaping&&null!=this.processBidirectionalText&&null!=this.processStyledBidirectionalText}getRTLTextPluginStatus(){return this.pluginStatus}async syncState(t,i){if(this.isParsed())return this.getState();if("loading"!==t.pluginStatus)return this.setState(t),t;let n=t.pluginURL,r=new Promise(t=>{this.loadScriptResolve=t}),a=new Promise(t=>setTimeout(()=>t(),this.TIMEOUT));if(await i(n),await Promise.race([r,a]),this.isParsed()){let t={pluginStatus:"loaded",pluginURL:n};return this.setState(t),t}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${n}`)}};var a$=class{constructor(t,i){this.isSupportedScript=aj,this.zoom=t,i?(this.now=i.now||0,this.fadeDuration=i.fadeDuration||0,this.zoomHistory=i.zoomHistory||new aI,this.transition=i.transition||{}):(this.now=0,this.fadeDuration=0,this.zoomHistory=new aI,this.transition={})}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let t=this.zoom,i=t-Math.floor(t),n=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:i+(1-i)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*i}}};function aj(t){var i="loaded"===aV.getRTLTextPluginStatus();for(let n of t)if(!function(t,i){return!(!i&&aN(t))&&!/[\u0900-\u0DFF\u0F00-\u109F\u1780-\u17FF]/gim.test(String.fromCodePoint(t))}(n.codePointAt(0),i))return!1;return!0}let aU="-transition";var aq=class{constructor(t,i,n,r){this.property=t,this.value=i,this.expression=function(t,i,n,r){if(ru(t))return new rS(t,i,n);if(rE(t)){let a=rI(t,i,n,r);if("error"===a.result)throw Error(a.value.map(t=>`${t.key}: ${t.message}`).join(", "));return a.value}{let i=t;return"color"===n.type&&"string"==typeof t?i=iM.parse(t):"padding"===n.type&&("number"==typeof t||Array.isArray(t))?i=iF.parse(t):"numberArray"===n.type&&("number"==typeof t||Array.isArray(t))?i=iO.parse(t):"colorArray"===n.type&&("string"==typeof t||Array.isArray(t))?i=iB.parse(t):"variableAnchorOffsetCollection"===n.type&&Array.isArray(t)?i=i$.parse(t):"projectionDefinition"===n.type&&"string"==typeof t&&(i=iU.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>i}}}(void 0===i?t.specification.default:i,n,t.specification,r)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}possiblyEvaluate(t,i,n){return this.property.possiblyEvaluate(this,t,i,n)}},aG=class{constructor(t,i,n){this.property=t,this.value=new aq(t,void 0,i,n)}transitioned(t,i){return new aZ(this.property,this.value,i,e6({},t.transition,this.transition),t.now)}untransitioned(){return new aZ(this.property,this.value,null,{},0)}},aH=class{constructor(t,i,n){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=n,this._rootKey=i}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return to(this._values[t].value.value)}setValue(t,i){Object.hasOwn(this._values,t)||(this._values[t]=new aG(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new aq(this._values[t].property,null===i?void 0:to(i),this._propertyRootKey(t),this._globalState)}getTransition(t){return to(this._values[t].transition)}setTransition(t,i){Object.hasOwn(this._values,t)||(this._values[t]=new aG(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=to(i)||void 0}serialize(){let t={};for(let i of Object.keys(this._values)){let n=this.getValue(i);void 0!==n&&(t[i]=n);let r=this.getTransition(i);void 0!==r&&(t[`${i}${aU}`]=r)}return t}transitioned(t,i){let n=new aX(this._properties);for(let r of Object.keys(this._values))n._values[r]=this._values[r].transitioned(t,i._values[r]);return n}untransitioned(){let t=new aX(this._properties);for(let i of Object.keys(this._values))t._values[i]=this._values[i].untransitioned();return t}},aZ=class{constructor(t,i,n,r,a){this.property=t,this.value=i,this.begin=a+r.delay||0,this.end=this.begin+r.duration||0,t.specification.transition&&(r.delay||r.duration)&&(this.prior=n)}possiblyEvaluate(t,i,n){let r=t.now||0,a=this.value.possiblyEvaluate(t,i,n),o=this.prior;if(!o)return a;if(r>this.end||this.value.isDataDriven())return this.prior=null,a;if(r<this.begin)return o.possiblyEvaluate(t,i,n);{let s=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,i,n),a,function(t){if(t<=0)return 0;if(t>=1)return 1;let i=t*t,n=i*t;return 4*(t<.5?n:3*(t-i)+n-.75)}(s))}}},aX=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,i,n){let r=new aK(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(t,i,n);return r}hasTransition(){for(let t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}},aW=class{constructor(t,i,n){this._properties=t,this._values=Object.create(t.defaultPropertyValues),this._globalState=n,this._rootKey=i}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasValue(t){return void 0!==this._values[t].value}hasProperty(t){return t in this._properties.defaultPropertyValues}getValue(t){return to(this._values[t].value)}setValue(t,i){this._values[t]=new aq(this._values[t].property,null===i?void 0:to(i),this._propertyRootKey(t),this._globalState)}serialize(){let t={};for(let i of Object.keys(this._values)){let n=this.getValue(i);void 0!==n&&(t[i]=n)}return t}possiblyEvaluate(t,i,n){let r=new aK(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(t,i,n);return r}},aY=class{constructor(t,i,n){this.property=t,this.value=i,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(t){return"constant"===this.value.kind?this.value.value:t}evaluate(t,i,n,r){return this.property.evaluate(this.value,this.parameters,t,i,n,r)}},aK=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}};function aJ(t){if(Array.isArray(t))return t.length;let i=t?.values;return Array.isArray(i)?i.length:void 0}function aQ(t,i){let n=aJ(t),r=aJ(i);return void 0!==n&&void 0!==r&&n!==r}var a0=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i){if(t.isDataDriven())throw Error("Value should not be data driven");return t.expression.evaluate(i)}interpolate(t,i,n){if(aQ(t,i))return tl(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),i;let r=i1[this.specification.type];return r?r(t,i,n):t}},a2=class{constructor(t,i,n){this.specification=t,this.name=i,this.overrides=n}possiblyEvaluate(t,i,n,r){return"constant"===t.expression.kind||"camera"===t.expression.kind?new aY(this,{kind:"constant",value:t.expression.evaluate(i,null,{},n,r)},i):new aY(this,t.expression,i)}interpolate(t,i,n){if("constant"!==t.value.kind||"constant"!==i.value.kind)return t;if(void 0===t.value.value||void 0===i.value.value)return new aY(this,{kind:"constant",value:void 0},t.parameters);if(aQ(t.value.value,i.value.value))return tl(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),i;let r=i1[this.specification.type];return r?new aY(this,{kind:"constant",value:r(t.value.value,i.value.value,n)},t.parameters):t}evaluate(t,i,n,r,a,o){return"constant"===t.kind?t.value:t.evaluate(i,n,r,a,o)}},a1=class extends a2{possiblyEvaluate(t,i,n,r){if(void 0===t.value)return new aY(this,{kind:"constant",value:void 0},i);if("constant"===t.expression.kind){let a=t.expression.evaluate(i,null,{},n,r),o="resolvedImage"===t.property.specification.type&&"string"!=typeof a?a.name:a;return new aY(this,{kind:"constant",value:this._calculate(o,o,o,i)},i)}return"camera"===t.expression.kind?new aY(this,{kind:"constant",value:this._calculate(t.expression.evaluate({zoom:i.zoom-1}),t.expression.evaluate({zoom:i.zoom}),t.expression.evaluate({zoom:i.zoom+1}),i)},i):new aY(this,t.expression,i)}evaluate(t,i,n,r,a,o){if("source"===t.kind){let s=t.evaluate(i,n,r,a,o);return this._calculate(s,s,s,i)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(i.zoom)-1},n,r),t.evaluate({zoom:Math.floor(i.zoom)},n,r),t.evaluate({zoom:Math.floor(i.zoom)+1},n,r),i):t.value}_calculate(t,i,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:i}:{from:n,to:i}}interpolate(t){return t}},a3=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i,n,r){if(void 0!==t.value){if("constant"===t.expression.kind){let a=t.expression.evaluate(i,null,{},n,r);return this._calculate(a,a,a,i)}return this._calculate(t.expression.evaluate(new a$(Math.floor(i.zoom-1),i)),t.expression.evaluate(new a$(Math.floor(i.zoom),i)),t.expression.evaluate(new a$(Math.floor(i.zoom+1),i)),i)}}_calculate(t,i,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:i}:{from:n,to:i}}interpolate(t){return t}},a5=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i,n,r){return!!t.expression.evaluate(i,null,{},n,r)}interpolate(){return!1}},a4=class{constructor(t){for(let i in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){let n=t[i];n.specification.overridable&&this.overridableProperties.push(i);let r=this.defaultPropertyValues[i]=new aq(n,void 0,n.name,void 0),a=this.defaultTransitionablePropertyValues[i]=new aG(n,n.name,void 0);this.defaultTransitioningPropertyValues[i]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=r.possiblyEvaluate({})}}};aw("DataDrivenProperty",a2),aw("DataConstantProperty",a0),aw("CrossFadedDataDrivenProperty",a1),aw("CrossFadedProperty",a3),aw("ColorRampProperty",a5);let a6=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",a8=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";var a7=class extends tW{constructor(t,i,n){if(super(),this.id=t.id,this.type=t.type,this._globalState=n,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=function(t,i,n){return new af(t,i,n)}(this.visibility,`layers[${this.id}].layout.visibility`,n),"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=rN(t.filter,`layers[${this.id}].filter`,n)),i.layout&&(this._unevaluatedLayout=new aW(i.layout,`layers[${this.id}].layout`,n)),i.paint)){for(let r in this._transitionablePaint=new aH(i.paint,`layers[${this.id}].paint`,n),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new aK(i.paint)}}setFilter(t){this.filter=t,this._featureFilter=rN(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){if("visibility"===t)return this.visibility;if(this._transitionablePaint?.hasProperty(t))throw Error(t+a6);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let i of this._visibilityExpression.getGlobalStateRefs())t.add(i);if(this._unevaluatedLayout)for(let i in this._unevaluatedLayout._values)for(let n of this._unevaluatedLayout._values[i].getGlobalStateRefs())t.add(n);for(let i of this._featureFilter.getGlobalStateRefs())t.add(i);return t}getPaintAffectingGlobalStateRefs(){let t=new globalThis.Map;if(this._transitionablePaint)for(let i in this._transitionablePaint._values){let n=this._transitionablePaint._values[i].value;for(let r of n.getGlobalStateRefs()){let a=t.get(r)??[];a.push({name:i,value:n.value}),t.set(r,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,i,n={}){if("visibility"===t){this.visibility=i,this._visibilityExpression.setValue(i),this.recalculateVisibility();return}this._transitionablePaint?.hasProperty(t)?this.fire(new tX(Error(t+a6))):null!=i&&this._validate(ad.layoutProperty,`layers.${this.id}.layout.${t}`,t,i,n)||this._unevaluatedLayout.setValue(t,i)}getPaintProperty(t){if(t.endsWith("-transition")){let i=t.slice(0,-11);if("visibility"===i||this._unevaluatedLayout?.hasProperty(i))throw Error(t+a8);return this._transitionablePaint.getTransition(i)}if("visibility"===t||this._unevaluatedLayout?.hasProperty(t))throw Error(t+a8);return this._transitionablePaint.getValue(t)}setPaintProperty(t,i,n={}){if("visibility"===t||this._unevaluatedLayout?.hasProperty(t))return this.fire(new tX(Error(t+a8))),!1;if(null!=i&&this._validate(ad.paintProperty,`layers.${this.id}.paint.${t}`,t,i,n))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),i||void 0),!1;{let n=this._transitionablePaint._values[t],r="cross-faded-data-driven"===n.property.specification["property-type"],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,i),this._handleSpecialPaintPropertyUpdate(t);let s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||r||this._handleOverridablePaintPropertyUpdate(t,o,s)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,i,n){return!1}isHidden(t=this.minzoom,i=!1){return!!(this.minzoom&&t<(i?Math.floor(this.minzoom):this.minzoom))||!!this.maxzoom&&t>=this.maxzoom||"none"===this._evaluatedVisibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,i){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,i)}serialize(){let t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout?.serialize(),paint:this._transitionablePaint?.serialize()};return this.visibility&&(t.layout||={},t.layout.visibility=this.visibility),ta(t,(t,i)=>void 0!==t&&!("layout"===i&&!Object.keys(t).length)&&!("paint"===i&&!Object.keys(t).length))}_validate(t,i,n,r,a={}){return ay(this,t,{key:i,layerType:this.type,objectKey:n,value:r},a)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let i=this.paint.get(t);if(i instanceof aY&&rs(i.property.specification)&&("source"===i.value.kind||"composite"===i.value.kind)&&i.value.isStateDependent)return!0}return!1}},a9={get paint(){return o||=new a4({"raster-opacity":new a0(tY.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new a0(tY.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new a0(tY.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new a0(tY.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new a0(tY.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new a0(tY.paint_raster["raster-contrast"],"raster-contrast"),resampling:new a0(tY.paint_raster.resampling,"resampling"),"raster-resampling":new a0(tY.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new a0(tY.paint_raster["raster-fade-duration"],"raster-fade-duration")})}},oe=class extends a7{constructor(t,i){super(t,a9,i)}};let ot={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};var oi=class{constructor(t,i){this._structArray=t,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},on=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,i){return t._trim(),i&&(t.isTransferred=!0,i.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let i=Object.create(this.prototype);return i.arrayBuffer=t.arrayBuffer,i.length=t.length,i.capacity=t.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function or(t,i=1){let n=0,r=0;return{members:t.map(t=>{let a=ot[t.type].BYTES_PER_ELEMENT,o=n=oa(n,Math.max(i,a)),s=t.components||1;return r=Math.max(r,a),n+=a*s,{name:t.name,type:t.type,components:s,offset:o}}),size:oa(n,Math.max(r,i)),alignment:i}}function oa(t,i){return Math.ceil(t/i)*i}var oo=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,i)}emplace(t,i,n){let r=2*t;return this.int16[r+0]=i,this.int16[r+1]=n,t}};oo.prototype.bytesPerElement=4,aw("StructArrayLayout2i4",oo);var os=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.int16[a+0]=i,this.int16[a+1]=n,this.int16[a+2]=r,t}};os.prototype.bytesPerElement=6,aw("StructArrayLayout3i6",os);var ol=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,n,r)}emplace(t,i,n,r,a){let o=4*t;return this.int16[o+0]=i,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=a,t}};ol.prototype.bytesPerElement=8,aw("StructArrayLayout4i8",ol);var oc=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=6*t;return this.int16[l+0]=i,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=s,t}};oc.prototype.bytesPerElement=12,aw("StructArrayLayout2i4i12",oc);var od=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=4*t,c=8*t;return this.int16[l+0]=i,this.int16[l+1]=n,this.uint8[c+4]=r,this.uint8[c+5]=a,this.uint8[c+6]=o,this.uint8[c+7]=s,t}};od.prototype.bytesPerElement=8,aw("StructArrayLayout2i4ub8",od);var oh=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,i)}emplace(t,i,n){let r=2*t;return this.float32[r+0]=i,this.float32[r+1]=n,t}};oh.prototype.bytesPerElement=8,aw("StructArrayLayout2f8",oh);var ou=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d){let h=this.length;return this.resize(h+1),this.emplace(h,t,i,n,r,a,o,s,l,c,d)}emplace(t,i,n,r,a,o,s,l,c,d,h){let u=10*t;return this.uint16[u+0]=i,this.uint16[u+1]=n,this.uint16[u+2]=r,this.uint16[u+3]=a,this.uint16[u+4]=o,this.uint16[u+5]=s,this.uint16[u+6]=l,this.uint16[u+7]=c,this.uint16[u+8]=d,this.uint16[u+9]=h,t}};ou.prototype.bytesPerElement=20,aw("StructArrayLayout10ui20",ou);var op=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l){let c=this.length;return this.resize(c+1),this.emplace(c,t,i,n,r,a,o,s,l)}emplace(t,i,n,r,a,o,s,l,c){let d=8*t;return this.uint16[d+0]=i,this.uint16[d+1]=n,this.uint16[d+2]=r,this.uint16[d+3]=a,this.uint16[d+4]=o,this.uint16[d+5]=s,this.uint16[d+6]=l,this.uint16[d+7]=c,t}};op.prototype.bytesPerElement=16,aw("StructArrayLayout8ui16",op);var om=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d,h,u,p){let m=this.length;return this.resize(m+1),this.emplace(m,t,i,n,r,a,o,s,l,c,d,h,u,p)}emplace(t,i,n,r,a,o,s,l,c,d,h,u,p,m){let f=14*t;return this.int16[f+0]=i,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=a,this.uint16[f+4]=o,this.uint16[f+5]=s,this.uint16[f+6]=l,this.uint16[f+7]=c,this.int16[f+8]=d,this.int16[f+9]=h,this.int16[f+10]=u,this.int16[f+11]=p,this.float32[7*t+6]=m,t}};om.prototype.bytesPerElement=28,aw("StructArrayLayout4i4ui4i1f28",om);var of=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.float32[a+0]=i,this.float32[a+1]=n,this.float32[a+2]=r,t}};of.prototype.bytesPerElement=12,aw("StructArrayLayout3f12",of);var og=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.uint32[+t+0]=i,t}};og.prototype.bytesPerElement=4,aw("StructArrayLayout1ul4",og);var o_=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c){let d=this.length;return this.resize(d+1),this.emplace(d,t,i,n,r,a,o,s,l,c)}emplace(t,i,n,r,a,o,s,l,c,d){let h=10*t;return this.int16[h+0]=i,this.int16[h+1]=n,this.int16[h+2]=r,this.int16[h+3]=a,this.int16[h+4]=o,this.int16[h+5]=s,this.uint32[5*t+3]=l,this.uint16[h+8]=c,this.uint16[h+9]=d,t}};o_.prototype.bytesPerElement=20,aw("StructArrayLayout6i1ul2ui20",o_);var ov=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=6*t;return this.int16[l+0]=i,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=s,t}};ov.prototype.bytesPerElement=12,aw("StructArrayLayout2i2i2i12",ov);var oy=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a){let o=this.length;return this.resize(o+1),this.emplace(o,t,i,n,r,a)}emplace(t,i,n,r,a,o){let s=4*t,l=8*t;return this.float32[s+0]=i,this.float32[s+1]=n,this.float32[s+2]=r,this.int16[l+6]=a,this.int16[l+7]=o,t}};oy.prototype.bytesPerElement=16,aw("StructArrayLayout2f1f2i16",oy);var ob=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=16*t,c=4*t,d=8*t;return this.uint8[l+0]=i,this.uint8[l+1]=n,this.float32[c+1]=r,this.float32[c+2]=a,this.int16[d+6]=o,this.int16[d+7]=s,t}};ob.prototype.bytesPerElement=16,aw("StructArrayLayout2ub2f2i16",ob);var ox=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.uint16[a+0]=i,this.uint16[a+1]=n,this.uint16[a+2]=r,t}};ox.prototype.bytesPerElement=6,aw("StructArrayLayout3ui6",ox);var ow=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v){let y=this.length;return this.resize(y+1),this.emplace(y,t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v)}emplace(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y){let b=26*t,x=13*t,w=52*t;return this.int16[b+0]=i,this.int16[b+1]=n,this.uint16[b+2]=r,this.uint16[b+3]=a,this.uint32[x+2]=o,this.uint32[x+3]=s,this.uint32[x+4]=l,this.uint16[b+10]=c,this.uint16[b+11]=d,this.uint16[b+12]=h,this.float32[x+7]=u,this.float32[x+8]=p,this.uint8[w+36]=m,this.uint8[w+37]=f,this.uint8[w+38]=g,this.uint32[x+10]=_,this.int16[b+22]=v,this.float32[x+12]=y,t}};ow.prototype.bytesPerElement=52,aw("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",ow);var oC=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T,k,A,I,S){let D=this.length;return this.resize(D+1),this.emplace(D,t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T,k,A,I,S)}emplace(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T,k,A,I,S,D){let P=34*t,M=17*t;return this.int16[P+0]=i,this.int16[P+1]=n,this.int16[P+2]=r,this.int16[P+3]=a,this.int16[P+4]=o,this.int16[P+5]=s,this.int16[P+6]=l,this.int16[P+7]=c,this.uint16[P+8]=d,this.uint16[P+9]=h,this.uint16[P+10]=u,this.uint16[P+11]=p,this.uint16[P+12]=m,this.uint16[P+13]=f,this.uint16[P+14]=g,this.uint16[P+15]=_,this.uint16[P+16]=v,this.uint16[P+17]=y,this.uint16[P+18]=b,this.uint16[P+19]=x,this.uint16[P+20]=w,this.uint16[P+21]=C,this.uint16[P+22]=E,this.uint32[M+12]=T,this.float32[M+13]=k,this.float32[M+14]=A,this.uint16[P+30]=I,this.uint16[P+31]=S,this.float32[M+16]=D,t}};oC.prototype.bytesPerElement=68,aw("StructArrayLayout8i15ui1ul2f2ui1f68",oC);var oE=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.float32[+t+0]=i,t}};oE.prototype.bytesPerElement=4,aw("StructArrayLayout1f4",oE);var oT=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.uint16[6*t+0]=i,this.float32[a+1]=n,this.float32[a+2]=r,t}};oT.prototype.bytesPerElement=12,aw("StructArrayLayout1ui2f12",oT);var ok=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=4*t;return this.uint32[2*t+0]=i,this.uint16[a+2]=n,this.uint16[a+3]=r,t}};ok.prototype.bytesPerElement=8,aw("StructArrayLayout1ul2ui8",ok);var oA=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,i)}emplace(t,i,n){let r=2*t;return this.uint16[r+0]=i,this.uint16[r+1]=n,t}};oA.prototype.bytesPerElement=4,aw("StructArrayLayout2ui4",oA);var oI=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.uint16[+t+0]=i,t}};oI.prototype.bytesPerElement=2,aw("StructArrayLayout1ui2",oI);var oS=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,n,r)}emplace(t,i,n,r,a){let o=4*t;return this.float32[o+0]=i,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=a,t}};oS.prototype.bytesPerElement=16,aw("StructArrayLayout4f16",oS);var oD=class extends oi{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new R(this.anchorPointX,this.anchorPointY)}};oD.prototype.size=20;var oP=class extends o_{get(t){return new oD(this,t)}};aw("CollisionBoxArray",oP);var oM=class extends oi{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};oM.prototype.size=52;var oz=class extends ow{get(t){return new oM(this,t)}};aw("PlacedSymbolArray",oz);var oL=class extends oi{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};oL.prototype.size=68;var oR=class extends oC{get(t){return new oL(this,t)}};aw("SymbolInstanceArray",oR);var oF=class extends oE{getoffsetX(t){return this.float32[+t+0]}};aw("GlyphOffsetArray",oF);var oO=class extends os{getx(t){return this.int16[3*t+0]}gety(t){return this.int16[3*t+1]}gettileUnitDistanceFromAnchor(t){return this.int16[3*t+2]}};aw("SymbolLineVertexArray",oO);var oB=class extends oi{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};oB.prototype.size=12;var oN=class extends oT{get(t){return new oB(this,t)}};aw("TextAnchorOffsetArray",oN);var oV=class extends oi{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};oV.prototype.size=8;var o$=class extends ok{get(t){return new oV(this,t)}};aw("FeatureIndexArray",o$);var oj=class extends oo{},oU=class extends os{},oq=class extends ol{},oG=class extends oo{},oH=class extends oo{},oZ=class extends oc{},oX=class extends od{},oW=class extends oh{},oY=class extends ou{},oK=class extends op{},oJ=class extends om{},oQ=class extends of{},o0=class extends og{},o2=class extends ov{},o1=class extends oy{},o3=class extends ob{},o5=class extends ox{},o4=class extends ox{},o6=class extends oA{},o8=class extends oI{};let o7=or([{name:"a_pos",components:2,type:"Int16"}],4),o9=o7.members;o7.size,o7.alignment;var se=class t{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(i,n,r,a){let o=this.segments[this.segments.length-1];return i>t.MAX_VERTEX_ARRAY_LENGTH&&tl(`Max vertices per segment is ${t.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${i}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${t.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!o||o.vertexLength+i>t.MAX_VERTEX_ARRAY_LENGTH||o.sortKey!==a?this.createNewSegment(n,r,a):o}createNewSegment(t,i,n){let r={vertexOffset:t.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0,vaos:{}};return void 0!==n&&(r.sortKey=n),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(r),r}getOrCreateLatestSegment(t,i,n){return this.prepareSegment(0,t,i,n)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let i in t.vaos)t.vaos[i].destroy()}static simpleSegment(i,n,r,a){return new t([{vertexOffset:i,primitiveOffset:n,vertexLength:r,primitiveLength:a,vaos:{},sortKey:0}])}};function st(t,i){return 256*(t=e5(Math.floor(t),0,255))+(i=e5(Math.floor(i),0,255))}se.MAX_VERTEX_ARRAY_LENGTH=65535,aw("SegmentVector",se);let si=or([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),sn=or([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]);var sr=L((t,i)=>{void 0!==i&&(i.exports=function(t,i){for(var n,r,a=3&t.length,o=t.length-a,s=i,l=0;l<o;)r=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,s^=r=(65535&(r=(r=(65535&r)*0xcc9e2d51+(((r>>>16)*0xcc9e2d51&65535)<<16)|0)<<15|r>>>17))*0x1b873593+(((r>>>16)*0x1b873593&65535)<<16)|0,s=(65535&(n=(65535&(s=s<<13|s>>>19))*5+(((s>>>16)*5&65535)<<16)|0))+27492+(((n>>>16)+58964&65535)<<16);switch(r=0,a){case 3:r^=(255&t.charCodeAt(l+2))<<16;case 2:r^=(255&t.charCodeAt(l+1))<<8;case 1:r^=255&t.charCodeAt(l),s^=r=(65535&(r=(r=(65535&r)*0xcc9e2d51+(((r>>>16)*0xcc9e2d51&65535)<<16)|0)<<15|r>>>17))*0x1b873593+(((r>>>16)*0x1b873593&65535)<<16)|0}return s^=t.length,s^=s>>>16,s=(65535&s)*0x85ebca6b+(((s>>>16)*0x85ebca6b&65535)<<16)|0,s^=s>>>13,s=(65535&s)*0xc2b2ae35+(((s>>>16)*0xc2b2ae35&65535)<<16)|0,(s^=s>>>16)>>>0})}),sa=L((t,i)=>{i.exports=function(t,i){for(var n,r=t.length,a=i^r,o=0;r>=4;)n=(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))*0x5bd1e995+(((n>>>16)*0x5bd1e995&65535)<<16),n^=n>>>24,a=(65535&a)*0x5bd1e995+(((a>>>16)*0x5bd1e995&65535)<<16)^(n=(65535&n)*0x5bd1e995+(((n>>>16)*0x5bd1e995&65535)<<16)),r-=4,++o;switch(r){case 3:a^=(255&t.charCodeAt(o+2))<<16;case 2:a^=(255&t.charCodeAt(o+1))<<8;case 1:a^=255&t.charCodeAt(o),a=(65535&a)*0x5bd1e995+(((a>>>16)*0x5bd1e995&65535)<<16)}return a^=a>>>13,a=(65535&a)*0x5bd1e995+(((a>>>16)*0x5bd1e995&65535)<<16),(a^=a>>>15)>>>0}}),so=((t,i,n)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var r,a=P(i),o=0,s=a.length;o<s;o++)r=a[o],z.call(t,r)||void 0===r||S(t,r,{get:(t=>i[t]).bind(null,r),enumerable:!(n=D(i,r))||n.enumerable});return t})(S(null==(E=L((t,i)=>{var n=sr(),r=sa();i.exports=n,i.exports.murmur3=n,i.exports.murmur2=r})())?{}:I(M(E)),"default",{value:E,enumerable:!0}),E),ss=class t{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,i,n,r){this.ids.push(sl(t)),this.positions.push(i,n,r)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let i=sl(t),n=0,r=this.ids.length-1;for(;n<r;){let t=n+r>>1;this.ids[t]>=i?r=t:n=t+1}let a=[];for(;this.ids[n]===i;){let t=this.positions[3*n],i=this.positions[3*n+1],r=this.positions[3*n+2];a.push({index:t,start:i,end:r}),n++}return a}static serialize(t,i){let n=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(i,n,r,a){for(;r<a;){let o=i[r+a>>1],s=r-1,l=a+1;for(;;){do s++;while(i[s]<o);do l--;while(i[l]>o);if(s>=l)break;sc(i,s,l),sc(n,3*s,3*l),sc(n,3*s+1,3*l+1),sc(n,3*s+2,3*l+2)}l-r<a-l?(t(i,n,r,l),r=l+1):(t(i,n,l+1,a),a=l)}}(n,r,0,n.length-1),i&&i.push(n.buffer,r.buffer),{ids:n,positions:r}}static deserialize(i){let n=new t;return n.ids=i.ids,n.positions=i.positions,n.indexed=!0,n}};function sl(t){let i=+t;return!isNaN(i)&&i<=0x1fffffffffffff?i:(0,so.default)(String(t))}function sc(t,i,n){let r=t[i];t[i]=t[n],t[n]=r}aw("FeaturePositionMap",ss);var sd=class{constructor(t,i){this.gl=t.gl,this.location=i}},sh=class extends sd{constructor(t,i){super(t,i),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))}},su=class extends sd{constructor(t,i){super(t,i),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))}},sp=class extends sd{constructor(t,i){super(t,i),this.current=[0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1])&&(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))}},sm=class extends sd{constructor(t,i){super(t,i),this.current=[0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2])&&(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))}},sf=class extends sd{constructor(t,i){super(t,i),this.current=[0,0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2]||t[3]!==this.current[3])&&(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))}},sg=class extends sd{constructor(t,i){super(t,i),this.current=iM.transparent}set(t){(t.r!==this.current.r||t.g!==this.current.g||t.b!==this.current.b||t.a!==this.current.a)&&(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))}},s_=class extends sd{constructor(t,i){super(t,i),this.current=[]}set(t){if(t!=this.current){this.current=t;let i=new Float32Array(4*t.length);for(let n=0;n<t.length;n++)i[4*n]=t[n].r,i[4*n+1]=t[n].g,i[4*n+2]=t[n].b,i[4*n+3]=t[n].a;this.gl.uniform4fv(this.location,i)}}},sv=class extends sd{constructor(t,i){super(t,i),this.current=[]}set(t){if(t!=this.current){this.current=t;let i=new Float32Array(t);this.gl.uniform1fv(this.location,i)}}};let sy=new Float32Array(16);var sb=class extends sd{constructor(t,i){super(t,i),this.current=sy}set(t){if(t[12]!==this.current[12]||t[0]!==this.current[0]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);return}for(let i=1;i<16;i++)if(t[i]!==this.current[i]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}}};function sx(t){return[st(255*t.r,255*t.g),st(255*t.b,255*t.a)]}var sw=class{constructor(t,i,n){this.value=t,this.uniformNames=i.map(t=>`u_${t}`),this.type=n}setUniform(t,i,n){t.set(n.constantOr(this.value))}getBinding(t,i,n){return"color"===this.type?new sg(t,i):new su(t,i)}},sC=class{constructor(t,i){this.uniformNames=i.map(t=>`u_${t}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,i){this.pixelRatioFrom=i.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=i.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,i){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,i.y,i.height,i.width]}setUniform(t,i,n,r){let a=null;"u_pattern_to"===r?a=this.patternTo:"u_pattern_from"===r?a=this.patternFrom:"u_dasharray_to"===r?a=this.dashTo:"u_dasharray_from"===r?a=this.dashFrom:"u_pixel_ratio_to"===r?a=this.pixelRatioTo:"u_pixel_ratio_from"===r&&(a=this.pixelRatioFrom),null!==a&&t.set(a)}getBinding(t,i,n){return n.startsWith("u_pattern")||n.startsWith("u_dasharray_")?new sf(t,i):new su(t,i)}},sE=class{constructor(t,i,n,r){this.expression=t,this.type=n,this.maxValue=0,this.paintVertexAttributes=i.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new r}populatePaintArray(t,i,n){let r=this.paintVertexArray.length,a=this.expression.evaluate(new a$(0,n),i,{},n.canonical,[],n.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(r,t,a)}updatePaintArray(t,i,n,r,a){let o=this.expression.evaluate(new a$(0,a),n,r);this._setPaintValue(t,i,o)}_setPaintValue(t,i,n){if("color"===this.type){let r=sx(n);for(let n=t;n<i;n++)this.paintVertexArray.emplace(n,r[0],r[1])}else{for(let r=t;r<i;r++)this.paintVertexArray.emplace(r,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},sT=class{constructor(t,i,n,r,a,o){this.expression=t,this.uniformNames=i.map(t=>`u_${t}_t`),this.type=n,this.useIntegerZoom=r,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=i.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(t,i,n){let r=this.expression.evaluate(new a$(this.zoom,n),i,{},n.canonical,[],n.formattedSection),a=this.expression.evaluate(new a$(this.zoom+1,n),i,{},n.canonical,[],n.formattedSection),o=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(o,t,r,a)}updatePaintArray(t,i,n,r,a){let o=this.expression.evaluate(new a$(this.zoom,a),n,r),s=this.expression.evaluate(new a$(this.zoom+1,a),n,r);this._setPaintValue(t,i,o,s)}_setPaintValue(t,i,n,r){if("color"===this.type){let a=sx(n),o=sx(r);for(let n=t;n<i;n++)this.paintVertexArray.emplace(n,a[0],a[1],o[0],o[1])}else{for(let a=t;a<i;a++)this.paintVertexArray.emplace(a,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(t,i){let n=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,r=e5(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);t.set(r)}getBinding(t,i,n){return new su(t,i)}},sk=class{constructor(t,i,n,r,a,o){this.expression=t,this.type=i,this.useIntegerZoom=n,this.zoom=r,this.layerId=o,this.zoomInPaintVertexArray=new a,this.zoomOutPaintVertexArray=new a}populatePaintArray(t,i,n){let r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(r,t,this.getPositionIds(i),n)}updatePaintArray(t,i,n,r,a){this._setPaintValues(t,i,this.getPositionIds(n),a)}_setPaintValues(t,i,n,r){let a=this.getPositions(r);if(!a||!n)return;let o=a[n.min],s=a[n.mid],l=a[n.max];if(o&&s&&l)for(let n=t;n<i;n++)this.emplace(this.zoomInPaintVertexArray,n,o,s),this.emplace(this.zoomOutPaintVertexArray,n,l,s)}upload(t){if(this.zoomInPaintVertexArray?.arrayBuffer.byteLength&&this.zoomOutPaintVertexArray?.arrayBuffer.byteLength){let i=this.getVertexAttributes();this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,i,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,i,this.expression.isStateDependent)}}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}},sA=class extends sk{getPositions(t){return t.imagePositions}getPositionIds(t){return t.patterns?.[this.layerId]}getVertexAttributes(){return si.members}emplace(t,i,n,r){t.emplace(i,n.tlbr[0],n.tlbr[1],n.tlbr[2],n.tlbr[3],r.tlbr[0],r.tlbr[1],r.tlbr[2],r.tlbr[3],n.pixelRatio,r.pixelRatio)}},sI=class extends sk{getPositions(t){return t.dashPositions}getPositionIds(t){return t.dashes?.[this.layerId]}getVertexAttributes(){return sn.members}emplace(t,i,n,r){t.emplace(i,0,n.y,n.height,n.width,0,r.y,r.height,r.width)}},sS=class{constructor(t,i,n){this.binders={},this._buffers=[];let r=[];for(let a in t.paint._values){if(!n(a))continue;let o=t.paint.get(a);if(!(o instanceof aY)||!rs(o.property.specification))continue;let s=function(t,i){return({"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]})[t]||[t.replace(`${i}-`,"").replace(/-/g,"_")]}(a,t.type),l=o.value,c=o.property.specification.type,d=o.property.useIntegerZoom,h=o.property.specification["property-type"],u="cross-faded"===h||"cross-faded-data-driven"===h;if("constant"===l.kind)this.binders[a]=u?new sC(l.value,s):new sw(l.value,s,c),r.push(`/u_${a}`);else if("source"===l.kind||u){let n=sP(a,c,"source");this.binders[a]=u?"line-dasharray"===a?new sI(l,c,d,i,n,t.id):new sA(l,c,d,i,n,t.id):new sE(l,s,c,n),r.push(`/a_${a}`)}else{let t=sP(a,c,"composite");this.binders[a]=new sT(l,s,c,d,i,t),r.push(`/z_${a}`)}}this.cacheKey=r.sort().join("")}getMaxValue(t){let i=this.binders[t];return i instanceof sE||i instanceof sT?i.maxValue:0}populatePaintArrays(t,i,n){for(let r in this.binders){let a=this.binders[r];(a instanceof sE||a instanceof sT||a instanceof sk)&&a.populatePaintArray(t,i,n)}}setConstantPatternPositions(t,i){for(let n in this.binders){let r=this.binders[n];r instanceof sC&&r.setConstantPatternPositions(t,i)}}setConstantDashPositions(t,i){for(let n in this.binders){let r=this.binders[n];r instanceof sC&&r.setConstantDashPositions(t,i)}}updatePaintArrays(t,i,n,r,a){let o=!1;for(let s of t)for(let t of i.getPositions(s.id)){let i=n.feature(t.index);for(let n in this.binders){let l=this.binders[n];(l instanceof sE||l instanceof sT||l instanceof sk)&&!0===l.expression.isStateDependent&&(l.expression=r.paint.get(n).value,l.updatePaintArray(t.start,t.end,i,s.state,a),o=!0)}}return o}defines(){let t=[];for(let i in this.binders){let n=this.binders[i];(n instanceof sw||n instanceof sC)&&t.push(...n.uniformNames.map(t=>`#define HAS_UNIFORM_${t}`))}return t}getBinderAttributes(){let t=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof sE||n instanceof sT)for(let i of n.paintVertexAttributes)t.push(i.name);else if(n instanceof sk)for(let i of n.getVertexAttributes())t.push(i.name)}return t}getBinderUniforms(){let t=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof sw||n instanceof sC||n instanceof sT)for(let i of n.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,i){let n=[];for(let r in this.binders){let a=this.binders[r];if(a instanceof sw||a instanceof sC||a instanceof sT){for(let o of a.uniformNames)if(i[o]){let s=a.getBinding(t,i[o],o);n.push({name:o,property:r,binding:s})}}}return n}setUniforms(t,i,n,r){for(let{name:t,property:a,binding:o}of i)this.binders[a].setUniform(o,r,n.get(a),t)}updatePaintBuffers(t){for(let i in this._buffers=[],this.binders){let n=this.binders[i];if(t&&n instanceof sk){let i=2===t.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(n instanceof sE||n instanceof sT)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(t){for(let i in this.binders){let n=this.binders[i];(n instanceof sE||n instanceof sT||n instanceof sk)&&n.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let i=this.binders[t];(i instanceof sE||i instanceof sT||i instanceof sk)&&i.destroy()}}},sD=class{constructor(t,i,n=()=>!0){for(let r of(this.programConfigurations={},t))this.programConfigurations[r.id]=new sS(r,i,n);this.needsUpload=!1,this._featureMap=new ss,this._bufferOffset=0}populatePaintArrays(t,i,n,r){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,i,r);void 0!==i.id&&this._featureMap.add(i.id,n,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,i,n,r){for(let a of n)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,i,a,r)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let i in this.programConfigurations)this.programConfigurations[i].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function sP(t,i,n){return({"line-pattern":{source:oY,composite:oY},"fill-pattern":{source:oY,composite:oY},"fill-extrusion-pattern":{source:oY,composite:oY},"line-dasharray":{source:oK,composite:oK}})[t]?.[n]||({color:{source:oh,composite:oS},number:{source:oE,composite:oh}})[i][n]}aw("ConstantBinder",sw),aw("CrossFadedConstantBinder",sC),aw("SourceExpressionBinder",sE),aw("CrossFadedPatternBinder",sA),aw("CrossFadedDasharrayBinder",sI),aw("CompositeExpressionBinder",sT),aw("ProgramConfiguration",sS,{omit:["_buffers"]}),aw("ProgramConfigurationSet",sD);function sM(t){let i=8192/t.extent,n=t.loadGeometry();for(let t of n)for(let n of t){let t=Math.round(n.x*i),r=Math.round(n.y*i);n.x=e5(t,-16384,16383),n.y=e5(r,-16384,16383),(t<n.x||t>n.x+1||r<n.y||r>n.y+1)&&tl("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function sz(t,i){return{type:t.type,id:t.id,properties:t.properties,geometry:i?sM(t):[]}}var sL=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new oG,this.indexArray=new o4,this.segments=new se,this.programConfigurations=new sD(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){let r=this.layers[0],a=[],o=null,s=!1,l="heatmap"===r.type;"circle"===r.type&&(s=!(o=r.layout.get("circle-sort-key")).isConstant(),l||="map"===r.paint.get("circle-pitch-alignment"));let c=l?i.subdivisionGranularity.circle:1,d=new a$(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:i,id:r,index:l,sourceLayerIndex:c}of t){let t=sz(i,h);if(!this.layers[0]._featureFilter.filter(d,t,n))continue;let u=s?o.evaluate(t,{},n):void 0,p={id:r,properties:i.properties,type:i.type,sourceLayerIndex:c,index:l,geometry:h?t.geometry:sM(i),patterns:{},sortKey:u};a.push(p)}for(let r of(s&&a.sort((t,i)=>t.sortKey-i.sortKey),a)){let{geometry:a,index:o,sourceLayerIndex:s}=r,l=t[o].feature;this.addFeature(r,a,o,n,c),i.featureIndex.insert(l,a,o,s,this.index)}}update(t,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n})}addFeatures(t){}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,o9),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,i,n,r,a=1){let o;switch(a){case 1:o=[0,7];break;case 3:o=[0,2,5,7];break;case 5:o=[0,1,3,4,6,7];break;case 7:o=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${a}; valid values are 1, 3, 5, 7.`)}let s=o.length;for(let n of i)for(let i of n){let n=i.x,r=i.y;if(n<0||n>=8192||r<0||r>=8192)continue;let a=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),h=a.vertexLength;for(let t=0;t<s;t++)for(let i=0;i<s;i++){var l,c,d;l=this.layoutVertexArray,c=o[i],d=o[t],l.emplaceBack(-32768+8*n+c,-32768+8*r+d)}for(let t=0;t<s-1;t++)for(let i=0;i<s-1;i++){let n=h+t*s+i,r=h+(t+1)*s+i;this.indexArray.emplaceBack(n,r+1,n+1),this.indexArray.emplaceBack(n,r,r+1)}a.vertexLength+=s*s,a.primitiveLength+=(s-1)*(s-1)*2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:{},canonical:r})}};function sR(t,i){for(let n of t)if(sj(i,n))return!0;for(let n of i)if(sj(t,n))return!0;return sB(t,i)}function sF(t,i,n){return!!sj(t,i)||sN(i,t,n)}function sO(t,i){if(1===t.length)return s$(i,t[0]);for(let n of i)for(let i of n)if(sj(t,i))return!0;for(let n of t)if(s$(i,n))return!0;for(let n of i)if(sB(t,n))return!0;return!1}function sB(t,i){if(0===t.length||0===i.length)return!1;for(let s=0;s<t.length-1;s++){let l=t[s],c=t[s+1];for(let t=0;t<i.length-1;t++){var n,r,a,o;if(n=l,r=c,a=i[t],tc(n,a,o=i[t+1])!==tc(r,a,o)&&tc(n,r,a)!==tc(n,r,o))return!0}}return!1}function sN(t,i,n){let r=n*n;if(1===i.length)return t.distSqr(i[0])<r;for(let n=1;n<i.length;n++)if(sV(t,i[n-1],i[n])<r)return!0;return!1}function sV(t,i,n){let r=i.distSqr(n);if(0===r)return t.distSqr(i);let a=((t.x-i.x)*(n.x-i.x)+(t.y-i.y)*(n.y-i.y))/r;return a<0?t.distSqr(i):a>1?t.distSqr(n):t.distSqr(n.sub(i)._mult(a)._add(i))}function s$(t,i){let n=!1,r,a;for(let o of t)for(let t=0,s=o.length-1;t<o.length;s=t++)r=o[t],a=o[s],r.y>i.y!=a.y>i.y&&i.x<(a.x-r.x)*(i.y-r.y)/(a.y-r.y)+r.x&&(n=!n);return n}function sj(t,i){let n=!1;for(let r=0,a=t.length-1;r<t.length;a=r++){let o=t[r],s=t[a];o.y>i.y!=s.y>i.y&&i.x<(s.x-o.x)*(i.y-o.y)/(s.y-o.y)+o.x&&(n=!n)}return n}function sU(t,i,n){let r=i.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(i.id).getMaxValue(t)}function sq(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function sG(t,i,n,r,a){if(!i[0]&&!i[1])return t;let o=R.convert(i)._mult(a);"viewport"===n&&o._rotate(-r);let s=[];for(let i of t)s.push(i.sub(o));return s}function sH({queryGeometry:t,size:i},n){return sF(t,n,i)}function sZ({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a},o){return sF(t,o,i*(n.projectTileCoordinates(o.x,o.y,r,a?.(o.x,o.y)).signedDistanceFromCamera/n.cameraToCenterDistance))}function sX({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a},o){let s=n.projectTileCoordinates(o.x,o.y,r,a?.(o.x,o.y)).signedDistanceFromCamera,l=i*(n.cameraToCenterDistance/s);return sF(t,sK(o,n,r,a),l)}function sW({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a},o){return sF(t,sK(o,n,r,a),i)}function sY({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a,pitchAlignment:o="map",pitchScale:s="map"},l){let c="map"===o?"map"===s?sH:sZ:"map"===s?sX:sW,d={queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a};for(let t of l)for(let i of t)if(c(d,i))return!0;return!1}function sK(t,i,n,r){let a=i.projectTileCoordinates(t.x,t.y,n,r?.(t.x,t.y)).point;return new R((.5*a.x+.5)*i.width,(-(.5*a.y)+.5)*i.height)}aw("CircleBucket",sL,{omit:["layers"]});var sJ={get paint(){return l||=new a4({"circle-radius":new a2(tY.paint_circle["circle-radius"],"circle-radius"),"circle-color":new a2(tY.paint_circle["circle-color"],"circle-color"),"circle-blur":new a2(tY.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new a2(tY.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new a0(tY.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new a0(tY.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new a0(tY.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new a0(tY.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new a2(tY.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new a2(tY.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new a2(tY.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})},get layout(){return s||=new a4({"circle-sort-key":new a2(tY.layout_circle["circle-sort-key"],"circle-sort-key")})}},sQ=class extends a7{constructor(t,i){super(t,sJ,i)}createBucket(t){return new sL(t)}queryRadius(t){return sU("circle-radius",this,t)+sU("circle-stroke-width",this,t)+sq(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){let c=sG(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-a.bearingInRadians,o),d=this.paint.get("circle-radius").evaluate(i,n)+this.paint.get("circle-stroke-width").evaluate(i,n),h=this.paint.get("circle-pitch-scale"),u=this.paint.get("circle-pitch-alignment"),p,m;return"map"===u?(p=c,m=d*o):(p=c.map(t=>sK(t,a,s,l)),m=d),sY({queryGeometry:p,size:m,transform:a,unwrappedTileID:s,getElevation:l,pitchAlignment:u,pitchScale:h},r)}},s0=class extends sL{};aw("HeatmapBucket",s0,{omit:["layers"]});var s2={get paint(){return c||=new a4({"heatmap-radius":new a2(tY.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new a2(tY.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new a0(tY.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new a5(tY.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new a0(tY.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})}};function s1(t,{width:i,height:n},r,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==i*n*r)throw RangeError(`mismatched image size. expected: ${a.length} but got: ${i*n*r}`)}else a=new Uint8Array(i*n*r);return t.width=i,t.height=n,t.data=a,t}function s3(t,{width:i,height:n},r){if(i===t.width&&n===t.height)return;let a=s1({},{width:i,height:n},r);s5(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,i),height:Math.min(t.height,n)},r),t.width=i,t.height=n,t.data=a.data}function s5(t,i,n,r,a,o){if(0===a.width||0===a.height)return i;if(a.width>t.width||a.height>t.height||n.x>t.width-a.width||n.y>t.height-a.height)throw RangeError("out of range source coordinates for image copy");if(a.width>i.width||a.height>i.height||r.x>i.width-a.width||r.y>i.height-a.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,l=i.data;if(s===l)throw Error("srcData equals dstData, so image is already copied");for(let c=0;c<a.height;c++){let d=((n.y+c)*t.width+n.x)*o,h=((r.y+c)*i.width+r.x)*o;for(let t=0;t<a.width*o;t++)l[h+t]=s[d+t]}return i}var s4=class t{constructor(t,i){s1(this,t,1,i)}resize(t){s3(this,t,1)}clone(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,i,n,r,a){s5(t,i,n,r,a,1)}},s6=class t{constructor(t,i){s1(this,t,4,i)}resize(t){s3(this,t,4)}replace(t,i){i?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,i,n,r,a){s5(t,i,n,r,a,4)}setPixel(t,i,n){let r=(t*this.width+i)*4;this.data[r+0]=Math.round(255*n.r/n.a),this.data[r+1]=Math.round(255*n.g/n.a),this.data[r+2]=Math.round(255*n.b/n.a),this.data[r+3]=Math.round(255*n.a)}};function s8(t){let i=new Uint8Array(t.length);for(let n=0;n<t.length;n+=4){let r=t[n+3];i[n+0]=Math.round(t[n+0]*r/255),i[n+1]=Math.round(t[n+1]*r/255),i[n+2]=Math.round(t[n+2]*r/255),i[n+3]=r}return i}function s7(t){let i={},n=t.resolution||256,r=t.clips?t.clips.length:1,a=t.image||new s6({width:n,height:r});if(Math.log(n)/Math.LN2%1!=0)throw Error(`width is not a power of 2 - ${n}`);let o=(r,o,s)=>{i[t.evaluationKey]=s;let l=t.expression.evaluate(i);a.setPixel(r/4/n,o/4,l)};if(t.clips)for(let i=0,a=0;i<r;++i,a+=4*n)for(let r=0,s=0;r<n;r++,s+=4){let l=r/(n-1),{start:c,end:d}=t.clips[i];o(a,s,c*(1-l)+d*l)}else for(let t=0,i=0;t<n;t++,i+=4)o(0,i,t/(n-1));return a}aw("AlphaImage",s4),aw("RGBAImage",s6);var s9=class extends a7{createBucket(t){return new s0(t)}constructor(t,i){super(t,s2,i),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"heatmap-color"===t&&this._updateColorRamp()}_updateColorRamp(){let t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=s7({expression:t,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete("big-fb")}queryRadius(t){return sU("heatmap-radius",this,t)}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){return sY({queryGeometry:t,size:this.paint.get("heatmap-radius").evaluate(i,n)*o,transform:a,unwrappedTileID:s,getElevation:l},r)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&!this.isHidden()}},le={get paint(){return d||=new a4({"hillshade-illumination-direction":new a0(tY.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new a0(tY.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new a0(tY.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new a0(tY.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new a0(tY.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new a0(tY.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new a0(tY.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new a0(tY.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new a0(tY.paint_hillshade.resampling,"resampling")})}},lt=class extends a7{constructor(t,i){super(t,le,i),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,i=this.paint.get("hillshade-illumination-altitude").values,n=this.paint.get("hillshade-highlight-color").values,r=this.paint.get("hillshade-shadow-color").values,a=Math.max(t.length,i.length,n.length,r.length);t=t.concat(Array(a-t.length).fill(t.at(-1))),i=i.concat(Array(a-i.length).fill(i.at(-1))),n=n.concat(Array(a-n.length).fill(n.at(-1))),r=r.concat(Array(a-r.length).fill(r.at(-1)));let o=i.map(tb);return{directionRadians:t.map(tb),altitudeRadians:o,shadowColor:r,highlightColor:n}}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&!this.isHidden()}},li={get paint(){return h||=new a4({"color-relief-opacity":new a0(tY["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new a5(tY["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new a0(tY["paint_color-relief"].resampling,"resampling")})}};function ln(t){return"data"in t}var lr=class{constructor(t,i,n,r){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(i,r)}update(t,i,n){let{width:r,height:a}=t,o=(this.size?.[0]!==r||this.size[1]!==a)&&!n,{context:s}=this,{gl:l}=s;this.useMipmap=!!i?.useMipmap,o&&this.size&&this.format===l.RGBA&&(l.deleteTexture(this.texture),this.texture=l.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let c=this.format===l.RGBA&&i?.premultiply!==!1;if(o)if(this.size=[r,a],this.format===l.RGBA&&r>0&&a>0){let i=this.useMipmap?Math.floor(Math.log2(Math.max(r,a)))+1:1;if(l.texStorage2D(l.TEXTURE_2D,i,l.RGBA8,r,a),ln(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:i}=t;c&&i&&(i=s8(i)),i&&l.texSubImage2D(l.TEXTURE_2D,0,0,0,r,a,l.RGBA,l.UNSIGNED_BYTE,i)}else s.pixelStoreUnpackPremultiplyAlpha.set(c),l.texSubImage2D(l.TEXTURE_2D,0,0,0,l.RGBA,l.UNSIGNED_BYTE,t)}else ln(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,c,r,a,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(c),this._uploadDomImage(t,l));else{let{x:i,y:o}=n||{x:0,y:0};ln(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,c,i,o,r,a,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(c),this._updateDomImage(t,i,o,l))}this.useMipmap&&!(ln(t)&&null===t.data)&&l.generateMipmap(l.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,i){i.texImage2D(i.TEXTURE_2D,0,this.format,this.format,i.UNSIGNED_BYTE,t)}_uploadRawData(t,i,n,r,a){let{data:o}=t;i&&o&&(o=s8(o)),a.texImage2D(a.TEXTURE_2D,0,this.format,n,r,0,this.format,a.UNSIGNED_BYTE,o)}_updateDomImage(t,i,n,r){r.texSubImage2D(r.TEXTURE_2D,0,i,n,r.RGBA,r.UNSIGNED_BYTE,t)}_updateRawData(t,i,n,r,a,o,s){let{data:l}=t;i&&l&&(l=s8(l)),s.texSubImage2D(s.TEXTURE_2D,0,n,r,a,o,s.RGBA,s.UNSIGNED_BYTE,l)}bind(t,i,n){let{context:r}=this,{gl:a}=r;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),a.bindTexture(a.TEXTURE_2D,this.texture),n!==a.LINEAR_MIPMAP_NEAREST&&n!==a.LINEAR_MIPMAP_LINEAR||this.useMipmap||(n=a.LINEAR);let o=n||t;t!==this.magFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,t),this.magFilter=t),o!==this.minFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,o),this.minFilter=o),i!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,i),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,i),this.wrap=i)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}};function la(t,i){let n=i[0],r=i[1],a=i[2],o=i[3],s=Math.min(n,r,a),l=Math.round((t+o)/s);return{r:Math.floor(l*s/n)%256,g:Math.floor(l*s/r)%256,b:Math.floor(l*s/a)%256}}aw("DEMData",class t{static{this.byteViewCache=new WeakMap}constructor(i,n,r,a=1,o=1,s=1,l=0){if(this.uid=i,n.height!==n.width)throw RangeError("DEM tiles must be square");if(r&&!["mapbox","terrarium","custom"].includes(r))return void tl(`"${r}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);this.stride=n.height;let c=this.dim=n.height-4;switch(this.data=new Uint32Array(n.data.buffer),t.byteViewCache.set(this,new Uint8Array(this.data.buffer)),r){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=a,this.greenFactor=o,this.blueFactor=s,this.baseShift=l;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let t=-2;t<c+2;t++){let i=this._idx(0,Math.max(0,Math.min(c-1,t)));(t<0||t>=c)&&this.data.copyWithin(this._idx(0,t),i,i+c),this.data.fill(this.data[i],this._idx(-2,t),this._idx(0,t)),this.data.fill(this.data[i+c-1],this._idx(c,t),this._idx(c+1,t)+1)}let d=this._getByteView();this.min=0x1fffffffffffff,this.max=-0x1fffffffffffff;for(let t=0;t<c;t++)for(let i=0;i<c;i++){let n=4*this._idx(t,i),r=this._unpackAtIndex(d,n);r>this.max&&(this.max=r),r<this.min&&(this.min=r)}}get(t,i){let n=this._getByteView(),r=4*this._idx(t,i);return this._unpackAtIndex(n,r)}sampleBilinear(t,i){let n=Math.floor(t),r=Math.floor(i);if(n<-1||n>=this.dim||r<-1||r>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${i}, dim: ${this.dim}`);let a=this._getByteView(),o=((r+2)*this.stride+n+2)*4,s=4*this.stride,l=t-n,c=i-r;return this._unpackAtIndex(a,o)*(1-l)*(1-c)+this._unpackAtIndex(a,o+4)*l*(1-c)+this._unpackAtIndex(a,o+s)*(1-l)*c+this._unpackAtIndex(a,o+s+4)*l*c}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,i){if(t<-2||t>=this.dim+2||i<-2||i>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${i}, dim: ${this.dim}`);return(i+2)*this.stride+(t+2)}unpack(t,i,n){return t*this.redFactor+i*this.greenFactor+n*this.blueFactor-this.baseShift}pack(t){return la(t,this.getUnpackVector())}getPixels(){return new s6({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,i,n){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let r=i*this.dim,a=i*this.dim+this.dim,o=n*this.dim,s=n*this.dim+this.dim;switch(i){case -1:r=a-2;break;case 1:a=r+2}switch(n){case -1:o=s-2;break;case 1:s=o+2}let l=-i*this.dim,c=-n*this.dim;for(let i=o;i<s;i++)for(let n=r;n<a;n++)this.data[this._idx(n,i)]=t.data[this._idx(n+l,i+c)]}_getByteView(){let i=t.byteViewCache.get(this);return i?.buffer!==this.data.buffer&&(i=new Uint8Array(this.data.buffer),t.byteViewCache.set(this,i)),i}_unpackAtIndex(t,i){return this.unpack(t[i],t[i+1],t[i+2])}});var lo=class extends a7{constructor(t,i){super(t,li,i)}_createColorRamp(t){let i={elevationStops:[],colorStops:[]},n=this._transitionablePaint._values["color-relief-color"].value.expression;if(n instanceof rk&&n._styleExpression.expression instanceof i0){this.colorRampExpression=n;let t=n._styleExpression.expression;for(let n of(i.elevationStops=t.labels,i.colorStops=[],i.elevationStops))i.colorStops.push(t.evaluate({globals:{elevation:n}}))}if(i.elevationStops.length<1&&(i.elevationStops=[0],i.colorStops=[iM.transparent]),i.elevationStops.length<2&&(i.elevationStops.push(i.elevationStops[0]+1),i.colorStops.push(i.colorStops[0])),i.elevationStops.length<=t)return i;let r={elevationStops:[],colorStops:[]},a=(i.elevationStops.length-1)/(t-1);for(let t=0;t<i.elevationStops.length-.5;t+=a)r.elevationStops.push(i.elevationStops[Math.round(t)]),r.colorStops.push(i.colorStops[Math.round(t)]);return tl(`Too many colors in specification of ${this.id} color-relief layer, may not render properly. Max possible colors: ${t}, provided: ${i.elevationStops.length}`),r}_colorRampChanged(){return this.colorRampExpression!=this._transitionablePaint._values["color-relief-color"].value.expression}getColorRampTextures(t,i,n){if(this.colorRampTextures&&!this._colorRampChanged())return this.colorRampTextures;let r=this._createColorRamp(i),a=new s6({width:r.colorStops.length,height:1}),o=new s6({width:r.colorStops.length,height:1});for(let t=0;t<r.elevationStops.length;t++){let i=la(r.elevationStops[t],n);o.setPixel(0,t,new iM(i.r/255,i.g/255,i.b/255,1)),a.setPixel(0,t,r.colorStops[t])}return this.colorRampTextures={elevationTexture:new lr(t,o,t.gl.RGBA),colorTexture:new lr(t,a,t.gl.RGBA)},this.colorRampTextures}hasOffscreenPass(){return!this.isHidden()&&!!this.colorRampTextures}};let ls=or([{name:"a_pos",components:2,type:"Int16"}],4),ll=ls.members;function lc(t,i,n){let r=n.patternDependencies,a=!1;for(let n of i){let i=n.paint.get(`${t}-pattern`);i.isConstant()||(a=!0);let o=i.constantOr(null);o&&(a=!0,r[o.to]=!0,r[o.from]=!0)}return a}function ld(t,i,n,r,a){let{zoom:o}=r,s=a.patternDependencies;for(let r of i){let i=r.paint.get(`${t}-pattern`).value;if("constant"!==i.kind){let t=i.evaluate({zoom:o-1},n,{},a.availableImages),l=i.evaluate({zoom:o},n,{},a.availableImages),c=i.evaluate({zoom:o+1},n,{},a.availableImages);t=t?.name?t.name:t,l=l?.name?l.name:l,c=c?.name?c.name:c,s[t]=!0,s[l]=!0,s[c]=!0,n.patterns[r.id]={min:t,mid:l,max:c}}}return n}ls.size,ls.alignment;let lh=new Set,lu=!1;function lp(t,i,n,r,a){let o=null;if(a===function(t,i,n,r){let a=0;for(let o=i,s=n-r;o<n;o+=r)a+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return a}(t,i,n,r)>0)for(let a=i;a<n;a+=r)o=lB(a/r|0,t[a],t[a+1],o);else for(let a=n-r;a>=i;a-=r)o=lB(a/r|0,t[a],t[a+1],o);return o&&lz(o,o.next)&&(lN(o),o=o.next),o}function lm(t,i=t){let n=i===t,r=t,a;do a=!1,r!==r.next&&(0===lh.size||!lh.has(r))&&(lz(r,r.next)||0===lM(r.prev,r,r.next))?((n||r===i)&&(i=r.prev),lu=!0,lN(r),r=r.prev,a=!0):(n||r!==i)&&(r=r.next,a=!n);while(a||r!==i);return i}let lf=!1;function lg(t,i){return t.x-i.x||t.y-i.y||(t.next.y-t.y)/(t.next.x-t.x)-(i.next.y-i.y)/(i.next.x-i.x)}let l_=new Float64Array,lv=0,ly=[],lb=[];function lx(t,i){let n=t;do{let t=lv++;ly[t]=n;let r=1/0,a=1/0,o=-1/0,s=-1/0,l=0;do{let i=n.next;n.z=t,n.x<r&&(r=n.x),n.x>o&&(o=n.x),n.y<a&&(a=n.y),n.y>s&&(s=n.y),i.x<r&&(r=i.x),i.x>o&&(o=i.x),i.y<a&&(a=i.y),i.y>s&&(s=i.y),n=i}while(++l<16&&n!==i);lb[t]=n;let c=4*t;l_[c]=r,l_[c+1]=a,l_[c+2]=o,l_[c+3]=s}while(n!==i)}function lw(t){let i=lb[t];for(;i.prev.next!==i;)i=i.next;return lb[t]=i,i}function lC(t){let i=ly[t];for(;i.prev.next!==i;)i=i.next;return ly[t]=i,i}let lE=[],lT=[],lk=new Uint32Array,lA=new Uint32Array,lI=new Uint32Array(256);function lS(t,i,n,r,a,o){lI.fill(0);for(let i=0;i<t;i++)lI[n[i]>>>o&255]++;let s=0;for(let t=0;t<256;t++){let i=lI[t];lI[t]=s,s+=i}for(let s=0;s<t;s++){let t=n[s],l=lI[t>>>o&255]++;r[l]=i[s],a[l]=t}}function lD(t,i,n,r,a){return(t=((t=((t=((t=((t=(t-n)*a|0)|t<<8)&0xff00ff)|t<<4)&0xf0f0f0f)|t<<2)&0x33333333)|t<<1)&0x55555555)|(i=((i=((i=((i=((i=(i-r)*a|0)|i<<8)&0xff00ff)|i<<4)&0xf0f0f0f)|i<<2)&0x33333333)|i<<1)&0x55555555)<<1}function lP(t,i,n,r,a,o,s,l){return(a-s)*(i-l)>=(t-s)*(o-l)&&(t-s)*(r-l)>=(n-s)*(i-l)&&(n-s)*(o-l)>=(a-s)*(r-l)}function lM(t,i,n){return(i.y-t.y)*(n.x-i.x)-(i.x-t.x)*(n.y-i.y)}function lz(t,i){return t.x===i.x&&t.y===i.y}function lL(t,i,n,r,a=!0){let o=lM(t,i,n),s=lM(t,i,r),l=lM(n,r,t),c=lM(n,r,i);return(o>0&&s<0||o<0&&s>0)&&(l>0&&c<0||l<0&&c>0)||!!a&&!!(0===o&&lR(t,n,i)||0===s&&lR(t,r,i)||0===l&&lR(n,t,r)||0===c&&lR(n,i,r))}function lR(t,i,n){return i.x<=Math.max(t.x,n.x)&&i.x>=Math.min(t.x,n.x)&&i.y<=Math.max(t.y,n.y)&&i.y>=Math.min(t.y,n.y)}function lF(t,i){return 0>lM(t.prev,t,t.next)?lM(t,i,t.next)>=0&&lM(t,t.prev,i)>=0:0>lM(t,i,t.prev)||0>lM(t,t.next,i)}function lO(t,i){let n=lV(t.i,t.x,t.y),r=lV(i.i,i.x,i.y),a=t.next,o=i.prev;return t.next=i,i.prev=t,n.next=a,a.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function lB(t,i,n,r){let a=lV(t,i,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function lN(t){var i,n;let r;t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),lf&&(i=t.prev,n=t.next,r=4*i.z,n.x<l_[r]&&(l_[r]=n.x),n.y<l_[r+1]&&(l_[r+1]=n.y),n.x>l_[r+2]&&(l_[r+2]=n.x),n.y>l_[r+3]&&(l_[r+3]=n.y))}function lV(t,i,n){return{i:t,x:i,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null}}var l$=class{constructor(t,i){if(i>t)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=i}getGranularityForZoomLevel(t){return Math.max(Math.floor(this._baseZoomGranularity/(1<<t)),this._minGranularity,1)}},lj=class t{constructor(t){this.fill=t.fill,this.line=t.line,this.tile=t.tile,this.stencil=t.stencil,this.circle=t.circle}static{this.noSubdivision=new t({fill:new l$(0,0),line:new l$(0,0),tile:new l$(0,0),stencil:new l$(0,0),circle:1})}};aw("SubdivisionGranularityExpression",l$),aw("SubdivisionGranularitySetting",lj);var lU=class{constructor(t,i){this._vertexBuffer=[],this._vertexDictionary=new Map,this._used=!1,this._granularity=t,this._granularityCellSize=8192/t,this._canonical=i}_getKey(t,i){return t+=32768,(i+=32768)|t<<16}_vertexToIndex(t,i){if(t<-32768||i<-32768||t>32767||i>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let n=0|Math.round(t),r=0|Math.round(i),a=this._getKey(n,r);if(this._vertexDictionary.has(a))return this._vertexDictionary.get(a);let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(a,o),this._vertexBuffer.push(n,r),o}_subdivideTrianglesScanline(t){if(this._granularity<2)return function(t,i){let n=[];for(let r=0;r<i.length;r+=3){let a=i[r],o=i[r+1],s=i[r+2],l=t[2*a],c=t[2*a+1],d=t[2*o],h=t[2*o+1],u=t[2*s],p=t[2*s+1],m=h-c;(d-l)*(p-c)-m*(u-l)>0?(n.push(a),n.push(s),n.push(o)):(n.push(a),n.push(o),n.push(s))}return n}(this._vertexBuffer,t);let i=[],n=t.length;for(let r=0;r<n;r+=3){let n=[t[r+0],t[r+1],t[r+2]],a=[this._vertexBuffer[2*t[r+0]+0],this._vertexBuffer[2*t[r+0]+1],this._vertexBuffer[2*t[r+1]+0],this._vertexBuffer[2*t[r+1]+1],this._vertexBuffer[2*t[r+2]+0],this._vertexBuffer[2*t[r+2]+1]],o=1/0,s=1/0,l=-1/0,c=-1/0;for(let t=0;t<3;t++){let i=a[2*t],n=a[2*t+1];o=Math.min(o,i),l=Math.max(l,i),s=Math.min(s,n),c=Math.max(c,n)}if(o===l||s===c)continue;let d=Math.floor(o/this._granularityCellSize),h=Math.ceil(l/this._granularityCellSize),u=Math.floor(s/this._granularityCellSize),p=Math.ceil(c/this._granularityCellSize);if(d===h&&u===p){i.push(...n);continue}for(let t=u;t<p;t++){let r=this._scanlineGenerateVertexRingForCellRow(t,a,n);!function(t,i,n){if(0===i.length)throw Error("Subdivision vertex ring is empty.");let r=0,a=t[2*i[0]];for(let n=1;n<i.length;n++){let o=t[2*i[n]];o<a&&(a=o,r=n)}let o=i.length,s=r,l=(s+1)%o;for(;;){let r=s-1>=0?s-1:o-1,a=(l+1)%o,c=t[2*i[r]],d=t[2*i[r]+1],h=t[2*i[a]],u=t[2*i[a]+1],p=t[2*i[s]],m=t[2*i[s]+1],f=t[2*i[l]],g=t[2*i[l]+1],_=!1;if(c<h)_=!0;else if(c>h)_=!1;else{let t=g-m,i=-(f-p),n=m<g?1:-1;((c-p)*t+(d-m)*i)*n>((h-p)*t+(u-m)*i)*n&&(_=!0)}if(_){let t=i[r],a=i[s],c=i[l];t!==a&&t!==c&&a!==c&&n.push(c,a,t),--s<0&&(s=o-1)}else{let t=i[a],r=i[s],c=i[l];t!==r&&t!==c&&r!==c&&n.push(c,r,t),++l>=o&&(l=0)}if(r===a)break}}(this._vertexBuffer,r,i)}}return i}_scanlineGenerateVertexRingForCellRow(t,i,n){let r=t*this._granularityCellSize,a=r+this._granularityCellSize,o=[];for(let t=0;t<3;t++){let s=i[2*t],l=i[2*t+1],c=i[(t+1)*2%6],d=i[((t+1)*2+1)%6],h=i[(t+2)*2%6],u=i[((t+2)*2+1)%6],p=c-s,m=d-l,f=0===p,g=0===m,_=(r-l)/m,v=(a-l)/m,y=Math.min(_,v),b=Math.max(_,v);if(!g&&(y>=1||b<=0)||g&&(l<r||l>a)){d>=r&&d<=a&&o.push(n[(t+1)%3]);continue}if(!g&&y>0){let t=s+p*y,i=l+m*y;o.push(this._vertexToIndex(t,i))}let x=s+p*Math.max(y,0),w=s+p*Math.min(b,1);if(f||this._generateIntraEdgeVertices(o,s,l,c,d,x,w),!g&&b<1){let t=s+p*b,i=l+m*b;o.push(this._vertexToIndex(t,i))}(g||d>=r&&d<=a)&&o.push(n[(t+1)%3]),!g&&(d<=r||d>=a)&&this._generateInterEdgeVertices(o,s,l,c,d,h,u,w,r,a)}return o}_generateIntraEdgeVertices(t,i,n,r,a,o,s){let l=r-i,c=a-n,d=0===c,h=d?Math.min(i,r):Math.min(o,s),u=d?Math.max(i,r):Math.max(o,s),p=Math.floor(h/this._granularityCellSize)+1,m=Math.ceil(u/this._granularityCellSize)-1;if(d?i<r:o<s)for(let r=p;r<=m;r++){let a=r*this._granularityCellSize,o=n+c*(a-i)/l;t.push(this._vertexToIndex(a,o))}else for(let r=m;r>=p;r--){let a=r*this._granularityCellSize,o=n+c*(a-i)/l;t.push(this._vertexToIndex(a,o))}}_generateInterEdgeVertices(t,i,n,r,a,o,s,l,c,d){let h=s-a,u=(c-a)/h,p=(d-a)/h,m=Math.min(u,p),f=Math.max(u,p),g=r+(o-r)*m,_=Math.floor(Math.min(g,l)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,l)/this._granularityCellSize)-1,y=l<g,b=0===h;if(b&&(s===c||s===d))return;if(b||m>=1||f<=0){let t=n-s,r=o+(i-o)*Math.min((c-s)/t,(d-s)/t);_=Math.floor(Math.min(r,l)/this._granularityCellSize)+1,v=Math.ceil(Math.max(r,l)/this._granularityCellSize)-1,y=l<r}let x=a-n>0?d:c;if(y)for(let i=_;i<=v;i++){let n=i*this._granularityCellSize;t.push(this._vertexToIndex(n,x))}else for(let i=v;i>=_;i--){let n=i*this._granularityCellSize;t.push(this._vertexToIndex(n,x))}}_generateOutline(t){let i=[];for(let n of t){let t=lG(n,this._granularity,!0),r=this._pointArrayToIndices(t),a=[];for(let t=1;t<r.length;t++)a.push(r[t-1]),a.push(r[t]);i.push(a)}return i}_handlePoles(t){let i=!1,n=!1;this._canonical&&(0===this._canonical.y&&(i=!0),this._canonical.y===(1<<this._canonical.z)-1&&(n=!0)),(i||n)&&this._fillPoles(t,i,n)}_ensureNoPoleVertices(){let t=this._vertexBuffer;for(let i=0;i<t.length;i+=2){let n=t[i+1];-32768===n&&(t[i+1]=-32767),32767===n&&(t[i+1]=32766)}}_generatePoleQuad(t,i,n,r,a,o){r>a==(-32768===o)?(t.push(n),t.push(i),t.push(this._vertexToIndex(r,o)),t.push(this._vertexToIndex(a,o)),t.push(n)):(t.push(i),t.push(n),t.push(this._vertexToIndex(r,o)),t.push(n),t.push(this._vertexToIndex(a,o))),t.push(this._vertexToIndex(r,o))}_fillPoles(t,i,n){let r=this._vertexBuffer,a=t.length;for(let o=2;o<a;o+=3){let a=t[o-2],s=t[o-1],l=t[o],c=r[2*a],d=r[2*a+1],h=r[2*s],u=r[2*s+1],p=r[2*l],m=r[2*l+1];i&&(0===d&&0===u&&this._generatePoleQuad(t,a,s,c,h,-32768),0===u&&0===m&&this._generatePoleQuad(t,s,l,h,p,-32768),0===m&&0===d&&this._generatePoleQuad(t,l,a,p,c,-32768)),n&&(8192===d&&8192===u&&this._generatePoleQuad(t,a,s,c,h,32767),8192===u&&8192===m&&this._generatePoleQuad(t,s,l,h,p,32767),8192===m&&8192===d&&this._generatePoleQuad(t,l,a,p,c,32767))}}_initializeVertices(t){for(let i=0;i<t.length;i+=2)this._vertexToIndex(t[i],t[i+1])}subdividePolygonInternal(t,i){let n;if(this._used)throw Error("Subdivision: multiple use not allowed.");this._used=!0;let{flattened:r,holeIndices:a}=function(t){let i=[],n=[];for(let r of t)if(0!==r.length)for(let a of(r!==t[0]&&i.push(n.length/2),r))n.push(a.x),n.push(a.y);return{flattened:n,holeIndices:i}}(t);this._initializeVertices(r);try{let t=function(t,i,n=2){let r=i&&i.length,a=r?i[0]*n:t.length;lh.size&&lh.clear();let o=lp(t,0,a,n,!0),s=[];if(!o||o.next===o.prev)return s;let l=0,c=0,d=0;if(r&&(o=function(t,i,n,r){var a,o;let s,l=[];for(let n=0,a=i.length;n<a;n++){let o=lp(t,i[n]*r,n<a-1?i[n+1]*r:t.length,r,!1);o===o.next&&lh.add(o),l.push(function(t){let i=t,n=t;do(i.x<n.x||i.x===n.x&&i.y<n.y)&&(n=i),i=i.next;while(i!==t);return n}(o))}l.sort(lg),a=t.length/r,o=i.length,s=Math.ceil((a+2*o)/16)+o+2,l_.length<4*s&&(l_=new Float64Array(4*s)),lv=0,lx(n,n),lf=!0;for(let t=0;t<l.length;t++)n=function(t,i){let n=function(t,i){let n=i,r=t.x,a=t.y,o=-1/0,s;if(lz(t,n))return n;for(let i=0,l=0;i<lv;i++,l+=4){if(a<l_[l+1]||a>l_[l+3]||l_[l]>r||l_[l+2]<=o)continue;let c=lw(i);n=lC(i);do{if(n.prev.next===n){if(lz(t,n.next))return n.next;if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){let t=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>o&&(o=t,s=n.x<n.next.x?n:n.next,t===r))return s}}n=n.next}while(n!==c)}if(!s)return null;let l=s.x,c=s.y,d=Math.min(a,c),h=Math.max(a,c),u=1/0;for(let i=0,f=0;i<lv;i++,f+=4){if(l_[f+2]<l||l_[f]>r||l_[f+3]<d||l_[f+1]>h)continue;let g=lw(i);n=lC(i);do{if(n.prev.next===n&&r>=n.x&&n.x>=l&&r!==n.x&&lP(a<c?r:o,a,l,c,a<c?o:r,a,n.x,n.y)){var p,m;let i=Math.abs(a-n.y)/(r-n.x);(lF(n,t)||n.y===a&&n.next.y===a&&n.next.x>r)&&(i<u||i===u&&(n.x>s.x||n.x===s.x&&(p=s,m=n,0>lM(p.prev,p,m.prev)&&0>lM(m.next,p,p.next))))&&(s=n,u=i)}n=n.next}while(n!==g)}return s}(t,i);if(!n)return i;let r=lO(n,t);return lx(n,r.next.next),lm(r,r.next),lm(n,n.next)}(l[t],n);return lf=!1,lm(n)}(t,i,o,n)),t.length>80*n){l=t[0],c=t[1];let i=l,r=c;for(let o=n;o<a;o+=n){let n=t[o],a=t[o+1];n<l&&(l=n),a<c&&(c=a),n>i&&(i=n),a>r&&(r=a)}d=0===(d=Math.max(i-l,r-c))?0:32767/d}return function t(i,n,r,a,o){o&&function(t,i,n,r){let a=t,o=0;do a.z=lD(a.x,a.y,i,n,r),lE[o++]=a,a=a.next;while(a!==t);!function(t){if(t<=32){for(let i=1;i<t;i++){let t=lE[i],n=t.z,r=i-1;for(;r>=0&&lE[r].z>n;)lE[r+1]=lE[r],r--;lE[r+1]=t}return}lk.length<t&&(lk=new Uint32Array(t),lA=new Uint32Array(t),lT=Array(t));for(let i=0;i<t;i++)lk[i]=lE[i].z;lS(t,lE,lk,lT,lA,0),lS(t,lT,lA,lE,lk,8),lS(t,lE,lk,lT,lA,16),lS(t,lT,lA,lE,lk,24)}(o);let s=null;for(let t=0;t<o;t++){let i=lE[t];i.prevZ=s,s&&(s.nextZ=i),s=i}s.nextZ=null}(i,r,a,o);let s=i,l=!1;for(;i.prev!==i.next;){let c=i.prev,d=i.next;if(0>lM(c,i,d)&&(o?function(t,i,n,r){let a=t.prev,o=t.next,s=a.x,l=t.x,c=o.x,d=a.y,h=t.y,u=o.y,p=Math.min(s,l,c),m=Math.min(d,h,u),f=Math.max(s,l,c),g=Math.max(d,h,u),_=lD(p,m,i,n,r),v=lD(f,g,i,n,r),y=t.prevZ;for(;y&&y.z>=_;){if(y.x>=p&&y.x<=f&&y.y>=m&&y.y<=g&&y!==o&&(s!==y.x||d!==y.y)&&lP(s,d,l,h,c,u,y.x,y.y)&&lM(y.prev,y,y.next)>=0)return!1;y=y.prevZ}let b=t.nextZ;for(;b&&b.z<=v;){if(b.x>=p&&b.x<=f&&b.y>=m&&b.y<=g&&b!==o&&(s!==b.x||d!==b.y)&&lP(s,d,l,h,c,u,b.x,b.y)&&lM(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}(i,r,a,o):function(t){let i=t.prev,n=t.next,r=i.x,a=t.x,o=n.x,s=i.y,l=t.y,c=n.y,d=Math.min(r,a,o),h=Math.min(s,l,c),u=Math.max(r,a,o),p=Math.max(s,l,c),m=n.next;for(;m!==i;){if(m.x>=d&&m.x<=u&&m.y>=h&&m.y<=p&&(r!==m.x||s!==m.y)&&lP(r,s,a,l,o,c,m.x,m.y)&&lM(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(i))){n.push(c.i,i.i,d.i),lN(i),i=d,s=d;continue}if((i=d)===s){if(lu=!1,i=lm(i),lu){s=i;continue}if(!l){s=i=function(t,i){let n=t,r=!1;do{let a=n.prev,o=n.next.next;lL(a,n,n.next,o,!1)&&lF(a,o)&&lF(o,a)&&(i.push(a.i,n.i,o.i),lN(n),lN(n.next),n=t=o,r=!0),n=n.next}while(n!==t);return r?lm(n):n}(i,n),l=!0;continue}!function(i,n,r,a,o){let s=i;do{let i=s.next.next;for(;i!==s.prev;){if(s.i!==i.i&&function(t,i){let n=lz(t,i)&&lM(t.prev,t,t.next)>0&&lM(i.prev,i,i.next)>0;return t.next.i!==i.i&&(n||lF(t,i)&&lF(i,t)&&(0!==lM(t.prev,t,i.prev)||0!==lM(t,i.prev,i)))&&!function(t,i){let n=Math.min(t.x,i.x),r=Math.max(t.x,i.x),a=Math.min(t.y,i.y),o=Math.max(t.y,i.y),s=t;do{let l=s.next;if(s.x>r&&l.x>r||s.x<n&&l.x<n||s.y>o&&l.y>o||s.y<a&&l.y<a){s=l;continue}if(s.i!==t.i&&l.i!==t.i&&s.i!==i.i&&l.i!==i.i&&lL(s,l,t,i))return!0;s=l}while(s!==t);return!1}(t,i)&&(n||function(t,i){let n=t,r=!1,a=(t.x+i.x)/2,o=(t.y+i.y)/2;do{let t=n.next;n.y>o!=t.y>o&&a<(t.x-n.x)*(o-n.y)/(t.y-n.y)+n.x&&(r=!r),n=t}while(n!==t);return r}(t,i))}(s,i)){let l=lO(s,i);s=lm(s,s.next),l=lm(l,l.next),t(s,n,r,a,o),t(l,n,r,a,o);return}i=i.next}s=s.next}while(s!==i)}(i,n,r,a,o);break}}}(o,s,l,c,d),s}(r,a),i=this._convertIndices(r,t);n=this._subdivideTrianglesScanline(i)}catch(t){console.error(t)}let o=[];return i&&(o=this._generateOutline(t)),this._ensureNoPoleVertices(),this._handlePoles(n),this._granularity>=2&&this._canonical?.z===0&&(n=this._removeTrianglesOutsideTileX(n),o=o.map(t=>this._removeLinesOutsideTileX(t))),{verticesFlattened:this._vertexBuffer,indicesTriangles:n,indicesLineList:o}}_vertexOutsideTileX(t){let i=this._vertexBuffer[2*t];return i<0||i>8192}_removeTrianglesOutsideTileX(t){let i=[];for(let n=0;n<t.length;n+=3)this._vertexOutsideTileX(t[n])||this._vertexOutsideTileX(t[n+1])||this._vertexOutsideTileX(t[n+2])||i.push(t[n],t[n+1],t[n+2]);return i}_removeLinesOutsideTileX(t){let i=[];for(let n=0;n<t.length;n+=2)this._vertexOutsideTileX(t[n])||this._vertexOutsideTileX(t[n+1])||i.push(t[n],t[n+1]);return i}_convertIndices(t,i){let n=[];for(let r of i){let i=t[2*r],a=t[2*r+1];n.push(this._vertexToIndex(i,a))}return n}_pointArrayToIndices(t){let i=[];for(let n of t)i.push(this._vertexToIndex(n.x,n.y));return i}};function lq(t,i,n,r=!0){return new lU(n,i).subdividePolygonInternal(t,r)}function lG(t,i,n=!1){if(!t||t.length<1||t.length<2)return[];let r=t[0],a=t[t.length-1],o=n&&(r.x!==a.x||r.y!==a.y);if(i<2)return o?[...t,t[0]]:[...t];let s=Math.floor(8192/i),l=[];l.push(new R(t[0].x,t[0].y));let c=t.length,d=o?c:c-1;for(let i=0;i<d;i++){let n=t[i],r=i<c-1?t[i+1]:t[0],a=n.x,o=n.y,d=r.x,h=r.y,u=a!==d,p=o!==h;if(!u&&!p)continue;let m=d-a,f=h-o,g=Math.abs(m),_=Math.abs(f),v=a,y=o;for(;;){let t=m>0?(Math.floor(v/s)+1)*s:(Math.ceil(v/s)-1)*s,i=f>0?(Math.floor(y/s)+1)*s:(Math.ceil(y/s)-1)*s,n=Math.abs(v-t),r=Math.abs(y-i),a=Math.abs(y-h),o=u?n/g:1/0,c=p?r/_:1/0;if((Math.abs(v-d)<=n||!u)&&(a<=r||!p))break;if(o<c&&u||!p){let i=new R(v=t,Math.round(y+=f*o));(l[l.length-1].x!==i.x||l[l.length-1].y!==i.y)&&l.push(i)}else{let t=new R(Math.round(v+=m*c),y=i);(l[l.length-1].x!==t.x||l[l.length-1].y!==t.y)&&l.push(t)}}let b=new R(d,h);(l[l.length-1].x!==b.x||l[l.length-1].y!==b.y)&&l.push(b)}return l}function lH(t,i,n,r,a,o,s,l,c){let d=a.length/2,h=s&&l&&c;if(d<se.MAX_VERTEX_ARRAY_LENGTH){let u,p,m=i.prepareSegment(d,n,r),f=m.vertexLength;for(let t=0;t<o.length;t+=3)r.emplaceBack(f+o[t],f+o[t+1],f+o[t+2]);m.vertexLength+=d,m.primitiveLength+=o.length/3,h&&(u=(p=s.prepareSegment(d,n,l)).vertexLength,p.vertexLength+=d);for(let i=0;i<a.length;i+=2)t(a[i],a[i+1]);if(h)for(let t of c){for(let i=1;i<t.length;i+=2)l.emplaceBack(u+t[i-1],u+t[i]);p.primitiveLength+=t.length/2}}else(function(t,i,n,r,a,o){let s=[];for(let t=0;t<r.length/2;t++)s.push(-1);let l={count:0},c=0,d=t.getOrCreateLatestSegment(i,n),h=d.vertexLength;for(let u=2;u<a.length;u+=3){let p=a[u-2],m=a[u-1],f=a[u],g=s[p]<c,_=s[m]<c,v=s[f]<c,y=+!!g+ +!!_+ +!!v;d.vertexLength+y>se.MAX_VERTEX_ARRAY_LENGTH&&(d=t.createNewSegment(i,n),c=l.count,g=!0,_=!0,v=!0,h=0);let b=lZ(s,r,o,l,p,g,d),x=lZ(s,r,o,l,m,_,d),w=lZ(s,r,o,l,f,v,d);n.emplaceBack(h+b-c,h+x-c,h+w-c),d.primitiveLength++}})(i,n,r,a,o,t),h&&function(t,i,n,r,a,o){let s=[];for(let t=0;t<r.length/2;t++)s.push(-1);let l={count:0},c=0,d=t.getOrCreateLatestSegment(i,n),h=d.vertexLength;for(let u of a)for(let a=1;a<u.length;a+=2){let p=u[a-1],m=u[a],f=s[p]<c,g=s[m]<c,_=+!!f+ +!!g;d.vertexLength+_>se.MAX_VERTEX_ARRAY_LENGTH&&(d=t.createNewSegment(i,n),c=l.count,f=!0,g=!0,h=0);let v=lZ(s,r,o,l,p,f,d),y=lZ(s,r,o,l,m,g,d);n.emplaceBack(h+v-c,h+y-c),d.primitiveLength++}}(s,n,l,a,c,t),i.forceNewSegmentOnNextPrepare(),s?.forceNewSegmentOnNextPrepare()}function lZ(t,i,n,r,a,o,s){if(o){let o=r.count;return n(i[2*a],i[2*a+1]),t[a]=r.count,r.count++,s.vertexLength++,o}return t[a]}var lX=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new oH,this.indexArray=new o4,this.indexArray2=new o6,this.programConfigurations=new sD(t.layers,t.zoom),this.segments=new se,this.segments2=new se,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){this.hasDependencies=lc("fill",this.layers,i);let r=this.layers[0].layout.get("fill-sort-key"),a=!r.isConstant(),o=[],s=new a$(this.zoom),l=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:d,index:h,sourceLayerIndex:u}of t){let t=sz(c,l);if(!this.layers[0]._featureFilter.filter(s,t,n))continue;let p=a?r.evaluate(t,{},n,i.availableImages):void 0,m={id:d,properties:c.properties,type:c.type,sourceLayerIndex:u,index:h,geometry:l?t.geometry:sM(c),patterns:{},sortKey:p};o.push(m)}for(let r of(a&&o.sort((t,i)=>t.sortKey-i.sortKey),o)){let{geometry:a,index:o,sourceLayerIndex:s}=r;if(this.hasDependencies){let t=ld("fill",this.layers,r,{zoom:this.zoom},i);this.patternFeatures.push(t)}else this.addFeature(r,a,o,n,{},i.subdivisionGranularity);let l=t[o].feature;i.featureIndex.insert(l,a,o,s,this.index)}}update(t,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n})}addFeatures({options:t,canonical:i,patternPositions:n,patternMap:r}){for(let a of(this.detectSdfPatterns(r),this.patternFeatures))this.addFeature(a,a.geometry,a.index,i,n,t.subdivisionGranularity)}detectSdfPatterns(t){for(let i of this.patternFeatures)for(let n in i.patterns){let r=i.patterns[n];this.recordSdfPattern(n,t[r.min]),this.recordSdfPattern(n,t[r.mid]),this.recordSdfPattern(n,t[r.max])}for(let i of this.layers){let n=i.paint.get("fill-pattern").constantOr(null);n&&(this.recordSdfPattern(i.id,t[n.from.toString()]),this.recordSdfPattern(i.id,t[n.to.toString()]))}}recordSdfPattern(t,i){if(!i)return;let n=!0===i.sdf,r=this.sdfPatterns[t];void 0===r?this.sdfPatterns[t]=n:r!==n&&tl(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ll),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,i,n,r,a,o){for(let t of i4(i,500)){let i=lq(t,r,o.fill.getGranularityForZoomLevel(r.z)),n=this.layoutVertexArray;lH((t,i)=>{n.emplaceBack(t,i)},this.segments,this.layoutVertexArray,this.indexArray,i.verticesFlattened,i.indicesTriangles,this.segments2,this.indexArray2,i.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:a,canonical:r})}};aw("FillBucket",lX,{omit:["layers","patternFeatures"]});var lW={get paint(){return p||=new a4({"fill-antialias":new a0(tY.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new a2(tY.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new a0(tY.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new a2(tY.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new a2(tY.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new a0(tY.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new a0(tY.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new a1(tY.paint_fill["fill-pattern"],"fill-pattern")})},get layout(){return u||=new a4({"fill-sort-key":new a2(tY.layout_fill["fill-sort-key"],"fill-sort-key")})}},lY=class extends a7{constructor(t,i){super(t,lW,i)}recalculate(t,i){super.recalculate(t,i);let n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new lX(t)}queryRadius(){return sq(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:i,transform:n,pixelsToTileUnits:r}){return sO(sG(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-n.bearingInRadians,r),i)}isTileClipped(){return!0}};let lK=or([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),lJ=or([{name:"a_centroid",components:2,type:"Int16"}],4),lQ=lK.members;lK.size,lK.alignment;var l0=class t{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(i){let n=new t;return n.extend(i(new R(this.minX,this.minY))),n.extend(i(new R(this.maxX,this.minY))),n.extend(i(new R(this.minX,this.maxY))),n.extend(i(new R(this.maxX,this.maxY))),n}static fromPoints(i){let n=new t;for(let t of i)n.extend(t);return n}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}};let l2=l0.fromPoints([new R(0,0),new R(8192,8192)]);function l1(t,i){return t.x===i.x&&(t.x<0||t.x>8192)||t.y===i.y&&(t.y<0||t.y>8192)}function l3(t){return t.every(t=>t.x<0)||t.every(t=>t.x>8192)||t.every(t=>t.y<0)||t.every(t=>t.y>8192)}var l5=class{constructor(t,i,n,r,a){for(this.properties=Object.create(null),this.extent=n,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=a;t.pos<i;){let i=t.readVarint();if(8===i)this.id=t.readVarint();else if(18===i){let i=t.readVarint()+t.pos;for(;t.pos<i;){let i=r[t.readVarint()],n=a[t.readVarint()];this.properties[i]=n}}else 24===i?this.type=t.readVarint():(34===i&&(this._geometry=t.pos),t.skip(i))}}loadGeometry(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let i=t.readVarint()+t.pos,n=[],r,a=1,o=0,s=0,l=0;for(;t.pos<i;){if(o<=0){let i=t.readVarint();if(a=7&i,0==(o=i>>3))continue}if(o--,1===a)s+=t.readSVarint(),l+=t.readSVarint(),r&&n.push(r),r=[new R(s,l)];else if(2===a)s+=t.readSVarint(),l+=t.readSVarint(),r&&r.push(new R(s,l));else if(7===a)r&&r.push(r[0].clone());else throw Error(`unknown command ${a}`)}return r&&n.push(r),n}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let i=t.readVarint()+t.pos,n=1,r=0,a=0,o=0,s=1/0,l=-1/0,c=1/0,d=-1/0;for(;t.pos<i;){if(r<=0){let i=t.readVarint();if(n=7&i,0==(r=i>>3))continue}if(r--,1===n||2===n)a+=t.readSVarint(),o+=t.readSVarint(),a<s&&(s=a),a>l&&(l=a),o<c&&(c=o),o>d&&(d=o);else if(7!==n)throw Error(`unknown command ${n}`)}return[s,c,l,d]}toGeoJSON(t,i,n){let r,a=this.extent*2**n,o=this.extent*t,s=this.extent*i,l=this.loadGeometry();function c(t){return[(t.x+o)*360/a-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+s)*2/a)*Math.PI))-90]}function d(t){return t.map(c)}if(1===this.type){let t=[];for(let i of l)t.push(i[0]);let i=d(t);r=1===t.length?{type:"Point",coordinates:i[0]}:{type:"MultiPoint",coordinates:i}}else if(2===this.type){let t=l.map(d);r=1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t}}else if(3===this.type){let t=l4(l),i=[];for(let n of t)i.push(n.map(d));r=1===i.length?{type:"Polygon",coordinates:i[0]}:{type:"MultiPolygon",coordinates:i}}else throw Error("unknown feature type");let h={type:"Feature",geometry:r,properties:this.properties};return null!=this.id&&(h.id=this.id),h}};function l4(t){let i=t.length;if(i<=1)return[t];let n=[],r,a;for(let o=0;o<i;o++){let i=function(t){let i=0;for(let n=0,r=t.length,a=r-1,o,s;n<r;a=n++)o=t[n],i+=((s=t[a]).x-o.x)*(o.y+s.y);return i}(t[o]);0!==i&&(void 0===a&&(a=i<0),a===i<0?(r&&n.push(r),r=[t[o]]):r&&r.push(t[o]))}return r&&n.push(r),n}l5.types=["Unknown","Point","LineString","Polygon"];var l6=class{constructor(t,i){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],void 0===i&&(i=t.length);t.pos<i;){let i=t.readVarint();10===i?this.name=t.readString():18===i?(this._features.push(t.pos),t.skip(i)):26===i?this._keys.push(t.readString()):34===i?this._values.push(function(t){let i=null,n=t.readVarint()+t.pos;for(;t.pos<n;){let n=t.readVarint();i=10===n?t.readString():21===n?t.readFloat():25===n?t.readDouble():32===n?t.readVarint(!0):40===n?t.readVarint():48===n?t.readSVarint():56===n?t.readBoolean():(t.skip(n),null)}if(null==i)throw Error("unknown feature value");return i}(t)):40===i?this.extent=t.readVarint():120===i?this.version=t.readVarint():t.skip(i)}this.length=this._features.length}feature(t){if(t<0||t>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let i=this._pbf.readVarint()+this._pbf.pos;return new l5(this._pbf,i,this.extent,this._keys,this._values)}},l8=class{constructor(t,i=t.length){let n=Object.create(null);for(;t.pos<i;){let i=t.readVarint();if(26===i){let i=new l6(t,t.readVarint()+t.pos);i.length&&(n[i.name]=i)}else t.skip(i)}this.layers=n}},l7=class t{constructor(t,i){if(isNaN(t)||isNaN(i))throw Error(`Invalid LngLat object: (${t}, ${i})`);if(this.lng=+t,this.lat=+i,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new t(e4(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let i=Math.PI/180,n=this.lat*i,r=t.lat*i;return 6371008.8*Math.acos(Math.min(Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*i),1))}static convert(i){if(i instanceof t)return i;if(Array.isArray(i)&&(2===i.length||3===i.length))return new t(Number(i[0]),Number(i[1]));if(!Array.isArray(i)&&"object"==typeof i&&i)return new t(Number("lng"in i?i.lng:i.lon),Number(i.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}};let l9=2*Math.PI*6371008.8;function ce(t){return l9*Math.cos(t*Math.PI/180)}function ct(t){return(180+t)/360}function ci(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function cn(t,i){return t/ce(i)}function cr(t){return 360*t-180}function ca(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}function co(t,i){return t*ce(ca(i))}var cs=class t{constructor(t,i,n=0){this.x=+t,this.y=+i,this.z=+n}static fromLngLat(i,n=0){let r=l7.convert(i);return new t(ct(r.lng),ci(r.lat),n/ce(r.lat))}toLngLat(){return new l7(cr(this.x),ca(this.y))}toAltitude(){return co(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/l9*(1/Math.cos(ca(this.y)*Math.PI/180))}};function cl(t,i,n){let r=1/(1<<n.z);return new cs(t/8192*r+n.x*r,i/8192*r+n.y*r)}function cc(t,i){let n=e5(i.lat,-85.051129,85.051129);return new R(ct(i.lng)*t,ci(n)*t)}function cd(t,i){return new cs(i.x/t,i.y/t).toLngLat()}function ch(t){return t.cameraToCenterDistance*Math.min(.85*Math.tan(tb(90-t.pitch)),Math.tan(tb(89.25-t.pitch)))}function cu(t,i){let n=t.canonical,r=i/tt(n.z),a=n.x+2**n.z*t.wrap,o=new Float64Array(16);return q(o),Z(o,o,[a*r,n.y*r,0]),X(o,o,[r/8192,r/8192,1]),o}function cp(t,i,n,r,a){let o=cs.fromLngLat(t,i),s=a*(1/ce(t.lat)),{x:l,y:c,z:d}=cf(n,r);return new cs(o.x+-(s*l),o.y+-(s*c),o.z+s*d)}function cm(t){let i=1/ce(t.center.lat)*t.worldSize;return cp(t.center,t.elevation,t.pitch,t.bearing,t.cameraToCenterDistance/i)}function cf(t,i){let n=tb(t),r=tb(i),a=Math.cos(-n),o=Math.sin(n);return{x:o*Math.sin(r),y:-o*Math.cos(r),z:a}}function cg(t,i,n){var r,a;let o;if(i<=0||!t||0===t.length)return t;let s=(r=i,o=cl(4096,4096,a=n).toLngLat(),r*cs.fromLngLat(o).meterInMercatorCoordinateUnits()*((1<<a.z)*8192));return t.map(t=>(function(t,i){if(!t||t.length<3)return t;let n=t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y,r=n?t.length-1:t.length;if(r<3)return t;let a=[];for(let n=0;n<r;n++){let o=t[(n-1+r)%r],s=t[n],l=t[(n+1)%r];if(l1(o,s)||l1(s,l)){a.push(s.clone());continue}!function(t,i,n,r,a){let o=i.sub(n),s=r.sub(n),l=o.mag(),c=s.mag();if(l<1e-6||c<1e-6)return t.push(n.clone());o._div(l),s._div(c);let d=o.x*s.x+o.y*s.y;if(Math.abs(d)>Math.cos(5*Math.PI/180))return t.push(n.clone());let h=Math.min(a,.2*l,.2*c),u=n.add(o.mult(h)),p=n.add(s.mult(h)),m=Math.sqrt((1+d)/2),f=n.add(o.add(s)._unit()._mult(h/m)),g=u.sub(f).angleWith(p.sub(f)),_=Math.max(2,Math.ceil(Math.abs(g)/(Math.PI/6)-1e-6));for(let i=0;i<=_;i++)t.push(u.rotateAround(i/_*g,f))}(a,o,s,l,i)}let o=function(t){let i=[];for(let n of t){let t=n.round(),r=i[i.length-1];(r?.x!==t.x||r?.y!==t.y)&&i.push(t)}for(;i.length>1&&i[0].x===i[i.length-1].x&&i[0].y===i[i.length-1].y;)i.pop();return i}(a);return o.length<3?t:(n&&o.push(o[0].clone()),o)})(t,s))}function c_(t,i,n,r,a,o,s,l){t.emplaceBack(i,n,2*Math.floor(8192*r)+s,8192*a*2,8192*o*2,Math.round(l))}var cv=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new oZ,this.centroidVertexArray=new oj,this.indexArray=new o4,this.programConfigurations=new sD(t.layers,t.zoom),this.segments=new se,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){this.features=[],this.hasDependencies=lc("fill-extrusion",this.layers,i);let r=new a$(this.zoom),a=this.layers[0],o=a.layout.get("fill-extrusion-rounded-corner-distance"),s=a._featureFilter.needGeometry;for(let{feature:l,id:c,index:d,sourceLayerIndex:h}of t){let t=sz(l,s);if(!a._featureFilter.filter(r,t,n))continue;let u=s?t.geometry:sM(l),p={id:c,sourceLayerIndex:h,index:d,geometry:o>0?cg(u,o,n):u,properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(ld("fill-extrusion",this.layers,p,{zoom:this.zoom},i)):this.addFeature(p,p.geometry,d,n,{},i.subdivisionGranularity),i.featureIndex.insert(l,p.geometry,d,h,this.index,!0)}}addFeatures({options:t,canonical:i,patternPositions:n}){for(let r of this.features){let{geometry:a}=r;this.addFeature(r,a,r.index,i,n,t.subdivisionGranularity)}}update(t,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n})}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,lQ),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,lJ.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,i,n,r,a,o){let s=this.layers[0],l=s.layout?s.layout.get("fill-extrusion-rounded-corner-distance"):0;for(let n of i4(l>0?cg(i,l,r):i,500)){let i={x:0,y:0,sampleCount:0},a=this.layoutVertexArray.length;this.processPolygon(i,r,t,n,o);let s=this.layoutVertexArray.length-a,l=Math.floor(i.x/i.sampleCount),c=Math.floor(i.y/i.sampleCount);for(let t=0;t<s;t++)this.centroidVertexArray.emplaceBack(l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:a,canonical:r})}processPolygon(t,i,n,r,a){if(r.length<1||l3(r[0]))return;for(let i of r)0!==i.length&&function(t,i){for(let n=0;n<i.length;n++){let r=i[n];(n!==i.length-1||i[0].x!==r.x||i[0].y!==r.y)&&(t.x+=r.x,t.y+=r.y,t.sampleCount++)}}(t,i);let o={segment:this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray)},s=a.fill.getGranularityForZoomLevel(i.z),l="Polygon"===l5.types[n.type];for(let t of r){if(0===t.length||l3(t))continue;let i=lG(t,s,l);this._generateSideFaces(i,o)}if(!l)return;let c=lq(r,i,s,!1),d=this.layoutVertexArray;lH((t,i)=>{c_(d,t,i,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,c.verticesFlattened,c.indicesTriangles)}_generateSideFaces(t,i){let n=0;for(let r=1;r<t.length;r++){let a=t[r],o=t[r-1];if(l1(a,o))continue;i.segment.vertexLength+4>se.MAX_VERTEX_ARRAY_LENGTH&&(i.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=a.sub(o)._perp()._unit(),l=o.dist(a);n+l>32768&&(n=0),c_(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,n),c_(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,n),n+=l,c_(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,0,n),c_(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,1,n);let c=i.segment.vertexLength;this.indexArray.emplaceBack(c,c+2,c+1),this.indexArray.emplaceBack(c+1,c+2,c+3),i.segment.vertexLength+=4,i.segment.primitiveLength+=2}}};aw("FillExtrusionBucket",cv,{omit:["layers","features"]});var cy={get paint(){return f||=new a4({"fill-extrusion-opacity":new a0(tY["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new a2(tY["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new a0(tY["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new a0(tY["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new a1(tY["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new a2(tY["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new a2(tY["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new a0(tY["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})},get layout(){return m||=new a4({"fill-extrusion-rounded-corner-distance":new a0(tY["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})}},cb=class extends a7{constructor(t,i){super(t,cy,i)}createBucket(t){return new cv(t)}queryRadius(){return sq(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o,pixelPosMatrix:s}){let l=sG(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-a.bearingInRadians,o),c=this.paint.get("fill-extrusion-height").evaluate(i,n),d=this.paint.get("fill-extrusion-base").evaluate(i,n),h=function(t,i){let n=[];for(let r of t){let t=[r.x,r.y,0,1];eE(t,t,i),n.push(new R(t[0]/t[3],t[1]/t[3]))}return n}(l,s),u=function(t,i,n,r){let a=[],o=[],s=r[8]*i,l=r[9]*i,c=r[10]*i,d=r[11]*i,h=r[8]*n,u=r[9]*n,p=r[10]*n,m=r[11]*n;for(let i of t){let t=[],n=[];for(let a of i){let i=a.x,o=a.y,f=r[0]*i+r[4]*o+r[12],g=r[1]*i+r[5]*o+r[13],_=r[2]*i+r[6]*o+r[14],v=r[3]*i+r[7]*o+r[15],y=f+s,b=g+l,x=_+c,w=v+d,C=f+h,E=g+u,T=_+p,k=v+m,A=new R(y/w,b/w);A.z=x/w,t.push(A);let I=new R(C/k,E/k);I.z=T/k,n.push(I)}a.push(t),o.push(n)}return[a,o]}(r,d,c,s);return function(t,i,n){let r=1/0;sO(n,i)&&(r=cw(n,i[0]));for(let a=0;a<i.length;a++){let o=i[a],s=t[a];for(let t=0;t<o.length-1;t++){let i=o[t],a=o[t+1],l=s[t],c=[i,a,s[t+1],l,i];sR(n,c)&&(r=Math.min(r,cw(n,c)))}}return 1/0!==r&&r}(u[0],u[1],h)}};function cx(t,i){return t.x*i.x+t.y*i.y}function cw(t,i){if(1===t.length){let n=0,r=i[n++],a;for(;!a||r.equals(a);)if(!(a=i[n++]))return 1/0;for(;n<i.length;n++){let o=i[n],s=t[0],l=a.sub(r),c=o.sub(r),d=s.sub(r),h=cx(l,l),u=cx(l,c),p=cx(c,c),m=cx(d,l),f=cx(d,c),g=h*p-u*u,_=(p*m-u*f)/g,v=(h*f-u*m)/g,y=1-_-v,b=r.z*y+a.z*_+o.z*v;if(isFinite(b))return b}return 1/0}{let t=1/0;for(let n of i)t=Math.min(t,n.z);return t}}new Uint32Array(96);let cC=or([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),cE=cC.members;cC.size,cC.alignment;let cT=or([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),ck=cT.members;cT.size,cT.alignment;let cA=Math.cos(Math.PI/180*37.5);var cI=class{constructor(t){for(let i of(this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers))this.gradients[i.id]={};this.layoutVertexArray=new oX,this.layoutVertexArray2=new oW,this.indexArray=new o4,this.programConfigurations=new sD(t.layers,t.zoom),this.segments=new se,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){this.hasDependencies=lc("line",this.layers,i)||this.hasLineDasharray(this.layers);let r=this.layers[0].layout.get("line-sort-key"),a=!r.isConstant(),o=[],s=new a$(this.zoom),l=this.layers[0]._featureFilter.needGeometry;for(let{feature:i,id:c,index:d,sourceLayerIndex:h}of t){let t=sz(i,l);if(!this.layers[0]._featureFilter.filter(s,t,n))continue;let u=a?r.evaluate(t,{},n):void 0,p={id:c,properties:i.properties,type:i.type,sourceLayerIndex:h,index:d,geometry:l?t.geometry:sM(i),patterns:{},dashes:{},sortKey:u};o.push(p)}for(let r of(a&&o.sort((t,i)=>t.sortKey-i.sortKey),o)){let{geometry:a,index:o,sourceLayerIndex:s}=r;this.hasDependencies?(lc("line",this.layers,i)?ld("line",this.layers,r,{zoom:this.zoom},i):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,r,this.zoom,i),this.patternFeatures.push(r)):this.addFeature(r,a,o,n,{},{},i.subdivisionGranularity);let l=t[o].feature;i.featureIndex.insert(l,a,o,s,this.index)}}update(t,i,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n,dashPositions:r})}addFeatures({options:t,canonical:i,patternPositions:n,dashPositions:r}){for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,i,n,r,t.subdivisionGranularity)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,ck)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,cE),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties.geojsonvt_clip_start,end:+t.properties.geojsonvt_clip_end}}addFeature(t,i,n,r,a,o,s){let l=this.layers[0].layout,c=l.get("line-join").evaluate(t,{}),d=l.get("line-cap").evaluate(t,{}),h=l.get("line-miter-limit").evaluate(t,{}),u=l.get("line-round-limit").evaluate(t,{});for(let n of(this.lineClips=this.lineFeatureClips(t),i))this.addLine(n,t,c,d,h,u,r,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:a,dashPositions:o,canonical:r})}addLine(t,i,n,r,a,o,s,l){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let c=s?l.line.getGranularityForZoomLevel(s.z):1;if(t=lG(t,c),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let i=0;i<t.length-1;i++)this.totalDistance+=t[i].dist(t[i+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}let d="Polygon"===l5.types[i.type],h=t.length;for(;h>=2&&t[h-1].equals(t[h-2]);)h--;let u=0;for(;u<h-1&&t[u].equals(t[u+1]);)u++;if(h-u<(d?3:2))return;"bevel"===n&&(a=1.05);let p=this.overscaling<=16?122880/(512*this.overscaling):0,m=this.segments.prepareSegment(10*h,this.layoutVertexArray,this.indexArray),f,g,_,v,y;this.e1=this.e2=-1,d&&(f=t[h-2],y=t[u].sub(f)._unit()._perp());for(let i=u;i<h;i++){if((_=i===h-1?d?t[u+1]:void 0:t[i+1])&&t[i].equals(_))continue;y&&(v=y),f&&(g=f),f=t[i],y=_?_.sub(f)._unit()._perp():v;let s=(v||=y).add(y);(0!==s.x||0!==s.y)&&s._unit();let l=v.x*y.x+v.y*y.y,c=s.x*y.x+s.y*y.y,b=0===c?1/0:1/c,x=2*Math.sqrt(2-2*c),w=c<cA&&g&&_,C=v.x*y.y-v.y*y.x>0;if(w&&i>u){let t=f.dist(g);if(t>2*p){let i=f.sub(f.sub(g)._mult(p/t)._round());this.updateDistance(g,i),this.addCurrentVertex(i,v,0,0,m),g=i}}let E=g&&_,T=E?n:d?"butt":r;if(E&&"round"===T&&(b<o?T="miter":b<=2&&(T="fakeround")),"miter"===T&&b>a&&(T="bevel"),"bevel"===T&&(b>2&&(T="flipbevel"),b<a&&(T="miter")),g&&this.updateDistance(g,f),"miter"===T)s._mult(b),this.addCurrentVertex(f,s,0,0,m);else if("flipbevel"===T){if(b>100)s=y.mult(-1);else{let t=b*v.add(y).mag()/v.sub(y).mag();s._perp()._mult(t*(C?-1:1))}this.addCurrentVertex(f,s,0,0,m),this.addCurrentVertex(f,s.mult(-1),0,0,m)}else if("bevel"===T||"fakeround"===T){let t=-Math.sqrt(b*b-1),i=C?t:0,n=C?0:t;if(g&&this.addCurrentVertex(f,v,i,n,m),"fakeround"===T){let t=Math.round(180*x/Math.PI/20);for(let i=1;i<t;i++){let n=i/t;if(.5!==n){let t=n-.5,i=1.0904+l*(-3.2452+l*(3.55645-1.43519*l)),r=.848013+l*(-1.06021+.215638*l);n+=n*t*(n-1)*(i*t*t+r)}let r=y.sub(v)._mult(n)._add(v)._unit()._mult(C?-1:1);this.addHalfVertex(f,r.x,r.y,!1,C,0,m)}}_&&this.addCurrentVertex(f,y,-i,-n,m)}else if("butt"===T)this.addCurrentVertex(f,s,0,0,m);else if("square"===T){let t=g?1:-1;this.addCurrentVertex(f,s,t,t,m)}else"round"===T&&(g&&(this.addCurrentVertex(f,v,0,0,m),this.addCurrentVertex(f,v,1,1,m,!0)),_&&(this.addCurrentVertex(f,y,-1,-1,m,!0),this.addCurrentVertex(f,y,0,0,m)));if(w&&i<h-1){let t=f.dist(_);if(t>2*p){let i=f.add(_.sub(f)._mult(p/t)._round());this.updateDistance(f,i),this.addCurrentVertex(i,y,0,0,m),f=i}}}}addCurrentVertex(t,i,n,r,a,o=!1){let s=i.x+i.y*n,l=i.y-i.x*n,c=-i.x+i.y*r,d=-i.y-i.x*r;this.addHalfVertex(t,s,l,o,!1,n,a),this.addHalfVertex(t,c,d,o,!0,-r,a),this.distance>16384&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,i,n,r,a,o))}addHalfVertex({x:t,y:i},n,r,a,o,s,l){let c=(this.lineClips?32767*this.scaledDistance:this.scaledDistance)*.5;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!a,(i<<1)+ +!!o,Math.round(63*n)+128,Math.round(63*r)+128,(0===s?0:s<0?-1:1)+1|(63&c)<<2,c>>6),this.lineClips){let t=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(t,this.lineClipsArray.length)}let d=l.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,d,this.e2),l.primitiveLength++),o?this.e2=d:this.e1=d}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,i){this.distance+=t.dist(i),this.updateScaledDistance()}hasLineDasharray(t){for(let i of t){let t=i.paint.get("line-dasharray");if(t&&!t.isConstant())return!0}return!1}addLineDashDependencies(t,i,n,r){for(let a of t){let t=a.paint.get("line-dasharray");if(!t||"constant"===t.value.kind)continue;let o="round"===a.layout.get("line-cap").evaluate(i,{}),s={dasharray:t.value.evaluate({zoom:n-1},i,{}),round:o},l={dasharray:t.value.evaluate({zoom:n},i,{}),round:o},c={dasharray:t.value.evaluate({zoom:n+1},i,{}),round:o},d=`${s.dasharray.join(",")},${s.round}`,h=`${l.dasharray.join(",")},${l.round}`,u=`${c.dasharray.join(",")},${c.round}`;r.dashDependencies[d]=s,r.dashDependencies[h]=l,r.dashDependencies[u]=c,i.dashes[a.id]={min:d,mid:h,max:u}}}};aw("LineBucket",cI,{omit:["layers","patternFeatures"]});var cS={get paint(){return _||=new a4({"line-opacity":new a2(tY.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new a0(tY.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new a2(tY.paint_line["line-color"],"line-color"),"line-translate":new a0(tY.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new a0(tY.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new a2(tY.paint_line["line-width"],"line-width"),"line-gap-width":new a2(tY.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new a2(tY.paint_line["line-offset"],"line-offset"),"line-blur":new a2(tY.paint_line["line-blur"],"line-blur"),"line-dasharray":new a1(tY.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new a1(tY.paint_line["line-pattern"],"line-pattern"),"line-gradient":new a5(tY.paint_line["line-gradient"],"line-gradient")})},get layout(){return g||=new a4({"line-cap":new a2(tY.layout_line["line-cap"],"line-cap"),"line-join":new a2(tY.layout_line["line-join"],"line-join"),"line-miter-limit":new a2(tY.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new a2(tY.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new a2(tY.layout_line["line-sort-key"],"line-sort-key")})}},cD=class extends a2{possiblyEvaluate(t,i){return i=new a$(Math.floor(i.zoom),{now:i.now,fadeDuration:i.fadeDuration,zoomHistory:i.zoomHistory,transition:i.transition}),super.possiblyEvaluate(t,i)}evaluate(t,i,n,r){return i=e6({},i,{zoom:Math.floor(i.zoom)}),super.evaluate(t,i,n,r)}},cP=class extends a7{constructor(t,i){super(t,cS,i),this.gradientVersion=0,v||((v=new cD(cS.paint.properties["line-width"].specification,"line-floorwidth")).useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if("line-gradient"===t){let t=this.gradientExpression();this.stepInterpolant=void 0!==t._styleExpression&&t._styleExpression.expression instanceof iQ,this.gradientVersion=(this.gradientVersion+1)%0x1fffffffffffff}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,i){super.recalculate(t,i),this.paint._values["line-floorwidth"]=v.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new cI(t)}queryRadius(t){var i,n;return i=sU("line-width",this,t),((n=sU("line-gap-width",this,t))>0?n+2*i:i)/2+Math.abs(sU("line-offset",this,t))+sq(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o}){var s,l;let c=sG(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-a.bearingInRadians,o),d=o/2*(s=this.paint.get("line-width").evaluate(i,n),(l=this.paint.get("line-gap-width").evaluate(i,n))>0?l+2*s:s),h=this.paint.get("line-offset").evaluate(i,n);return h&&(r=function(t,i){let n=[];for(let r of t){let t=function(t){let i=[];for(let n=0;n<t.length;n++){let r=t[n],a=i.at(-1);(0===n||a&&!r.equals(a))&&i.push(r)}return i}(r),a=[];for(let n=0;n<t.length;n++){let r=t[n],o=t[n-1],s=t[n+1],l=0===n?new R(0,0):r.sub(o)._unit()._perp(),c=n===t.length-1?new R(0,0):s.sub(r)._unit()._perp(),d=l._add(c)._unit(),h=d.x*c.x+d.y*c.y;0!==h&&d._mult(1/h),a.push(d._mult(i)._add(r))}n.push(a)}return n}(r,h*o)),function(t,i,n){for(let r of i){if(t.length>=3){for(let i of r)if(sj(t,i))return!0}if(function(t,i,n){if(t.length>1){if(sB(t,i))return!0;for(let r of i)if(sN(r,t,n))return!0}for(let r of t)if(sN(r,i,n))return!0;return!1}(t,r,n))return!0}return!1}(c,r,d)}isTileClipped(){return!0}};let cM=or([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),cz=or([{name:"a_projected_pos",components:3,type:"Float32"}],4);or([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let cL=or([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);or([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let cR=or([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),cF=or([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);or([{name:"triangle",components:3,type:"Uint16"}]),or([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),or([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),or([{type:"Float32",name:"offsetX"}]),or([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),or([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let cO="u">typeof Intl&&"Segmenter"in Intl;function cB(t){var i;if(!cO||!/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(t))return[...t];y??=new Intl.Segmenter(void 0,{granularity:"grapheme"});let n=[];for(let{segment:r}of y.segment(t)){let t=n.length-1;t>=0&&(i=n[t],/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(i)||/^\p{gc=Mc}/u.test(r))?n[t]+=r:n.push(r)}return n}function cN(t){let i=t.codePointAt(0);return t.length>(i>65535?2:1)}let cV={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","\xa2":"¢","\xa3":"£","\xa5":"¥","\xa6":"¦","\xac":"¬","\xaf":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","⋯":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},c$={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},cj={40:!0};function cU(t,i,n,r,a,o){if("fontStack"in i){let r=n[i.fontStack],o=r?.[t];if(o)return o.metrics.advance*i.scale+a;let s=0;for(let n of t){let t=r?.[n];t&&(s+=t.metrics.advance*i.scale+a)}return s}{let t=r[i.imageName];return t?t.displaySize[0]*i.scale*24/o+a:0}}function cq(t,i,n,r){let a=(t-i)**2;return r?t<i?a/2:2*a:a+Math.abs(n)*n}function cG(t){return/^\s+$/u.test(t)}function cH(t,i,n,r,a,o){let s=null,l=cq(i,n,a,o);for(let t of r){let r=cq(i-t.x,n,a,o)+t.badness;r<=l&&(s=t,l=r)}return{index:t,x:i,priorBreak:s,badness:l}}var cZ=class t{constructor(t="",i=[],n=[]){this.text=t,this.sections=i,this.sectionIndex=n,this.imageSectionID=null,this._graphemes=null}graphemes(){return this._graphemes??=cB(this.text),this._graphemes}static fromFeature(i,n){let r=new t;for(let t of i.sections)t.image?r.addImageSection(t):r.addTextSection(t,n);return r}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=function(t){let i="",n={premature:!0,value:void 0},r=t[Symbol.iterator](),a=r.next(),o=t[Symbol.iterator]();o.next();let s=o.next();for(;!a.done;)(s.done||!aF(s.value.codePointAt(0))||cV[s.value])&&(n.premature||!aF(n.value.codePointAt(0))||cV[n.value])&&cV[a.value]?i+=cV[a.value]:i+=a.value,n={value:a.value,premature:!1},a=r.next(),s=o.next();return i}(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("​")}trim(){let t=this.graphemes(),i=0;for(;i<t.length&&cG(t[i]);)i++;let n=t.length;for(;n>i&&cG(t[n-1]);)n--;this.text=t.slice(i,n).join(""),this.sectionIndex=this.sectionIndex.slice(i,n),this._graphemes=null}substring(i,n){let r=this.graphemes().slice(i,n).join(""),a=this.sectionIndex.slice(i,n);return new t(r,this.sections,a)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,i)=>Math.max(t,this.sections[i].scale),0)}getMaxImageSize(t){let i=0,n=0;for(let r=0;r<this.length();r++){let a=this.getSection(r);if("imageName"in a){let r=t[a.imageName];if(!r)continue;let o=r.displaySize;i=Math.max(i,o[0]),n=Math.max(n,o[1])}}return{maxImageWidth:i,maxImageHeight:n}}_appendSection(t,i){let n=this.graphemes(),r=n.length>0?n[n.length-1]:"",a=cB(r+t);this.text+=t,this._graphemes=n.slice(0,r?-1:void 0).concat(a);let o=a.length-!!r;for(let t=0;t<o;t++)this.sectionIndex.push(i)}addTextSection(t,i){this.sections.push({scale:t.scale||1,verticalAlign:t.verticalAlign||"bottom",fontStack:t.fontStack||i}),this._appendSection(t.text,this.sections.length-1)}addImageSection(t){let i=t.image?t.image.name:"";if(0===i.length)return void tl("Can't add FormattedSection with an empty image.");let n=this.getNextImageSectionCharCode();n?(this.sections.push({scale:1,verticalAlign:t.verticalAlign||"bottom",imageName:i}),this._appendSection(String.fromCharCode(n),this.sections.length-1)):tl("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,i,n,r,a){let o=[],s=this.determineAverageLineWidth(t,i,n,r,a),l=this.hasZeroWidthSpaces(),c=this.graphemes(),d=null,h=0,u=0;for(let i=0;i<c.length;i++){let p=c[i];if(i>0){let t=c[i-1].codePointAt(0),n=p.codePointAt(0),r=/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t)),a=aP(t)&&aP(n);(c$[t]||r||"imageName"in this.getSection(i-1)||void 0!==c[i+1]&&cj[n]||a&&(d??=function(t){let i=new Set;if(cO){for(let{index:n}of(b??=new Intl.Segmenter(void 0,{granularity:"word"})).segment(t))i.add(n);return i}let n=0;for(let r of t.split(/\b|(?=\p{Ideo})/u))i.add(n),n+=r.length;return i}(this.text)).has(u))&&o.push(cH(i,h,s,o,function(t,i,n){let r=0;return(10===t||13===t)&&(r-=1e4),n&&(r+=150),(40===t||65288===t)&&(r+=50),(41===i||65289===i)&&(r+=50),r}(t,n,r&&l),!1))}aM(p.codePointAt(0))||(h+=cU(p,this.getSection(i),n,r,t,a)),u+=p.length}return function t(i){return i?t(i.priorBreak).concat(i.index):[]}(cH(this.length(),h,s,o,0,!0))}determineAverageLineWidth(t,i,n,r,a){let o=0,s=0;for(let i of this.graphemes())o+=cU(i,this.getSection(s),n,r,t,a),s++;let l=Math.max(1,Math.ceil(o/i));return o/l}};let cX=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");var cW=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,i,n=this.length){let r;for(;r=this.nextField(n);)t(r,i,this);return i}readMessage(t,i){return this.readFields(t,i,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+0x100000000*this.dataView.getUint32(this.pos+4,!0);return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+0x100000000*this.dataView.getInt32(this.pos+4,!0);return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let i=this.buf,n=i[this.pos++];if(n<128)return n;let r=127&n,a;return r|=(127&(a=i[this.pos++]))<<7,a<128||(r|=(127&(a=i[this.pos++]))<<14,a<128)||(r|=(127&(a=i[this.pos++]))<<21,a<128)?r:function(t,i,n){let r=n.buf,a,o;if(a=(112&(o=r[n.pos++]))>>4,o<128||(a|=(127&(o=r[n.pos++]))<<3,o<128)||(a|=(127&(o=r[n.pos++]))<<10,o<128)||(a|=(127&(o=r[n.pos++]))<<17,o<128)||(a|=(127&(o=r[n.pos++]))<<24,o<128)||(a|=(1&(o=r[n.pos++]))<<31,o<128)){var s,l;return s=t,l=a,i?0x100000000*l+(s>>>0):(l>>>0)*0x100000000+(s>>>0)}throw Error("Expected varint not more than 10 bytes")}(r|=(15&(a=i[this.pos]))<<28,t,this)}readSVarint(){let t=this.readVarint();return t%2==1?-((t+1)/2):t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,i=this.pos;return this.pos=t,t-i>=12&&cX?cX.decode(this.buf.subarray(i,t)):function(t,i,n){let r="",a=i;for(;a<n;){let i,o,s,l=t[a],c=null,d=l>239?4:l>223?3:l>191?2:1;if(a+d>n)break;1===d?l<128&&(c=l):2===d?(192&(i=t[a+1]))==128&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===d?(i=t[a+1],o=t[a+2],(192&i)==128&&(192&o)==128&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===d&&(i=t[a+1],o=t[a+2],s=t[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,d=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),a+=d}return r}(this.buf,i,t)}readBytes(){let t=this.readVarint()+this.pos,i=this.buf.subarray(this.pos,t);return this.pos=t,i}readPackedVarint(t=[],i){let n=this.readPackedEnd();for(;this.pos<n;)t.push(this.readVarint(i));return t}readPackedSVarint(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSVarint());return t}readPackedBoolean(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readBoolean());return t}readPackedFloat(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFloat());return t}readPackedDouble(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readDouble());return t}readPackedFixed32(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFixed32());return t}readPackedSFixed32(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSFixed32());return t}readPackedFixed64(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFixed64());return t}readPackedSFixed64(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSFixed64());return t}readPackedEnd(){return 2===this.type?this.readVarint()+this.pos:this.pos+1}nextField(t=this.length){if(this.pos===this._valueStart&&this.skip(this.type),this.pos>=t)return 0;let i=this.readVarint();return this.type=7&i,this._valueStart=this.pos,i>>>3}skip(t){let i=7&t;if(0===i)for(;this.buf[this.pos++]>127;);else if(2===i)this.pos=this.readVarint()+this.pos;else if(5===i)this.pos+=4;else if(1===i)this.pos+=8;else throw Error(`Unimplemented type: ${i}`)}};function cY(t,i,n){1===t&&n.readMessage(cK,i)}function cK(t,i,n){if(3===t){let{id:t,bitmap:r,width:a,height:o,left:s,top:l,advance:c}=n.readMessage(cJ,{});i.push({id:t,bitmap:new s4({width:a+6,height:o+6},r),metrics:{width:a,height:o,left:s,top:l,advance:c}})}}function cJ(t,i,n){1===t?i.id=n.readVarint():2===t?i.bitmap=n.readBytes():3===t?i.width=n.readVarint():4===t?i.height=n.readVarint():5===t?i.left=n.readSVarint():6===t?i.top=n.readSVarint():7===t&&(i.advance=n.readVarint())}function cQ(t){return new cW(t).readFields(cY,[])}function c0(t){return"function"==typeof t?.renderWithWebGL}function c2(t){let{userImage:i}=t;return!!i?.render&&!!i.render()&&(c0(i.data)||t.data.replace(new Uint8Array(i.data.buffer)),!0)}function c1(t){let i=0,n=0;for(let r of t)i+=r.w*r.h,n=Math.max(n,r.w);t.sort((t,i)=>i.h-t.h);let r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(i/.95)),n),h:1/0}],a=0,o=0;for(let i of t)for(let t=r.length-1;t>=0;t--){let n=r[t];if(!(i.w>n.w||i.h>n.h)){if(i.x=n.x,i.y=n.y,o=Math.max(o,i.y+i.h),a=Math.max(a,i.x+i.w),i.w===n.w&&i.h===n.h){let i=r.pop();i&&t<r.length&&(r[t]=i)}else i.h===n.h?(n.x+=i.w,n.w-=i.w):(i.w===n.w||r.push({x:n.x+i.w,y:n.y,w:n.w-i.w,h:i.h}),n.y+=i.h,n.h-=i.h);break}}return{w:a,h:o,fill:i/(a*o)||0}}var c3=class{constructor(t,{pixelRatio:i,version:n,isWebGLImage:r=!1,stretchX:a,stretchY:o,content:s,textFitWidth:l,textFitHeight:c}){this.paddedRect=t,this.pixelRatio=i,this.stretchX=a,this.stretchY=o,this.content=s,this.version=n,this.needsFirstWebGLRender=r,this.textFitWidth=l,this.textFitHeight=c}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},c5=class{constructor(t,i){let n={},r={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let a=[];this.addImages(t,n,a),this.addImages(i,r,a);let{w:o,h:s}=c1(a),l=new s6({width:o||1,height:s||1});for(let i in t){let r=t[i];if(r.isWebGLImage)continue;let a=n[i].paddedRect;s6.copy(r.data,l,{x:0,y:0},{x:a.x+1,y:a.y+1},r.data)}for(let t in i){let n=i[t],a=r[t].paddedRect,o=a.x+1,s=a.y+1,c=n.data.width,d=n.data.height;s6.copy(n.data,l,{x:0,y:0},{x:o,y:s},n.data),s6.copy(n.data,l,{x:0,y:d-1},{x:o,y:s-1},{width:c,height:1}),s6.copy(n.data,l,{x:0,y:0},{x:o,y:s+d},{width:c,height:1}),s6.copy(n.data,l,{x:c-1,y:0},{x:o-1,y:s},{width:1,height:d}),s6.copy(n.data,l,{x:0,y:0},{x:o+c,y:s},{width:1,height:d})}this.image=l,this.iconPositions=n,this.patternPositions=r}addImages(t,i,n){for(let r in t){let a=t[r],o={x:0,y:0,w:a.data.width+2,h:a.data.height+2};n.push(o),i[r]=new c3(o,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(t,i){if(t.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==t.updateVersion){for(let n in this.patchedUpdateVersion=t.updateVersion,this.iconPositions)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),i);for(let n in this.patternPositions)this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),i)}}patchUpdatedImage(t,i,n){if(!t||!i||!t.needsFirstWebGLRender&&t.version===i.version)return;t.needsFirstWebGLRender=!1,t.version=i.version;let[r,a]=t.tl,o=i.userImage?.data;if(!c0(o))return void n.update(i.data,void 0,{x:r,y:a});let{width:s,height:l}=i.data;n.context.setCustomLayerDefaults(),o.renderWithWebGL({gl:n.context.gl,texture:n.texture,x:r,y:a,width:s,height:l}),n.context.setDirty()}};aw("ImagePosition",c3),aw("ImageAtlas",c5);var c4=((ht=c4||{})[ht.none=0]="none",ht[ht.horizontal=1]="horizontal",ht[ht.vertical=2]="vertical",ht[ht.horizontalOnly=3]="horizontalOnly",ht);let c6=/^\p{gc=M}$/u;function c8(t,i,n){let r=[...t],a=[],o=0;for(let t of r)a.push(o),o+=t.length;let s=function(t){let i=[],n=0;for(;n<t.length;){if(!c6.test(t[n])){i.push(n),n++;continue}let r=n;for(;r<t.length&&c6.test(t[r]);)r++;let a=t[r];if(void 0!==a&&aN(a.codePointAt(0))){i.push(r);for(let t=r-1;t>=n;t--)i.push(t);n=r+1}else{for(let t=n;t<r;t++)i.push(t);n=r}}return i}(r),l=new cZ(s.map(t=>r[t]).join(""),i,[]),c=s.map(t=>n[a[t]]??0),d=0;for(let t of l.graphemes())l.sectionIndex.push(c[d]??0),d+=[...t].length;return l}function c7(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f){let g=cZ.fromFeature(t,a);2===u&&g.verticalizePunctuation();let _,v=g.determineLineBreaks(d,o,i,r,m),{processBidirectionalText:y,processStyledBidirectionalText:b}=aV;if(y&&1===g.sections.length)for(let t of(_=[],v=v.map(t=>g.toCodeUnitIndex(t)),y(g.toString(),v)))_.push(c8(t,g.sections,[...t].map(()=>0)));else if(b){_=[],v=v.map(t=>g.toCodeUnitIndex(t));let t=function(t){let i=[],n=0;for(let r of t.graphemes())i.push(...Array(r.length).fill(t.sectionIndex[n])),n++;return i}(g);for(let i of b(g.text,t,v))_.push(c8(i[0],g.sections,i[1]))}else _=function(t,i){let n=[],r=0;for(let a of i)n.push(t.substring(r,a)),r=a;return r<t.length()&&n.push(t.substring(r,t.length())),n}(g,v);let x=[],w={positionedLines:x,text:g.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:u,iconsInText:!1,verticalizable:!1};return function(t,i,n,r,a,o,s,l,c,d,h,u){let p=0,m=0,f=0,g=0,_="right"===l?1:.5*("left"!==l),v=24/u,y=0;for(let s of a){s.trim();let a=s.getMaxScale(),l={positionedGlyphs:[],lineOffset:0};t.positionedLines[y]=l;let u=l.positionedGlyphs,b=0;if(!s.length()){m+=o,++y;continue}let x=function(t,i,n){let r=24*i.getMaxScale(),{maxImageWidth:a,maxImageHeight:o}=i.getMaxImageSize(t),s=Math.max(r,o*n);return{verticalLineContentWidth:Math.max(r,a*n),horizontalLineContentHeight:s}}(r,s,v),w=2!==c||h?null:function(t){let i=t.graphemes().slice(),n=i.map(t=>t.codePointAt(0)),r=n.map(aD),a=i=>!r[i]&&!aM(n[i])&&!("imageName"in t.getSection(i));for(let t=0;t<n.length;t++){if(!a(t))continue;let i=t;for(;i+1<n.length&&a(i+1);)i++;if(function(t){let i=t.some(dt)&&t.every(t=>dt(t)||/[\p{P}\p{S}]/u.test(String.fromCodePoint(t))),n=t.length<=3&&t.every(t=>di(t)||dt(t));return i||n}(n.slice(t,i+1)))for(let a=t;a<=i;a++){var o;r[a]=(dt(o=n[a])||di(o))&&!aO(o)}t=i}return function(t,i){let n=!1;for(let r=0;r<t.length;r++){if(i[r])continue;let a=cV[t[r]];a&&(0===r||i[r-1])&&(r===t.length-1||i[r+1])&&(t[r]=a,i[r]=!0,n=!0)}return n}(i,r)&&(t.text=i.join(""),t._graphemes=null),r}(s),C=s.graphemes();for(let o=0;o<C.length;o++){let l=s.getSection(o),f=C[o],g=f.codePointAt(0),_=w?w[o]:!(1===c||!h&&!aD(g)||h&&(aM(g)||aO(g)));for(let c of"fontStack"in l&&cN(f)&&!i[l.fontStack]?.[f]?[...f]:[f]){let h={glyph:c.codePointAt(0),grapheme:c,imageName:null,x:p,y:m+-17,vertical:_,scale:1,fontStack:"",sectionIndex:s.getSectionIndex(o),metrics:null,rect:null},f;if("fontStack"in l){if(!(f=function(t,i,n,r,a,o){let s,l=function(t,i,n,r){if(t?.rect)return t;let a=i[n.fontStack]?.[r];return a?{rect:null,metrics:a.metrics}:null}(o[t.fontStack]?.[i],a,t,i);if(null===l)return null;if(n)s=r.verticalLineContentWidth-24*t.scale;else{let i=de(t.verticalAlign);s=(r.horizontalLineContentHeight-24*t.scale)*i}return{rect:l.rect,metrics:l.metrics,baselineOffset:s}}(l,c,_,x,i,n)))continue;h.fontStack=l.fontStack}else{if(t.iconsInText=!0,l.scale*=v,!(f=function(t,i,n,r,a){let o=a[t.imageName];if(!o)return null;let s=o.paddedRect,l=o.displaySize,c={width:l[0],height:l[1],left:1,top:-3,advance:i?l[1]:l[0]},d;if(i)d=r.verticalLineContentWidth-l[1]*t.scale;else{let i=de(t.verticalAlign);d=(r.horizontalLineContentHeight-l[1]*t.scale)*i}return{rect:s,metrics:c,baselineOffset:d,imageOffset:(i?l[0]:l[1])*t.scale-24*n}}(l,_,a,x,r)))continue;b=Math.max(b,f.imageOffset),h.imageName=l.imageName}let{rect:g,metrics:y,baselineOffset:w}=f;(h.y+=w,h.scale=l.scale,h.metrics=y,h.rect=g,u.push(h),_)?(t.verticalizable=!0,p+=("imageName"in l?y.advance:24)*l.scale+d):p+=y.advance*l.scale+d}}0!==u.length&&(f=Math.max(p-d,f),function(t,i,n){if(0===n)return;let r=t[i],a=r.metrics.advance*r.scale,o=(t[i].x+a)*n;for(let n=0;n<=i;n++)t[n].x-=o}(u,u.length-1,_)),p=0,l.lineOffset=Math.max(b,(a-1)*24);let E=o*a+b;m+=E,g=Math.max(E,g),++y}let{horizontalAlign:b,verticalAlign:x}=c9(s);(function(t,i,n,r,a,o,s,l,c){let d=(i-n)*a,h=0;for(let i of(h=o===s?-r*c*s+.5*s:-l*r- -17,t))for(let t of i.positionedGlyphs)t.x+=d,t.y+=h})(t.positionedLines,_,b,x,f,g,o,m,a.length),t.top+=-x*m,t.bottom=t.top+m,t.left+=-b*f,t.right=t.left+f}(w,i,n,r,_,s,l,c,u,d,p,f),!function(t){for(let i of t)if(0!==i.positionedGlyphs.length)return!1;return!0}(x)&&w}function c9(t){let i=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":i=1;break;case"left":case"top-left":case"bottom-left":i=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:i,verticalAlign:n}}function de(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function dt(t){return/\p{Nd}/u.test(String.fromCodePoint(t))}function di(t){return/\p{Lu}/u.test(String.fromCodePoint(t))}function dn(t){let i=t.left,n=t.top,r=t.right-i,a=t.bottom-n,o=t.image.content[2]-t.image.content[0],s=t.image.content[3]-t.image.content[1],l=t.image.textFitWidth??"stretchOrShrink",c=t.image.textFitHeight??"stretchOrShrink",d=o/s;if("proportional"===c){if("stretchOnly"===l&&r/a<d||"proportional"===l){let t=Math.ceil(a*d);i*=t/r,r=t}}else if("proportional"===l&&"stretchOnly"===c&&0!==d&&r/a>d){let t=Math.ceil(r/d);n*=t/a,a=t}return{x1:i,y1:n,x2:i+r,y2:n+a}}function dr(t,i,n,r,a,o){let s=t.image,l;if(s.content){let t=s.content,i=s.pixelRatio||1;l=[t[0]/i,t[1]/i,s.displaySize[0]-t[2]/i,s.displaySize[1]-t[3]/i]}let c=i.left*o,d=i.right*o,h,u,p,m;"width"===n||"both"===n?(m=a[0]+c-r[3],u=a[0]+d+r[1]):u=(m=a[0]+(c+d-s.displaySize[0])/2)+s.displaySize[0];let f=i.top*o,g=i.bottom*o;return"height"===n||"both"===n?(h=a[1]+f-r[0],p=a[1]+g+r[2]):p=(h=a[1]+(f+g-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:h,right:u,bottom:p,left:m,collisionPadding:l}}function da(t,i){let{expression:n}=i;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new a$(t+1))};if("source"===n.kind)return{kind:"source"};if("composite"===n.kind){let{minZoom:i,maxZoom:r}=function(t,i){let n=0;for(;n<t.length&&t[n]<=i;)n++;let r=n=Math.max(0,n-1);for(;r<t.length&&t[r]<i+1;)r++;return r=Math.min(t.length-1,r),{minZoom:t[n],maxZoom:t[r]}}(n.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:r,interpolationType:n.interpolationType}}{var r;let i=(r=n).zoomStops.map(t=>r.evaluate(new a$(-1/0===t?r.zoomStops[1]-1:t))),a=n.evaluate(new a$(t+1));return{kind:"camera",zoomStops:n.zoomStops,sizes:i,layoutSize:a,interpolationType:n.interpolationType}}}function ds(t,{uSize:i,uSizeT:n},{lowerSize:r,upperSize:a}){return"source"===t.kind?r/128:"composite"===t.kind?i1.number(r/128,a/128,n):i}function dl(t,i){let n=0,r=0;return"constant"===t.kind?r=t.layoutSize:"camera"===t.kind?r=function({zoomStops:t,sizes:i,layoutSize:n,interpolationType:r},a){let o=t.length-1;for(;o>0&&t[o]>a;)o--;let s=Math.min(o+1,t.length-1),l=r?e5(i0.interpolationFactor(r,a,t[o],t[s]),0,1):0;return Math.min(i1.number(i[o],i[s],l),n)}(t,i):"composite"===t.kind&&(n=function({interpolationType:t,minZoom:i,maxZoom:n},r){return t?e5(i0.interpolationFactor(t,r,i,n),0,1):0}(t,i)),{uSizeT:n,uSize:r}}var dc=class t extends R{constructor(t,i,n,r){super(t,i),this.angle=n,void 0!==r&&(this.segment=r)}clone(){return new t(this.x,this.y,this.angle,this.segment)}};function dd(t,i,n,r,a){if(void 0===i.segment||0===n)return!0;let o=i,s=i.segment+1,l=0;for(;l>-n/2;){if(--s<0)return!1;l-=t[s].dist(o),o=t[s]}l+=t[s].dist(t[s+1]),s++;let c=[],d=0;for(;l<n/2;){let i=t[s-1],n=t[s],o=t[s+1];if(!o)return!1;let h=i.angleTo(n)-n.angleTo(o);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),c.push({distance:l,angleDelta:h}),d+=h;l-c[0].distance>r;)d-=c.shift().angleDelta;if(d>a)return!1;s++,l+=n.dist(o)}return!0}function dh(t){let i=0;for(let n=0;n<t.length-1;n++)i+=t[n].dist(t[n+1]);return i}function du(t,i){return Math.max(t?t.right-t.left:0,i?i.right-i.left:0)}function dp(t,i,n,r,a){let o=[];for(let s of t){let t;for(let l=0;l<s.length-1;l++){let c=s[l],d=s[l+1];c.x<i&&d.x<i||(c.x<i?c=new R(i,c.y+(d.y-c.y)*((i-c.x)/(d.x-c.x)))._round():d.x<i&&(d=new R(i,c.y+(d.y-c.y)*((i-c.x)/(d.x-c.x)))._round()),!(c.y<n&&d.y<n)&&(c.y<n?c=new R(c.x+(d.x-c.x)*((n-c.y)/(d.y-c.y)),n)._round():d.y<n&&(d=new R(c.x+(d.x-c.x)*((n-c.y)/(d.y-c.y)),n)._round()),!(c.x>=r&&d.x>=r)&&(c.x>=r?c=new R(r,c.y+(d.y-c.y)*((r-c.x)/(d.x-c.x)))._round():d.x>=r&&(d=new R(r,c.y+(d.y-c.y)*((r-c.x)/(d.x-c.x)))._round()),c.y>=a&&d.y>=a||(c.y>=a?c=new R(c.x+(d.x-c.x)*((a-c.y)/(d.y-c.y)),a)._round():d.y>=a&&(d=new R(c.x+(d.x-c.x)*((a-c.y)/(d.y-c.y)),a)._round()),t&&c.equals(t[t.length-1])||(t=[c],o.push(t)),t.push(d)))))}}return o}function dm(t,i,n,r){let a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,d={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=o.stretchX||[[0,l]],u=o.stretchY||[[0,c]],p=(t,i)=>t+i[1]-i[0],m=h.reduce(p,0),f=u.reduce(p,0),g=l-m,_=c-f,v=0,y=m,b=0,x=f,w=0,C=g,E=0,T=_;if(o.content&&r){let i=o.content,n=i[2]-i[0],r=i[3]-i[1];(o.textFitWidth||o.textFitHeight)&&(d=dn(t)),v=df(h,0,i[0]),b=df(u,0,i[1]),y=df(h,i[0],i[2]),x=df(u,i[1],i[3]),w=i[0]-v,E=i[1]-b,C=n-y,T=r-x}let k=d.x1,A=d.y1,I=d.x2-k,S=d.y2-A,D=(t,r,a,l)=>{var c,d,h,u,p,g,_,D,P,M,z,L,F,O,B,N;let V=(c=t.stretch-v,c/y*I+k),$=(d=t.fixed-w,h=C,u=t.stretch,d-h*u/m),j=(p=r.stretch-b,p/x*S+A),U=(g=r.fixed-E,_=T,D=r.stretch,g-_*D/f),q=(P=a.stretch-v,P/y*I+k),G=(M=a.fixed-w,z=C,L=a.stretch,M-z*L/m),H=(F=l.stretch-b,F/x*S+A),Z=(O=l.fixed-E,B=T,N=l.stretch,O-B*N/f),X=new R(V,j),W=new R(q,j),Y=new R(q,H),K=new R(V,H),J=new R($/s,U/s),Q=new R(G/s,Z/s),ee=i*Math.PI/180;if(ee){let t=Math.sin(ee),i=Math.cos(ee),n=[i,-t,t,i];X._matMult(n),W._matMult(n),K._matMult(n),Y._matMult(n)}let et=t.stretch+t.fixed,ei=a.stretch+a.fixed,en=r.stretch+r.fixed,er=l.stretch+l.fixed;return{tl:X,tr:W,bl:K,br:Y,tex:{x:o.paddedRect.x+1+et,y:o.paddedRect.y+1+en,w:ei-et,h:er-en},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:J,pixelOffsetBR:Q,minFontScaleX:C/s/I,minFontScaleY:T/s/S,isSDF:n}};if(r&&(o.stretchX||o.stretchY)){let t=dg(h,g,m),i=dg(u,_,f);for(let n=0;n<t.length-1;n++){let r=t[n],o=t[n+1];for(let t=0;t<i.length-1;t++){let n=i[t],s=i[t+1];a.push(D(r,n,o,s))}}}else a.push(D({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function df(t,i,n){let r=0;for(let a of t)r+=Math.max(i,Math.min(n,a[1]))-Math.max(i,Math.min(n,a[0]));return r}function dg(t,i,n){let r=[{fixed:-1,stretch:0}];for(let[i,n]of t){let t=r[r.length-1];r.push({fixed:i-t.stretch,stretch:t.stretch}),r.push({fixed:i-t.stretch,stretch:t.stretch+(n-i)})}return r.push({fixed:i+1,stretch:n}),r}aw("Anchor",dc);var d_=class{constructor(t,i,n,r,a,o,s,l,c,d){if(this.boxStartIndex=t.length,c){let t=o.top,i=o.bottom,n=o.collisionPadding;n&&(t-=n[1],i+=n[3]);let r=i-t;r>0&&(r=Math.max(10,r),this.circleDiameter=r)}else{let c=o.image?.content&&(o.image.textFitWidth||o.image.textFitHeight)?dn(o):{x1:o.left,y1:o.top,x2:o.right,y2:o.bottom};c.y1=c.y1*s-l[0],c.y2=c.y2*s+l[2],c.x1=c.x1*s-l[3],c.x2=c.x2*s+l[1];let h=o.collisionPadding;if(h&&(c.x1-=h[0]*s,c.y1-=h[1]*s,c.x2+=h[2]*s,c.y2+=h[3]*s),d){let t=new R(c.x1,c.y1),i=new R(c.x2,c.y1),n=new R(c.x1,c.y2),r=new R(c.x2,c.y2),a=d*Math.PI/180;t._rotate(a),i._rotate(a),n._rotate(a),r._rotate(a),c.x1=Math.min(t.x,i.x,n.x,r.x),c.x2=Math.max(t.x,i.x,n.x,r.x),c.y1=Math.min(t.y,i.y,n.y,r.y),c.y2=Math.max(t.y,i.y,n.y,r.y)}t.emplaceBack(i.x,i.y,c.x1,c.y1,c.x2,c.y2,n,r,a)}this.boxEndIndex=t.length}},dv=class{constructor(t=[],i=(t,i)=>t<i?-1:+(t>i)){if(this.data=t,this.length=this.data.length,this.compare=i,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;let t=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:i,compare:n}=this,r=i[t];for(;t>0;){let a=t-1>>1,o=i[a];if(n(r,o)>=0)break;i[t]=o,t=a}i[t]=r}_down(t){let{data:i,compare:n}=this,r=this.length>>1,a=i[t];for(;t<r;){let r=(t<<1)+1,o=r+1;if(o<this.length&&0>n(i[o],i[r])&&(r=o),n(i[r],a)>=0)break;i[t]=i[r],t=r}i[t]=a}};function dy(t,i){return i.max-t.max}var db=class{constructor(t,i,n,r){this.p=new R(t,i),this.h=n,this.d=function(t,i){let n=!1,r=1/0;for(let a of i)for(let i=0,o=a.length,s=o-1;i<o;s=i++){let o=a[i],l=a[s];o.y>t.y!=l.y>t.y&&t.x<(l.x-o.x)*(t.y-o.y)/(l.y-o.y)+o.x&&(n=!n),r=Math.min(r,sV(t,o,l))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}};let dx=((hi={})[hi.center=1]="center",hi[hi.left=2]="left",hi[hi.right=3]="right",hi[hi.top=4]="top",hi[hi.bottom=5]="bottom",hi[hi["top-left"]=6]="top-left",hi[hi["top-right"]=7]="top-right",hi[hi["bottom-left"]=8]="bottom-left",hi[hi["bottom-right"]=9]="bottom-right",hi);function dw(t,i){return 1/0===i[1]?function(t,i){let n=0,r=0;i<0&&(i=0);let a=i/Math.SQRT2;switch(t){case"top-right":case"top-left":r=a-7;break;case"bottom-right":case"bottom-left":r=-a+7;break;case"bottom":r=-i+7;break;case"top":r=i-7}switch(t){case"top-right":case"bottom-right":n=-a;break;case"top-left":case"bottom-left":n=a;break;case"left":n=i;break;case"right":n=-i}return[n,r]}(t,i[0]):function(t,i,n){let r=0,a=0;switch(i=Math.abs(i),n=Math.abs(n),t){case"top-right":case"top-left":case"top":a=n-7;break;case"bottom-right":case"bottom-left":case"bottom":a=-n+7}switch(t){case"top-right":case"bottom-right":case"right":r=-i;break;case"top-left":case"bottom-left":case"left":r=i}return[r,a]}(t,i[0],i[1])}function dC(t,i,n){let r=t.layout,a=r.get("text-variable-anchor-offset")?.evaluate(i,{},n);if(a){let t=a.values,i=[];for(let n=0;n<t.length;n+=2){let r=i[n]=t[n],a=t[n+1].map(t=>24*t);r.startsWith("top")?a[1]-=7:r.startsWith("bottom")&&(a[1]+=7),i[n+1]=a}return new i$(i)}let o=r.get("text-variable-anchor");if(o){let a;a=void 0===t._unevaluatedLayout.getValue("text-radial-offset")?r.get("text-offset").evaluate(i,{},n).map(t=>24*t):[24*r.get("text-radial-offset").evaluate(i,{},n),1/0];let s=[];for(let t of o)s.push(t,dw(t,a));return new i$(s)}return null}function dE(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function dT(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g){let _=function(t,i,n,r,a,o,s){let l=n.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[];for(let n of t.positionedLines)for(let a of n.positionedGlyphs){if(!a.rect)continue;let d=a.rect||{},h=4,u=!0,p=1,m=0,f=(r||s)&&a.vertical,g=a.metrics.advance*a.scale/2;if(s&&t.verticalizable){let t=(a.scale-1)*24,i=(24-a.metrics.width*a.scale)/2;m=n.lineOffset/2-(a.imageName?-i:t)}if(a.imageName){let t=o[a.imageName];u=t.sdf,h=1/(p=t.pixelRatio)}let _=r?[a.x+g,a.y]:[0,0],v=r?[0,0]:[a.x+g+i[0],a.y+i[1]-m],y=[0,0];f&&(y=v,v=[0,0]);let b=a.metrics.isDoubleResolution?2:1,x=(a.metrics.left-h)*a.scale-g+v[0],w=(-a.metrics.top-h)*a.scale+v[1],C=x+d.w/b*a.scale/p,E=w+d.h/b*a.scale/p,T=new R(x,w),k=new R(C,w),A=new R(x,E),I=new R(C,E);if(f){let t=new R(-g,g- -17),i=-Math.PI/2,n=12-g,r=a.imageName?n:0,o=new R(22-n,-r),s=new R(...y);T._rotateAround(i,t)._add(o)._add(s),k._rotateAround(i,t)._add(o)._add(s),A._rotateAround(i,t)._add(o)._add(s),I._rotateAround(i,t)._add(o)._add(s)}if(l){let t=Math.sin(l),i=Math.cos(l),n=[i,-t,t,i];T._matMult(n),k._matMult(n),A._matMult(n),I._matMult(n)}let S=new R(0,0),D=new R(0,0);c.push({tl:T,tr:k,bl:A,br:I,tex:d,writingMode:t.writingMode,glyphOffset:_,sectionIndex:a.sectionIndex,isSDF:u,pixelOffsetTL:S,pixelOffsetBR:D,minFontScaleX:0,minFontScaleY:0})}return c}(n,l,a,o,s,r,t.allowVerticalPlacement),v=t.textSizeData,y=null;for(let n of("source"===v.kind?(y=[128*a.layout.get("text-size").evaluate(s,{})])[0]>32640&&tl(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===v.kind&&((y=[128*f.compositeTextSizes[0].evaluate(s,{},g),128*f.compositeTextSizes[1].evaluate(s,{},g)])[0]>32640||y[1]>32640)&&tl(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`),t.addSymbols(t.text,_,y,l,o,s,h,i,d.lineStartIndex,d.lineLength,m,g,c),u))p[n]=t.text.placedSymbolArray.length-1;return 4*_.length}function dk(t){for(let i in t)return t[i];return null}function dA(t,i,n){let r="never",a=t.get(i);return a?r=a:t.get(n)&&(r="always"),r}let dI=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function dS(t,i,n,r,a,o,s,l,c,d,h,u,p,m){let f=l?Math.min(32640,Math.round(l[0])):0,g=l?Math.min(32640,Math.round(l[1])):0;t.emplaceBack(i,n,Math.round(32*r),Math.round(32*a),o,s,(f<<1)+ +!!c,g,16*d,16*h,256*u,256*p,m)}function dD(t,i,n){t.emplaceBack(i.x,i.y,n),t.emplaceBack(i.x,i.y,n),t.emplaceBack(i.x,i.y,n),t.emplaceBack(i.x,i.y,n)}var dP=class{constructor(t){this.layoutVertexArray=new oJ,this.indexArray=new o4,this.programConfigurations=t,this.segments=new se,this.dynamicLayoutVertexArray=new oQ,this.opacityVertexArray=new o0,this.hasVisibleVertices=!1,this.placedSymbolArray=new oz}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(t,i,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,cM.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,i),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,cz.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,dI,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(t))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};aw("SymbolBuffers",dP);var dM=class{constructor(t,i,n){this.layoutVertexArray=new t,this.layoutAttributes=i,this.indexArray=new n,this.segments=new se,this.collisionVertexArray=new o3}upload(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,cL.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};aw("CollisionBuffers",dM);var dz=class{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let i=this.layers[0]._unevaluatedLayout._values;this.textSizeData=da(this.zoom,i["text-size"]),this.iconSizeData=da(this.zoom,i["icon-size"]);let n=this.layers[0].layout,r=n.get("symbol-sort-key"),a=n.get("symbol-z-order");this.canOverlap="never"!==dA(n,"text-overlap","text-allow-overlap")||"never"!==dA(n,"icon-overlap","icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==a&&!r.isConstant();let o="viewport-y"===a||"auto"===a&&!this.sortFeaturesByKey;this.sortFeaturesByY=o&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(t=>c4[t])),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.sourceID=t.sourceID}createArrays(){this.text=new dP(new sD(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new dP(new sD(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new oF,this.lineVertexArray=new oO,this.symbolInstances=new oR,this.textAnchorOffsets=new oN}calculateGlyphDependencies(t,i,n,r,a){let o=(r||this.allowVerticalPlacement)&&a,s=cZ.fromFeature(t,n),l=s.graphemes();for(let t=0;t<l.length;t++){let n=s.getSection(t);if("imageName"in n)continue;let r=i[n.fontStack]||={},a=l[t];for(let t of(cN(a)&&(r[a]=!0),a)){if(r[t]=!0,!o)continue;let i=cV[t];i&&(r[i]=!0)}}}populate(t,i,n){let r=this.layers[0],a=r.layout,o=a.get("text-font"),s=a.get("text-field"),l=a.get("icon-image"),c=("constant"!==s.value.kind||s.value.value instanceof iR&&!s.value.value.isEmpty()||s.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),d="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,h=a.get("symbol-sort-key");if(this.features=[],!c&&!d)return;let u=i.iconDependencies,p=i.glyphDependencies,m=i.availableImages,f=new a$(this.zoom);for(let{feature:i,id:s,index:l,sourceLayerIndex:g}of t){let t,_,v=r._featureFilter.needGeometry,y=sz(i,v);if(!r._featureFilter.filter(f,y,n))continue;if(v||(y.geometry=sM(i)),c){let i=r.getValueAndResolveTokens("text-field",y,n,m),a=iR.factory(i);this.hasRTLText||=function(t){for(let i of t.sections)if(function(t){for(let i of t)if(aN(i.codePointAt(0)))return!0;return!1}(i.text))return!0;return!1}(a),(!this.hasRTLText||"unavailable"===aV.getRTLTextPluginStatus()||this.hasRTLText&&aV.isParsed())&&(t=function(t,i,n){for(let r of t.sections)r.text=function(t,i,n){let r=i.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),aV.applyArabicShaping&&(t=aV.applyArabicShaping(t)),t}(r.text,i,n);return t}(a,r,y))}if(d){let t=r.getValueAndResolveTokens("icon-image",y,n,m);_=t instanceof ij?t:ij.fromString(t)}if(!t&&!_)continue;let b=this.sortFeaturesByKey?h.evaluate(y,{},n):void 0,x={id:s,text:t,icon:_,index:l,sourceLayerIndex:g,geometry:y.geometry,properties:i.properties,type:l5.types[i.type],sortKey:b};if(this.features.push(x),_&&(u[_.name]=!0),t){let i=o.evaluate(y,{},n).join(","),r="viewport"!==a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement");this.allowVerticalPlacement=this.writingModes?.includes(2);let s=az(t.toString());for(let n of(this.calculateGlyphDependencies(t,p,i,r,s),t.sections))n.image&&(u[n.image.name]=!0)}}"line"===a.get("symbol-placement")&&(this.features=function(t){let i={},n={},r=[],a=0;function o(i){r.push(t[i]),a++}function s(t,i,a){let o=n[t];return delete n[t],n[i]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(a[0]),o}function l(t,n,a){let o=i[n];return delete i[n],i[t]=o,r[o].geometry[0].shift(),r[o].geometry[0]=a[0].concat(r[o].geometry[0]),o}function c(t,i,n){let r=n?i[0][i[0].length-1]:i[0][0];return`${t}:${r.x}:${r.y}`}for(let d=0;d<t.length;d++){let h=t[d],u=h.geometry,p=h.text?h.text.toString():null;if(!p){o(d);continue}let m=c(p,u),f=c(p,u,!0);if(m in n&&f in i&&n[m]!==i[f]){let t=l(m,f,u),a=s(m,f,r[t].geometry);delete i[m],delete n[f],n[c(p,r[a].geometry,!0)]=a,r[t].geometry=null}else m in n?s(m,f,u):f in i?l(m,f,u):(o(d),i[m]=a-1,n[f]=a-1)}return r.filter(t=>t.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((t,i)=>t.sortKey-i.sortKey)}update(t,i,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,i,this.layers,{imagePositions:n}),this.icon.programConfigurations.updatePaintArrays(t,i,this.layers,{imagePositions:n}))}addFeatures({options:t,canonical:i,glyphMap:n,glyphPositions:r,iconMap:a,iconPositions:o,showCollisionBoxes:s}){!function(t){t.bucket.createArrays();let i=512*t.bucket.overscaling;t.bucket.tilePixelRatio=8192/i,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let n=t.bucket.layers[0],r=n.layout,a=n._unevaluatedLayout._values,o={layoutIconSize:a["icon-size"].possiblyEvaluate(new a$(t.bucket.zoom+1),t.canonical),layoutTextSize:a["text-size"].possiblyEvaluate(new a$(t.bucket.zoom+1),t.canonical),textMaxSize:a["text-size"].possiblyEvaluate(new a$(18))};if("composite"===t.bucket.textSizeData.kind){let{minZoom:i,maxZoom:n}=t.bucket.textSizeData;o.compositeTextSizes=[a["text-size"].possiblyEvaluate(new a$(i),t.canonical),a["text-size"].possiblyEvaluate(new a$(n),t.canonical)]}if("composite"===t.bucket.iconSizeData.kind){let{minZoom:i,maxZoom:n}=t.bucket.iconSizeData;o.compositeIconSizes=[a["icon-size"].possiblyEvaluate(new a$(i),t.canonical),a["icon-size"].possiblyEvaluate(new a$(n),t.canonical)]}let s=24*r.get("text-line-height"),l="viewport"!==r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement"),c=r.get("text-keep-upright"),d=r.get("text-size");for(let i of t.bucket.features){let a=r.get("text-font").evaluate(i,{},t.canonical).join(","),h=d.evaluate(i,{},t.canonical),u=o.layoutTextSize.evaluate(i,{},t.canonical),p=o.layoutIconSize.evaluate(i,{},t.canonical),m={horizontal:{},vertical:void 0},f=i.text,g=[0,0];if(f){let o=f.toString(),d=24*r.get("text-letter-spacing").evaluate(i,{},t.canonical),p=!function(t){for(let n of t){var i;if(i=n.codePointAt(0),aR.test(String.fromCodePoint(i)))return!1}return!0}(o)?0:d,_=r.get("text-anchor").evaluate(i,{},t.canonical),v=dC(n,i,t.canonical);if(!v){let n=r.get("text-radial-offset").evaluate(i,{},t.canonical);g=n?dw(_,[24*n,1/0]):r.get("text-offset").evaluate(i,{},t.canonical).map(t=>24*t)}let y=l?"center":r.get("text-justify").evaluate(i,{},t.canonical),b="point"===r.get("symbol-placement")?24*r.get("text-max-width").evaluate(i,{},t.canonical):1/0,x=()=>{t.bucket.allowVerticalPlacement&&az(o)&&(m.vertical=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,_,"left",p,g,2,!0,u,h))};if(!l&&v){let i=new Set;if("auto"===y)for(let t=0;t<v.values.length;t+=2)i.add(dE(v.values[t]));else i.add(y);let n=!1;for(let r of i)if(!m.horizontal[r])if(n)m.horizontal[r]=m.horizontal[0];else{let i=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,"center",r,p,g,1,!1,u,h);i&&(m.horizontal[r]=i,n=1===i.positionedLines.length)}x()}else{"auto"===y&&(y=dE(_));let i=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,_,y,p,g,1,!1,u,h);i&&(m.horizontal[y]=i),x(),az(o)&&l&&c&&(m.vertical=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,_,y,p,g,2,!1,u,h))}}let _,v=!1;if(i.icon?.name){let n=t.imageMap[i.icon.name];n&&(_=function(t,i,n){let{horizontalAlign:r,verticalAlign:a}=c9(n),o=i[0],s=i[1],l=o-t.displaySize[0]*r,c=l+t.displaySize[0],d=s-t.displaySize[1]*a;return{image:t,top:d,bottom:d+t.displaySize[1],left:l,right:c}}(t.imagePositions[i.icon.name],r.get("icon-offset").evaluate(i,{},t.canonical),r.get("icon-anchor").evaluate(i,{},t.canonical)),v=!!n.sdf,void 0===t.bucket.sdfIcons?t.bucket.sdfIcons=v:t.bucket.sdfIcons!==v&&tl("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),n.pixelRatio===t.bucket.pixelRatio?0!==r.get("icon-rotate").constantOr(1)&&(t.bucket.iconsNeedLinear=!0):t.bucket.iconsNeedLinear=!0)}let y=dk(m.horizontal)||m.vertical;t.bucket.iconsInText||=!!y&&y.iconsInText,(y||_)&&function(t,i,n,r,a,o,s,l,c,d,h,u){let p=o.textMaxSize.evaluate(i,{});void 0===p&&(p=s);let m=t.layers[0].layout,f=m.get("icon-offset").evaluate(i,{},h),g=dk(n.horizontal),_=s/24,v=t.tilePixelRatio*_,y=t.tilePixelRatio*p/24,b=t.tilePixelRatio*l,x=t.tilePixelRatio*m.get("symbol-spacing"),w=m.get("text-padding")*t.tilePixelRatio,C=function(t,i,n,r=1){let a=t.get("icon-padding").evaluate(i,{},n)?.values;return[a[0]*r,a[1]*r,a[2]*r,a[3]*r]}(m,i,h,t.tilePixelRatio),E=m.get("text-max-angle")/180*Math.PI,T="viewport"!==m.get("text-rotation-alignment")&&"point"!==m.get("symbol-placement"),k="map"===m.get("icon-rotation-alignment").constantOr("viewport")&&"point"!==m.get("symbol-placement"),A=m.get("symbol-placement"),I=x/2,S=m.get("icon-text-fit"),D;r&&"none"!==S&&(t.allowVerticalPlacement&&n.vertical&&(D=dr(r,n.vertical,S,m.get("icon-text-fit-padding"),f,_)),g&&(r=dr(r,g,S,m.get("icon-text-fit-padding"),f,_)));let P=h?u.line.getGranularityForZoomLevel(h.z):1,M=(l,u)=>{u.x<0||u.x>=8192||u.y<0||u.y>=8192||function(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T){let k=t.addToLineVertexArray(i,n),A=l.layout.get("symbol-height-offset").evaluate(x,{},E);A>t.maxHeightOffset&&(t.maxHeightOffset=A);let I,S,D,P,M=0,z=0,L=0,R=0,F=-1,O=-1,B={},N=(0,so.default)("");if(t.allowVerticalPlacement&&r.vertical){let t=l.layout.get("text-rotate").evaluate(x,{},E)+90;D=new d_(c,i,d,h,u,r.vertical,p,m,f,t),s&&(P=new d_(c,i,d,h,u,s,_,v,f,t))}if(a){let n=l.layout.get("icon-rotate").evaluate(x,{}),r="none"!==l.layout.get("icon-text-fit"),o=dm(a,n,C,r),p=s?dm(s,n,C,r):void 0;S=new d_(c,i,d,h,u,a,_,v,!1,n),M=4*o.length;let m=t.iconSizeData,f=null;"source"===m.kind?(f=[128*l.layout.get("icon-size").evaluate(x,{})])[0]>32640&&tl(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===m.kind&&((f=[128*w.compositeIconSizes[0].evaluate(x,{},E),128*w.compositeIconSizes[1].evaluate(x,{},E)])[0]>32640||f[1]>32640)&&tl(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`),t.addSymbols(t.icon,o,f,b,y,x,0,i,k.lineStartIndex,k.lineLength,-1,E,A),F=t.icon.placedSymbolArray.length-1,p&&(z=4*p.length,t.addSymbols(t.icon,p,f,b,y,x,2,i,k.lineStartIndex,k.lineLength,-1,E,A),O=t.icon.placedSymbolArray.length-1)}let V=Object.keys(r.horizontal);for(let n of V){let a=r.horizontal[n];I||=(N=(0,so.default)(a.text),new d_(c,i,d,h,u,a,p,m,f,l.layout.get("text-rotate").evaluate(x,{},E)));let s=1===a.positionedLines.length;if(L+=dT(t,i,a,o,l,f,x,g,A,k,r.vertical?1:3,s?V:[n],B,F,w,E),s)break}r.vertical&&(R+=dT(t,i,r.vertical,o,l,f,x,g,A,k,2,["vertical"],B,O,w,E));let $=I?I.boxStartIndex:t.collisionBoxArray.length,j=I?I.boxEndIndex:t.collisionBoxArray.length,U=D?D.boxStartIndex:t.collisionBoxArray.length,q=D?D.boxEndIndex:t.collisionBoxArray.length,G=S?S.boxStartIndex:t.collisionBoxArray.length,H=S?S.boxEndIndex:t.collisionBoxArray.length,Z=P?P.boxStartIndex:t.collisionBoxArray.length,X=P?P.boxEndIndex:t.collisionBoxArray.length,W=-1,Y=(t,i)=>t?.circleDiameter?Math.max(t.circleDiameter,i):i;W=Y(I,-1),W=Y(D,W),W=Y(S,W);let K=+((W=Y(P,W))>-1);K&&(W*=T/24),t.glyphOffsetArray.length>=t.maxGlyphs&&tl("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey);let J=dC(l,x,E),[Q,ee]=function(t,i){let n=t.length,r=i?.values;if(r?.length>0)for(let i=0;i<r.length;i+=2){let n=dx[r[i]],a=r[i+1];t.emplaceBack(n,a[0],a[1])}return[n,t.length]}(t.textAnchorOffsets,J);t.symbolInstances.emplaceBack(i.x,i.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,F,O,N,$,j,U,q,G,H,Z,X,d,L,R,M,z,K,0,p,W,Q,ee,A)}(t,u,l,n,r,a,D,t.layers[0],t.collisionBoxArray,i.index,i.sourceLayerIndex,t.index,v,[w,w,w,w],T,c,b,C,k,f,i,o,d,h,s)};if("line"===A)for(let a of dp(i.geometry,0,0,8192,8192)){let i=lG(a,P);for(let a of function(t,i,n,r,a,o,s){let l=r?.6*24*o:0,c=du(r,a),d=c*o,h=0===t[0].x||8192===t[0].x||0===t[0].y||8192===t[0].y;return i-d<i/4&&(i=d+i/4),function t(i,n,r,a,o,s,l,c,d){let h=s/2,u=dh(i),p=0,m=n-r,f=[];for(let t=0;t<i.length-1;t++){let n=i[t],l=i[t+1],c=n.dist(l),g=l.angleTo(n);for(;m+r<p+c;){let _=((m+=r)-p)/c,v=i1.number(n.x,l.x,_),y=i1.number(n.y,l.y,_);if(v>=0&&v<d&&y>=0&&y<d&&m-h>=0&&m+h<=u){let n=new dc(v,y,g,t);n._round(),(!a||dd(i,n,s,a,o))&&f.push(n)}}p+=c}return c||f.length||l||(f=t(i,p/2,r,a,o,s,l,!0,d)),f}(t,h?i/2*s%i:(c/2+48)*o*s%i,i,l,n,d,h,!1,8192)}(i,x,E,n.vertical||g,r,y,t.overscaling))g&&function(t,i,n,r){let a=t.compareText;if(i in a){let t=a[i];for(let i=t.length-1;i>=0;i--)if(r.dist(t[i])<n)return!0}else a[i]=[];return a[i].push(r),!1}(t,g.text,I,a)||M(i,a)}else if("line-center"===A){for(let t of i.geometry)if(t.length>1){let i=lG(t,P),a=function(t,i,n,r,a){let o=n?.6*24*a:0,s=du(n,r)*a,l=0,c=dh(t)/2;for(let n=0;n<t.length-1;n++){let r=t[n],a=t[n+1],d=r.dist(a);if(l+d>c){let h=(c-l)/d,u=new dc(i1.number(r.x,a.x,h),i1.number(r.y,a.y,h),a.angleTo(r),n);return u._round(),!o||dd(t,u,s,o,i)?u:void 0}l+=d}}(i,E,n.vertical||g,r,y);a&&M(i,a)}}else if("Polygon"===i.type)for(let t of i4(i.geometry,0)){let i=function(t,i=1){let n=l0.fromPoints(t[0]),r=Math.min(n.width(),n.height()),a=r/2,o=new dv([],dy),{minX:s,minY:l,maxX:c,maxY:d}=n;if(0===r)return new R(s,l);for(let i=s;i<c;i+=r)for(let n=l;n<d;n+=r)o.push(new db(i+a,n+a,a,t));let h=function(t){let i=0,n=0,r=0,a=t[0];for(let t=0,o=a.length,s=o-1;t<o;s=t++){let o=a[t],l=a[s],c=o.x*l.y-l.x*o.y;n+=(o.x+l.x)*c,r+=(o.y+l.y)*c,i+=3*c}return new db(n/i,r/i,0,t)}(t),u=h;for(;o.length;){let n=o.pop();(n.d>u.d||!u.d)&&(u=n),n.max-u.d<=i||(a=n.h/2,o.push(new db(n.p.x-a,n.p.y-a,a,t)),o.push(new db(n.p.x+a,n.p.y-a,a,t)),o.push(new db(n.p.x-a,n.p.y+a,a,t)),o.push(new db(n.p.x+a,n.p.y+a,a,t)))}return h.d>0&&u.d-h.d<=i?h.p:u.p}(t,16);M(lG(t[0],P,!0),new dc(i.x,i.y,0))}else if("LineString"===i.type)for(let t of i.geometry){let i=lG(t,P);M(i,new dc(i[0].x,i[0].y,0))}else if("Point"===i.type)for(let t of i.geometry)for(let i of t)M([i],new dc(i.x,i.y,0))}(t.bucket,i,m,_,t.imageMap,o,u,p,g,v,t.canonical,t.subdivisionGranularity)}t.showCollisionBoxes&&t.bucket.generateCollisionDebugBuffers()}({bucket:this,glyphMap:n,glyphPositions:r,imageMap:a,imagePositions:o,showCollisionBoxes:s,canonical:i,subdivisionGranularity:t.subdivisionGranularity})}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,i){let n=this.lineVertexArray.length;if(void 0!==t.segment){let n=t.dist(i[t.segment+1]),r=t.dist(i[t.segment]),a={};for(let r=t.segment+1;r<i.length;r++)a[r]={x:i[r].x,y:i[r].y,tileUnitDistanceFromAnchor:n},r<i.length-1&&(n+=i[r+1].dist(i[r]));for(let n=t.segment||0;n>=0;n--)a[n]={x:i[n].x,y:i[n].y,tileUnitDistanceFromAnchor:r},n>0&&(r+=i[n-1].dist(i[n]));for(let t=0;t<i.length;t++){let i=a[t];this.lineVertexArray.emplaceBack(i.x,i.y,i.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(t,i,n,r,a,o,s,l,c,d,h,u,p){let m=t.indexArray,f=t.layoutVertexArray,g=t.segments.prepareSegment(4*i.length,f,m,this.canOverlap?o.sortKey:void 0),_=this.glyphOffsetArray.length,v=g.vertexLength,y=this.allowVerticalPlacement&&2===s?Math.PI/2:0,b=o.text&&o.text.sections;for(let r=0;r<i.length;r++){let{tl:a,tr:s,bl:c,br:d,tex:h,pixelOffsetTL:_,pixelOffsetBR:v,minFontScaleX:x,minFontScaleY:w,glyphOffset:C,isSDF:E,sectionIndex:T}=i[r],k=g.vertexLength,A=C[1];dS(f,l.x,l.y,a.x,A+a.y,h.x,h.y,n,E,_.x,_.y,x,w,p),dS(f,l.x,l.y,s.x,A+s.y,h.x+h.w,h.y,n,E,v.x,_.y,x,w,p),dS(f,l.x,l.y,c.x,A+c.y,h.x,h.y+h.h,n,E,_.x,v.y,x,w,p),dS(f,l.x,l.y,d.x,A+d.y,h.x+h.w,h.y+h.h,n,E,v.x,v.y,x,w,p),dD(t.dynamicLayoutVertexArray,l,y),m.emplaceBack(k,k+2,k+1),m.emplaceBack(k+1,k+2,k+3),g.vertexLength+=4,g.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),(r===i.length-1||T!==i[r+1].sectionIndex)&&t.programConfigurations.populatePaintArrays(f.length,o,o.index,{imagePositions:{},canonical:u,formattedSection:b?.[T]})}t.placedSymbolArray.emplaceBack(l.x,l.y,_,this.glyphOffsetArray.length-_,v,c,d,l.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],s,0,!1,0,h,p)}_addCollisionDebugVertex(t,i,n,r,a,o){return i.emplaceBack(0,0),t.emplaceBack(n.x,n.y,r,a,Math.round(o.x),Math.round(o.y))}addCollisionDebugVertices(t,i,n,r,a,o,s){let l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,d=a.layoutVertexArray,h=a.collisionVertexArray,u=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(d,h,o,u,p,new R(t,i)),this._addCollisionDebugVertex(d,h,o,u,p,new R(n,i)),this._addCollisionDebugVertex(d,h,o,u,p,new R(n,r)),this._addCollisionDebugVertex(d,h,o,u,p,new R(t,r)),l.vertexLength+=4;let m=a.indexArray;m.emplaceBack(c,c+1),m.emplaceBack(c+1,c+2),m.emplaceBack(c+2,c+3),m.emplaceBack(c+3,c),l.primitiveLength+=4}addDebugCollisionBoxes(t,i,n,r){for(let a=t;a<i;a++){let t=this.collisionBoxArray.get(a),i=t.x1,o=t.y1,s=t.x2,l=t.y2;this.addCollisionDebugVertices(i,o,s,l,r?this.textCollisionBox:this.iconCollisionBox,t.anchorPoint,n)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new dM(o2,cR.members,o6),this.iconCollisionBox=new dM(o2,cR.members,o6);for(let t=0;t<this.symbolInstances.length;t++){let i=this.symbolInstances.get(t);this.addDebugCollisionBoxes(i.textBoxStartIndex,i.textBoxEndIndex,i,!0),this.addDebugCollisionBoxes(i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i,!0),this.addDebugCollisionBoxes(i.iconBoxStartIndex,i.iconBoxEndIndex,i,!1),this.addDebugCollisionBoxes(i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex,i,!1)}}_deserializeCollisionBoxesForSymbol(t,i,n,r,a,o,s,l,c){let d={};for(let r=i;r<n;r++){let i=t.get(r);d.textBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,anchorPointX:i.anchorPointX,anchorPointY:i.anchorPointY},d.textFeatureIndex=i.featureIndex;break}for(let i=r;i<a;i++){let n=t.get(i);d.verticalTextBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},d.verticalTextFeatureIndex=n.featureIndex;break}for(let i=o;i<s;i++){let n=t.get(i);d.iconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},d.iconFeatureIndex=n.featureIndex;break}for(let i=l;i<c;i++){let n=t.get(i);d.verticalIconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},d.verticalIconFeatureIndex=n.featureIndex;break}return d}deserializeCollisionBoxes(t){this.collisionArrays=[];for(let i=0;i<this.symbolInstances.length;i++){let n=this.symbolInstances.get(i);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,i){let n=t.placedSymbolArray.get(i),r=n.vertexStartIndex+4*n.numGlyphs;for(let i=n.vertexStartIndex;i<r;i+=4)t.indexArray.emplaceBack(i,i+2,i+1),t.indexArray.emplaceBack(i+1,i+2,i+3)}getSortedSymbolIndexes(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;let i=Math.sin(t),n=Math.cos(t),r=[],a=[],o=[];for(let t=0;t<this.symbolInstances.length;++t){o.push(t);let s=this.symbolInstances.get(t);r.push(0|Math.round(i*s.anchorX+n*s.anchorY)),a.push(s.featureIndex)}return o.sort((t,i)=>r[t]-r[i]||a[i]-a[t]),o}addToSortKeyRanges(t,i){let n=this.sortKeyRanges[this.sortKeyRanges.length-1];n?.sortKey===i?n.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:i,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){for(let i of(this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[],this.symbolInstanceIndexes)){let t=this.symbolInstances.get(i);this.featureSortOrder.push(t.featureIndex);let n=[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex];for(let t=0;t<n.length;t++){let i=n[t];i>=0&&n.indexOf(i)===t&&this.addIndicesForPlacedSymbol(this.text,i)}t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};aw("SymbolBucket",dz,{omit:["layers","collisionBoxArray","features","compareText"]});var dL={get paint(){return w||=new a4({"icon-opacity":new a2(tY.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new a2(tY.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new a2(tY.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new a2(tY.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new a2(tY.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new a0(tY.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new a0(tY.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new a2(tY.paint_symbol["text-opacity"],"text-opacity"),"text-color":new a2(tY.paint_symbol["text-color"],"text-color",{runtimeType:t1,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new a2(tY.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new a2(tY.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new a2(tY.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new a0(tY.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new a0(tY.paint_symbol["text-translate-anchor"],"text-translate-anchor")})},get layout(){return x||=new a4({"symbol-placement":new a0(tY.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new a0(tY.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new a0(tY.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new a2(tY.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new a0(tY.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new a0(tY.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new a0(tY.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new a0(tY.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new a0(tY.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new a2(tY.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new a2(tY.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new a0(tY.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new a0(tY.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new a2(tY.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new a2(tY.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new a2(tY.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new a0(tY.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new a2(tY.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new a2(tY.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new a0(tY.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new a0(tY.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new a0(tY.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new a2(tY.layout_symbol["text-field"],"text-field"),"text-font":new a2(tY.layout_symbol["text-font"],"text-font"),"text-size":new a2(tY.layout_symbol["text-size"],"text-size"),"text-max-width":new a2(tY.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new a0(tY.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new a2(tY.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new a2(tY.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new a2(tY.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new a0(tY.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new a2(tY.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new a2(tY.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new a0(tY.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new a0(tY.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new a2(tY.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new a0(tY.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new a0(tY.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new a2(tY.layout_symbol["text-transform"],"text-transform"),"text-offset":new a2(tY.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new a0(tY.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new a0(tY.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new a0(tY.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new a0(tY.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new a2(tY.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new a0(tY.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})}},dR=class{constructor(t){if(void 0===t.property.overrides)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:tJ,this.defaultValue=t}evaluate(t){if(t.formattedSection){let i=this.defaultValue.property.overrides;if(i?.hasOverride(t.formattedSection))return i.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}};aw("FormatSectionOverride",dR,{omit:["defaultValue"]});var dF=class t extends a7{constructor(t,i){super(t,dL,i)}recalculate(t,i){super.recalculate(t,i);let n=this.layout.get("icon-rotation-alignment");if(("constant"!==n.value.kind||"auto"===n.value.value)&&(this.layout._values["icon-rotation-alignment"]=new aY(n.property,{kind:"constant",value:"point"===this.layout.get("symbol-placement")?"viewport":"map"},n.parameters)),"auto"===this.layout.get("text-rotation-alignment")&&("point"===this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),"point"===this.layout.get("symbol-placement")){let t=this.layout.get("text-writing-mode");if(t){let i=[];for(let n of t)i.includes(n)||i.push(n);this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,i,n,r){var a;let o=this.layout.get(t).evaluate(i,{},n,r),s=this._unevaluatedLayout._values[t];return s.isDataDriven()||rE(s.value)||!o?o:(a=i.properties,o.replace(/{([^{}]+)}/g,(t,i)=>a&&i in a?String(a[i]):""))}createBucket(t){return new dz(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let i of dL.paint.overridableProperties){if(!t.hasPaintOverride(this.layout,i))continue;let n=this.paint.get(i),r=new rx(new dR(n),`layers[${this.id}].paint.${n.property.name}`,n.property.specification),a=null;a="constant"===n.value.kind||"source"===n.value.kind?new rk("source",r):new rA("composite",r,n.value.zoomStops),this.paint._values[i]=new aY(n.property,a,n.parameters)}}_handleOverridablePaintPropertyUpdate(i,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&t.hasPaintOverride(this.layout,i)}static hasPaintOverride(t,i){let n=t.get("text-field"),r=dL.paint.properties[i],a=!1,o=t=>{for(let i of t)if(r.overrides?.hasOverride(i)){a=!0;return}};if("constant"===n.value.kind&&n.value.value instanceof iR)o(n.value.value.sections);else if("source"===n.value.kind||"composite"===n.value.kind){let t=i=>{a||(i instanceof iW&&iZ(i.value)===t8?o(i.value.sections):i instanceof i3?o(i.sections):i.eachChild(t))},i=n.value;i._styleExpression&&t(i._styleExpression.expression)}return a}},dO={get paint(){return C||=new a4({"background-color":new a0(tY.paint_background["background-color"],"background-color"),"background-pattern":new a3(tY.paint_background["background-pattern"],"background-pattern"),"background-opacity":new a0(tY.paint_background["background-opacity"],"background-opacity")})}},dB=class extends a7{constructor(t,i){super(t,dO,i)}};function dN(t){let i=[],n=t.id;return void 0===n&&i.push(new tK(`layers.${n}`,null,'missing required property "id"')),void 0===t.render&&i.push(new tK(`layers.${n}`,null,'missing required method "render"')),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&i.push(new tK(`layers.${n}`,null,'property "renderingMode" must be either "2d" or "3d"')),i}var dV=class extends a7{constructor(t,i){super(t,{},i),this.onAdd=t=>{this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},this.onRemove=t=>{this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},this.implementation=t}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function d$(t,i){if("custom"===t.type)return new dV(t,i);switch(t.type){case"background":return new dB(t,i);case"circle":return new sQ(t,i);case"color-relief":return new lo(t,i);case"fill":return new lY(t,i);case"fill-extrusion":return new cb(t,i);case"heatmap":return new s9(t,i);case"hillshade":return new lt(t,i);case"line":return new cP(t,i);case"raster":return new oe(t,i);case"symbol":return new dF(t,i)}}var dj=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){this._triggered||(this._triggered=!0,this._channel?.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}};let dU={once:!0};var dq=class{constructor(t,i){this.target=t,this.mapId=i,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dj(()=>this.process()),this.subscription=ty(this.target,"message",t=>this.receive(t),!1),this.globalScope=tu(self)?t:window}registerMessageHandler(t,i){this.messageHandlers[t]=i}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,i){return new Promise((n,r)=>{let a=Math.round(1e18*Math.random()).toString(36).substring(0,10),o=i?ty(i.signal,"abort",()=>{o?.unsubscribe(),delete this.resolveRejects[a];let n={id:a,type:"<cancel>",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(n),r(new tM(i.signal.reason))},dU):null;this.resolveRejects[a]={resolve:t=>{o?.unsubscribe(),n(t)},reject:t=>{o?.unsubscribe(),r(t)}};let s=[],l={...t,id:a,sourceMapId:this.mapId,origin:location.origin,data:ak(t.data,s)};this.target.postMessage(l,{transfer:s})})}receive(t){let i=t.data,n=i.id,r=["file://","resource://android","null"],a=[i.origin,location.origin],o=i.origin===location.origin,s=a.some(t=>r.includes(t));if((o||s)&&!(i.targetMapId&&this.mapId!==i.targetMapId)){if("<cancel>"===i.type){delete this.tasks[n];let t=this.abortControllers[n];delete this.abortControllers[n],t&&t.abort();return}if(tu(self)||i.mustQueue){this.tasks[n]=i,this.taskQueue.push(n),this.invoker.trigger();return}this.processTask(n,i)}}process(){if(0===this.taskQueue.length)return;let t=this.taskQueue.shift(),i=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),i&&this.processTask(t,i)}async processTask(t,i){if("<response>"===i.type){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;i.error?n.reject(eB(aA(i.error))):n.resolve(aA(i.data));return}if(!this.messageHandlers[i.type])return void this.completeTask(t,null,null);let n=aA(i.data),r=new AbortController;this.abortControllers[t]=r;try{let a=await this.messageHandlers[i.type](i.sourceMapId,n,r);this.completeTask(t,null,a)}catch(i){this.completeTask(t,eB(i))}}completeTask(t,i,n){let r=[];delete this.abortControllers[t];let a={id:t,type:"<response>",sourceMapId:this.mapId,origin:location.origin,error:i?ak(i):null,data:ak(n,r)};this.target.postMessage(a,{transfer:r})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function dG(t,i){let{x:n,y:r}=cs.fromLngLat(i);return!(t<0||t>25||r<0||r>=1||n<0||n>=1)}var dH=class{constructor(t,i,n){if(!function(t,i,n){return!(t<0||t>25||n<0||n>=2**t||i<0||i>=2**t)}(t,i,n))throw Error(`x=${i}, y=${n}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=i,this.y=n,this.key=dW(0,t,t,i,n)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,i,n){var r,a,o;let s,l,c=(r=this.x,a=this.y,o=this.z,s=dK(256*r,256*(a=2**o-a-1),o),l=dK((r+1)*256,(a+1)*256,o),`${s[0]},${s[1]},${l[0]},${l[1]}`),d=function(t,i,n){let r="";for(let a=t;a>0;a--){let t=1<<a-1;r+=(i&t?1:0)+(n&t?2:0)}return r}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===n?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,i>1?"@2x":"").replace(/{quadkey}/g,d).replace(/{bbox-epsg-3857}/g,c)}isChildOf(t){let i=this.z-t.z;return i>0&&t.x===this.x>>i&&t.y===this.y>>i}getTilePoint(t){let i=2**this.z;return new R((t.x*i-this.x)*8192,(t.y*i-this.y)*8192)}toString(){return`${this.z}/${this.x}/${this.y}`}},dZ=class{constructor(t,i){this.wrap=t,this.canonical=i,this.key=dW(t,i.z,i.z,i.x,i.y)}},dX=class t{constructor(t,i,n,r,a){if(this.terrainRttPosMatrix32f=null,t<n)throw Error(`overscaledZ should be >= z; overscaledZ = ${t}; z = ${n}`);this.overscaledZ=t,this.wrap=i,this.canonical=new dH(n,+r,+a),this.key=dW(i,t,n,r,a)}clone(){return new t(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(i){if(i>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${i}; overscaledZ = ${this.overscaledZ}`);let n=this.canonical.z-i;return i>this.canonical.z?new t(i,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new t(i,this.wrap,i,this.canonical.x>>n,this.canonical.y>>n)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,i){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let n=this.canonical.z-t;return t>this.canonical.z?dW(this.wrap*i,t,this.canonical.z,this.canonical.x,this.canonical.y):dW(this.wrap*i,t,t,this.canonical.x>>n,this.canonical.y>>n)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(0===t.overscaledZ)return this.overscaledZ>0;let i=this.canonical.z-t.canonical.z;return!(i<0)&&t.canonical.x===this.canonical.x>>i&&t.canonical.y===this.canonical.y>>i}children(i){if(this.overscaledZ>=i)return[new t(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let n=this.canonical.z+1,r=2*this.canonical.x,a=2*this.canonical.y;return[new t(n,this.wrap,n,r,a),new t(n,this.wrap,n,r+1,a),new t(n,this.wrap,n,r,a+1),new t(n,this.wrap,n,r+1,a+1)]}isLessThan(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}wrapped(){return new t(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(i){return new t(this.overscaledZ,i,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return 2**(this.overscaledZ-this.canonical.z)}toUnwrapped(){return new dZ(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(t){return this.canonical.getTilePoint(new cs(t.x-this.wrap,t.y))}normalizeCoordinates(i,n,r=8192){if(i>=0&&i<r&&n>=0&&n<r)return{tileID:this,x:i,y:n};let a=Math.floor(i/r),o=Math.floor(n/r),s=this.canonical.z,l=1<<s,c=this.canonical.y+o;if(c<0||c>=l)return null;let d=this.canonical.x+a,h=this.wrap;return d<0?(h-=Math.ceil(-d/l),d=(d%l+l)%l):d>=l&&(h+=Math.floor(d/l),d%=l),{tileID:new t(this.overscaledZ,h,s,d,c),x:i-a*r,y:n-o*r}}};function dW(t,i,n,r,a){(t*=2)<0&&(t=-1*t-1);let o=1<<n;return(o*o*t+o*a+r).toString(36)+n.toString(36)+i.toString(36)}let dY=6378137*Math.PI;function dK(t,i,n){let r=2*dY/256/2**n;return[t*r-dY,i*r-dY]}function dJ(t,i){let n=Math.abs(2*t.wrap)-(t.wrap<0),r=Math.abs(2*i.wrap)-(i.wrap<0);return t.overscaledZ-i.overscaledZ||r-n||i.canonical.y-t.canonical.y||i.canonical.x-t.canonical.x}aw("CanonicalTileID",dH),aw("OverscaledTileID",dX,{omit:["terrainRttPosMatrix32f"]});let dQ="_geojsonTileLayer";var d0=class{constructor(t){this._stringToNumber={},this._numberToString=[];for(let i=0;i<t.length;i++){let n=t[i];this._stringToNumber[n]=i,this._numberToString[i]=n}}encode(t){return this._stringToNumber[t]}decode(t){if(t>=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},d2=class{constructor(t,i,n,r,a){for(let a in this.type="Feature",this._vectorTileFeature=t,this._x=n,this._y=r,this._z=i,t.properties)"string"==typeof t.properties[a]&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=a}projectPoint(t,i,n,r){return[(t.x+i)*360/r-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+n)*2/r)*Math.PI))-90]}projectLine(t,i,n,r){return t.map(t=>this.projectPoint(t,i,n,r))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,i=t.extent*2**this._z,n=t.extent*this._x,r=t.extent*this._y,a=t.loadGeometry();switch(t.type){case 1:{let t=[];for(let i of a)t.push(i[0]);let o=this.projectLine(t,n,r,i);this._geometry=1===t.length?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let t=a.map(t=>this.projectLine(t,n,r,i));this._geometry=1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t};break}case 3:{let t=l4(a),o=[];for(let a of t)o.push(a.map(t=>this.projectLine(t,n,r,i)));this._geometry=1===o.length?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let i in this)"_geometry"!==i&&"_vectorTileFeature"!==i&&"_x"!==i&&"_y"!==i&&"_z"!==i&&(t[i]=this[i]);return t}},d1=class{constructor(t,i,n){this._name=t,this.dataBuffer=i,"number"==typeof n?this._size=n:(this.nullabilityBuffer=n,this._size=n.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){return this.nullabilityBuffer?.get(t)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},d3=class extends d1{},d5=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},d4=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},d6=class extends d1{constructor(t,i,n,r){super(t,i,r),this.delta=n}},d8=class extends d6{constructor(t,i,n,r,a){super(t,a?Int32Array.of(i):Uint32Array.of(i),n,r)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},d7=class extends d1{constructor(t,i,n,r){super(t,r?Int32Array.of(i):Uint32Array.of(i),n)}getValueFromBuffer(t){return this.dataBuffer[0]}},d9=class{constructor(t,i,n,r,a=4096){if(this._name=t,this._geometryVector=i,this._idVector=n,this._propertyVectors=r,this._extent=a,0===t.length)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors??[]}getPropertyVector(t){return this.propertyVectorsMap||=new Map(this.propertyVectors.map(t=>[t.name,t])),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],i=this.geometryVector.getGeometries();for(let n=0;n<this.numFeatures;n++){let r;if(this.idVector){let t=this.idVector.getValue(n);null!==t&&(r=this.containsMaxSafeIntegerValues(this.idVector)?Number(t):t)}let a={coordinates:i[n],type:this.geometryVector.geometryType(n)},o={};for(let t of this.propertyVectors){if(!t)continue;let i=t.name,r=t.getValue(n);null!==r&&(o[i]=r)}t.push({id:r,geometry:a,properties:o})}return t}containsMaxSafeIntegerValues(t){return t instanceof d5||t instanceof d7||t instanceof d8||t instanceof d4}},he,ht,hi,hn,hr=class{constructor(t){this.value=t}get(){return this.value}set(t){this.value=t}increment(){return this.value++}add(t){this.value+=t}};(uh=hn||={}).NONE="NONE",uh.DELTA="DELTA",uh.COMPONENTWISE_DELTA="COMPONENTWISE_DELTA",uh.RLE="RLE",uh.MORTON="MORTON",(uu=ux||={}).NONE="NONE",uu.FAST_PFOR="FAST_PFOR",uu.VARINT="VARINT";let ha=new Uint32Array(33);ha[0]=0;for(let t=1;t<=32;t++)ha[t]=32===t?0xffffffff:0xffffffff>>>32-t;let ho=function(){var t;if(!Number.isFinite(65536))return 65536;let i=(t=Math.floor(65536))-t%256;return 0===i?256:i}(),hs=3*ho/256+ho|0;function hl(){let t=new Uint8Array(hs);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function hc(t,i,n){let r=new Uint32Array(n),a=0,o=i.get();for(let i=0;i<r.length;i++){let i=t[o++],n=127&i;if(i<128||(n|=(127&(i=t[o++]))<<7,i<128)||(n|=(127&(i=t[o++]))<<14,i<128)||(n|=(127&(i=t[o++]))<<21,i<128)){r[a++]=n;continue}n|=(15&(i=t[o++]))<<28,r[a++]=n}return i.set(o),r}function hd(t,i,n){let r=new BigUint64Array(n);for(let n=0;n<r.length;n++)r[n]=function(t,i){let n=0n,r=0,a=i.get();for(;a<t.length;){let i=t[a++];if(n|=BigInt(127&i)<<BigInt(r),!(128&i))break;if((r+=7)>=64)throw Error("Varint too long")}return i.set(a),n}(t,i);return r}function hh(t){return t>>>1^-(1&t)}function hu(t){return t>>1n^-(1n&t)}function hp(t){return t%2==1?-((t+1)/2):t/2}function hm(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=t[r]}let r=new Uint32Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];r.fill(s,a,a+o),a+=o}return r}function hf(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=Number(t[r])}let r=new BigUint64Array(n),a=0;for(let n=0;n<i;n++){let o=Number(t[n]),s=t[n+i];r.fill(s,a,a+o),a+=o}return r}function hg(t,i,n){let r=new Float64Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];r.fill(s,a,a+o),a+=o}return r}function h_(t){let i=new Int32Array(t.length);i[0]=hh(t[0]);let n=t.length/4*4,r=1;if(n>=4)for(;r<n-4;r+=4){let n=t[r],a=t[r+1],o=t[r+2],s=t[r+3];i[r]=hh(n)+i[r-1],i[r+1]=hh(a)+i[r],i[r+2]=hh(o)+i[r+1],i[r+3]=hh(s)+i[r+2]}for(;r!==t.length;++r)i[r]=hh(t[r])+i[r-1];return i}function hv(t){let i=new BigInt64Array(t.length);i[0]=hu(t[0]);let n=t.length/4*4,r=1;if(n>=4)for(;r<n-4;r+=4){let n=t[r],a=t[r+1],o=t[r+2],s=t[r+3];i[r]=hu(n)+i[r-1],i[r+1]=hu(a)+i[r],i[r+2]=hu(o)+i[r+1],i[r+3]=hu(s)+i[r+2]}for(;r!==i.length;++r)i[r]=hu(t[r])+i[r-1];return i}function hy(t){let i=t.length/4*4,n=1;if(i>=4)for(let r=t[0];n<i-4;n+=4)r=t[n]+=r,r=t[n+1]+=r,r=t[n+2]+=r,r=t[n+3]+=r;for(;n!==t.length;)t[n]+=t[n-1],++n}function hb(t,i,n,r){if(t.length<2)return new Int32Array(t);let a=new Int32Array(t.length),o=hh(t[0]),s=hh(t[1]);a[0]=hx(Math.round(o*i),n,r),a[1]=hx(Math.round(s*i),n,r);let l=t.length/16,c=2;if(l>=4)for(;c<l-4;c+=4){let l=t[c],d=t[c+1],h=hh(l)+o,u=hh(d)+s;a[c]=hx(Math.round(h*i),n,r),a[c+1]=hx(Math.round(u*i),n,r);let p=t[c+2],m=t[c+3];o=hh(p)+h,s=hh(m)+u,a[c+2]=hx(Math.round(o*i),n,r),a[c+3]=hx(Math.round(s*i),n,r)}for(;c!==t.length;c+=2)o+=hh(t[c]),s+=hh(t[c+1]),a[c]=hx(Math.round(o*i),n,r),a[c+1]=hx(Math.round(s*i),n,r);return a}function hx(t,i,n){return Math.min(n,Math.max(i,t))}function hw(t){let i=new Uint32Array(t.length);i[0]=hh(t[0])>>>0;for(let n=1;n<t.length;n++)i[n]=i[n-1]+hh(t[n])>>>0;return i}function hC(t){let i=new BigUint64Array(t.length);i[0]=BigInt.asUintN(64,hu(t[0]));for(let n=1;n<t.length;n++)i[n]=BigInt.asUintN(64,i[n-1]+hu(t[n]));return i}(up=uw||={}).PRESENT="PRESENT",up.DATA="DATA",up.OFFSET="OFFSET",up.LENGTH="LENGTH",(um=uC||={}).NONE="NONE",um.SINGLE="SINGLE",um.SHARED="SHARED",um.VERTEX="VERTEX",um.MORTON="MORTON",um.FSST="FSST",(uf=uE||={}).VERTEX="VERTEX",uf.INDEX="INDEX",uf.STRING="STRING",uf.KEY="KEY",(ug=uT||={}).VAR_BINARY="VAR_BINARY",ug.GEOMETRIES="GEOMETRIES",ug.PARTS="PARTS",ug.RINGS="RINGS",ug.TRIANGLES="TRIANGLES",ug.SYMBOL="SYMBOL",ug.DICTIONARY="DICTIONARY";let hE=[uw.PRESENT,uw.DATA,uw.OFFSET,uw.LENGTH],hT=[hn.NONE,hn.DELTA,hn.COMPONENTWISE_DELTA,hn.RLE,hn.MORTON],hk=[ux.NONE,ux.FAST_PFOR,ux.VARINT],hA=[uC.NONE,uC.SINGLE,uC.SHARED,uC.VERTEX,uC.MORTON,uC.FSST],hI=[uE.VERTEX,uE.INDEX,uE.STRING,uE.KEY],hS=[uT.VAR_BINARY,uT.GEOMETRIES,uT.PARTS,uT.RINGS,uT.TRIANGLES,uT.SYMBOL,uT.DICTIONARY];function hD(t,i){var n,r;let a,o,s=function(t,i){let n=t[i.get()],r=hE[n>>4],a={};switch(r){case uw.DATA:a={dictionaryType:hA[15&n]};break;case uw.OFFSET:a={offsetType:hI[15&n]};break;case uw.LENGTH:a={lengthType:hS[15&n]}}i.increment();let o=t[i.get()],s=hT[o>>5],l=hT[o>>2&7],c=hk[3&o];i.increment();let d=hc(t,i,2),h=d[0];return{physicalStreamType:r,logicalStreamType:a,logicalLevelTechnique1:s,logicalLevelTechnique2:l,physicalLevelTechnique:c,numValues:h,byteLength:d[1],decompressedCount:h}}(t,i);return s.logicalLevelTechnique1===hn.MORTON?(n=s,a=hc(t,i,2),{physicalStreamType:n.physicalStreamType,logicalStreamType:n.logicalStreamType,logicalLevelTechnique1:n.logicalLevelTechnique1,logicalLevelTechnique2:n.logicalLevelTechnique2,physicalLevelTechnique:n.physicalLevelTechnique,numValues:n.numValues,byteLength:n.byteLength,decompressedCount:n.decompressedCount,numBits:a[0],coordinateShift:a[1]}):(hn.RLE===s.logicalLevelTechnique1||hn.RLE===s.logicalLevelTechnique2)&&ux.NONE!==s.physicalLevelTechnique?(r=s,o=hc(t,i,2),{physicalStreamType:r.physicalStreamType,logicalStreamType:r.logicalStreamType,logicalLevelTechnique1:r.logicalLevelTechnique1,logicalLevelTechnique2:r.logicalLevelTechnique2,physicalLevelTechnique:r.physicalLevelTechnique,numValues:r.numValues,byteLength:r.byteLength,decompressedCount:o[1],runs:o[0],numRleValues:o[1]}):s}(u_=uk||={})[u_.FLAT=0]="FLAT",u_[u_.CONST=1]="CONST",u_[u_.SEQUENCE=2]="SEQUENCE",u_[u_.DICTIONARY=3]="DICTIONARY",u_[u_.FSST_DICTIONARY=4]="FSST_DICTIONARY";var hP=class{constructor(t,i){this.values=t,this._size=i}get(t){let i=Math.floor(t/8);return(this.values[i]>>t%8&1)==1}set(t,i){let n=Math.floor(t/8);this.values[n]=this.values[n]|!!i<<t%8}getInt(t){let i=Math.floor(t/8);return this.values[i]>>t%8&1}size(){return this._size}getBuffer(){return this.values}};function hM(t,i,n){if(!i)return t;let r=i.size(),a=new t.constructor(r),o=0;for(let s=0;s<r;s++)a[s]=i.get(s)?t[o++]:n;return a}function hz(t,i,n){for(let r=0;r<t;r++){let t=hD(i,n);n.add(t.byteLength)}}function hL(t,i,n,r,a){let o=function(t,i,n,r){let a=new Uint8Array(i),o=0,s=r.get()+n;for(;o<i&&!(r.get()>=s);){let n=t[r.increment()];if(n<=127){let s=n+3,l=t[r.increment()],c=Math.min(o+s,i);a.fill(l,o,c),o=c}else{let s=256-n;for(let n=0;n<s&&o<i;n++)a[o++]=t[r.increment()]}}return r.set(s),a}(t,Math.ceil(i/8),n,r);return a?function(t,i,n){if(!n)return t;let r=n.size(),a=new hP(t,i),o=new hP(new Uint8Array(Math.ceil(r/8)),r),s=0;for(let t=0;t<r;t++){let i=!!n.get(t)&&a.get(s++);o.set(t,i)}return o.getBuffer()}(o,i,a):o}function hR(t,i,n,r){let a=i.get(),o=a+n*Float32Array.BYTES_PER_ELEMENT,s=new Float32Array(new Uint8Array(t.subarray(a,o)).buffer);return i.set(o),r?hM(s,r,0):s}function hF(t,i,n,r){let a=i.get(),o=a+n*Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(new Uint8Array(t.subarray(a,o)).buffer);return i.set(o),r?hM(s,r,0):s}let hO=new TextDecoder;function hB(t,i,n){return n-i>=12?hO.decode(t.subarray(i,n)):function(t,i,n){let r="",a=i;for(;a<n;){let i,o,s,l=t[a],c=null,d=l>239?4:l>223?3:l>191?2:1;if(a+d>n)break;1===d?l<128&&(c=l):2===d?(192&(i=t[a+1]))==128&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===d?(i=t[a+1],o=t[a+2],(192&i)==128&&(192&o)==128&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===d&&(i=t[a+1],o=t[a+2],s=t[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,d=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),a+=d}return r}(t,i,n)}function hN(t,i,n,r,a){let o;var s=hj(t,i,n),l=n,c=r,d=a;switch(l.logicalLevelTechnique1){case hn.DELTA:if(l.logicalLevelTechnique2===hn.RLE){if(!d)return function(t,i,n){let r=new Int32Array(n),a=0,o=0;for(let n=0;n<i;n++){let s=t[n],l=hh(t[n+i]);for(let t=0;t<s;t++)o+=l,r[a++]=o}return r}(s,l.runs,l.numRleValues);o=h_(s=hm(s,l.runs,l.numRleValues))}else o=h_(s);break;case hn.RLE:o=function(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=t[r]}let r=new Int32Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];s=hh(s),r.fill(s,a,a+o),a+=o}return r}(s,l.runs,l.numRleValues);break;case hn.MORTON:hy(s),o=new Int32Array(s);break;case hn.COMPONENTWISE_DELTA:if(c&&!d)return hb(s,c.scale,c.min,c.max);o=function(t){if(t.length<2)return new Int32Array(t);let i=new Int32Array(t.length);i[0]=hh(t[0]),i[1]=hh(t[1]);let n=t.length/4*4,r=2;if(n>=4)for(;r<n-4;r+=4){let n=t[r],a=t[r+1],o=t[r+2],s=t[r+3];i[r]=hh(n)+i[r-2],i[r+1]=hh(a)+i[r-1],i[r+2]=hh(o)+i[r],i[r+3]=hh(s)+i[r+1]}for(;r!==t.length;r+=2)i[r]=hh(t[r])+i[r-2],i[r+1]=hh(t[r+1])+i[r-1];return i}(s);break;case hn.NONE:o=function(t){let i=new Int32Array(t.length);for(let n=0;n<t.length;n++)i[n]=hh(t[n]);return i}(s);break;default:throw Error(`The specified Logical level technique is not supported: ${l.logicalLevelTechnique1}`)}return d?hM(o,d,0):o}function hV(t,i,n,r,a){return function(t,i,n,r){let a;switch(i.logicalLevelTechnique1){case hn.DELTA:a=i.logicalLevelTechnique2===hn.RLE?hw(hm(t,i.runs,i.numRleValues)):hw(t);break;case hn.RLE:a=hm(t,i.runs,i.numRleValues);break;case hn.MORTON:hy(t),a=t;break;case hn.COMPONENTWISE_DELTA:var o;a=n&&!r?(o=n.scale,new Uint32Array(hb(t,o,n.min,n.max))):function(t){if(t.length<2)return new Uint32Array(t);let i=new Uint32Array(t.length);i[0]=hh(t[0])>>>0,i[1]=hh(t[1])>>>0;for(let n=2;n<t.length;n+=2)i[n]=i[n-2]+hh(t[n])>>>0,i[n+1]=i[n-1]+hh(t[n+1])>>>0;return i}(t);break;case hn.NONE:a=t;break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return r?hM(a,r,0):a}(hj(t,i,n),n,r,a)}function h$(t,i,n){return function(t,i){if(i.logicalLevelTechnique1===hn.DELTA&&i.logicalLevelTechnique2===hn.NONE){let i=new Int32Array(t.length+1);i[0]=0,i[1]=hh(t[0]);let n=i[1];for(let r=2;r!==i.length;++r)n+=hh(t[r-1]),i[r]=i[r-1]+n;return new Uint32Array(i)}if(i.logicalLevelTechnique1===hn.RLE&&i.logicalLevelTechnique2===hn.NONE)return function(t,i,n){let r=new Uint32Array(n+1);r[0]=0;let a=1,o=r[0];for(let n=0;n<i;n++){let s=t[n],l=t[n+i];for(let t=a;t<a+s;t++)r[t]=l+o,o=r[t];a+=s}return r}(t,i.runs,i.numRleValues);if(i.logicalLevelTechnique1===hn.NONE&&i.logicalLevelTechnique2===hn.NONE){let n=0;for(let i=0;i<t.length;i++)t[i]+=n,n=t[i];let r=new Uint32Array(i.numValues+1);return r[0]=0,r.set(t,1),r}if(i.logicalLevelTechnique1===hn.DELTA&&i.logicalLevelTechnique2===hn.RLE){let n=function(t,i,n){let r=new Int32Array(n+1);r[0]=0;let a=1,o=r[0];for(let n=0;n<i;n++){let s=t[n],l=t[n+i];l=hh(l);for(let t=a;t<a+s;t++)r[t]=l+o,o=r[t];a+=s}return r}(t,i.runs,i.numRleValues);return hy(n),new Uint32Array(n)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}(hj(t,i,n),n)}function hj(t,i,n){let r=n.physicalLevelTechnique;switch(r){case ux.FAST_PFOR:var a,o;return a=n.numValues,function(t,i,n,r,a){let o=r.get();if(3&n)throw Error(`FastPFOR: invalid encodedByteLength=${n} at offset=${o} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=n>>>2,l=function(t,i){if(i<=t.encodedWords.length)return t.encodedWords;let n=new Uint32Array(Math.max(16,2*i));return t.encodedWords=n,n}(a,s);!function(t,i,n,r){if(i<0||n<0||i+n>t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${i}, byteLength=${n}, bytes.length=${t.length})`);let a=Math.floor(n/4),o=n%4!=0,s=o?a+1:a;if(r.length<s)throw RangeError(`decodeBigEndianInt32sInto: out.length=${r.length} < ${s}`);if(a>0){let n=t.byteOffset+i;if(3&n)for(let n=0;n<a;n++){let a=i+4*n;r[n]=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]}else{let i=new Uint32Array(t.buffer,n,a);for(let t=0;t<a;t++)r[t]=0|function(t){let i=t>>>0;return((255&i)<<24|(65280&i)<<8|i>>>8&65280|i>>>24&255)>>>0}(i[t])}}if(o){let o=i+4*a,s=n-4*a,l=0;for(let i=0;i<s;i++)l|=t[o+i]<<24-8*i;r[a]=0|l}}(t,o,n,l);let c=function(t,i,n){let r=0,a=0,o=new Uint32Array(i),s=n??hl();if(t.length>0){let i=0|t[r];if(r=r+1|0,255&i)throw Error(`FastPFOR decode: invalid alignedLength=${i} (expected multiple of 256)`);if(a+i>o.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${a}, alignedLength=${i}, out.length=${o.length})`);r=function(t,i,n,r,a,o){let s=r+(a-a%256),l=r,c=n;for(;l!==s;){let n=Math.min(ho,s-l);c=function(t,i,n,r,a,o){let s=0|n,l=0|t[s];if(l<=0||s+l>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${l} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let c=s+l|0,d=t[c]>>>0,h=d+3>>>2,u=c+1,p=u+h;if(p>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${d} (metaInts=${h}, pageStart=${s}, packedEnd=${c}, byteContainerStart=${u}) causes bitmapPos=${p} out of bounds (encoded.length=${t.length})`);let m=function(t,i,n,r){r.byteContainer.length<n&&(r.byteContainer=new Uint8Array(2*n),r.byteContainerI32=void 0);let a=r.byteContainer,o=n>>>2;if(3&a.byteOffset)for(let n=0;n<o;n=n+1|0){let r=0|t[i+n|0],o=n<<2;a[o]=255&r,a[o+1|0]=r>>>8&255,a[o+2|0]=r>>>16&255,a[o+3|0]=r>>>24&255}else{let n=r.byteContainerI32;(!n||n.buffer!==a.buffer||n.byteOffset!==a.byteOffset||n.length<o)&&(n=r.byteContainerI32=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>>2)),n.set(t.subarray(i,i+o))}let s=3&n;if(s>0){let n=0|t[i+o|0],r=o<<2;for(let t=0;t<s;t=t+1|0)a[r+t|0]=n>>>(t<<3)&255}return a}(t,u,d,o),f=function(t,i,n){let r=0|t[i++],a=n.dataToBePacked;for(let o=2;o<=32;o=o+1|0){if(!(r>>>o-1&1))continue;if(i>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${o}, streamWordIndex=${i}, needWords=1, availableWords=${t.length-i}, encodedWords=${t.length})`);let s=t[i++]>>>0,l=function(t){var i;return(i=t+31)-i%32}(s),c=s*o+31>>>5;if(i+c>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${o}, size=${s}, streamWordIndex=${i}, needWords=${c}, availableWords=${t.length-i}, encodedWords=${t.length})`);let d=a[o];(!d||d.length<l)&&(d=a[o]=new Uint32Array(l));let h=0;for(;h<s;h=h+32|0)(function(t,i,n,r,a){switch(a){case 2:let o,s,l;o=r,s=t[i]>>>0,l=t[i+1]>>>0,n[o++]=s>>>0&3,n[o++]=s>>>2&3,n[o++]=s>>>4&3,n[o++]=s>>>6&3,n[o++]=s>>>8&3,n[o++]=s>>>10&3,n[o++]=s>>>12&3,n[o++]=s>>>14&3,n[o++]=s>>>16&3,n[o++]=s>>>18&3,n[o++]=s>>>20&3,n[o++]=s>>>22&3,n[o++]=s>>>24&3,n[o++]=s>>>26&3,n[o++]=s>>>28&3,n[o++]=s>>>30&3,n[o++]=l>>>0&3,n[o++]=l>>>2&3,n[o++]=l>>>4&3,n[o++]=l>>>6&3,n[o++]=l>>>8&3,n[o++]=l>>>10&3,n[o++]=l>>>12&3,n[o++]=l>>>14&3,n[o++]=l>>>16&3,n[o++]=l>>>18&3,n[o++]=l>>>20&3,n[o++]=l>>>22&3,n[o++]=l>>>24&3,n[o++]=l>>>26&3,n[o++]=l>>>28&3,n[o]=l>>>30&3;return;case 3:let c,d,h,u;c=r,d=t[i]>>>0,h=t[i+1]>>>0,u=t[i+2]>>>0,n[c++]=d>>>0&7,n[c++]=d>>>3&7,n[c++]=d>>>6&7,n[c++]=d>>>9&7,n[c++]=d>>>12&7,n[c++]=d>>>15&7,n[c++]=d>>>18&7,n[c++]=d>>>21&7,n[c++]=d>>>24&7,n[c++]=d>>>27&7,n[c++]=(d>>>30|(1&h)<<2)&7,n[c++]=h>>>1&7,n[c++]=h>>>4&7,n[c++]=h>>>7&7,n[c++]=h>>>10&7,n[c++]=h>>>13&7,n[c++]=h>>>16&7,n[c++]=h>>>19&7,n[c++]=h>>>22&7,n[c++]=h>>>25&7,n[c++]=h>>>28&7,n[c++]=(h>>>31|(3&u)<<1)&7,n[c++]=u>>>2&7,n[c++]=u>>>5&7,n[c++]=u>>>8&7,n[c++]=u>>>11&7,n[c++]=u>>>14&7,n[c++]=u>>>17&7,n[c++]=u>>>20&7,n[c++]=u>>>23&7,n[c++]=u>>>26&7,n[c]=u>>>29&7;return;case 4:let p,m,f,g,_;p=r,m=t[i]>>>0,f=t[i+1]>>>0,g=t[i+2]>>>0,_=t[i+3]>>>0,n[p++]=m>>>0&15,n[p++]=m>>>4&15,n[p++]=m>>>8&15,n[p++]=m>>>12&15,n[p++]=m>>>16&15,n[p++]=m>>>20&15,n[p++]=m>>>24&15,n[p++]=m>>>28&15,n[p++]=f>>>0&15,n[p++]=f>>>4&15,n[p++]=f>>>8&15,n[p++]=f>>>12&15,n[p++]=f>>>16&15,n[p++]=f>>>20&15,n[p++]=f>>>24&15,n[p++]=f>>>28&15,n[p++]=g>>>0&15,n[p++]=g>>>4&15,n[p++]=g>>>8&15,n[p++]=g>>>12&15,n[p++]=g>>>16&15,n[p++]=g>>>20&15,n[p++]=g>>>24&15,n[p++]=g>>>28&15,n[p++]=_>>>0&15,n[p++]=_>>>4&15,n[p++]=_>>>8&15,n[p++]=_>>>12&15,n[p++]=_>>>16&15,n[p++]=_>>>20&15,n[p++]=_>>>24&15,n[p]=_>>>28&15;return;case 5:let v,y,b,x,w,C;v=r,y=t[i]>>>0,b=t[i+1]>>>0,x=t[i+2]>>>0,w=t[i+3]>>>0,C=t[i+4]>>>0,n[v++]=y>>>0&31,n[v++]=y>>>5&31,n[v++]=y>>>10&31,n[v++]=y>>>15&31,n[v++]=y>>>20&31,n[v++]=y>>>25&31,n[v++]=(y>>>30|(7&b)<<2)&31,n[v++]=b>>>3&31,n[v++]=b>>>8&31,n[v++]=b>>>13&31,n[v++]=b>>>18&31,n[v++]=b>>>23&31,n[v++]=(b>>>28|(1&x)<<4)&31,n[v++]=x>>>1&31,n[v++]=x>>>6&31,n[v++]=x>>>11&31,n[v++]=x>>>16&31,n[v++]=x>>>21&31,n[v++]=x>>>26&31,n[v++]=(x>>>31|(15&w)<<1)&31,n[v++]=w>>>4&31,n[v++]=w>>>9&31,n[v++]=w>>>14&31,n[v++]=w>>>19&31,n[v++]=w>>>24&31,n[v++]=(w>>>29|(3&C)<<3)&31,n[v++]=C>>>2&31,n[v++]=C>>>7&31,n[v++]=C>>>12&31,n[v++]=C>>>17&31,n[v++]=C>>>22&31,n[v]=C>>>27&31;return;case 6:let E,T,k,A,I,S,D;E=r,T=t[i]>>>0,k=t[i+1]>>>0,A=t[i+2]>>>0,I=t[i+3]>>>0,S=t[i+4]>>>0,D=t[i+5]>>>0,n[E++]=T>>>0&63,n[E++]=T>>>6&63,n[E++]=T>>>12&63,n[E++]=T>>>18&63,n[E++]=T>>>24&63,n[E++]=(T>>>30|(15&k)<<2)&63,n[E++]=k>>>4&63,n[E++]=k>>>10&63,n[E++]=k>>>16&63,n[E++]=k>>>22&63,n[E++]=(k>>>28|(3&A)<<4)&63,n[E++]=A>>>2&63,n[E++]=A>>>8&63,n[E++]=A>>>14&63,n[E++]=A>>>20&63,n[E++]=A>>>26&63,n[E++]=I>>>0&63,n[E++]=I>>>6&63,n[E++]=I>>>12&63,n[E++]=I>>>18&63,n[E++]=I>>>24&63,n[E++]=(I>>>30|(15&S)<<2)&63,n[E++]=S>>>4&63,n[E++]=S>>>10&63,n[E++]=S>>>16&63,n[E++]=S>>>22&63,n[E++]=(S>>>28|(3&D)<<4)&63,n[E++]=D>>>2&63,n[E++]=D>>>8&63,n[E++]=D>>>14&63,n[E++]=D>>>20&63,n[E]=D>>>26&63;return;case 7:let P,M,z,L,R,F,O,B;P=r,M=t[i]>>>0,z=t[i+1]>>>0,L=t[i+2]>>>0,R=t[i+3]>>>0,F=t[i+4]>>>0,O=t[i+5]>>>0,B=t[i+6]>>>0,n[P++]=M>>>0&127,n[P++]=M>>>7&127,n[P++]=M>>>14&127,n[P++]=M>>>21&127,n[P++]=(M>>>28|(7&z)<<4)&127,n[P++]=z>>>3&127,n[P++]=z>>>10&127,n[P++]=z>>>17&127,n[P++]=z>>>24&127,n[P++]=(z>>>31|(63&L)<<1)&127,n[P++]=L>>>6&127,n[P++]=L>>>13&127,n[P++]=L>>>20&127,n[P++]=(L>>>27|(3&R)<<5)&127,n[P++]=R>>>2&127,n[P++]=R>>>9&127,n[P++]=R>>>16&127,n[P++]=R>>>23&127,n[P++]=(R>>>30|(31&F)<<2)&127,n[P++]=F>>>5&127,n[P++]=F>>>12&127,n[P++]=F>>>19&127,n[P++]=(F>>>26|(1&O)<<6)&127,n[P++]=O>>>1&127,n[P++]=O>>>8&127,n[P++]=O>>>15&127,n[P++]=O>>>22&127,n[P++]=(O>>>29|(15&B)<<3)&127,n[P++]=B>>>4&127,n[P++]=B>>>11&127,n[P++]=B>>>18&127,n[P]=B>>>25&127;return;case 8:let N,V,$,j,U,q,G,H,Z;N=r,V=t[i]>>>0,$=t[i+1]>>>0,j=t[i+2]>>>0,U=t[i+3]>>>0,q=t[i+4]>>>0,G=t[i+5]>>>0,H=t[i+6]>>>0,Z=t[i+7]>>>0,n[N++]=V>>>0&255,n[N++]=V>>>8&255,n[N++]=V>>>16&255,n[N++]=V>>>24&255,n[N++]=$>>>0&255,n[N++]=$>>>8&255,n[N++]=$>>>16&255,n[N++]=$>>>24&255,n[N++]=j>>>0&255,n[N++]=j>>>8&255,n[N++]=j>>>16&255,n[N++]=j>>>24&255,n[N++]=U>>>0&255,n[N++]=U>>>8&255,n[N++]=U>>>16&255,n[N++]=U>>>24&255,n[N++]=q>>>0&255,n[N++]=q>>>8&255,n[N++]=q>>>16&255,n[N++]=q>>>24&255,n[N++]=G>>>0&255,n[N++]=G>>>8&255,n[N++]=G>>>16&255,n[N++]=G>>>24&255,n[N++]=H>>>0&255,n[N++]=H>>>8&255,n[N++]=H>>>16&255,n[N++]=H>>>24&255,n[N++]=Z>>>0&255,n[N++]=Z>>>8&255,n[N++]=Z>>>16&255,n[N]=Z>>>24&255;return;case 9:let X,W,Y,K,J,Q,ee,et,ei,en;X=r,W=t[i]>>>0,Y=t[i+1]>>>0,K=t[i+2]>>>0,J=t[i+3]>>>0,Q=t[i+4]>>>0,ee=t[i+5]>>>0,et=t[i+6]>>>0,ei=t[i+7]>>>0,en=t[i+8]>>>0,n[X++]=W>>>0&511,n[X++]=W>>>9&511,n[X++]=W>>>18&511,n[X++]=(W>>>27|(15&Y)<<5)&511,n[X++]=Y>>>4&511,n[X++]=Y>>>13&511,n[X++]=Y>>>22&511,n[X++]=(Y>>>31|(255&K)<<1)&511,n[X++]=K>>>8&511,n[X++]=K>>>17&511,n[X++]=(K>>>26|(7&J)<<6)&511,n[X++]=J>>>3&511,n[X++]=J>>>12&511,n[X++]=J>>>21&511,n[X++]=(J>>>30|(127&Q)<<2)&511,n[X++]=Q>>>7&511,n[X++]=Q>>>16&511,n[X++]=(Q>>>25|(3&ee)<<7)&511,n[X++]=ee>>>2&511,n[X++]=ee>>>11&511,n[X++]=ee>>>20&511,n[X++]=(ee>>>29|(63&et)<<3)&511,n[X++]=et>>>6&511,n[X++]=et>>>15&511,n[X++]=(et>>>24|(1&ei)<<8)&511,n[X++]=ei>>>1&511,n[X++]=ei>>>10&511,n[X++]=ei>>>19&511,n[X++]=(ei>>>28|(31&en)<<4)&511,n[X++]=en>>>5&511,n[X++]=en>>>14&511,n[X]=en>>>23&511;return;case 10:let er,ea,eo,es,el,ec,ed,eh,eu,ep,em;er=r,ea=t[i]>>>0,eo=t[i+1]>>>0,es=t[i+2]>>>0,el=t[i+3]>>>0,ec=t[i+4]>>>0,ed=t[i+5]>>>0,eh=t[i+6]>>>0,eu=t[i+7]>>>0,ep=t[i+8]>>>0,em=t[i+9]>>>0,n[er++]=ea>>>0&1023,n[er++]=ea>>>10&1023,n[er++]=ea>>>20&1023,n[er++]=(ea>>>30|(255&eo)<<2)&1023,n[er++]=eo>>>8&1023,n[er++]=eo>>>18&1023,n[er++]=(eo>>>28|(63&es)<<4)&1023,n[er++]=es>>>6&1023,n[er++]=es>>>16&1023,n[er++]=(es>>>26|(15&el)<<6)&1023,n[er++]=el>>>4&1023,n[er++]=el>>>14&1023,n[er++]=(el>>>24|(3&ec)<<8)&1023,n[er++]=ec>>>2&1023,n[er++]=ec>>>12&1023,n[er++]=ec>>>22&1023,n[er++]=ed>>>0&1023,n[er++]=ed>>>10&1023,n[er++]=ed>>>20&1023,n[er++]=(ed>>>30|(255&eh)<<2)&1023,n[er++]=eh>>>8&1023,n[er++]=eh>>>18&1023,n[er++]=(eh>>>28|(63&eu)<<4)&1023,n[er++]=eu>>>6&1023,n[er++]=eu>>>16&1023,n[er++]=(eu>>>26|(15&ep)<<6)&1023,n[er++]=ep>>>4&1023,n[er++]=ep>>>14&1023,n[er++]=(ep>>>24|(3&em)<<8)&1023,n[er++]=em>>>2&1023,n[er++]=em>>>12&1023,n[er]=em>>>22&1023;return;case 11:let ef,eg,e_,ev,ey,eb,ex,ew,eC,eE,eT,ek;ef=r,eg=t[i]>>>0,e_=t[i+1]>>>0,ev=t[i+2]>>>0,ey=t[i+3]>>>0,eb=t[i+4]>>>0,ex=t[i+5]>>>0,ew=t[i+6]>>>0,eC=t[i+7]>>>0,eE=t[i+8]>>>0,eT=t[i+9]>>>0,ek=t[i+10]>>>0,n[ef++]=eg>>>0&2047,n[ef++]=eg>>>11&2047,n[ef++]=(eg>>>22|(1&e_)<<10)&2047,n[ef++]=e_>>>1&2047,n[ef++]=e_>>>12&2047,n[ef++]=(e_>>>23|(3&ev)<<9)&2047,n[ef++]=ev>>>2&2047,n[ef++]=ev>>>13&2047,n[ef++]=(ev>>>24|(7&ey)<<8)&2047,n[ef++]=ey>>>3&2047,n[ef++]=ey>>>14&2047,n[ef++]=(ey>>>25|(15&eb)<<7)&2047,n[ef++]=eb>>>4&2047,n[ef++]=eb>>>15&2047,n[ef++]=(eb>>>26|(31&ex)<<6)&2047,n[ef++]=ex>>>5&2047,n[ef++]=ex>>>16&2047,n[ef++]=(ex>>>27|(63&ew)<<5)&2047,n[ef++]=ew>>>6&2047,n[ef++]=ew>>>17&2047,n[ef++]=(ew>>>28|(127&eC)<<4)&2047,n[ef++]=eC>>>7&2047,n[ef++]=eC>>>18&2047,n[ef++]=(eC>>>29|(255&eE)<<3)&2047,n[ef++]=eE>>>8&2047,n[ef++]=eE>>>19&2047,n[ef++]=(eE>>>30|(511&eT)<<2)&2047,n[ef++]=eT>>>9&2047,n[ef++]=eT>>>20&2047,n[ef++]=(eT>>>31|(1023&ek)<<1)&2047,n[ef++]=ek>>>10&2047,n[ef]=ek>>>21&2047;return;case 12:let eA,eI,eS,eD,eP,eM,ez,eL,eR,eF,eO,eB,eN;eA=r,eI=t[i]>>>0,eS=t[i+1]>>>0,eD=t[i+2]>>>0,eP=t[i+3]>>>0,eM=t[i+4]>>>0,ez=t[i+5]>>>0,eL=t[i+6]>>>0,eR=t[i+7]>>>0,eF=t[i+8]>>>0,eO=t[i+9]>>>0,eB=t[i+10]>>>0,eN=t[i+11]>>>0,n[eA++]=eI>>>0&4095,n[eA++]=eI>>>12&4095,n[eA++]=(eI>>>24|(15&eS)<<8)&4095,n[eA++]=eS>>>4&4095,n[eA++]=eS>>>16&4095,n[eA++]=(eS>>>28|(255&eD)<<4)&4095,n[eA++]=eD>>>8&4095,n[eA++]=eD>>>20&4095,n[eA++]=eP>>>0&4095,n[eA++]=eP>>>12&4095,n[eA++]=(eP>>>24|(15&eM)<<8)&4095,n[eA++]=eM>>>4&4095,n[eA++]=eM>>>16&4095,n[eA++]=(eM>>>28|(255&ez)<<4)&4095,n[eA++]=ez>>>8&4095,n[eA++]=ez>>>20&4095,n[eA++]=eL>>>0&4095,n[eA++]=eL>>>12&4095,n[eA++]=(eL>>>24|(15&eR)<<8)&4095,n[eA++]=eR>>>4&4095,n[eA++]=eR>>>16&4095,n[eA++]=(eR>>>28|(255&eF)<<4)&4095,n[eA++]=eF>>>8&4095,n[eA++]=eF>>>20&4095,n[eA++]=eO>>>0&4095,n[eA++]=eO>>>12&4095,n[eA++]=(eO>>>24|(15&eB)<<8)&4095,n[eA++]=eB>>>4&4095,n[eA++]=eB>>>16&4095,n[eA++]=(eB>>>28|(255&eN)<<4)&4095,n[eA++]=eN>>>8&4095,n[eA]=eN>>>20&4095;return;case 16:let eV,e$,ej,eU,eq,eG,eH,eZ,eX,eW,eY,eK,eJ,eQ,e0,e2,e1;eV=r,e$=t[i]>>>0,ej=t[i+1]>>>0,eU=t[i+2]>>>0,eq=t[i+3]>>>0,eG=t[i+4]>>>0,eH=t[i+5]>>>0,eZ=t[i+6]>>>0,eX=t[i+7]>>>0,eW=t[i+8]>>>0,eY=t[i+9]>>>0,eK=t[i+10]>>>0,eJ=t[i+11]>>>0,eQ=t[i+12]>>>0,e0=t[i+13]>>>0,e2=t[i+14]>>>0,e1=t[i+15]>>>0,n[eV++]=e$>>>0&65535,n[eV++]=e$>>>16&65535,n[eV++]=ej>>>0&65535,n[eV++]=ej>>>16&65535,n[eV++]=eU>>>0&65535,n[eV++]=eU>>>16&65535,n[eV++]=eq>>>0&65535,n[eV++]=eq>>>16&65535,n[eV++]=eG>>>0&65535,n[eV++]=eG>>>16&65535,n[eV++]=eH>>>0&65535,n[eV++]=eH>>>16&65535,n[eV++]=eZ>>>0&65535,n[eV++]=eZ>>>16&65535,n[eV++]=eX>>>0&65535,n[eV++]=eX>>>16&65535,n[eV++]=eW>>>0&65535,n[eV++]=eW>>>16&65535,n[eV++]=eY>>>0&65535,n[eV++]=eY>>>16&65535,n[eV++]=eK>>>0&65535,n[eV++]=eK>>>16&65535,n[eV++]=eJ>>>0&65535,n[eV++]=eJ>>>16&65535,n[eV++]=eQ>>>0&65535,n[eV++]=eQ>>>16&65535,n[eV++]=e0>>>0&65535,n[eV++]=e0>>>16&65535,n[eV++]=e2>>>0&65535,n[eV++]=e2>>>16&65535,n[eV++]=e1>>>0&65535,n[eV]=e1>>>16&65535;return;case 32:for(let a=0;a<32;a=a+1|0)n[r+a|0]=0|t[i+a|0];return}let e3=ha[a]>>>0,e5=i,e4=0,e6=t[e5]>>>0;for(let i=0;i<32;i++)if(e4+a<=32){let o=e6>>>e4&e3;n[r+i]=0|o,32===(e4+=a)&&(e4=0,e5++,31!==i&&(e6=t[e5]>>>0))}else{let o=32-e4,s=(e6>>>e4|((e6=t[++e5]>>>0)&ha[a-o]>>>0)<<o)&e3;n[r+i]=0|s,e4=a-o}})(t,i,d,h,o),i=i+o|0;i=i-((h-s|0)*o>>>5)|0,n.exceptionSizes[o]=s}return i}(t,p,o);return o.dataPointers.fill(0),function(t,i,n,r,a,o,s,l,c,d){let h=0|n,u=0;for(let i=0;i<s;i=i+1|0){let n=function(t,i,n,r){if(n+2>i)throw Error(`FastPFOR decode: byteContainer underflow at block=${r} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${n}, byteSize=${i})`);let a=t[n++],o=t[n++];if(a>32)throw Error(`FastPFOR decode: invalid bitWidth=${a} at block=${r} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:a,exceptionCount:o,bytePosIn:n}}(l,c,u,i);u=n.bytePosIn;let r=n.bitWidth,s=n.exceptionCount,p=o+256*i|0;switch(r){case 0:a.fill(0,p,p+256);break;case 32:for(let i=0;i<256;i=i+1|0)a[p+i|0]=0|t[h+i|0];h=h+256|0;break;default:h=function(t,i,n,r,a){switch(a){case 1:let o=r,s=i;for(let i=0;i<8;i++){let i=t[s++]>>>0;n[o++]=i>>>0&1,n[o++]=i>>>1&1,n[o++]=i>>>2&1,n[o++]=i>>>3&1,n[o++]=i>>>4&1,n[o++]=i>>>5&1,n[o++]=i>>>6&1,n[o++]=i>>>7&1,n[o++]=i>>>8&1,n[o++]=i>>>9&1,n[o++]=i>>>10&1,n[o++]=i>>>11&1,n[o++]=i>>>12&1,n[o++]=i>>>13&1,n[o++]=i>>>14&1,n[o++]=i>>>15&1,n[o++]=i>>>16&1,n[o++]=i>>>17&1,n[o++]=i>>>18&1,n[o++]=i>>>19&1,n[o++]=i>>>20&1,n[o++]=i>>>21&1,n[o++]=i>>>22&1,n[o++]=i>>>23&1,n[o++]=i>>>24&1,n[o++]=i>>>25&1,n[o++]=i>>>26&1,n[o++]=i>>>27&1,n[o++]=i>>>28&1,n[o++]=i>>>29&1,n[o++]=i>>>30&1,n[o++]=i>>>31&1}break;case 2:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0;n[a++]=i>>>0&3,n[a++]=i>>>2&3,n[a++]=i>>>4&3,n[a++]=i>>>6&3,n[a++]=i>>>8&3,n[a++]=i>>>10&3,n[a++]=i>>>12&3,n[a++]=i>>>14&3,n[a++]=i>>>16&3,n[a++]=i>>>18&3,n[a++]=i>>>20&3,n[a++]=i>>>22&3,n[a++]=i>>>24&3,n[a++]=i>>>26&3,n[a++]=i>>>28&3,n[a++]=i>>>30&3,n[a++]=r>>>0&3,n[a++]=r>>>2&3,n[a++]=r>>>4&3,n[a++]=r>>>6&3,n[a++]=r>>>8&3,n[a++]=r>>>10&3,n[a++]=r>>>12&3,n[a++]=r>>>14&3,n[a++]=r>>>16&3,n[a++]=r>>>18&3,n[a++]=r>>>20&3,n[a++]=r>>>22&3,n[a++]=r>>>24&3,n[a++]=r>>>26&3,n[a++]=r>>>28&3,n[a++]=r>>>30&3}}(t,i,n,r);break;case 3:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0;n[a++]=i>>>0&7,n[a++]=i>>>3&7,n[a++]=i>>>6&7,n[a++]=i>>>9&7,n[a++]=i>>>12&7,n[a++]=i>>>15&7,n[a++]=i>>>18&7,n[a++]=i>>>21&7,n[a++]=i>>>24&7,n[a++]=i>>>27&7,n[a++]=(i>>>30|(1&r)<<2)&7,n[a++]=r>>>1&7,n[a++]=r>>>4&7,n[a++]=r>>>7&7,n[a++]=r>>>10&7,n[a++]=r>>>13&7,n[a++]=r>>>16&7,n[a++]=r>>>19&7,n[a++]=r>>>22&7,n[a++]=r>>>25&7,n[a++]=r>>>28&7,n[a++]=(r>>>31|(3&s)<<1)&7,n[a++]=s>>>2&7,n[a++]=s>>>5&7,n[a++]=s>>>8&7,n[a++]=s>>>11&7,n[a++]=s>>>14&7,n[a++]=s>>>17&7,n[a++]=s>>>20&7,n[a++]=s>>>23&7,n[a++]=s>>>26&7,n[a++]=s>>>29&7}}(t,i,n,r);break;case 4:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0;n[a++]=i>>>0&15,n[a++]=i>>>4&15,n[a++]=i>>>8&15,n[a++]=i>>>12&15,n[a++]=i>>>16&15,n[a++]=i>>>20&15,n[a++]=i>>>24&15,n[a++]=i>>>28&15,n[a++]=r>>>0&15,n[a++]=r>>>4&15,n[a++]=r>>>8&15,n[a++]=r>>>12&15,n[a++]=r>>>16&15,n[a++]=r>>>20&15,n[a++]=r>>>24&15,n[a++]=r>>>28&15,n[a++]=s>>>0&15,n[a++]=s>>>4&15,n[a++]=s>>>8&15,n[a++]=s>>>12&15,n[a++]=s>>>16&15,n[a++]=s>>>20&15,n[a++]=s>>>24&15,n[a++]=s>>>28&15,n[a++]=l>>>0&15,n[a++]=l>>>4&15,n[a++]=l>>>8&15,n[a++]=l>>>12&15,n[a++]=l>>>16&15,n[a++]=l>>>20&15,n[a++]=l>>>24&15,n[a++]=l>>>28&15}}(t,i,n,r);break;case 5:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0;n[a++]=i>>>0&31,n[a++]=i>>>5&31,n[a++]=i>>>10&31,n[a++]=i>>>15&31,n[a++]=i>>>20&31,n[a++]=i>>>25&31,n[a++]=(i>>>30|(7&r)<<2)&31,n[a++]=r>>>3&31,n[a++]=r>>>8&31,n[a++]=r>>>13&31,n[a++]=r>>>18&31,n[a++]=r>>>23&31,n[a++]=(r>>>28|(1&s)<<4)&31,n[a++]=s>>>1&31,n[a++]=s>>>6&31,n[a++]=s>>>11&31,n[a++]=s>>>16&31,n[a++]=s>>>21&31,n[a++]=s>>>26&31,n[a++]=(s>>>31|(15&l)<<1)&31,n[a++]=l>>>4&31,n[a++]=l>>>9&31,n[a++]=l>>>14&31,n[a++]=l>>>19&31,n[a++]=l>>>24&31,n[a++]=(l>>>29|(3&c)<<3)&31,n[a++]=c>>>2&31,n[a++]=c>>>7&31,n[a++]=c>>>12&31,n[a++]=c>>>17&31,n[a++]=c>>>22&31,n[a++]=c>>>27&31}}(t,i,n,r);break;case 6:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,d=t[o++]>>>0;n[a++]=i>>>0&63,n[a++]=i>>>6&63,n[a++]=i>>>12&63,n[a++]=i>>>18&63,n[a++]=i>>>24&63,n[a++]=(i>>>30|(15&r)<<2)&63,n[a++]=r>>>4&63,n[a++]=r>>>10&63,n[a++]=r>>>16&63,n[a++]=r>>>22&63,n[a++]=(r>>>28|(3&s)<<4)&63,n[a++]=s>>>2&63,n[a++]=s>>>8&63,n[a++]=s>>>14&63,n[a++]=s>>>20&63,n[a++]=s>>>26&63,n[a++]=l>>>0&63,n[a++]=l>>>6&63,n[a++]=l>>>12&63,n[a++]=l>>>18&63,n[a++]=l>>>24&63,n[a++]=(l>>>30|(15&c)<<2)&63,n[a++]=c>>>4&63,n[a++]=c>>>10&63,n[a++]=c>>>16&63,n[a++]=c>>>22&63,n[a++]=(c>>>28|(3&d)<<4)&63,n[a++]=d>>>2&63,n[a++]=d>>>8&63,n[a++]=d>>>14&63,n[a++]=d>>>20&63,n[a++]=d>>>26&63}}(t,i,n,r);break;case 7:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,d=t[o++]>>>0,h=t[o++]>>>0;n[a++]=i>>>0&127,n[a++]=i>>>7&127,n[a++]=i>>>14&127,n[a++]=i>>>21&127,n[a++]=(i>>>28|(7&r)<<4)&127,n[a++]=r>>>3&127,n[a++]=r>>>10&127,n[a++]=r>>>17&127,n[a++]=r>>>24&127,n[a++]=(r>>>31|(63&s)<<1)&127,n[a++]=s>>>6&127,n[a++]=s>>>13&127,n[a++]=s>>>20&127,n[a++]=(s>>>27|(3&l)<<5)&127,n[a++]=l>>>2&127,n[a++]=l>>>9&127,n[a++]=l>>>16&127,n[a++]=l>>>23&127,n[a++]=(l>>>30|(31&c)<<2)&127,n[a++]=c>>>5&127,n[a++]=c>>>12&127,n[a++]=c>>>19&127,n[a++]=(c>>>26|(1&d)<<6)&127,n[a++]=d>>>1&127,n[a++]=d>>>8&127,n[a++]=d>>>15&127,n[a++]=d>>>22&127,n[a++]=(d>>>29|(15&h)<<3)&127,n[a++]=h>>>4&127,n[a++]=h>>>11&127,n[a++]=h>>>18&127,n[a++]=h>>>25&127}}(t,i,n,r);break;case 8:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,d=t[o++]>>>0,h=t[o++]>>>0,u=t[o++]>>>0;n[a++]=i>>>0&255,n[a++]=i>>>8&255,n[a++]=i>>>16&255,n[a++]=i>>>24&255,n[a++]=r>>>0&255,n[a++]=r>>>8&255,n[a++]=r>>>16&255,n[a++]=r>>>24&255,n[a++]=s>>>0&255,n[a++]=s>>>8&255,n[a++]=s>>>16&255,n[a++]=s>>>24&255,n[a++]=l>>>0&255,n[a++]=l>>>8&255,n[a++]=l>>>16&255,n[a++]=l>>>24&255,n[a++]=c>>>0&255,n[a++]=c>>>8&255,n[a++]=c>>>16&255,n[a++]=c>>>24&255,n[a++]=d>>>0&255,n[a++]=d>>>8&255,n[a++]=d>>>16&255,n[a++]=d>>>24&255,n[a++]=h>>>0&255,n[a++]=h>>>8&255,n[a++]=h>>>16&255,n[a++]=h>>>24&255,n[a++]=u>>>0&255,n[a++]=u>>>8&255,n[a++]=u>>>16&255,n[a++]=u>>>24&255}}(t,i,n,r);break;case 16:let l=r,c=i;for(let i=0;i<128;i++){let i=t[c++]>>>0;n[l++]=65535&i,n[l++]=i>>>16&65535}break;default:!function(t,i,n,r,a){let o=ha[a]>>>0,s=i,l=0,c=t[s]>>>0,d=r;for(let i=0;i<8;i++){for(let i=0;i<32;i++)if(l+a<=32){let r=c>>>l&o;n[d+i]=0|r,32===(l+=a)&&(l=0,s++,31!==i&&(c=t[s]>>>0))}else{let r=32-l,h=c>>>l;c=t[++s]>>>0;let u=a-r,p=(h|(c&-1>>>32-u>>>0)<<r)&o;n[d+i]=0|p,l=u}d+=32,l=0,i<7&&(c=t[s]>>>0)}}(t,i,n,r,a)}return i+(a<<3)|0}(t,h,a,p,r)}s>0&&(u=function(t,i,n,r,a,o,s,l,c){let{maxBits:d,exceptionBitWidth:h,bytePosIn:u}=function(t,i,n,r,a,o){if(n+1>i)throw Error(`FastPFOR decode: exception header underflow at block=${o} (need 1 byte for maxBits, bytePos=${n}, byteSize=${i})`);let s=t[n++];if(s<r||s>32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${o} (bitWidth=${r}, expected ${r}..32)`);let l=s-r|0;if(l<1||l>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${l} at block=${o} (bitWidth=${r}, maxBits=${s})`);if(n+a>i)throw Error(`FastPFOR decode: exception positions underflow at block=${o} (need=${a}, have=${i-n})`);return{maxBits:s,exceptionBitWidth:l,bytePosIn:n}}(a,o,s,n,r,c);if(s=u,1===h){let o=1<<n;for(let n=0;n<r;n=n+1|0){let n=a[s++];t[n+i|0]|=o}return s}let p=l.dataToBePacked[h];if(!p)throw Error(`FastPFOR decode: missing exception stream for exceptionBitWidth=${h} (bitWidth=${n}, maxBits=${d}) at block ${c}`);let m=l.dataPointers,f=0|m[h],g=0|l.exceptionSizes[h];if(f+r>g)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${f}, need ${r}, size=${g}) at block ${c}`);for(let o=0;o<r;o=o+1|0){let r=a[s++],o=0|p[f++];t[r+i|0]|=o<<n}return m[h]=f,s}(a,p,r,s,l,c,u,d,i))}if(h!==r)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${i}, packedStart=${n}, consumedPackedEnd=${h}, expectedPackedEnd=${r}, packedWords=${r-n}, encoded.length=${t.length})`)}(t,s,s+1|0,c,i,0|r,a/256|0,m,d,o),f}(t,i,c,l,n,o),l=l+n|0}return c}(t,o,r,a,i,s),a=a+i|0}let l=t.length-r|0,c=i-a|0;return function(t,i,n,r,a,o){if(0===o)return;let s=0,l=i,c=i+n,d=a,h=a+o,u=0,p=0;for(;l<c&&d<h;){let i=t[l]>>>s&255;if(s+=8,l+=s>>>5,s&=31,u|=(127&i)<<p,128&i)r[d++]=0|u,u=0,p=0;else if((p+=7)>28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${p}, partial=${u}, decoded=${d-a}/${o}, inPos=${l}, inEnd=${c})`)}if(d!==h)throw Error(`FastPFOR VByte: truncated stream (decoded=${d-a}, expected=${o}, consumedWords=${l-i}/${n}, vbyteStart=${i}, vbyteEnd=${c})`)}(t,r,l,o,a,c),o}(l.subarray(0,s),i,a.decoderWorkspace);return r.add(n),c}(t,a,o=n.byteLength,i,function(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);return{encodedWords:new Uint32Array(Math.max(16,0|t)),decoderWorkspace:hl()}}(o>>>2));case ux.VARINT:return hc(t,i,n.numValues);case ux.NONE:return function(t,i,n){let r=i.get(),a=n*Uint32Array.BYTES_PER_ELEMENT,o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=new Uint32Array(n);for(let t=0;t<n;t++)s[t]=o.getUint32(r+t*Uint32Array.BYTES_PER_ELEMENT,!0);return i.add(a),s}(t,i,n.numValues);default:throw Error(`Specified physicalLevelTechnique ${r} is not supported (yet).`)}}function hU(t,i,n){let r=n.physicalLevelTechnique;switch(r){case ux.VARINT:return hd(t,i,n.numValues);case ux.NONE:return function(t,i,n){let r=i.get(),a=n*BigUint64Array.BYTES_PER_ELEMENT,o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=new BigUint64Array(n);for(let t=0;t<n;t++)s[t]=o.getBigUint64(r+t*BigUint64Array.BYTES_PER_ELEMENT,!0);return i.add(a),s}(t,i,n.numValues);default:throw Error(`Specified physicalLevelTechnique ${r} is not supported (yet).`)}}function hq(t,i,n){let r=hj(t,i,n);return 1===r.length?n.logicalLevelTechnique1===hn.DELTA?hh(r[0]):r[0]:r[1]}function hG(t,i,n){var r=hj(t,i,n);if(2===r.length){let t=hh(r[1]);return[t,t]}return[hh(r[2]),hh(r[3])]}function hH(t,i,n){var r=hd(t,i,n.numValues);if(2===r.length){let t=hu(r[1]);return[t,t]}return[hu(r[2]),hu(r[3])]}function hZ(t,i,n,r){return hY(hU(t,i,n),n,r)}function hX(t,i,n){let r=hU(t,i,n);return 1===r.length?n.logicalLevelTechnique1===hn.DELTA?hu(r[0]):r[0]:r[1]}function hW(t,i,n){let r;switch(i.logicalLevelTechnique1){case hn.DELTA:if(i.logicalLevelTechnique2===hn.RLE){if(!n)return function(t,i,n){let r=new BigInt64Array(n),a=0,o=0n;for(let n=0;n<i;n++){let s=Number(t[n]),l=hu(t[n+i]);for(let t=0;t<s;t++)o+=l,r[a++]=o}return r}(t,i.runs,i.numRleValues);r=hv(t=hf(t,i.runs,i.numRleValues))}else r=hv(t);break;case hn.RLE:r=function(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=Number(t[r])}let r=new BigInt64Array(n),a=0;for(let n=0;n<i;n++){let o=Number(t[n]),s=t[n+i];s=hu(s),r.fill(s,a,a+o),a+=o}return r}(t,i.runs,i.numRleValues);break;case hn.NONE:r=function(t){let i=new BigInt64Array(t.length);for(let n=0;n<t.length;n++)i[n]=hu(t[n]);return i}(t);break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return n?hM(r,n,0n):r}function hY(t,i,n){let r;switch(i.logicalLevelTechnique1){case hn.DELTA:r=i.logicalLevelTechnique2===hn.RLE?hC(hf(t,i.runs,i.numRleValues)):hC(t);break;case hn.RLE:r=hf(t,i.runs,i.numRleValues);break;case hn.NONE:r=t;break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return n?hM(r,n,0n):r}function hK(t,i,n,r,a="int32"){let o=t.logicalLevelTechnique1;if(o===hn.RLE)return 1===t.runs?uk.CONST:uk.FLAT;if(o!==hn.DELTA||t.logicalLevelTechnique2!==hn.RLE)return 1===t.numValues?uk.CONST:uk.FLAT;let s=i instanceof hP?i.size():i;if(t.numRleValues!==s)return uk.FLAT;if(1===t.runs)return uk.SEQUENCE;if(2!==t.runs)return 1===t.numValues?uk.CONST:uk.FLAT;let l=r.get();if(t.physicalLevelTechnique===ux.VARINT)return!function(t,i,n){let r=new hr(i.get());if("int64"===n){let i=hd(t,r,4);return 2n===i[2]&&2n===i[3]}let a=hc(t,r,4);return 2===a[2]&&2===a[3]}(n,r,a)?1===t.numValues?uk.CONST:uk.FLAT:uk.SEQUENCE;let c=r.get(),d=new Int32Array(n.buffer,n.byteOffset+c,4);return r.set(l),2===d[2]&&2===d[3]?uk.SEQUENCE:1===t.numValues?uk.CONST:uk.FLAT}var hJ=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},hQ=class extends d6{constructor(t,i,n,r,a){super(t,a?BigInt64Array.of(i):BigUint64Array.of(i),n,r)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function h0(t,i,n){return{x:h2(t,i)-n,y:h2(t>>1,i)-n}}function h2(t,i){let n=0;for(let r=0;r<i;r++)n|=(t&1<<2*r)>>r;return n}function h1(t,i,n,r,a,o,s){return t===uS.MORTON?function(t,i,n,r,a,o){let s=Array(a?r+1:r);for(let a=0;a<r;a++){let r=h0(t[i[n+a]],o.numBits,o.coordinateShift);s[a]=new R(r.x,r.y)}return a&&(s[s.length-1]=s[0]),s}(i,n,r,a,o,s):function(t,i,n,r,a){let o=Array(a?r+1:r);for(let a=0;a<2*r;a+=2){let r=2*i[n+a/2],s=t[r],l=t[r+1];o[a/2]=new R(s,l)}return a&&(o[o.length-1]=o[0]),o}(i,n,r,a,o)}function h3(t,i,n,r){let a=Array(r?n+1:n);for(let r=0;r<2*n;r+=2){let n=t[i+r],o=t[i+r+1];a[r/2]=new R(n,o)}return r&&(a[a.length-1]=a[0]),a}(uv=uA||={})[uv.POINT=0]="POINT",uv[uv.LINESTRING=1]="LINESTRING",uv[uv.POLYGON=2]="POLYGON",uv[uv.MULTIPOINT=3]="MULTIPOINT",uv[uv.MULTILINESTRING=4]="MULTILINESTRING",uv[uv.MULTIPOLYGON=5]="MULTIPOLYGON",(uy=uI||={})[uy.POINT=0]="POINT",uy[uy.LINESTRING=1]="LINESTRING",uy[uy.POLYGON=2]="POLYGON",(ub=uS||={})[ub.MORTON=0]="MORTON",ub[ub.VEC_2=1]="VEC_2",ub[ub.VEC_3=2]="VEC_3";var h5=class{constructor(t,i,n,r,a){this._vertexBufferType=t,this._topologyVector=i,this._vertexOffsets=n,this._vertexBuffer=r,this._mortonSettings=a}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(t){let i=this.vertexOffsets?2*this.vertexOffsets[t]:2*t;return[this.vertexBuffer[i],this.vertexBuffer[i+1]]}getVertex(t){if(this.vertexOffsets&&this.mortonSettings){let i=this.vertexOffsets[t],n=h0(this.vertexBuffer[i],this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[n.x,n.y]}let i=this.vertexOffsets?2*this.vertexOffsets[t]:2*t;return[this.vertexBuffer[i],this.vertexBuffer[i+1]]}getGeometries(){return function(t){let i=Array(t.numGeometries),n=1,r=1,a=1,o=0,s=0,l=0,c=t.mortonSettings,d=t.topologyVector,h=d.geometryOffsets,u=d.partOffsets,p=d.ringOffsets,m=t.vertexOffsets,f=!m||0===m.length,g=t.containsPolygonGeometry(),_=t.vertexBuffer;for(let d=0;d<t.numGeometries;d++){let v=t.geometryType(d);switch(v){case uA.POINT:{let d,g;if(f)d=_[s++],g=_[s++];else if(t.vertexBufferType===uS.MORTON){let t=h0(_[m[l++]],c.numBits,c.coordinateShift);d=t.x,g=t.y}else{let t=2*m[l++];d=_[t],g=_[t+1]}i[o++]=[[new R(d,g)]],h&&a++,u&&n++,p&&r++}break;case uA.MULTIPOINT:{let d,u=h[a]-h[a-1];if(a++,f){d=Array(u);for(let t=0;t<u;t++){let i=_[s++],n=_[s++];d[t]=new R(i,n)}}else d=h1(t.vertexBufferType,_,m,l,u,!1,c),l+=u;i[o++]=d.map(t=>[t]),n+=u,r+=u}break;case uA.LINESTRING:{let d,v;g?(d=p[r]-p[r-1],r++):d=u[n]-u[n-1],n++,f?(v=h3(_,s,d,!1),s+=2*d):(v=h1(t.vertexBufferType,_,m,l,d,!1,c),l+=d),i[o++]=[v],h&&a++}break;case uA.POLYGON:{let d=u[n]-u[n-1];n++;let g=Array(d-1),v,y=p[r]-p[r-1];if(r++,f){v=h3(_,s,y,!0),s+=2*y;for(let t=0;t<g.length;t++)y=p[r]-p[r-1],r++,g[t]=h3(_,s,y,!0),s+=2*y}else{v=h1(t.vertexBufferType,_,m,l,y,!0,c),l+=y;for(let i=0;i<g.length;i++)y=p[r]-p[r-1],r++,g[i]=h1(t.vertexBufferType,_,m,l,y,!0,c),l+=y}i[o++]=[v].concat(g),h&&a++}break;case uA.MULTILINESTRING:{let d=h[a]-h[a-1];a++;let v=Array(d);for(let i=0;i<d;i++){let a;if(g?(a=p[r]-p[r-1],r++):a=u[n]-u[n-1],n++,f)v[i]=h3(_,s,a,!1),s+=2*a;else{let n=h1(t.vertexBufferType,_,m,l,a,!1,c);v[i]=n,l+=a}}i[o++]=v}break;case uA.MULTIPOLYGON:{let d=h[a]-h[a-1];a++;let g=Array(d);for(let i=0;i<d;i++){let a=u[n]-u[n-1];n++;let o,d=Array(a-1),h=p[r]-p[r-1];r++,f?(o=h3(_,s,h,!0),s+=2*h):(o=h1(t.vertexBufferType,_,m,l,h,!0,c),l+=h);for(let i=0;i<d.length;i++){let n=p[r]-p[r-1];r++,f?(d[i]=h3(_,s,n,!0),s+=2*n):(d[i]=h1(t.vertexBufferType,_,m,l,n,!0,c),l+=n)}g[i]=[o].concat(d)}i[o++]=g.flat()}break;default:throw Error(`The specified geometry type (${v}) is currently not supported.`)}}return i}(this)}get mortonSettings(){return this._mortonSettings}},h4=class extends h5{constructor(t,i,n,r,a,o,s){super(n,r,a,o,s),this._numGeometries=t,this._geometryType=i}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===uA.POLYGON||this._geometryType===uA.MULTIPOLYGON}containsSingleGeometryType(){return!0}};function h6(t,i,n,r){return new h8(uS.VEC_2,t,i,n,r)}var h8=class extends h5{constructor(t,i,n,r,a,o){super(t,n,r,a,o),this._geometryTypes=i}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let t=0;t<this.numGeometries;t++)if(this.geometryType(t)===uA.POLYGON||this.geometryType(t)===uA.MULTIPOLYGON)return!0;return!1}containsSingleGeometryType(){return!1}},h7=class{constructor(t,i,n,r){this._triangleOffsets=t,this._indexBuffer=i,this._vertexBuffer=n,this._topologyVector=r}get triangleOffsets(){return this._triangleOffsets}get indexBuffer(){return this._indexBuffer}get vertexBuffer(){return this._vertexBuffer}get topologyVector(){return this._topologyVector}getGeometries(){if(!this._topologyVector)throw Error("Cannot convert GpuVector to coordinates without topology information");let t=new Uint32Array(this.numGeometries);for(let i=0;i<this.numGeometries;i++)t[i]=this.geometryType(i);return h6(t,this._topologyVector,void 0,this._vertexBuffer).getGeometries()}[Symbol.iterator](){return null}},h9=class extends h7{constructor(t,i,n,r,a,o){super(n,r,a,o),this._numGeometries=t,this._geometryType=i}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}},ue=class extends h7{constructor(t,i,n,r,a){super(i,n,r,a),this._geometryTypes=t}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}};function ut(t,i,n){let r=new Uint32Array(t.length+1),a=0;r[0]=a;let o=0;for(let s=0;s<t.length;s++)a=r[s+1]=a+(t[s]>n?i[o++]:1);return r}function ui(t,i,n,r){let a=new Uint32Array(i[i.length-1]+1),o=0;a[0]=o;let s=1,l=0;for(let c=0;c<t.length;c++){let d=t[c],h=i[c+1]-i[c];if(5===d||2===d||r&&(4===d||1===d))for(let t=0;t<h;t++)o=a[s++]=o+n[l++];else for(let t=0;t<h;t++)a[s++]=++o}return a}var un=class extends d1{constructor(t,i,n){super(t,i.getBuffer(),n),this.dataVector=i}getValueFromBuffer(t){return this.dataVector.get(t)}},ur=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},ua=class extends d1{constructor(t,i,n,r){super(t,r?BigInt64Array.of(i):BigUint64Array.of(i),n)}getValueFromBuffer(t){return this.dataBuffer[0]}},uo=class extends d1{constructor(t,i,n,r){super(t,n,r),this.offsetBuffer=i}},us=class extends uo{constructor(t,i,n,r){super(t,i,n,r??i.length-1)}getValueFromBuffer(t){let i=this.offsetBuffer[t],n=this.offsetBuffer[t+1];return hB(this.dataBuffer,i,n)}},ul=class extends uo{constructor(t,i,n,r,a){super(t,n,r,a??i.length),this.indexBuffer=i,this.indexBuffer=i}getValueFromBuffer(t){let i=this.indexBuffer[t],n=this.offsetBuffer[i],r=this.offsetBuffer[i+1];return hB(this.dataBuffer,n,r)}},uc=class extends uo{constructor(t,i,n,r,a,o,s,l){super(t,n,r,s??i.length),this.indexBuffer=i,this.symbolOffsetBuffer=a,this.symbolTableBuffer=o,this.sharedDictionaryCache=l}getValueFromBuffer(t){this.decodedDictionary??(this.decodedDictionary=this.sharedDictionaryCache?.decodedDictionary,this.decodedDictionary??(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let i=this.indexBuffer[t],n=this.offsetBuffer[i],r=this.offsetBuffer[i+1];return hB(this.decodedDictionary,n,r)}decodeDictionary(){return this.symbolLengthBuffer??=this.offsetToLengthBuffer(this.symbolOffsetBuffer),function(t,i,n){let r=new Uint32Array(i.length);for(let t=1;t<i.length;t++)r[t]=r[t-1]+i[t-1];let a=new Uint8Array(function(t,i){let n=0;for(let r=0;r<i.length;r++){let a=i[r];255===a?(n++,r++):n+=t[a]}return n}(i,n)),o=0;for(let s=0;s<n.length;s++){let l=n[s];if(255===l)s++,a[o++]=n[s];else{let n=i[l],s=r[l];for(;n-- >0;)a[o++]=t[s++]}}return a}(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let i=new Uint32Array(t.length-1),n=t[0];for(let r=1;r<t.length;r++){let a=t[r];i[r-1]=a-n,n=a}return i}};function ud(t,i,n,r,a){let o,s,l,c,d,h=a,u,p;for(let t=0;t<r;t++){let t=hD(i,n);switch(t.physicalStreamType){case uw.PRESENT:{let r=new hP(hL(i,t.numValues,t.byteLength,n),t.numValues);h=a??r;break}case uw.OFFSET:s=hV(i,n,t,void 0,h);break;case uw.LENGTH:{let r=h$(i,n,t);uT.DICTIONARY===t.logicalStreamType.lengthType?o=r:uT.SYMBOL===t.logicalStreamType.lengthType?c=r:u=r;break}case uw.DATA:{let r=i.subarray(n.get(),n.get()+t.byteLength);n.add(t.byteLength);let a=t.logicalStreamType.dictionaryType;uC.FSST===a?d=r:uC.SINGLE===a||uC.SHARED===a?l=r:uC.NONE===a&&(p=r)}}}return function(t,i,n,r,a,o,s){if(i){if(!n||!r||!a||!o)throw Error(`Incomplete FSST dictionary string column "${t}"`);return new uc(t,n,r,a,o,i,s)}}(t,d,s,o,l,c,h)??function(t,i,n,r,a){if(i){if(!n||!r)throw Error(`Incomplete dictionary string column "${t}"`);return a?new ul(t,n,r,i,a):new ul(t,n,r,i)}}(t,l,s,o,h)??function(t,i,n,r,a){if(i&&n){if(r)return a?new ul(t,r,i,n,a):new ul(t,r,i,n);if(a&&a.size()!==i.length-1){let r=new Uint32Array(a.size()),o=0;for(let t=0;t<a.size();t++)a.get(t)?r[t]=o++:r[t]=0;return new ul(t,r,i,n,a)}return a?new us(t,i,n,a):new us(t,i,n)}}(t,u,p,s,h)}var uh,uu,up,um,uf,ug,u_,uv,uy,ub,ux,uw,uC,uE,uT,uk,uA,uI,uS,uD,uP=class extends d1{constructor(t,i,n){super(t,new Uint8Array,n??i.length),this.values=i}getValueFromBuffer(t){return this.values[t]}};function uM(t,i,n,r){let a=Object.create(null),o=i;for(;o<n;){let i=uR(t[o++],r);if("string"!=typeof i)throw Error(`Map key dictionary index does not resolve to a string: ${i}`);let s=uz(t,o,n,r);a[i]=s.value,o=s.nextIndex}return{value:a,nextIndex:o}}function uz(t,i,n,r){if(i>=n)throw Error("Unexpected end of map value stream");let a=t[i];if(a===A.FALSE)return{value:!1,nextIndex:i+1};if(a===A.TRUE)return{value:!0,nextIndex:i+1};if(a===A.START_MAP){let a=uL(t,i,n);return{value:uM(t,i+2,a,r).value,nextIndex:a}}if(a===A.START_LIST){let a=uL(t,i,n),o=[],s=i+2;for(;s<a;){let i=uz(t,s,a,r);o.push(i.value),s=i.nextIndex}return{value:o,nextIndex:a}}return{value:uR(a,r),nextIndex:i+1}}function uL(t,i,n){if(i+1>=n)throw Error("Missing length for nested map/list payload");let r=t[i+1];if(r<2)throw Error(`Invalid nested payload length: ${r}`);let a=i+r;if(a>n)throw Error("Nested payload exceeds containing payload bounds");return a}function uR(t,i){let n=t-A.COUNT;if(n<0||n>=i.length)throw Error(`Scalar dictionary index out of range: ${t}`);return i[n]}function uF(t,i){for(let n of i)t.push(n)}function uO(t){return t instanceof hP}(T=uD||={})[T.STRING=1]="STRING",T[T.INT32=2]="INT32",T[T.UINT32=4]="UINT32",T[T.INT64=8]="INT64",T[T.UINT64=16]="UINT64",T[T.FLOAT=32]="FLOAT",T[T.DOUBLE=64]="DOUBLE",T[T.PRESENCE=128]="PRESENCE",(k=A||={})[k.FALSE=0]="FALSE",k[k.TRUE=1]="TRUE",k[k.START_MAP=2]="START_MAP",k[k.START_LIST=3]="START_LIST",k[k.COUNT=4]="COUNT";function uB(t){switch(t){case 0:case 1:case 2:case 3:return{nullable:(1&t)!=0,columnScope:0,type:"scalarType",scalarType:{longID:(2&t)!=0,type:"logicalType",logicalType:0}};case 4:return{nullable:!1,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:0,children:[]}};case 30:return{nullable:!1,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:1,children:[]}};case 31:return{nullable:!0,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:2,children:[]}};default:let i;var n=t;switch(n){case 10:case 11:i=0;break;case 12:case 13:i=1;break;case 14:case 15:i=2;break;case 16:case 17:i=3;break;case 18:case 19:i=4;break;case 20:case 21:i=5;break;case 22:case 23:i=6;break;case 24:case 25:i=7;break;case 26:case 27:i=8;break;case 28:case 29:i=9;break;default:return null}return{nullable:!!(1&n),columnScope:0,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:i}}}}function uN(t){return 30===t||31===t}let uV=new TextDecoder,u$="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function uj(t,i){let n=hc(t,i,1)[0];if(0===n)return"";let r=i.get(),a=t.subarray(r,r+n);return i.add(n),uV.decode(a)}var uU=class{constructor(t,i){switch(this._featureData=t,this.properties=this._featureData.properties||{},this._featureData.geometry?.type){case uA.POINT:case uA.MULTIPOINT:this.type=1;break;case uA.LINESTRING:case uA.MULTILINESTRING:this.type=2;break;case uA.POLYGON:case uA.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=i,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let i of this._featureData.geometry.coordinates){let n=[];for(let t of i)n.push(new R(t.x,t.y));t.push(n)}return t}},uq=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new uU(this.features[t],this.extent)}},uG=class{constructor(t){this.layers={};let i=function(t,i=!0){let n=new hr(0),r=[];for(;n.get()<t.length;){let s=hc(t,n,1)[0]>>>0,l=n.get()+s;if(l>t.length)throw Error(`Block overruns tile: ${l} > ${t.length}`);let c=hc(t,n,1)[0]>>>0;if(1!==c&&2!==c){n.set(l);continue}let[d,h]=function(t,i){let n={};n.featureTables=[];let r={};if(r.name=uj(t,i),0===r.name.length)throw Error("Missing layer name");let a=hc(t,i,1)[0]>>>0,o=hc(t,i,1)[0]>>>0;r.columns=Array(o);for(let n=0;n<o;n++)r.columns[n]=function(t,i){let n,r=hc(t,i,1)[0]>>>0,a=uB(r);if(!a)throw Error(`Unsupported column type code ${r}. Supported: ${u$}`);if(r>=10)n=uj(t,i);else if(r<4)n="id";else if(4===r)n="geometry";else throw Error(`Unsupported column type code ${r}. Supported: ${u$}`);let o={...a,name:n};if("complexType"===o.type&&uN(r)){let n=hc(t,i,1)[0]>>>0,r=o.complexType;r.children=Array(n);for(let a=0;a<n;a++)r.children[a]=function t(i,n){let r,a,o=hc(i,n,1)[0]>>>0,s=o>=10?uB(o):null;if(!s)throw Error(`Unsupported field type code ${o}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let l={...s,name:uj(i,n)};if("complexType"===l.type&&uN(o)){let r=l.complexType,a=hc(i,n,1)[0]>>>0;r.children=Array(a);for(let o=0;o<a;o++)r.children[o]=t(i,n)}return r=l.name,a=l.nullable,"scalarType"===l.type?{type:"scalarField",scalarField:l.scalarType,name:r,nullable:a}:{type:"complexField",complexField:l.complexType,name:r,nullable:a}}(t,i)}return o}(t,i);return n.featureTables.push(r),[n,a]}(t,n),u=d.featureTables[0],p=null,m=null,f=[],g=0;for(let r of u.columns){var a,o;let s=r.name;if("scalarType"===r.type&&r.scalarType?.type==="logicalType"&&0===r.scalarType.logicalType){let a=null;if(r.nullable){let i=hD(t,n),r=n.get(),o=hL(t,i.numValues,i.byteLength,n);n.set(r+i.byteLength),a=new hP(o,i.numValues)}let o=hD(t,n);g=a?a.size():o.decompressedCount,p=function(t,i,n,r,a,o,s=!1){let l=i.scalarType?.longID?6:4,c="number"==typeof o?void 0:o,d=hK(a,o,t,n,6===l?"int64":"int32");if(4===l)switch(d){case uk.FLAT:return new d5(r,hV(t,n,a,void 0,c),o);case uk.SEQUENCE:{let i=hG(t,n,a);return new d8(r,i[0],i[1],a.numRleValues,!1)}case uk.CONST:return new d7(r,hq(t,n,a),o,!1)}switch(d){case uk.FLAT:let h;return s?new d4(r,(h=function(t,i,n,r){if(n.physicalLevelTechnique===ux.VARINT)return function(t,i,n){switch(i.logicalLevelTechnique1){case hn.DELTA:return i.logicalLevelTechnique2===hn.RLE&&(t=hg(t,i.runs,i.numRleValues)),function(t){t[0]=hp(t[0]);let i=t.length/4*4,n=1;if(i>=4)for(;n<i-4;n+=4){let i=t[n],r=t[n+1],a=t[n+2],o=t[n+3];t[n]=hp(i)+t[n-1],t[n+1]=hp(r)+t[n],t[n+2]=hp(a)+t[n+1],t[n+3]=hp(o)+t[n+2]}for(;n!==t.length;++n)t[n]=hp(t[n])+t[n-1]}(t),t;case hn.RLE:var r,a;return r=t,a=i,n?function(t,i,n){let r=new Float64Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];s=hp(s),r.fill(s,a,a+o),a+=o}return r}(r,a.runs,a.numRleValues):hg(r,a.runs,a.numRleValues);case hn.NONE:return n&&function(t){for(let i=0;i<t.length;i++)t[i]=hp(t[i])}(t),t;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}}(function(t,i,n){let r=new Float64Array(n);for(let a=0;a<n;a++)r[a]=function(t,i){let n,r;return r=t[i.get()],i.increment(),n=127&r,r<128||(r=t[i.get()],i.increment(),n|=(127&r)<<7,r<128)||(r=t[i.get()],i.increment(),n|=(127&r)<<14,r<128)||(r=t[i.get()],i.increment(),n|=(127&r)<<21,r<128)?n:function(t,i,n){let r,a;if(a=i[n.get()],n.increment(),r=(112&a)>>4,a<128||(a=i[n.get()],n.increment(),r|=(127&a)<<3,a<128)||(a=i[n.get()],n.increment(),r|=(127&a)<<10,a<128)||(a=i[n.get()],n.increment(),r|=(127&a)<<17,a<128)||(a=i[n.get()],n.increment(),r|=(127&a)<<24,a<128)||(a=i[n.get()],n.increment(),r|=(1&a)<<31,a<128))return 0x100000000*r+(t>>>0);throw Error("Expected varint not more than 10 bytes")}(n|=(15&(r=t[i.get()]))<<28,t,i)}(t,i);return r}(t,i,n.numValues),n,r);let a=hU(t,i,n),o=r?hW(a,n):hY(a,n);return Float64Array.from(o,Number)}(t,n,a,!1),c?hM(h,c,0):h),o):new hJ(r,hZ(t,n,a,c),o);case uk.SEQUENCE:{let i=hH(t,n,a);return new hQ(r,i[0],i[1],a.numRleValues,!1)}case uk.CONST:return new ua(r,hX(t,n,a),o,!1)}throw Error("Vector type not supported for id column.")}(t,r,n,s,o,a??g,i)}else if("complexType"===r.type&&r.complexType?.type==="physicalType"&&0===r.complexType.physicalType){let i=hc(t,n,1)[0];if(0===g){let i=n.get();g=hD(t,n).decompressedCount,n.set(i)}m=function(t,i,n,r,a){var o,s,l,c,d,h,u,p,m,f,g;let _,v,y,b=hD(t,n),x,w,C,E;if(hK(b,r,t,n)===uk.CONST){let p=hq(t,n,b),m,f,g,_;for(let r=0;r<i-1;r++){let i=hD(t,n);switch(i.physicalStreamType){case uw.LENGTH:switch(i.logicalStreamType.lengthType){case uT.GEOMETRIES:m=h$(t,n,i);break;case uT.PARTS:f=h$(t,n,i);break;case uT.RINGS:g=h$(t,n,i);break;case uT.TRIANGLES:_=h$(t,n,i)}break;case uw.OFFSET:switch(i.logicalStreamType.offsetType){case uE.VERTEX:x=hV(t,n,i);break;case uE.INDEX:E=hV(t,n,i)}break;case uw.DATA:uC.VERTEX===i.logicalStreamType.dictionaryType?w=hN(t,n,i,a):(C={numBits:i.numBits,coordinateShift:i.coordinateShift},w=hV(t,n,i,a))}}return E?void 0!==m||void 0!==f?new h9(r,p,_,E,w,{geometryOffsets:m,partOffsets:f,ringOffsets:g}):new h9(r,p,_,E,w,void 0):void 0===C?(o={geometryOffsets:m,partOffsets:f,ringOffsets:g},s=x,l=w,new h4(r,p,uS.VEC_2,o,s,l)):(c={geometryOffsets:m,partOffsets:f,ringOffsets:g},d=x,h=w,u=C,new h4(r,p,uS.MORTON,c,d,h,u))}let T=hV(t,n,b),k,A,I,S;for(let r=0;r<i-1;r++){let i=hD(t,n);switch(i.physicalStreamType){case uw.LENGTH:switch(i.logicalStreamType.lengthType){case uT.GEOMETRIES:k=hV(t,n,i);break;case uT.PARTS:A=hV(t,n,i);break;case uT.RINGS:I=hV(t,n,i);break;case uT.TRIANGLES:S=h$(t,n,i)}break;case uw.OFFSET:switch(i.logicalStreamType.offsetType){case uE.VERTEX:x=hV(t,n,i);break;case uE.INDEX:E=hV(t,n,i)}break;case uw.DATA:uC.VERTEX===i.logicalStreamType.dictionaryType?w=hN(t,n,i,a):(C={numBits:i.numBits,coordinateShift:i.coordinateShift},w=hV(t,n,i,a))}}return k?(_=ut(T,k,2),A&&I?(v=ui(T,_,A,!1),y=function(t,i,n,r){let a=new Uint32Array(n[n.length-1]+1),o=0;a[0]=o;let s=1,l=1,c=0;for(let d=0;d<t.length;d++){let h=t[d],u=i[d+1]-i[d];if(0!==h&&3!==h)for(let t=0;t<u;t++){let t=n[s]-n[s-1];s++;for(let i=0;i<t;i++)o=a[l++]=o+r[c++]}else for(let t=0;t<u;t++)a[l++]=++o,s++}return a}(T,_,v,I)):A&&(v=function(t,i,n){let r=new Uint32Array(i[i.length-1]+1),a=0;r[0]=a;let o=1,s=0;for(let l=0;l<t.length;l++){let c=t[l],d=i[l+1]-i[l];if(4===c||1===c)for(let t=0;t<d;t++)a=r[o++]=a+n[s++];else for(let t=0;t<d;t++)r[o++]=++a}return r}(T,_,A))):A&&I?(v=ut(T,A,1),y=ui(T,v,I,!0)):A&&(v=ut(T,A,0)),E&&!v?new ue(T,S,E,w,void 0):E?new ue(T,S,E,w,{geometryOffsets:_,partOffsets:v,ringOffsets:y}):void 0===C?h6(T,{geometryOffsets:_,partOffsets:v,ringOffsets:y},x,w):(p={geometryOffsets:_,partOffsets:v,ringOffsets:y},m=x,f=w,g=C,new h8(uS.MORTON,T,p,m,f,g))}(t,i,n,g,void 0)}else{let i=!function(t){if("scalarType"===t.type){let i=t.scalarType;if("physicalType"===i.type)switch(i.physicalType){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:default:return!1;case 9:return!0}if("logicalType"===i.type)return!1}else if("complexType"===t.type){let i=t.complexType;if("physicalType"===i.type)switch(i.physicalType){case 0:case 1:case 2:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}(r)?1:hc(t,n,1)[0];if(0===i)continue;let s=(a=g,o=void 0,"scalarType"===r.type?o&&!o.has(r.name)?(hz(i,t,n),null):function(t,i,n,r,a,o){let s;if(0===t)return null;if(o.nullable){let t=hD(i,n),r=t.numValues,a=n.get(),o=hL(i,r,t.byteLength,n);n.set(a+t.byteLength),s=new hP(o,t.numValues)}let l=s??r;switch(a.physicalType){case 4:case 3:return function(t,i,n,r,a){let o=hD(t,i),s=hK(o,a,t,i),l=3===r.physicalType;if(s===uk.FLAT){let r=uO(a)?a:void 0,s=l?hN(t,i,o,void 0,r):hV(t,i,o,void 0,r);return new d5(n.name,s,a)}if(s===uk.SEQUENCE){let r=hG(t,i,o);return new d8(n.name,r[0],r[1],o.numRleValues,l)}let c=l?function(t,i,n){let r=hj(t,i,n);return 1===r.length?hh(r[0]):hh(r[1])}(t,i,o):hq(t,i,o);return new d7(n.name,c,a,l)}(i,n,o,a,l);case 9:{let r=o.nullable?t-1:t;return ud(o.name,i,n,r,s)??null}case 0:return function(t,i,n,r){let a=hD(t,i),o=a.numValues,s=i.get(),l=uO(r)?r:void 0,c=hL(t,o,a.byteLength,i,l);i.set(s+a.byteLength);let d=new hP(c,o);return new un(n.name,d,r)}(i,n,o,l);case 6:case 5:return function(t,i,n,r,a){let o=hD(t,i),s=hK(o,r,t,i,"int64"),l=5===a.physicalType;if(s===uk.FLAT){let a=uO(r)?r:void 0,s=l?hW(hU(t,i,o),o,a):hZ(t,i,o,a);return new hJ(n.name,s,r)}if(s===uk.SEQUENCE){let r=hH(t,i,o);return new hQ(n.name,r[0],r[1],o.numRleValues,l)}let c=l?function(t,i,n){let r=hU(t,i,n);return 1===r.length?hu(r[0]):hu(r[1])}(t,i,o):hX(t,i,o);return new ua(n.name,c,r,l)}(i,n,o,l,a);case 7:return function(t,i,n,r){let a=hD(t,i),o=uO(r)?r:void 0,s=hR(t,i,a.numValues,o);return new ur(n.name,s,r)}(i,n,o,l);case 8:return function(t,i,n,r){let a=hD(t,i),o=uO(r)?r:void 0,s=hF(t,i,a.numValues,o);return new d4(n.name,s,r)}(i,n,o,l);default:throw Error(`The specified data type for the field is currently not supported: ${a}`)}}(i,t,n,a,r.scalarType,r):r.complexType?.physicalType===2?function(t,i,n,r){let a=function(t){let i="complexType"===t.type?t.complexType.children:void 0;return i&&0!==i.length?i.map(i=>t.name+(i.name??"")):[t.name]}(n);if(0===r)return a.map(t=>new uP(t,[]));let o=function(t,i,n){let r=t[i.get()];i.add(1);let a=hV(t,i,hD(t,i)),o=n-1,s=[];r&uD.STRING&&(o-=function(t,i,n){let r=t[i.get()];i.add(1);let a=ud("",t,i,r);if(a)for(let t=0;t<a.size;t++)n.push(a.getValue(t));return r}(t,i,s)),o-=function(t,i,n,r){var a;let o=0;return n&uD.INT32?(uF(r,hN(t,i,hD(t,i))),o++):n&uD.INT64&&(uF(r,hW(hU(t,i,a=hD(t,i)),a,void 0)),o++),n&uD.UINT32?(uF(r,hV(t,i,hD(t,i))),o++):n&uD.UINT64&&(uF(r,hZ(t,i,hD(t,i))),o++),o}(t,i,r,s),o-=function(t,i,n,r){let a=0;return n&uD.FLOAT&&(uF(r,hR(t,i,hD(t,i).numValues)),a++),n&uD.DOUBLE&&(uF(r,hF(t,i,hD(t,i).numValues)),a++),a}(t,i,r,s);let l,c=0;if(r&uD.PRESENCE){let n=function(t,i){let n=hD(t,i);if(n.physicalStreamType!==uw.PRESENT)throw Error(`Expected PRESENT stream for map column but found: ${n.physicalStreamType}`);let r=n.numValues,a=i.get(),o=new hP(hL(t,r,n.byteLength,i),r);return i.set(a+n.byteLength),{value:o,count:r}}(t,i);l=n.value,c=n.count,o--}let d=new Uint32Array;if(o>0&&(d=hV(t,i,hD(t,i)),o--),0!==o)throw Error(`Unexpected number of remaining streams while decoding map column: ${o}`);return{lengthStream:a,dictionary:s,presentStream:l,presentCount:c,flattenedValues:d}}(t,i,r),s=(o.presentStream?o.presentCount:o.lengthStream.length)/a.length,l=[],c=0,d=0;for(let t=0;t<a.length;t++){let i=function(t,i,n,r,a){let{lengthStream:o,flattenedValues:s,presentStream:l,dictionary:c}=t,d=i*n,h=n,u;if(l){u=new hP(new Uint8Array(Math.ceil(n/8)),n),h=0;for(let t=0;t<n;t++)l.get(d+t)&&(u.set(t,!0),h++)}let p=r+h;if(p>o.length)throw Error("Merged map counts underflow while decoding child streams");let m=Array(n),f=r,g=a;for(let t=0;t<n;t++){var _,v,y,b;if(l&&!l.get(d+t)){m[t]=null;continue}let i=g+o[f++];if(i>s.length)throw Error("Map value stream underflow while decoding feature payload");let n=(_=s,v=g,y=i,b=c,y-v==1||_[v]===A.START_LIST?uz(_,v,y,b):uM(_,v,y,b));m[t]=n.value,g=n.nextIndex}let x=0;for(let t=r;t<p;t++)x+=o[t];let w=a+x;if(g!==w)throw Error("Unused flattened map values remain after decode");return{value:m,nullabilityBuffer:u,countsEnd:p,valuesEnd:w}}(o,t,s,c,d);l.push(new uP(a[t],i.value,i.nullabilityBuffer)),c=i.countsEnd,d=i.valuesEnd}return l}(t,n,r,i):0===i?null:function(t,i,n,r){let a,o,s,l,c=!1;for(;!c;){let n=hD(t,i);switch(n.physicalStreamType){case uw.LENGTH:uT.DICTIONARY===n.logicalStreamType.lengthType?a=h$(t,i,n):s=h$(t,i,n);break;case uw.DATA:uC.SINGLE===n.logicalStreamType.dictionaryType||uC.SHARED===n.logicalStreamType.dictionaryType?(o=t.subarray(i.get(),i.get()+n.byteLength),c=!0):l=t.subarray(i.get(),i.get()+n.byteLength),i.add(n.byteLength)}}if("complexType"!==n.type)throw Error(`Shared dictionary column ${n.name} must be a complex (struct) column.`);if(!a||!o)throw Error(`Incomplete shared dictionary for column "${n.name}"`);let d=n.complexType.children,h=[],u=l?{}:void 0,p=0;for(let c of d){let d,m=hc(t,i,1)[0];if(0===m)continue;let f=c.name?`${n.name}${c.name}`:n.name;if(r&&!r.has(f)){hz(m,t,i);continue}if("scalarField"!==c.type||9!==c.scalarField.physicalType)throw Error("Currently only scalar string fields are implemented for a struct.");if(m>1&&!c.nullable||1===m&&c.nullable)throw Error(`The number of streams for the child field ${c.name} does not match its nullability. nullibilty: ${c.nullable}, numStreams: ${m}`);if(c.nullable){let n=hD(t,i);d=new hP(hL(t,n.numValues,n.byteLength,i),n.numValues)}let g=hV(t,i,hD(t,i),void 0,d);if(l){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${f}"`);h[p++]=new uc(f,g,a,o,s,l,d,u)}else h[p++]=new ul(f,g,a,o,d)}return h}(t,n,r,o));if(s)if(Array.isArray(s))for(let t of s)f.push(t);else f.push(s)}}let _=new d9(u.name,m,p,f,h);r.push(_),n.set(l)}return r}(new Uint8Array(t));this.layers=i.reduce((t,i)=>({...t,[i.name]:new uq(i)}),{})}};function uH(t,i,n,r,a){return tr(t,(t,o)=>{let s=i instanceof aK?i.get(o):null;return"object"==typeof s&&s&&"evaluate"in s?s.evaluate(n,r,void 0,a):s})}function uZ(t,i){return i-t}aw("FeatureIndex",class{constructor(t,i){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new ab(8192,16,0),this.grid3D=new ab(8192,16,0),this.featureIndexArray=new o$,this.promoteId=i}insert(t,i,n,r,a,o){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,a);let l=o?this.grid3D:this.grid;for(let t of i){let i=[1/0,1/0,-1/0,-1/0];for(let n of t)i[0]=Math.min(i[0],n.x),i[1]=Math.min(i[1],n.y),i[2]=Math.max(i[2],n.x),i[3]=Math.max(i[3],n.y);i[0]<8192&&i[1]<8192&&i[2]>=0&&i[3]>=0&&l.insert(s,i[0],i[1],i[2],i[3])}}loadVTLayers(){return this.vtLayers||("mlt"===this.encoding?this.vtLayers=new uG(this.rawTileData).layers:this.vtLayers=new l8(new cW(this.rawTileData)).layers,this.sourceLayerCoder=new d0(this.vtLayers?Object.keys(this.vtLayers).sort():[dQ])),this.vtLayers}query(t,i,n,r){this.loadVTLayers();let a=t.params,o=8192/t.tileSize/t.scale,s=rN(a.filter,"queryRenderedFeatures filter",a.globalState),l=t.queryGeometry,c=t.queryPadding*o,d=l0.fromPoints(l),h=this.grid.query(d.minX-c,d.minY-c,d.maxX+c,d.maxY+c),u=l0.fromPoints(t.cameraQueryGeometry).expandBy(c);for(let i of this.grid3D.query(u.minX,u.minY,u.maxX,u.maxY,(i,n,r,a)=>(function(t,i,n,r,a){for(let o of t)if(i<=o.x&&n<=o.y&&r>=o.x&&a>=o.y)return!0;let o=[new R(i,n),new R(i,a),new R(r,a),new R(r,n)];if(t.length>2){for(let i of o)if(sj(t,i))return!0}for(let i=0;i<t.length-1;i++)if(function(t,i,n){let r=n[0],a=n[2];if(t.x<r.x&&i.x<r.x||t.x>a.x&&i.x>a.x||t.y<r.y&&i.y<r.y||t.y>a.y&&i.y>a.y)return!1;let o=tc(t,i,n[0]);return o!==tc(t,i,n[1])||o!==tc(t,i,n[2])||o!==tc(t,i,n[3])}(t[i],t[i+1],o))return!0;return!1})(t.cameraQueryGeometry,i-c,n-c,r+c,a+c)))h.push(i);h.sort(uZ);let p={},m;for(let c of h){if(c===m)continue;m=c;let d=this.featureIndexArray.get(c),h=null;this.loadMatchingFeature(p,d.bucketIndex,d.sourceLayerIndex,d.featureIndex,s,a.layers,a.availableImages,i,n,r,(i,n,r)=>(h||=sM(i),n.queryIntersectsFeature({queryGeometry:l,feature:i,featureState:r,geometry:h,zoom:this.z,transform:t.transform,pixelsToTileUnits:o,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return p}loadMatchingFeature(t,i,n,r,a,o,s,l,c,d,h){let u=this.bucketLayerIDs[i];if(o&&!u.some(t=>o.has(t)))return;let p=this.sourceLayerCoder.decode(n),m=this.vtLayers[p].feature(r);if(a.needGeometry){let t=sz(m,!0);if(!a.filter(new a$(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!a.filter(new a$(this.tileID.overscaledZ),m))return;let f=this.getId(m,p);for(let i of u){if(o&&!o.has(i))continue;let n=l[i];if(!n)continue;let a={};f&&d&&(a=d.getState(n.sourceLayer||"_geojsonTileLayer",f));let u=e6({},c[i]);u.paint=uH(u.paint,n.paint,m,a,s),u.layout=uH(u.layout,n.layout,m,a,s);let p=!h||h(m,n,a);if(!p)continue;let g=new d2(m,this.z,this.x,this.y,f);g.layer=u;let _=t[i];void 0===_&&(_=t[i]=[]),_.push({featureIndex:r,feature:g,intersectionZ:p})}}lookupSymbolFeatures(t,i,n,r,a,o,s,l){let c={};this.loadVTLayers();let d=rN(a.filterSpec,"queryRenderedFeatures symbol filter",a.globalState);for(let a of t)this.loadMatchingFeature(c,n,r,a,d,o,s,l,i);return c}hasLayer(t){for(let i of this.bucketLayerIDs)for(let n of i)if(t===n)return!0;return!1}getId(t,i){let n=t.id;if(this.promoteId){let r="string"==typeof this.promoteId?this.promoteId:this.promoteId[i];"boolean"==typeof(n=t.properties[r])&&(n=Number(n)),void 0===n&&t.properties?.cluster&&this.promoteId&&(n=Number(t.properties.cluster_id))}return n}},{omit:["rawTileData","sourceLayerCoder"]});var uX=class{constructor(t,i){this.max=t,this.onRemove=i,this.reset()}reset(){for(let t in this.data)for(let i of this.data[t])i.timeout&&clearTimeout(i.timeout),this.onRemove(i.value);return this.data={},this.order=[],this}add(t,i,n){let r=t.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);let a={value:i,timeout:void 0};if(void 0!==n&&(a.timeout=setTimeout(()=>{this.remove(t,a)},n)),this.data[r].push(a),this.order.push(r),this.order.length>this.max){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){let i=this.data[t].shift();return i.timeout&&clearTimeout(i.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),i.value}getByKey(t){let i=this.data[t];return i?i[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,i){if(!this.has(t))return this;let n=t.wrapped().key,r=void 0===i?0:this.data[n].indexOf(i),a=this.data[n][r];return this.data[n].splice(r,1),a.timeout&&clearTimeout(a.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(a.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(t){let i=[];for(let n in this.data)for(let r of this.data[n])t(r.value)||i.push(r);for(let t of i)this.remove(t.value.tileID,t)}};n.d(i,{$:()=>cd,$n:()=>eB,$r:()=>ef,$t:()=>a$,A:()=>dl,Ai:()=>K,An:()=>tB,Ar:()=>ty,At:()=>sh,B:()=>cN,Bn:()=>e1,Br:()=>eL,Bt:()=>o1,C:()=>dD,Ci:()=>q,Cr:()=>eZ,Ct:()=>s7,Di:()=>Q,Dn:()=>tq,Dr:()=>tT,Dt:()=>sR,E:()=>dx,Ei:()=>ee,Er:()=>tw,F:()=>c1,Fi:()=>B,Fr:()=>e4,Ft:()=>s_,G:()=>cu,Gn:()=>e$,Gr:()=>eD,Gt:()=>oq,Hn:()=>to,Hr:()=>eF,Ht:()=>oU,I:()=>c0,Ii:()=>O,Ir:()=>tt,It:()=>sv,J:()=>cp,Jn:()=>function t(i,n){if(Array.isArray(i)){if(!Array.isArray(n)||i.length!==n.length)return!1;for(let r=0;r<i.length;r++)if(!t(i[r],n[r]))return!1;return!0}if("object"==typeof i&&i&&null!==n){if("object"!=typeof n||Object.keys(i).length!==Object.keys(n).length)return!1;for(let r in i)if(!t(i[r],n[r]))return!1;return!0}return i===n},Jr:()=>eT,K:()=>cf,Kn:()=>eV,Kr:()=>eA,Kt:()=>o4,L:()=>c2,Li:()=>F,Ln:()=>eX,Lr:()=>eO,Lt:()=>sb,M:()=>c9,Mi:()=>Z,Mn:()=>tM,Mr:()=>eq,Mt:()=>sm,Ni:()=>N,Nn:()=>tz,Nr:()=>e9,Nt:()=>sf,O:()=>dp,Oi:()=>W,On:()=>tO,Or:()=>ti,Ot:()=>sz,P:()=>c3,Pi:()=>V,Pn:()=>tL,Pr:()=>tl,Pt:()=>sg,Q:()=>cl,Qn:()=>eY,Qr:()=>er,Qt:()=>aH,R:()=>cQ,Ri:()=>R,Rt:()=>se,S:()=>dz,Si:()=>J,Sr:()=>tx,T:()=>dE,Ti:()=>H,Tr:()=>eJ,Tt:()=>s6,Un:()=>eU,Ur:()=>eR,Ut:()=>oj,Vn:()=>e5,Vr:()=>ez,Vt:()=>o8,Wn:()=>ej,Wr:()=>eS,Wt:()=>o5,Xn:()=>tb,Xr:()=>eE,Xt:()=>a4,Y:()=>ch,Yr:()=>eC,Yt:()=>a0,Z:()=>cc,Zn:()=>eW,Zr:()=>es,_:()=>d$,_i:()=>j,_n:()=>tX,_r:()=>eK,a:()=>d2,ai:()=>ep,an:()=>av,ar:()=>tE,at:()=>ci,bi:()=>ei,bn:()=>tV,br:()=>e8,ci:()=>ex,cn:()=>a_,cr:()=>tC,d:()=>dX,di:()=>el,dr:()=>tf,dt:()=>l0,ei:()=>eh,er:()=>tn,et:()=>cs,f:()=>dZ,fi:()=>el,fn:()=>iU,fr:()=>tI,g:()=>dq,gi:()=>ew,gr:()=>tr,gt:()=>lj,h:()=>dG,hi:()=>ev,hr:()=>eQ,ht:()=>l$,ii:()=>eu,ir:()=>e0,it:()=>ct,ji:()=>X,jr:()=>eH,jt:()=>sp,k:()=>ds,ki:()=>Y,kn:()=>tF,kr:()=>th,kt:()=>su,li:()=>ec,ln:()=>rN,lr:()=>tg,m:()=>dJ,mi:()=>eg,mn:()=>tK,mr:()=>tu,n:()=>uX,ni:()=>ea,nn:()=>aI,nr:()=>ta,nt:()=>ca,oi:()=>ey,on:()=>ay,or:()=>e2,ot:()=>cn,p:()=>dW,pi:()=>e_,pn:()=>iM,pr:()=>tD,q:()=>cm,qn:()=>eN,qr:()=>eI,qt:()=>or,ri:()=>ea,rr:()=>td,rt:()=>cr,si:()=>eb,st:()=>l7,ti:()=>em,tn:()=>aS,tr:()=>e6,tt:()=>co,u:()=>dH,ui:()=>ed,ur:()=>tS,vi:()=>U,vn:()=>tZ,vr:()=>te,w:()=>dA,wi:()=>G,wn:()=>t$,wr:()=>tv,wt:()=>s4,xi:()=>et,xr:()=>eG,y:()=>dN,yi:()=>$,yn:()=>tW,yr:()=>tp,yt:()=>lr,zr:()=>eP,zt:()=>oP},{Cn:(t,i)=>tU(e6(t,{type:"json"}),i),En:tU,Et:t=>"circle"===t.type,H:t=>"line"===t.type,In:85.051129,Jt:t=>"raster"===t.type,Rn:t=>new Promise((i,n)=>{let r=new Image;r.onload=()=>{i(r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},r.onerror=()=>n(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."));let a=new Blob([new Uint8Array(t)],{type:"image/png"});r.src=URL.createObjectURL(a)}),Sn:(t,i)=>tU(e6(t,{type:"arrayBuffer"}),i),St:t=>"heatmap"===t.type,Tn:t=>{let i=window.document.createElement("video");return i.muted=!0,new Promise(n=>{for(let r of(i.onloadstart=()=>{n(i)},t)){let t=window.document.createElement("source");tq(r)||(i.crossOrigin="Anonymous"),t.src=r,i.appendChild(t)}})},V:cF,W:t=>"fill-extrusion"===t.type,Yn:e3,Zt:aU,_t:t=>"color-relief"===t.type,b:t=>"background"===t.type,bt:t=>"hillshade"===t.type,ct:6371008.8,dn:i1,ft:t=>"fill"===t.type,gn:tY,hn:["type","source","source-layer","minzoom","maxzoom","filter","layout"],in:ag,jn:tR,s:dQ,sn:ad,ut:l2,v:t=>"custom"===t.type,x:t=>"symbol"===t.type,xn:tN,zn:t_})},776(t,i,n){"use strict";let r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w;n.r(i);var C,E=n(554),T="6.8.0";function k(){var t=new E.Fi(4);return E.Fi!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}let A={frame(t,i,n,r){let a=r||window,o=a.requestAnimationFrame(t=>{s(),i(t)}),{unsubscribe:s}=(0,E.Ar)(t.signal,"abort",()=>{s(),a.cancelAnimationFrame(o),n(new E.Mn(t.signal.reason))},!1)},frameAsync(t,i){return new Promise((n,r)=>{this.frame(t,n,r,i)})},getImageData(t,i=0){return this.getImageCanvasContext(t).getImageData(-i,-i,t.width+2*i,t.height+2*i)},getImageCanvasContext(t){let i=window.document.createElement("canvas"),n=i.getContext("2d",{willReadFrequently:!0});if(!n)throw Error("failed to create canvas 2d context");return i.width=t.width,i.height=t.height,n.drawImage(t,0,0,t.width,t.height),n},resolveURL:t=>((r||=document.createElement("a")).href=t,r.href),get hardwareConcurrency(){return"u">typeof navigator&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return void 0===o?!!matchMedia&&(a??=matchMedia("(prefers-reduced-motion: reduce)")).matches:o},set prefersReducedMotion(e){o=e}},I=new class{constructor(){this._frozenAt=null}getCurrentTime(){return null===this._frozenAt?performance.now():this._frozenAt}setNow(t){this._frozenAt=t}restoreNow(){this._frozenAt=null}isFrozen(){return null!==this._frozenAt}};function S(){return I.getCurrentTime()}function D(t){I.setNow(t)}function P(){I.restoreNow()}function M(){return I.isFrozen()}var z=class t{static{this.docStyle="u">typeof window&&window.document?.documentElement.style}static{this.selectProp=!t.docStyle||"userSelect"in t.docStyle?"userSelect":"webkitUserSelect"}static create(t,i,n){let r=window.document.createElement(t);return void 0!==i&&(r.className=i),n&&n.appendChild(r),r}static createNS(t,i){return window.document.createElementNS(t,i)}static disableDrag(){t.docStyle&&t.selectProp&&(t.userSelect=t.docStyle[t.selectProp],t.docStyle[t.selectProp]="none")}static enableDrag(){t.docStyle&&t.selectProp&&(t.docStyle[t.selectProp]=t.userSelect)}static suppressClickInternal(i){i.preventDefault(),i.stopPropagation(),window.removeEventListener("click",t.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",t.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",t.suppressClickInternal,!0)},0)}static getScale(t){let i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}static getPoint(t,i,n){let r=i.boundingClientRect;return new E.Ri((n.clientX-r.left)/i.x-t.clientLeft,(n.clientY-r.top)/i.y-t.clientTop)}static mousePos(i,n){let r=t.getScale(i);return t.getPoint(i,r,n)}static touchPos(i,n){let r=[],a=t.getScale(i);for(let o of n)r.push(t.getPoint(i,a,o));return r}static sanitize(i){let n=new DOMParser().parseFromString(i,"text/html").body||document.createElement("body");for(let t of n.querySelectorAll("script"))t.remove();return t.clean(n),n.innerHTML}static isPossiblyDangerous(t,i){let n=i.replace(/\s+/g,"").toLowerCase();if(["src","href","xlink:href"].includes(t)&&(n.includes("javascript:")||n.includes("data:"))||t.startsWith("on"))return!0}static clean(i){for(let n of i.children)t.removeAttributes(n),t.clean(n)}static removeAttributes(i){for(let{name:n,value:r}of Array.from(i.attributes))t.isPossiblyDangerous(n,r)&&i.removeAttribute(n)}};(C=s||={}).resetRequestQueue=()=>{g=[],_=0,v=0,y={}},C.addThrottleControl=t=>{let i=v++;return y[i]=t,i},C.removeThrottleControl=t=>{delete y[t],x()},C.transformAndGetImage=async function(t,i,n,r,a=!0,o){let l=await t.transformRequest(i,n);return(0,E.Pn)(r.signal),s.getImage(l,r,a,o)},C.getImage=(t,i,n=!0,r)=>new Promise((a,o)=>{t.headers||={},t.headers.accept="image/webp,*/*",(0,E.tr)(t,{type:"image"}),g.push({abortController:i,requestParameters:t,supportImageRefresh:n,imageBitmapOptions:r,state:"queued",onError:t=>{o(t)},onSuccess:t=>{a(t)}}),x()}),b=async t=>{t.state="running";let{requestParameters:i,supportImageRefresh:n,imageBitmapOptions:r,onError:a,onSuccess:o,abortController:s}=t,l=!1===n&&!r&&!(0,E.mr)(self)&&!(0,E.kn)(i.url)&&(!i.headers||Object.keys(i.headers).reduce((t,i)=>t&&"accept"===i,!0));_++;let c=l?w(i,s):(0,E.En)(i,s);try{let i,n=await c;delete t.abortController,t.state="completed",n.data instanceof HTMLImageElement||(0,E.lr)(n.data)?o(n):o(n.data&&0!==n.data.byteLength?{data:await (i=n.data,"function"==typeof createImageBitmap?(0,E.zn)(i,r):(0,E.Rn)(i)),cacheControl:n.cacheControl,expires:n.expires}:{data:null,cacheControl:n.cacheControl,expires:n.expires})}catch(i){delete t.abortController,a((0,E.$n)(i))}finally{_--,x()}},x=()=>{let t=(()=>{for(let t of Object.keys(y))if(y[t]())return!0;return!1})()?E.jn.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:E.jn.MAX_PARALLEL_IMAGE_REQUESTS;for(let i=_;i<t&&g.length>0;i++){let t=g.shift();if(t.abortController.signal.aborted){i--;continue}b(t)}},w=(t,i)=>new Promise((n,r)=>{let a=new Image,o=t.url,s=t.credentials;s&&"include"===s?a.crossOrigin="use-credentials":(s&&"same-origin"===s||!(0,E.Dn)(o))&&(a.crossOrigin="anonymous"),i.signal.addEventListener("abort",()=>{a.src="",r(new E.Mn(i.signal.reason))}),a.fetchPriority="high",a.onload=()=>{a.onerror=a.onload=null,n({data:a})},a.onerror=()=>{a.onerror=a.onload=null,i.signal.aborted||r(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."))},a.src=o}),s.resetRequestQueue();var L=class{constructor(t){this._transformRequestFn=t??null}transformRequest(t,i){return this._transformRequestFn&&this._transformRequestFn(t,i)||{url:t}}setTransformRequest(t){this._transformRequestFn=t}},R=class extends E.vn{},F=class extends R{},O=class extends R{constructor(t={}){super("style.load",t)}},B=class extends R{constructor(t,i={}){super(t,i),this.dataType="style"}},N=class extends R{constructor(t,i={}){super(t,i),this.dataType="source"}},V=class extends R{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,n,r={}){n=n instanceof MouseEvent?n:new MouseEvent(t,n);let a=z.mousePos(i.getCanvas(),n),o=i.unproject(a);super(t,(0,E.tr)({point:a,lngLat:o,originalEvent:n},r)),this._defaultPrevented=!1,this.target=i}},$=class extends R{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,n){let r="touchend"===t?n.changedTouches:n.touches,a=z.touchPos(i.getCanvasContainer(),r),o=a.map(t=>i.unproject(t)),s=a.reduce((t,i,n,r)=>t.add(i.div(r.length)),new E.Ri(0,0)),l=i.unproject(s);super(t,{points:a,point:s,lngLats:o,lngLat:l,originalEvent:n}),this._defaultPrevented=!1}},j=class extends R{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i){super("wheel",{originalEvent:i}),this._defaultPrevented=!1}},U=class extends R{},q=class extends R{constructor(t={}){super("terrain",t)}},G=class extends R{constructor(t={}){super("projectiontransition",t)}},H=class extends R{},Z=class extends R{constructor(t={}){super("styleimagemissing",t)}};function X(t){t=t.slice();let i=Object.create(null);for(let n=0;n<t.length;n++)i[t[n].id]=t[n];for(let n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=function(t,i){let n={};for(let i in t)"ref"!==i&&(n[i]=t[i]);return E.hn.forEach(t=>{t in i&&(n[t]=i[t])}),n}(t[n],i[t[n].ref]));return t}function W(t,i){if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(let n=0;n<t.length;n++)if(!W(t[n],i[n]))return!1;return!0}if("object"==typeof t&&t&&null!==i){if("object"!=typeof i||Object.keys(t).length!==Object.keys(i).length)return!1;for(let n in t)if(!W(t[n],i[n]))return!1;return!0}return t===i}function Y(t,i){t.push(i)}function K(t,i,n){Y(n,{command:"addSource",args:[t,i[t]]})}function J(t,i,n){Y(i,{command:"removeSource",args:[t]}),n[t]=!0}function Q(t,i,n,r,a,o){for(let s in i||={},t||={})Object.prototype.hasOwnProperty.call(t,s)&&(W(t[s],i[s])||n.push({command:o,args:[r,s,i[s],a]}));for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&!Object.prototype.hasOwnProperty.call(t,s)&&(W(t[s],i[s])||n.push({command:o,args:[r,s,i[s],a]}))}function ee(t){return t.id}function et(t,i){return t[i.id]=i,t}function ei(t){let i=[];if("string"==typeof t)i.push({id:"default",url:t});else if(t&&t.length>0){let n=[];for(let{id:r,url:a}of t){let t=`${r}${a}`;n.includes(t)||(n.push(t),i.push({id:r,url:a}))}}return i}function en(t,i,n){try{let r=new URL(t);return r.pathname+=`${i}${n}`,r.toString()}catch{throw Error(`Invalid sprite URL "${t}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}async function er(t,i,n,r){let a=ei(t),o=n>1?"@2x":"",l={},c={};for(let{id:t,url:n}of a){let a=await i.transformRequest(en(n,o,".json"),"SpriteJSON");l[t]=(0,E.Cn)(a,r);let d=await i.transformRequest(en(n,o,".png"),"SpriteImage");c[t]=s.getImage(d,r)}return await Promise.all([...Object.values(l),...Object.values(c)]),ea(l,c)}async function ea(t,i){let n={};for(let r in t){n[r]={};let a=(await i[r]).data;if(!a)throw Error(`Could not load sprite image for ${r}: the response is empty`);let o=A.getImageCanvasContext(a),s=(await t[r]).data;for(let t in s){let{width:i,height:a,x:l,y:c,sdf:d,pixelRatio:h,stretchX:u,stretchY:p,content:m,textFitWidth:f,textFitHeight:g}=s[t],_={width:i,height:a,x:l,y:c,context:o};n[r][t]={data:null,pixelRatio:h,sdf:d,stretchX:u,stretchY:p,content:m,textFitWidth:f,textFitHeight:g,spriteData:_}}}return n}var eo=class extends E.yn{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let t of Object.keys(this.images))this.removeImage(t);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(let{ids:t,promiseResolve:i}of this.requestors)i(this._getImagesForIds(t));this.requestors=[]}}getImage(t){let i=this.images[t];if(i&&!i.data&&i.spriteData){let t=i.spriteData;i.data=new E.Tt({width:t.width,height:t.height},t.context.getImageData(t.x,t.y,t.width,t.height).data),i.spriteData=null}return i}addImage(t,i){if(this.images[t])throw Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,i)&&(this.images[t]=i,this._imagesIds=null,i.isWebGLImage&&this.updateImage(t,i,!1))}_validate(t,i){let n=!0,r=i.data||i.spriteData;return this._validateStretch(i.stretchX,r?.width)||(this.fire(new E._n(Error(`Image "${t}" has invalid "stretchX" value`))),n=!1),this._validateStretch(i.stretchY,r?.height)||(this.fire(new E._n(Error(`Image "${t}" has invalid "stretchY" value`))),n=!1),this._validateContent(i.content,i)||(this.fire(new E._n(Error(`Image "${t}" has invalid "content" value`))),n=!1),n}_validateStretch(t,i){if(!t)return!0;let n=0;for(let r of t){if(r[0]<n||r[1]<r[0]||i<r[1])return!1;n=r[1]}return!0}_validateContent(t,i){if(!t)return!0;if(4!==t.length)return!1;let n=i.spriteData,r=n?.width||i.data.width,a=n?.height||i.data.height;return!(t[0]<0)&&!(r<t[0])&&!(t[1]<0)&&!(a<t[1])&&!(t[2]<0)&&!(r<t[2])&&!(t[3]<0)&&!(a<t[3])&&!(t[2]<t[0])&&t[3]>=t[1]}updateImage(t,i,n=!0){let r=this.images[t];if(n){let t=r.data||r.spriteData;if(t.width!==i.data.width||t.height!==i.data.height)throw Error(`size mismatch between old image (${t.width}x${t.height}) and new image (${i.data.width}x${i.data.height}).`)}i.version=(r.version??0)+1,this.images[t]=i,this.updateVersion++}removeImage(t){let i=this.images[t];i&&(delete this.images[t],this._imagesIds=null,i.userImage?.onRemove&&i.userImage.onRemove())}listImages(){return this._imagesIds??=Object.keys(this.images),this._imagesIds}_getSpriteImageId(t,i){return"default"===t?i:`${t}:${i}`}setSpriteImages(t,i){let n=this._spriteImagesIds[t]??[],r=[];for(let n in i){let a=this._getSpriteImageId(t,n);r.push(a),a in this.images?this.updateImage(a,i[n],!1):this.addImage(a,i[n])}let a=new Set(r),o=n.filter(t=>!a.has(t));for(let t of o)this.removeImage(t);return this._spriteImagesIds[t]=r,{loaded:r,removed:o}}removeSpriteImages(t){let i=this._spriteImagesIds[t]??[];for(let t of i)this.removeImage(t);return delete this._spriteImagesIds[t],i}removeAllSpriteImages(){let t=Object.values(this._spriteImagesIds).flat();for(let i of t)this.removeImage(i);return this._spriteImagesIds={},t}setMissingImageResolver(t){this.missingImageResolver=t}getImages(t){return new Promise((i,n)=>{let r=!0;if(!this.isLoaded())for(let i of t)this.images[i]||(r=!1);this.isLoaded()||r?i(this._getImagesForIds(t)):this.requestors.push({ids:t,promiseResolve:i})})}async _getImagesForIds(t){let i=new Set(t.filter(t=>!this.getImage(t))),n=this.missingImageResolver;n&&await Promise.allSettled(Array.from(i,t=>n(t)));let r={};for(let n of t){let t=this.getImage(n);t&&(i.delete(n),r[n]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,textFitWidth:t.textFitWidth,textFitHeight:t.textFitHeight,hasRenderCallback:!!t.userImage?.render,isWebGLImage:t.isWebGLImage})}for(let t of i)this.fire(new Z({id:t})),(0,E.Pr)(`Image "${t}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return r}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(let i of t){if(this._renderCallbacksDispatchedThisFrame[i])continue;this._renderCallbacksDispatchedThisFrame[i]=!0;let t=this.getImage(i);t||(0,E.Pr)(`Image with ID: "${i}" was not found`),(0,E.L)(t)&&this.updateImage(i,t)}}cloneImages(){let t={};for(let i in this.images){let n=this.images[i];t[i]={...n,data:n.data?n.data.clone():null}}return t}},es=class{constructor(t){this._imageManager=t,this._entries={},this._image=new E.Tt({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&=(this._texture.destroy(),null),this._entries={},this._image=new E.Tt({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:t,height:i}=this._image;return{width:t,height:i}}getPattern(t){let i=this._imageManager.getImage(t);if(!i)return null;let n=this._entries[t];if(n?.image!==i){let n={w:i.data.width+2,h:i.data.height+2,x:0,y:0};this._entries[t]={bin:n,position:new E.P(n,i),image:i}}else{if(n.position.version===i.version)return n.position;n.position.version=i.version}return this._update(),this._entries[t].position}bind(t){let i=t.gl;this._texture?this._dirty&&=(this._texture.update(this._image),!1):(this._texture=new E.yt(t,this._image,i.RGBA),this._dirty=!1),this._texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}_update(){for(let t in this._entries)this._imageManager.getImage(t)||delete this._entries[t];let t=[];for(let i in this._entries)t.push(this._entries[i].bin);let{w:i,h:n}=(0,E.F)(t),r=this._image;for(let t in r.resize({width:i||1,height:n||1}),this._entries){let{bin:i}=this._entries[t],n=i.x+1,a=i.y+1,o=this._entries[t].image.data,s=o.width,l=o.height;E.Tt.copy(o,r,{x:0,y:0},{x:n,y:a},{width:s,height:l}),E.Tt.copy(o,r,{x:0,y:l-1},{x:n,y:a-1},{width:s,height:1}),E.Tt.copy(o,r,{x:0,y:0},{x:n,y:a+l},{width:s,height:1}),E.Tt.copy(o,r,{x:s-1,y:0},{x:n-1,y:a},{width:1,height:l}),E.Tt.copy(o,r,{x:0,y:0},{x:n+s,y:a},{width:1,height:l})}this._dirty=!0}};let el={start:0,end:1114111},ec=0;function ed(t,i){return t>i||t>1114111?null:{start:t,end:Math.min(i,1114111)}}var eh=class{constructor(t){this.requestManager=t,this._faces={},this._registered=new Set}setFontFaces(t){for(let[i,n]of(this._unregisterAll(),this._faces={},Object.entries(t??{}))){let t=Array.isArray(n)?n:[n];this._faces[i]=t.map(t=>this._declareFontFace(i,t)).filter(t=>null!==t)}}hasFontFaces(){return Object.keys(this._faces).length>0}async getFontFamily(t,i){for(let n of t.split(","))for(let t of this._faces[n.trim()]??[])if(function(t,i){return t.ranges.some(({start:t,end:n})=>i>=t&&i<=n)}(t,i)&&(t.loaded??=this._loadFontFace(t),await t.loaded))return t.family;return null}_declareFontFace(t,i){let n="string"==typeof i?{url:i}:i;if("string"!=typeof n?.url)return(0,E.Pr)(`Ignoring the font face declared for "${t}": it has no URL.`),null;let r=`maplibre-gl-font-face-${ec++}`,a=n["unicode-range"];if(!a?.length)return{url:n.url,ranges:[el],family:r};let o=[];for(let t of a){let i=function(t){let i=/^u\+([0-9a-f]*)(\?+)$/i.exec(t);if(i){let[,t,n]=i;return t.length+n.length>6?null:ed(parseInt(`${t}${"0".repeat(n.length)}`,16),parseInt(`${t}${"f".repeat(n.length)}`,16))}let n=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(t);if(!n)return null;let r=parseInt(n[1],16);return ed(r,void 0===n[2]?r:parseInt(n[2],16))}(t);if(!i){(0,E.Pr)(`Ignoring the unicode range "${t}" of the font face at ${n.url}: it is not a valid range.`);continue}o.push(i)}return o.length?{url:n.url,ranges:o,family:r}:null}async _loadFontFace(t){let i;if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return(0,E.Pr)(`Ignoring the font face at ${t.url}: this environment has no CSS Font Loading API.`),!1;try{return i=new FontFace(t.family,await this._downloadFontFile(t.url)),!!Object.values(this._faces).some(i=>i.includes(t))&&(document.fonts.add(i),this._registered.add(i),await i.load(),!0)}catch(n){return i&&this._unregister(i),(0,E.Pr)(`Ignoring the font face at ${t.url}: ${(0,E.$n)(n).message}`),!1}}async _downloadFontFile(t){let i=await this.requestManager.transformRequest(t,"Glyphs"),n=await (0,E.Sn)(i,new AbortController);if(!n?.data)throw Error(`the response was empty for the font file at ${t}`);return n.data}_unregister(t){document.fonts?.delete(t),this._registered.delete(t)}_unregisterAll(){for(let t of this._registered)document.fonts?.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}};let eu=new Float64Array(256);for(let t=0;t<256;t++){let i=.5-(t/255)**(1/2.2);eu[t]=i*Math.abs(i)}eu[255]=-1e20;var ep=class{constructor({fontSize:t=24,buffer:i=3,radius:n=8,cutoff:r=.25,fontFamily:a="sans-serif",fontWeight:o="normal",fontStyle:s="normal",lang:l=null}={}){this.buffer=i,this.radius=n,this.cutoff=r,this.lang=l;let c=this.size=t+4*i,d=this._createCanvas(c),h=this.ctx=d.getContext("2d",{willReadFrequently:!0});h.font=`${s} ${o} ${t}px ${a}`,h.textBaseline="alphabetic",h.textAlign="left",h.fillStyle="black",this.gridOuter=new Float64Array(c*c),this.gridInner=new Float64Array(c*c),this.f=new Float64Array(c),this.z=new Float64Array(c+1),this.v=new Uint16Array(c)}_createCanvas(t){if("u">typeof OffscreenCanvas)return new OffscreenCanvas(t,t);let i=document.createElement("canvas");return i.width=i.height=t,i}draw(t){let{width:i,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:a,actualBoundingBoxRight:o}=this.ctx.measureText(t),s=Math.ceil(n),l=Math.floor(-a),c=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o)-l)),d=Math.max(0,Math.min(this.size-this.buffer,s+Math.ceil(r))),h=c+2*this.buffer,u=d+2*this.buffer,p=Math.max(h*u,0),m=new Uint8ClampedArray(p),f={data:m,width:h,height:u,glyphWidth:c,glyphHeight:d,glyphTop:s,glyphLeft:l,glyphAdvance:i};if(0===c||0===d)return f;let{ctx:g,buffer:_,gridInner:v,gridOuter:y}=this;this.lang&&(g.lang=this.lang),g.clearRect(_,_,c,d),g.fillText(t,_-l,_+s);let b=g.getImageData(_,_,c,d);y.fill(1e20,0,p),v.fill(0,0,p);let x=3;for(let t=0;t<d;t++){let i=(t+_)*h+_;for(let t=0;t<c;t++,x+=4,i++){let t=b.data[x];if(0===t)continue;let n=eu[t];y[i]=Math.max(0,n),v[i]=Math.max(0,-n)}}em(y,0,0,h,u,h,this.f,this.v,this.z);let w=Math.min(_,1);em(v,_-w,_-w,c+2*w,d+2*w,h,this.f,this.v,this.z);let C=255/this.radius,E=255*(1-this.cutoff);for(let t=0;t<p;t++){let i=Math.sqrt(y[t])-Math.sqrt(v[t]);m[t]=Math.round(E-C*i)}return f}};function em(t,i,n,r,a,o,s,l,c){for(let d=i;d<i+r;d++)ef(t,n*o+d,o,a,s,l,c);for(let d=n;d<n+a;d++)ef(t,d*o+i,1,r,s,l,c)}function ef(t,i,n,r,a,o,s){o[0]=0,s[0]=-1e20,s[1]=1e20,a[0]=t[i];for(let l=1,c=0,d=0;l<r;l++){a[l]=t[i+l*n];let r=l*l;do{let t=o[c];d=(a[l]-a[t]+r-t*t)/(l-t)/2}while(d<=s[c]&&--c>-1);o[++c]=l,s[c]=d,s[c+1]=1e20}for(let l=0,c=0;l<r;l++){for(;s[c+1]<l;)c++;let r=o[c],d=l-r;t[i+l*n]=a[r]+d*d}}let eg=E.gn.layout_symbol["text-font"].default.join(","),e_=(t,i)=>{let n=new ep(t);return n.buffer=i,n};var ev=class{constructor(t,i,n,r=e_){this.requestManager=t,this.localIdeographFontFamily=i,this.entries={},this.lang=n,this.fontFaceManager=new eh(t),this.createRasterizer=r}setURL(t){this.url=t}setFontFaces(t){this.fontFaceManager.setFontFaces(t),this.entries={}}async getGlyphs(t){let i=[];for(let n in t)for(let r of t[n])i.push(this._getAndCacheGlyphsPromise(n,r));let n=await Promise.all(i),r={};for(let{stack:t,id:i,glyph:a}of n)r[t]||={},r[t][i]=a&&{id:a.id,bitmap:a.bitmap.clone(),metrics:a.metrics};return r}async _getAndCacheGlyphsPromise(t,i){this.entries[t]??={glyphs:{},requests:{},ranges:{}};let n=this.entries[t],r=n.glyphs[i];if(void 0!==r)return{stack:t,id:i,glyph:r};let a=i.codePointAt(0),o=this.fontFaceManager.hasFontFaces()?await this.fontFaceManager.getFontFamily(t,a):null;return o?(r=n.glyphs[i]=await this._drawGlyph(n,t,i,o),{stack:t,id:i,glyph:r}):(0,E.B)(i)?(r=n.glyphs[i]=null,{stack:t,id:i,glyph:r}):!this.url||this._charUsesLocalIdeographFontFamily(a)?(r=n.glyphs[i]=await this._drawGlyph(n,t,i),{stack:t,id:i,glyph:r}):await this._downloadAndCacheRangePromise(t,i)}async _downloadAndCacheRangePromise(t,i){let n=i.codePointAt(0),r=this.entries[t],a=Math.floor(n/256);if(r.ranges[a])return{stack:t,id:i,glyph:null};r.requests[a]||=this._loadGlyphRange(t,a);try{let o=await r.requests[a];for(let t in o)r.glyphs[String.fromCodePoint(+t)]=o[+t];return r.ranges[a]=!0,{stack:t,id:i,glyph:o[n]||null}}catch(s){let o=r.glyphs[i]=await this._drawGlyph(r,t,i);return this._warnOnMissingGlyphRange(o,a,n,(0,E.$n)(s)),{stack:t,id:i,glyph:o}}}async _loadGlyphRange(t,i){let n=256*i,r=n+255,a=await this.requestManager.transformRequest(this.url.replace("{fontstack}",t).replace("{range}",`${n}-${r}`),"Glyphs"),o=await (0,E.Sn)(a,new AbortController);if(!o?.data)throw Error(`Could not load glyph range. range: ${i}, ${n}-${r}`);let s={};for(let t of(0,E.R)(o.data))s[t.id]=t;return s}_warnOnMissingGlyphRange(t,i,n,r){let a=256*i,o=n.toString(16).padStart(4,"0").toUpperCase();(0,E.Pr)(`Unable to load glyph range ${i}, ${a}-${a+255}. Rendering codepoint U+${o} locally instead. ${r}`)}_charUsesLocalIdeographFontFamily(t){return!!this.localIdeographFontFamily&&(0,E.tn)(t)}async _drawGlyph(t,i,n,r){let a=(await this._getTinySDF(t,i,n,r)).draw(n),o=/^\p{gc=Cf}+$/u.test(n);return{id:n.codePointAt(0),bitmap:new E.wt({width:a.width||60,height:a.height||60},a.data),metrics:{width:o?0:a.glyphWidth/2||24,height:a.glyphHeight/2||24,left:a.glyphLeft/2+.5||0,top:a.glyphTop/2-27.5||-8,advance:o?0:a.glyphAdvance/2||24,isDoubleResolution:!0}}}_getTinySDF(t,i,n,r){if(r){let i=(0,E.B)(n),a=i?"clusterTinySDFs":"fontFaceTinySDFs";return t[a]??={},t[a][r]||=this._createTinySDF(r,!1,i?3:1),t[a][r]}let a=i===eg&&""!==this.localIdeographFontFamily&&this._charUsesLocalIdeographFontFamily(n.codePointAt(0)),o=a?"ideographTinySDF":"tinySDF";return t[o]||=this._createTinySDF(a?this.localIdeographFontFamily:i),t[o]}async _createTinySDF(t,i=!0,n=1){let r=t?t.split(","):[];r.push("sans-serif");let a=r.map(t=>/[-\w]+/.test(t)?t:`'${CSS.escape(t)}'`).join(","),o=i?this._fontWeight(r[0]):void 0,s=i?this._fontStyle(r[0]):"normal";if("u">typeof document&&document.fonts?.load)try{await document.fonts.load(`${s} ${o||"normal"} 48px ${a}`)}catch(t){(0,E.Pr)(`Failed to load font "${a}": ${(0,E.$n)(t).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(n-1)/4)),radius:16,cutoff:.25,fontFamily:a,fontWeight:o,fontStyle:s,lang:this.lang},6)}_fontStyle(t){return/italic/i.test(t)?"italic":/oblique/i.test(t)?"oblique":"normal"}_fontWeight(t){let i;for(let[n,r]of Object.entries({thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950}))RegExp(`\\b${n}\\b`,"i").test(t)&&(i=`${r}`);return i}destroy(){for(let t in this.entries){let i=this.entries[t];i.tinySDF=null,i.ideographTinySDF=null,i.fontFaceTinySDFs={},i.glyphs={},i.requests={},i.ranges={}}this.entries={},this.fontFaceManager.destroy()}},ey=class extends E.yn{constructor(t,i){super(),this._transitionable=new E.Qt(l||=new E.Xt({anchor:new E.Yt(E.gn.light.anchor,"anchor"),position:new E.Yt(E.gn.light.position,"position"),color:new E.Yt(E.gn.light.color,"color"),intensity:new E.Yt(E.gn.light.intensity,"intensity")}),"light",i),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return(0,E.kr)(this.properties.get("position"))}setLight(t,i={}){if(!this._validate(E.sn.light,t,i))for(let i in t){let n=t[i];i.endsWith("-transition")?this._transitionable.setTransition(i.slice(0,-E.Zt.length),n):this._transitionable.setValue(i,n)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(t,i,n){return(0,E.on)(this,t,{value:i},n)}},eb=class extends E.yn{constructor(t,i){super(),this._transitionable=new E.Qt(c||=new E.Xt({"sky-color":new E.Yt(E.gn.sky["sky-color"],"sky-color"),"horizon-color":new E.Yt(E.gn.sky["horizon-color"],"horizon-color"),"fog-color":new E.Yt(E.gn.sky["fog-color"],"fog-color"),"fog-ground-blend":new E.Yt(E.gn.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new E.Yt(E.gn.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new E.Yt(E.gn.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new E.Yt(E.gn.sky["atmosphere-blend"],"atmosphere-blend")}),"sky",i),this.setSky(t),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new E.$t(0))}setSky(t,i={}){if(!this._validate(E.sn.sky,t,i))for(let i in t||={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}){let n=t[i];i.endsWith("-transition")?this._transitionable.setTransition(i.slice(0,-E.Zt.length),n):this._transitionable.setValue(i,n)}}getSky(){return this._transitionable.serialize()}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(t,i,n={}){return(0,E.on)(this,t,{value:i},n)}calculateFogBlendOpacity(t){return t<60?0:t<70?(t-60)/10:1}},ex=class{constructor(t,i){this.width=t,this.height=i,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(t,i){let n=t.join(",")+String(i);return this.dashEntry[n]||=this.addDash(t,i),this.dashEntry[n]}getDashRanges(t,i,n){let r=t.length%2==1,a=[],o=r?-t[t.length-1]*n:0,s=t[0]*n,l=!0;a.push({left:o,right:s,isDash:l,zeroLength:0===t[0]});let c=t[0];for(let i=1;i<t.length;i++){l=!l;let r=t[i];o=c*n,c+=r,s=c*n,a.push({left:o,right:s,isDash:l,zeroLength:0===r})}return a}addRoundDash(t,i,n){let r=i/2;for(let i=-n;i<=n;i++){let a=this.nextRow+n+i,o=this.width*a,s=0,l=t[0];for(let a=0;a<this.width;a++){a/l.right>1&&(l=t[++s]);let c=Math.min(Math.abs(a-l.left),Math.abs(a-l.right)),d,h=i/n*(r+1);if(l.isDash){let t=r-Math.abs(h);d=Math.sqrt(c*c+t*t)}else d=r-Math.sqrt(c*c+h*h);this.data[o+a]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(t){for(let i=t.length-1;i>=0;--i){let n=t[i],r=t[i+1];n.zeroLength?t.splice(i,1):r?.isDash===n.isDash&&(r.left=n.left,t.splice(i,1))}let i=t[0],n=t[t.length-1];i.isDash===n.isDash&&(i.left=n.left-this.width,n.right=i.right+this.width);let r=this.width*this.nextRow,a=0,o=t[0];for(let i=0;i<this.width;i++){i/o.right>1&&(o=t[++a]);let n=Math.min(Math.abs(i-o.left),Math.abs(i-o.right)),s=o.isDash?n:-n;this.data[r+i]=Math.max(0,Math.min(255,s+128))}}addDash(t,i){let n=7*!!i,r=2*n+1;if(this.nextRow+r>this.height)return(0,E.Pr)("LineAtlas out of space"),null;let a=0;for(let i of t)a+=i;if(0!==a){let r=this.width/a,o=this.getDashRanges(t,this.width,r);i?this.addRoundDash(o,r,n):this.addRegularDash(o)}let o={y:this.nextRow+n,height:2*n,width:a};return this.nextRow+=r,this.dirty=!0,o}bind(t){let i=t.gl;this.texture?(i.bindTexture(i.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,i.texSubImage2D(i.TEXTURE_2D,0,0,0,this.width,this.height,i.ALPHA,i.UNSIGNED_BYTE,this.data))):(this.texture=i.createTexture(),i.bindTexture(i.TEXTURE_2D,this.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.REPEAT),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.REPEAT),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.ALPHA,this.width,this.height,0,i.ALPHA,i.UNSIGNED_BYTE,this.data))}};function ew(t,i){if(i)try{return new Worker(t,{type:"module"})}catch(t){console.warn("Module worker not supported, falling back to classic worker",t)}return new Worker(t)}async function eC(t){let i=await fetch(t);if(!i.ok)throw Error(`Failed to fetch worker script (${i.status}): ${t}`);let n=new Blob([await i.text()],{type:"text/javascript"});return URL.createObjectURL(n)}async function eE(){let t=E.jn.WORKER_URL||function(){let t="file:///home/runner/work/openremote/openremote/node_modules/maplibre-gl/dist/maplibre-gl.mjs";if(!/^https?:/.test(t))return"";let i=t.endsWith("-dev.mjs")?"maplibre-gl-worker-dev.mjs":"maplibre-gl-worker.mjs";return new URL(`./${i}`,t).href}(),i=!t?.endsWith(".cjs");if(!function(t){if(!t)return!1;let i=globalThis.location;if(!i)return!1;try{return new URL(t,i.href).origin!==i.origin}catch{return!1}}(t))return ew(t,i);if(i){let n,r=(n=new Blob([`import ${JSON.stringify(new URL(t,"file:///home/runner/work/openremote/openremote/node_modules/maplibre-gl/dist/maplibre-gl.mjs").href)}`],{type:"text/javascript"}),URL.createObjectURL(n));try{return ew(r,i)}finally{URL.revokeObjectURL(r)}}let n=await eC(t);try{return ew(n,i)}finally{URL.revokeObjectURL(n)}}let eT="maplibre_preloaded_worker_pool";var ek=class t{constructor(){this.active={},this.workersPromise=null}async acquire(i){if(this.active[i]=!0,!this.workersPromise){let i=[];for(;i.length<t.workerCount;)i.push(eE());this.workersPromise=Promise.all(i)}return(await this.workersPromise).slice()}release(t){if(delete this.active[t],0===this.numActive()&&this.workersPromise){let t=this.workersPromise;this.workersPromise=null,t.then(t=>{for(let i of t)i.terminate()})}}isPreloaded(){return!!this.active[eT]}numActive(){return Object.keys(this.active).length}};let eA=Math.floor(A.hardwareConcurrency/2);function eI(){return d||=new ek}function eS(){eI().acquire(eT)}function eD(){let t=d;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(eT),d=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}ek.workerCount=(0,E.dr)(globalThis)?Math.max(Math.min(eA,3),1):1;var eP=class{constructor(t,i){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=i,this.removed=!1,this.actorsPromise=this.initActors(i)}async initActors(t){let i=await this.workerPool.acquire(t);if(this.removed)return[];if(this.actors=i.map((i,n)=>{let r=new E.g(i,t);return r.name=`Worker ${n}`,r}),!this.actors.length)throw Error("No actors found");return this.actors}async broadcast(t,i){return Promise.all((await this.actorsPromise).map(n=>n.sendAsync({type:t,data:i})))}async getActor(){let t=await this.actorsPromise;return this.currentActor=(this.currentActor+1)%t.length,t[this.currentActor]}async waitForInitComplete(){0===this.actors.length&&await this.actorsPromise}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(t=!0){for(let t of(this.removed=!0,this.actors))t.remove();this.actors=[],t&&this.workerPool.release(this.id)}async registerMessageHandler(t,i){for(let n of(await this.actorsPromise))n.registerMessageHandler(t,i)}async unregisterMessageHandler(t){for(let i of(await this.actorsPromise))i.unregisterMessageHandler(t)}};function eM(){return h||(h=new eP(eI(),E.xn)).registerMessageHandler("GR",(t,i,n)=>(0,E.En)(i,n)),h}function ez(t,i){let n=t.tileID,r=i.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}function eL(t,i){let n=t.feature,r=i.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}async function eR(t,i,n,r){let a=t;if(t.url?a=(await (0,E.Cn)(await i.transformRequest(t.url,"Source"),n)).data:await A.frameAsync(n,r),!a)return null;let o=(0,E.br)((0,E.tr)(a,t),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in a&&a.vector_layers&&(o.vectorLayerIds=a.vector_layers.map(t=>t.id)),o}var eF=class t{constructor(t,i){t&&(i?this.setSouthWest(t).setNorthEast(i):Array.isArray(t)&&(4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof E.st?new E.st(t.lng,t.lat):E.st.convert(t),this}setSouthWest(t){return this._sw=t instanceof E.st?new E.st(t.lng,t.lat):E.st.convert(t),this}extend(i){let n=this._sw,r=this._ne,a,o;if(i instanceof E.st)a=i,o=i;else if(i instanceof t){if(a=i._sw,o=i._ne,!a||!o)return this}else return Array.isArray(i)?4===i.length||i.every(Array.isArray)?this.extend(t.convert(i)):this.extend(E.st.convert(i)):i&&("lng"in i||"lon"in i)&&"lat"in i?this.extend(E.st.convert(i)):this;return n||r?(n.lng=Math.min(a.lng,n.lng),n.lat=Math.min(a.lat,n.lat),r.lng=Math.max(o.lng,r.lng),r.lat=Math.max(o.lat,r.lat)):(this._sw=new E.st(a.lng,a.lat),this._ne=new E.st(o.lng,o.lat)),this}getCenter(){return new E.st((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new E.st(this.getWest(),this.getNorth())}getSouthEast(){return new E.st(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:i,lat:n}=E.st.convert(t),r=this._sw.lat<=n&&n<=this._ne.lat,a=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=i&&i>=this._ne.lng),r&&a}intersects(i){if(!((i=t.convert(i)).getNorth()>=this.getSouth()&&i.getSouth()<=this.getNorth()))return!1;let n=Math.abs(this.getEast()-this.getWest()),r=Math.abs(i.getEast()-i.getWest());if(n>=360||r>=360)return!0;let a=(0,E.Fr)(this.getWest(),-180,180),o=(0,E.Fr)(this.getEast(),-180,180),s=(0,E.Fr)(i.getWest(),-180,180),l=(0,E.Fr)(i.getEast(),-180,180),c=a>o,d=s>l;return!!c&&!!d||(c?l>=a||s<=o:d?o>=s||a<=l:s<=o&&l>=a)}static convert(i){return i instanceof t||!i?i:new t(i)}static fromLngLat(i,n=0){let r=360*n/0x2637f09,a=r/Math.cos(Math.PI/180*i.lat);return new t(new E.st(i.lng-a,i.lat-r),new E.st(i.lng+a,i.lat+r))}adjustAntiMeridian(){let i=new E.st(this._sw.lng,this._sw.lat),n=new E.st(this._ne.lng,this._ne.lat);return i.lng>n.lng?new t(i,new E.st(n.lng+360,n.lat)):new t(i,n)}},eO=class{constructor(t,i,n){this.bounds=eF.convert(this.validateBounds(t)),this.minzoom=i||0,this.maxzoom=n||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){let i=2**t.z,n={minX:Math.floor((0,E.it)(this.bounds.getWest())*i),minY:Math.floor((0,E.at)(this.bounds.getNorth())*i),maxX:Math.ceil((0,E.it)(this.bounds.getEast())*i),maxY:Math.ceil((0,E.at)(this.bounds.getSouth())*i)};return t.x>=n.minX&&t.x<n.maxX&&t.y>=n.minY&&t.y<n.maxY}},eB=class extends E.yn{constructor(t,i,n,r){if(super(),this.id=t,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,(0,E.tr)(this,(0,E.br)(i,["url","scheme","tileSize","promoteId","encoding"])),this._options=(0,E.tr)({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r)}async load(t=!1){this._loaded=!1,this.fire(new N("dataloading")),this._tileJSONRequest=new AbortController;try{let i=await eR(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,i&&((0,E.tr)(this,i),i.bounds&&(this.tileBounds=new eO(i.bounds,this.minzoom,this.maxzoom)),this.fire(new N("data",{sourceDataType:"metadata"})),this.fire(new N("data",{sourceDataType:"content",sourceDataChanged:t})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,(0,E.Nn)(t)||this.fire(new E._n((0,E.$n)(t)))}}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.abort(),t(),this.load(!0)}setTiles(t){return this.setSourceProperty(()=>{this.tiles=t,this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}serialize(){return(0,E.tr)({},this._options)}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n={request:await this.map._requestManager.transformRequest(i,"Tile"),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:await this._getOverzoomParameters(t),etag:t.etag};n.request.collectResourceTiming=this._collectResourceTiming,await this.dispatcher.waitForInitComplete();let r="RT";if(t.actor&&"expired"!==t.state){if("loading"===t.state)return new Promise((i,n)=>{t.reloadPromise={resolve:i,reject:n}})}else t.actor=this.dispatcher.getReadyActor(),r="LT";t.abortController=new AbortController;try{let i=await t.actor.sendAsync({type:r,data:n},t.abortController);if(delete t.abortController,t.aborted)return;this._afterTileLoadWorkerResponse(t,i);let a={};return i?.etagUnmodified&&(a.unmodified=!0),a}catch(i){if(delete t.abortController,t.aborted||(0,E.Nn)(i))return;if(i&&404!==i.status)throw i;this._afterTileLoadWorkerResponse(t,null)}}async _getOverzoomParameters(t){if(t.tileID.canonical.z<=this.maxzoom||void 0===this.map._zoomLevelsToOverscale)return;let i=t.tileID.scaledTo(this.maxzoom).canonical,n=i.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:i,overzoomRequest:await this.map._requestManager.transformRequest(n,"Tile")}}_afterTileLoadWorkerResponse(t,i){if(i?.resourceTiming&&(t.resourceTiming=i.resourceTiming),i&&this.map._refreshExpiredTiles&&t.setExpiryData(i),t.etag=i?.etag,t.loadVectorData(i,this.map.painter),t.reloadPromise){let i=t.reloadPromise;t.reloadPromise=null,this.loadTile(t).then(i.resolve).catch(i.reject)}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController),t.actor&&await t.actor.sendAsync({type:"AT",data:{uid:t.uid,type:this.type,source:this.id}})}async unloadTile(t){t.unloadVectorData(),t.actor&&await t.actor.sendAsync({type:"RMT",data:{uid:t.uid,type:this.type,source:this.id}})}hasTransition(){return!1}},eN=class extends E.yn{constructor(t,i,n,r){super(),this.id=t,this.dispatcher=n,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=(0,E.tr)({type:"raster"},i),(0,E.tr)(this,(0,E.br)(i,["url","scheme","tileSize"]))}async load(t=!1){this._loaded=!1,this.fire(new N("dataloading")),this._tileJSONRequest=new AbortController;try{let i=await eR(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,i&&((0,E.tr)(this,i),i.bounds&&(this.tileBounds=new eO(i.bounds,this.minzoom,this.maxzoom)),this.fire(new N("data",{sourceDataType:"metadata"})),this.fire(new N("data",{sourceDataType:"content",sourceDataChanged:t})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,(0,E.Nn)(t)||this.fire(new E._n((0,E.$n)(t)))}}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}setSourceProperty(t){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null),t(),this.load(!0)}setTiles(t){return this.setSourceProperty(()=>{this.tiles=t,this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}serialize(){return(0,E.tr)({},this._options)}setPremultiplyAlpha(t){return this._premultiplyAlpha===t||this.setSourceProperty(()=>{this._premultiplyAlpha=t}),this}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n=this._premultiplyAlpha,r=n?void 0:{premultiplyAlpha:"none"};t.abortController=new AbortController;try{let a=await s.transformAndGetImage(this.map._requestManager,i,"Tile",t.abortController,this.map._refreshExpiredTiles,r);if(delete t.abortController,t.aborted){t.state="unloaded";return}if(a){this.map._refreshExpiredTiles&&(a.cacheControl||a.expires)&&t.setExpiryData({cacheControl:a.cacheControl,expires:a.expires});let i=this.map.painter.context,r=i.gl,o=a.data??new E.Tt({width:1,height:1},new Uint8Array(4));t.texture=this.map.painter.getTileTexture(o.width),t.texture?t.texture.update(o,{useMipmap:!0,premultiply:n}):(t.texture=new E.yt(i,o,r.RGBA,{useMipmap:!0,premultiply:n}),t.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_NEAREST)),t.state="loaded"}}catch(i){if(delete t.abortController,t.aborted)t.state="unloaded";else if(i)throw t.state="errored",i}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController)}async unloadTile(t){t.texture&&this.map.painter.saveTileTexture(t.texture)}hasTransition(){return!1}},eV=class extends eN{constructor(t,i,n,r){super(t,i,n,r),this.type="raster-dem",this.maxzoom=22,this._options=(0,E.tr)({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox",this.redFactor=i.redFactor,this.greenFactor=i.greenFactor,this.blueFactor=i.blueFactor,this.baseShift=i.baseShift}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.abortController=new AbortController;try{let n=await s.transformAndGetImage(this.map._requestManager,i,"Tile",t.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete t.abortController,t.aborted){t.state="unloaded";return}if(n){if(this.map._refreshExpiredTiles&&(n.cacheControl||n.expires)&&t.setExpiryData({cacheControl:n.cacheControl,expires:n.expires}),!n.data){t.state="loaded";return}let i=n.data,r=(0,E.lr)(i)&&(0,E.Li)()?i:await this.readImageNow(i),a={type:this.type,uid:t.uid,source:this.id,rawImageData:r,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(t.actor&&"expired"!==t.state&&"reloading"!==t.state)return;await this.dispatcher.waitForInitComplete(),t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getReadyActor()),t.dem=await t.actor.sendAsync({type:"LDT",data:a}),t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.needsColorReliefPrepare=!0,t.state="loaded"}}catch(i){if(delete t.abortController,t.aborted)t.state="unloaded";else if(i)throw t.state="errored",i}}async readImageNow(t){if("u">typeof VideoFrame&&(0,E.Ii)()){let i=t.width+4,n=t.height+4;try{return new E.Tt({width:i,height:n},await (0,E.wr)(t,-2,-2,i,n))}catch{}}return A.getImageData(t,2)}_getNeighboringTiles(t){let i=t.canonical,n=2**i.z,r=(i.x-1+n)%n,a=0===i.x?t.wrap-1:t.wrap,o=(i.x+1+n)%n,s=i.x+1===n?t.wrap+1:t.wrap,l={};return l[new E.d(t.overscaledZ,a,i.z,r,i.y).key]={backfilled:!1},l[new E.d(t.overscaledZ,s,i.z,o,i.y).key]={backfilled:!1},i.y>0&&(l[new E.d(t.overscaledZ,a,i.z,r,i.y-1).key]={backfilled:!1},l[new E.d(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new E.d(t.overscaledZ,s,i.z,o,i.y-1).key]={backfilled:!1}),i.y+1<n&&(l[new E.d(t.overscaledZ,a,i.z,r,i.y+1).key]={backfilled:!1},l[new E.d(t.overscaledZ,t.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new E.d(t.overscaledZ,s,i.z,o,i.y+1).key]={backfilled:!1}),l}async unloadTile(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&await t.actor.sendAsync({type:"RDT",data:{type:this.type,uid:t.uid,source:this.id}})}};function e$(t,i){return i?t.properties[i]:t.id}function ej(t){if(!t)return{};let i={};return i.removeAll=t.removeAll,i.remove=new Set(t.remove||[]),i.add=new Map(t.add?.map(t=>[t.id,t])),i.update=new Map(t.update?.map(t=>[t.id,t])),i}function eU(t){return"GeometryCollection"===t.type?t.geometries.flatMap(t=>eU(t)):function t(i){return i&&0!==i.length?"number"==typeof i[0]?[i]:i.flatMap(i=>t(i)):[]}(t.coordinates)}function eq(t){let i=new eF,n;switch(t.type){case"FeatureCollection":n=t.features.flatMap(t=>eU(t.geometry));break;case"Feature":n=eU(t.geometry);break;default:n=eU(t)}if(0===n.length)return i;for(let t of n){let[n,r]=t;i.extend([n,r])}return i}var eG=class extends E.yn{constructor(t,i,n,r){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._isUpdatingWorker=!1,this._pendingWorkerUpdate={data:i.data},this.actorPromise=n.getActor(),this.setEventedParent(r),this._data="string"==typeof i.data?{url:i.data}:{geojson:i.data},this._options=(0,E.tr)({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId,void 0!==i.clusterMaxZoom&&this.maxzoom<=i.clusterMaxZoom&&(0,E.Pr)(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i.clusterMaxZoom}".`),this.workerOptions=(0,E.tr)({source:this.id,geojsonVtOptions:{buffer:this._pixelsToTileUnits(void 0===i.buffer?128:i.buffer),tolerance:this._pixelsToTileUnits(void 0===i.tolerance?.375:i.tolerance),extent:8192,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1,promoteId:"string"==typeof i.promoteId?i.promoteId:void 0,cluster:i.cluster||!1,clusterOptions:{maxZoom:this._getClusterMaxZoom(i.clusterMaxZoom),minPoints:Math.max(2,i.clusterMinPoints||2),extent:8192,radius:this._pixelsToTileUnits(i.clusterRadius||50),log:!1,generateId:i.generateId||!1}},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions)}_hasPendingWorkerUpdate(){return void 0!==this._pendingWorkerUpdate.data||void 0!==this._pendingWorkerUpdate.diff||this._pendingWorkerUpdate.updateCluster}_pixelsToTileUnits(t){return t*(8192/this.tileSize)}_tileUnitsToPixels(t){return t/(8192/this.tileSize)}_getClusterMaxZoom(t){let i=t?Math.round(t):this.maxzoom-1;return Number.isInteger(t)||void 0===t||(0,E.Pr)(`Integer expected for option 'clusterMaxZoom': provided value "${t}" rounded to "${i}"`),i}async load(){await this._updateWorkerData()}onAdd(t){this.map=t,this.load()}setData(t){return this._data="string"==typeof t?{url:t}:{geojson:t},this._pendingWorkerUpdate={data:t},this._updateWorkerData()}updateData(t){return this._pendingWorkerUpdate.diff=function(t,i){let n;if(!t)return i||{};if(!i)return t||{};let r=ej(t),a=ej(i);var o,s=r,l=a;for(let t of(l.removeAll&&(s.add.clear(),s.update.clear(),s.remove.clear(),l.remove.clear()),l.remove))s.add.delete(t),s.update.delete(t);for(let[t,i]of l.update){let n=s.update.get(t);n&&(l.update.set(t,function(t,i){let n={id:t.id};if(i.removeAllProperties&&(delete t.removeProperties,delete t.addOrUpdateProperties,delete i.removeProperties),i.removeProperties)for(let n of i.removeProperties){let i=t.addOrUpdateProperties.findIndex(t=>t.key===n);i>-1&&t.addOrUpdateProperties.splice(i,1)}return(t.removeAllProperties||i.removeAllProperties)&&(n.removeAllProperties=!0),(t.removeProperties||i.removeProperties)&&(n.removeProperties=[...t.removeProperties||[],...i.removeProperties||[]]),(t.addOrUpdateProperties||i.addOrUpdateProperties)&&(n.addOrUpdateProperties=[...t.addOrUpdateProperties||[],...i.addOrUpdateProperties||[]]),(t.newGeometry||i.newGeometry)&&(n.newGeometry=i.newGeometry||t.newGeometry),n}(n,i)),s.update.delete(t))}let c={};if((r.removeAll||a.removeAll)&&(c.removeAll=!0),c.remove=new Set([...r.remove,...a.remove]),c.add=new Map([...r.add,...a.add]),c.update=new Map([...r.update,...a.update]),c.remove.size&&c.add.size)for(let t of c.add.keys())c.remove.delete(t);return n={},(o=c).removeAll&&(n.removeAll=o.removeAll),o.remove&&(n.remove=Array.from(o.remove)),o.add&&(n.add=Array.from(o.add.values())),o.update&&(n.update=Array.from(o.update.values())),n}(this._pendingWorkerUpdate.diff,t),this._updateWorkerData()}async getData(){return this._data.url&&await this.once("data"),this._data.geojson?this._data.geojson:{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}}async getBounds(){return eq(await this.getData())}setClusterOptions(t){return this.workerOptions.geojsonVtOptions.cluster=t.cluster,void 0!==t.clusterRadius&&(this.workerOptions.geojsonVtOptions.clusterOptions.radius=this._pixelsToTileUnits(t.clusterRadius)),void 0!==t.clusterMaxZoom&&(this.workerOptions.geojsonVtOptions.clusterOptions.maxZoom=this._getClusterMaxZoom(t.clusterMaxZoom)),this._pendingWorkerUpdate.updateCluster=!0,this._updateWorkerData()}getClusterOptions(){let{cluster:t,clusterOptions:i}=this.workerOptions.geojsonVtOptions;return{cluster:t,clusterMaxZoom:i.maxZoom,clusterRadius:this._tileUnitsToPixels(i.radius)}}async getClusterExpansionZoom(t){return(await this.actorPromise).sendAsync({type:"GCEZ",data:{type:this.type,clusterId:t,source:this.id}})}async getClusterChildren(t){return(await this.actorPromise).sendAsync({type:"GCC",data:{type:this.type,clusterId:t,source:this.id}})}async getClusterLeaves(t,i,n){return(await this.actorPromise).sendAsync({type:"GCL",data:{type:this.type,source:this.id,clusterId:t,limit:i,offset:n}})}async _updateWorkerData(){if(this._isUpdatingWorker)return this._updatePromise;if(!this._hasPendingWorkerUpdate())return void(0,E.Pr)(`No pending worker updates for GeoJSONSource ${this.id}.`);let{data:t,diff:i,updateCluster:n}=this._pendingWorkerUpdate,r=this._getLoadGeoJSONParameters(t,i,n);void 0===t?i?this._pendingWorkerUpdate.diff=void 0:n&&(this._pendingWorkerUpdate.updateCluster=void 0):this._pendingWorkerUpdate.data=void 0,this._updatePromise=this._dispatchWorkerUpdate(r),await this._updatePromise}async _getLoadGeoJSONParameters(t,i,n){let r=(0,E.tr)({type:this.type,source:this.id},this.workerOptions);return"string"==typeof t?(r.request=await this.map._requestManager.transformRequest(A.resolveURL(t),"Source"),r.request.collectResourceTiming=this._collectResourceTiming,r):void 0!==t?(r.data=t,r):i?(r.dataDiff=i,r):n?(r.updateCluster=!0,r):void 0}async _dispatchWorkerUpdate(t){this._isUpdatingWorker=!0,this.fire(new N("dataloading"));try{let i=await t,n=await (await this.actorPromise).sendAsync({type:"LD",data:i});if(this._isUpdatingWorker=!1,this._removed||n.abandoned)return void this.fire(new N("dataabort"));n.data&&(this._data={geojson:n.data});let r=this._applyDiffToSource(i.dataDiff),a=this._getShouldReloadTileOptions(r),o={};this._applyResourceTiming(o,n),this.fire(new N("data",{...o,sourceDataType:"metadata"})),this.fire(new N("data",{...o,sourceDataType:"content",shouldReloadTileOptions:a}))}catch(t){if(this._isUpdatingWorker=!1,this._removed)return void this.fire(new N("dataabort"));this.fire(new E._n((0,E.$n)(t)))}finally{this._hasPendingWorkerUpdate()&&await this._updateWorkerData()}}_applyResourceTiming(t,i){if(!this._collectResourceTiming)return;let n=i.resourceTiming?.[this.id];if(!n)return;let r=n.slice(0);r?.length&&(0,E.tr)(t,{resourceTiming:r})}_applyDiffToSource(t){if(!t)return;let i="string"==typeof this.promoteId?this.promoteId:void 0;if(!this._data.url&&!this._data.updateable){let t=function(t,i){let n=new Map;if(null==t||null==t.type)return n;if("Feature"===t.type){let r=e$(t,i);return null==r?void 0:(n.set(r,t),n)}if("FeatureCollection"===t.type){let r=new Set;for(let a of t.features){let t=e$(a,i);if(null==t||r.has(t))return;r.add(t),n.set(t,a)}return n}}(this._data.geojson,i);if(!t)throw Error(`GeoJSONSource "${this.id}": GeoJSON data is not compatible with updateData`);this._data={updateable:t}}if(!this._data.updateable)return;let n=function(t,i,n){let r=[];if(i.removeAll)t.clear();else if(i.remove)for(let n of i.remove){let i=t.get(n);i&&(r.push(i.geometry),t.delete(n))}if(i.add)for(let a of i.add){let i=e$(a,n);if(null==i)continue;let o=t.get(i);o&&r.push(o.geometry),r.push(a.geometry),t.set(i,a)}if(i.update)for(let n of i.update){let i=t.get(n.id);if(!i)continue;let a=!!n.newGeometry,o=n.removeAllProperties||n.removeProperties?.length>0||n.addOrUpdateProperties?.length>0;if(!a&&!o)continue;r.push(i.geometry);let s={...i};if(t.set(n.id,s),a&&(r.push(n.newGeometry),s.geometry=n.newGeometry),o){if(s.properties=n.removeAllProperties?{}:{...s.properties||{}},n.removeProperties)for(let t of n.removeProperties)delete s.properties[t];if(n.addOrUpdateProperties)for(let{key:t,value:i}of n.addOrUpdateProperties)s.properties[t]=i}}return r}(this._data.updateable,t,i);if(!(t.removeAll||this._options.cluster))return n}_getShouldReloadTileOptions(t){if(t)return{affectedBounds:t.filter(Boolean).map(t=>eq(t))}}shouldReloadTile(t,{affectedBounds:i}){if("loading"===t.state)return!0;if("unloaded"===t.state)return!1;let{buffer:n,extent:r}=this.workerOptions.geojsonVtOptions,a=function({x:t,y:i,z:n},r=0){return new eF([(0,E.rt)((t-r)/2**n),(0,E.nt)((i+1+r)/2**n)],[(0,E.rt)((t+1+r)/2**n),(0,E.nt)((i-r)/2**n)])}(t.tileID.canonical,n/r);for(let t of i)if(a.intersects(t))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}async loadTile(t){let i=t.actor?"RT":"LT";t.actor=await this.actorPromise;let n={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};t.abortController=new AbortController;try{let r=await (await this.actorPromise).sendAsync({type:i,data:n},t.abortController);delete t.abortController,t.unloadVectorData(),t.aborted||t.loadVectorData(r,this.map.painter,"RT"===i)}catch(i){if(delete t.abortController,t.aborted||(0,E.Nn)(i))return;throw i}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController),t.aborted=!0}async unloadTile(t){t.unloadVectorData(),await (await this.actorPromise).sendAsync({type:"RMT",data:{uid:t.uid,type:this.type,source:this.id}})}onRemove(){this._removed=!0,this.actorPromise.then(t=>t.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return(0,E.tr)({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}};let eH=[0,0,1],eZ=(t,i,n,r,a,o)=>{var s,l,c;let d,h;return{u_tl_parent:t,u_scale_parent:i,u_buffer_scale:1,u_image_warp:o,u_fade_t:n.mix,u_opacity:n.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(s=r.paint.get("raster-saturation"))>0?1-1/(1.001-s):-s,u_contrast_factor:(l=r.paint.get("raster-contrast"))>0?1/(1-l):1+l,u_spin_weights:(d=Math.sin(c=r.paint.get("raster-hue-rotate")*(Math.PI/180)),[(2*(h=Math.cos(c))+1)/3,(-Math.sqrt(3)*d-h+1)/3,(Math.sqrt(3)*d-h+1)/3]),u_coords_top:[a[0].x,a[0].y,a[1].x,a[1].y],u_coords_bottom:[a[3].x,a[3].y,a[2].x,a[2].y]}};var eX=class{constructor(t,i,n){this.vertexBuffer=t,this.indexBuffer=i,this.segments=n}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}};let eW=(0,E.qt)([{name:"a_pos",type:"Int16",components:2}]);function eY(t,i){let n=eK(i,"16bit"),r=E.Ut.deserialize({arrayBuffer:n.vertices,length:n.vertices.byteLength/2/2}),a=E.Kt.deserialize({arrayBuffer:n.indices,length:n.indices.byteLength/2/3});return new eX(t.createVertexBuffer(r,eW.members),t.createIndexBuffer(a),E.Rt.simpleSegment(0,0,r.length,a.length))}function eK(t,i){let n=void 0===t.granularity?1:Math.max(t.granularity,1),r=n+2*!!t.generateBorders,a=n+(t.extendToNorthPole||t.generateBorders?1:0)+(t.extendToSouthPole||t.generateBorders?1:0),o=r+1,s=a+1,l=t.generateBorders?-1:0,c=t.generateBorders||t.extendToNorthPole?-1:0,d=n+ +!!t.generateBorders,h=n+(t.generateBorders||t.extendToSouthPole?1:0),u=r*a*6,p=o*s>65536;if(p&&"16bit"===i)throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let m=p||"32bit"===i,f=new Int16Array(o*s*2),g=0;for(let i=c;i<=h;i++)for(let r=l;r<=d;r++){let a=r/n*8192;-1===r&&(a=-64),r===n+1&&(a=8256);let o=i/n*8192;-1===i&&(o=t.extendToNorthPole?-32768:-64),i===n+1&&(o=t.extendToSouthPole?32767:8256),f[g++]=a,f[g++]=o}let _=m?new Uint32Array(u):new Uint16Array(u),v=0;for(let t=0;t<a;t++)for(let i=0;i<r;i++){let n=i+t*o,r=i+1+t*o,a=i+(t+1)*o,s=i+1+(t+1)*o;_[v++]=n,_[v++]=a,_[v++]=r,_[v++]=r,_[v++]=a,_[v++]=s}return{vertices:f.buffer.slice(0),indices:_.buffer.slice(0),uses32bitIndices:m}}var eJ=class extends E.yn{constructor(t,i,n,r){super(),this.imageWarp=eH,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=t,this.dispatcher=n,this.coordinates=i.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=i}async load(t){if(void 0===this.options.url){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new N("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let i=await s.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,i?.data?(this._setImage(i.data),t&&(this.coordinates=t),this._finishLoading()):this.fire(new E._n(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if((0,E.Nn)(t))return;this._abortController=null,this._loaded=!0,this.fire(new E._n((0,E.$n)(t)))}}loaded(){return this._loaded}updateImage(t){return this._abortController&&=(this._abortController.abort(),null),"image"in t?(this._loaded=!0,this._setImage(t.image),t.coordinates&&(this.coordinates=t.coordinates),this._finishLoading()):t.url&&(this.options.url=t.url,this.load(t.coordinates)),this}_setImage(t){this.image=t,this._imageDirty=!0}getMesh(t,i){return!this._subdividedQuad||i?null:(this._subdividedMesh??=eY(t,{granularity:16}),this._subdividedMesh)}_disposeTexture(){this.texture?.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new N("data",{sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._abortController&&=(this._abortController.abort(),null),this._disposeTexture(),this._subdividedMesh?.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(t){return this._warp===t||(this._warp=t,this.tileCoords&&this.setCoordinates(this.coordinates)),this}getWarp(){return this._warp}setCoordinates(t){var i,n;let r,a,o,s,l,c;this.coordinates=t;let d=t.map(E.et.fromLngLat);return this.tileID=(i=d,a=Math.max(0,Math.floor(-Math.log(Math.max((r=E.dt.fromPoints(i)).width(),r.height()))/Math.LN2)),o=2**a,new E.u(a,Math.floor((r.minX+r.maxX)/2*o),Math.floor((r.minY+r.maxY)/2*o))),this.terrainTileRanges=this._getOverlappingTileRanges(d),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=d.map(t=>this.tileID.getTilePoint(t)._round()),this.imageWarp=function(t,i){if("flat"===i||eQ(t))return eH;let[n,r,a,o]=t,s=n.x-r.x+a.x-o.x,l=n.y-r.y+a.y-o.y,c=[r.x-a.x,r.y-a.y,o.x-a.x,o.y-a.y],[d,h,u,p]=c,m=c[0]*c[3]-c[2]*c[1],f=(s*p-u*l)/m,g=(d*l-s*h)/m,_=[1,1+f,1+f+g,1+g],v=Math.max(..._)/Math.min(..._),y="perspective"===i?0:Math.max(0,(1-4/v)/(1-4/512));return!(v>=1&&v<=512)||y>=1?eH:[f,g,y]}(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!eQ(this.tileCoords),this.flippedWindingOrder=(s=(n=this.tileCoords)[1].x-n[0].x,l=n[1].y-n[0].y,c=n[2].x-n[0].x,s*(n[2].y-n[0].y)-l*c<0),this.fire(new N("data",{sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;let t=this.map.painter.context,i=t.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)):(this.texture=new E.yt(t,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this._imageDirty=!1;let n=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,n=!0)}n&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}))}async loadTile(t){this.tileID?.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={}):t.state="errored"}serialize(){let t={type:"image",coordinates:this.coordinates};return void 0!==this.options.url&&(t.url=this.options.url),t}hasTransition(){return!1}_getOverlappingTileRanges(t){let{minX:i,minY:n,maxX:r,maxY:a}=E.dt.fromPoints(t),o={};for(let t=0;t<=25;t++){let s=2**t,l=Math.floor(i*s),c=Math.floor(n*s),d=Math.floor(r*s),h=Math.floor(a*s),u=(l%s+s)%s,p=d%s,m=Math.floor(l/s),f=Math.floor(d/s);o[t]={minWrap:m,maxWrap:f,minTileXWrapped:u,maxTileXWrapped:p,minTileY:c,maxTileY:h}}return o}};function eQ(t){let[i,n,r,a]=t;return i.x+r.x===n.x+a.x&&i.y+r.y===n.y+a.y}var e0=class extends eJ{constructor(t,i,n,r){super(t,i,n,r),this._onPlayingHandler=()=>{this.map?.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=i}async load(){this._loaded=!1;let t=this.options;for(let i of(this.urls=[],t.urls))this.urls.push((await this.map._requestManager.transformRequest(i,"Source")).url);try{let t=await (0,E.Tn)(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new E._n((0,E.$n)(t)))}}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){let i=this.video.seekable;t<i.start(0)||t>i.end(0)?this.fire(new E._n(new E.mn(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;let t=this.map.painter.context,i=t.gl;this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new E.yt(t,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));let n=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,n=!0)}n&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},e2=class extends eJ{constructor(t,i,n,r){super(t,i,n,r),i.coordinates?(!Array.isArray(i.coordinates)||4!==i.coordinates.length||i.coordinates.some(t=>!Array.isArray(t)||2!==t.length||t.some(t=>"number"!=typeof t)))&&this.fire(new E._n(new E.mn(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new E._n(new E.mn(`sources.${t}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new E._n(new E.mn(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof HTMLCanvasElement||this.fire(new E._n(new E.mn(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new E._n(new E.mn(`sources.${t}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}async load(){(this._loaded=!0,this.canvas||=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions())?this.fire(new E._n(Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&=(this.prepare(),!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;let i=this.map.painter.context,n=i.gl;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new E.yt(i,this.canvas,n.RGBA,{premultiply:!0}),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let r=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,r=!0)}r&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}};let e1={},e3=t=>{switch(t){case"geojson":return eG;case"image":return eJ;case"raster":return eN;case"raster-dem":return eV;case"vector":return eB;case"video":return e0;case"canvas":return e2}return e1[t]},e5=async(t,i)=>{if(e3(t))throw Error(`A source type called "${t}" already exists.`);e1[t]=i},e4="RTLPluginLoaded";var e6=class extends E.yn{constructor(...t){super(...t),this.status="unavailable",this.url=null,this.dispatcher=eM()}_syncState(t){return this.status=t,this.dispatcher.broadcast("SRPS",{pluginStatus:t,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}async setRTLTextPlugin(t,i=!1){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=A.resolveURL(t),!this.url)throw Error(`requested url ${t} is invalid`);if("unavailable"===this.status)if(!i)return this._requestImport();else this.status="deferred",this._syncState(this.status);else if("requested"===this.status)return this._requestImport()}async _requestImport(){await this._syncState("loading"),this.status="loaded",this.fire(new E.vn(e4))}lazyLoad(){"unavailable"===this.status?this.status="requested":"deferred"===this.status&&this._requestImport()}};let e8=null;function e7(){return e8||=new e6}var e9=class{constructor(t,i){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=t,this.uid=(0,E.Nr)(),this.uses=0,this.tileSize=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(t){return this.hasData()&&(!this.fadeEndTime||this.fadeOpacity>0)&&(t||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:t,fadingDirection:i,fadingParentID:n,fadeEndTime:r}){this.resetFadeLogic(),this.fadingRole=t,this.fadingDirection=i,this.fadingParentID=n,this.fadeEndTime=r}setSelfFadeLogic(t){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=t}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=S(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}clearTextures(t){this.demTexture&&t.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(t){return this.rttObjects[t]}acquireRTT(t,i,n){return this.rttObjects[i]=t.acquireRTT(n)}releaseRTT(t){if(0!==this.rttObjects.length){for(let i of this.rttObjects)i&&t.releaseRTT(i);this.rttObjects.length=0}}loadVectorData(t,i,n){if(t?.etagUnmodified===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!t){this.collisionBoxArray=new E.zt;return}for(let r in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestEncoding=t.encoding,this.latestFeatureIndex.rawTileData=t.rawTileData,this.latestFeatureIndex.encoding=t.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,i){let n={};if(!i)return n;for(let r of t){let t=r.layerIds.map(t=>i.getLayer(t)).filter(Boolean);if(0!==t.length)for(let i of(r.layers=t,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(i=>t.filter(t=>t.id===i)[0])),t))n[i.id]=r}return n}(t.buckets,i?.style),this.hasSymbolBuckets=!1,this.buckets){let t=this.buckets[r];if(t instanceof E.S)if(this.hasSymbolBuckets=!0,n)t.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let t in this.buckets){let i=this.buckets[t];if(i instanceof E.S&&i.hasRTLText){this.hasRTLText=!0,e7().lazyLoad();break}}for(let t in this.queryPadding=0,this.buckets){let n=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,i.style.getLayer(t).queryRadius(n))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),this.dashPositions=t.dashPositions}unloadVectorData(){for(let t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(let i in this.buckets){let n=this.buckets[i];n.uploadPending()&&n.upload(t)}let i=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new E.yt(t,this.imageAtlas.image,i.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&=(this.glyphAtlasTexture=new E.yt(t,this.glyphAtlasImage,i.ALPHA),null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,i,n,r,a,o,s,l,c,d,h){return this.latestFeatureIndex?.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:a,scale:o,tileSize:this.tileSize,pixelPosMatrix:d,transform:l,params:s,queryPadding:this.queryPadding*c,getElevation:h},t,i,n):{}}querySourceFeatures(t,i){let n=this.latestFeatureIndex;if(!n?.rawTileData)return;let r=n.loadVTLayers(),a=i?.sourceLayer?i.sourceLayer:"",o=r._geojsonTileLayer||r[a];if(!o)return;let s=(0,E.ln)(i?.filter,`querySourceFeatures[${a}].filter`,i?.globalState),{z:l,x:c,y:d}=this.tileID.canonical,h={z:l,x:c,y:d};for(let i=0;i<o.length;i++){let r=o.feature(i);if(s.needGeometry){let t=(0,E.Ot)(r,!0);if(!s.filter(new E.$t(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!s.filter(new E.$t(this.tileID.overscaledZ),r))continue;let u=n.getId(r,a),p=new E.a(r,l,c,d,u);p.tile=h,t.push(p)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){let i=this.expirationTime;if(t.cacheControl){let i=(0,E.yr)(t.cacheControl);i["max-age"]&&(this.expirationTime=Date.now()+1e3*i["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){let t=Date.now(),n=!1;if(this.expirationTime>t)n=!1;else if(i)if(this.expirationTime<i)n=!0;else{let r=this.expirationTime-i;r?this.expirationTime=t+Math.max(r,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),0x7fffffff)}setFeatureState(t,i,n){if(!this.latestFeatureIndex?.rawTileData||0===Object.keys(t).length||this.featureStateRevision===n)return;this.featureStateRevision=n;let r=this.latestFeatureIndex.loadVTLayers();for(let n in this.buckets){if(!i.style.hasLayer(n))continue;let a=this.buckets[n],o=a.layers[0].sourceLayer||"_geojsonTileLayer",s=r[o],l=t[o];if(!s||!l||0===l.length)continue;a.update(l,s,this.imageAtlas?.patternPositions||{},this.dashPositions||{});let c=i?.style?.getLayer(n);c&&(this.queryPadding=Math.max(this.queryPadding,c.queryRadius(a)))}}holdingForSymbolFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<S()}clearSymbolFadeHold(){this.symbolFadeHoldUntil=void 0}setSymbolHoldDuration(t){this.symbolFadeHoldUntil=S()+t}setDependencies(t,i){let n={};for(let t of i)n[t]=!0;this.dependencies[t]=n}hasDependency(t,i){for(let n of t){let t=this.dependencies[n];if(t){for(let n of i)if(t[n])return!0}}return!1}};function te(t){let i=[];for(let n in t)i.push({id:n,state:t[n]});return i}var tt=class{constructor(){this.state={},this.stateChanges={},this.deletedStates={},this.revision=0}updateState(t,i,n){let r=String(i);if(this.stateChanges[t]||={},this.stateChanges[t][r]||={},(0,E.tr)(this.stateChanges[t][r],n),null===this.deletedStates[t])for(let i in this.deletedStates[t]={},this.state[t])if(i===r)for(let a in this.deletedStates[t][r]={},this.state[t][i])void 0===n[a]&&(this.deletedStates[t][r][a]=null);else this.deletedStates[t][i]=null;else if(this.deletedStates[t]?.[r]===null)for(let i in this.deletedStates[t][r]={},this.state[t][r])void 0===n[i]&&(this.deletedStates[t][r][i]=null);else for(let i in n)this.deletedStates[t]?.[r]?.[i]===null&&delete this.deletedStates[t][r][i]}removeFeatureState(t,i,n){if(null===this.deletedStates[t])return;let r=String(i);if(this.deletedStates[t]||={},n&&void 0!==i)null!==this.deletedStates[t][r]&&(this.deletedStates[t][r]||={},this.deletedStates[t][r][n]=null);else if(void 0!==i)if(this.stateChanges[t]?.[r])for(n in this.deletedStates[t][r]={},this.stateChanges[t][r])this.deletedStates[t][r][n]=null;else this.deletedStates[t][r]=null;else this.deletedStates[t]=null}getState(t,i){let n=String(i),r=this.state[t]||{},a=this.stateChanges[t]||{},o=(0,E.tr)({},r[n],a[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){let n=this.deletedStates[t][i];if(null===n)return{};for(let t in n)delete o[t]}return o}initializeTileState(t,i){let n={};for(let t in this.state)n[t]=te(this.state[t]);t.setFeatureState(n,i,this.revision)}coalesceChanges(t,i){let n={};for(let t in this.stateChanges)for(let i in this.state[t]||={},n[t]||={},this.stateChanges[t])this.state[t][i]||={},(0,E.tr)(this.state[t][i],this.stateChanges[t][i]),n[t][i]=this.state[t][i];for(let t in this.deletedStates)if(this.state[t]||={},n[t]||={},null===this.deletedStates[t])for(let i in this.state[t])this.state[t][i]={},n[t][i]={};else for(let i in this.deletedStates[t]){if(null===this.deletedStates[t][i])this.state[t][i]={};else for(let n of Object.keys(this.deletedStates[t][i]))delete this.state[t][i][n];n[t][i]=this.state[t][i]}if(this.stateChanges={},this.deletedStates={},0===Object.keys(n).length)return;this.revision++;let r={};for(let t in n)r[t]=te(n[t]);t.setFeatureState(r,i,this.revision)}},ti=class t{constructor(t,i){this.min=t,this.max=i,this.center=(0,E.li)([],(0,E.Zr)([],this.min,this.max),.5)}quadrant(i){let n=[i%2==0,i<2],r=(0,E.Qr)(this.min),a=(0,E.Qr)(this.max);for(let t=0;t<n.length;t++)r[t]=n[t]?this.min[t]:this.center[t],a[t]=n[t]?this.center[t]:this.max[t];return a[2]=this.max[2],new t(r,a)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}intersectsFrustum(t){let i=!0;for(let n of t.planes){let t=this.intersectsPlane(n);if(0===t)return 0;1===t&&(i=!1)}return i?2:t.aabb.min[0]>this.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]<this.min[0]||t.aabb.max[1]<this.min[1]||t.aabb.max[2]<this.min[2]?0:1}intersectsPlane(t){let i=t[3],n=t[3];for(let r=0;r<3;r++)t[r]>0?(i+=t[r]*this.min[r],n+=t[r]*this.max[r]):(n+=t[r]*this.min[r],i+=t[r]*this.max[r]);return i>=0?2:n<0?0:1}},tn=class t{constructor(t,i,n){this.points=t,this.planes=i,this.aabb=n}static fromInvProjectionMatrix(i,n=1,r=0,a,o){let s=o?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**r,c=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(t=>{var r,a,o,s;let c,d;return r=t,a=i,o=n,s=l,d=1/(c=(0,E.Xr)([],r,a))[3]/o*s,(0,E.Jr)(c,c,[d,d,1/c[3],d])});a&&function(t,i,n,r){var a,o;let s,l,c,d=4*!!r,h=4*!r,u=0,p=[],m=[];for(let i=0;i<4;i++){let n=(0,E.di)([],t[i+h],t[i+d]),r=(0,E.ri)(n);(0,E.li)(n,n,1/r),p.push(r),m.push(n)}for(let i=0;i<4;i++){let r=(0,E.Cr)(t[i+d],m[i],n);u=null!==r&&r>=0?Math.max(u,r):Math.max(u,p[i])}let f=(a=t,o=i,s=(0,E.di)([],a[o[0]],a[o[1]]),l=(0,E.di)([],a[o[2]],a[o[1]]),c=[0,0,0,0],(0,E.ai)(c,(0,E.$r)([],s,l)),c[3]=-(0,E.ti)(c,a[o[0]]),c),g=function(t,i){let n=(0,E.ni)(t),r=(0,E.Yr)([],t,1/n),a=(0,E.di)([],i,(0,E.li)([],r,(0,E.ti)(i,r))),o=(0,E.ni)(a);if(o>0){let t=Math.sqrt(1-r[3]*r[3]),n=(0,E.li)([],r,-r[3]),s=(0,E.Zr)([],n,(0,E.li)([],a,t/o));return(0,E.xr)(i,s)}return null}(n,f);null!==g&&(u=Math.min(u,g/(0,E.ti)(m[0],f)));for(let i=0;i<4;i++){let n=Math.min(u,p[i]);t[i+h]=[t[i+d][0]+m[i][0]*n,t[i+d][1]+m[i][1]*n,t[i+d][2]+m[i][2]*n,1]}}(c,s[0],a,o);let d=s.map(t=>{let i=(0,E.di)([],c[t[0]],c[t[1]]),n=(0,E.di)([],c[t[2]],c[t[1]]),r=(0,E.ai)([],(0,E.$r)([],i,n)),a=-(0,E.ti)(r,c[t[1]]);return r.concat(a)}),h=[1/0,1/0,1/0],u=[-1/0,-1/0,-1/0];for(let t of c)for(let i=0;i<3;i++)h[i]=Math.min(h[i],t[i]),u[i]=Math.max(u[i],t[i]);return new t(c,d,new ti(h,u))}};function tr(t,i,n){let r=0,a=(n-i)/10;for(let o=0;o<10;o++){let s=i+(o+.5)/10*(n-i);r+=a*Math.cos(s)**t}return r}function ta(t,i){return function(n,r,a,o,s){let l=2*((t-1)/(0,E.Or)(Math.cos((0,E.Xn)(89.25-s))/Math.cos((0,E.Xn)(89.25)))-1),c=Math.acos(a/o),d=2*tr(l-1,0,(0,E.Xn)(s/2)),h=Math.min((0,E.Xn)(89.25),c+(0,E.Xn)(s/2)),u=tr(l-1,Math.min(h,c-(0,E.Xn)(s/2)),h),p=Math.atan(r/a),m=Math.hypot(r,a),f=n;return f+=(0,E.Or)(o/m/Math.max(.5,Math.cos((0,E.Xn)(s/2)))),f+=l*(0,E.Or)(Math.cos(p))/2,f-=(0,E.Or)(Math.max(1,u/d/i))/2}}let to=ta(9.314,3);function ts(t,i){return Math.max(0,(i.roundZoom?Math.round:Math.floor)(t.zoom+(0,E.Or)(t.tileSize/i.tileSize)))}function tl(t,i){var n;let r,a,o,s=t.getCameraFrustum(),l=t.getClippingPlane();if(l&&i.maxContentElevation>0){let n=Math.hypot(l[0],l[1],l[2]);if(n>0){let r=1+i.maxContentElevation/E.ct,a=Math.cos(Math.acos((0,E.Vn)(-l[3]/n,-1,1))+Math.acos(1/r));l=[l[0],l[1],l[2],-a*n],s=function(t,i,n){let r=t.planes[1],a=t.points.map(t=>{if(Math.abs(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]+r[3])>1e-6)return t;let a=[t[0]-n[0],t[1]-n[1],t[2]-n[2]],o=r[0]*a[0]+r[1]*a[1]+r[2]*a[2];if(o>=-1e-9)return t;let s=-(i/o);return[t[0]+a[0]*s,t[1]+a[1]*s,t[2]+a[2]*s,t[3]]}),o=t.planes.map((t,n)=>1===n?[t[0],t[1],t[2],t[3]+i]:t),s=[1/0,1/0,1/0],l=[-1/0,-1/0,-1/0];for(let t of a)for(let i=0;i<3;i++)s[i]=Math.min(s[i],t[i]),l[i]=Math.max(l[i],t[i]);return new tn(a,o,new ti(s,l))}(s,Math.sqrt(r*r-1),t.cameraPosition)}}let c=(0,E.q)(t),d=E.et.fromLngLat(t.center,t.elevation),h=(n=i.maxContentElevation,r=89.25-t.pitch-t.fov/2,a=(0,E.Vn)((15-r)/15,0,1),o=Math.max(500,n??0),t.elevation+a*o),u=t.getCoveringTilesDetailsProvider(),p=u.allowVariableZoom(t,i),m=ts(t,i),f=i.minzoom||0,g=void 0===i.maxzoom?t.maxZoom:i.maxzoom,_=Math.min(Math.max(0,m),g),v=2**_,y=[v*c.x,v*c.y,0],b=[v*d.x,v*d.y,0],x=Math.hypot(d.x-c.x,d.y-c.y),w=Math.abs(d.z-c.z),C=Math.hypot(x,w),T=t=>({zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}),k=[],A=[];if(t.renderWorldCopies&&u.allowWorldCopies())for(let t=1;t<=3;t++)k.push(T(-t)),k.push(T(t));for(k.push(T(0));k.length>0;){let n=k.pop(),r=n.x,a=n.y,o=n.fullyVisible,v={x:r,y:a,z:n.zoom},x=u.getTileBoundingVolume(v,n.wrap,h,i);if(!o){let t=function(t,i,n){let r=i.intersectsFrustum(t);if(!n||0===r)return r;let a=i.intersectsPlane(n);return 0===a?0:2===r&&2===a?2:1}(s,x,l);if(0===t)continue;o=2===t}let T=u.distanceToTile2d(c.x,c.y,v,x),I=m;p&&(I=(i.calculateTileZoom||to)(t.zoom+(0,E.Or)(t.tileSize/i.tileSize),T,w,C,t.fov));let S=Math.min(I=Math.max(0,I=(i.roundZoom?Math.round:Math.floor)(I)),g);if(n.wrap=u.getWrap(d,v,n.wrap),n.zoom>=S){if(n.zoom<f)continue;let t=_-n.zoom,o=y[0]-.5-(r<<t),s=y[1]-.5-(a<<t),l=i.reparseOverscaled?Math.max(n.zoom,I):n.zoom;A.push({tileID:new E.d(n.zoom===g?l:n.zoom,n.wrap,n.zoom,r,a),distanceSq:(0,E.Hr)([b[0]-.5-r,b[1]-.5-a]),tileDistanceToCamera:Math.sqrt(o*o+s*s)});continue}for(let t=0;t<4;t++){let i=(r<<1)+t%2,s=(a<<1)+(t>>1),l=n.zoom+1;k.push({zoom:l,x:i,y:s,wrap:n.wrap,fullyVisible:o})}}return A.sort((t,i)=>t.distanceSq-i.distanceSq).map(t=>t.tileID)}function tc(t){return"raster"===t||"image"===t||"video"===t}function td(t,i,n,r,a,o,s){if(n[0].overscaledZ>=o)return!1;let l=!1;for(let o of n){let n=t.getLoadedTile(o);if(!n)continue;let{fadingRole:c,fadingDirection:d,fadingParentID:h}=n;0===c&&0===d&&h||(n.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:i.tileID,fadeEndTime:a+s}),i.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:a+s})),r[o.key]=o,l=!0}return l}function th(t,i){t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.needsColorReliefPrepare=!0;let n=i.tileID.canonical.x-t.tileID.canonical.x,r=i.tileID.canonical.y-t.tileID.canonical.y,a=2**t.tileID.canonical.z,o=i.tileID.key;(0!==n||0!==r)&&(Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+a)?n+=a:1===Math.abs(n-a)&&(n-=a)),i.dem&&t.dem&&(t.dem.backfillBorder(i.dem,n,r),t.neighboringTiles?.[o]&&(t.neighboringTiles[o].backfilled=!0))))}var tu=class{constructor(){this._tiles={}}handleWrapJump(t){let i={};for(let n in this._tiles){let r=this._tiles[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),i[r.tileID.key]=r}this._tiles=i}setFeatureState(t,i,n){for(let r in this._tiles)this._tiles[r].setFeatureState(t,i,n)}getAllTiles(){return Object.values(this._tiles)}getAllIds(t=!1){return t?Object.values(this._tiles).map(t=>t.tileID).sort(E.m).map(t=>t.key):Object.keys(this._tiles)}getTileById(t){return this._tiles[t]}setTile(t,i){this._tiles[t]=i}deleteTileById(t){delete this._tiles[t]}getLoadedTile(t){let i=this.getTileById(t.key);return i?.hasData()?i:null}isIdRenderable(t,i=!1){return this.getTileById(t)?.isRenderable(i)}getRenderableIds(t=0,i){let n=[];for(let t of this.getAllIds())this.isIdRenderable(t,i)&&n.push(this.getTileById(t));return i?n.sort((i,n)=>{let r=i.tileID,a=n.tileID,o=new E.Ri(r.canonical.x,r.canonical.y)._rotate(-t),s=new E.Ri(a.canonical.x,a.canonical.y)._rotate(-t);return r.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x}).map(t=>t.tileID.key):n.map(t=>t.tileID).sort(E.m).map(t=>t.key)}},tp=class t extends E.yn{static{this.maxUnderzooming=10}static{this.maxOverzooming=3}constructor(t,i,n){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=n,this.on("data",t=>{this._dataHandler(t)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((t,i,n,r)=>{let a=new(e3(i.type))(t,i,n,r);if(a.id!==t)throw Error(`Expected Source id to be ${t} instead of ${a.id}`);return a})(t,i,n,this),this._inViewTiles=new tu,this._outOfViewCache=new E.n(0,t=>this._unloadTile(t)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new tt,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source?.onAdd&&this._source.onAdd(t)}onRemove(t){for(let t of this._inViewTiles.getAllTiles())t.unloadVectorData();this.clearTiles(),this._source?.onRemove&&this._source.onRemove(t),this._inViewTiles=new tu}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((void 0!==this.used||void 0!==this.usedForTerrain)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if("loaded"!==t.state&&"errored"!==t.state)return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}async _loadTile(t,i,n,r){try{let a=await this._source.loadTile(t);this._tileLoaded(t,i,n,r,a)}catch(i){t.state="errored",404===i.status?this.update(this.transform,this.terrain):this._source.fire(new E._n((0,E.$n)(i),{tile:t}))}}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new N("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){for(let i of(this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null),this._inViewTiles.getAllTiles()))i.upload(t),i.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){return this._inViewTiles.getRenderableIds(this.transform?.bearingInRadians,t)}hasRenderableParent(t){let i=t.overscaledZ-1;if(i>=this._source.minzoom){let n=this.getLoadedTile(t.scaledTo(i));if(n)return this._inViewTiles.isIdRenderable(n.tileID.key)}return!1}reload(t,i){if(this._paused){this._shouldReloadOnResume=!0;return}for(let n of(this._outOfViewCache.reset(),this._inViewTiles.getAllIds())){let r=this._inViewTiles.getTileById(n);(!i||this._source.shouldReloadTile(r,i))&&(t?this._reloadTile(n,"errored"===r.state?"loading":"expired"):"errored"!==r.state&&this._reloadTile(n,"reloading"))}}async _reloadTile(t,i){let n=this._inViewTiles.getTileById(t);if(!n)return;let r=n.hasData();"loading"!==n.state&&(n.state=i),await this._loadTile(n,t,i,r)}_tileLoaded(t,i,n,r,a){r||(t.timeAdded=S(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),"expired"===n&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(i,t),!a?.unmodified&&("raster-dem"===this.getSource().type&&t.dem&&function(t,i){for(let n of i.getRenderableIds()){if(!t.neighboringTiles?.[n])continue;let r=i.getTileById(n);t.neighboringTiles[n].backfilled||th(t,r),r.neighboringTiles?.[t.tileID.key]?.backfilled||th(r,t)}}(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new N("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(i,n){let r=this._getLoadedDescendents(n),a=new Set;for(let o of n){let n=r[o.key];if(!n?.length){a.add(o);continue}let s=o.overscaledZ+t.maxOverzooming,l=n.filter(t=>t.tileID.overscaledZ<=s);if(!l.length){a.add(o);continue}let c=Math.min(...l.map(t=>t.tileID.overscaledZ)),d=l.filter(t=>t.tileID.overscaledZ===c).map(t=>t.tileID);for(let t of d)i[t.key]=t;this._areDescendentsComplete(d,c,o.overscaledZ)||a.add(o)}return a}_getLoadedDescendents(t){let i={};for(let n of this._inViewTiles.getAllTiles().filter(t=>t.hasData()))for(let r of t)n.tileID.isChildOf(r)&&(i[r.key]||=[],i[r.key].push(n));return i}_areDescendentsComplete(t,i,n){return 1===t.length&&t[0].isOverscaled()?t[0].overscaledZ===i:4**(i-n)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let i=Math.floor((Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1)*(null===this._maxTileCacheZoomLevels?E.jn.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),n="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._outOfViewCache.setMaxSize(n)}handleWrapJump(t){let i=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){let t=this._maxContentElevationSeen,i=this.map?.style?._layers;if(!i)return t;let n=this._inViewTiles.getAllTiles();for(let r in i){let a=i[r];if(!("symbol"!==a.type||a.source!==this.id||a.isHidden(this.transform.zoom))&&a.layout)for(let i of(t=Math.max(t,a.layout.get("symbol-height-offset").constantOr(0)),n)){let n=i.getBucket(a);n&&n.maxHeightOffset>t&&(t=n.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,i){let n;if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=i,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this.used||this.usedForTerrain?this._source.tileID?n=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new E.d(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(n=tl(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:"vector"===this._source.type&&void 0!==this.map._zoomLevelsToOverscale?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:i,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(n=n.filter(t=>this._source.hasTile(t)))):n=[],this.usedForTerrain&&(n=this._addTerrainIdealTiles(n));let r=0===n.length&&!this._updated&&this._didEmitContent;this._updated=!0,r&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}));let a=ts(t,this._source),o=this._updateRetainedTiles(n,a),s=tc(this._source.type);s&&this._rasterFadeDuration>0&&!i&&function(t,i,n,r,a,o,s){let l=S(),c=(0,E.or)(i);for(let d of i){let i=t.getTileById(d.key);(0===i.fadingDirection||0===i.fadeOpacity)&&i.resetFadeLogic(),!function(t,i,n,r,a,o,s){if(!i.hasData())return!1;let{tileID:l,fadingRole:c,fadingDirection:d,fadingParentID:h}=i;if(0===c&&1===d&&h)return n[h.key]=h,!0;let u=Math.max(l.overscaledZ-a,o);for(let a=l.overscaledZ-1;a>=u;a--){let o=l.scaledTo(a),c=t.getLoadedTile(o);if(c)return i.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:c.tileID,fadeEndTime:r+s}),c.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:r+s}),n[o.key]=o,!0}return!1}(t,i,n,l,r,a,s)&&(function(t,i,n,r,a,o){if(!i.hasData())return!1;let s=i.tileID.children(a),l=td(t,i,s,n,r,a,o);if(l)return!0;for(let c of s)td(t,i,c.children(a),n,r,a,o)&&(l=!0);return l}(t,i,n,l,o,s)||function(t,i,n,r){let a=t.tileID;return!!t.selfFading||!t.hasData()&&!!i.has(a)&&(t.setSelfFadeLogic(n+r),!0)}(i,c,l,s)||i.resetFadeLogic())}}(this._inViewTiles,n,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let i of this._inViewTiles.getAllIds())t[i]||this._removeTile(i)}_cleanUpVectorTiles(t){for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);if(t[i]){n.clearSymbolFadeHold();continue}if(!n.hasSymbolBuckets){this._removeTile(i);continue}n.holdingForSymbolFade()?n.symbolFadeFinished()&&this._removeTile(i):n.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let i=[];for(let n of t)if(n.canonical.z>this._source.minzoom){let t=n.scaledTo(n.canonical.z-1);i.push(t);let r=n.scaledTo(Math.max(this._source.minzoom,Math.min(n.canonical.z,5)));i.push(r)}return t.concat(i)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(i,n){let r=new Set;for(let t of i)this._addTile(t).hasData()||r.add(t);let a=i.reduce((t,i)=>(t[i.key]=i,t),{}),o=this._retainLoadedChildren(a,r),s={},l=Math.max(n-t.maxUnderzooming,this._source.minzoom);for(let t of o){let i=this._inViewTiles.getTileById(t.key),n=i?.wasRequested();for(let r=t.overscaledZ-1;r>=l;--r){let o=t.scaledTo(r);if(s[o.key])break;if(s[o.key]=!0,(i=this.getTile(o))||!n||(i=this._addTile(o)),i){let t=i.hasData();if((t||!this.map?.cancelPendingTileRequestsWhileZooming||n)&&(a[o.key]=o),n=i.wasRequested(),t)break}}}return a}_addTile(t){let i=this._inViewTiles.getTileById(t.key);if(i)return i;(i=this._outOfViewCache.getAndRemove(t))&&(i.resetFadeLogic(),this._setTileReloadTimer(t.key,i),i.tileID=t,this._state.initializeTileState(i,this.map?this.map.painter:null));let n=i;return i||(i=new e9(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(i,t.key,i.state,!1)),i.uses++,this._inViewTiles.setTile(t.key,i),n||this._source.fire(new N("dataloading",{tile:i,coord:i.tileID})),i}_setTileReloadTimer(t,i){this._clearTileReloadTimer(t);let n=i.getExpiryTimeout();if(n){let i=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(i,n)}}_clearTileReloadTimer(t){let i=this._timers[t];i&&(clearTimeout(i),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,i)}}refreshTiles(t){for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);(this._inViewTiles.isIdRenderable(i)||"errored"==n.state)&&t.some(t=>t.equals(n.tileID.canonical))&&this._reloadTile(i,"expired")}}_removeTile(t){let i=this._inViewTiles.getTileById(t);i&&(i.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),i.uses>0||(i.hasData()&&"reloading"!==i.state?this._outOfViewCache.add(i.tileID,i,i.getExpiryTimeout()):(i.aborted=!0,this._abortTile(i),this._unloadTile(i))))}_dataHandler(t){if("source"===t.dataType){if("metadata"===t.sourceDataType){this._sourceLoaded=!0;return}"content"===t.sourceDataType&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){for(let t of(this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation(),this._inViewTiles.getAllIds()))this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,i,n){let r=[],a=this.transform;if(!a)return r;let o=a.getCoveringTilesDetailsProvider().allowWorldCopies(),s=n?a.getCameraQueryGeometry(t):t,l=t=>a.screenPointToMercatorCoordinate(t,this.terrain),c=this.transformBbox(t,l,!o),d=this.transformBbox(s,l,!o),h=this.getIds(),u=E.dt.fromPoints(d);for(let t of h){let n=this._inViewTiles.getTileById(t);if(n.holdingForSymbolFade())continue;let s=o?[n.tileID]:[n.tileID.unwrapTo(-1),n.tileID.unwrapTo(0)],l=2**(a.zoom-n.tileID.overscaledZ),h=i*n.queryPadding*8192/n.tileSize/l;for(let t of s){let i=u.map(i=>t.getTilePoint(new E.et(i.x,i.y)));if(i.expandBy(h),i.intersects(E.ut)){let i=c.map(i=>t.getTilePoint(i)),a=d.map(i=>t.getTilePoint(i));r.push({tile:n,tileID:o?t:t.unwrapTo(0),queryGeometry:i,cameraQueryGeometry:a,scale:l})}}}return r}transformBbox(t,i,n){let r=t.map(i);if(n){let n=E.dt.fromPoints(t);n.shrinkBy(.001*Math.min(n.width(),n.height()));let a=n.map(i);E.dt.fromPoints(r).covers(a)||(r=r.map(t=>t.x>.5?new E.et(t.x-1,t.y,t.z):t))}return r}getVisibleCoordinates(t){let i=this.getRenderableIds(t).map(t=>this._inViewTiles.getTileById(t).tileID);return this.transform&&this.transform.populateCache(i),i}hasTransition(){return!!this._source.hasTransition()||tc(this._source.type)&&function(t,i){if(i<=0)return!1;let n=S();for(let i of t.getAllTiles())if(i.fadeEndTime>=n)return!0;return!1}(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,i,n){t||=E.s,this._state.updateState(t,i,n)}removeFeatureState(t,i,n){t||=E.s,this._state.removeFeatureState(t,i,n)}getFeatureState(t,i){return t||=E.s,this._state.getState(t,i)}setDependencies(t,i,n){let r=this._inViewTiles.getTileById(t);r&&r.setDependencies(i,n)}reloadTilesForDependencies(t,i){for(let n of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(n).hasDependency(t,i)&&this._reloadTile(n,"reloading");this._outOfViewCache.filter(n=>!n.hasDependency(t,i))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if("loaded"!==t.state&&"errored"!==t.state)return!1;return!0}},tm=class{constructor(t,i){this.reset(t,i)}reset(t,i){this.points=t||[],this._distances=[0];for(let t=1;t<this.points.length;t++)this._distances[t]=this._distances[t-1]+this.points[t].dist(this.points[t-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(i||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=(0,E.Vn)(t,0,1);let i=1,n=this._distances[i],r=t*this.paddedLength+this.padding;for(;n<r&&i<this._distances.length;)n=this._distances[++i];let a=i-1,o=this._distances[a],s=n-o,l=s>0?(r-o)/s:0;return this.points[a].mult(1-l).add(this.points[i].mult(l))}};function tf(t,i,n,r,a){return a?t?t(i,n)+r:0===r?void 0:r:r}function tg(t,i){let n=!0;return"always"===t||("never"===t||"never"===i)&&(n=!1),n}var t_=class{constructor(t,i,n){let r=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(i/n);for(let t=0;t<this.xCellCount*this.yCellCount;t++)r.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=i,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/i,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(t,i,n,r,a){this._forEachCell(i,n,r,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)}insertCircle(t,i,n,r){this._forEachCell(i-r,n-r,i+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(i),this.circles.push(n),this.circles.push(r)}_insertBoxCell(t,i,n,r,a,o){this.boxCells[a].push(o)}_insertCircleCell(t,i,n,r,a,o){this.circleCells[a].push(o)}_query(t,i,n,r,a,o,s){if(n<0||t>this.width||r<0||i>this.height)return[];let l=[];if(t<=0&&i<=0&&this.width<=n&&this.height<=r){if(a)return[{key:null,x1:t,y1:i,x2:n,y2:r}];for(let t=0;t<this.boxKeys.length;t++)l.push({key:this.boxKeys[t],x1:this.bboxes[4*t],y1:this.bboxes[4*t+1],x2:this.bboxes[4*t+2],y2:this.bboxes[4*t+3]});for(let t=0;t<this.circleKeys.length;t++){let i=this.circles[3*t],n=this.circles[3*t+1],r=this.circles[3*t+2];l.push({key:this.circleKeys[t],x1:i-r,y1:n-r,x2:i+r,y2:n+r})}}else this._forEachCell(t,i,n,r,this._queryCell,l,{hitTest:a,overlapMode:o,seenUids:{box:{},circle:{}}},s);return l}query(t,i,n,r){return this._query(t,i,n,r,!1,null)}hitTest(t,i,n,r,a,o){return this._query(t,i,n,r,!0,a,o).length>0}hitTestCircle(t,i,n,r,a){let o=t-n,s=t+n,l=i-n,c=i+n;if(s<0||o>this.width||c<0||l>this.height)return!1;let d=[];return this._forEachCell(o,l,s,c,this._queryCellCircle,d,{hitTest:!0,overlapMode:r,circle:{x:t,y:i,radius:n},seenUids:{box:{},circle:{}}},a),d.length>0}_queryCell(t,i,n,r,a,o,s,l){let{seenUids:c,hitTest:d,overlapMode:h}=s,u=this.boxCells[a];if(null!==u){let a=this.bboxes;for(let s of u)if(!c.box[s]){c.box[s]=!0;let u=4*s,p=this.boxKeys[s];if(t<=a[u+2]+1e-6&&i<=a[u+3]+1e-6&&n>=a[u+0]-1e-6&&r>=a[u+1]-1e-6&&(!l||l(p))&&(!d||!tg(h,p.overlapMode))&&(o.push({key:p,x1:a[u],y1:a[u+1],x2:a[u+2],y2:a[u+3]}),d))return!0}}let p=this.circleCells[a];if(null!==p){let a=this.circles;for(let s of p)if(!c.circle[s]){c.circle[s]=!0;let u=3*s,p=this.circleKeys[s];if(this._circleAndRectCollide(a[u],a[u+1],a[u+2],t,i,n,r)&&(!l||l(p))&&(!d||!tg(h,p.overlapMode))){let t=a[u],i=a[u+1],n=a[u+2];if(o.push({key:p,x1:t-n,y1:i-n,x2:t+n,y2:i+n}),d)return!0}}}return!1}_queryCellCircle(t,i,n,r,a,o,s,l){let{circle:c,seenUids:d,overlapMode:h}=s,u=this.boxCells[a];if(null!==u){let t=this.bboxes;for(let i of u)if(!d.box[i]){d.box[i]=!0;let n=4*i,r=this.boxKeys[i];if(this._circleAndRectCollide(c.x,c.y,c.radius,t[n+0],t[n+1],t[n+2],t[n+3])&&(!l||l(r))&&!tg(h,r.overlapMode))return o.push(!0),!0}}let p=this.circleCells[a];if(null!==p){let t=this.circles;for(let i of p)if(!d.circle[i]){d.circle[i]=!0;let n=3*i,r=this.circleKeys[i];if(this._circlesCollide(t[n],t[n+1],t[n+2],c.x,c.y,c.radius)&&(!l||l(r))&&!tg(h,r.overlapMode))return o.push(!0),!0}}}_forEachCell(t,i,n,r,a,o,s,l){let c=this._convertToXCellCoord(t),d=this._convertToYCellCoord(i),h=this._convertToXCellCoord(n),u=this._convertToYCellCoord(r);for(let p=c;p<=h;p++)for(let c=d;c<=u;c++){let d=this.xCellCount*c+p;if(a.call(this,t,i,n,r,d,o,s,l))return}}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,i,n,r,a,o){let s=r-t,l=a-i,c=n+o;return c*c>s*s+l*l}_circleAndRectCollide(t,i,n,r,a,o,s){let l=(o-r)/2,c=Math.abs(t-(r+l));if(c>l+n)return!1;let d=(s-a)/2,h=Math.abs(i-(a+d));if(h>d+n)return!1;if(c<=l||h<=d)return!0;let u=c-l,p=h-d;return u*u+p*p<=n*n}};let tv=(0,E.yi)();function ty(t,i,n){let r=(0,E.yi)();if(!t){var a,o,s,l,c;let{vecSouth:t,vecEast:n}=tb(i),d=k();d[0]=n[0],d[1]=n[1],d[2]=t[0],d[3]=t[1],a=d[0],o=d[1],s=d[2],(c=a*(l=d[3])-s*o)&&(c=1/c,d[0]=l*c,d[1]=-o*c,d[2]=-s*c,d[3]=a*c),r[0]=d[0],r[1]=d[1],r[4]=d[2],r[5]=d[3]}return(0,E.ji)(r,r,[1/n,1/n,1]),r}function tb(t){let i=Math.cos(t.rollInRadians),n=Math.sin(t.rollInRadians),r=Math.cos(t.pitchInRadians),a=Math.cos(t.bearingInRadians),o=Math.sin(t.bearingInRadians),s=(0,E.zr)();s[0]=-a*r*n-o*i,s[1]=-o*r*n+a*i;let l=(0,E.Br)(s);l<1e-9?(0,E.Ur)(s):(0,E.Vr)(s,s,1/l);let c=(0,E.zr)();c[0]=a*r*i-o*n,c[1]=o*r*i+a*n;let d=(0,E.Br)(c);return d<1e-9?(0,E.Ur)(c):(0,E.Vr)(c,c,1/d),{vecEast:c,vecSouth:s}}function tx(t,i,n){return tf(t.getElevation,i,n,t.heightOffset??0,t.heightAnchorGround??!0)}function tw(t,i,n,r){let a;null==r?tR(a=[t,i,0,1],a,n):(a=[t,i,r,1],(0,E.Xr)(a,a,n));let o=a[3];return{point:new E.Ri(a[0]/o,a[1]/o),signedDistanceFromCamera:o,isOccluded:!1}}function tC(t,i,n,r,a,o,s,l){let c=o.glyphStartIndex+o.numGlyphs,d=o.lineStartIndex,h=o.lineStartIndex+o.lineLength,u=i.getoffsetX(o.glyphStartIndex),p=i.getoffsetX(c-1),m=tM(t*u,n,r,a,o.segment,d,h,l,s);if(!m)return null;let f=tM(t*p,n,r,a,o.segment,d,h,l,s);return!f||l.projectionCache.anyProjectionOccluded?null:{first:m,last:f}}function tE(t,i,n,r){return 1===t&&Math.abs(n.y-i.y)>Math.abs(n.x-i.x)*r?{useVertical:!0}:(2===t?i.y<n.y:i.x>n.x)?{needsFlipping:!0}:null}function tT(t){let{projectionContext:i,pitchedLabelPlaneMatrixInverse:n,symbol:r,fontSize:a,flip:o,keepUpright:s,glyphOffsetArray:l,dynamicLayoutVertexArray:c,aspectRatio:d,rotateToLine:h}=t,u=a/24,p=r.lineOffsetX*u,m=r.lineOffsetY*u,f;if(r.numGlyphs>1){let t=r.glyphStartIndex+r.numGlyphs,a=r.lineStartIndex,c=r.lineStartIndex+r.lineLength,g=tC(u,l,p,m,o,r,h,i);if(!g)return{notEnoughRoom:!0};let _=tS(g.first.point.x,g.first.point.y,i,n),v=tS(g.last.point.x,g.last.point.y,i,n);if(s&&!o){let t=tE(r.writingMode,_,v,d);if(t)return t}f=[g.first];for(let n=r.glyphStartIndex+1;n<t-1;n++){let t=tM(u*l.getoffsetX(n),p,m,o,r.segment,a,c,i,h);if(!t)return{notEnoughRoom:!0};f.push(t)}f.push(g.last)}else{if(s&&!o){let t=tI(i.tileAnchorPoint.x,i.tileAnchorPoint.y,i).point,a=r.lineStartIndex+r.segment+1,o=new E.Ri(i.lineVertexArray.getx(a),i.lineVertexArray.gety(a)),s=tI(o.x,o.y,i),l=s.signedDistanceFromCamera>0?s.point:tk(i.tileAnchorPoint,o,t,1,i),c=tS(t.x,t.y,i,n),h=tS(l.x,l.y,i,n),u=tE(r.writingMode,c,h,d);if(u)return u}let t=tM(u*l.getoffsetX(r.glyphStartIndex),p,m,o,r.segment,r.lineStartIndex,r.lineStartIndex+r.lineLength,i,h);if(!t||i.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};f=[t]}for(let t of f)(0,E.C)(c,t.point,t.angle);return{}}function tk(t,i,n,r,a){let o=t.add(t.sub(i)._unit()),s=tI(o.x,o.y,a).point,l=n.sub(s);return n.add(l._mult(r/l.mag()))}function tA(t,i,n){let r=i.projectionCache;if(r.projections[t])return r.projections[t];let a=new E.Ri(i.lineVertexArray.getx(t),i.lineVertexArray.gety(t)),o=tI(a.x,a.y,i);if(o.signedDistanceFromCamera>0)return r.projections[t]=o.point,r.anyProjectionOccluded||=o.isOccluded,o.point;let s=t-n.direction,l=0===n.distanceFromAnchor?i.tileAnchorPoint:new E.Ri(i.lineVertexArray.getx(s),i.lineVertexArray.gety(s)),c=n.absOffsetX-n.distanceFromAnchor+1;return tk(l,a,n.previousVertex,c,i)}function tI(t,i,n){let r=t+n.translation[0],a=i+n.translation[1],o;return n.pitchWithMap?(o=tw(r,a,n.pitchedLabelPlaneMatrix,tx(n,r,a))).isOccluded=!1:((o=n.transform.projectTileCoordinates(r,a,n.unwrappedTileID,tx(n,r,a))).point.x=(.5*o.point.x+.5)*n.width,o.point.y=(-(.5*o.point.y)+.5)*n.height),o}function tS(t,i,n,r){if(n.pitchWithMap){let a=[t,i,0,1];(0,E.Xr)(a,a,r);let o=a[0]/a[3],s=a[1]/a[3];return n.transform.projectTileCoordinates(o,s,n.unwrappedTileID,tx(n,o,s)).point}return{x:t/n.width*2-1,y:1-i/n.height*2}}function tD(t,i,n){return n.transform.projectTileCoordinates(t,i,n.unwrappedTileID,tx(n,t,i))}function tP(t,i,n){return t._unit()._perp()._mult(i*n)}function tM(t,i,n,r,a,o,s,l,c){let d=r?t-i:t+i,h=d>0?1:-1,u=0;r&&(h*=-1,u=Math.PI),h<0&&(u+=Math.PI);let p=h>0?o+a:o+a+1,m;l.projectionCache.cachedAnchorPoint?m=l.projectionCache.cachedAnchorPoint:(m=tI(l.tileAnchorPoint.x,l.tileAnchorPoint.y,l).point,l.projectionCache.cachedAnchorPoint=m);let f=m,g=m,_,v,y=0,b=0,x=Math.abs(d),w=[],C;for(;y+b<=x;){if((p+=h)<o||p>=s)return null;y+=b,g=f,v=_;let t={absOffsetX:x,direction:h,distanceFromAnchor:y,previousVertex:g};if(f=tA(p,l,t),0===n)w.push(g),C=f.sub(g);else{let i,r=f.sub(g);i=0===r.mag()?tP(tA(p+h,l,t).sub(f),n,h):tP(r,n,h),v||=g.add(i),_=function(t,i,n,r,a,o,s,l,c){if(l.projectionCache.offsets[t])return l.projectionCache.offsets[t];let d=n.add(i);if(t+c.direction<r||t+c.direction>=a)return l.projectionCache.offsets[t]=d,d;let h=tA(t+c.direction,l,c),u=tP(h.sub(n),s,c.direction),p=n.add(u),m=h.add(u);return l.projectionCache.offsets[t]=(0,E.rr)(o,d,p,m)||d,l.projectionCache.offsets[t]}(p,i,f,o,s,v,n,l,t),w.push(v),C=_.sub(v)}b=C.mag()}let T=(x-y)/b,k=C._mult(T)._add(v||g),A=u+Math.atan2(f.y-g.y,f.x-g.x);return w.push(k),{point:k,angle:c?A:0,path:w}}let tz=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function tL(t,i){for(let n=0;n<t;n++){let t=i.length;i.resize(t+4),i.float32.set(tz,3*t)}}function tR(t,i,n){let r=i[0],a=i[1];return t[0]=n[0]*r+n[4]*a+n[12],t[1]=n[1]*r+n[5]*a+n[13],t[3]=n[3]*r+n[7]*a+n[15],t}var tF=class{constructor(t,i=new t_(t.width+200,t.height+200,25),n=new t_(t.width+200,t.height+200,25)){this.transform=t,this.grid=i,this.ignoredGrid=n,this.pitchFactor=Math.cos(t.pitch*Math.PI/180)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(t,i,n,r,a,o,s,l,c,d,h,u,p=0,m=!0){let f=t.anchorPointX+l[0],g=t.anchorPointY+l[1],_=this.projectAndGetPerspectiveRatio(f,g,a,tf(d,f,g,p,m),u),v=n*_.perspectiveRatio,y;if(o||s)y=this._projectCollisionBox(t,v,r,a,o,s,l,_,d,h,u,p,m);else{let i=_.x+(h?h.x*v:0),n=_.y+(h?h.y*v:0);y={allPointsOccluded:!1,box:[i+t.x1*v,n+t.y1*v,i+t.x2*v,n+t.y2*v]}}let[b,x,w,C]=y.box,E=o?y.allPointsOccluded:_.isOccluded,T=E;return T||=_.perspectiveRatio<this.perspectiveRatioCutoff,(T||=!this.isInsideGrid(b,x,w,C))||"always"!==i&&this.grid.hitTest(b,x,w,C,i,c)?{box:[b,x,w,C],placeable:!1,offscreen:!1,occluded:E}:{box:[b,x,w,C],placeable:!0,offscreen:this.isOffscreen(b,x,w,C),occluded:E}}placeCollisionCircles(t,i,n,r,a,o,s,l,c,d,h,u,p,m){let f=[],g=new E.Ri(i.anchorX,i.anchorY),_=this.getPerspectiveRatio(g.x,g.y,o,m?.(g.x,g.y)),v=(c?a*this.transform.getPitchedTextCorrection(i.anchorX,i.anchorY,o)/_:a*_)/24,y=i.lineOffsetX*v,b=i.lineOffsetY*v,x={getElevation:m,pitchedLabelPlaneMatrix:s,lineVertexArray:n,pitchWithMap:c,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},transform:this.transform,tileAnchorPoint:g,unwrappedTileID:o,width:this.transform.width,height:this.transform.height,translation:p},w=tC(v,r,y,b,!1,i,!1,x),C=!1,T=!1,k=!0;if(w){let i=.5*h*_+u,n=new E.Ri(-100,-100),r=new E.Ri(this.screenRightBoundary,this.screenBottomBoundary),a=new tm,o=w.first,s=w.last,p=[];for(let t=o.path.length-1;t>=1;t--)p.push(o.path[t]);for(let t=1;t<s.path.length;t++)p.push(s.path[t]);let m=2.5*i;if(c){let t=this.projectPathToScreenSpace(p,x);p=t.some(t=>t.signedDistanceFromCamera<=0)?[]:t.map(t=>t.point)}let g=[];if(p.length>0){let t=p[0].clone(),i=p[0].clone();for(let n=1;n<p.length;n++)t.x=Math.min(t.x,p[n].x),t.y=Math.min(t.y,p[n].y),i.x=Math.max(i.x,p[n].x),i.y=Math.max(i.y,p[n].y);g=t.x>=n.x&&i.x<=r.x&&t.y>=n.y&&i.y<=r.y?[p]:i.x<n.x||t.x>r.x||i.y<n.y||t.y>r.y?[]:(0,E.O)([p],n.x,n.y,r.x,r.y)}for(let n of g){a.reset(n,.25*i);let r=0;r=a.length<=.5*i?1:Math.ceil(a.paddedLength/m)+1;for(let n=0;n<r;n++){let o=n/Math.max(r-1,1),s=a.lerp(o),c=s.x+100,h=s.y+100;f.push(c,h,i,0);let u=c-i,p=h-i,m=c+i,g=h+i;if(k&&=this.isOffscreen(u,p,m,g),T||=this.isInsideGrid(u,p,m,g),"always"!==t&&this.grid.hitTestCircle(c,h,i,t,d)&&(C=!0,!l))return{circles:[],offscreen:!1,collisionDetected:C}}}}return{circles:!l&&C||!T||_<this.perspectiveRatioCutoff?[]:f,offscreen:k,collisionDetected:C}}projectPathToScreenSpace(t,i){var n;let r;return function(t){let i=0,n=0,r=0,a=0;for(let o=0;o<t.length;o++)t[o].isOccluded?(r=o+1,a=0):++a>n&&(n=a,i=r);return t.slice(i,i+n)}((r=1/((n=i.pitchedLabelPlaneMatrix)[0]*n[5]-n[1]*n[4]),tv[0]=n[5]*r,tv[1]=-n[1]*r,tv[2]=0,tv[3]=0,tv[4]=-n[4]*r,tv[5]=n[0]*r,tv[6]=0,tv[7]=0,tv[8]=0,tv[9]=0,tv[10]=1/n[10],tv[11]=0,tv[12]=0,tv[13]=0,tv[14]=0,tv[15]=1/n[15],t.map(t=>{let n=tw(t.x,t.y,tv,tx(i,t.x,t.y)),r=i.transform.projectTileCoordinates(n.point.x,n.point.y,i.unwrappedTileID,tx(i,n.point.x,n.point.y));return r.point.x=(.5*r.point.x+.5)*i.width,r.point.y=(-(.5*r.point.y)+.5)*i.height,r})))}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};let i=[],n=new E.dt;for(let r of t){let t=new E.Ri(r.x+100,r.y+100);n.extend(t),i.push(t)}let{minX:r,minY:a,maxX:o,maxY:s}=n,l=this.grid.query(r,a,o,s).concat(this.ignoredGrid.query(r,a,o,s)),c={},d={};for(let t of l){let n=t.key;if(void 0===c[n.bucketInstanceId]&&(c[n.bucketInstanceId]={}),c[n.bucketInstanceId][n.featureIndex])continue;let r=[new E.Ri(t.x1,t.y1),new E.Ri(t.x2,t.y1),new E.Ri(t.x2,t.y2),new E.Ri(t.x1,t.y2)];(0,E.Dt)(i,r)&&(c[n.bucketInstanceId][n.featureIndex]=!0,void 0===d[n.bucketInstanceId]&&(d[n.bucketInstanceId]=[]),d[n.bucketInstanceId].push(n.featureIndex))}return d}insertCollisionBox(t,i,n,r,a,o){(n?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:a,collisionGroupID:o,overlapMode:i},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,i,n,r,a,o){let s=n?this.ignoredGrid:this.grid,l={bucketInstanceId:r,featureIndex:a,collisionGroupID:o,overlapMode:i};for(let i=0;i<t.length;i+=4)s.insertCircle(l,t[i],t[i+1],t[i+2])}projectAndGetPerspectiveRatio(t,i,n,r,a){if(a){let n;null==r?tR(n=[t,i,0,1],n,a):(n=[t,i,r,1],(0,E.Xr)(n,n,a));let o=n[3];return{x:(n[0]/o+1)/2*this.transform.width+100,y:(-n[1]/o+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/o),isOccluded:!1,signedDistanceFromCamera:o}}{let a=this.transform.projectTileCoordinates(t,i,n,r);return{x:(a.point.x+1)/2*this.transform.width+100,y:(-a.point.y+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/a.signedDistanceFromCamera),isOccluded:a.isOccluded,signedDistanceFromCamera:a.signedDistanceFromCamera}}}getPerspectiveRatio(t,i,n,r){let a=this.transform.projectTileCoordinates(t,i,n,r);return .5+.5*(this.transform.cameraToCenterDistance/a.signedDistanceFromCamera)}isOffscreen(t,i,n,r){return n<100||t>=this.screenRightBoundary||r<100||i>this.screenBottomBoundary}isInsideGrid(t,i,n,r){return n>=0&&t<this.gridRightBoundary&&r>=0&&i<this.gridBottomBoundary}getViewportMatrix(){let t=(0,E.Ci)([]);return(0,E.Mi)(t,t,[-100,-100,0]),t}_projectCollisionBox(t,i,n,r,a,o,s,l,c,d,h,u=0,p=!0){let m=1,f=0,g=0,_=1,v=t.anchorPointX+s[0],y=t.anchorPointY+s[1];if(o&&!a){let t=this.projectAndGetPerspectiveRatio(v+1,y,r,tf(c,v+1,y,u,p),h),i=t.x-l.x,n=Math.atan((t.y-l.y)/i)+(i<0?Math.PI:0),a=Math.sin(n),o=Math.cos(n);m=o,f=a,g=-a,_=o}else if(!o&&a){let t=tb(this.transform);m=t.vecEast[0],f=t.vecEast[1],g=t.vecSouth[0],_=t.vecSouth[1]}let b=l.x,x=l.y,w=i;if(a&&(b=v,x=y,w=2**-(this.transform.zoom-n.overscaledZ)*this.transform.getPitchedTextCorrection(v,y,r),!d)){let t=l.signedDistanceFromCamera/this.transform.cameraToCenterDistance;w*=(0,E.Vn)(.5+.5*t,0,4)}d&&(b+=m*d.x*w+g*d.y*w,x+=f*d.x*w+_*d.y*w);let C=t.x1*w,T=t.x2*w,k=(C+T)/2,A=t.y1*w,I=t.y2*w,S=(A+I)/2,D=[];for(let{offsetX:t,offsetY:i}of[{offsetX:C,offsetY:A},{offsetX:k,offsetY:A},{offsetX:T,offsetY:A},{offsetX:T,offsetY:S},{offsetX:T,offsetY:I},{offsetX:k,offsetY:I},{offsetX:C,offsetY:I},{offsetX:C,offsetY:S}])D.push(new E.Ri(b+m*t+g*i,x+f*t+_*i));let P=!1;if(a){let t=D.map(t=>this.projectAndGetPerspectiveRatio(t.x,t.y,r,tf(c,t.x,t.y,u,p),h));P=t.some(t=>!t.isOccluded),D=t.map(t=>new E.Ri(t.x,t.y))}else P=!0;return{box:(0,E.ir)(D),allPointsOccluded:!P}}},tO=class{constructor(t,i,n,r){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?i:-i))):r&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}},tB=class{constructor(t,i,n,r,a){this.text=new tO(t?t.text:null,i,n,a),this.icon=new tO(t?t.icon:null,i,r,a)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},tN=class{constructor(t,i,n){this.text=t,this.icon=i,this.skipFade=n}},tV=class{constructor(t,i,n,r,a){this.bucketInstanceId=t,this.featureIndex=i,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=a}},t$=class{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){let i=++this.maxGroupID;this.collisionGroups[t]={ID:i,predicate:t=>t.collisionGroupID===i}}return this.collisionGroups[t]}};function tj(t,i,n,r,a){let{horizontalAlign:o,verticalAlign:s}=(0,E.M)(t);return new E.Ri(-(o-.5)*i+r[0]*a,-(s-.5)*n+r[1]*a)}var tU=class{constructor(t,i,n,r,a){this.transform=t.clone(),this.terrain=i,this.collisionIndex=new tF(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=n,this.retainedQueryData={},this.collisionGroups=new t$(r),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=a,a&&(a.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(t){let i=this.terrain;if(i)return(n,r)=>i.getElevation(t,n,r)}getBucketParts(t,i,n,r){let a=n.getBucket(i),o=n.latestFeatureIndex;if(!a||!o||i.id!==a.layerIds[0])return;let s=n.collisionBoxArray,l=a.layers[0].layout,c=a.layers[0].paint,d=2**(this.transform.zoom-n.tileID.overscaledZ),h=n.tileSize/8192,u=n.tileID.toUnwrapped(),p="map"===l.get("text-rotation-alignment"),m=(0,E.Lr)(n,1,this.transform.zoom),f=(0,E.Mr)(this.collisionIndex.transform,n,c.get("text-translate"),c.get("text-translate-anchor")),g=(0,E.Mr)(this.collisionIndex.transform,n,c.get("icon-translate"),c.get("icon-translate-anchor")),_=ty(p,this.transform,m);this.retainedQueryData[a.bucketInstanceId]=new tV(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);let v={bucket:a,layout:l,translationText:f,translationIcon:g,unwrappedTileID:u,pitchedLabelPlaneMatrix:_,scale:d,textPixelRatio:h,holdingForFade:n.holdingForSymbolFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:(0,E.A)(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(r)for(let i of a.sortKeyRanges){let{sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:a}=i;t.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:a,parameters:v})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:v})}attemptAnchorPlacement(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w){let C=E.E[t.textAnchor],T=[t.textOffset0,t.textOffset1],k=tj(C,n,r,T,a),A=this.collisionIndex.placeCollisionBox(i,u,l,c,d,s,o,g,h.predicate,y,k,b,x,w);if((!v||this.collisionIndex.placeCollisionBox(v,u,l,c,d,s,o,_,h.predicate,y,k,b,x,w).placeable)&&A.placeable){let t;if(this.prevPlacement?.variableOffsets[p.crossTileID]&&this.prevPlacement?.placements[p.crossTileID]?.text&&(t=this.prevPlacement.variableOffsets[p.crossTileID].anchor),0===p.crossTileID)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[p.crossTileID]={textOffset:T,width:n,height:r,anchor:C,textBoxScale:a,prevAnchor:t},this.markUsedJustification(m,C,p,f),m.allowVerticalPlacement&&(this.markUsedOrientation(m,f,p),this.placedOrientations[p.crossTileID]=f),{shift:k,placedGlyphBoxes:A}}}placeLayerBucketPart(t,i,n){let{bucket:r,layout:a,translationText:o,translationIcon:s,unwrappedTileID:l,pitchedLabelPlaneMatrix:c,textPixelRatio:d,holdingForFade:h,collisionBoxArray:u,partiallyEvaluatedTextSize:p,collisionGroup:m}=t.parameters,f=a.get("text-optional"),g=a.get("icon-optional"),_=(0,E.w)(a,"text-overlap","text-allow-overlap"),v="always"===_,y=(0,E.w)(a,"icon-overlap","icon-allow-overlap"),b="always"===y,x="map"===a.get("text-rotation-alignment"),w="map"===a.get("text-pitch-alignment"),C="none"!==a.get("icon-text-fit"),T="viewport-y"===a.get("symbol-z-order"),k="ground"===a.get("symbol-height-anchor"),A=v&&(b||!r.hasIconData()||g),I=b&&(v||!r.hasTextData()||f);!r.collisionArrays&&u&&r.deserializeCollisionBoxes(u);let S=this.retainedQueryData[r.bucketInstanceId].tileID,D=this._getTerrainElevationFunc(S),P=this.transform.getFastPathSimpleProjectionMatrix(S),M=(t,u,b)=>{if(i[t.crossTileID])return;if(h){this.placements[t.crossTileID]=new tN(!1,!1,!1);return}let T=t.heightOffset,M=!1,z=!1,L=!0,R=null,F={box:null,placeable:!1,offscreen:null,occluded:!1},O={box:null,placeable:!1,offscreen:null},B=null,N=null,V=null,$=0,j=0,U=0;u.textFeatureIndex?$=u.textFeatureIndex:t.useRuntimeCollisionCircles&&($=t.featureIndex),u.verticalTextFeatureIndex&&(j=u.verticalTextFeatureIndex);let q=u.textBox;if(q){let i=i=>{let n=1;if(r.allowVerticalPlacement&&!i&&this.prevPlacement){let i=this.prevPlacement.placedOrientations[t.crossTileID];i&&(this.placedOrientations[t.crossTileID]=i,n=i,this.markUsedOrientation(r,n,t))}return n},a=(i,n)=>{if(r.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&u.verticalTextBox){for(let t of r.writingModes)if(2===t?O=F=n():F=i(),F?.placeable)break}else F=i()},c=t.textAnchorOffsetStartIndex,h=t.textAnchorOffsetEndIndex;if(h===c){let n=(i,n)=>{let a=this.collisionIndex.placeCollisionBox(i,_,d,S,l,w,x,o,m.predicate,D,void 0,P,T,k);return a?.placeable&&(this.markUsedOrientation(r,n,t),this.placedOrientations[t.crossTileID]=n),a};a(()=>n(q,1),()=>{let i=u.verticalTextBox;return r.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i?n(i,2):{box:null,offscreen:null}}),i(F?.placeable)}else{let p=E.E[this.prevPlacement?.variableOffsets[t.crossTileID]?.anchor],f=(i,a,u)=>{let f=i.x2-i.x1,g=i.y2-i.y1,v=t.textBoxScale,b=C&&"never"===y?a:null,E=null,A="never"===_?1:2,I="never";p&&A++;for(let n=0;n<A;n++){for(let n=c;n<h;n++){let a=r.textAnchorOffsets.get(n);if(p&&a.textAnchor!==p)continue;let c=this.attemptAnchorPlacement(a,i,f,g,v,x,w,d,S,l,m,I,t,r,u,o,s,b,D,P,T,k);if(c&&(E=c.placedGlyphBoxes,E?.placeable))return M=!0,R=c.shift,E}p?p=null:I=_}return n&&!E&&(E={box:this.collisionIndex.placeCollisionBox(q,"always",d,S,l,w,x,o,m.predicate,D,void 0,P,T,k).box,offscreen:!1,placeable:!1,occluded:!1}),E};a(()=>f(q,u.iconBox,1),()=>{let i=u.verticalTextBox,n=F?.placeable;return r.allowVerticalPlacement&&!n&&t.numVerticalGlyphVertices>0&&i?f(i,u.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),F&&(M=F.placeable,L=F.offscreen);let g=i(F?.placeable);if(!M&&this.prevPlacement){let i=this.prevPlacement.variableOffsets[t.crossTileID];i&&(this.variableOffsets[t.crossTileID]=i,this.markUsedJustification(r,i.anchor,t,g))}}}if(B=F,M=B?.placeable,L=B?.offscreen,t.useRuntimeCollisionCircles&&t.centerJustifiedTextSymbolIndex>=0){let i=r.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),s=(0,E.k)(r.textSizeData,p,i),d=a.get("text-padding"),h=t.collisionCircleDiameter;(N=this.collisionIndex.placeCollisionCircles(_,i,r.lineVertexArray,r.glyphOffsetArray,s,l,c,n,w,m.predicate,h,d,o,D)).circles.length&&N.collisionDetected&&!n&&(0,E.Pr)("Collisions detected, but collision boxes are not shown"),M=v||N.circles.length>0&&!N.collisionDetected,L&&=N.offscreen}if(u.iconFeatureIndex&&(U=u.iconFeatureIndex),u.iconBox){let t=t=>this.collisionIndex.placeCollisionBox(t,y,d,S,l,w,x,s,m.predicate,D,C&&R?R:void 0,P,T,k);z=O&&O.placeable&&u.verticalIconBox?(V=t(u.verticalIconBox)).placeable:(V=t(u.iconBox)).placeable,L&&=V.offscreen}let G=f||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,H=g||0===t.numIconVertices;G||H?H?G||(z&&=M):M=z&&M:z=M=z&&M;let Z=M&&B.placeable,X=z&&V.placeable;if(Z&&(O&&O.placeable&&j?this.collisionIndex.insertCollisionBox(B.box,_,a.get("text-ignore-placement"),r.bucketInstanceId,j,m.ID):this.collisionIndex.insertCollisionBox(B.box,_,a.get("text-ignore-placement"),r.bucketInstanceId,$,m.ID)),X&&this.collisionIndex.insertCollisionBox(V.box,y,a.get("icon-ignore-placement"),r.bucketInstanceId,U,m.ID),N&&M&&this.collisionIndex.insertCollisionCircles(N.circles,_,a.get("text-ignore-placement"),r.bucketInstanceId,$,m.ID),n&&this.storeCollisionData(r.bucketInstanceId,b,u,B,V,N),0===t.crossTileID)throw Error("symbolInstance.crossTileID can't be 0");if(0===r.bucketInstanceId)throw Error("bucket.bucketInstanceId can't be 0");let W=(M||A)&&!B?.occluded,Y=(z||I)&&!V?.occluded;this.placements[t.crossTileID]=new tN(W,Y,L||r.justReloaded),i[t.crossTileID]=!0};if(T){if(0!==t.symbolInstanceStart)throw Error("bucket.bucketInstanceId should be 0");let i=r.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let t=i.length-1;t>=0;--t){let n=i[t];M(r.symbolInstances.get(n),r.collisionArrays[n],n)}}else for(let i=t.symbolInstanceStart;i<t.symbolInstanceEnd;i++)M(r.symbolInstances.get(i),r.collisionArrays[i],i);r.justReloaded=!1}storeCollisionData(t,i,n,r,a,o){if(n.textBox||n.iconBox){let o,s;this.collisionBoxArrays.has(t)?o=this.collisionBoxArrays.get(t):(o=new Map,this.collisionBoxArrays.set(t,o)),o.has(i)?s=o.get(i):(s={text:null,icon:null},o.set(i,s)),n.textBox&&(s.text=r.box),n.iconBox&&(s.icon=a.box)}if(o){let i=this.collisionCircleArrays[t];void 0===i&&(i=this.collisionCircleArrays[t]=[]);for(let t=0;t<o.circles.length;t+=4)i.push(o.circles[t+0]-100),i.push(o.circles[t+1]-100),i.push(o.circles[t+2]),i.push(+!!o.collisionDetected)}}markUsedJustification(t,i,n,r){let a={left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex},o;for(let s of(o=2===r?n.verticalPlacedTextSymbolIndex:a[(0,E.T)(i)],[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex]))s>=0&&(o>=0&&s!==o?t.text.placedSymbolArray.get(s).crossTileID=0:t.text.placedSymbolArray.get(s).crossTileID=n.crossTileID)}markUsedOrientation(t,i,n){let r=1===i||3===i?i:0;for(let i of[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex])t.text.placedSymbolArray.get(i).placedOrientation=r;n.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=2===i?i:0)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;let i=this.prevPlacement,n=!1;this.prevZoomAdjustment=i?i.zoomAdjustment(this.transform.zoom):0;let r=i?i.symbolFadeChange(t):1,a=i?i.opacities:{},o=i?i.variableOffsets:{},s=i?i.placedOrientations:{};for(let t in this.placements){let i=this.placements[t],o=a[t];o?(this.opacities[t]=new tB(o,r,i.text,i.icon),n||=i.text!==o.text.placed,n||=i.icon!==o.icon.placed):(this.opacities[t]=new tB(null,r,i.text,i.icon,i.skipFade),n||=i.text||i.icon)}for(let t in a){let i=a[t];if(!this.opacities[t]){let a=new tB(i,r,!1,!1);a.isHidden()||(this.opacities[t]=a,n||=i.text.placed,n||=i.icon.placed)}}for(let t in o)this.variableOffsets[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.variableOffsets[t]=o[t]);for(let t in s)this.placedOrientations[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.placedOrientations[t]=s[t]);if(i&&void 0===i.lastPlacementChangeTime)throw Error("Last placement time for previous placement is not defined");n?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=i?i.lastPlacementChangeTime:t)}updateLayerOpacities(t,i){let n={};for(let r of i){let i=r.getBucket(t);i&&r.latestFeatureIndex&&t.id===i.layerIds[0]&&this.updateBucketOpacities(i,r.tileID,n,r.collisionBoxArray)}}updateBucketOpacities(t,i,n,r){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();let a=t.layers[0],o=a.layout,s=new tB(null,0,!1,!1,!0),l=o.get("text-allow-overlap"),c=o.get("icon-allow-overlap"),d=a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"),h="map"===o.get("text-rotation-alignment"),u="map"===o.get("text-pitch-alignment"),p="none"!==o.get("icon-text-fit"),m=new tB(null,0,l&&(c||!t.hasIconData()||o.get("icon-optional")),c&&(l||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);let f=(t,i,n)=>{for(let r=0;r<i/4;r++)t.opacityVertexArray.emplaceBack(n);t.hasVisibleVertices||=n!==tH},g=this.collisionBoxArrays.get(t.bucketInstanceId);for(let i=0;i<t.symbolInstances.length;i++){let r=t.symbolInstances.get(i),{numHorizontalGlyphVertices:a,numVerticalGlyphVertices:o,crossTileID:l}=r,c=n[l],_=this.opacities[l];c?_=s:_||(_=m,this.opacities[l]=_),n[l]=!0;let v=a>0||o>0,y=r.numIconVertices>0,b=this.placedOrientations[r.crossTileID],x=2===b,w=1===b||3===b;if(v){let i=tG(_.text),n=x?tH:i;f(t.text,a,n);let s=w?tH:i;f(t.text,o,s);let l=_.text.isHidden();for(let i of[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex])i>=0&&(t.text.placedSymbolArray.get(i).hidden=l||x?1:0);r.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).hidden=l||w?1:0);let c=this.variableOffsets[r.crossTileID];c&&this.markUsedJustification(t,c.anchor,r,b);let d=this.placedOrientations[r.crossTileID];d&&(this.markUsedJustification(t,"left",r,d),this.markUsedOrientation(t,d,r))}if(y){let i=tG(_.icon),n=!(p&&r.verticalPlacedIconSymbolIndex&&x);if(r.placedIconSymbolIndex>=0){let a=n?i:tH;f(t.icon,r.numIconVertices,a),t.icon.placedSymbolArray.get(r.placedIconSymbolIndex).hidden=_.icon.isHidden()}if(r.verticalPlacedIconSymbolIndex>=0){let a=n?tH:i;f(t.icon,r.numVerticalIconVertices,a),t.icon.placedSymbolArray.get(r.verticalPlacedIconSymbolIndex).hidden=_.icon.isHidden()}}let C=g?.has(i)?g.get(i):{text:null,icon:null};if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){let n=t.collisionArrays[i];if(n){let i=new E.Ri(0,0);if(n.textBox||n.verticalTextBox){let r=!0;if(d){let t=this.variableOffsets[l];t?(i=tj(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),h&&i._rotate(u?-this.transform.bearingInRadians:this.transform.bearingInRadians)):r=!1}if(n.textBox||n.verticalTextBox){let a;n.textBox&&(a=x),n.verticalTextBox&&(a=w),tq(t.textCollisionBox.collisionVertexArray,_.text.placed,!r||a,C.text,i.x,i.y)}}if(n.iconBox||n.verticalIconBox){let r=!(w||!n.verticalIconBox),a;n.iconBox&&(a=r),n.verticalIconBox&&(a=!r),tq(t.iconCollisionBox.collisionVertexArray,_.icon.placed,a,C.icon,p?i.x:0,p?i.y:0)}}}}if(t.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);t.bucketInstanceId in this.collisionCircleArrays&&(t.collisionCircleArray=this.collisionCircleArrays[t.bucketInstanceId],delete this.collisionCircleArrays[t.bucketInstanceId])}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(t,i){let n=this.zoomAtLastRecencyCheck===i?1-this.zoomAdjustment(i):1;return this.zoomAtLastRecencyCheck=i,this.commitTime+this.fadeDuration*n>t}setStale(){this.stale=!0}};function tq(t,i,n,r,a,o){r&&0!==r.length||(r=[0,0,0,0]);let s=r[0]-100,l=r[1]-100,c=r[2]-100,d=r[3]-100;t.emplaceBack(+!!i,+!!n,a||0,o||0,s,l),t.emplaceBack(+!!i,+!!n,a||0,o||0,c,l),t.emplaceBack(+!!i,+!!n,a||0,o||0,c,d),t.emplaceBack(+!!i,+!!n,a||0,o||0,s,d)}function tG(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 0xffffffff;let i=+!!t.placed,n=Math.floor(127*t.opacity);return 0x2000000*n+0x1000000*i+131072*n+65536*i+512*n+256*i+2*n+i}let tH=0;var tZ=class{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,i,n,r,a){let o=this._bucketParts;for(;this._currentTileIndex<t.length;){let n=t[this._currentTileIndex];if(i.getBucketParts(o,r,n,this._sortAcrossTiles),this._currentTileIndex++,a())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((t,i)=>t.sortKey-i.sortKey));this._currentPartIndex<o.length;){let t=o[this._currentPartIndex];if(i.placeLayerBucketPart(t,this._seenCrossTileIDs,n),this._currentPartIndex++,a())return!0}return!1}},tX=class{constructor(t,i,n,r,a,o,s,l){this.placement=new tU(t,i,o,s,l),this._currentPlacementIndex=n.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=a,this._done=!1}isDone(){return this._done}continuePlacement(t,i,n){let r=S(),a=()=>!this._forceFullPlacement&&S()-r>2;for(;this._currentPlacementIndex>=0;){let r=i[t[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if((0,E.x)(r)&&r.layout&&(!r.minzoom||r.minzoom<=o)&&(!r.maxzoom||r.maxzoom>o)){if(this._inProgressLayer||=new tZ(r),this._inProgressLayer.continuePlacement(n[r.source],this.placement,this._showCollisionBoxes,r,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}};let tW=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],tY=new Uint32Array(96);var tK=class t{static from(i){if(!i||void 0===i.byteLength||i.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[n,r]=new Uint8Array(i,0,2);if(219!==n)throw Error("Data does not appear to be in a KDBush format.");let a=r>>4;if(1!==a)throw Error(`Got v${a} data when expected v1.`);let o=tW[15&r];if(!o)throw Error("Unrecognized array type.");let[s]=new Uint16Array(i,2,1),[l]=new Uint32Array(i,4,1);return new t(l,s,o,void 0,i)}constructor(t,i=64,n=Float64Array,r=ArrayBuffer,a){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+i,2),65535),this.ArrayType=n,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=tW.indexOf(this.ArrayType),s=2*t*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${n}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new n(a,8+l+c,2*t),this._pos=2*t,this._finished=!0;else{let a=this.data=new r(8+s+l+c);this.ids=new this.IndexArrayType(a,8,t),this.coords=new n(a,8+l+c,2*t),this._pos=0,this._finished=!1,new Uint8Array(a,0,2).set([219,16+o]),new Uint16Array(a,2,1)[0]=i,new Uint32Array(a,4,1)[0]=t}}add(t,i){let n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=i,n}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return function t(i,n,r,a,o,s){if(o-a<=r)return;let l=a+o>>1;(function t(i,n,r,a,o,s){for(;o>a;){if(o-a>600){let l=o-a+1,c=r-a+1,d=Math.log(l),h=.5*Math.exp(2*d/3),u=.5*Math.sqrt(d*h*(l-h)/l)*(c-l/2<0?-1:1);t(i,n,r,Math.max(a,Math.floor(r-c*h/l+u)),Math.min(o,Math.floor(r+(l-c)*h/l+u)),s)}let l=n[2*r+s],c=a,d=o;for(tJ(i,n,a,r),n[2*o+s]>l&&tJ(i,n,a,o);c<d;){for(tJ(i,n,c,d),c++,d--;n[2*c+s]<l;)c++;for(;n[2*d+s]>l;)d--}n[2*a+s]===l?tJ(i,n,a,d):tJ(i,n,++d,o),d<=r&&(a=d+1),r<=d&&(o=d-1)}})(i,n,l,a,o,s),t(i,n,r,a,l-1,1-s),t(i,n,r,l+1,o,1-s)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,i,n,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;tY[0]=0,tY[1]=a.length-1,tY[2]=0;let l=3,c=[];for(;l>0;){let d=tY[--l],h=tY[--l],u=tY[--l];if(h-u<=s){for(let s=u;s<=h;s++){let l=o[2*s],d=o[2*s+1];l>=t&&l<=n&&d>=i&&d<=r&&c.push(a[s])}continue}let p=u+h>>1,m=o[2*p],f=o[2*p+1];m>=t&&m<=n&&f>=i&&f<=r&&c.push(a[p]),(0===d?t<=m:i<=f)&&(tY[l++]=u,tY[l++]=p-1,tY[l++]=1-d),(0===d?n>=m:r>=f)&&(tY[l++]=p+1,tY[l++]=h,tY[l++]=1-d)}return c}within(t,i,n){let r=[];return this.withinInto(t,i,n,r),r}withinInto(t,i,n,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;tY[0]=0,tY[1]=a.length-1,tY[2]=0;let l=3,c=0,d=n*n;for(;l>0;){let h=tY[--l],u=tY[--l],p=tY[--l];if(u-p<=s){for(let n=p;n<=u;n++)t0(o[2*n],o[2*n+1],t,i)<=d&&(r[c++]=a[n]);continue}let m=p+u>>1,f=o[2*m],g=o[2*m+1];t0(f,g,t,i)<=d&&(r[c++]=a[m]),(0===h?t-n<=f:i-n<=g)&&(tY[l++]=p,tY[l++]=m-1,tY[l++]=1-h),(0===h?t+n>=f:i+n>=g)&&(tY[l++]=m+1,tY[l++]=u,tY[l++]=1-h)}return c}};function tJ(t,i,n,r){tQ(t,n,r),tQ(i,2*n,2*r),tQ(i,2*n+1,2*r+1)}function tQ(t,i,n){let r=t[i];t[i]=t[n],t[n]=r}function t0(t,i,n,r){let a=t-n,o=i-r;return a*a+o*o}var t2=class{constructor(t,i,n){this.tileID=t,this.bucketInstanceId=n,this._symbolsByKey={};let r=new Map;for(let t=0;t<i.length;t++){let n=i.get(t),a=n.key,o=r.get(a);o?o.push(n):r.set(a,[n])}for(let[t,i]of r){let n={positions:i.map(t=>({x:Math.floor(.03125*t.anchorX),y:Math.floor(.03125*t.anchorY)})),crossTileIDs:i.map(t=>t.crossTileID)};if(n.positions.length>128){let t=new tK(n.positions.length,16,Uint16Array);for(let{x:i,y:r}of n.positions)t.add(i,r);t.finish(),delete n.positions,n.index=t}this._symbolsByKey[t]=n}}getScaledCoordinates(t,i){let{x:n,y:r,z:a}=this.tileID.canonical,{x:o,y:s,z:l}=i.canonical,c=.03125/2**(l-a);return{x:Math.floor((8192*o+t.anchorX)*c-8192*n*.03125),y:Math.floor((8192*s+t.anchorY)*c-8192*r*.03125)}}findMatches(t,i,n){let r=this.tileID.canonical.z<i.canonical.z?1:2**(this.tileID.canonical.z-i.canonical.z);for(let a=0;a<t.length;a++){let o=t.get(a);if(o.crossTileID)continue;let s=this._symbolsByKey[o.key];if(!s)continue;let l=this.getScaledCoordinates(o,i);s.index?this.findMatchesForIndexedEntry(s,o,l,r,n):s.positions&&this.findMatchesForNonIndexedEntry(s,o,l,r,n)}}findMatchesForIndexedEntry(t,i,n,r,a){let o=t.index.range(n.x-r,n.y-r,n.x+r,n.y+r),s=1/0;for(let i of o)i<s&&!a[t.crossTileIDs[i]]&&(s=i);if(1/0!==s){let n=t.crossTileIDs[s];a[n]=!0,i.crossTileID=n}}findMatchesForNonIndexedEntry(t,i,n,r,a){for(let o=0;o<t.positions.length;o++){let s=t.positions[o],l=t.crossTileIDs[o];if(Math.abs(s.x-n.x)<=r&&Math.abs(s.y-n.y)<=r&&!a[l]){a[l]=!0,i.crossTileID=l;break}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map(({crossTileIDs:t})=>t)}},t1=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},t3=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){let i=Math.round((t-this.lng)/360);if(0!==i)for(let t in this.indexes){let n=this.indexes[t],r={};for(let t in n){let a=n[t];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+i),r[a.tileID.key]=a}this.indexes[t]=r}this.lng=t}addBucket(t,i,n){if(this.indexes[t.overscaledZ]?.[t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===i.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let t=0;t<i.symbolInstances.length;t++)i.symbolInstances.get(t).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||={};let r=this.usedCrossTileIDs[t.overscaledZ];for(let n in this.indexes){let a=this.indexes[n];if(Number(n)>t.overscaledZ)for(let n in a){let o=a[n];o.tileID.isChildOf(t)&&o.findMatches(i.symbolInstances,t,r)}else{let o=a[t.scaledTo(Number(n)).key];o&&o.findMatches(i.symbolInstances,t,r)}}for(let t=0;t<i.symbolInstances.length;t++){let a=i.symbolInstances.get(t);a.crossTileID||(a.crossTileID=n.generate(),r[a.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new t2(t,i.symbolInstances,i.bucketInstanceId),!0}removeBucketCrossTileIDs(t,i){for(let n of i.getCrossTileIDsLists())for(let i of n)delete this.usedCrossTileIDs[t][i]}removeStaleBuckets(t){let i=!1;for(let n in this.indexes){let r=this.indexes[n];for(let a in r)t[r[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[a]),delete r[a],i=!0)}return i}},t5=class{constructor(){this.layerIndexes={},this.crossTileIDs=new t1,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(t,i,n){let r=this.layerIndexes[t.id];void 0===r&&(r=this.layerIndexes[t.id]=new t3);let a=!1,o={};for(let s of(r.handleWrapJump(n),i)){let i=s.getBucket(t);t.id===i?.layerIds[0]&&(i.bucketInstanceId||=(this.maxBucketInstanceId+=1,this.maxBucketInstanceId),r.addBucket(s.tileID,i,this.crossTileIDs)&&(a=!0),o[i.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(a=!0),a}pruneUnusedLayers(t){let i={};for(let n of t)i[n]=!0;for(let t in this.layerIndexes)i[t]||delete this.layerIndexes[t]}},t4=`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
2
+ Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(n[1])} }\`.`)];let p=[];return"symbol"===t.layerType&&"text-font"===c&&ru(rZ(l))&&"identity"===rH(l.type)&&p.push(new tK(r,l,'"text-font" does not support identity functions')),p.concat(a({key:t.key,value:l,valueSpec:u,style:o,styleSpec:s,expressionContext:"property",propertyType:i,propertyKey:c}))}function r3(t){return r1(t,"paint")}function r5(t){return r1(t,"layout")}function r4(t){let i=[],n=t.value,r=t.key,a=t.style,o=t.styleSpec;if("object"!==rh(n))return[new tK(r,n,`object expected, ${rh(n)} found`)];n.type||n.ref||i.push(new tK(r,n,'either "type" or "ref" is required'));let s=rH(n.type),l=rH(n.ref);if(n.id){let o=rH(n.id);for(let s=0;s<t.arrayIndex;s++){let t=a.layers[s];rH(t.id)===o&&i.push(new tK(r,n.id,`duplicate layer id "${n.id}", previously used at line ${t.id.__line__}`))}}if("ref"in n){let t;["type","source","source-layer","filter","layout"].forEach(t=>{t in n&&i.push(new tK(r,n[t],`"${t}" is prohibited for ref layers`))}),a.layers.forEach(i=>{rH(i.id)===l&&(t=i)}),t?t.ref?i.push(new tK(r,n.ref,"ref cannot reference another ref layer")):s=rH(t.type):i.push(new tK(r,n.ref,`ref layer "${l}" not found`))}else if("background"!==s)if(n.source){let t=a.sources&&a.sources[n.source],o=t&&rH(t.type);t?"vector"===o&&"raster"===s?i.push(new tK(r,n.source,`layer "${n.id}" requires a raster source`)):"raster-dem"!==o&&"hillshade"===s||"raster-dem"!==o&&"color-relief"===s?i.push(new tK(r,n.source,`layer "${n.id}" requires a raster-dem source`)):"raster"===o&&"raster"!==s?i.push(new tK(r,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==o||n["source-layer"]?"raster-dem"===o&&"hillshade"!==s&&"color-relief"!==s?i.push(new tK(r,n.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):"line"===s&&n.paint&&n.paint["line-gradient"]&&("geojson"!==o||!t.lineMetrics)&&i.push(new tK(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):i.push(new tK(r,n,`layer "${n.id}" must specify a "source-layer"`)):i.push(new tK(r,n.source,`source "${n.source}" not found`))}else i.push(new tK(r,n,'missing required property "source"'));return"raster"===s&&n.paint?.resampling&&n.paint?.["raster-resampling"]&&i.push(new tK(r,n.paint,`layer "${n.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),i=i.concat(rX({key:r,value:n,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":()=>[],type:()=>t.validateSpec({key:`${r}.type`,value:n.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:n,objectKey:"type"}),filter:r2,layout:t=>rX({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>r5(rd({layerType:s},t))}}),paint:t=>rX({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>r3(rd({layerType:s},t))}})}}))}function r6(t){let i=t.value,n=t.key,r=rh(i);return"string"===r?[]:[new tK(n,i,`string expected, ${r} found`)]}let r8={promoteId:function({key:t,value:i}){if("string"===rh(i))return r6({key:t,value:i});{let n=[];for(let r in i)n.push(...r6({key:`${t}.${r}`,value:i[r]}));return n}}};function r7(t){let i=t.value,n=t.key,r=t.styleSpec,a=t.style,o=t.validateSpec;if(!i.type)return[new tK(n,i,'"type" is required')];let s=rH(i.type),l;switch(s){case"vector":case"raster":return rX({key:n,value:i,valueSpec:r[`source_${s.replace("-","_")}`],style:t.style,styleSpec:r,objectElementValidators:r8,validateSpec:o});case"raster-dem":return function(t){let i=t.sourceName??"",n=t.value,r=t.styleSpec,a=r.source_raster_dem,o=t.style,s=[],l=rh(n);if(void 0===n)return s;if("object"!==l)return s.push(new tK("source_raster_dem",n,`object expected, ${l} found`)),s;let c="custom"===rH(n.encoding),d=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let l in n)!c&&d.includes(l)?s.push(new tK(l,n[l],`In "${i}": "${l}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):a[l]?s=s.concat(t.validateSpec({key:l,value:n[l],valueSpec:a[l],validateSpec:t.validateSpec,style:o,styleSpec:r})):s.push(new tK(l,n[l],`unknown property "${l}"`));return s}({sourceName:n,value:i,style:t.style,styleSpec:r,validateSpec:o});case"geojson":if(l=rX({key:n,value:i,valueSpec:r.source_geojson,style:a,styleSpec:r,validateSpec:o,objectElementValidators:r8}),i.cluster)for(let t in i.clusterProperties){let[r,a]=i.clusterProperties[t],s="string"==typeof r?[r,["accumulated"],["get",t]]:r;l.push(...rJ({key:`${n}.${t}.map`,value:a,validateSpec:o,expressionContext:"cluster-map"})),l.push(...rJ({key:`${n}.${t}.reduce`,value:s,validateSpec:o,expressionContext:"cluster-reduce"}))}return l;case"video":return rX({key:n,value:i,valueSpec:r.source_video,style:a,validateSpec:o,styleSpec:r});case"image":return rX({key:n,value:i,valueSpec:r.source_image,style:a,validateSpec:o,styleSpec:r});case"canvas":return[new tK(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return r0({key:`${n}.type`,value:i.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,validateSpec:o,styleSpec:r})}}function r9(t){let i=t.value,n=t.styleSpec,r=n.light,a=t.style,o=[],s=rh(i);if(void 0===i)return o;if("object"!==s)return o.concat([new tK("light",i,`object expected, ${s} found`)]);for(let s in i){let l=s.match(/^(.*)-transition$/);o=l&&r[l[1]]&&r[l[1]].transition?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:n.transition,validateSpec:t.validateSpec,style:a,styleSpec:n})):r[s]?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:r[s],validateSpec:t.validateSpec,style:a,styleSpec:n})):o.concat([new tK(s,i[s],`unknown property "${s}"`)])}return o}function ae(t){let i=t.value,n=t.styleSpec,r=n.sky,a=t.style,o=rh(i);if(void 0===i)return[];if("object"!==o)return[new tK("sky",i,`object expected, ${o} found`)];let s=[];for(let o in i)s=r[o]?s.concat(t.validateSpec({key:o,value:i[o],valueSpec:r[o],style:a,styleSpec:n})):s.concat([new tK(o,i[o],`unknown property "${o}"`)]);return s}function at(t){let i=t.value,n=t.styleSpec,r=n.terrain,a=t.style,o=[],s=rh(i);if(void 0===i)return o;if("object"!==s)return o.concat([new tK("terrain",i,`object expected, ${s} found`)]);for(let s in i)o=r[s]?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:r[s],validateSpec:t.validateSpec,style:a,styleSpec:n})):o.concat([new tK(s,i[s],`unknown property "${s}"`)]);return o}function ai(t){let i=[],n=t.value,r=t.key;if(Array.isArray(n)){let a=[],o=[];for(let s in n)n[s].id&&a.includes(n[s].id)&&i.push(new tK(r,n,`all the sprites' ids must be unique, but ${n[s].id} is duplicated`)),a.push(n[s].id),n[s].url&&o.includes(n[s].url)&&i.push(new tK(r,n,`all the sprites' URLs must be unique, but ${n[s].url} is duplicated`)),o.push(n[s].url),i=i.concat(rX({key:`${r}[${s}]`,value:n[s],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:t.validateSpec}));return i}return r6({key:r,value:n})}function an(t){return!!t&&t.constructor===Object}function ar(t){return an(t.value)?[]:[new tK(t.key,t.value,`object expected, ${rh(t.value)} found`)]}let aa=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;function ao(t){let i=t.key??"font-faces",n=t.value,r=t.validateSpec,a=t.styleSpec??tY,o=t.style;if(!an(n))return[new tK(i,n,`object expected, ${rh(n)} found`)];let s=[];for(let t in n){let l=n[t],c=rh(l);if("string"===c)s.push(...r6({key:`${i}.${t}`,value:l}));else if("array"===c){let n={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[c,d]of l.entries()){let l=`${i}.${t}[${c}]`;s.push(...rX({key:l,value:d,valueSpec:n,styleSpec:a,style:o,validateSpec:r}));let h=an(d)?d["unicode-range"]:void 0;if("array"===rh(h))for(let[t,i]of h.entries())s.push(...function(t,i){if("string"!==rh(i))return[];let n=`${i}`,r=()=>[new tK(t,i,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],a=n.match(aa);if(!a)return r();let[,o,s,l]=a;if(void 0!==l)return l.length>6?r():[];let c=parseInt(o,16),d=void 0===s?c:parseInt(s,16);return c>1114111||d>1114111?[new tK(t,i,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:c>d?[new tK(t,i,`unicode range start must not be greater than its end, but ${n} is`)]:[]}(`${l}.unicode-range[${t}]`,i))}}else s.push(new tK(`${i}.${t}`,l,`string or array expected, ${c} found`))}return s}let as={"*":()=>[],array:rW,boolean:function(t){let i=t.value,n=t.key,r=rh(i);return"boolean"===r?[]:[new tK(n,i,`boolean expected, ${r} found`)]},number:rY,color:rQ,constants:rG,enum:r0,filter:r2,function:rK,layer:r4,object:rX,source:r7,light:r9,sky:ae,terrain:at,projection:function(t){let i=t.value,n=t.styleSpec,r=n.projection,a=t.style,o=rh(i);if(void 0===i)return[];if("object"!==o)return[new tK("projection",i,`object expected, ${o} found`)];let s=[];for(let o in i)s=r[o]?s.concat(t.validateSpec({key:o,value:i[o],valueSpec:r[o],style:a,styleSpec:n})):s.concat([new tK(o,i[o],`unknown property "${o}"`)]);return s},projectionDefinition:function(t){var i;let n=t.key,r=t.value,a=rh(r=r instanceof String?r.valueOf():r);return"array"!==a||Array.isArray(i=r)&&3===i.length&&"string"==typeof i[0]&&"string"==typeof i[1]&&"number"==typeof i[2]||["interpolate","step","literal"].includes(r[0])?["array","string"].includes(a)?[]:[new tK(n,r,`projection expected, invalid type "${a}" found`)]:[new tK(n,r,`projection expected, invalid array ${JSON.stringify(r)} found`)]},string:r6,formatted:function(t){return 0===r6(t).length?[]:rJ(t)},resolvedImage:function(t){return 0===r6(t).length?[]:rJ(t)},padding:function(t){let i=t.key,n=t.value;if("array"===rh(n)){if(n.length<1||n.length>4)return[new tK(i,n,`padding requires 1 to 4 values; ${n.length} values found`)];let r={type:"number"},a=[];for(let o=0;o<n.length;o++)a=a.concat(t.validateSpec({key:`${i}[${o}]`,value:n[o],validateSpec:t.validateSpec,valueSpec:r}));return a}return rY({key:i,value:n,valueSpec:{}})},numberArray:function(t){let i=t.key,n=t.value;if("array"===rh(n)){let r={type:"number"};if(n.length<1)return[new tK(i,n,"array length at least 1 expected, length 0 found")];let a=[];for(let o=0;o<n.length;o++)a=a.concat(t.validateSpec({key:`${i}[${o}]`,value:n[o],validateSpec:t.validateSpec,valueSpec:r}));return a}return rY({key:i,value:n,valueSpec:{}})},colorArray:function(t){let i=t.key,n=t.value;if("array"===rh(n)){if(n.length<1)return[new tK(i,n,"array length at least 1 expected, length 0 found")];let t=[];for(let r=0;r<n.length;r++)t=t.concat(rQ({key:`${i}[${r}]`,value:n[r],valueSpec:{}}));return t}return rQ({key:i,value:n,valueSpec:{}})},variableAnchorOffsetCollection:function(t){let i=t.key,n=t.value,r=rh(n),a=t.styleSpec;if("array"!==r||n.length<1||n.length%2!=0)return[new tK(i,n,"variableAnchorOffsetCollection requires a non-empty array of even length")];let o=[];for(let r=0;r<n.length;r+=2)o=(o=o.concat(r0({key:`${i}[${r}]`,value:n[r],valueSpec:a.layout_symbol["text-anchor"]}))).concat(rW({key:`${i}[${r+1}]`,value:n[r+1],valueSpec:{length:2,value:"number"},validateSpec:t.validateSpec,style:t.style,styleSpec:a}));return o},sprite:ai,state:ar,fontFaces:ao};function al(t){let i=t.value,n=t.valueSpec,r=t.styleSpec;return t.validateSpec=al,n.expression&&ru(rH(i))?rK(t):n.expression&&rE(rZ(i))?rJ(t):n.type&&as[n.type]?as[n.type](t):rX(rd({},t,{valueSpec:n.type?r[n.type]:n}))}function ac(t){let i=t.value,n=t.key,r=r6(t);return r.length||(-1===i.indexOf("{fontstack}")&&r.push(new tK(n,i,'"glyphs" url must include a "{fontstack}" token')),-1===i.indexOf("{range}")&&r.push(new tK(n,i,'"glyphs" url must include a "{range}" token'))),r}function ad(t,i=tY){let n=[];return n=n.concat(al({key:"",value:t,valueSpec:i.$root,styleSpec:i,style:t,validateSpec:al,objectElementValidators:{glyphs:ac,"*":()=>[]}})),t.constants&&(n=n.concat(rG({key:"constants",value:t.constants,style:t,styleSpec:i,validateSpec:al}))),au(n)}function ah(t){return function(i){return t(Object.assign({},i,{validateSpec:al}))}}function au(t){return[].concat(t).sort((t,i)=>t.line-i.line)}function ap(t){return function(...i){return au(t.apply(this,i))}}ad.source=ap(ah(r7)),ad.sprite=ap(ah(ai)),ad.glyphs=ap(ah(ac)),ad.fontFaces=ap(ah(ao)),ad.light=ap(ah(r9)),ad.sky=ap(ah(ae)),ad.terrain=ap(ah(at)),ad.state=ap(ah(ar)),ad.layer=ap(ah(r4)),ad.filter=ap(ah(r2)),ad.paintProperty=ap(ah(r3)),ad.layoutProperty=ap(ah(r5));let am={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"};var af=class{constructor(t,i,n){this._rootKey=i,this._globalState=n,this.setValue(t)}evaluate(){return this._literalValue??this._compiledValue.evaluate({})}setValue(t){if(null==t||"visible"===t||"none"===t){this._literalValue="none"===t?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let i=rT(t,this._rootKey,am,this._globalState);if("error"===i.result)throw this._literalValue="visible",this._compiledValue=void 0,Error(i.value.map(t=>`${t.key}: ${t.message}`).join(", "));this._literalValue=void 0,this._compiledValue=i.value,this._globalStateRefs=rD(i.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};let ag=new Set(Object.keys(tY).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function a_(t,i){let n=Object.entries(i.sources??{}).filter(([,t])=>!ag.has(t.type)).map(([t])=>`sources.${t}`);return av(t,ad(i).filter(({message:t})=>!n.some(i=>t.startsWith(`${i}:`)||t.startsWith(`${i}.`))))}function av(t,i){let n=!1;for(let r of i){if("warning"===r.severity){tl(r.message);continue}t.fire(new tX(Error(r.message))),n=!0}return n}function ay(t,i,n,r){return r?.validate!==!1&&av(t,i({styleSpec:tY,...n}))}var ab=class t{constructor(t,i,n){let r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let a=new Int32Array(this.arrayBuffer);t=a[0],i=a[1],n=a[2],this.d=i+2*n;for(let t=0;t<this.d*this.d;t++){let i=a[3+t],n=a[3+t+1];r.push(i===n?null:a.subarray(i,n))}let o=a[3+r.length],s=a[3+r.length+1];this.keys=a.subarray(o,s),this.bboxes=a.subarray(s),this.insert=this._insertReadonly}else{this.d=i+2*n;for(let t=0;t<this.d*this.d;t++)r.push([]);this.keys=[],this.bboxes=[]}this.n=i,this.extent=t,this.padding=n,this.scale=i/t,this.uid=0;let a=n/i*t;this.min=-a,this.max=t+a}insert(t,i,n,r,a){this._forEachCell(i,n,r,a,this._insertCell,this.uid++,void 0,void 0),this.keys.push(t),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)}_insertReadonly(){throw Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(t,i,n,r,a,o){this.cells[a].push(o)}query(t,i,n,r,a){let o=this.min,s=this.max;if(t<=o&&i<=o&&s<=n&&s<=r&&!a)return[...this.keys];{let o=[];return this._forEachCell(t,i,n,r,this._queryCell,o,{},a),o}}_queryCell(t,i,n,r,a,o,s,l){let c=this.cells[a];if(null!==c){let a=this.keys,d=this.bboxes;for(let h of c)if(void 0===s[h]){let c=4*h;(l?l(d[c+0],d[c+1],d[c+2],d[c+3]):t<=d[c+2]&&i<=d[c+3]&&n>=d[c+0]&&r>=d[c+1])?(s[h]=!0,o.push(a[h])):s[h]=!1}}}_forEachCell(t,i,n,r,a,o,s,l){let c=this._convertToCellCoord(t),d=this._convertToCellCoord(i),h=this._convertToCellCoord(n),u=this._convertToCellCoord(r);for(let p=c;p<=h;p++)for(let c=d;c<=u;c++){let d=this.d*c+p;if((!l||l(this._convertFromCellCoord(p),this._convertFromCellCoord(c),this._convertFromCellCoord(p+1),this._convertFromCellCoord(c+1)))&&a.call(this,t,i,n,r,d,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,i=3+this.cells.length+1+1,n=0;for(let t of this.cells)n+=t.length;let r=new Int32Array(i+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;let a=i;for(let i=0;i<t.length;i++){let n=t[i];r[3+i]=a,r.set(n,a),a+=n.length}return r[3+t.length]=a,r.set(this.keys,a),a+=this.keys.length,r[3+t.length+1]=a,r.set(this.bboxes,a),a+=this.bboxes.length,r.buffer}static serialize(t,i){let n=t.toArrayBuffer();return i&&i.push(n),{buffer:n}}static deserialize(i){return new t(i.buffer)}};let ax={};function aw(t,i,n={}){if(ax[t])throw Error(`${t} is already registered.`);Object.defineProperty(i,"_classRegistryKey",{value:t,writeable:!1}),ax[t]={klass:i,omit:n.omit||[],shallow:n.shallow||[]}}for(let t in aw("Object",Object),aw("Set",Set),aw("TransferableGridIndex",ab),aw("Color",iM),aw("Error",Error),aw("AJAXError",tV),aw("ResolvedImage",ij),aw("StylePropertyFunction",rS),aw("StyleExpression",rx,{omit:["_evaluator"]}),aw("ZoomDependentExpression",rA),aw("ZoomConstantExpression",rk),aw("CompoundExpression",n7,{omit:["_evaluate"]}),n5)n5[t]._classRegistryKey||aw(`Expression_${t}`,n5[t]);function aC(t){return t&&"u">typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor?.name==="ArrayBuffer")}function aE(t){let i=t.constructor;return t.$name||i._classRegistryKey}function aT(t){return!function(t){if("object"!=typeof t||!t)return!1;let i=aE(t);return i&&"Object"!==i}(t)&&(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof Blob||t instanceof Error||aC(t)||tg(t)||ArrayBuffer.isView(t)||t instanceof ImageData)}function ak(t,i){if(aT(t))return(aC(t)||tg(t))&&i&&i.push(t),ArrayBuffer.isView(t)&&i&&i.push(t.buffer),t instanceof ImageData&&i&&i.push(t.data.buffer),t;if(Array.isArray(t)){let n=[];for(let r of t)n.push(ak(r,i));return n}if("object"!=typeof t)throw Error(`can't serialize object of type ${typeof t}`);let n=aE(t);if(!n)throw Error(`can't serialize object of unregistered class ${t.constructor.name}`);if(!ax[n])throw Error(`${n} is not registered.`);let{klass:r}=ax[n],a=r.serialize?r.serialize(t,i):{};if(r.serialize){if(a===i?.[i.length-1])throw Error("statically serialized object won't survive transfer of $name property")}else{for(let r in t){if(!t.hasOwnProperty(r)||ax[n].omit.includes(r))continue;let o=t[r];void 0!==o&&(a[r]=ax[n].shallow.includes(r)?o:ak(o,i))}t instanceof Error&&(a.message=t.message)}if(a.$name)throw Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(a.$name=n),a}function aA(t){if(aT(t))return t;if(Array.isArray(t))return t.map(aA);if("object"!=typeof t)throw Error(`can't deserialize object of type ${typeof t}`);let i=aE(t)||"Object";if(!ax[i])throw Error(`can't deserialize unregistered class ${i}`);let{klass:n}=ax[i];if(!n)throw Error(`can't deserialize unregistered class ${i}`);if(n.deserialize)return n.deserialize(t);let r=Object.create(n.prototype);for(let n of Object.keys(t)){if("$name"===n)continue;let a=t[n];r[n]=ax[i].shallow.includes(n)?a:aA(a)}return r}var aI=class{constructor(){this.first=!0}update(t,i){let n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=i):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=i),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))}};function aS(t){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t))}function aD(t){return/[\u02EA\u02EB\u1100-\u11FF\u1400-\u167F\u18B0-\u18F5\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3007\u3012\u3013\u3020-\u302F\u3031-\u303F\u3041-\u3096\u309D-\u30FB\u30FD-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFE4\uDFF0-\uDFF6]|[\uD81C-\uD822\uD83D\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD30-\uDEFB]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83C[\uDC00-\uDE00\uDF00-\uDFFF]|\uD83E[\uDD00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t))}function aP(t){return/[\u0E01-\u0E3A\u0E40-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u109F\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u19E0-\u19FF\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9FE\uAA60-\uAA7F]|\uD805[\uDED0-\uDEE3]/gim.test(String.fromCodePoint(t))}function aM(t){return/\s/u.test(String.fromCodePoint(t))}function az(t){for(let i of t)if(aD(i.codePointAt(0)))return!0;return!1}function aL(t){return RegExp(t.map(t=>{try{return RegExp(`\\p{sc=${t}}`,"u").source}catch{return null}}).filter(t=>t).join("|"),"u")}let aR=aL(["Arab","Dupl","Mong","Ougr","Syrc"]);function aF(t){return!(aD(t)||/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(t)))}function aO(t){return/\p{sc=Arab}/u.test(String.fromCodePoint(t))}let aB=aL("Adlm.Arab.Armi.Avst.Chrs.Cprt.Egyp.Elym.Gara.Hatr.Hebr.Hung.Khar.Lydi.Mand.Mani.Mend.Merc.Mero.Narb.Nbat.Nkoo.Orkh.Palm.Phli.Phlp.Phnx.Prti.Rohg.Samr.Sarb.Sogo.Syrc.Thaa.Todr.Yezi".split("."));function aN(t){return aB.test(String.fromCodePoint(t))}let aV=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(aV.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return null!=this.applyArabicShaping&&null!=this.processBidirectionalText&&null!=this.processStyledBidirectionalText}getRTLTextPluginStatus(){return this.pluginStatus}async syncState(t,i){if(this.isParsed())return this.getState();if("loading"!==t.pluginStatus)return this.setState(t),t;let n=t.pluginURL,r=new Promise(t=>{this.loadScriptResolve=t}),a=new Promise(t=>setTimeout(()=>t(),this.TIMEOUT));if(await i(n),await Promise.race([r,a]),this.isParsed()){let t={pluginStatus:"loaded",pluginURL:n};return this.setState(t),t}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${n}`)}};var a$=class{constructor(t,i){this.isSupportedScript=aj,this.zoom=t,i?(this.now=i.now||0,this.fadeDuration=i.fadeDuration||0,this.zoomHistory=i.zoomHistory||new aI,this.transition=i.transition||{}):(this.now=0,this.fadeDuration=0,this.zoomHistory=new aI,this.transition={})}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let t=this.zoom,i=t-Math.floor(t),n=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:i+(1-i)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*i}}};function aj(t){var i="loaded"===aV.getRTLTextPluginStatus();for(let n of t)if(!function(t,i){return!(!i&&aN(t))&&!/[\u0900-\u0DFF\u0F00-\u109F\u1780-\u17FF]/gim.test(String.fromCodePoint(t))}(n.codePointAt(0),i))return!1;return!0}let aU="-transition";var aq=class{constructor(t,i,n,r){this.property=t,this.value=i,this.expression=function(t,i,n,r){if(ru(t))return new rS(t,i,n);if(rE(t)){let a=rI(t,i,n,r);if("error"===a.result)throw Error(a.value.map(t=>`${t.key}: ${t.message}`).join(", "));return a.value}{let i=t;return"color"===n.type&&"string"==typeof t?i=iM.parse(t):"padding"===n.type&&("number"==typeof t||Array.isArray(t))?i=iF.parse(t):"numberArray"===n.type&&("number"==typeof t||Array.isArray(t))?i=iO.parse(t):"colorArray"===n.type&&("string"==typeof t||Array.isArray(t))?i=iB.parse(t):"variableAnchorOffsetCollection"===n.type&&Array.isArray(t)?i=i$.parse(t):"projectionDefinition"===n.type&&"string"==typeof t&&(i=iU.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>i}}}(void 0===i?t.specification.default:i,n,t.specification,r)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}possiblyEvaluate(t,i,n){return this.property.possiblyEvaluate(this,t,i,n)}},aG=class{constructor(t,i,n){this.property=t,this.value=new aq(t,void 0,i,n)}transitioned(t,i){return new aZ(this.property,this.value,i,e6({},t.transition,this.transition),t.now)}untransitioned(){return new aZ(this.property,this.value,null,{},0)}},aH=class{constructor(t,i,n){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=n,this._rootKey=i}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return to(this._values[t].value.value)}setValue(t,i){Object.hasOwn(this._values,t)||(this._values[t]=new aG(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new aq(this._values[t].property,null===i?void 0:to(i),this._propertyRootKey(t),this._globalState)}getTransition(t){return to(this._values[t].transition)}setTransition(t,i){Object.hasOwn(this._values,t)||(this._values[t]=new aG(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=to(i)||void 0}serialize(){let t={};for(let i of Object.keys(this._values)){let n=this.getValue(i);void 0!==n&&(t[i]=n);let r=this.getTransition(i);void 0!==r&&(t[`${i}${aU}`]=r)}return t}transitioned(t,i){let n=new aX(this._properties);for(let r of Object.keys(this._values))n._values[r]=this._values[r].transitioned(t,i._values[r]);return n}untransitioned(){let t=new aX(this._properties);for(let i of Object.keys(this._values))t._values[i]=this._values[i].untransitioned();return t}},aZ=class{constructor(t,i,n,r,a){this.property=t,this.value=i,this.begin=a+r.delay||0,this.end=this.begin+r.duration||0,t.specification.transition&&(r.delay||r.duration)&&(this.prior=n)}possiblyEvaluate(t,i,n){let r=t.now||0,a=this.value.possiblyEvaluate(t,i,n),o=this.prior;if(!o)return a;if(r>this.end||this.value.isDataDriven())return this.prior=null,a;if(r<this.begin)return o.possiblyEvaluate(t,i,n);{let s=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,i,n),a,function(t){if(t<=0)return 0;if(t>=1)return 1;let i=t*t,n=i*t;return 4*(t<.5?n:3*(t-i)+n-.75)}(s))}}},aX=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,i,n){let r=new aK(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(t,i,n);return r}hasTransition(){for(let t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}},aW=class{constructor(t,i,n){this._properties=t,this._values=Object.create(t.defaultPropertyValues),this._globalState=n,this._rootKey=i}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasValue(t){return void 0!==this._values[t].value}hasProperty(t){return t in this._properties.defaultPropertyValues}getValue(t){return to(this._values[t].value)}setValue(t,i){this._values[t]=new aq(this._values[t].property,null===i?void 0:to(i),this._propertyRootKey(t),this._globalState)}serialize(){let t={};for(let i of Object.keys(this._values)){let n=this.getValue(i);void 0!==n&&(t[i]=n)}return t}possiblyEvaluate(t,i,n){let r=new aK(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(t,i,n);return r}},aY=class{constructor(t,i,n){this.property=t,this.value=i,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(t){return"constant"===this.value.kind?this.value.value:t}evaluate(t,i,n,r){return this.property.evaluate(this.value,this.parameters,t,i,n,r)}},aK=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}};function aJ(t){if(Array.isArray(t))return t.length;let i=t?.values;return Array.isArray(i)?i.length:void 0}function aQ(t,i){let n=aJ(t),r=aJ(i);return void 0!==n&&void 0!==r&&n!==r}var a0=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i){if(t.isDataDriven())throw Error("Value should not be data driven");return t.expression.evaluate(i)}interpolate(t,i,n){if(aQ(t,i))return tl(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),i;let r=i1[this.specification.type];return r?r(t,i,n):t}},a2=class{constructor(t,i,n){this.specification=t,this.name=i,this.overrides=n}possiblyEvaluate(t,i,n,r){return"constant"===t.expression.kind||"camera"===t.expression.kind?new aY(this,{kind:"constant",value:t.expression.evaluate(i,null,{},n,r)},i):new aY(this,t.expression,i)}interpolate(t,i,n){if("constant"!==t.value.kind||"constant"!==i.value.kind)return t;if(void 0===t.value.value||void 0===i.value.value)return new aY(this,{kind:"constant",value:void 0},t.parameters);if(aQ(t.value.value,i.value.value))return tl(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),i;let r=i1[this.specification.type];return r?new aY(this,{kind:"constant",value:r(t.value.value,i.value.value,n)},t.parameters):t}evaluate(t,i,n,r,a,o){return"constant"===t.kind?t.value:t.evaluate(i,n,r,a,o)}},a1=class extends a2{possiblyEvaluate(t,i,n,r){if(void 0===t.value)return new aY(this,{kind:"constant",value:void 0},i);if("constant"===t.expression.kind){let a=t.expression.evaluate(i,null,{},n,r),o="resolvedImage"===t.property.specification.type&&"string"!=typeof a?a.name:a;return new aY(this,{kind:"constant",value:this._calculate(o,o,o,i)},i)}return"camera"===t.expression.kind?new aY(this,{kind:"constant",value:this._calculate(t.expression.evaluate({zoom:i.zoom-1}),t.expression.evaluate({zoom:i.zoom}),t.expression.evaluate({zoom:i.zoom+1}),i)},i):new aY(this,t.expression,i)}evaluate(t,i,n,r,a,o){if("source"===t.kind){let s=t.evaluate(i,n,r,a,o);return this._calculate(s,s,s,i)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(i.zoom)-1},n,r),t.evaluate({zoom:Math.floor(i.zoom)},n,r),t.evaluate({zoom:Math.floor(i.zoom)+1},n,r),i):t.value}_calculate(t,i,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:i}:{from:n,to:i}}interpolate(t){return t}},a3=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i,n,r){if(void 0!==t.value){if("constant"===t.expression.kind){let a=t.expression.evaluate(i,null,{},n,r);return this._calculate(a,a,a,i)}return this._calculate(t.expression.evaluate(new a$(Math.floor(i.zoom-1),i)),t.expression.evaluate(new a$(Math.floor(i.zoom),i)),t.expression.evaluate(new a$(Math.floor(i.zoom+1),i)),i)}}_calculate(t,i,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:i}:{from:n,to:i}}interpolate(t){return t}},a5=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i,n,r){return!!t.expression.evaluate(i,null,{},n,r)}interpolate(){return!1}},a4=class{constructor(t){for(let i in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){let n=t[i];n.specification.overridable&&this.overridableProperties.push(i);let r=this.defaultPropertyValues[i]=new aq(n,void 0,n.name,void 0),a=this.defaultTransitionablePropertyValues[i]=new aG(n,n.name,void 0);this.defaultTransitioningPropertyValues[i]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=r.possiblyEvaluate({})}}};aw("DataDrivenProperty",a2),aw("DataConstantProperty",a0),aw("CrossFadedDataDrivenProperty",a1),aw("CrossFadedProperty",a3),aw("ColorRampProperty",a5);let a6=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",a8=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";var a7=class extends tW{constructor(t,i,n){if(super(),this.id=t.id,this.type=t.type,this._globalState=n,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=function(t,i,n){return new af(t,i,n)}(this.visibility,`layers[${this.id}].layout.visibility`,n),"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=rN(t.filter,`layers[${this.id}].filter`,n)),i.layout&&(this._unevaluatedLayout=new aW(i.layout,`layers[${this.id}].layout`,n)),i.paint)){for(let r in this._transitionablePaint=new aH(i.paint,`layers[${this.id}].paint`,n),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new aK(i.paint)}}setFilter(t){this.filter=t,this._featureFilter=rN(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){if("visibility"===t)return this.visibility;if(this._transitionablePaint?.hasProperty(t))throw Error(t+a6);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let i of this._visibilityExpression.getGlobalStateRefs())t.add(i);if(this._unevaluatedLayout)for(let i in this._unevaluatedLayout._values)for(let n of this._unevaluatedLayout._values[i].getGlobalStateRefs())t.add(n);for(let i of this._featureFilter.getGlobalStateRefs())t.add(i);return t}getPaintAffectingGlobalStateRefs(){let t=new globalThis.Map;if(this._transitionablePaint)for(let i in this._transitionablePaint._values){let n=this._transitionablePaint._values[i].value;for(let r of n.getGlobalStateRefs()){let a=t.get(r)??[];a.push({name:i,value:n.value}),t.set(r,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,i,n={}){if("visibility"===t){this.visibility=i,this._visibilityExpression.setValue(i),this.recalculateVisibility();return}this._transitionablePaint?.hasProperty(t)?this.fire(new tX(Error(t+a6))):null!=i&&this._validate(ad.layoutProperty,`layers.${this.id}.layout.${t}`,t,i,n)||this._unevaluatedLayout.setValue(t,i)}getPaintProperty(t){if(t.endsWith("-transition")){let i=t.slice(0,-11);if("visibility"===i||this._unevaluatedLayout?.hasProperty(i))throw Error(t+a8);return this._transitionablePaint.getTransition(i)}if("visibility"===t||this._unevaluatedLayout?.hasProperty(t))throw Error(t+a8);return this._transitionablePaint.getValue(t)}setPaintProperty(t,i,n={}){if("visibility"===t||this._unevaluatedLayout?.hasProperty(t))return this.fire(new tX(Error(t+a8))),!1;if(null!=i&&this._validate(ad.paintProperty,`layers.${this.id}.paint.${t}`,t,i,n))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),i||void 0),!1;{let n=this._transitionablePaint._values[t],r="cross-faded-data-driven"===n.property.specification["property-type"],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,i),this._handleSpecialPaintPropertyUpdate(t);let s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||r||this._handleOverridablePaintPropertyUpdate(t,o,s)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,i,n){return!1}isHidden(t=this.minzoom,i=!1){return!!(this.minzoom&&t<(i?Math.floor(this.minzoom):this.minzoom))||!!this.maxzoom&&t>=this.maxzoom||"none"===this._evaluatedVisibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,i){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,i)}serialize(){let t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout?.serialize(),paint:this._transitionablePaint?.serialize()};return this.visibility&&(t.layout||={},t.layout.visibility=this.visibility),ta(t,(t,i)=>void 0!==t&&!("layout"===i&&!Object.keys(t).length)&&!("paint"===i&&!Object.keys(t).length))}_validate(t,i,n,r,a={}){return ay(this,t,{key:i,layerType:this.type,objectKey:n,value:r},a)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let i=this.paint.get(t);if(i instanceof aY&&rs(i.property.specification)&&("source"===i.value.kind||"composite"===i.value.kind)&&i.value.isStateDependent)return!0}return!1}},a9={get paint(){return o||=new a4({"raster-opacity":new a0(tY.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new a0(tY.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new a0(tY.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new a0(tY.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new a0(tY.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new a0(tY.paint_raster["raster-contrast"],"raster-contrast"),resampling:new a0(tY.paint_raster.resampling,"resampling"),"raster-resampling":new a0(tY.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new a0(tY.paint_raster["raster-fade-duration"],"raster-fade-duration")})}},oe=class extends a7{constructor(t,i){super(t,a9,i)}};let ot={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};var oi=class{constructor(t,i){this._structArray=t,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},on=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,i){return t._trim(),i&&(t.isTransferred=!0,i.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let i=Object.create(this.prototype);return i.arrayBuffer=t.arrayBuffer,i.length=t.length,i.capacity=t.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function or(t,i=1){let n=0,r=0;return{members:t.map(t=>{let a=ot[t.type].BYTES_PER_ELEMENT,o=n=oa(n,Math.max(i,a)),s=t.components||1;return r=Math.max(r,a),n+=a*s,{name:t.name,type:t.type,components:s,offset:o}}),size:oa(n,Math.max(r,i)),alignment:i}}function oa(t,i){return Math.ceil(t/i)*i}var oo=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,i)}emplace(t,i,n){let r=2*t;return this.int16[r+0]=i,this.int16[r+1]=n,t}};oo.prototype.bytesPerElement=4,aw("StructArrayLayout2i4",oo);var os=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.int16[a+0]=i,this.int16[a+1]=n,this.int16[a+2]=r,t}};os.prototype.bytesPerElement=6,aw("StructArrayLayout3i6",os);var ol=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,n,r)}emplace(t,i,n,r,a){let o=4*t;return this.int16[o+0]=i,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=a,t}};ol.prototype.bytesPerElement=8,aw("StructArrayLayout4i8",ol);var oc=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=6*t;return this.int16[l+0]=i,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=s,t}};oc.prototype.bytesPerElement=12,aw("StructArrayLayout2i4i12",oc);var od=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=4*t,c=8*t;return this.int16[l+0]=i,this.int16[l+1]=n,this.uint8[c+4]=r,this.uint8[c+5]=a,this.uint8[c+6]=o,this.uint8[c+7]=s,t}};od.prototype.bytesPerElement=8,aw("StructArrayLayout2i4ub8",od);var oh=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,i)}emplace(t,i,n){let r=2*t;return this.float32[r+0]=i,this.float32[r+1]=n,t}};oh.prototype.bytesPerElement=8,aw("StructArrayLayout2f8",oh);var ou=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d){let h=this.length;return this.resize(h+1),this.emplace(h,t,i,n,r,a,o,s,l,c,d)}emplace(t,i,n,r,a,o,s,l,c,d,h){let u=10*t;return this.uint16[u+0]=i,this.uint16[u+1]=n,this.uint16[u+2]=r,this.uint16[u+3]=a,this.uint16[u+4]=o,this.uint16[u+5]=s,this.uint16[u+6]=l,this.uint16[u+7]=c,this.uint16[u+8]=d,this.uint16[u+9]=h,t}};ou.prototype.bytesPerElement=20,aw("StructArrayLayout10ui20",ou);var op=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l){let c=this.length;return this.resize(c+1),this.emplace(c,t,i,n,r,a,o,s,l)}emplace(t,i,n,r,a,o,s,l,c){let d=8*t;return this.uint16[d+0]=i,this.uint16[d+1]=n,this.uint16[d+2]=r,this.uint16[d+3]=a,this.uint16[d+4]=o,this.uint16[d+5]=s,this.uint16[d+6]=l,this.uint16[d+7]=c,t}};op.prototype.bytesPerElement=16,aw("StructArrayLayout8ui16",op);var om=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d,h,u,p){let m=this.length;return this.resize(m+1),this.emplace(m,t,i,n,r,a,o,s,l,c,d,h,u,p)}emplace(t,i,n,r,a,o,s,l,c,d,h,u,p,m){let f=14*t;return this.int16[f+0]=i,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=a,this.uint16[f+4]=o,this.uint16[f+5]=s,this.uint16[f+6]=l,this.uint16[f+7]=c,this.int16[f+8]=d,this.int16[f+9]=h,this.int16[f+10]=u,this.int16[f+11]=p,this.float32[7*t+6]=m,t}};om.prototype.bytesPerElement=28,aw("StructArrayLayout4i4ui4i1f28",om);var of=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.float32[a+0]=i,this.float32[a+1]=n,this.float32[a+2]=r,t}};of.prototype.bytesPerElement=12,aw("StructArrayLayout3f12",of);var og=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.uint32[+t+0]=i,t}};og.prototype.bytesPerElement=4,aw("StructArrayLayout1ul4",og);var o_=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c){let d=this.length;return this.resize(d+1),this.emplace(d,t,i,n,r,a,o,s,l,c)}emplace(t,i,n,r,a,o,s,l,c,d){let h=10*t;return this.int16[h+0]=i,this.int16[h+1]=n,this.int16[h+2]=r,this.int16[h+3]=a,this.int16[h+4]=o,this.int16[h+5]=s,this.uint32[5*t+3]=l,this.uint16[h+8]=c,this.uint16[h+9]=d,t}};o_.prototype.bytesPerElement=20,aw("StructArrayLayout6i1ul2ui20",o_);var ov=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=6*t;return this.int16[l+0]=i,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=s,t}};ov.prototype.bytesPerElement=12,aw("StructArrayLayout2i2i2i12",ov);var oy=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a){let o=this.length;return this.resize(o+1),this.emplace(o,t,i,n,r,a)}emplace(t,i,n,r,a,o){let s=4*t,l=8*t;return this.float32[s+0]=i,this.float32[s+1]=n,this.float32[s+2]=r,this.int16[l+6]=a,this.int16[l+7]=o,t}};oy.prototype.bytesPerElement=16,aw("StructArrayLayout2f1f2i16",oy);var ob=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,n,r,a,o)}emplace(t,i,n,r,a,o,s){let l=16*t,c=4*t,d=8*t;return this.uint8[l+0]=i,this.uint8[l+1]=n,this.float32[c+1]=r,this.float32[c+2]=a,this.int16[d+6]=o,this.int16[d+7]=s,t}};ob.prototype.bytesPerElement=16,aw("StructArrayLayout2ub2f2i16",ob);var ox=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.uint16[a+0]=i,this.uint16[a+1]=n,this.uint16[a+2]=r,t}};ox.prototype.bytesPerElement=6,aw("StructArrayLayout3ui6",ox);var ow=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v){let y=this.length;return this.resize(y+1),this.emplace(y,t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v)}emplace(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y){let b=26*t,x=13*t,w=52*t;return this.int16[b+0]=i,this.int16[b+1]=n,this.uint16[b+2]=r,this.uint16[b+3]=a,this.uint32[x+2]=o,this.uint32[x+3]=s,this.uint32[x+4]=l,this.uint16[b+10]=c,this.uint16[b+11]=d,this.uint16[b+12]=h,this.float32[x+7]=u,this.float32[x+8]=p,this.uint8[w+36]=m,this.uint8[w+37]=f,this.uint8[w+38]=g,this.uint32[x+10]=_,this.int16[b+22]=v,this.float32[x+12]=y,t}};ow.prototype.bytesPerElement=52,aw("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",ow);var oC=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T,k,A,I,S){let D=this.length;return this.resize(D+1),this.emplace(D,t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T,k,A,I,S)}emplace(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T,k,A,I,S,D){let P=34*t,M=17*t;return this.int16[P+0]=i,this.int16[P+1]=n,this.int16[P+2]=r,this.int16[P+3]=a,this.int16[P+4]=o,this.int16[P+5]=s,this.int16[P+6]=l,this.int16[P+7]=c,this.uint16[P+8]=d,this.uint16[P+9]=h,this.uint16[P+10]=u,this.uint16[P+11]=p,this.uint16[P+12]=m,this.uint16[P+13]=f,this.uint16[P+14]=g,this.uint16[P+15]=_,this.uint16[P+16]=v,this.uint16[P+17]=y,this.uint16[P+18]=b,this.uint16[P+19]=x,this.uint16[P+20]=w,this.uint16[P+21]=C,this.uint16[P+22]=E,this.uint32[M+12]=T,this.float32[M+13]=k,this.float32[M+14]=A,this.uint16[P+30]=I,this.uint16[P+31]=S,this.float32[M+16]=D,t}};oC.prototype.bytesPerElement=68,aw("StructArrayLayout8i15ui1ul2f2ui1f68",oC);var oE=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.float32[+t+0]=i,t}};oE.prototype.bytesPerElement=4,aw("StructArrayLayout1f4",oE);var oT=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=3*t;return this.uint16[6*t+0]=i,this.float32[a+1]=n,this.float32[a+2]=r,t}};oT.prototype.bytesPerElement=12,aw("StructArrayLayout1ui2f12",oT);var ok=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,n){let r=this.length;return this.resize(r+1),this.emplace(r,t,i,n)}emplace(t,i,n,r){let a=4*t;return this.uint32[2*t+0]=i,this.uint16[a+2]=n,this.uint16[a+3]=r,t}};ok.prototype.bytesPerElement=8,aw("StructArrayLayout1ul2ui8",ok);var oA=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,i)}emplace(t,i,n){let r=2*t;return this.uint16[r+0]=i,this.uint16[r+1]=n,t}};oA.prototype.bytesPerElement=4,aw("StructArrayLayout2ui4",oA);var oI=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.uint16[+t+0]=i,t}};oI.prototype.bytesPerElement=2,aw("StructArrayLayout1ui2",oI);var oS=class extends on{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,n,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,n,r)}emplace(t,i,n,r,a){let o=4*t;return this.float32[o+0]=i,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=a,t}};oS.prototype.bytesPerElement=16,aw("StructArrayLayout4f16",oS);var oD=class extends oi{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new R(this.anchorPointX,this.anchorPointY)}};oD.prototype.size=20;var oP=class extends o_{get(t){return new oD(this,t)}};aw("CollisionBoxArray",oP);var oM=class extends oi{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};oM.prototype.size=52;var oz=class extends ow{get(t){return new oM(this,t)}};aw("PlacedSymbolArray",oz);var oL=class extends oi{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};oL.prototype.size=68;var oR=class extends oC{get(t){return new oL(this,t)}};aw("SymbolInstanceArray",oR);var oF=class extends oE{getoffsetX(t){return this.float32[+t+0]}};aw("GlyphOffsetArray",oF);var oO=class extends os{getx(t){return this.int16[3*t+0]}gety(t){return this.int16[3*t+1]}gettileUnitDistanceFromAnchor(t){return this.int16[3*t+2]}};aw("SymbolLineVertexArray",oO);var oB=class extends oi{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};oB.prototype.size=12;var oN=class extends oT{get(t){return new oB(this,t)}};aw("TextAnchorOffsetArray",oN);var oV=class extends oi{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};oV.prototype.size=8;var o$=class extends ok{get(t){return new oV(this,t)}};aw("FeatureIndexArray",o$);var oj=class extends oo{},oU=class extends os{},oq=class extends ol{},oG=class extends oo{},oH=class extends oo{},oZ=class extends oc{},oX=class extends od{},oW=class extends oh{},oY=class extends ou{},oK=class extends op{},oJ=class extends om{},oQ=class extends of{},o0=class extends og{},o2=class extends ov{},o1=class extends oy{},o3=class extends ob{},o5=class extends ox{},o4=class extends ox{},o6=class extends oA{},o8=class extends oI{};let o7=or([{name:"a_pos",components:2,type:"Int16"}],4),o9=o7.members;o7.size,o7.alignment;var se=class t{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(i,n,r,a){let o=this.segments[this.segments.length-1];return i>t.MAX_VERTEX_ARRAY_LENGTH&&tl(`Max vertices per segment is ${t.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${i}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${t.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!o||o.vertexLength+i>t.MAX_VERTEX_ARRAY_LENGTH||o.sortKey!==a?this.createNewSegment(n,r,a):o}createNewSegment(t,i,n){let r={vertexOffset:t.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0,vaos:{}};return void 0!==n&&(r.sortKey=n),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(r),r}getOrCreateLatestSegment(t,i,n){return this.prepareSegment(0,t,i,n)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let i in t.vaos)t.vaos[i].destroy()}static simpleSegment(i,n,r,a){return new t([{vertexOffset:i,primitiveOffset:n,vertexLength:r,primitiveLength:a,vaos:{},sortKey:0}])}};function st(t,i){return 256*(t=e5(Math.floor(t),0,255))+(i=e5(Math.floor(i),0,255))}se.MAX_VERTEX_ARRAY_LENGTH=65535,aw("SegmentVector",se);let si=or([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),sn=or([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]);var sr=L((t,i)=>{void 0!==i&&(i.exports=function(t,i){for(var n,r,a=3&t.length,o=t.length-a,s=i,l=0;l<o;)r=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,s^=r=(65535&(r=(r=(65535&r)*0xcc9e2d51+(((r>>>16)*0xcc9e2d51&65535)<<16)|0)<<15|r>>>17))*0x1b873593+(((r>>>16)*0x1b873593&65535)<<16)|0,s=(65535&(n=(65535&(s=s<<13|s>>>19))*5+(((s>>>16)*5&65535)<<16)|0))+27492+(((n>>>16)+58964&65535)<<16);switch(r=0,a){case 3:r^=(255&t.charCodeAt(l+2))<<16;case 2:r^=(255&t.charCodeAt(l+1))<<8;case 1:r^=255&t.charCodeAt(l),s^=r=(65535&(r=(r=(65535&r)*0xcc9e2d51+(((r>>>16)*0xcc9e2d51&65535)<<16)|0)<<15|r>>>17))*0x1b873593+(((r>>>16)*0x1b873593&65535)<<16)|0}return s^=t.length,s^=s>>>16,s=(65535&s)*0x85ebca6b+(((s>>>16)*0x85ebca6b&65535)<<16)|0,s^=s>>>13,s=(65535&s)*0xc2b2ae35+(((s>>>16)*0xc2b2ae35&65535)<<16)|0,(s^=s>>>16)>>>0})}),sa=L((t,i)=>{i.exports=function(t,i){for(var n,r=t.length,a=i^r,o=0;r>=4;)n=(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))*0x5bd1e995+(((n>>>16)*0x5bd1e995&65535)<<16),n^=n>>>24,a=(65535&a)*0x5bd1e995+(((a>>>16)*0x5bd1e995&65535)<<16)^(n=(65535&n)*0x5bd1e995+(((n>>>16)*0x5bd1e995&65535)<<16)),r-=4,++o;switch(r){case 3:a^=(255&t.charCodeAt(o+2))<<16;case 2:a^=(255&t.charCodeAt(o+1))<<8;case 1:a^=255&t.charCodeAt(o),a=(65535&a)*0x5bd1e995+(((a>>>16)*0x5bd1e995&65535)<<16)}return a^=a>>>13,a=(65535&a)*0x5bd1e995+(((a>>>16)*0x5bd1e995&65535)<<16),(a^=a>>>15)>>>0}}),so=((t,i,n)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var r,a=P(i),o=0,s=a.length;o<s;o++)r=a[o],z.call(t,r)||void 0===r||S(t,r,{get:(t=>i[t]).bind(null,r),enumerable:!(n=D(i,r))||n.enumerable});return t})(S(null==(E=L((t,i)=>{var n=sr(),r=sa();i.exports=n,i.exports.murmur3=n,i.exports.murmur2=r})())?{}:I(M(E)),"default",{value:E,enumerable:!0}),E),ss=class t{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,i,n,r){this.ids.push(sl(t)),this.positions.push(i,n,r)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let i=sl(t),n=0,r=this.ids.length-1;for(;n<r;){let t=n+r>>1;this.ids[t]>=i?r=t:n=t+1}let a=[];for(;this.ids[n]===i;){let t=this.positions[3*n],i=this.positions[3*n+1],r=this.positions[3*n+2];a.push({index:t,start:i,end:r}),n++}return a}static serialize(t,i){let n=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(i,n,r,a){for(;r<a;){let o=i[r+a>>1],s=r-1,l=a+1;for(;;){do s++;while(i[s]<o);do l--;while(i[l]>o);if(s>=l)break;sc(i,s,l),sc(n,3*s,3*l),sc(n,3*s+1,3*l+1),sc(n,3*s+2,3*l+2)}l-r<a-l?(t(i,n,r,l),r=l+1):(t(i,n,l+1,a),a=l)}}(n,r,0,n.length-1),i&&i.push(n.buffer,r.buffer),{ids:n,positions:r}}static deserialize(i){let n=new t;return n.ids=i.ids,n.positions=i.positions,n.indexed=!0,n}};function sl(t){let i=+t;return!isNaN(i)&&i<=0x1fffffffffffff?i:(0,so.default)(String(t))}function sc(t,i,n){let r=t[i];t[i]=t[n],t[n]=r}aw("FeaturePositionMap",ss);var sd=class{constructor(t,i){this.gl=t.gl,this.location=i}},sh=class extends sd{constructor(t,i){super(t,i),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))}},su=class extends sd{constructor(t,i){super(t,i),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))}},sp=class extends sd{constructor(t,i){super(t,i),this.current=[0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1])&&(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))}},sm=class extends sd{constructor(t,i){super(t,i),this.current=[0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2])&&(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))}},sf=class extends sd{constructor(t,i){super(t,i),this.current=[0,0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2]||t[3]!==this.current[3])&&(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))}},sg=class extends sd{constructor(t,i){super(t,i),this.current=iM.transparent}set(t){(t.r!==this.current.r||t.g!==this.current.g||t.b!==this.current.b||t.a!==this.current.a)&&(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))}},s_=class extends sd{constructor(t,i){super(t,i),this.current=[]}set(t){if(t!=this.current){this.current=t;let i=new Float32Array(4*t.length);for(let n=0;n<t.length;n++)i[4*n]=t[n].r,i[4*n+1]=t[n].g,i[4*n+2]=t[n].b,i[4*n+3]=t[n].a;this.gl.uniform4fv(this.location,i)}}},sv=class extends sd{constructor(t,i){super(t,i),this.current=[]}set(t){if(t!=this.current){this.current=t;let i=new Float32Array(t);this.gl.uniform1fv(this.location,i)}}};let sy=new Float32Array(16);var sb=class extends sd{constructor(t,i){super(t,i),this.current=sy}set(t){if(t[12]!==this.current[12]||t[0]!==this.current[0]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);return}for(let i=1;i<16;i++)if(t[i]!==this.current[i]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}}};function sx(t){return[st(255*t.r,255*t.g),st(255*t.b,255*t.a)]}var sw=class{constructor(t,i,n){this.value=t,this.uniformNames=i.map(t=>`u_${t}`),this.type=n}setUniform(t,i,n){t.set(n.constantOr(this.value))}getBinding(t,i,n){return"color"===this.type?new sg(t,i):new su(t,i)}},sC=class{constructor(t,i){this.uniformNames=i.map(t=>`u_${t}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,i){this.pixelRatioFrom=i.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=i.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,i){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,i.y,i.height,i.width]}setUniform(t,i,n,r){let a=null;"u_pattern_to"===r?a=this.patternTo:"u_pattern_from"===r?a=this.patternFrom:"u_dasharray_to"===r?a=this.dashTo:"u_dasharray_from"===r?a=this.dashFrom:"u_pixel_ratio_to"===r?a=this.pixelRatioTo:"u_pixel_ratio_from"===r&&(a=this.pixelRatioFrom),null!==a&&t.set(a)}getBinding(t,i,n){return n.startsWith("u_pattern")||n.startsWith("u_dasharray_")?new sf(t,i):new su(t,i)}},sE=class{constructor(t,i,n,r){this.expression=t,this.type=n,this.maxValue=0,this.paintVertexAttributes=i.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new r}populatePaintArray(t,i,n){let r=this.paintVertexArray.length,a=this.expression.evaluate(new a$(0,n),i,{},n.canonical,[],n.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(r,t,a)}updatePaintArray(t,i,n,r,a){let o=this.expression.evaluate(new a$(0,a),n,r);this._setPaintValue(t,i,o)}_setPaintValue(t,i,n){if("color"===this.type){let r=sx(n);for(let n=t;n<i;n++)this.paintVertexArray.emplace(n,r[0],r[1])}else{for(let r=t;r<i;r++)this.paintVertexArray.emplace(r,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},sT=class{constructor(t,i,n,r,a,o){this.expression=t,this.uniformNames=i.map(t=>`u_${t}_t`),this.type=n,this.useIntegerZoom=r,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=i.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(t,i,n){let r=this.expression.evaluate(new a$(this.zoom,n),i,{},n.canonical,[],n.formattedSection),a=this.expression.evaluate(new a$(this.zoom+1,n),i,{},n.canonical,[],n.formattedSection),o=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(o,t,r,a)}updatePaintArray(t,i,n,r,a){let o=this.expression.evaluate(new a$(this.zoom,a),n,r),s=this.expression.evaluate(new a$(this.zoom+1,a),n,r);this._setPaintValue(t,i,o,s)}_setPaintValue(t,i,n,r){if("color"===this.type){let a=sx(n),o=sx(r);for(let n=t;n<i;n++)this.paintVertexArray.emplace(n,a[0],a[1],o[0],o[1])}else{for(let a=t;a<i;a++)this.paintVertexArray.emplace(a,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(t,i){let n=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,r=e5(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);t.set(r)}getBinding(t,i,n){return new su(t,i)}},sk=class{constructor(t,i,n,r,a,o){this.expression=t,this.type=i,this.useIntegerZoom=n,this.zoom=r,this.layerId=o,this.zoomInPaintVertexArray=new a,this.zoomOutPaintVertexArray=new a}populatePaintArray(t,i,n){let r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(r,t,this.getPositionIds(i),n)}updatePaintArray(t,i,n,r,a){this._setPaintValues(t,i,this.getPositionIds(n),a)}_setPaintValues(t,i,n,r){let a=this.getPositions(r);if(!a||!n)return;let o=a[n.min],s=a[n.mid],l=a[n.max];if(o&&s&&l)for(let n=t;n<i;n++)this.emplace(this.zoomInPaintVertexArray,n,o,s),this.emplace(this.zoomOutPaintVertexArray,n,l,s)}upload(t){if(this.zoomInPaintVertexArray?.arrayBuffer.byteLength&&this.zoomOutPaintVertexArray?.arrayBuffer.byteLength){let i=this.getVertexAttributes();this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,i,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,i,this.expression.isStateDependent)}}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}},sA=class extends sk{getPositions(t){return t.imagePositions}getPositionIds(t){return t.patterns?.[this.layerId]}getVertexAttributes(){return si.members}emplace(t,i,n,r){t.emplace(i,n.tlbr[0],n.tlbr[1],n.tlbr[2],n.tlbr[3],r.tlbr[0],r.tlbr[1],r.tlbr[2],r.tlbr[3],n.pixelRatio,r.pixelRatio)}},sI=class extends sk{getPositions(t){return t.dashPositions}getPositionIds(t){return t.dashes?.[this.layerId]}getVertexAttributes(){return sn.members}emplace(t,i,n,r){t.emplace(i,0,n.y,n.height,n.width,0,r.y,r.height,r.width)}},sS=class{constructor(t,i,n){this.binders={},this._buffers=[];let r=[];for(let a in t.paint._values){if(!n(a))continue;let o=t.paint.get(a);if(!(o instanceof aY)||!rs(o.property.specification))continue;let s=function(t,i){return({"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]})[t]||[t.replace(`${i}-`,"").replace(/-/g,"_")]}(a,t.type),l=o.value,c=o.property.specification.type,d=o.property.useIntegerZoom,h=o.property.specification["property-type"],u="cross-faded"===h||"cross-faded-data-driven"===h;if("constant"===l.kind)this.binders[a]=u?new sC(l.value,s):new sw(l.value,s,c),r.push(`/u_${a}`);else if("source"===l.kind||u){let n=sP(a,c,"source");this.binders[a]=u?"line-dasharray"===a?new sI(l,c,d,i,n,t.id):new sA(l,c,d,i,n,t.id):new sE(l,s,c,n),r.push(`/a_${a}`)}else{let t=sP(a,c,"composite");this.binders[a]=new sT(l,s,c,d,i,t),r.push(`/z_${a}`)}}this.cacheKey=r.sort().join("")}getMaxValue(t){let i=this.binders[t];return i instanceof sE||i instanceof sT?i.maxValue:0}populatePaintArrays(t,i,n){for(let r in this.binders){let a=this.binders[r];(a instanceof sE||a instanceof sT||a instanceof sk)&&a.populatePaintArray(t,i,n)}}setConstantPatternPositions(t,i){for(let n in this.binders){let r=this.binders[n];r instanceof sC&&r.setConstantPatternPositions(t,i)}}setConstantDashPositions(t,i){for(let n in this.binders){let r=this.binders[n];r instanceof sC&&r.setConstantDashPositions(t,i)}}updatePaintArrays(t,i,n,r,a){let o=!1;for(let s of t)for(let t of i.getPositions(s.id)){let i=n.feature(t.index);for(let n in this.binders){let l=this.binders[n];(l instanceof sE||l instanceof sT||l instanceof sk)&&!0===l.expression.isStateDependent&&(l.expression=r.paint.get(n).value,l.updatePaintArray(t.start,t.end,i,s.state,a),o=!0)}}return o}defines(){let t=[];for(let i in this.binders){let n=this.binders[i];(n instanceof sw||n instanceof sC)&&t.push(...n.uniformNames.map(t=>`#define HAS_UNIFORM_${t}`))}return t}getBinderAttributes(){let t=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof sE||n instanceof sT)for(let i of n.paintVertexAttributes)t.push(i.name);else if(n instanceof sk)for(let i of n.getVertexAttributes())t.push(i.name)}return t}getBinderUniforms(){let t=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof sw||n instanceof sC||n instanceof sT)for(let i of n.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,i){let n=[];for(let r in this.binders){let a=this.binders[r];if(a instanceof sw||a instanceof sC||a instanceof sT){for(let o of a.uniformNames)if(i[o]){let s=a.getBinding(t,i[o],o);n.push({name:o,property:r,binding:s})}}}return n}setUniforms(t,i,n,r){for(let{name:t,property:a,binding:o}of i)this.binders[a].setUniform(o,r,n.get(a),t)}updatePaintBuffers(t){for(let i in this._buffers=[],this.binders){let n=this.binders[i];if(t&&n instanceof sk){let i=2===t.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(n instanceof sE||n instanceof sT)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(t){for(let i in this.binders){let n=this.binders[i];(n instanceof sE||n instanceof sT||n instanceof sk)&&n.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let i=this.binders[t];(i instanceof sE||i instanceof sT||i instanceof sk)&&i.destroy()}}},sD=class{constructor(t,i,n=()=>!0){for(let r of(this.programConfigurations={},t))this.programConfigurations[r.id]=new sS(r,i,n);this.needsUpload=!1,this._featureMap=new ss,this._bufferOffset=0}populatePaintArrays(t,i,n,r){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,i,r);void 0!==i.id&&this._featureMap.add(i.id,n,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,i,n,r){for(let a of n)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,i,a,r)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let i in this.programConfigurations)this.programConfigurations[i].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function sP(t,i,n){return({"line-pattern":{source:oY,composite:oY},"fill-pattern":{source:oY,composite:oY},"fill-extrusion-pattern":{source:oY,composite:oY},"line-dasharray":{source:oK,composite:oK}})[t]?.[n]||({color:{source:oh,composite:oS},number:{source:oE,composite:oh}})[i][n]}aw("ConstantBinder",sw),aw("CrossFadedConstantBinder",sC),aw("SourceExpressionBinder",sE),aw("CrossFadedPatternBinder",sA),aw("CrossFadedDasharrayBinder",sI),aw("CompositeExpressionBinder",sT),aw("ProgramConfiguration",sS,{omit:["_buffers"]}),aw("ProgramConfigurationSet",sD);function sM(t){let i=8192/t.extent,n=t.loadGeometry();for(let t of n)for(let n of t){let t=Math.round(n.x*i),r=Math.round(n.y*i);n.x=e5(t,-16384,16383),n.y=e5(r,-16384,16383),(t<n.x||t>n.x+1||r<n.y||r>n.y+1)&&tl("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function sz(t,i){return{type:t.type,id:t.id,properties:t.properties,geometry:i?sM(t):[]}}var sL=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new oG,this.indexArray=new o4,this.segments=new se,this.programConfigurations=new sD(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){let r=this.layers[0],a=[],o=null,s=!1,l="heatmap"===r.type;"circle"===r.type&&(s=!(o=r.layout.get("circle-sort-key")).isConstant(),l||="map"===r.paint.get("circle-pitch-alignment"));let c=l?i.subdivisionGranularity.circle:1,d=new a$(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:i,id:r,index:l,sourceLayerIndex:c}of t){let t=sz(i,h);if(!this.layers[0]._featureFilter.filter(d,t,n))continue;let u=s?o.evaluate(t,{},n):void 0,p={id:r,properties:i.properties,type:i.type,sourceLayerIndex:c,index:l,geometry:h?t.geometry:sM(i),patterns:{},sortKey:u};a.push(p)}for(let r of(s&&a.sort((t,i)=>t.sortKey-i.sortKey),a)){let{geometry:a,index:o,sourceLayerIndex:s}=r,l=t[o].feature;this.addFeature(r,a,o,n,c),i.featureIndex.insert(l,a,o,s,this.index)}}update(t,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n})}addFeatures(t){}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,o9),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,i,n,r,a=1){let o;switch(a){case 1:o=[0,7];break;case 3:o=[0,2,5,7];break;case 5:o=[0,1,3,4,6,7];break;case 7:o=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${a}; valid values are 1, 3, 5, 7.`)}let s=o.length;for(let n of i)for(let i of n){let n=i.x,r=i.y;if(n<0||n>=8192||r<0||r>=8192)continue;let a=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),h=a.vertexLength;for(let t=0;t<s;t++)for(let i=0;i<s;i++){var l,c,d;l=this.layoutVertexArray,c=o[i],d=o[t],l.emplaceBack(-32768+8*n+c,-32768+8*r+d)}for(let t=0;t<s-1;t++)for(let i=0;i<s-1;i++){let n=h+t*s+i,r=h+(t+1)*s+i;this.indexArray.emplaceBack(n,r+1,n+1),this.indexArray.emplaceBack(n,r,r+1)}a.vertexLength+=s*s,a.primitiveLength+=(s-1)*(s-1)*2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:{},canonical:r})}};function sR(t,i){for(let n of t)if(sj(i,n))return!0;for(let n of i)if(sj(t,n))return!0;return sB(t,i)}function sF(t,i,n){return!!sj(t,i)||sN(i,t,n)}function sO(t,i){if(1===t.length)return s$(i,t[0]);for(let n of i)for(let i of n)if(sj(t,i))return!0;for(let n of t)if(s$(i,n))return!0;for(let n of i)if(sB(t,n))return!0;return!1}function sB(t,i){if(0===t.length||0===i.length)return!1;for(let s=0;s<t.length-1;s++){let l=t[s],c=t[s+1];for(let t=0;t<i.length-1;t++){var n,r,a,o;if(n=l,r=c,a=i[t],tc(n,a,o=i[t+1])!==tc(r,a,o)&&tc(n,r,a)!==tc(n,r,o))return!0}}return!1}function sN(t,i,n){let r=n*n;if(1===i.length)return t.distSqr(i[0])<r;for(let n=1;n<i.length;n++)if(sV(t,i[n-1],i[n])<r)return!0;return!1}function sV(t,i,n){let r=i.distSqr(n);if(0===r)return t.distSqr(i);let a=((t.x-i.x)*(n.x-i.x)+(t.y-i.y)*(n.y-i.y))/r;return a<0?t.distSqr(i):a>1?t.distSqr(n):t.distSqr(n.sub(i)._mult(a)._add(i))}function s$(t,i){let n=!1,r,a;for(let o of t)for(let t=0,s=o.length-1;t<o.length;s=t++)r=o[t],a=o[s],r.y>i.y!=a.y>i.y&&i.x<(a.x-r.x)*(i.y-r.y)/(a.y-r.y)+r.x&&(n=!n);return n}function sj(t,i){let n=!1;for(let r=0,a=t.length-1;r<t.length;a=r++){let o=t[r],s=t[a];o.y>i.y!=s.y>i.y&&i.x<(s.x-o.x)*(i.y-o.y)/(s.y-o.y)+o.x&&(n=!n)}return n}function sU(t,i,n){let r=i.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(i.id).getMaxValue(t)}function sq(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function sG(t,i,n,r,a){if(!i[0]&&!i[1])return t;let o=R.convert(i)._mult(a);"viewport"===n&&o._rotate(-r);let s=[];for(let i of t)s.push(i.sub(o));return s}function sH({queryGeometry:t,size:i},n){return sF(t,n,i)}function sZ({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a},o){return sF(t,o,i*(n.projectTileCoordinates(o.x,o.y,r,a?.(o.x,o.y)).signedDistanceFromCamera/n.cameraToCenterDistance))}function sX({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a},o){let s=n.projectTileCoordinates(o.x,o.y,r,a?.(o.x,o.y)).signedDistanceFromCamera,l=i*(n.cameraToCenterDistance/s);return sF(t,sK(o,n,r,a),l)}function sW({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a},o){return sF(t,sK(o,n,r,a),i)}function sY({queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a,pitchAlignment:o="map",pitchScale:s="map"},l){let c="map"===o?"map"===s?sH:sZ:"map"===s?sX:sW,d={queryGeometry:t,size:i,transform:n,unwrappedTileID:r,getElevation:a};for(let t of l)for(let i of t)if(c(d,i))return!0;return!1}function sK(t,i,n,r){let a=i.projectTileCoordinates(t.x,t.y,n,r?.(t.x,t.y)).point;return new R((.5*a.x+.5)*i.width,(-(.5*a.y)+.5)*i.height)}aw("CircleBucket",sL,{omit:["layers"]});var sJ={get paint(){return l||=new a4({"circle-radius":new a2(tY.paint_circle["circle-radius"],"circle-radius"),"circle-color":new a2(tY.paint_circle["circle-color"],"circle-color"),"circle-blur":new a2(tY.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new a2(tY.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new a0(tY.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new a0(tY.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new a0(tY.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new a0(tY.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new a2(tY.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new a2(tY.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new a2(tY.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})},get layout(){return s||=new a4({"circle-sort-key":new a2(tY.layout_circle["circle-sort-key"],"circle-sort-key")})}},sQ=class extends a7{constructor(t,i){super(t,sJ,i)}createBucket(t){return new sL(t)}queryRadius(t){return sU("circle-radius",this,t)+sU("circle-stroke-width",this,t)+sq(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){let c=sG(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-a.bearingInRadians,o),d=this.paint.get("circle-radius").evaluate(i,n)+this.paint.get("circle-stroke-width").evaluate(i,n),h=this.paint.get("circle-pitch-scale"),u=this.paint.get("circle-pitch-alignment"),p,m;return"map"===u?(p=c,m=d*o):(p=c.map(t=>sK(t,a,s,l)),m=d),sY({queryGeometry:p,size:m,transform:a,unwrappedTileID:s,getElevation:l,pitchAlignment:u,pitchScale:h},r)}},s0=class extends sL{};aw("HeatmapBucket",s0,{omit:["layers"]});var s2={get paint(){return c||=new a4({"heatmap-radius":new a2(tY.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new a2(tY.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new a0(tY.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new a5(tY.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new a0(tY.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})}};function s1(t,{width:i,height:n},r,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==i*n*r)throw RangeError(`mismatched image size. expected: ${a.length} but got: ${i*n*r}`)}else a=new Uint8Array(i*n*r);return t.width=i,t.height=n,t.data=a,t}function s3(t,{width:i,height:n},r){if(i===t.width&&n===t.height)return;let a=s1({},{width:i,height:n},r);s5(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,i),height:Math.min(t.height,n)},r),t.width=i,t.height=n,t.data=a.data}function s5(t,i,n,r,a,o){if(0===a.width||0===a.height)return i;if(a.width>t.width||a.height>t.height||n.x>t.width-a.width||n.y>t.height-a.height)throw RangeError("out of range source coordinates for image copy");if(a.width>i.width||a.height>i.height||r.x>i.width-a.width||r.y>i.height-a.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,l=i.data;if(s===l)throw Error("srcData equals dstData, so image is already copied");for(let c=0;c<a.height;c++){let d=((n.y+c)*t.width+n.x)*o,h=((r.y+c)*i.width+r.x)*o;for(let t=0;t<a.width*o;t++)l[h+t]=s[d+t]}return i}var s4=class t{constructor(t,i){s1(this,t,1,i)}resize(t){s3(this,t,1)}clone(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,i,n,r,a){s5(t,i,n,r,a,1)}},s6=class t{constructor(t,i){s1(this,t,4,i)}resize(t){s3(this,t,4)}replace(t,i){i?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,i,n,r,a){s5(t,i,n,r,a,4)}setPixel(t,i,n){let r=(t*this.width+i)*4;this.data[r+0]=Math.round(255*n.r/n.a),this.data[r+1]=Math.round(255*n.g/n.a),this.data[r+2]=Math.round(255*n.b/n.a),this.data[r+3]=Math.round(255*n.a)}};function s8(t){let i=new Uint8Array(t.length);for(let n=0;n<t.length;n+=4){let r=t[n+3];i[n+0]=Math.round(t[n+0]*r/255),i[n+1]=Math.round(t[n+1]*r/255),i[n+2]=Math.round(t[n+2]*r/255),i[n+3]=r}return i}function s7(t){let i={},n=t.resolution||256,r=t.clips?t.clips.length:1,a=t.image||new s6({width:n,height:r});if(Math.log(n)/Math.LN2%1!=0)throw Error(`width is not a power of 2 - ${n}`);let o=(r,o,s)=>{i[t.evaluationKey]=s;let l=t.expression.evaluate(i);a.setPixel(r/4/n,o/4,l)};if(t.clips)for(let i=0,a=0;i<r;++i,a+=4*n)for(let r=0,s=0;r<n;r++,s+=4){let l=r/(n-1),{start:c,end:d}=t.clips[i];o(a,s,c*(1-l)+d*l)}else for(let t=0,i=0;t<n;t++,i+=4)o(0,i,t/(n-1));return a}aw("AlphaImage",s4),aw("RGBAImage",s6);var s9=class extends a7{createBucket(t){return new s0(t)}constructor(t,i){super(t,s2,i),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"heatmap-color"===t&&this._updateColorRamp()}_updateColorRamp(){let t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=s7({expression:t,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete("big-fb")}queryRadius(t){return sU("heatmap-radius",this,t)}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){return sY({queryGeometry:t,size:this.paint.get("heatmap-radius").evaluate(i,n)*o,transform:a,unwrappedTileID:s,getElevation:l},r)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&!this.isHidden()}},le={get paint(){return d||=new a4({"hillshade-illumination-direction":new a0(tY.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new a0(tY.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new a0(tY.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new a0(tY.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new a0(tY.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new a0(tY.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new a0(tY.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new a0(tY.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new a0(tY.paint_hillshade.resampling,"resampling")})}},lt=class extends a7{constructor(t,i){super(t,le,i),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,i=this.paint.get("hillshade-illumination-altitude").values,n=this.paint.get("hillshade-highlight-color").values,r=this.paint.get("hillshade-shadow-color").values,a=Math.max(t.length,i.length,n.length,r.length);t=t.concat(Array(a-t.length).fill(t.at(-1))),i=i.concat(Array(a-i.length).fill(i.at(-1))),n=n.concat(Array(a-n.length).fill(n.at(-1))),r=r.concat(Array(a-r.length).fill(r.at(-1)));let o=i.map(tb);return{directionRadians:t.map(tb),altitudeRadians:o,shadowColor:r,highlightColor:n}}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&!this.isHidden()}},li={get paint(){return h||=new a4({"color-relief-opacity":new a0(tY["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new a5(tY["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new a0(tY["paint_color-relief"].resampling,"resampling")})}};function ln(t){return"data"in t}var lr=class{constructor(t,i,n,r){this.context=t,this.format=n,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(i,r)}update(t,i,n){let{width:r,height:a}=t,o=(this.size?.[0]!==r||this.size[1]!==a)&&!n,{context:s}=this,{gl:l}=s;this.useMipmap=!!i?.useMipmap,o&&this.size&&this.format===l.RGBA&&(l.deleteTexture(this.texture),this.texture=l.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let c=this.format===l.RGBA&&i?.premultiply!==!1;if(o)if(this.size=[r,a],this.format===l.RGBA&&r>0&&a>0){let i=this.useMipmap?Math.floor(Math.log2(Math.max(r,a)))+1:1;if(l.texStorage2D(l.TEXTURE_2D,i,l.RGBA8,r,a),ln(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:i}=t;c&&i&&(i=s8(i)),i&&l.texSubImage2D(l.TEXTURE_2D,0,0,0,r,a,l.RGBA,l.UNSIGNED_BYTE,i)}else s.pixelStoreUnpackPremultiplyAlpha.set(c),l.texSubImage2D(l.TEXTURE_2D,0,0,0,l.RGBA,l.UNSIGNED_BYTE,t)}else ln(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,c,r,a,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(c),this._uploadDomImage(t,l));else{let{x:i,y:o}=n||{x:0,y:0};ln(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,c,i,o,r,a,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(c),this._updateDomImage(t,i,o,l))}this.useMipmap&&!(ln(t)&&null===t.data)&&l.generateMipmap(l.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,i){i.texImage2D(i.TEXTURE_2D,0,this.format,this.format,i.UNSIGNED_BYTE,t)}_uploadRawData(t,i,n,r,a){let{data:o}=t;i&&o&&(o=s8(o)),a.texImage2D(a.TEXTURE_2D,0,this.format,n,r,0,this.format,a.UNSIGNED_BYTE,o)}_updateDomImage(t,i,n,r){r.texSubImage2D(r.TEXTURE_2D,0,i,n,r.RGBA,r.UNSIGNED_BYTE,t)}_updateRawData(t,i,n,r,a,o,s){let{data:l}=t;i&&l&&(l=s8(l)),s.texSubImage2D(s.TEXTURE_2D,0,n,r,a,o,s.RGBA,s.UNSIGNED_BYTE,l)}bind(t,i,n){let{context:r}=this,{gl:a}=r;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),a.bindTexture(a.TEXTURE_2D,this.texture),n!==a.LINEAR_MIPMAP_NEAREST&&n!==a.LINEAR_MIPMAP_LINEAR||this.useMipmap||(n=a.LINEAR);let o=n||t;t!==this.magFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,t),this.magFilter=t),o!==this.minFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,o),this.minFilter=o),i!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,i),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,i),this.wrap=i)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}};function la(t,i){let n=i[0],r=i[1],a=i[2],o=i[3],s=Math.min(n,r,a),l=Math.round((t+o)/s);return{r:Math.floor(l*s/n)%256,g:Math.floor(l*s/r)%256,b:Math.floor(l*s/a)%256}}aw("DEMData",class t{static{this.byteViewCache=new WeakMap}constructor(i,n,r,a=1,o=1,s=1,l=0){if(this.uid=i,n.height!==n.width)throw RangeError("DEM tiles must be square");if(r&&!["mapbox","terrarium","custom"].includes(r))return void tl(`"${r}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);this.stride=n.height;let c=this.dim=n.height-4;switch(this.data=new Uint32Array(n.data.buffer),t.byteViewCache.set(this,new Uint8Array(this.data.buffer)),r){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=a,this.greenFactor=o,this.blueFactor=s,this.baseShift=l;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let t=-2;t<c+2;t++){let i=this._idx(0,Math.max(0,Math.min(c-1,t)));(t<0||t>=c)&&this.data.copyWithin(this._idx(0,t),i,i+c),this.data.fill(this.data[i],this._idx(-2,t),this._idx(0,t)),this.data.fill(this.data[i+c-1],this._idx(c,t),this._idx(c+1,t)+1)}let d=this._getByteView();this.min=0x1fffffffffffff,this.max=-0x1fffffffffffff;for(let t=0;t<c;t++)for(let i=0;i<c;i++){let n=4*this._idx(t,i),r=this._unpackAtIndex(d,n);r>this.max&&(this.max=r),r<this.min&&(this.min=r)}}get(t,i){let n=this._getByteView(),r=4*this._idx(t,i);return this._unpackAtIndex(n,r)}sampleBilinear(t,i){let n=Math.floor(t),r=Math.floor(i);if(n<-1||n>=this.dim||r<-1||r>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${i}, dim: ${this.dim}`);let a=this._getByteView(),o=((r+2)*this.stride+n+2)*4,s=4*this.stride,l=t-n,c=i-r;return this._unpackAtIndex(a,o)*(1-l)*(1-c)+this._unpackAtIndex(a,o+4)*l*(1-c)+this._unpackAtIndex(a,o+s)*(1-l)*c+this._unpackAtIndex(a,o+s+4)*l*c}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,i){if(t<-2||t>=this.dim+2||i<-2||i>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${i}, dim: ${this.dim}`);return(i+2)*this.stride+(t+2)}unpack(t,i,n){return t*this.redFactor+i*this.greenFactor+n*this.blueFactor-this.baseShift}pack(t){return la(t,this.getUnpackVector())}getPixels(){return new s6({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,i,n){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let r=i*this.dim,a=i*this.dim+this.dim,o=n*this.dim,s=n*this.dim+this.dim;switch(i){case -1:r=a-2;break;case 1:a=r+2}switch(n){case -1:o=s-2;break;case 1:s=o+2}let l=-i*this.dim,c=-n*this.dim;for(let i=o;i<s;i++)for(let n=r;n<a;n++)this.data[this._idx(n,i)]=t.data[this._idx(n+l,i+c)]}_getByteView(){let i=t.byteViewCache.get(this);return i?.buffer!==this.data.buffer&&(i=new Uint8Array(this.data.buffer),t.byteViewCache.set(this,i)),i}_unpackAtIndex(t,i){return this.unpack(t[i],t[i+1],t[i+2])}});var lo=class extends a7{constructor(t,i){super(t,li,i)}_createColorRamp(t){let i={elevationStops:[],colorStops:[]},n=this._transitionablePaint._values["color-relief-color"].value.expression;if(n instanceof rk&&n._styleExpression.expression instanceof i0){this.colorRampExpression=n;let t=n._styleExpression.expression;for(let n of(i.elevationStops=t.labels,i.colorStops=[],i.elevationStops))i.colorStops.push(t.evaluate({globals:{elevation:n}}))}if(i.elevationStops.length<1&&(i.elevationStops=[0],i.colorStops=[iM.transparent]),i.elevationStops.length<2&&(i.elevationStops.push(i.elevationStops[0]+1),i.colorStops.push(i.colorStops[0])),i.elevationStops.length<=t)return i;let r={elevationStops:[],colorStops:[]},a=(i.elevationStops.length-1)/(t-1);for(let t=0;t<i.elevationStops.length-.5;t+=a)r.elevationStops.push(i.elevationStops[Math.round(t)]),r.colorStops.push(i.colorStops[Math.round(t)]);return tl(`Too many colors in specification of ${this.id} color-relief layer, may not render properly. Max possible colors: ${t}, provided: ${i.elevationStops.length}`),r}_colorRampChanged(){return this.colorRampExpression!=this._transitionablePaint._values["color-relief-color"].value.expression}getColorRampTextures(t,i,n){if(this.colorRampTextures&&!this._colorRampChanged())return this.colorRampTextures;let r=this._createColorRamp(i),a=new s6({width:r.colorStops.length,height:1}),o=new s6({width:r.colorStops.length,height:1});for(let t=0;t<r.elevationStops.length;t++){let i=la(r.elevationStops[t],n);o.setPixel(0,t,new iM(i.r/255,i.g/255,i.b/255,1)),a.setPixel(0,t,r.colorStops[t])}return this.colorRampTextures={elevationTexture:new lr(t,o,t.gl.RGBA),colorTexture:new lr(t,a,t.gl.RGBA)},this.colorRampTextures}hasOffscreenPass(){return!this.isHidden()&&!!this.colorRampTextures}};let ls=or([{name:"a_pos",components:2,type:"Int16"}],4),ll=ls.members;function lc(t,i,n){let r=n.patternDependencies,a=!1;for(let n of i){let i=n.paint.get(`${t}-pattern`);i.isConstant()||(a=!0);let o=i.constantOr(null);o&&(a=!0,r[o.to]=!0,r[o.from]=!0)}return a}function ld(t,i,n,r,a){let{zoom:o}=r,s=a.patternDependencies;for(let r of i){let i=r.paint.get(`${t}-pattern`).value;if("constant"!==i.kind){let t=i.evaluate({zoom:o-1},n,{},a.availableImages),l=i.evaluate({zoom:o},n,{},a.availableImages),c=i.evaluate({zoom:o+1},n,{},a.availableImages);t=t?.name?t.name:t,l=l?.name?l.name:l,c=c?.name?c.name:c,s[t]=!0,s[l]=!0,s[c]=!0,n.patterns[r.id]={min:t,mid:l,max:c}}}return n}ls.size,ls.alignment;let lh=new Set,lu=!1;function lp(t,i,n,r,a){let o=null;if(a===function(t,i,n,r){let a=0;for(let o=i,s=n-r;o<n;o+=r)a+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return a}(t,i,n,r)>0)for(let a=i;a<n;a+=r)o=lB(a/r|0,t[a],t[a+1],o);else for(let a=n-r;a>=i;a-=r)o=lB(a/r|0,t[a],t[a+1],o);return o&&lz(o,o.next)&&(lN(o),o=o.next),o}function lm(t,i=t){let n=i===t,r=t,a;do a=!1,r!==r.next&&(0===lh.size||!lh.has(r))&&(lz(r,r.next)||0===lM(r.prev,r,r.next))?((n||r===i)&&(i=r.prev),lu=!0,lN(r),r=r.prev,a=!0):(n||r!==i)&&(r=r.next,a=!n);while(a||r!==i);return i}let lf=!1;function lg(t,i){return t.x-i.x||t.y-i.y||(t.next.y-t.y)/(t.next.x-t.x)-(i.next.y-i.y)/(i.next.x-i.x)}let l_=new Float64Array,lv=0,ly=[],lb=[];function lx(t,i){let n=t;do{let t=lv++;ly[t]=n;let r=1/0,a=1/0,o=-1/0,s=-1/0,l=0;do{let i=n.next;n.z=t,n.x<r&&(r=n.x),n.x>o&&(o=n.x),n.y<a&&(a=n.y),n.y>s&&(s=n.y),i.x<r&&(r=i.x),i.x>o&&(o=i.x),i.y<a&&(a=i.y),i.y>s&&(s=i.y),n=i}while(++l<16&&n!==i);lb[t]=n;let c=4*t;l_[c]=r,l_[c+1]=a,l_[c+2]=o,l_[c+3]=s}while(n!==i)}function lw(t){let i=lb[t];for(;i.prev.next!==i;)i=i.next;return lb[t]=i,i}function lC(t){let i=ly[t];for(;i.prev.next!==i;)i=i.next;return ly[t]=i,i}let lE=[],lT=[],lk=new Uint32Array,lA=new Uint32Array,lI=new Uint32Array(256);function lS(t,i,n,r,a,o){lI.fill(0);for(let i=0;i<t;i++)lI[n[i]>>>o&255]++;let s=0;for(let t=0;t<256;t++){let i=lI[t];lI[t]=s,s+=i}for(let s=0;s<t;s++){let t=n[s],l=lI[t>>>o&255]++;r[l]=i[s],a[l]=t}}function lD(t,i,n,r,a){return(t=((t=((t=((t=((t=(t-n)*a|0)|t<<8)&0xff00ff)|t<<4)&0xf0f0f0f)|t<<2)&0x33333333)|t<<1)&0x55555555)|(i=((i=((i=((i=((i=(i-r)*a|0)|i<<8)&0xff00ff)|i<<4)&0xf0f0f0f)|i<<2)&0x33333333)|i<<1)&0x55555555)<<1}function lP(t,i,n,r,a,o,s,l){return(a-s)*(i-l)>=(t-s)*(o-l)&&(t-s)*(r-l)>=(n-s)*(i-l)&&(n-s)*(o-l)>=(a-s)*(r-l)}function lM(t,i,n){return(i.y-t.y)*(n.x-i.x)-(i.x-t.x)*(n.y-i.y)}function lz(t,i){return t.x===i.x&&t.y===i.y}function lL(t,i,n,r,a=!0){let o=lM(t,i,n),s=lM(t,i,r),l=lM(n,r,t),c=lM(n,r,i);return(o>0&&s<0||o<0&&s>0)&&(l>0&&c<0||l<0&&c>0)||!!a&&!!(0===o&&lR(t,n,i)||0===s&&lR(t,r,i)||0===l&&lR(n,t,r)||0===c&&lR(n,i,r))}function lR(t,i,n){return i.x<=Math.max(t.x,n.x)&&i.x>=Math.min(t.x,n.x)&&i.y<=Math.max(t.y,n.y)&&i.y>=Math.min(t.y,n.y)}function lF(t,i){return 0>lM(t.prev,t,t.next)?lM(t,i,t.next)>=0&&lM(t,t.prev,i)>=0:0>lM(t,i,t.prev)||0>lM(t,t.next,i)}function lO(t,i){let n=lV(t.i,t.x,t.y),r=lV(i.i,i.x,i.y),a=t.next,o=i.prev;return t.next=i,i.prev=t,n.next=a,a.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function lB(t,i,n,r){let a=lV(t,i,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function lN(t){var i,n;let r;t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),lf&&(i=t.prev,n=t.next,r=4*i.z,n.x<l_[r]&&(l_[r]=n.x),n.y<l_[r+1]&&(l_[r+1]=n.y),n.x>l_[r+2]&&(l_[r+2]=n.x),n.y>l_[r+3]&&(l_[r+3]=n.y))}function lV(t,i,n){return{i:t,x:i,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null}}var l$=class{constructor(t,i){if(i>t)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=i}getGranularityForZoomLevel(t){return Math.max(Math.floor(this._baseZoomGranularity/(1<<t)),this._minGranularity,1)}},lj=class t{constructor(t){this.fill=t.fill,this.line=t.line,this.tile=t.tile,this.stencil=t.stencil,this.circle=t.circle}static{this.noSubdivision=new t({fill:new l$(0,0),line:new l$(0,0),tile:new l$(0,0),stencil:new l$(0,0),circle:1})}};aw("SubdivisionGranularityExpression",l$),aw("SubdivisionGranularitySetting",lj);var lU=class{constructor(t,i){this._vertexBuffer=[],this._vertexDictionary=new Map,this._used=!1,this._granularity=t,this._granularityCellSize=8192/t,this._canonical=i}_getKey(t,i){return t+=32768,(i+=32768)|t<<16}_vertexToIndex(t,i){if(t<-32768||i<-32768||t>32767||i>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let n=0|Math.round(t),r=0|Math.round(i),a=this._getKey(n,r);if(this._vertexDictionary.has(a))return this._vertexDictionary.get(a);let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(a,o),this._vertexBuffer.push(n,r),o}_subdivideTrianglesScanline(t){if(this._granularity<2)return function(t,i){let n=[];for(let r=0;r<i.length;r+=3){let a=i[r],o=i[r+1],s=i[r+2],l=t[2*a],c=t[2*a+1],d=t[2*o],h=t[2*o+1],u=t[2*s],p=t[2*s+1],m=h-c;(d-l)*(p-c)-m*(u-l)>0?(n.push(a),n.push(s),n.push(o)):(n.push(a),n.push(o),n.push(s))}return n}(this._vertexBuffer,t);let i=[],n=t.length;for(let r=0;r<n;r+=3){let n=[t[r+0],t[r+1],t[r+2]],a=[this._vertexBuffer[2*t[r+0]+0],this._vertexBuffer[2*t[r+0]+1],this._vertexBuffer[2*t[r+1]+0],this._vertexBuffer[2*t[r+1]+1],this._vertexBuffer[2*t[r+2]+0],this._vertexBuffer[2*t[r+2]+1]],o=1/0,s=1/0,l=-1/0,c=-1/0;for(let t=0;t<3;t++){let i=a[2*t],n=a[2*t+1];o=Math.min(o,i),l=Math.max(l,i),s=Math.min(s,n),c=Math.max(c,n)}if(o===l||s===c)continue;let d=Math.floor(o/this._granularityCellSize),h=Math.ceil(l/this._granularityCellSize),u=Math.floor(s/this._granularityCellSize),p=Math.ceil(c/this._granularityCellSize);if(d===h&&u===p){i.push(...n);continue}for(let t=u;t<p;t++){let r=this._scanlineGenerateVertexRingForCellRow(t,a,n);!function(t,i,n){if(0===i.length)throw Error("Subdivision vertex ring is empty.");let r=0,a=t[2*i[0]];for(let n=1;n<i.length;n++){let o=t[2*i[n]];o<a&&(a=o,r=n)}let o=i.length,s=r,l=(s+1)%o;for(;;){let r=s-1>=0?s-1:o-1,a=(l+1)%o,c=t[2*i[r]],d=t[2*i[r]+1],h=t[2*i[a]],u=t[2*i[a]+1],p=t[2*i[s]],m=t[2*i[s]+1],f=t[2*i[l]],g=t[2*i[l]+1],_=!1;if(c<h)_=!0;else if(c>h)_=!1;else{let t=g-m,i=-(f-p),n=m<g?1:-1;((c-p)*t+(d-m)*i)*n>((h-p)*t+(u-m)*i)*n&&(_=!0)}if(_){let t=i[r],a=i[s],c=i[l];t!==a&&t!==c&&a!==c&&n.push(c,a,t),--s<0&&(s=o-1)}else{let t=i[a],r=i[s],c=i[l];t!==r&&t!==c&&r!==c&&n.push(c,r,t),++l>=o&&(l=0)}if(r===a)break}}(this._vertexBuffer,r,i)}}return i}_scanlineGenerateVertexRingForCellRow(t,i,n){let r=t*this._granularityCellSize,a=r+this._granularityCellSize,o=[];for(let t=0;t<3;t++){let s=i[2*t],l=i[2*t+1],c=i[(t+1)*2%6],d=i[((t+1)*2+1)%6],h=i[(t+2)*2%6],u=i[((t+2)*2+1)%6],p=c-s,m=d-l,f=0===p,g=0===m,_=(r-l)/m,v=(a-l)/m,y=Math.min(_,v),b=Math.max(_,v);if(!g&&(y>=1||b<=0)||g&&(l<r||l>a)){d>=r&&d<=a&&o.push(n[(t+1)%3]);continue}if(!g&&y>0){let t=s+p*y,i=l+m*y;o.push(this._vertexToIndex(t,i))}let x=s+p*Math.max(y,0),w=s+p*Math.min(b,1);if(f||this._generateIntraEdgeVertices(o,s,l,c,d,x,w),!g&&b<1){let t=s+p*b,i=l+m*b;o.push(this._vertexToIndex(t,i))}(g||d>=r&&d<=a)&&o.push(n[(t+1)%3]),!g&&(d<=r||d>=a)&&this._generateInterEdgeVertices(o,s,l,c,d,h,u,w,r,a)}return o}_generateIntraEdgeVertices(t,i,n,r,a,o,s){let l=r-i,c=a-n,d=0===c,h=d?Math.min(i,r):Math.min(o,s),u=d?Math.max(i,r):Math.max(o,s),p=Math.floor(h/this._granularityCellSize)+1,m=Math.ceil(u/this._granularityCellSize)-1;if(d?i<r:o<s)for(let r=p;r<=m;r++){let a=r*this._granularityCellSize,o=n+c*(a-i)/l;t.push(this._vertexToIndex(a,o))}else for(let r=m;r>=p;r--){let a=r*this._granularityCellSize,o=n+c*(a-i)/l;t.push(this._vertexToIndex(a,o))}}_generateInterEdgeVertices(t,i,n,r,a,o,s,l,c,d){let h=s-a,u=(c-a)/h,p=(d-a)/h,m=Math.min(u,p),f=Math.max(u,p),g=r+(o-r)*m,_=Math.floor(Math.min(g,l)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,l)/this._granularityCellSize)-1,y=l<g,b=0===h;if(b&&(s===c||s===d))return;if(b||m>=1||f<=0){let t=n-s,r=o+(i-o)*Math.min((c-s)/t,(d-s)/t);_=Math.floor(Math.min(r,l)/this._granularityCellSize)+1,v=Math.ceil(Math.max(r,l)/this._granularityCellSize)-1,y=l<r}let x=a-n>0?d:c;if(y)for(let i=_;i<=v;i++){let n=i*this._granularityCellSize;t.push(this._vertexToIndex(n,x))}else for(let i=v;i>=_;i--){let n=i*this._granularityCellSize;t.push(this._vertexToIndex(n,x))}}_generateOutline(t){let i=[];for(let n of t){let t=lG(n,this._granularity,!0),r=this._pointArrayToIndices(t),a=[];for(let t=1;t<r.length;t++)a.push(r[t-1]),a.push(r[t]);i.push(a)}return i}_handlePoles(t){let i=!1,n=!1;this._canonical&&(0===this._canonical.y&&(i=!0),this._canonical.y===(1<<this._canonical.z)-1&&(n=!0)),(i||n)&&this._fillPoles(t,i,n)}_ensureNoPoleVertices(){let t=this._vertexBuffer;for(let i=0;i<t.length;i+=2){let n=t[i+1];-32768===n&&(t[i+1]=-32767),32767===n&&(t[i+1]=32766)}}_generatePoleQuad(t,i,n,r,a,o){r>a==(-32768===o)?(t.push(n),t.push(i),t.push(this._vertexToIndex(r,o)),t.push(this._vertexToIndex(a,o)),t.push(n)):(t.push(i),t.push(n),t.push(this._vertexToIndex(r,o)),t.push(n),t.push(this._vertexToIndex(a,o))),t.push(this._vertexToIndex(r,o))}_fillPoles(t,i,n){let r=this._vertexBuffer,a=t.length;for(let o=2;o<a;o+=3){let a=t[o-2],s=t[o-1],l=t[o],c=r[2*a],d=r[2*a+1],h=r[2*s],u=r[2*s+1],p=r[2*l],m=r[2*l+1];i&&(0===d&&0===u&&this._generatePoleQuad(t,a,s,c,h,-32768),0===u&&0===m&&this._generatePoleQuad(t,s,l,h,p,-32768),0===m&&0===d&&this._generatePoleQuad(t,l,a,p,c,-32768)),n&&(8192===d&&8192===u&&this._generatePoleQuad(t,a,s,c,h,32767),8192===u&&8192===m&&this._generatePoleQuad(t,s,l,h,p,32767),8192===m&&8192===d&&this._generatePoleQuad(t,l,a,p,c,32767))}}_initializeVertices(t){for(let i=0;i<t.length;i+=2)this._vertexToIndex(t[i],t[i+1])}subdividePolygonInternal(t,i){let n;if(this._used)throw Error("Subdivision: multiple use not allowed.");this._used=!0;let{flattened:r,holeIndices:a}=function(t){let i=[],n=[];for(let r of t)if(0!==r.length)for(let a of(r!==t[0]&&i.push(n.length/2),r))n.push(a.x),n.push(a.y);return{flattened:n,holeIndices:i}}(t);this._initializeVertices(r);try{let t=function(t,i,n=2){let r=i&&i.length,a=r?i[0]*n:t.length;lh.size&&lh.clear();let o=lp(t,0,a,n,!0),s=[];if(!o||o.next===o.prev)return s;let l=0,c=0,d=0;if(r&&(o=function(t,i,n,r){var a,o;let s,l=[];for(let n=0,a=i.length;n<a;n++){let o=lp(t,i[n]*r,n<a-1?i[n+1]*r:t.length,r,!1);o===o.next&&lh.add(o),l.push(function(t){let i=t,n=t;do(i.x<n.x||i.x===n.x&&i.y<n.y)&&(n=i),i=i.next;while(i!==t);return n}(o))}l.sort(lg),a=t.length/r,o=i.length,s=Math.ceil((a+2*o)/16)+o+2,l_.length<4*s&&(l_=new Float64Array(4*s)),lv=0,lx(n,n),lf=!0;for(let t=0;t<l.length;t++)n=function(t,i){let n=function(t,i){let n=i,r=t.x,a=t.y,o=-1/0,s;if(lz(t,n))return n;for(let i=0,l=0;i<lv;i++,l+=4){if(a<l_[l+1]||a>l_[l+3]||l_[l]>r||l_[l+2]<=o)continue;let c=lw(i);n=lC(i);do{if(n.prev.next===n){if(lz(t,n.next))return n.next;if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){let t=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>o&&(o=t,s=n.x<n.next.x?n:n.next,t===r))return s}}n=n.next}while(n!==c)}if(!s)return null;let l=s.x,c=s.y,d=Math.min(a,c),h=Math.max(a,c),u=1/0;for(let i=0,f=0;i<lv;i++,f+=4){if(l_[f+2]<l||l_[f]>r||l_[f+3]<d||l_[f+1]>h)continue;let g=lw(i);n=lC(i);do{if(n.prev.next===n&&r>=n.x&&n.x>=l&&r!==n.x&&lP(a<c?r:o,a,l,c,a<c?o:r,a,n.x,n.y)){var p,m;let i=Math.abs(a-n.y)/(r-n.x);(lF(n,t)||n.y===a&&n.next.y===a&&n.next.x>r)&&(i<u||i===u&&(n.x>s.x||n.x===s.x&&(p=s,m=n,0>lM(p.prev,p,m.prev)&&0>lM(m.next,p,p.next))))&&(s=n,u=i)}n=n.next}while(n!==g)}return s}(t,i);if(!n)return i;let r=lO(n,t);return lx(n,r.next.next),lm(r,r.next),lm(n,n.next)}(l[t],n);return lf=!1,lm(n)}(t,i,o,n)),t.length>80*n){l=t[0],c=t[1];let i=l,r=c;for(let o=n;o<a;o+=n){let n=t[o],a=t[o+1];n<l&&(l=n),a<c&&(c=a),n>i&&(i=n),a>r&&(r=a)}d=0===(d=Math.max(i-l,r-c))?0:32767/d}return function t(i,n,r,a,o){o&&function(t,i,n,r){let a=t,o=0;do a.z=lD(a.x,a.y,i,n,r),lE[o++]=a,a=a.next;while(a!==t);!function(t){if(t<=32){for(let i=1;i<t;i++){let t=lE[i],n=t.z,r=i-1;for(;r>=0&&lE[r].z>n;)lE[r+1]=lE[r],r--;lE[r+1]=t}return}lk.length<t&&(lk=new Uint32Array(t),lA=new Uint32Array(t),lT=Array(t));for(let i=0;i<t;i++)lk[i]=lE[i].z;lS(t,lE,lk,lT,lA,0),lS(t,lT,lA,lE,lk,8),lS(t,lE,lk,lT,lA,16),lS(t,lT,lA,lE,lk,24)}(o);let s=null;for(let t=0;t<o;t++){let i=lE[t];i.prevZ=s,s&&(s.nextZ=i),s=i}s.nextZ=null}(i,r,a,o);let s=i,l=!1;for(;i.prev!==i.next;){let c=i.prev,d=i.next;if(0>lM(c,i,d)&&(o?function(t,i,n,r){let a=t.prev,o=t.next,s=a.x,l=t.x,c=o.x,d=a.y,h=t.y,u=o.y,p=Math.min(s,l,c),m=Math.min(d,h,u),f=Math.max(s,l,c),g=Math.max(d,h,u),_=lD(p,m,i,n,r),v=lD(f,g,i,n,r),y=t.prevZ;for(;y&&y.z>=_;){if(y.x>=p&&y.x<=f&&y.y>=m&&y.y<=g&&y!==o&&(s!==y.x||d!==y.y)&&lP(s,d,l,h,c,u,y.x,y.y)&&lM(y.prev,y,y.next)>=0)return!1;y=y.prevZ}let b=t.nextZ;for(;b&&b.z<=v;){if(b.x>=p&&b.x<=f&&b.y>=m&&b.y<=g&&b!==o&&(s!==b.x||d!==b.y)&&lP(s,d,l,h,c,u,b.x,b.y)&&lM(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}(i,r,a,o):function(t){let i=t.prev,n=t.next,r=i.x,a=t.x,o=n.x,s=i.y,l=t.y,c=n.y,d=Math.min(r,a,o),h=Math.min(s,l,c),u=Math.max(r,a,o),p=Math.max(s,l,c),m=n.next;for(;m!==i;){if(m.x>=d&&m.x<=u&&m.y>=h&&m.y<=p&&(r!==m.x||s!==m.y)&&lP(r,s,a,l,o,c,m.x,m.y)&&lM(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(i))){n.push(c.i,i.i,d.i),lN(i),i=d,s=d;continue}if((i=d)===s){if(lu=!1,i=lm(i),lu){s=i;continue}if(!l){s=i=function(t,i){let n=t,r=!1;do{let a=n.prev,o=n.next.next;lL(a,n,n.next,o,!1)&&lF(a,o)&&lF(o,a)&&(i.push(a.i,n.i,o.i),lN(n),lN(n.next),n=t=o,r=!0),n=n.next}while(n!==t);return r?lm(n):n}(i,n),l=!0;continue}!function(i,n,r,a,o){let s=i;do{let i=s.next.next;for(;i!==s.prev;){if(s.i!==i.i&&function(t,i){let n=lz(t,i)&&lM(t.prev,t,t.next)>0&&lM(i.prev,i,i.next)>0;return t.next.i!==i.i&&(n||lF(t,i)&&lF(i,t)&&(0!==lM(t.prev,t,i.prev)||0!==lM(t,i.prev,i)))&&!function(t,i){let n=Math.min(t.x,i.x),r=Math.max(t.x,i.x),a=Math.min(t.y,i.y),o=Math.max(t.y,i.y),s=t;do{let l=s.next;if(s.x>r&&l.x>r||s.x<n&&l.x<n||s.y>o&&l.y>o||s.y<a&&l.y<a){s=l;continue}if(s.i!==t.i&&l.i!==t.i&&s.i!==i.i&&l.i!==i.i&&lL(s,l,t,i))return!0;s=l}while(s!==t);return!1}(t,i)&&(n||function(t,i){let n=t,r=!1,a=(t.x+i.x)/2,o=(t.y+i.y)/2;do{let t=n.next;n.y>o!=t.y>o&&a<(t.x-n.x)*(o-n.y)/(t.y-n.y)+n.x&&(r=!r),n=t}while(n!==t);return r}(t,i))}(s,i)){let l=lO(s,i);s=lm(s,s.next),l=lm(l,l.next),t(s,n,r,a,o),t(l,n,r,a,o);return}i=i.next}s=s.next}while(s!==i)}(i,n,r,a,o);break}}}(o,s,l,c,d),s}(r,a),i=this._convertIndices(r,t);n=this._subdivideTrianglesScanline(i)}catch(t){console.error(t)}let o=[];return i&&(o=this._generateOutline(t)),this._ensureNoPoleVertices(),this._handlePoles(n),this._granularity>=2&&this._canonical?.z===0&&(n=this._removeTrianglesOutsideTileX(n),o=o.map(t=>this._removeLinesOutsideTileX(t))),{verticesFlattened:this._vertexBuffer,indicesTriangles:n,indicesLineList:o}}_vertexOutsideTileX(t){let i=this._vertexBuffer[2*t];return i<0||i>8192}_removeTrianglesOutsideTileX(t){let i=[];for(let n=0;n<t.length;n+=3)this._vertexOutsideTileX(t[n])||this._vertexOutsideTileX(t[n+1])||this._vertexOutsideTileX(t[n+2])||i.push(t[n],t[n+1],t[n+2]);return i}_removeLinesOutsideTileX(t){let i=[];for(let n=0;n<t.length;n+=2)this._vertexOutsideTileX(t[n])||this._vertexOutsideTileX(t[n+1])||i.push(t[n],t[n+1]);return i}_convertIndices(t,i){let n=[];for(let r of i){let i=t[2*r],a=t[2*r+1];n.push(this._vertexToIndex(i,a))}return n}_pointArrayToIndices(t){let i=[];for(let n of t)i.push(this._vertexToIndex(n.x,n.y));return i}};function lq(t,i,n,r=!0){return new lU(n,i).subdividePolygonInternal(t,r)}function lG(t,i,n=!1){if(!t||t.length<1||t.length<2)return[];let r=t[0],a=t[t.length-1],o=n&&(r.x!==a.x||r.y!==a.y);if(i<2)return o?[...t,t[0]]:[...t];let s=Math.floor(8192/i),l=[];l.push(new R(t[0].x,t[0].y));let c=t.length,d=o?c:c-1;for(let i=0;i<d;i++){let n=t[i],r=i<c-1?t[i+1]:t[0],a=n.x,o=n.y,d=r.x,h=r.y,u=a!==d,p=o!==h;if(!u&&!p)continue;let m=d-a,f=h-o,g=Math.abs(m),_=Math.abs(f),v=a,y=o;for(;;){let t=m>0?(Math.floor(v/s)+1)*s:(Math.ceil(v/s)-1)*s,i=f>0?(Math.floor(y/s)+1)*s:(Math.ceil(y/s)-1)*s,n=Math.abs(v-t),r=Math.abs(y-i),a=Math.abs(y-h),o=u?n/g:1/0,c=p?r/_:1/0;if((Math.abs(v-d)<=n||!u)&&(a<=r||!p))break;if(o<c&&u||!p){let i=new R(v=t,Math.round(y+=f*o));(l[l.length-1].x!==i.x||l[l.length-1].y!==i.y)&&l.push(i)}else{let t=new R(Math.round(v+=m*c),y=i);(l[l.length-1].x!==t.x||l[l.length-1].y!==t.y)&&l.push(t)}}let b=new R(d,h);(l[l.length-1].x!==b.x||l[l.length-1].y!==b.y)&&l.push(b)}return l}function lH(t,i,n,r,a,o,s,l,c){let d=a.length/2,h=s&&l&&c;if(d<se.MAX_VERTEX_ARRAY_LENGTH){let u,p,m=i.prepareSegment(d,n,r),f=m.vertexLength;for(let t=0;t<o.length;t+=3)r.emplaceBack(f+o[t],f+o[t+1],f+o[t+2]);m.vertexLength+=d,m.primitiveLength+=o.length/3,h&&(u=(p=s.prepareSegment(d,n,l)).vertexLength,p.vertexLength+=d);for(let i=0;i<a.length;i+=2)t(a[i],a[i+1]);if(h)for(let t of c){for(let i=1;i<t.length;i+=2)l.emplaceBack(u+t[i-1],u+t[i]);p.primitiveLength+=t.length/2}}else(function(t,i,n,r,a,o){let s=[];for(let t=0;t<r.length/2;t++)s.push(-1);let l={count:0},c=0,d=t.getOrCreateLatestSegment(i,n),h=d.vertexLength;for(let u=2;u<a.length;u+=3){let p=a[u-2],m=a[u-1],f=a[u],g=s[p]<c,_=s[m]<c,v=s[f]<c,y=+!!g+ +!!_+ +!!v;d.vertexLength+y>se.MAX_VERTEX_ARRAY_LENGTH&&(d=t.createNewSegment(i,n),c=l.count,g=!0,_=!0,v=!0,h=0);let b=lZ(s,r,o,l,p,g,d),x=lZ(s,r,o,l,m,_,d),w=lZ(s,r,o,l,f,v,d);n.emplaceBack(h+b-c,h+x-c,h+w-c),d.primitiveLength++}})(i,n,r,a,o,t),h&&function(t,i,n,r,a,o){let s=[];for(let t=0;t<r.length/2;t++)s.push(-1);let l={count:0},c=0,d=t.getOrCreateLatestSegment(i,n),h=d.vertexLength;for(let u of a)for(let a=1;a<u.length;a+=2){let p=u[a-1],m=u[a],f=s[p]<c,g=s[m]<c,_=+!!f+ +!!g;d.vertexLength+_>se.MAX_VERTEX_ARRAY_LENGTH&&(d=t.createNewSegment(i,n),c=l.count,f=!0,g=!0,h=0);let v=lZ(s,r,o,l,p,f,d),y=lZ(s,r,o,l,m,g,d);n.emplaceBack(h+v-c,h+y-c),d.primitiveLength++}}(s,n,l,a,c,t),i.forceNewSegmentOnNextPrepare(),s?.forceNewSegmentOnNextPrepare()}function lZ(t,i,n,r,a,o,s){if(o){let o=r.count;return n(i[2*a],i[2*a+1]),t[a]=r.count,r.count++,s.vertexLength++,o}return t[a]}var lX=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new oH,this.indexArray=new o4,this.indexArray2=new o6,this.programConfigurations=new sD(t.layers,t.zoom),this.segments=new se,this.segments2=new se,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){this.hasDependencies=lc("fill",this.layers,i);let r=this.layers[0].layout.get("fill-sort-key"),a=!r.isConstant(),o=[],s=new a$(this.zoom),l=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:d,index:h,sourceLayerIndex:u}of t){let t=sz(c,l);if(!this.layers[0]._featureFilter.filter(s,t,n))continue;let p=a?r.evaluate(t,{},n,i.availableImages):void 0,m={id:d,properties:c.properties,type:c.type,sourceLayerIndex:u,index:h,geometry:l?t.geometry:sM(c),patterns:{},sortKey:p};o.push(m)}for(let r of(a&&o.sort((t,i)=>t.sortKey-i.sortKey),o)){let{geometry:a,index:o,sourceLayerIndex:s}=r;if(this.hasDependencies){let t=ld("fill",this.layers,r,{zoom:this.zoom},i);this.patternFeatures.push(t)}else this.addFeature(r,a,o,n,{},i.subdivisionGranularity);let l=t[o].feature;i.featureIndex.insert(l,a,o,s,this.index)}}update(t,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n})}addFeatures({options:t,canonical:i,patternPositions:n,patternMap:r}){for(let a of(this.detectSdfPatterns(r),this.patternFeatures))this.addFeature(a,a.geometry,a.index,i,n,t.subdivisionGranularity)}detectSdfPatterns(t){for(let i of this.patternFeatures)for(let n in i.patterns){let r=i.patterns[n];this.recordSdfPattern(n,t[r.min]),this.recordSdfPattern(n,t[r.mid]),this.recordSdfPattern(n,t[r.max])}for(let i of this.layers){let n=i.paint.get("fill-pattern").constantOr(null);n&&(this.recordSdfPattern(i.id,t[n.from.toString()]),this.recordSdfPattern(i.id,t[n.to.toString()]))}}recordSdfPattern(t,i){if(!i)return;let n=!0===i.sdf,r=this.sdfPatterns[t];void 0===r?this.sdfPatterns[t]=n:r!==n&&tl(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ll),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,i,n,r,a,o){for(let t of i4(i,500)){let i=lq(t,r,o.fill.getGranularityForZoomLevel(r.z)),n=this.layoutVertexArray;lH((t,i)=>{n.emplaceBack(t,i)},this.segments,this.layoutVertexArray,this.indexArray,i.verticesFlattened,i.indicesTriangles,this.segments2,this.indexArray2,i.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:a,canonical:r})}};aw("FillBucket",lX,{omit:["layers","patternFeatures"]});var lW={get paint(){return p||=new a4({"fill-antialias":new a0(tY.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new a2(tY.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new a0(tY.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new a2(tY.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new a2(tY.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new a0(tY.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new a0(tY.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new a1(tY.paint_fill["fill-pattern"],"fill-pattern")})},get layout(){return u||=new a4({"fill-sort-key":new a2(tY.layout_fill["fill-sort-key"],"fill-sort-key")})}},lY=class extends a7{constructor(t,i){super(t,lW,i)}recalculate(t,i){super.recalculate(t,i);let n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new lX(t)}queryRadius(){return sq(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:i,transform:n,pixelsToTileUnits:r}){return sO(sG(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-n.bearingInRadians,r),i)}isTileClipped(){return!0}};let lK=or([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),lJ=or([{name:"a_centroid",components:2,type:"Int16"}],4),lQ=lK.members;lK.size,lK.alignment;var l0=class t{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(i){let n=new t;return n.extend(i(new R(this.minX,this.minY))),n.extend(i(new R(this.maxX,this.minY))),n.extend(i(new R(this.minX,this.maxY))),n.extend(i(new R(this.maxX,this.maxY))),n}static fromPoints(i){let n=new t;for(let t of i)n.extend(t);return n}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}};let l2=l0.fromPoints([new R(0,0),new R(8192,8192)]);function l1(t,i){return t.x===i.x&&(t.x<0||t.x>8192)||t.y===i.y&&(t.y<0||t.y>8192)}function l3(t){return t.every(t=>t.x<0)||t.every(t=>t.x>8192)||t.every(t=>t.y<0)||t.every(t=>t.y>8192)}var l5=class{constructor(t,i,n,r,a){for(this.properties=Object.create(null),this.extent=n,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=a;t.pos<i;){let i=t.readVarint();if(8===i)this.id=t.readVarint();else if(18===i){let i=t.readVarint()+t.pos;for(;t.pos<i;){let i=r[t.readVarint()],n=a[t.readVarint()];this.properties[i]=n}}else 24===i?this.type=t.readVarint():(34===i&&(this._geometry=t.pos),t.skip(i))}}loadGeometry(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let i=t.readVarint()+t.pos,n=[],r,a=1,o=0,s=0,l=0;for(;t.pos<i;){if(o<=0){let i=t.readVarint();if(a=7&i,0==(o=i>>3))continue}if(o--,1===a)s+=t.readSVarint(),l+=t.readSVarint(),r&&n.push(r),r=[new R(s,l)];else if(2===a)s+=t.readSVarint(),l+=t.readSVarint(),r&&r.push(new R(s,l));else if(7===a)r&&r.push(r[0].clone());else throw Error(`unknown command ${a}`)}return r&&n.push(r),n}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let i=t.readVarint()+t.pos,n=1,r=0,a=0,o=0,s=1/0,l=-1/0,c=1/0,d=-1/0;for(;t.pos<i;){if(r<=0){let i=t.readVarint();if(n=7&i,0==(r=i>>3))continue}if(r--,1===n||2===n)a+=t.readSVarint(),o+=t.readSVarint(),a<s&&(s=a),a>l&&(l=a),o<c&&(c=o),o>d&&(d=o);else if(7!==n)throw Error(`unknown command ${n}`)}return[s,c,l,d]}toGeoJSON(t,i,n){let r,a=this.extent*2**n,o=this.extent*t,s=this.extent*i,l=this.loadGeometry();function c(t){return[(t.x+o)*360/a-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+s)*2/a)*Math.PI))-90]}function d(t){return t.map(c)}if(1===this.type){let t=[];for(let i of l)t.push(i[0]);let i=d(t);r=1===t.length?{type:"Point",coordinates:i[0]}:{type:"MultiPoint",coordinates:i}}else if(2===this.type){let t=l.map(d);r=1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t}}else if(3===this.type){let t=l4(l),i=[];for(let n of t)i.push(n.map(d));r=1===i.length?{type:"Polygon",coordinates:i[0]}:{type:"MultiPolygon",coordinates:i}}else throw Error("unknown feature type");let h={type:"Feature",geometry:r,properties:this.properties};return null!=this.id&&(h.id=this.id),h}};function l4(t){let i=t.length;if(i<=1)return[t];let n=[],r,a;for(let o=0;o<i;o++){let i=function(t){let i=0;for(let n=0,r=t.length,a=r-1,o,s;n<r;a=n++)o=t[n],i+=((s=t[a]).x-o.x)*(o.y+s.y);return i}(t[o]);0!==i&&(void 0===a&&(a=i<0),a===i<0?(r&&n.push(r),r=[t[o]]):r&&r.push(t[o]))}return r&&n.push(r),n}l5.types=["Unknown","Point","LineString","Polygon"];var l6=class{constructor(t,i){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],void 0===i&&(i=t.length);t.pos<i;){let i=t.readVarint();10===i?this.name=t.readString():18===i?(this._features.push(t.pos),t.skip(i)):26===i?this._keys.push(t.readString()):34===i?this._values.push(function(t){let i=null,n=t.readVarint()+t.pos;for(;t.pos<n;){let n=t.readVarint();i=10===n?t.readString():21===n?t.readFloat():25===n?t.readDouble():32===n?t.readVarint(!0):40===n?t.readVarint():48===n?t.readSVarint():56===n?t.readBoolean():(t.skip(n),null)}if(null==i)throw Error("unknown feature value");return i}(t)):40===i?this.extent=t.readVarint():120===i?this.version=t.readVarint():t.skip(i)}this.length=this._features.length}feature(t){if(t<0||t>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let i=this._pbf.readVarint()+this._pbf.pos;return new l5(this._pbf,i,this.extent,this._keys,this._values)}},l8=class{constructor(t,i=t.length){let n=Object.create(null);for(;t.pos<i;){let i=t.readVarint();if(26===i){let i=new l6(t,t.readVarint()+t.pos);i.length&&(n[i.name]=i)}else t.skip(i)}this.layers=n}},l7=class t{constructor(t,i){if(isNaN(t)||isNaN(i))throw Error(`Invalid LngLat object: (${t}, ${i})`);if(this.lng=+t,this.lat=+i,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new t(e4(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let i=Math.PI/180,n=this.lat*i,r=t.lat*i;return 6371008.8*Math.acos(Math.min(Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*i),1))}static convert(i){if(i instanceof t)return i;if(Array.isArray(i)&&(2===i.length||3===i.length))return new t(Number(i[0]),Number(i[1]));if(!Array.isArray(i)&&"object"==typeof i&&i)return new t(Number("lng"in i?i.lng:i.lon),Number(i.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}};let l9=2*Math.PI*6371008.8;function ce(t){return l9*Math.cos(t*Math.PI/180)}function ct(t){return(180+t)/360}function ci(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function cn(t,i){return t/ce(i)}function cr(t){return 360*t-180}function ca(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}function co(t,i){return t*ce(ca(i))}var cs=class t{constructor(t,i,n=0){this.x=+t,this.y=+i,this.z=+n}static fromLngLat(i,n=0){let r=l7.convert(i);return new t(ct(r.lng),ci(r.lat),n/ce(r.lat))}toLngLat(){return new l7(cr(this.x),ca(this.y))}toAltitude(){return co(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/l9*(1/Math.cos(ca(this.y)*Math.PI/180))}};function cl(t,i,n){let r=1/(1<<n.z);return new cs(t/8192*r+n.x*r,i/8192*r+n.y*r)}function cc(t,i){let n=e5(i.lat,-85.051129,85.051129);return new R(ct(i.lng)*t,ci(n)*t)}function cd(t,i){return new cs(i.x/t,i.y/t).toLngLat()}function ch(t){return t.cameraToCenterDistance*Math.min(.85*Math.tan(tb(90-t.pitch)),Math.tan(tb(89.25-t.pitch)))}function cu(t,i){let n=t.canonical,r=i/tt(n.z),a=n.x+2**n.z*t.wrap,o=new Float64Array(16);return q(o),Z(o,o,[a*r,n.y*r,0]),X(o,o,[r/8192,r/8192,1]),o}function cp(t,i,n,r,a){let o=cs.fromLngLat(t,i),s=a*(1/ce(t.lat)),{x:l,y:c,z:d}=cf(n,r);return new cs(o.x+-(s*l),o.y+-(s*c),o.z+s*d)}function cm(t){let i=1/ce(t.center.lat)*t.worldSize;return cp(t.center,t.elevation,t.pitch,t.bearing,t.cameraToCenterDistance/i)}function cf(t,i){let n=tb(t),r=tb(i),a=Math.cos(-n),o=Math.sin(n);return{x:o*Math.sin(r),y:-o*Math.cos(r),z:a}}function cg(t,i,n){var r,a;let o;if(i<=0||!t||0===t.length)return t;let s=(r=i,o=cl(4096,4096,a=n).toLngLat(),r*cs.fromLngLat(o).meterInMercatorCoordinateUnits()*((1<<a.z)*8192));return t.map(t=>(function(t,i){if(!t||t.length<3)return t;let n=t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y,r=n?t.length-1:t.length;if(r<3)return t;let a=[];for(let n=0;n<r;n++){let o=t[(n-1+r)%r],s=t[n],l=t[(n+1)%r];if(l1(o,s)||l1(s,l)){a.push(s.clone());continue}!function(t,i,n,r,a){let o=i.sub(n),s=r.sub(n),l=o.mag(),c=s.mag();if(l<1e-6||c<1e-6)return t.push(n.clone());o._div(l),s._div(c);let d=o.x*s.x+o.y*s.y;if(Math.abs(d)>Math.cos(5*Math.PI/180))return t.push(n.clone());let h=Math.min(a,.2*l,.2*c),u=n.add(o.mult(h)),p=n.add(s.mult(h)),m=Math.sqrt((1+d)/2),f=n.add(o.add(s)._unit()._mult(h/m)),g=u.sub(f).angleWith(p.sub(f)),_=Math.max(2,Math.ceil(Math.abs(g)/(Math.PI/6)-1e-6));for(let i=0;i<=_;i++)t.push(u.rotateAround(i/_*g,f))}(a,o,s,l,i)}let o=function(t){let i=[];for(let n of t){let t=n.round(),r=i[i.length-1];(r?.x!==t.x||r?.y!==t.y)&&i.push(t)}for(;i.length>1&&i[0].x===i[i.length-1].x&&i[0].y===i[i.length-1].y;)i.pop();return i}(a);return o.length<3?t:(n&&o.push(o[0].clone()),o)})(t,s))}function c_(t,i,n,r,a,o,s,l){t.emplaceBack(i,n,2*Math.floor(8192*r)+s,8192*a*2,8192*o*2,Math.round(l))}var cv=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new oZ,this.centroidVertexArray=new oj,this.indexArray=new o4,this.programConfigurations=new sD(t.layers,t.zoom),this.segments=new se,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){this.features=[],this.hasDependencies=lc("fill-extrusion",this.layers,i);let r=new a$(this.zoom),a=this.layers[0],o=a.layout.get("fill-extrusion-rounded-corner-distance"),s=a._featureFilter.needGeometry;for(let{feature:l,id:c,index:d,sourceLayerIndex:h}of t){let t=sz(l,s);if(!a._featureFilter.filter(r,t,n))continue;let u=s?t.geometry:sM(l),p={id:c,sourceLayerIndex:h,index:d,geometry:o>0?cg(u,o,n):u,properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(ld("fill-extrusion",this.layers,p,{zoom:this.zoom},i)):this.addFeature(p,p.geometry,d,n,{},i.subdivisionGranularity),i.featureIndex.insert(l,p.geometry,d,h,this.index,!0)}}addFeatures({options:t,canonical:i,patternPositions:n}){for(let r of this.features){let{geometry:a}=r;this.addFeature(r,a,r.index,i,n,t.subdivisionGranularity)}}update(t,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n})}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,lQ),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,lJ.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,i,n,r,a,o){let s=this.layers[0],l=s.layout?s.layout.get("fill-extrusion-rounded-corner-distance"):0;for(let n of i4(l>0?cg(i,l,r):i,500)){let i={x:0,y:0,sampleCount:0},a=this.layoutVertexArray.length;this.processPolygon(i,r,t,n,o);let s=this.layoutVertexArray.length-a,l=Math.floor(i.x/i.sampleCount),c=Math.floor(i.y/i.sampleCount);for(let t=0;t<s;t++)this.centroidVertexArray.emplaceBack(l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:a,canonical:r})}processPolygon(t,i,n,r,a){if(r.length<1||l3(r[0]))return;for(let i of r)0!==i.length&&function(t,i){for(let n=0;n<i.length;n++){let r=i[n];(n!==i.length-1||i[0].x!==r.x||i[0].y!==r.y)&&(t.x+=r.x,t.y+=r.y,t.sampleCount++)}}(t,i);let o={segment:this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray)},s=a.fill.getGranularityForZoomLevel(i.z),l="Polygon"===l5.types[n.type];for(let t of r){if(0===t.length||l3(t))continue;let i=lG(t,s,l);this._generateSideFaces(i,o)}if(!l)return;let c=lq(r,i,s,!1),d=this.layoutVertexArray;lH((t,i)=>{c_(d,t,i,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,c.verticesFlattened,c.indicesTriangles)}_generateSideFaces(t,i){let n=0;for(let r=1;r<t.length;r++){let a=t[r],o=t[r-1];if(l1(a,o))continue;i.segment.vertexLength+4>se.MAX_VERTEX_ARRAY_LENGTH&&(i.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=a.sub(o)._perp()._unit(),l=o.dist(a);n+l>32768&&(n=0),c_(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,n),c_(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,n),n+=l,c_(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,0,n),c_(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,1,n);let c=i.segment.vertexLength;this.indexArray.emplaceBack(c,c+2,c+1),this.indexArray.emplaceBack(c+1,c+2,c+3),i.segment.vertexLength+=4,i.segment.primitiveLength+=2}}};aw("FillExtrusionBucket",cv,{omit:["layers","features"]});var cy={get paint(){return f||=new a4({"fill-extrusion-opacity":new a0(tY["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new a2(tY["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new a0(tY["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new a0(tY["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new a1(tY["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new a2(tY["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new a2(tY["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new a0(tY["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})},get layout(){return m||=new a4({"fill-extrusion-rounded-corner-distance":new a0(tY["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})}},cb=class extends a7{constructor(t,i){super(t,cy,i)}createBucket(t){return new cv(t)}queryRadius(){return sq(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o,pixelPosMatrix:s}){let l=sG(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-a.bearingInRadians,o),c=this.paint.get("fill-extrusion-height").evaluate(i,n),d=this.paint.get("fill-extrusion-base").evaluate(i,n),h=function(t,i){let n=[];for(let r of t){let t=[r.x,r.y,0,1];eE(t,t,i),n.push(new R(t[0]/t[3],t[1]/t[3]))}return n}(l,s),u=function(t,i,n,r){let a=[],o=[],s=r[8]*i,l=r[9]*i,c=r[10]*i,d=r[11]*i,h=r[8]*n,u=r[9]*n,p=r[10]*n,m=r[11]*n;for(let i of t){let t=[],n=[];for(let a of i){let i=a.x,o=a.y,f=r[0]*i+r[4]*o+r[12],g=r[1]*i+r[5]*o+r[13],_=r[2]*i+r[6]*o+r[14],v=r[3]*i+r[7]*o+r[15],y=f+s,b=g+l,x=_+c,w=v+d,C=f+h,E=g+u,T=_+p,k=v+m,A=new R(y/w,b/w);A.z=x/w,t.push(A);let I=new R(C/k,E/k);I.z=T/k,n.push(I)}a.push(t),o.push(n)}return[a,o]}(r,d,c,s);return function(t,i,n){let r=1/0;sO(n,i)&&(r=cw(n,i[0]));for(let a=0;a<i.length;a++){let o=i[a],s=t[a];for(let t=0;t<o.length-1;t++){let i=o[t],a=o[t+1],l=s[t],c=[i,a,s[t+1],l,i];sR(n,c)&&(r=Math.min(r,cw(n,c)))}}return 1/0!==r&&r}(u[0],u[1],h)}};function cx(t,i){return t.x*i.x+t.y*i.y}function cw(t,i){if(1===t.length){let n=0,r=i[n++],a;for(;!a||r.equals(a);)if(!(a=i[n++]))return 1/0;for(;n<i.length;n++){let o=i[n],s=t[0],l=a.sub(r),c=o.sub(r),d=s.sub(r),h=cx(l,l),u=cx(l,c),p=cx(c,c),m=cx(d,l),f=cx(d,c),g=h*p-u*u,_=(p*m-u*f)/g,v=(h*f-u*m)/g,y=1-_-v,b=r.z*y+a.z*_+o.z*v;if(isFinite(b))return b}return 1/0}{let t=1/0;for(let n of i)t=Math.min(t,n.z);return t}}new Uint32Array(96);let cC=or([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),cE=cC.members;cC.size,cC.alignment;let cT=or([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),ck=cT.members;cT.size,cT.alignment;let cA=Math.cos(Math.PI/180*37.5);var cI=class{constructor(t){for(let i of(this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers))this.gradients[i.id]={};this.layoutVertexArray=new oX,this.layoutVertexArray2=new oW,this.indexArray=new o4,this.programConfigurations=new sD(t.layers,t.zoom),this.segments=new se,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,n){this.hasDependencies=lc("line",this.layers,i)||this.hasLineDasharray(this.layers);let r=this.layers[0].layout.get("line-sort-key"),a=!r.isConstant(),o=[],s=new a$(this.zoom),l=this.layers[0]._featureFilter.needGeometry;for(let{feature:i,id:c,index:d,sourceLayerIndex:h}of t){let t=sz(i,l);if(!this.layers[0]._featureFilter.filter(s,t,n))continue;let u=a?r.evaluate(t,{},n):void 0,p={id:c,properties:i.properties,type:i.type,sourceLayerIndex:h,index:d,geometry:l?t.geometry:sM(i),patterns:{},dashes:{},sortKey:u};o.push(p)}for(let r of(a&&o.sort((t,i)=>t.sortKey-i.sortKey),o)){let{geometry:a,index:o,sourceLayerIndex:s}=r;this.hasDependencies?(lc("line",this.layers,i)?ld("line",this.layers,r,{zoom:this.zoom},i):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,r,this.zoom,i),this.patternFeatures.push(r)):this.addFeature(r,a,o,n,{},{},i.subdivisionGranularity);let l=t[o].feature;i.featureIndex.insert(l,a,o,s,this.index)}}update(t,i,n,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:n,dashPositions:r})}addFeatures({options:t,canonical:i,patternPositions:n,dashPositions:r}){for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,i,n,r,t.subdivisionGranularity)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,ck)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,cE),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties.geojsonvt_clip_start,end:+t.properties.geojsonvt_clip_end}}addFeature(t,i,n,r,a,o,s){let l=this.layers[0].layout,c=l.get("line-join").evaluate(t,{}),d=l.get("line-cap").evaluate(t,{}),h=l.get("line-miter-limit").evaluate(t,{}),u=l.get("line-round-limit").evaluate(t,{});for(let n of(this.lineClips=this.lineFeatureClips(t),i))this.addLine(n,t,c,d,h,u,r,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{imagePositions:a,dashPositions:o,canonical:r})}addLine(t,i,n,r,a,o,s,l){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let c=s?l.line.getGranularityForZoomLevel(s.z):1;if(t=lG(t,c),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let i=0;i<t.length-1;i++)this.totalDistance+=t[i].dist(t[i+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}let d="Polygon"===l5.types[i.type],h=t.length;for(;h>=2&&t[h-1].equals(t[h-2]);)h--;let u=0;for(;u<h-1&&t[u].equals(t[u+1]);)u++;if(h-u<(d?3:2))return;"bevel"===n&&(a=1.05);let p=this.overscaling<=16?122880/(512*this.overscaling):0,m=this.segments.prepareSegment(10*h,this.layoutVertexArray,this.indexArray),f,g,_,v,y;this.e1=this.e2=-1,d&&(f=t[h-2],y=t[u].sub(f)._unit()._perp());for(let i=u;i<h;i++){if((_=i===h-1?d?t[u+1]:void 0:t[i+1])&&t[i].equals(_))continue;y&&(v=y),f&&(g=f),f=t[i],y=_?_.sub(f)._unit()._perp():v;let s=(v||=y).add(y);(0!==s.x||0!==s.y)&&s._unit();let l=v.x*y.x+v.y*y.y,c=s.x*y.x+s.y*y.y,b=0===c?1/0:1/c,x=2*Math.sqrt(2-2*c),w=c<cA&&g&&_,C=v.x*y.y-v.y*y.x>0;if(w&&i>u){let t=f.dist(g);if(t>2*p){let i=f.sub(f.sub(g)._mult(p/t)._round());this.updateDistance(g,i),this.addCurrentVertex(i,v,0,0,m),g=i}}let E=g&&_,T=E?n:d?"butt":r;if(E&&"round"===T&&(b<o?T="miter":b<=2&&(T="fakeround")),"miter"===T&&b>a&&(T="bevel"),"bevel"===T&&(b>2&&(T="flipbevel"),b<a&&(T="miter")),g&&this.updateDistance(g,f),"miter"===T)s._mult(b),this.addCurrentVertex(f,s,0,0,m);else if("flipbevel"===T){if(b>100)s=y.mult(-1);else{let t=b*v.add(y).mag()/v.sub(y).mag();s._perp()._mult(t*(C?-1:1))}this.addCurrentVertex(f,s,0,0,m),this.addCurrentVertex(f,s.mult(-1),0,0,m)}else if("bevel"===T||"fakeround"===T){let t=-Math.sqrt(b*b-1),i=C?t:0,n=C?0:t;if(g&&this.addCurrentVertex(f,v,i,n,m),"fakeround"===T){let t=Math.round(180*x/Math.PI/20);for(let i=1;i<t;i++){let n=i/t;if(.5!==n){let t=n-.5,i=1.0904+l*(-3.2452+l*(3.55645-1.43519*l)),r=.848013+l*(-1.06021+.215638*l);n+=n*t*(n-1)*(i*t*t+r)}let r=y.sub(v)._mult(n)._add(v)._unit()._mult(C?-1:1);this.addHalfVertex(f,r.x,r.y,!1,C,0,m)}}_&&this.addCurrentVertex(f,y,-i,-n,m)}else if("butt"===T)this.addCurrentVertex(f,s,0,0,m);else if("square"===T){let t=g?1:-1;this.addCurrentVertex(f,s,t,t,m)}else"round"===T&&(g&&(this.addCurrentVertex(f,v,0,0,m),this.addCurrentVertex(f,v,1,1,m,!0)),_&&(this.addCurrentVertex(f,y,-1,-1,m,!0),this.addCurrentVertex(f,y,0,0,m)));if(w&&i<h-1){let t=f.dist(_);if(t>2*p){let i=f.add(_.sub(f)._mult(p/t)._round());this.updateDistance(f,i),this.addCurrentVertex(i,y,0,0,m),f=i}}}}addCurrentVertex(t,i,n,r,a,o=!1){let s=i.x+i.y*n,l=i.y-i.x*n,c=-i.x+i.y*r,d=-i.y-i.x*r;this.addHalfVertex(t,s,l,o,!1,n,a),this.addHalfVertex(t,c,d,o,!0,-r,a),this.distance>16384&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,i,n,r,a,o))}addHalfVertex({x:t,y:i},n,r,a,o,s,l){let c=(this.lineClips?32767*this.scaledDistance:this.scaledDistance)*.5;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!a,(i<<1)+ +!!o,Math.round(63*n)+128,Math.round(63*r)+128,(0===s?0:s<0?-1:1)+1|(63&c)<<2,c>>6),this.lineClips){let t=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(t,this.lineClipsArray.length)}let d=l.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,d,this.e2),l.primitiveLength++),o?this.e2=d:this.e1=d}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,i){this.distance+=t.dist(i),this.updateScaledDistance()}hasLineDasharray(t){for(let i of t){let t=i.paint.get("line-dasharray");if(t&&!t.isConstant())return!0}return!1}addLineDashDependencies(t,i,n,r){for(let a of t){let t=a.paint.get("line-dasharray");if(!t||"constant"===t.value.kind)continue;let o="round"===a.layout.get("line-cap").evaluate(i,{}),s={dasharray:t.value.evaluate({zoom:n-1},i,{}),round:o},l={dasharray:t.value.evaluate({zoom:n},i,{}),round:o},c={dasharray:t.value.evaluate({zoom:n+1},i,{}),round:o},d=`${s.dasharray.join(",")},${s.round}`,h=`${l.dasharray.join(",")},${l.round}`,u=`${c.dasharray.join(",")},${c.round}`;r.dashDependencies[d]=s,r.dashDependencies[h]=l,r.dashDependencies[u]=c,i.dashes[a.id]={min:d,mid:h,max:u}}}};aw("LineBucket",cI,{omit:["layers","patternFeatures"]});var cS={get paint(){return _||=new a4({"line-opacity":new a2(tY.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new a0(tY.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new a2(tY.paint_line["line-color"],"line-color"),"line-translate":new a0(tY.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new a0(tY.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new a2(tY.paint_line["line-width"],"line-width"),"line-gap-width":new a2(tY.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new a2(tY.paint_line["line-offset"],"line-offset"),"line-blur":new a2(tY.paint_line["line-blur"],"line-blur"),"line-dasharray":new a1(tY.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new a1(tY.paint_line["line-pattern"],"line-pattern"),"line-gradient":new a5(tY.paint_line["line-gradient"],"line-gradient")})},get layout(){return g||=new a4({"line-cap":new a2(tY.layout_line["line-cap"],"line-cap"),"line-join":new a2(tY.layout_line["line-join"],"line-join"),"line-miter-limit":new a2(tY.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new a2(tY.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new a2(tY.layout_line["line-sort-key"],"line-sort-key")})}},cD=class extends a2{possiblyEvaluate(t,i){return i=new a$(Math.floor(i.zoom),{now:i.now,fadeDuration:i.fadeDuration,zoomHistory:i.zoomHistory,transition:i.transition}),super.possiblyEvaluate(t,i)}evaluate(t,i,n,r){return i=e6({},i,{zoom:Math.floor(i.zoom)}),super.evaluate(t,i,n,r)}},cP=class extends a7{constructor(t,i){super(t,cS,i),this.gradientVersion=0,v||((v=new cD(cS.paint.properties["line-width"].specification,"line-floorwidth")).useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if("line-gradient"===t){let t=this.gradientExpression();this.stepInterpolant=void 0!==t._styleExpression&&t._styleExpression.expression instanceof iQ,this.gradientVersion=(this.gradientVersion+1)%0x1fffffffffffff}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,i){super.recalculate(t,i),this.paint._values["line-floorwidth"]=v.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new cI(t)}queryRadius(t){var i,n;return i=sU("line-width",this,t),((n=sU("line-gap-width",this,t))>0?n+2*i:i)/2+Math.abs(sU("line-offset",this,t))+sq(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:n,geometry:r,transform:a,pixelsToTileUnits:o}){var s,l;let c=sG(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-a.bearingInRadians,o),d=o/2*(s=this.paint.get("line-width").evaluate(i,n),(l=this.paint.get("line-gap-width").evaluate(i,n))>0?l+2*s:s),h=this.paint.get("line-offset").evaluate(i,n);return h&&(r=function(t,i){let n=[];for(let r of t){let t=function(t){let i=[];for(let n=0;n<t.length;n++){let r=t[n],a=i.at(-1);(0===n||a&&!r.equals(a))&&i.push(r)}return i}(r),a=[];for(let n=0;n<t.length;n++){let r=t[n],o=t[n-1],s=t[n+1],l=0===n?new R(0,0):r.sub(o)._unit()._perp(),c=n===t.length-1?new R(0,0):s.sub(r)._unit()._perp(),d=l._add(c)._unit(),h=d.x*c.x+d.y*c.y;0!==h&&d._mult(1/h),a.push(d._mult(i)._add(r))}n.push(a)}return n}(r,h*o)),function(t,i,n){for(let r of i){if(t.length>=3){for(let i of r)if(sj(t,i))return!0}if(function(t,i,n){if(t.length>1){if(sB(t,i))return!0;for(let r of i)if(sN(r,t,n))return!0}for(let r of t)if(sN(r,i,n))return!0;return!1}(t,r,n))return!0}return!1}(c,r,d)}isTileClipped(){return!0}};let cM=or([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),cz=or([{name:"a_projected_pos",components:3,type:"Float32"}],4);or([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let cL=or([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);or([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let cR=or([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),cF=or([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);or([{name:"triangle",components:3,type:"Uint16"}]),or([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),or([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),or([{type:"Float32",name:"offsetX"}]),or([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),or([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let cO="u">typeof Intl&&"Segmenter"in Intl;function cB(t){var i;if(!cO||!/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(t))return[...t];y??=new Intl.Segmenter(void 0,{granularity:"grapheme"});let n=[];for(let{segment:r}of y.segment(t)){let t=n.length-1;t>=0&&(i=n[t],/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(i)||/^\p{gc=Mc}/u.test(r))?n[t]+=r:n.push(r)}return n}function cN(t){let i=t.codePointAt(0);return t.length>(i>65535?2:1)}let cV={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","\xa2":"¢","\xa3":"£","\xa5":"¥","\xa6":"¦","\xac":"¬","\xaf":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","⋯":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},c$={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},cj={40:!0};function cU(t,i,n,r,a,o){if("fontStack"in i){let r=n[i.fontStack],o=r?.[t];if(o)return o.metrics.advance*i.scale+a;let s=0;for(let n of t){let t=r?.[n];t&&(s+=t.metrics.advance*i.scale+a)}return s}{let t=r[i.imageName];return t?t.displaySize[0]*i.scale*24/o+a:0}}function cq(t,i,n,r){let a=(t-i)**2;return r?t<i?a/2:2*a:a+Math.abs(n)*n}function cG(t){return/^\s+$/u.test(t)}function cH(t,i,n,r,a,o){let s=null,l=cq(i,n,a,o);for(let t of r){let r=cq(i-t.x,n,a,o)+t.badness;r<=l&&(s=t,l=r)}return{index:t,x:i,priorBreak:s,badness:l}}var cZ=class t{constructor(t="",i=[],n=[]){this.text=t,this.sections=i,this.sectionIndex=n,this.imageSectionID=null,this._graphemes=null}graphemes(){return this._graphemes??=cB(this.text),this._graphemes}static fromFeature(i,n){let r=new t;for(let t of i.sections)t.image?r.addImageSection(t):r.addTextSection(t,n);return r}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=function(t){let i="",n={premature:!0,value:void 0},r=t[Symbol.iterator](),a=r.next(),o=t[Symbol.iterator]();o.next();let s=o.next();for(;!a.done;)(s.done||!aF(s.value.codePointAt(0))||cV[s.value])&&(n.premature||!aF(n.value.codePointAt(0))||cV[n.value])&&cV[a.value]?i+=cV[a.value]:i+=a.value,n={value:a.value,premature:!1},a=r.next(),s=o.next();return i}(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("​")}trim(){let t=this.graphemes(),i=0;for(;i<t.length&&cG(t[i]);)i++;let n=t.length;for(;n>i&&cG(t[n-1]);)n--;this.text=t.slice(i,n).join(""),this.sectionIndex=this.sectionIndex.slice(i,n),this._graphemes=null}substring(i,n){let r=this.graphemes().slice(i,n).join(""),a=this.sectionIndex.slice(i,n);return new t(r,this.sections,a)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,i)=>Math.max(t,this.sections[i].scale),0)}getMaxImageSize(t){let i=0,n=0;for(let r=0;r<this.length();r++){let a=this.getSection(r);if("imageName"in a){let r=t[a.imageName];if(!r)continue;let o=r.displaySize;i=Math.max(i,o[0]),n=Math.max(n,o[1])}}return{maxImageWidth:i,maxImageHeight:n}}_appendSection(t,i){let n=this.graphemes(),r=n.length>0?n[n.length-1]:"",a=cB(r+t);this.text+=t,this._graphemes=n.slice(0,r?-1:void 0).concat(a);let o=a.length-!!r;for(let t=0;t<o;t++)this.sectionIndex.push(i)}addTextSection(t,i){this.sections.push({scale:t.scale||1,verticalAlign:t.verticalAlign||"bottom",fontStack:t.fontStack||i}),this._appendSection(t.text,this.sections.length-1)}addImageSection(t){let i=t.image?t.image.name:"";if(0===i.length)return void tl("Can't add FormattedSection with an empty image.");let n=this.getNextImageSectionCharCode();n?(this.sections.push({scale:1,verticalAlign:t.verticalAlign||"bottom",imageName:i}),this._appendSection(String.fromCharCode(n),this.sections.length-1)):tl("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,i,n,r,a){let o=[],s=this.determineAverageLineWidth(t,i,n,r,a),l=this.hasZeroWidthSpaces(),c=this.graphemes(),d=null,h=0,u=0;for(let i=0;i<c.length;i++){let p=c[i];if(i>0){let t=c[i-1].codePointAt(0),n=p.codePointAt(0),r=/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t)),a=aP(t)&&aP(n);(c$[t]||r||"imageName"in this.getSection(i-1)||void 0!==c[i+1]&&cj[n]||a&&(d??=function(t){let i=new Set;if(cO){for(let{index:n}of(b??=new Intl.Segmenter(void 0,{granularity:"word"})).segment(t))i.add(n);return i}let n=0;for(let r of t.split(/\b|(?=\p{Ideo})/u))i.add(n),n+=r.length;return i}(this.text)).has(u))&&o.push(cH(i,h,s,o,function(t,i,n){let r=0;return(10===t||13===t)&&(r-=1e4),n&&(r+=150),(40===t||65288===t)&&(r+=50),(41===i||65289===i)&&(r+=50),r}(t,n,r&&l),!1))}aM(p.codePointAt(0))||(h+=cU(p,this.getSection(i),n,r,t,a)),u+=p.length}return function t(i){return i?t(i.priorBreak).concat(i.index):[]}(cH(this.length(),h,s,o,0,!0))}determineAverageLineWidth(t,i,n,r,a){let o=0,s=0;for(let i of this.graphemes())o+=cU(i,this.getSection(s),n,r,t,a),s++;let l=Math.max(1,Math.ceil(o/i));return o/l}};let cX=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");var cW=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,i,n=this.length){let r;for(;r=this.nextField(n);)t(r,i,this);return i}readMessage(t,i){return this.readFields(t,i,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+0x100000000*this.dataView.getUint32(this.pos+4,!0);return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+0x100000000*this.dataView.getInt32(this.pos+4,!0);return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let i=this.buf,n=i[this.pos++];if(n<128)return n;let r=127&n,a;return r|=(127&(a=i[this.pos++]))<<7,a<128||(r|=(127&(a=i[this.pos++]))<<14,a<128)||(r|=(127&(a=i[this.pos++]))<<21,a<128)?r:function(t,i,n){let r=n.buf,a,o;if(a=(112&(o=r[n.pos++]))>>4,o<128||(a|=(127&(o=r[n.pos++]))<<3,o<128)||(a|=(127&(o=r[n.pos++]))<<10,o<128)||(a|=(127&(o=r[n.pos++]))<<17,o<128)||(a|=(127&(o=r[n.pos++]))<<24,o<128)||(a|=(1&(o=r[n.pos++]))<<31,o<128)){var s,l;return s=t,l=a,i?0x100000000*l+(s>>>0):(l>>>0)*0x100000000+(s>>>0)}throw Error("Expected varint not more than 10 bytes")}(r|=(15&(a=i[this.pos]))<<28,t,this)}readSVarint(){let t=this.readVarint();return t%2==1?-((t+1)/2):t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,i=this.pos;return this.pos=t,t-i>=12&&cX?cX.decode(this.buf.subarray(i,t)):function(t,i,n){let r="",a=i;for(;a<n;){let i,o,s,l=t[a],c=null,d=l>239?4:l>223?3:l>191?2:1;if(a+d>n)break;1===d?l<128&&(c=l):2===d?(192&(i=t[a+1]))==128&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===d?(i=t[a+1],o=t[a+2],(192&i)==128&&(192&o)==128&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===d&&(i=t[a+1],o=t[a+2],s=t[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,d=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),a+=d}return r}(this.buf,i,t)}readBytes(){let t=this.readVarint()+this.pos,i=this.buf.subarray(this.pos,t);return this.pos=t,i}readPackedVarint(t=[],i){let n=this.readPackedEnd();for(;this.pos<n;)t.push(this.readVarint(i));return t}readPackedSVarint(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSVarint());return t}readPackedBoolean(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readBoolean());return t}readPackedFloat(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFloat());return t}readPackedDouble(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readDouble());return t}readPackedFixed32(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFixed32());return t}readPackedSFixed32(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSFixed32());return t}readPackedFixed64(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFixed64());return t}readPackedSFixed64(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSFixed64());return t}readPackedEnd(){return 2===this.type?this.readVarint()+this.pos:this.pos+1}nextField(t=this.length){if(this.pos===this._valueStart&&this.skip(this.type),this.pos>=t)return 0;let i=this.readVarint();return this.type=7&i,this._valueStart=this.pos,i>>>3}skip(t){let i=7&t;if(0===i)for(;this.buf[this.pos++]>127;);else if(2===i)this.pos=this.readVarint()+this.pos;else if(5===i)this.pos+=4;else if(1===i)this.pos+=8;else throw Error(`Unimplemented type: ${i}`)}};function cY(t,i,n){1===t&&n.readMessage(cK,i)}function cK(t,i,n){if(3===t){let{id:t,bitmap:r,width:a,height:o,left:s,top:l,advance:c}=n.readMessage(cJ,{});i.push({id:t,bitmap:new s4({width:a+6,height:o+6},r),metrics:{width:a,height:o,left:s,top:l,advance:c}})}}function cJ(t,i,n){1===t?i.id=n.readVarint():2===t?i.bitmap=n.readBytes():3===t?i.width=n.readVarint():4===t?i.height=n.readVarint():5===t?i.left=n.readSVarint():6===t?i.top=n.readSVarint():7===t&&(i.advance=n.readVarint())}function cQ(t){return new cW(t).readFields(cY,[])}function c0(t){return"function"==typeof t?.renderWithWebGL}function c2(t){let{userImage:i}=t;return!!i?.render&&!!i.render()&&(c0(i.data)||t.data.replace(new Uint8Array(i.data.buffer)),!0)}function c1(t){let i=0,n=0;for(let r of t)i+=r.w*r.h,n=Math.max(n,r.w);t.sort((t,i)=>i.h-t.h);let r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(i/.95)),n),h:1/0}],a=0,o=0;for(let i of t)for(let t=r.length-1;t>=0;t--){let n=r[t];if(!(i.w>n.w||i.h>n.h)){if(i.x=n.x,i.y=n.y,o=Math.max(o,i.y+i.h),a=Math.max(a,i.x+i.w),i.w===n.w&&i.h===n.h){let i=r.pop();i&&t<r.length&&(r[t]=i)}else i.h===n.h?(n.x+=i.w,n.w-=i.w):(i.w===n.w||r.push({x:n.x+i.w,y:n.y,w:n.w-i.w,h:i.h}),n.y+=i.h,n.h-=i.h);break}}return{w:a,h:o,fill:i/(a*o)||0}}var c3=class{constructor(t,{pixelRatio:i,version:n,isWebGLImage:r=!1,stretchX:a,stretchY:o,content:s,textFitWidth:l,textFitHeight:c}){this.paddedRect=t,this.pixelRatio=i,this.stretchX=a,this.stretchY=o,this.content=s,this.version=n,this.needsFirstWebGLRender=r,this.textFitWidth=l,this.textFitHeight=c}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},c5=class{constructor(t,i){let n={},r={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let a=[];this.addImages(t,n,a),this.addImages(i,r,a);let{w:o,h:s}=c1(a),l=new s6({width:o||1,height:s||1});for(let i in t){let r=t[i];if(r.isWebGLImage)continue;let a=n[i].paddedRect;s6.copy(r.data,l,{x:0,y:0},{x:a.x+1,y:a.y+1},r.data)}for(let t in i){let n=i[t],a=r[t].paddedRect,o=a.x+1,s=a.y+1,c=n.data.width,d=n.data.height;s6.copy(n.data,l,{x:0,y:0},{x:o,y:s},n.data),s6.copy(n.data,l,{x:0,y:d-1},{x:o,y:s-1},{width:c,height:1}),s6.copy(n.data,l,{x:0,y:0},{x:o,y:s+d},{width:c,height:1}),s6.copy(n.data,l,{x:c-1,y:0},{x:o-1,y:s},{width:1,height:d}),s6.copy(n.data,l,{x:0,y:0},{x:o+c,y:s},{width:1,height:d})}this.image=l,this.iconPositions=n,this.patternPositions=r}addImages(t,i,n){for(let r in t){let a=t[r],o={x:0,y:0,w:a.data.width+2,h:a.data.height+2};n.push(o),i[r]=new c3(o,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(t,i){if(t.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==t.updateVersion){for(let n in this.patchedUpdateVersion=t.updateVersion,this.iconPositions)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),i);for(let n in this.patternPositions)this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),i)}}patchUpdatedImage(t,i,n){if(!t||!i||!t.needsFirstWebGLRender&&t.version===i.version)return;t.needsFirstWebGLRender=!1,t.version=i.version;let[r,a]=t.tl,o=i.userImage?.data;if(!c0(o))return void n.update(i.data,void 0,{x:r,y:a});let{width:s,height:l}=i.data;n.context.setCustomLayerDefaults(),o.renderWithWebGL({gl:n.context.gl,texture:n.texture,x:r,y:a,width:s,height:l}),n.context.setDirty()}};aw("ImagePosition",c3),aw("ImageAtlas",c5);var c4=((ht=c4||{})[ht.none=0]="none",ht[ht.horizontal=1]="horizontal",ht[ht.vertical=2]="vertical",ht[ht.horizontalOnly=3]="horizontalOnly",ht);let c6=/^\p{gc=M}$/u;function c8(t,i,n){let r=[...t],a=[],o=0;for(let t of r)a.push(o),o+=t.length;let s=function(t){let i=[],n=0;for(;n<t.length;){if(!c6.test(t[n])){i.push(n),n++;continue}let r=n;for(;r<t.length&&c6.test(t[r]);)r++;let a=t[r];if(void 0!==a&&aN(a.codePointAt(0))){i.push(r);for(let t=r-1;t>=n;t--)i.push(t);n=r+1}else{for(let t=n;t<r;t++)i.push(t);n=r}}return i}(r),l=new cZ(s.map(t=>r[t]).join(""),i,[]),c=s.map(t=>n[a[t]]??0),d=0;for(let t of l.graphemes())l.sectionIndex.push(c[d]??0),d+=[...t].length;return l}function c7(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f){let g=cZ.fromFeature(t,a);2===u&&g.verticalizePunctuation();let _,v=g.determineLineBreaks(d,o,i,r,m),{processBidirectionalText:y,processStyledBidirectionalText:b}=aV;if(y&&1===g.sections.length)for(let t of(_=[],v=v.map(t=>g.toCodeUnitIndex(t)),y(g.toString(),v)))_.push(c8(t,g.sections,[...t].map(()=>0)));else if(b){_=[],v=v.map(t=>g.toCodeUnitIndex(t));let t=function(t){let i=[],n=0;for(let r of t.graphemes())i.push(...Array(r.length).fill(t.sectionIndex[n])),n++;return i}(g);for(let i of b(g.text,t,v))_.push(c8(i[0],g.sections,i[1]))}else _=function(t,i){let n=[],r=0;for(let a of i)n.push(t.substring(r,a)),r=a;return r<t.length()&&n.push(t.substring(r,t.length())),n}(g,v);let x=[],w={positionedLines:x,text:g.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:u,iconsInText:!1,verticalizable:!1};return function(t,i,n,r,a,o,s,l,c,d,h,u){let p=0,m=0,f=0,g=0,_="right"===l?1:.5*("left"!==l),v=24/u,y=0;for(let s of a){s.trim();let a=s.getMaxScale(),l={positionedGlyphs:[],lineOffset:0};t.positionedLines[y]=l;let u=l.positionedGlyphs,b=0;if(!s.length()){m+=o,++y;continue}let x=function(t,i,n){let r=24*i.getMaxScale(),{maxImageWidth:a,maxImageHeight:o}=i.getMaxImageSize(t),s=Math.max(r,o*n);return{verticalLineContentWidth:Math.max(r,a*n),horizontalLineContentHeight:s}}(r,s,v),w=2!==c||h?null:function(t){let i=t.graphemes().slice(),n=i.map(t=>t.codePointAt(0)),r=n.map(aD),a=i=>!r[i]&&!aM(n[i])&&!("imageName"in t.getSection(i));for(let t=0;t<n.length;t++){if(!a(t))continue;let i=t;for(;i+1<n.length&&a(i+1);)i++;if(function(t){let i=t.some(dt)&&t.every(t=>dt(t)||/[\p{P}\p{S}]/u.test(String.fromCodePoint(t))),n=t.length<=3&&t.every(t=>di(t)||dt(t));return i||n}(n.slice(t,i+1)))for(let a=t;a<=i;a++){var o;r[a]=(dt(o=n[a])||di(o))&&!aO(o)}t=i}return function(t,i){let n=!1;for(let r=0;r<t.length;r++){if(i[r])continue;let a=cV[t[r]];a&&(0===r||i[r-1])&&(r===t.length-1||i[r+1])&&(t[r]=a,i[r]=!0,n=!0)}return n}(i,r)&&(t.text=i.join(""),t._graphemes=null),r}(s),C=s.graphemes();for(let o=0;o<C.length;o++){let l=s.getSection(o),f=C[o],g=f.codePointAt(0),_=w?w[o]:!(1===c||!h&&!aD(g)||h&&(aM(g)||aO(g)));for(let c of"fontStack"in l&&cN(f)&&!i[l.fontStack]?.[f]?[...f]:[f]){let h={glyph:c.codePointAt(0),grapheme:c,imageName:null,x:p,y:m+-17,vertical:_,scale:1,fontStack:"",sectionIndex:s.getSectionIndex(o),metrics:null,rect:null},f;if("fontStack"in l){if(!(f=function(t,i,n,r,a,o){let s,l=function(t,i,n,r){if(t?.rect)return t;let a=i[n.fontStack]?.[r];return a?{rect:null,metrics:a.metrics}:null}(o[t.fontStack]?.[i],a,t,i);if(null===l)return null;if(n)s=r.verticalLineContentWidth-24*t.scale;else{let i=de(t.verticalAlign);s=(r.horizontalLineContentHeight-24*t.scale)*i}return{rect:l.rect,metrics:l.metrics,baselineOffset:s}}(l,c,_,x,i,n)))continue;h.fontStack=l.fontStack}else{if(t.iconsInText=!0,l.scale*=v,!(f=function(t,i,n,r,a){let o=a[t.imageName];if(!o)return null;let s=o.paddedRect,l=o.displaySize,c={width:l[0],height:l[1],left:1,top:-3,advance:i?l[1]:l[0]},d;if(i)d=r.verticalLineContentWidth-l[1]*t.scale;else{let i=de(t.verticalAlign);d=(r.horizontalLineContentHeight-l[1]*t.scale)*i}return{rect:s,metrics:c,baselineOffset:d,imageOffset:(i?l[0]:l[1])*t.scale-24*n}}(l,_,a,x,r)))continue;b=Math.max(b,f.imageOffset),h.imageName=l.imageName}let{rect:g,metrics:y,baselineOffset:w}=f;(h.y+=w,h.scale=l.scale,h.metrics=y,h.rect=g,u.push(h),_)?(t.verticalizable=!0,p+=("imageName"in l?y.advance:24)*l.scale+d):p+=y.advance*l.scale+d}}0!==u.length&&(f=Math.max(p-d,f),function(t,i,n){if(0===n)return;let r=t[i],a=r.metrics.advance*r.scale,o=(t[i].x+a)*n;for(let n=0;n<=i;n++)t[n].x-=o}(u,u.length-1,_)),p=0,l.lineOffset=Math.max(b,(a-1)*24);let E=o*a+b;m+=E,g=Math.max(E,g),++y}let{horizontalAlign:b,verticalAlign:x}=c9(s);(function(t,i,n,r,a,o,s,l,c){let d=(i-n)*a,h=0;for(let i of(h=o===s?-r*c*s+.5*s:-l*r- -17,t))for(let t of i.positionedGlyphs)t.x+=d,t.y+=h})(t.positionedLines,_,b,x,f,g,o,m,a.length),t.top+=-x*m,t.bottom=t.top+m,t.left+=-b*f,t.right=t.left+f}(w,i,n,r,_,s,l,c,u,d,p,f),!function(t){for(let i of t)if(0!==i.positionedGlyphs.length)return!1;return!0}(x)&&w}function c9(t){let i=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":i=1;break;case"left":case"top-left":case"bottom-left":i=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:i,verticalAlign:n}}function de(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function dt(t){return/\p{Nd}/u.test(String.fromCodePoint(t))}function di(t){return/\p{Lu}/u.test(String.fromCodePoint(t))}function dn(t){let i=t.left,n=t.top,r=t.right-i,a=t.bottom-n,o=t.image.content[2]-t.image.content[0],s=t.image.content[3]-t.image.content[1],l=t.image.textFitWidth??"stretchOrShrink",c=t.image.textFitHeight??"stretchOrShrink",d=o/s;if("proportional"===c){if("stretchOnly"===l&&r/a<d||"proportional"===l){let t=Math.ceil(a*d);i*=t/r,r=t}}else if("proportional"===l&&"stretchOnly"===c&&0!==d&&r/a>d){let t=Math.ceil(r/d);n*=t/a,a=t}return{x1:i,y1:n,x2:i+r,y2:n+a}}function dr(t,i,n,r,a,o){let s=t.image,l;if(s.content){let t=s.content,i=s.pixelRatio||1;l=[t[0]/i,t[1]/i,s.displaySize[0]-t[2]/i,s.displaySize[1]-t[3]/i]}let c=i.left*o,d=i.right*o,h,u,p,m;"width"===n||"both"===n?(m=a[0]+c-r[3],u=a[0]+d+r[1]):u=(m=a[0]+(c+d-s.displaySize[0])/2)+s.displaySize[0];let f=i.top*o,g=i.bottom*o;return"height"===n||"both"===n?(h=a[1]+f-r[0],p=a[1]+g+r[2]):p=(h=a[1]+(f+g-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:h,right:u,bottom:p,left:m,collisionPadding:l}}function da(t,i){let{expression:n}=i;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new a$(t+1))};if("source"===n.kind)return{kind:"source"};if("composite"===n.kind){let{minZoom:i,maxZoom:r}=function(t,i){let n=0;for(;n<t.length&&t[n]<=i;)n++;let r=n=Math.max(0,n-1);for(;r<t.length&&t[r]<i+1;)r++;return r=Math.min(t.length-1,r),{minZoom:t[n],maxZoom:t[r]}}(n.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:r,interpolationType:n.interpolationType}}{var r;let i=(r=n).zoomStops.map(t=>r.evaluate(new a$(-1/0===t?r.zoomStops[1]-1:t))),a=n.evaluate(new a$(t+1));return{kind:"camera",zoomStops:n.zoomStops,sizes:i,layoutSize:a,interpolationType:n.interpolationType}}}function ds(t,{uSize:i,uSizeT:n},{lowerSize:r,upperSize:a}){return"source"===t.kind?r/128:"composite"===t.kind?i1.number(r/128,a/128,n):i}function dl(t,i){let n=0,r=0;return"constant"===t.kind?r=t.layoutSize:"camera"===t.kind?r=function({zoomStops:t,sizes:i,layoutSize:n,interpolationType:r},a){let o=t.length-1;for(;o>0&&t[o]>a;)o--;let s=Math.min(o+1,t.length-1),l=r?e5(i0.interpolationFactor(r,a,t[o],t[s]),0,1):0;return Math.min(i1.number(i[o],i[s],l),n)}(t,i):"composite"===t.kind&&(n=function({interpolationType:t,minZoom:i,maxZoom:n},r){return t?e5(i0.interpolationFactor(t,r,i,n),0,1):0}(t,i)),{uSizeT:n,uSize:r}}var dc=class t extends R{constructor(t,i,n,r){super(t,i),this.angle=n,void 0!==r&&(this.segment=r)}clone(){return new t(this.x,this.y,this.angle,this.segment)}};function dd(t,i,n,r,a){if(void 0===i.segment||0===n)return!0;let o=i,s=i.segment+1,l=0;for(;l>-n/2;){if(--s<0)return!1;l-=t[s].dist(o),o=t[s]}l+=t[s].dist(t[s+1]),s++;let c=[],d=0;for(;l<n/2;){let i=t[s-1],n=t[s],o=t[s+1];if(!o)return!1;let h=i.angleTo(n)-n.angleTo(o);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),c.push({distance:l,angleDelta:h}),d+=h;l-c[0].distance>r;)d-=c.shift().angleDelta;if(d>a)return!1;s++,l+=n.dist(o)}return!0}function dh(t){let i=0;for(let n=0;n<t.length-1;n++)i+=t[n].dist(t[n+1]);return i}function du(t,i){return Math.max(t?t.right-t.left:0,i?i.right-i.left:0)}function dp(t,i,n,r,a){let o=[];for(let s of t){let t;for(let l=0;l<s.length-1;l++){let c=s[l],d=s[l+1];c.x<i&&d.x<i||(c.x<i?c=new R(i,c.y+(d.y-c.y)*((i-c.x)/(d.x-c.x)))._round():d.x<i&&(d=new R(i,c.y+(d.y-c.y)*((i-c.x)/(d.x-c.x)))._round()),!(c.y<n&&d.y<n)&&(c.y<n?c=new R(c.x+(d.x-c.x)*((n-c.y)/(d.y-c.y)),n)._round():d.y<n&&(d=new R(c.x+(d.x-c.x)*((n-c.y)/(d.y-c.y)),n)._round()),!(c.x>=r&&d.x>=r)&&(c.x>=r?c=new R(r,c.y+(d.y-c.y)*((r-c.x)/(d.x-c.x)))._round():d.x>=r&&(d=new R(r,c.y+(d.y-c.y)*((r-c.x)/(d.x-c.x)))._round()),c.y>=a&&d.y>=a||(c.y>=a?c=new R(c.x+(d.x-c.x)*((a-c.y)/(d.y-c.y)),a)._round():d.y>=a&&(d=new R(c.x+(d.x-c.x)*((a-c.y)/(d.y-c.y)),a)._round()),t&&c.equals(t[t.length-1])||(t=[c],o.push(t)),t.push(d)))))}}return o}function dm(t,i,n,r){let a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,d={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=o.stretchX||[[0,l]],u=o.stretchY||[[0,c]],p=(t,i)=>t+i[1]-i[0],m=h.reduce(p,0),f=u.reduce(p,0),g=l-m,_=c-f,v=0,y=m,b=0,x=f,w=0,C=g,E=0,T=_;if(o.content&&r){let i=o.content,n=i[2]-i[0],r=i[3]-i[1];(o.textFitWidth||o.textFitHeight)&&(d=dn(t)),v=df(h,0,i[0]),b=df(u,0,i[1]),y=df(h,i[0],i[2]),x=df(u,i[1],i[3]),w=i[0]-v,E=i[1]-b,C=n-y,T=r-x}let k=d.x1,A=d.y1,I=d.x2-k,S=d.y2-A,D=(t,r,a,l)=>{var c,d,h,u,p,g,_,D,P,M,z,L,F,O,B,N;let V=(c=t.stretch-v,c/y*I+k),$=(d=t.fixed-w,h=C,u=t.stretch,d-h*u/m),j=(p=r.stretch-b,p/x*S+A),U=(g=r.fixed-E,_=T,D=r.stretch,g-_*D/f),q=(P=a.stretch-v,P/y*I+k),G=(M=a.fixed-w,z=C,L=a.stretch,M-z*L/m),H=(F=l.stretch-b,F/x*S+A),Z=(O=l.fixed-E,B=T,N=l.stretch,O-B*N/f),X=new R(V,j),W=new R(q,j),Y=new R(q,H),K=new R(V,H),J=new R($/s,U/s),Q=new R(G/s,Z/s),ee=i*Math.PI/180;if(ee){let t=Math.sin(ee),i=Math.cos(ee),n=[i,-t,t,i];X._matMult(n),W._matMult(n),K._matMult(n),Y._matMult(n)}let et=t.stretch+t.fixed,ei=a.stretch+a.fixed,en=r.stretch+r.fixed,er=l.stretch+l.fixed;return{tl:X,tr:W,bl:K,br:Y,tex:{x:o.paddedRect.x+1+et,y:o.paddedRect.y+1+en,w:ei-et,h:er-en},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:J,pixelOffsetBR:Q,minFontScaleX:C/s/I,minFontScaleY:T/s/S,isSDF:n}};if(r&&(o.stretchX||o.stretchY)){let t=dg(h,g,m),i=dg(u,_,f);for(let n=0;n<t.length-1;n++){let r=t[n],o=t[n+1];for(let t=0;t<i.length-1;t++){let n=i[t],s=i[t+1];a.push(D(r,n,o,s))}}}else a.push(D({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function df(t,i,n){let r=0;for(let a of t)r+=Math.max(i,Math.min(n,a[1]))-Math.max(i,Math.min(n,a[0]));return r}function dg(t,i,n){let r=[{fixed:-1,stretch:0}];for(let[i,n]of t){let t=r[r.length-1];r.push({fixed:i-t.stretch,stretch:t.stretch}),r.push({fixed:i-t.stretch,stretch:t.stretch+(n-i)})}return r.push({fixed:i+1,stretch:n}),r}aw("Anchor",dc);var d_=class{constructor(t,i,n,r,a,o,s,l,c,d){if(this.boxStartIndex=t.length,c){let t=o.top,i=o.bottom,n=o.collisionPadding;n&&(t-=n[1],i+=n[3]);let r=i-t;r>0&&(r=Math.max(10,r),this.circleDiameter=r)}else{let c=o.image?.content&&(o.image.textFitWidth||o.image.textFitHeight)?dn(o):{x1:o.left,y1:o.top,x2:o.right,y2:o.bottom};c.y1=c.y1*s-l[0],c.y2=c.y2*s+l[2],c.x1=c.x1*s-l[3],c.x2=c.x2*s+l[1];let h=o.collisionPadding;if(h&&(c.x1-=h[0]*s,c.y1-=h[1]*s,c.x2+=h[2]*s,c.y2+=h[3]*s),d){let t=new R(c.x1,c.y1),i=new R(c.x2,c.y1),n=new R(c.x1,c.y2),r=new R(c.x2,c.y2),a=d*Math.PI/180;t._rotate(a),i._rotate(a),n._rotate(a),r._rotate(a),c.x1=Math.min(t.x,i.x,n.x,r.x),c.x2=Math.max(t.x,i.x,n.x,r.x),c.y1=Math.min(t.y,i.y,n.y,r.y),c.y2=Math.max(t.y,i.y,n.y,r.y)}t.emplaceBack(i.x,i.y,c.x1,c.y1,c.x2,c.y2,n,r,a)}this.boxEndIndex=t.length}},dv=class{constructor(t=[],i=(t,i)=>t<i?-1:+(t>i)){if(this.data=t,this.length=this.data.length,this.compare=i,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;let t=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:i,compare:n}=this,r=i[t];for(;t>0;){let a=t-1>>1,o=i[a];if(n(r,o)>=0)break;i[t]=o,t=a}i[t]=r}_down(t){let{data:i,compare:n}=this,r=this.length>>1,a=i[t];for(;t<r;){let r=(t<<1)+1,o=r+1;if(o<this.length&&0>n(i[o],i[r])&&(r=o),n(i[r],a)>=0)break;i[t]=i[r],t=r}i[t]=a}};function dy(t,i){return i.max-t.max}var db=class{constructor(t,i,n,r){this.p=new R(t,i),this.h=n,this.d=function(t,i){let n=!1,r=1/0;for(let a of i)for(let i=0,o=a.length,s=o-1;i<o;s=i++){let o=a[i],l=a[s];o.y>t.y!=l.y>t.y&&t.x<(l.x-o.x)*(t.y-o.y)/(l.y-o.y)+o.x&&(n=!n),r=Math.min(r,sV(t,o,l))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}};let dx=((hi={})[hi.center=1]="center",hi[hi.left=2]="left",hi[hi.right=3]="right",hi[hi.top=4]="top",hi[hi.bottom=5]="bottom",hi[hi["top-left"]=6]="top-left",hi[hi["top-right"]=7]="top-right",hi[hi["bottom-left"]=8]="bottom-left",hi[hi["bottom-right"]=9]="bottom-right",hi);function dw(t,i){return 1/0===i[1]?function(t,i){let n=0,r=0;i<0&&(i=0);let a=i/Math.SQRT2;switch(t){case"top-right":case"top-left":r=a-7;break;case"bottom-right":case"bottom-left":r=-a+7;break;case"bottom":r=-i+7;break;case"top":r=i-7}switch(t){case"top-right":case"bottom-right":n=-a;break;case"top-left":case"bottom-left":n=a;break;case"left":n=i;break;case"right":n=-i}return[n,r]}(t,i[0]):function(t,i,n){let r=0,a=0;switch(i=Math.abs(i),n=Math.abs(n),t){case"top-right":case"top-left":case"top":a=n-7;break;case"bottom-right":case"bottom-left":case"bottom":a=-n+7}switch(t){case"top-right":case"bottom-right":case"right":r=-i;break;case"top-left":case"bottom-left":case"left":r=i}return[r,a]}(t,i[0],i[1])}function dC(t,i,n){let r=t.layout,a=r.get("text-variable-anchor-offset")?.evaluate(i,{},n);if(a){let t=a.values,i=[];for(let n=0;n<t.length;n+=2){let r=i[n]=t[n],a=t[n+1].map(t=>24*t);r.startsWith("top")?a[1]-=7:r.startsWith("bottom")&&(a[1]+=7),i[n+1]=a}return new i$(i)}let o=r.get("text-variable-anchor");if(o){let a;a=void 0===t._unevaluatedLayout.getValue("text-radial-offset")?r.get("text-offset").evaluate(i,{},n).map(t=>24*t):[24*r.get("text-radial-offset").evaluate(i,{},n),1/0];let s=[];for(let t of o)s.push(t,dw(t,a));return new i$(s)}return null}function dE(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function dT(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g){let _=function(t,i,n,r,a,o,s){let l=n.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[];for(let n of t.positionedLines)for(let a of n.positionedGlyphs){if(!a.rect)continue;let d=a.rect||{},h=4,u=!0,p=1,m=0,f=(r||s)&&a.vertical,g=a.metrics.advance*a.scale/2;if(s&&t.verticalizable){let t=(a.scale-1)*24,i=(24-a.metrics.width*a.scale)/2;m=n.lineOffset/2-(a.imageName?-i:t)}if(a.imageName){let t=o[a.imageName];u=t.sdf,h=1/(p=t.pixelRatio)}let _=r?[a.x+g,a.y]:[0,0],v=r?[0,0]:[a.x+g+i[0],a.y+i[1]-m],y=[0,0];f&&(y=v,v=[0,0]);let b=a.metrics.isDoubleResolution?2:1,x=(a.metrics.left-h)*a.scale-g+v[0],w=(-a.metrics.top-h)*a.scale+v[1],C=x+d.w/b*a.scale/p,E=w+d.h/b*a.scale/p,T=new R(x,w),k=new R(C,w),A=new R(x,E),I=new R(C,E);if(f){let t=new R(-g,g- -17),i=-Math.PI/2,n=12-g,r=a.imageName?n:0,o=new R(22-n,-r),s=new R(...y);T._rotateAround(i,t)._add(o)._add(s),k._rotateAround(i,t)._add(o)._add(s),A._rotateAround(i,t)._add(o)._add(s),I._rotateAround(i,t)._add(o)._add(s)}if(l){let t=Math.sin(l),i=Math.cos(l),n=[i,-t,t,i];T._matMult(n),k._matMult(n),A._matMult(n),I._matMult(n)}let S=new R(0,0),D=new R(0,0);c.push({tl:T,tr:k,bl:A,br:I,tex:d,writingMode:t.writingMode,glyphOffset:_,sectionIndex:a.sectionIndex,isSDF:u,pixelOffsetTL:S,pixelOffsetBR:D,minFontScaleX:0,minFontScaleY:0})}return c}(n,l,a,o,s,r,t.allowVerticalPlacement),v=t.textSizeData,y=null;for(let n of("source"===v.kind?(y=[128*a.layout.get("text-size").evaluate(s,{})])[0]>32640&&tl(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===v.kind&&((y=[128*f.compositeTextSizes[0].evaluate(s,{},g),128*f.compositeTextSizes[1].evaluate(s,{},g)])[0]>32640||y[1]>32640)&&tl(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`),t.addSymbols(t.text,_,y,l,o,s,h,i,d.lineStartIndex,d.lineLength,m,g,c),u))p[n]=t.text.placedSymbolArray.length-1;return 4*_.length}function dk(t){for(let i in t)return t[i];return null}function dA(t,i,n){let r="never",a=t.get(i);return a?r=a:t.get(n)&&(r="always"),r}let dI=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function dS(t,i,n,r,a,o,s,l,c,d,h,u,p,m){let f=l?Math.min(32640,Math.round(l[0])):0,g=l?Math.min(32640,Math.round(l[1])):0;t.emplaceBack(i,n,Math.round(32*r),Math.round(32*a),o,s,(f<<1)+ +!!c,g,16*d,16*h,256*u,256*p,m)}function dD(t,i,n){t.emplaceBack(i.x,i.y,n),t.emplaceBack(i.x,i.y,n),t.emplaceBack(i.x,i.y,n),t.emplaceBack(i.x,i.y,n)}var dP=class{constructor(t){this.layoutVertexArray=new oJ,this.indexArray=new o4,this.programConfigurations=t,this.segments=new se,this.dynamicLayoutVertexArray=new oQ,this.opacityVertexArray=new o0,this.hasVisibleVertices=!1,this.placedSymbolArray=new oz}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(t,i,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,cM.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,i),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,cz.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,dI,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(t))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};aw("SymbolBuffers",dP);var dM=class{constructor(t,i,n){this.layoutVertexArray=new t,this.layoutAttributes=i,this.indexArray=new n,this.segments=new se,this.collisionVertexArray=new o3}upload(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,cL.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};aw("CollisionBuffers",dM);var dz=class{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let i=this.layers[0]._unevaluatedLayout._values;this.textSizeData=da(this.zoom,i["text-size"]),this.iconSizeData=da(this.zoom,i["icon-size"]);let n=this.layers[0].layout,r=n.get("symbol-sort-key"),a=n.get("symbol-z-order");this.canOverlap="never"!==dA(n,"text-overlap","text-allow-overlap")||"never"!==dA(n,"icon-overlap","icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==a&&!r.isConstant();let o="viewport-y"===a||"auto"===a&&!this.sortFeaturesByKey;this.sortFeaturesByY=o&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(t=>c4[t])),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.sourceID=t.sourceID}createArrays(){this.text=new dP(new sD(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new dP(new sD(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new oF,this.lineVertexArray=new oO,this.symbolInstances=new oR,this.textAnchorOffsets=new oN}calculateGlyphDependencies(t,i,n,r,a){let o=(r||this.allowVerticalPlacement)&&a,s=cZ.fromFeature(t,n),l=s.graphemes();for(let t=0;t<l.length;t++){let n=s.getSection(t);if("imageName"in n)continue;let r=i[n.fontStack]||={},a=l[t];for(let t of(cN(a)&&(r[a]=!0),a)){if(r[t]=!0,!o)continue;let i=cV[t];i&&(r[i]=!0)}}}populate(t,i,n){let r=this.layers[0],a=r.layout,o=a.get("text-font"),s=a.get("text-field"),l=a.get("icon-image"),c=("constant"!==s.value.kind||s.value.value instanceof iR&&!s.value.value.isEmpty()||s.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),d="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,h=a.get("symbol-sort-key");if(this.features=[],!c&&!d)return;let u=i.iconDependencies,p=i.glyphDependencies,m=i.availableImages,f=new a$(this.zoom);for(let{feature:i,id:s,index:l,sourceLayerIndex:g}of t){let t,_,v=r._featureFilter.needGeometry,y=sz(i,v);if(!r._featureFilter.filter(f,y,n))continue;if(v||(y.geometry=sM(i)),c){let i=r.getValueAndResolveTokens("text-field",y,n,m),a=iR.factory(i);this.hasRTLText||=function(t){for(let i of t.sections)if(function(t){for(let i of t)if(aN(i.codePointAt(0)))return!0;return!1}(i.text))return!0;return!1}(a),(!this.hasRTLText||"unavailable"===aV.getRTLTextPluginStatus()||this.hasRTLText&&aV.isParsed())&&(t=function(t,i,n){for(let r of t.sections)r.text=function(t,i,n){let r=i.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),aV.applyArabicShaping&&(t=aV.applyArabicShaping(t)),t}(r.text,i,n);return t}(a,r,y))}if(d){let t=r.getValueAndResolveTokens("icon-image",y,n,m);_=t instanceof ij?t:ij.fromString(t)}if(!t&&!_)continue;let b=this.sortFeaturesByKey?h.evaluate(y,{},n):void 0,x={id:s,text:t,icon:_,index:l,sourceLayerIndex:g,geometry:y.geometry,properties:i.properties,type:l5.types[i.type],sortKey:b};if(this.features.push(x),_&&(u[_.name]=!0),t){let i=o.evaluate(y,{},n).join(","),r="viewport"!==a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement");this.allowVerticalPlacement=this.writingModes?.includes(2);let s=az(t.toString());for(let n of(this.calculateGlyphDependencies(t,p,i,r,s),t.sections))n.image&&(u[n.image.name]=!0)}}"line"===a.get("symbol-placement")&&(this.features=function(t){let i={},n={},r=[],a=0;function o(i){r.push(t[i]),a++}function s(t,i,a){let o=n[t];return delete n[t],n[i]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(a[0]),o}function l(t,n,a){let o=i[n];return delete i[n],i[t]=o,r[o].geometry[0].shift(),r[o].geometry[0]=a[0].concat(r[o].geometry[0]),o}function c(t,i,n){let r=n?i[0][i[0].length-1]:i[0][0];return`${t}:${r.x}:${r.y}`}for(let d=0;d<t.length;d++){let h=t[d],u=h.geometry,p=h.text?h.text.toString():null;if(!p){o(d);continue}let m=c(p,u),f=c(p,u,!0);if(m in n&&f in i&&n[m]!==i[f]){let t=l(m,f,u),a=s(m,f,r[t].geometry);delete i[m],delete n[f],n[c(p,r[a].geometry,!0)]=a,r[t].geometry=null}else m in n?s(m,f,u):f in i?l(m,f,u):(o(d),i[m]=a-1,n[f]=a-1)}return r.filter(t=>t.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((t,i)=>t.sortKey-i.sortKey)}update(t,i,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,i,this.layers,{imagePositions:n}),this.icon.programConfigurations.updatePaintArrays(t,i,this.layers,{imagePositions:n}))}addFeatures({options:t,canonical:i,glyphMap:n,glyphPositions:r,iconMap:a,iconPositions:o,showCollisionBoxes:s}){!function(t){t.bucket.createArrays();let i=512*t.bucket.overscaling;t.bucket.tilePixelRatio=8192/i,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let n=t.bucket.layers[0],r=n.layout,a=n._unevaluatedLayout._values,o={layoutIconSize:a["icon-size"].possiblyEvaluate(new a$(t.bucket.zoom+1),t.canonical),layoutTextSize:a["text-size"].possiblyEvaluate(new a$(t.bucket.zoom+1),t.canonical),textMaxSize:a["text-size"].possiblyEvaluate(new a$(18))};if("composite"===t.bucket.textSizeData.kind){let{minZoom:i,maxZoom:n}=t.bucket.textSizeData;o.compositeTextSizes=[a["text-size"].possiblyEvaluate(new a$(i),t.canonical),a["text-size"].possiblyEvaluate(new a$(n),t.canonical)]}if("composite"===t.bucket.iconSizeData.kind){let{minZoom:i,maxZoom:n}=t.bucket.iconSizeData;o.compositeIconSizes=[a["icon-size"].possiblyEvaluate(new a$(i),t.canonical),a["icon-size"].possiblyEvaluate(new a$(n),t.canonical)]}let s=24*r.get("text-line-height"),l="viewport"!==r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement"),c=r.get("text-keep-upright"),d=r.get("text-size");for(let i of t.bucket.features){let a=r.get("text-font").evaluate(i,{},t.canonical).join(","),h=d.evaluate(i,{},t.canonical),u=o.layoutTextSize.evaluate(i,{},t.canonical),p=o.layoutIconSize.evaluate(i,{},t.canonical),m={horizontal:{},vertical:void 0},f=i.text,g=[0,0];if(f){let o=f.toString(),d=24*r.get("text-letter-spacing").evaluate(i,{},t.canonical),p=!function(t){for(let n of t){var i;if(i=n.codePointAt(0),aR.test(String.fromCodePoint(i)))return!1}return!0}(o)?0:d,_=r.get("text-anchor").evaluate(i,{},t.canonical),v=dC(n,i,t.canonical);if(!v){let n=r.get("text-radial-offset").evaluate(i,{},t.canonical);g=n?dw(_,[24*n,1/0]):r.get("text-offset").evaluate(i,{},t.canonical).map(t=>24*t)}let y=l?"center":r.get("text-justify").evaluate(i,{},t.canonical),b="point"===r.get("symbol-placement")?24*r.get("text-max-width").evaluate(i,{},t.canonical):1/0,x=()=>{t.bucket.allowVerticalPlacement&&az(o)&&(m.vertical=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,_,"left",p,g,2,!0,u,h))};if(!l&&v){let i=new Set;if("auto"===y)for(let t=0;t<v.values.length;t+=2)i.add(dE(v.values[t]));else i.add(y);let n=!1;for(let r of i)if(!m.horizontal[r])if(n)m.horizontal[r]=m.horizontal[0];else{let i=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,"center",r,p,g,1,!1,u,h);i&&(m.horizontal[r]=i,n=1===i.positionedLines.length)}x()}else{"auto"===y&&(y=dE(_));let i=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,_,y,p,g,1,!1,u,h);i&&(m.horizontal[y]=i),x(),az(o)&&l&&c&&(m.vertical=c7(f,t.glyphMap,t.glyphPositions,t.imagePositions,a,b,s,_,y,p,g,2,!1,u,h))}}let _,v=!1;if(i.icon?.name){let n=t.imageMap[i.icon.name];n&&(_=function(t,i,n){let{horizontalAlign:r,verticalAlign:a}=c9(n),o=i[0],s=i[1],l=o-t.displaySize[0]*r,c=l+t.displaySize[0],d=s-t.displaySize[1]*a;return{image:t,top:d,bottom:d+t.displaySize[1],left:l,right:c}}(t.imagePositions[i.icon.name],r.get("icon-offset").evaluate(i,{},t.canonical),r.get("icon-anchor").evaluate(i,{},t.canonical)),v=!!n.sdf,void 0===t.bucket.sdfIcons?t.bucket.sdfIcons=v:t.bucket.sdfIcons!==v&&tl("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),n.pixelRatio===t.bucket.pixelRatio?0!==r.get("icon-rotate").constantOr(1)&&(t.bucket.iconsNeedLinear=!0):t.bucket.iconsNeedLinear=!0)}let y=dk(m.horizontal)||m.vertical;t.bucket.iconsInText||=!!y&&y.iconsInText,(y||_)&&function(t,i,n,r,a,o,s,l,c,d,h,u){let p=o.textMaxSize.evaluate(i,{});void 0===p&&(p=s);let m=t.layers[0].layout,f=m.get("icon-offset").evaluate(i,{},h),g=dk(n.horizontal),_=s/24,v=t.tilePixelRatio*_,y=t.tilePixelRatio*p/24,b=t.tilePixelRatio*l,x=t.tilePixelRatio*m.get("symbol-spacing"),w=m.get("text-padding")*t.tilePixelRatio,C=function(t,i,n,r=1){let a=t.get("icon-padding").evaluate(i,{},n)?.values;return[a[0]*r,a[1]*r,a[2]*r,a[3]*r]}(m,i,h,t.tilePixelRatio),E=m.get("text-max-angle")/180*Math.PI,T="viewport"!==m.get("text-rotation-alignment")&&"point"!==m.get("symbol-placement"),k="map"===m.get("icon-rotation-alignment").constantOr("viewport")&&"point"!==m.get("symbol-placement"),A=m.get("symbol-placement"),I=x/2,S=m.get("icon-text-fit"),D;r&&"none"!==S&&(t.allowVerticalPlacement&&n.vertical&&(D=dr(r,n.vertical,S,m.get("icon-text-fit-padding"),f,_)),g&&(r=dr(r,g,S,m.get("icon-text-fit-padding"),f,_)));let P=h?u.line.getGranularityForZoomLevel(h.z):1,M=(l,u)=>{u.x<0||u.x>=8192||u.y<0||u.y>=8192||function(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w,C,E,T){let k=t.addToLineVertexArray(i,n),A=l.layout.get("symbol-height-offset").evaluate(x,{},E);A>t.maxHeightOffset&&(t.maxHeightOffset=A);let I,S,D,P,M=0,z=0,L=0,R=0,F=-1,O=-1,B={},N=(0,so.default)("");if(t.allowVerticalPlacement&&r.vertical){let t=l.layout.get("text-rotate").evaluate(x,{},E)+90;D=new d_(c,i,d,h,u,r.vertical,p,m,f,t),s&&(P=new d_(c,i,d,h,u,s,_,v,f,t))}if(a){let n=l.layout.get("icon-rotate").evaluate(x,{}),r="none"!==l.layout.get("icon-text-fit"),o=dm(a,n,C,r),p=s?dm(s,n,C,r):void 0;S=new d_(c,i,d,h,u,a,_,v,!1,n),M=4*o.length;let m=t.iconSizeData,f=null;"source"===m.kind?(f=[128*l.layout.get("icon-size").evaluate(x,{})])[0]>32640&&tl(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===m.kind&&((f=[128*w.compositeIconSizes[0].evaluate(x,{},E),128*w.compositeIconSizes[1].evaluate(x,{},E)])[0]>32640||f[1]>32640)&&tl(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`),t.addSymbols(t.icon,o,f,b,y,x,0,i,k.lineStartIndex,k.lineLength,-1,E,A),F=t.icon.placedSymbolArray.length-1,p&&(z=4*p.length,t.addSymbols(t.icon,p,f,b,y,x,2,i,k.lineStartIndex,k.lineLength,-1,E,A),O=t.icon.placedSymbolArray.length-1)}let V=Object.keys(r.horizontal);for(let n of V){let a=r.horizontal[n];I||=(N=(0,so.default)(a.text),new d_(c,i,d,h,u,a,p,m,f,l.layout.get("text-rotate").evaluate(x,{},E)));let s=1===a.positionedLines.length;if(L+=dT(t,i,a,o,l,f,x,g,A,k,r.vertical?1:3,s?V:[n],B,F,w,E),s)break}r.vertical&&(R+=dT(t,i,r.vertical,o,l,f,x,g,A,k,2,["vertical"],B,O,w,E));let $=I?I.boxStartIndex:t.collisionBoxArray.length,j=I?I.boxEndIndex:t.collisionBoxArray.length,U=D?D.boxStartIndex:t.collisionBoxArray.length,q=D?D.boxEndIndex:t.collisionBoxArray.length,G=S?S.boxStartIndex:t.collisionBoxArray.length,H=S?S.boxEndIndex:t.collisionBoxArray.length,Z=P?P.boxStartIndex:t.collisionBoxArray.length,X=P?P.boxEndIndex:t.collisionBoxArray.length,W=-1,Y=(t,i)=>t?.circleDiameter?Math.max(t.circleDiameter,i):i;W=Y(I,-1),W=Y(D,W),W=Y(S,W);let K=+((W=Y(P,W))>-1);K&&(W*=T/24),t.glyphOffsetArray.length>=t.maxGlyphs&&tl("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey);let J=dC(l,x,E),[Q,ee]=function(t,i){let n=t.length,r=i?.values;if(r?.length>0)for(let i=0;i<r.length;i+=2){let n=dx[r[i]],a=r[i+1];t.emplaceBack(n,a[0],a[1])}return[n,t.length]}(t.textAnchorOffsets,J);t.symbolInstances.emplaceBack(i.x,i.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,F,O,N,$,j,U,q,G,H,Z,X,d,L,R,M,z,K,0,p,W,Q,ee,A)}(t,u,l,n,r,a,D,t.layers[0],t.collisionBoxArray,i.index,i.sourceLayerIndex,t.index,v,[w,w,w,w],T,c,b,C,k,f,i,o,d,h,s)};if("line"===A)for(let a of dp(i.geometry,0,0,8192,8192)){let i=lG(a,P);for(let a of function(t,i,n,r,a,o,s){let l=r?.6*24*o:0,c=du(r,a),d=c*o,h=0===t[0].x||8192===t[0].x||0===t[0].y||8192===t[0].y;return i-d<i/4&&(i=d+i/4),function t(i,n,r,a,o,s,l,c,d){let h=s/2,u=dh(i),p=0,m=n-r,f=[];for(let t=0;t<i.length-1;t++){let n=i[t],l=i[t+1],c=n.dist(l),g=l.angleTo(n);for(;m+r<p+c;){let _=((m+=r)-p)/c,v=i1.number(n.x,l.x,_),y=i1.number(n.y,l.y,_);if(v>=0&&v<d&&y>=0&&y<d&&m-h>=0&&m+h<=u){let n=new dc(v,y,g,t);n._round(),(!a||dd(i,n,s,a,o))&&f.push(n)}}p+=c}return c||f.length||l||(f=t(i,p/2,r,a,o,s,l,!0,d)),f}(t,h?i/2*s%i:(c/2+48)*o*s%i,i,l,n,d,h,!1,8192)}(i,x,E,n.vertical||g,r,y,t.overscaling))g&&function(t,i,n,r){let a=t.compareText;if(i in a){let t=a[i];for(let i=t.length-1;i>=0;i--)if(r.dist(t[i])<n)return!0}else a[i]=[];return a[i].push(r),!1}(t,g.text,I,a)||M(i,a)}else if("line-center"===A){for(let t of i.geometry)if(t.length>1){let i=lG(t,P),a=function(t,i,n,r,a){let o=n?.6*24*a:0,s=du(n,r)*a,l=0,c=dh(t)/2;for(let n=0;n<t.length-1;n++){let r=t[n],a=t[n+1],d=r.dist(a);if(l+d>c){let h=(c-l)/d,u=new dc(i1.number(r.x,a.x,h),i1.number(r.y,a.y,h),a.angleTo(r),n);return u._round(),!o||dd(t,u,s,o,i)?u:void 0}l+=d}}(i,E,n.vertical||g,r,y);a&&M(i,a)}}else if("Polygon"===i.type)for(let t of i4(i.geometry,0)){let i=function(t,i=1){let n=l0.fromPoints(t[0]),r=Math.min(n.width(),n.height()),a=r/2,o=new dv([],dy),{minX:s,minY:l,maxX:c,maxY:d}=n;if(0===r)return new R(s,l);for(let i=s;i<c;i+=r)for(let n=l;n<d;n+=r)o.push(new db(i+a,n+a,a,t));let h=function(t){let i=0,n=0,r=0,a=t[0];for(let t=0,o=a.length,s=o-1;t<o;s=t++){let o=a[t],l=a[s],c=o.x*l.y-l.x*o.y;n+=(o.x+l.x)*c,r+=(o.y+l.y)*c,i+=3*c}return new db(n/i,r/i,0,t)}(t),u=h;for(;o.length;){let n=o.pop();(n.d>u.d||!u.d)&&(u=n),n.max-u.d<=i||(a=n.h/2,o.push(new db(n.p.x-a,n.p.y-a,a,t)),o.push(new db(n.p.x+a,n.p.y-a,a,t)),o.push(new db(n.p.x-a,n.p.y+a,a,t)),o.push(new db(n.p.x+a,n.p.y+a,a,t)))}return h.d>0&&u.d-h.d<=i?h.p:u.p}(t,16);M(lG(t[0],P,!0),new dc(i.x,i.y,0))}else if("LineString"===i.type)for(let t of i.geometry){let i=lG(t,P);M(i,new dc(i[0].x,i[0].y,0))}else if("Point"===i.type)for(let t of i.geometry)for(let i of t)M([i],new dc(i.x,i.y,0))}(t.bucket,i,m,_,t.imageMap,o,u,p,g,v,t.canonical,t.subdivisionGranularity)}t.showCollisionBoxes&&t.bucket.generateCollisionDebugBuffers()}({bucket:this,glyphMap:n,glyphPositions:r,imageMap:a,imagePositions:o,showCollisionBoxes:s,canonical:i,subdivisionGranularity:t.subdivisionGranularity})}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,i){let n=this.lineVertexArray.length;if(void 0!==t.segment){let n=t.dist(i[t.segment+1]),r=t.dist(i[t.segment]),a={};for(let r=t.segment+1;r<i.length;r++)a[r]={x:i[r].x,y:i[r].y,tileUnitDistanceFromAnchor:n},r<i.length-1&&(n+=i[r+1].dist(i[r]));for(let n=t.segment||0;n>=0;n--)a[n]={x:i[n].x,y:i[n].y,tileUnitDistanceFromAnchor:r},n>0&&(r+=i[n-1].dist(i[n]));for(let t=0;t<i.length;t++){let i=a[t];this.lineVertexArray.emplaceBack(i.x,i.y,i.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(t,i,n,r,a,o,s,l,c,d,h,u,p){let m=t.indexArray,f=t.layoutVertexArray,g=t.segments.prepareSegment(4*i.length,f,m,this.canOverlap?o.sortKey:void 0),_=this.glyphOffsetArray.length,v=g.vertexLength,y=this.allowVerticalPlacement&&2===s?Math.PI/2:0,b=o.text&&o.text.sections;for(let r=0;r<i.length;r++){let{tl:a,tr:s,bl:c,br:d,tex:h,pixelOffsetTL:_,pixelOffsetBR:v,minFontScaleX:x,minFontScaleY:w,glyphOffset:C,isSDF:E,sectionIndex:T}=i[r],k=g.vertexLength,A=C[1];dS(f,l.x,l.y,a.x,A+a.y,h.x,h.y,n,E,_.x,_.y,x,w,p),dS(f,l.x,l.y,s.x,A+s.y,h.x+h.w,h.y,n,E,v.x,_.y,x,w,p),dS(f,l.x,l.y,c.x,A+c.y,h.x,h.y+h.h,n,E,_.x,v.y,x,w,p),dS(f,l.x,l.y,d.x,A+d.y,h.x+h.w,h.y+h.h,n,E,v.x,v.y,x,w,p),dD(t.dynamicLayoutVertexArray,l,y),m.emplaceBack(k,k+2,k+1),m.emplaceBack(k+1,k+2,k+3),g.vertexLength+=4,g.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),(r===i.length-1||T!==i[r+1].sectionIndex)&&t.programConfigurations.populatePaintArrays(f.length,o,o.index,{imagePositions:{},canonical:u,formattedSection:b?.[T]})}t.placedSymbolArray.emplaceBack(l.x,l.y,_,this.glyphOffsetArray.length-_,v,c,d,l.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],s,0,!1,0,h,p)}_addCollisionDebugVertex(t,i,n,r,a,o){return i.emplaceBack(0,0),t.emplaceBack(n.x,n.y,r,a,Math.round(o.x),Math.round(o.y))}addCollisionDebugVertices(t,i,n,r,a,o,s){let l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,d=a.layoutVertexArray,h=a.collisionVertexArray,u=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(d,h,o,u,p,new R(t,i)),this._addCollisionDebugVertex(d,h,o,u,p,new R(n,i)),this._addCollisionDebugVertex(d,h,o,u,p,new R(n,r)),this._addCollisionDebugVertex(d,h,o,u,p,new R(t,r)),l.vertexLength+=4;let m=a.indexArray;m.emplaceBack(c,c+1),m.emplaceBack(c+1,c+2),m.emplaceBack(c+2,c+3),m.emplaceBack(c+3,c),l.primitiveLength+=4}addDebugCollisionBoxes(t,i,n,r){for(let a=t;a<i;a++){let t=this.collisionBoxArray.get(a),i=t.x1,o=t.y1,s=t.x2,l=t.y2;this.addCollisionDebugVertices(i,o,s,l,r?this.textCollisionBox:this.iconCollisionBox,t.anchorPoint,n)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new dM(o2,cR.members,o6),this.iconCollisionBox=new dM(o2,cR.members,o6);for(let t=0;t<this.symbolInstances.length;t++){let i=this.symbolInstances.get(t);this.addDebugCollisionBoxes(i.textBoxStartIndex,i.textBoxEndIndex,i,!0),this.addDebugCollisionBoxes(i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i,!0),this.addDebugCollisionBoxes(i.iconBoxStartIndex,i.iconBoxEndIndex,i,!1),this.addDebugCollisionBoxes(i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex,i,!1)}}_deserializeCollisionBoxesForSymbol(t,i,n,r,a,o,s,l,c){let d={};for(let r=i;r<n;r++){let i=t.get(r);d.textBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,anchorPointX:i.anchorPointX,anchorPointY:i.anchorPointY},d.textFeatureIndex=i.featureIndex;break}for(let i=r;i<a;i++){let n=t.get(i);d.verticalTextBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},d.verticalTextFeatureIndex=n.featureIndex;break}for(let i=o;i<s;i++){let n=t.get(i);d.iconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},d.iconFeatureIndex=n.featureIndex;break}for(let i=l;i<c;i++){let n=t.get(i);d.verticalIconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},d.verticalIconFeatureIndex=n.featureIndex;break}return d}deserializeCollisionBoxes(t){this.collisionArrays=[];for(let i=0;i<this.symbolInstances.length;i++){let n=this.symbolInstances.get(i);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,i){let n=t.placedSymbolArray.get(i),r=n.vertexStartIndex+4*n.numGlyphs;for(let i=n.vertexStartIndex;i<r;i+=4)t.indexArray.emplaceBack(i,i+2,i+1),t.indexArray.emplaceBack(i+1,i+2,i+3)}getSortedSymbolIndexes(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;let i=Math.sin(t),n=Math.cos(t),r=[],a=[],o=[];for(let t=0;t<this.symbolInstances.length;++t){o.push(t);let s=this.symbolInstances.get(t);r.push(0|Math.round(i*s.anchorX+n*s.anchorY)),a.push(s.featureIndex)}return o.sort((t,i)=>r[t]-r[i]||a[i]-a[t]),o}addToSortKeyRanges(t,i){let n=this.sortKeyRanges[this.sortKeyRanges.length-1];n?.sortKey===i?n.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:i,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){for(let i of(this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[],this.symbolInstanceIndexes)){let t=this.symbolInstances.get(i);this.featureSortOrder.push(t.featureIndex);let n=[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex];for(let t=0;t<n.length;t++){let i=n[t];i>=0&&n.indexOf(i)===t&&this.addIndicesForPlacedSymbol(this.text,i)}t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};aw("SymbolBucket",dz,{omit:["layers","collisionBoxArray","features","compareText"]});var dL={get paint(){return w||=new a4({"icon-opacity":new a2(tY.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new a2(tY.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new a2(tY.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new a2(tY.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new a2(tY.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new a0(tY.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new a0(tY.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new a2(tY.paint_symbol["text-opacity"],"text-opacity"),"text-color":new a2(tY.paint_symbol["text-color"],"text-color",{runtimeType:t1,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new a2(tY.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new a2(tY.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new a2(tY.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new a0(tY.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new a0(tY.paint_symbol["text-translate-anchor"],"text-translate-anchor")})},get layout(){return x||=new a4({"symbol-placement":new a0(tY.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new a0(tY.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new a0(tY.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new a2(tY.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new a0(tY.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new a0(tY.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new a0(tY.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new a0(tY.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new a0(tY.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new a2(tY.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new a2(tY.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new a0(tY.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new a0(tY.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new a2(tY.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new a2(tY.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new a2(tY.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new a0(tY.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new a2(tY.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new a2(tY.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new a0(tY.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new a0(tY.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new a0(tY.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new a2(tY.layout_symbol["text-field"],"text-field"),"text-font":new a2(tY.layout_symbol["text-font"],"text-font"),"text-size":new a2(tY.layout_symbol["text-size"],"text-size"),"text-max-width":new a2(tY.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new a0(tY.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new a2(tY.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new a2(tY.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new a2(tY.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new a0(tY.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new a2(tY.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new a2(tY.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new a0(tY.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new a0(tY.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new a2(tY.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new a0(tY.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new a0(tY.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new a2(tY.layout_symbol["text-transform"],"text-transform"),"text-offset":new a2(tY.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new a0(tY.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new a0(tY.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new a0(tY.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new a0(tY.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new a2(tY.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new a0(tY.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})}},dR=class{constructor(t){if(void 0===t.property.overrides)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:tJ,this.defaultValue=t}evaluate(t){if(t.formattedSection){let i=this.defaultValue.property.overrides;if(i?.hasOverride(t.formattedSection))return i.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}};aw("FormatSectionOverride",dR,{omit:["defaultValue"]});var dF=class t extends a7{constructor(t,i){super(t,dL,i)}recalculate(t,i){super.recalculate(t,i);let n=this.layout.get("icon-rotation-alignment");if(("constant"!==n.value.kind||"auto"===n.value.value)&&(this.layout._values["icon-rotation-alignment"]=new aY(n.property,{kind:"constant",value:"point"===this.layout.get("symbol-placement")?"viewport":"map"},n.parameters)),"auto"===this.layout.get("text-rotation-alignment")&&("point"===this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),"point"===this.layout.get("symbol-placement")){let t=this.layout.get("text-writing-mode");if(t){let i=[];for(let n of t)i.includes(n)||i.push(n);this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,i,n,r){var a;let o=this.layout.get(t).evaluate(i,{},n,r),s=this._unevaluatedLayout._values[t];return s.isDataDriven()||rE(s.value)||!o?o:(a=i.properties,o.replace(/{([^{}]+)}/g,(t,i)=>a&&i in a?String(a[i]):""))}createBucket(t){return new dz(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let i of dL.paint.overridableProperties){if(!t.hasPaintOverride(this.layout,i))continue;let n=this.paint.get(i),r=new rx(new dR(n),`layers[${this.id}].paint.${n.property.name}`,n.property.specification),a=null;a="constant"===n.value.kind||"source"===n.value.kind?new rk("source",r):new rA("composite",r,n.value.zoomStops),this.paint._values[i]=new aY(n.property,a,n.parameters)}}_handleOverridablePaintPropertyUpdate(i,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&t.hasPaintOverride(this.layout,i)}static hasPaintOverride(t,i){let n=t.get("text-field"),r=dL.paint.properties[i],a=!1,o=t=>{for(let i of t)if(r.overrides?.hasOverride(i)){a=!0;return}};if("constant"===n.value.kind&&n.value.value instanceof iR)o(n.value.value.sections);else if("source"===n.value.kind||"composite"===n.value.kind){let t=i=>{a||(i instanceof iW&&iZ(i.value)===t8?o(i.value.sections):i instanceof i3?o(i.sections):i.eachChild(t))},i=n.value;i._styleExpression&&t(i._styleExpression.expression)}return a}},dO={get paint(){return C||=new a4({"background-color":new a0(tY.paint_background["background-color"],"background-color"),"background-pattern":new a3(tY.paint_background["background-pattern"],"background-pattern"),"background-opacity":new a0(tY.paint_background["background-opacity"],"background-opacity")})}},dB=class extends a7{constructor(t,i){super(t,dO,i)}};function dN(t){let i=[],n=t.id;return void 0===n&&i.push(new tK(`layers.${n}`,null,'missing required property "id"')),void 0===t.render&&i.push(new tK(`layers.${n}`,null,'missing required method "render"')),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&i.push(new tK(`layers.${n}`,null,'property "renderingMode" must be either "2d" or "3d"')),i}var dV=class extends a7{constructor(t,i){super(t,{},i),this.onAdd=t=>{this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},this.onRemove=t=>{this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},this.implementation=t}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function d$(t,i){if("custom"===t.type)return new dV(t,i);switch(t.type){case"background":return new dB(t,i);case"circle":return new sQ(t,i);case"color-relief":return new lo(t,i);case"fill":return new lY(t,i);case"fill-extrusion":return new cb(t,i);case"heatmap":return new s9(t,i);case"hillshade":return new lt(t,i);case"line":return new cP(t,i);case"raster":return new oe(t,i);case"symbol":return new dF(t,i)}}var dj=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){this._triggered||(this._triggered=!0,this._channel?.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}};let dU={once:!0};var dq=class{constructor(t,i){this.target=t,this.mapId=i,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dj(()=>this.process()),this.subscription=ty(this.target,"message",t=>this.receive(t),!1),this.globalScope=tu(self)?t:window}registerMessageHandler(t,i){this.messageHandlers[t]=i}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,i){return new Promise((n,r)=>{let a=Math.round(1e18*Math.random()).toString(36).substring(0,10),o=i?ty(i.signal,"abort",()=>{o?.unsubscribe(),delete this.resolveRejects[a];let n={id:a,type:"<cancel>",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(n),r(new tM(i.signal.reason))},dU):null;this.resolveRejects[a]={resolve:t=>{o?.unsubscribe(),n(t)},reject:t=>{o?.unsubscribe(),r(t)}};let s=[],l={...t,id:a,sourceMapId:this.mapId,origin:location.origin,data:ak(t.data,s)};this.target.postMessage(l,{transfer:s})})}receive(t){let i=t.data,n=i.id,r=["file://","resource://android","null"],a=[i.origin,location.origin],o=i.origin===location.origin,s=a.some(t=>r.includes(t));if((o||s)&&!(i.targetMapId&&this.mapId!==i.targetMapId)){if("<cancel>"===i.type){delete this.tasks[n];let t=this.abortControllers[n];delete this.abortControllers[n],t&&t.abort();return}if(tu(self)||i.mustQueue){this.tasks[n]=i,this.taskQueue.push(n),this.invoker.trigger();return}this.processTask(n,i)}}process(){if(0===this.taskQueue.length)return;let t=this.taskQueue.shift(),i=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),i&&this.processTask(t,i)}async processTask(t,i){if("<response>"===i.type){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;i.error?n.reject(eB(aA(i.error))):n.resolve(aA(i.data));return}if(!this.messageHandlers[i.type])return void this.completeTask(t,null,null);let n=aA(i.data),r=new AbortController;this.abortControllers[t]=r;try{let a=await this.messageHandlers[i.type](i.sourceMapId,n,r);this.completeTask(t,null,a)}catch(i){this.completeTask(t,eB(i))}}completeTask(t,i,n){let r=[];delete this.abortControllers[t];let a={id:t,type:"<response>",sourceMapId:this.mapId,origin:location.origin,error:i?ak(i):null,data:ak(n,r)};this.target.postMessage(a,{transfer:r})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function dG(t,i){let{x:n,y:r}=cs.fromLngLat(i);return!(t<0||t>25||r<0||r>=1||n<0||n>=1)}var dH=class{constructor(t,i,n){if(!function(t,i,n){return!(t<0||t>25||n<0||n>=2**t||i<0||i>=2**t)}(t,i,n))throw Error(`x=${i}, y=${n}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=i,this.y=n,this.key=dW(0,t,t,i,n)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,i,n){var r,a,o;let s,l,c=(r=this.x,a=this.y,o=this.z,s=dK(256*r,256*(a=2**o-a-1),o),l=dK((r+1)*256,(a+1)*256,o),`${s[0]},${s[1]},${l[0]},${l[1]}`),d=function(t,i,n){let r="";for(let a=t;a>0;a--){let t=1<<a-1;r+=(i&t?1:0)+(n&t?2:0)}return r}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===n?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,i>1?"@2x":"").replace(/{quadkey}/g,d).replace(/{bbox-epsg-3857}/g,c)}isChildOf(t){let i=this.z-t.z;return i>0&&t.x===this.x>>i&&t.y===this.y>>i}getTilePoint(t){let i=2**this.z;return new R((t.x*i-this.x)*8192,(t.y*i-this.y)*8192)}toString(){return`${this.z}/${this.x}/${this.y}`}},dZ=class{constructor(t,i){this.wrap=t,this.canonical=i,this.key=dW(t,i.z,i.z,i.x,i.y)}},dX=class t{constructor(t,i,n,r,a){if(this.terrainRttPosMatrix32f=null,t<n)throw Error(`overscaledZ should be >= z; overscaledZ = ${t}; z = ${n}`);this.overscaledZ=t,this.wrap=i,this.canonical=new dH(n,+r,+a),this.key=dW(i,t,n,r,a)}clone(){return new t(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(i){if(i>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${i}; overscaledZ = ${this.overscaledZ}`);let n=this.canonical.z-i;return i>this.canonical.z?new t(i,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new t(i,this.wrap,i,this.canonical.x>>n,this.canonical.y>>n)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,i){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let n=this.canonical.z-t;return t>this.canonical.z?dW(this.wrap*i,t,this.canonical.z,this.canonical.x,this.canonical.y):dW(this.wrap*i,t,t,this.canonical.x>>n,this.canonical.y>>n)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(0===t.overscaledZ)return this.overscaledZ>0;let i=this.canonical.z-t.canonical.z;return!(i<0)&&t.canonical.x===this.canonical.x>>i&&t.canonical.y===this.canonical.y>>i}children(i){if(this.overscaledZ>=i)return[new t(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let n=this.canonical.z+1,r=2*this.canonical.x,a=2*this.canonical.y;return[new t(n,this.wrap,n,r,a),new t(n,this.wrap,n,r+1,a),new t(n,this.wrap,n,r,a+1),new t(n,this.wrap,n,r+1,a+1)]}isLessThan(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}wrapped(){return new t(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(i){return new t(this.overscaledZ,i,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return 2**(this.overscaledZ-this.canonical.z)}toUnwrapped(){return new dZ(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(t){return this.canonical.getTilePoint(new cs(t.x-this.wrap,t.y))}normalizeCoordinates(i,n,r=8192){if(i>=0&&i<r&&n>=0&&n<r)return{tileID:this,x:i,y:n};let a=Math.floor(i/r),o=Math.floor(n/r),s=this.canonical.z,l=1<<s,c=this.canonical.y+o;if(c<0||c>=l)return null;let d=this.canonical.x+a,h=this.wrap;return d<0?(h-=Math.ceil(-d/l),d=(d%l+l)%l):d>=l&&(h+=Math.floor(d/l),d%=l),{tileID:new t(this.overscaledZ,h,s,d,c),x:i-a*r,y:n-o*r}}};function dW(t,i,n,r,a){(t*=2)<0&&(t=-1*t-1);let o=1<<n;return(o*o*t+o*a+r).toString(36)+n.toString(36)+i.toString(36)}let dY=6378137*Math.PI;function dK(t,i,n){let r=2*dY/256/2**n;return[t*r-dY,i*r-dY]}function dJ(t,i){let n=Math.abs(2*t.wrap)-(t.wrap<0),r=Math.abs(2*i.wrap)-(i.wrap<0);return t.overscaledZ-i.overscaledZ||r-n||i.canonical.y-t.canonical.y||i.canonical.x-t.canonical.x}aw("CanonicalTileID",dH),aw("OverscaledTileID",dX,{omit:["terrainRttPosMatrix32f"]});let dQ="_geojsonTileLayer";var d0=class{constructor(t){this._stringToNumber={},this._numberToString=[];for(let i=0;i<t.length;i++){let n=t[i];this._stringToNumber[n]=i,this._numberToString[i]=n}}encode(t){return this._stringToNumber[t]}decode(t){if(t>=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},d2=class{constructor(t,i,n,r,a){for(let a in this.type="Feature",this._vectorTileFeature=t,this._x=n,this._y=r,this._z=i,t.properties)"string"==typeof t.properties[a]&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=a}projectPoint(t,i,n,r){return[(t.x+i)*360/r-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+n)*2/r)*Math.PI))-90]}projectLine(t,i,n,r){return t.map(t=>this.projectPoint(t,i,n,r))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,i=t.extent*2**this._z,n=t.extent*this._x,r=t.extent*this._y,a=t.loadGeometry();switch(t.type){case 1:{let t=[];for(let i of a)t.push(i[0]);let o=this.projectLine(t,n,r,i);this._geometry=1===t.length?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let t=a.map(t=>this.projectLine(t,n,r,i));this._geometry=1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t};break}case 3:{let t=l4(a),o=[];for(let a of t)o.push(a.map(t=>this.projectLine(t,n,r,i)));this._geometry=1===o.length?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let i in this)"_geometry"!==i&&"_vectorTileFeature"!==i&&"_x"!==i&&"_y"!==i&&"_z"!==i&&(t[i]=this[i]);return t}},d1=class{constructor(t,i,n){this._name=t,this.dataBuffer=i,"number"==typeof n?this._size=n:(this.nullabilityBuffer=n,this._size=n.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){return this.nullabilityBuffer?.get(t)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},d3=class extends d1{},d5=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},d4=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},d6=class extends d1{constructor(t,i,n,r){super(t,i,r),this.delta=n}},d8=class extends d6{constructor(t,i,n,r,a){super(t,a?Int32Array.of(i):Uint32Array.of(i),n,r)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},d7=class extends d1{constructor(t,i,n,r){super(t,r?Int32Array.of(i):Uint32Array.of(i),n)}getValueFromBuffer(t){return this.dataBuffer[0]}},d9=class{constructor(t,i,n,r,a=4096){if(this._name=t,this._geometryVector=i,this._idVector=n,this._propertyVectors=r,this._extent=a,0===t.length)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors??[]}getPropertyVector(t){return this.propertyVectorsMap||=new Map(this.propertyVectors.map(t=>[t.name,t])),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],i=this.geometryVector.getGeometries();for(let n=0;n<this.numFeatures;n++){let r;if(this.idVector){let t=this.idVector.getValue(n);null!==t&&(r=this.containsMaxSafeIntegerValues(this.idVector)?Number(t):t)}let a={coordinates:i[n],type:this.geometryVector.geometryType(n)},o={};for(let t of this.propertyVectors){if(!t)continue;let i=t.name,r=t.getValue(n);null!==r&&(o[i]=r)}t.push({id:r,geometry:a,properties:o})}return t}containsMaxSafeIntegerValues(t){return t instanceof d5||t instanceof d7||t instanceof d8||t instanceof d4}},he,ht,hi,hn,hr=class{constructor(t){this.value=t}get(){return this.value}set(t){this.value=t}increment(){return this.value++}add(t){this.value+=t}};(uh=hn||={}).NONE="NONE",uh.DELTA="DELTA",uh.COMPONENTWISE_DELTA="COMPONENTWISE_DELTA",uh.RLE="RLE",uh.MORTON="MORTON",(uu=ux||={}).NONE="NONE",uu.FAST_PFOR="FAST_PFOR",uu.VARINT="VARINT";let ha=new Uint32Array(33);ha[0]=0;for(let t=1;t<=32;t++)ha[t]=32===t?0xffffffff:0xffffffff>>>32-t;let ho=function(){var t;if(!Number.isFinite(65536))return 65536;let i=(t=Math.floor(65536))-t%256;return 0===i?256:i}(),hs=3*ho/256+ho|0;function hl(){let t=new Uint8Array(hs);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function hc(t,i,n){let r=new Uint32Array(n),a=0,o=i.get();for(let i=0;i<r.length;i++){let i=t[o++],n=127&i;if(i<128||(n|=(127&(i=t[o++]))<<7,i<128)||(n|=(127&(i=t[o++]))<<14,i<128)||(n|=(127&(i=t[o++]))<<21,i<128)){r[a++]=n;continue}n|=(15&(i=t[o++]))<<28,r[a++]=n}return i.set(o),r}function hd(t,i,n){let r=new BigUint64Array(n);for(let n=0;n<r.length;n++)r[n]=function(t,i){let n=0n,r=0,a=i.get();for(;a<t.length;){let i=t[a++];if(n|=BigInt(127&i)<<BigInt(r),!(128&i))break;if((r+=7)>=64)throw Error("Varint too long")}return i.set(a),n}(t,i);return r}function hh(t){return t>>>1^-(1&t)}function hu(t){return t>>1n^-(1n&t)}function hp(t){return t%2==1?-((t+1)/2):t/2}function hm(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=t[r]}let r=new Uint32Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];r.fill(s,a,a+o),a+=o}return r}function hf(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=Number(t[r])}let r=new BigUint64Array(n),a=0;for(let n=0;n<i;n++){let o=Number(t[n]),s=t[n+i];r.fill(s,a,a+o),a+=o}return r}function hg(t,i,n){let r=new Float64Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];r.fill(s,a,a+o),a+=o}return r}function h_(t){let i=new Int32Array(t.length);i[0]=hh(t[0]);let n=t.length/4*4,r=1;if(n>=4)for(;r<n-4;r+=4){let n=t[r],a=t[r+1],o=t[r+2],s=t[r+3];i[r]=hh(n)+i[r-1],i[r+1]=hh(a)+i[r],i[r+2]=hh(o)+i[r+1],i[r+3]=hh(s)+i[r+2]}for(;r!==t.length;++r)i[r]=hh(t[r])+i[r-1];return i}function hv(t){let i=new BigInt64Array(t.length);i[0]=hu(t[0]);let n=t.length/4*4,r=1;if(n>=4)for(;r<n-4;r+=4){let n=t[r],a=t[r+1],o=t[r+2],s=t[r+3];i[r]=hu(n)+i[r-1],i[r+1]=hu(a)+i[r],i[r+2]=hu(o)+i[r+1],i[r+3]=hu(s)+i[r+2]}for(;r!==i.length;++r)i[r]=hu(t[r])+i[r-1];return i}function hy(t){let i=t.length/4*4,n=1;if(i>=4)for(let r=t[0];n<i-4;n+=4)r=t[n]+=r,r=t[n+1]+=r,r=t[n+2]+=r,r=t[n+3]+=r;for(;n!==t.length;)t[n]+=t[n-1],++n}function hb(t,i,n,r){if(t.length<2)return new Int32Array(t);let a=new Int32Array(t.length),o=hh(t[0]),s=hh(t[1]);a[0]=hx(Math.round(o*i),n,r),a[1]=hx(Math.round(s*i),n,r);let l=t.length/16,c=2;if(l>=4)for(;c<l-4;c+=4){let l=t[c],d=t[c+1],h=hh(l)+o,u=hh(d)+s;a[c]=hx(Math.round(h*i),n,r),a[c+1]=hx(Math.round(u*i),n,r);let p=t[c+2],m=t[c+3];o=hh(p)+h,s=hh(m)+u,a[c+2]=hx(Math.round(o*i),n,r),a[c+3]=hx(Math.round(s*i),n,r)}for(;c!==t.length;c+=2)o+=hh(t[c]),s+=hh(t[c+1]),a[c]=hx(Math.round(o*i),n,r),a[c+1]=hx(Math.round(s*i),n,r);return a}function hx(t,i,n){return Math.min(n,Math.max(i,t))}function hw(t){let i=new Uint32Array(t.length);i[0]=hh(t[0])>>>0;for(let n=1;n<t.length;n++)i[n]=i[n-1]+hh(t[n])>>>0;return i}function hC(t){let i=new BigUint64Array(t.length);i[0]=BigInt.asUintN(64,hu(t[0]));for(let n=1;n<t.length;n++)i[n]=BigInt.asUintN(64,i[n-1]+hu(t[n]));return i}(up=uw||={}).PRESENT="PRESENT",up.DATA="DATA",up.OFFSET="OFFSET",up.LENGTH="LENGTH",(um=uC||={}).NONE="NONE",um.SINGLE="SINGLE",um.SHARED="SHARED",um.VERTEX="VERTEX",um.MORTON="MORTON",um.FSST="FSST",(uf=uE||={}).VERTEX="VERTEX",uf.INDEX="INDEX",uf.STRING="STRING",uf.KEY="KEY",(ug=uT||={}).VAR_BINARY="VAR_BINARY",ug.GEOMETRIES="GEOMETRIES",ug.PARTS="PARTS",ug.RINGS="RINGS",ug.TRIANGLES="TRIANGLES",ug.SYMBOL="SYMBOL",ug.DICTIONARY="DICTIONARY";let hE=[uw.PRESENT,uw.DATA,uw.OFFSET,uw.LENGTH],hT=[hn.NONE,hn.DELTA,hn.COMPONENTWISE_DELTA,hn.RLE,hn.MORTON],hk=[ux.NONE,ux.FAST_PFOR,ux.VARINT],hA=[uC.NONE,uC.SINGLE,uC.SHARED,uC.VERTEX,uC.MORTON,uC.FSST],hI=[uE.VERTEX,uE.INDEX,uE.STRING,uE.KEY],hS=[uT.VAR_BINARY,uT.GEOMETRIES,uT.PARTS,uT.RINGS,uT.TRIANGLES,uT.SYMBOL,uT.DICTIONARY];function hD(t,i){var n,r;let a,o,s=function(t,i){let n=t[i.get()],r=hE[n>>4],a={};switch(r){case uw.DATA:a={dictionaryType:hA[15&n]};break;case uw.OFFSET:a={offsetType:hI[15&n]};break;case uw.LENGTH:a={lengthType:hS[15&n]}}i.increment();let o=t[i.get()],s=hT[o>>5],l=hT[o>>2&7],c=hk[3&o];i.increment();let d=hc(t,i,2),h=d[0];return{physicalStreamType:r,logicalStreamType:a,logicalLevelTechnique1:s,logicalLevelTechnique2:l,physicalLevelTechnique:c,numValues:h,byteLength:d[1],decompressedCount:h}}(t,i);return s.logicalLevelTechnique1===hn.MORTON?(n=s,a=hc(t,i,2),{physicalStreamType:n.physicalStreamType,logicalStreamType:n.logicalStreamType,logicalLevelTechnique1:n.logicalLevelTechnique1,logicalLevelTechnique2:n.logicalLevelTechnique2,physicalLevelTechnique:n.physicalLevelTechnique,numValues:n.numValues,byteLength:n.byteLength,decompressedCount:n.decompressedCount,numBits:a[0],coordinateShift:a[1]}):(hn.RLE===s.logicalLevelTechnique1||hn.RLE===s.logicalLevelTechnique2)&&ux.NONE!==s.physicalLevelTechnique?(r=s,o=hc(t,i,2),{physicalStreamType:r.physicalStreamType,logicalStreamType:r.logicalStreamType,logicalLevelTechnique1:r.logicalLevelTechnique1,logicalLevelTechnique2:r.logicalLevelTechnique2,physicalLevelTechnique:r.physicalLevelTechnique,numValues:r.numValues,byteLength:r.byteLength,decompressedCount:o[1],runs:o[0],numRleValues:o[1]}):s}(u_=uk||={})[u_.FLAT=0]="FLAT",u_[u_.CONST=1]="CONST",u_[u_.SEQUENCE=2]="SEQUENCE",u_[u_.DICTIONARY=3]="DICTIONARY",u_[u_.FSST_DICTIONARY=4]="FSST_DICTIONARY";var hP=class{constructor(t,i){this.values=t,this._size=i}get(t){let i=Math.floor(t/8);return(this.values[i]>>t%8&1)==1}set(t,i){let n=Math.floor(t/8);this.values[n]=this.values[n]|!!i<<t%8}getInt(t){let i=Math.floor(t/8);return this.values[i]>>t%8&1}size(){return this._size}getBuffer(){return this.values}};function hM(t,i,n){if(!i)return t;let r=i.size(),a=new t.constructor(r),o=0;for(let s=0;s<r;s++)a[s]=i.get(s)?t[o++]:n;return a}function hz(t,i,n){for(let r=0;r<t;r++){let t=hD(i,n);n.add(t.byteLength)}}function hL(t,i,n,r,a){let o=function(t,i,n,r){let a=new Uint8Array(i),o=0,s=r.get()+n;for(;o<i&&!(r.get()>=s);){let n=t[r.increment()];if(n<=127){let s=n+3,l=t[r.increment()],c=Math.min(o+s,i);a.fill(l,o,c),o=c}else{let s=256-n;for(let n=0;n<s&&o<i;n++)a[o++]=t[r.increment()]}}return r.set(s),a}(t,Math.ceil(i/8),n,r);return a?function(t,i,n){if(!n)return t;let r=n.size(),a=new hP(t,i),o=new hP(new Uint8Array(Math.ceil(r/8)),r),s=0;for(let t=0;t<r;t++){let i=!!n.get(t)&&a.get(s++);o.set(t,i)}return o.getBuffer()}(o,i,a):o}function hR(t,i,n,r){let a=i.get(),o=a+n*Float32Array.BYTES_PER_ELEMENT,s=new Float32Array(new Uint8Array(t.subarray(a,o)).buffer);return i.set(o),r?hM(s,r,0):s}function hF(t,i,n,r){let a=i.get(),o=a+n*Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(new Uint8Array(t.subarray(a,o)).buffer);return i.set(o),r?hM(s,r,0):s}let hO=new TextDecoder;function hB(t,i,n){return n-i>=12?hO.decode(t.subarray(i,n)):function(t,i,n){let r="",a=i;for(;a<n;){let i,o,s,l=t[a],c=null,d=l>239?4:l>223?3:l>191?2:1;if(a+d>n)break;1===d?l<128&&(c=l):2===d?(192&(i=t[a+1]))==128&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===d?(i=t[a+1],o=t[a+2],(192&i)==128&&(192&o)==128&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===d&&(i=t[a+1],o=t[a+2],s=t[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,d=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),a+=d}return r}(t,i,n)}function hN(t,i,n,r,a){let o;var s=hj(t,i,n),l=n,c=r,d=a;switch(l.logicalLevelTechnique1){case hn.DELTA:if(l.logicalLevelTechnique2===hn.RLE){if(!d)return function(t,i,n){let r=new Int32Array(n),a=0,o=0;for(let n=0;n<i;n++){let s=t[n],l=hh(t[n+i]);for(let t=0;t<s;t++)o+=l,r[a++]=o}return r}(s,l.runs,l.numRleValues);o=h_(s=hm(s,l.runs,l.numRleValues))}else o=h_(s);break;case hn.RLE:o=function(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=t[r]}let r=new Int32Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];s=hh(s),r.fill(s,a,a+o),a+=o}return r}(s,l.runs,l.numRleValues);break;case hn.MORTON:hy(s),o=new Int32Array(s);break;case hn.COMPONENTWISE_DELTA:if(c&&!d)return hb(s,c.scale,c.min,c.max);o=function(t){if(t.length<2)return new Int32Array(t);let i=new Int32Array(t.length);i[0]=hh(t[0]),i[1]=hh(t[1]);let n=t.length/4*4,r=2;if(n>=4)for(;r<n-4;r+=4){let n=t[r],a=t[r+1],o=t[r+2],s=t[r+3];i[r]=hh(n)+i[r-2],i[r+1]=hh(a)+i[r-1],i[r+2]=hh(o)+i[r],i[r+3]=hh(s)+i[r+1]}for(;r!==t.length;r+=2)i[r]=hh(t[r])+i[r-2],i[r+1]=hh(t[r+1])+i[r-1];return i}(s);break;case hn.NONE:o=function(t){let i=new Int32Array(t.length);for(let n=0;n<t.length;n++)i[n]=hh(t[n]);return i}(s);break;default:throw Error(`The specified Logical level technique is not supported: ${l.logicalLevelTechnique1}`)}return d?hM(o,d,0):o}function hV(t,i,n,r,a){return function(t,i,n,r){let a;switch(i.logicalLevelTechnique1){case hn.DELTA:a=i.logicalLevelTechnique2===hn.RLE?hw(hm(t,i.runs,i.numRleValues)):hw(t);break;case hn.RLE:a=hm(t,i.runs,i.numRleValues);break;case hn.MORTON:hy(t),a=t;break;case hn.COMPONENTWISE_DELTA:var o;a=n&&!r?(o=n.scale,new Uint32Array(hb(t,o,n.min,n.max))):function(t){if(t.length<2)return new Uint32Array(t);let i=new Uint32Array(t.length);i[0]=hh(t[0])>>>0,i[1]=hh(t[1])>>>0;for(let n=2;n<t.length;n+=2)i[n]=i[n-2]+hh(t[n])>>>0,i[n+1]=i[n-1]+hh(t[n+1])>>>0;return i}(t);break;case hn.NONE:a=t;break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return r?hM(a,r,0):a}(hj(t,i,n),n,r,a)}function h$(t,i,n){return function(t,i){if(i.logicalLevelTechnique1===hn.DELTA&&i.logicalLevelTechnique2===hn.NONE){let i=new Int32Array(t.length+1);i[0]=0,i[1]=hh(t[0]);let n=i[1];for(let r=2;r!==i.length;++r)n+=hh(t[r-1]),i[r]=i[r-1]+n;return new Uint32Array(i)}if(i.logicalLevelTechnique1===hn.RLE&&i.logicalLevelTechnique2===hn.NONE)return function(t,i,n){let r=new Uint32Array(n+1);r[0]=0;let a=1,o=r[0];for(let n=0;n<i;n++){let s=t[n],l=t[n+i];for(let t=a;t<a+s;t++)r[t]=l+o,o=r[t];a+=s}return r}(t,i.runs,i.numRleValues);if(i.logicalLevelTechnique1===hn.NONE&&i.logicalLevelTechnique2===hn.NONE){let n=0;for(let i=0;i<t.length;i++)t[i]+=n,n=t[i];let r=new Uint32Array(i.numValues+1);return r[0]=0,r.set(t,1),r}if(i.logicalLevelTechnique1===hn.DELTA&&i.logicalLevelTechnique2===hn.RLE){let n=function(t,i,n){let r=new Int32Array(n+1);r[0]=0;let a=1,o=r[0];for(let n=0;n<i;n++){let s=t[n],l=t[n+i];l=hh(l);for(let t=a;t<a+s;t++)r[t]=l+o,o=r[t];a+=s}return r}(t,i.runs,i.numRleValues);return hy(n),new Uint32Array(n)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}(hj(t,i,n),n)}function hj(t,i,n){let r=n.physicalLevelTechnique;switch(r){case ux.FAST_PFOR:var a,o;return a=n.numValues,function(t,i,n,r,a){let o=r.get();if(3&n)throw Error(`FastPFOR: invalid encodedByteLength=${n} at offset=${o} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=n>>>2,l=function(t,i){if(i<=t.encodedWords.length)return t.encodedWords;let n=new Uint32Array(Math.max(16,2*i));return t.encodedWords=n,n}(a,s);!function(t,i,n,r){if(i<0||n<0||i+n>t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${i}, byteLength=${n}, bytes.length=${t.length})`);let a=Math.floor(n/4),o=n%4!=0,s=o?a+1:a;if(r.length<s)throw RangeError(`decodeBigEndianInt32sInto: out.length=${r.length} < ${s}`);if(a>0){let n=t.byteOffset+i;if(3&n)for(let n=0;n<a;n++){let a=i+4*n;r[n]=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]}else{let i=new Uint32Array(t.buffer,n,a);for(let t=0;t<a;t++)r[t]=0|function(t){let i=t>>>0;return((255&i)<<24|(65280&i)<<8|i>>>8&65280|i>>>24&255)>>>0}(i[t])}}if(o){let o=i+4*a,s=n-4*a,l=0;for(let i=0;i<s;i++)l|=t[o+i]<<24-8*i;r[a]=0|l}}(t,o,n,l);let c=function(t,i,n){let r=0,a=0,o=new Uint32Array(i),s=n??hl();if(t.length>0){let i=0|t[r];if(r=r+1|0,255&i)throw Error(`FastPFOR decode: invalid alignedLength=${i} (expected multiple of 256)`);if(a+i>o.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${a}, alignedLength=${i}, out.length=${o.length})`);r=function(t,i,n,r,a,o){let s=r+(a-a%256),l=r,c=n;for(;l!==s;){let n=Math.min(ho,s-l);c=function(t,i,n,r,a,o){let s=0|n,l=0|t[s];if(l<=0||s+l>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${l} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let c=s+l|0,d=t[c]>>>0,h=d+3>>>2,u=c+1,p=u+h;if(p>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${d} (metaInts=${h}, pageStart=${s}, packedEnd=${c}, byteContainerStart=${u}) causes bitmapPos=${p} out of bounds (encoded.length=${t.length})`);let m=function(t,i,n,r){r.byteContainer.length<n&&(r.byteContainer=new Uint8Array(2*n),r.byteContainerI32=void 0);let a=r.byteContainer,o=n>>>2;if(3&a.byteOffset)for(let n=0;n<o;n=n+1|0){let r=0|t[i+n|0],o=n<<2;a[o]=255&r,a[o+1|0]=r>>>8&255,a[o+2|0]=r>>>16&255,a[o+3|0]=r>>>24&255}else{let n=r.byteContainerI32;(!n||n.buffer!==a.buffer||n.byteOffset!==a.byteOffset||n.length<o)&&(n=r.byteContainerI32=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>>2)),n.set(t.subarray(i,i+o))}let s=3&n;if(s>0){let n=0|t[i+o|0],r=o<<2;for(let t=0;t<s;t=t+1|0)a[r+t|0]=n>>>(t<<3)&255}return a}(t,u,d,o),f=function(t,i,n){let r=0|t[i++],a=n.dataToBePacked;for(let o=2;o<=32;o=o+1|0){if(!(r>>>o-1&1))continue;if(i>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${o}, streamWordIndex=${i}, needWords=1, availableWords=${t.length-i}, encodedWords=${t.length})`);let s=t[i++]>>>0,l=function(t){var i;return(i=t+31)-i%32}(s),c=s*o+31>>>5;if(i+c>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${o}, size=${s}, streamWordIndex=${i}, needWords=${c}, availableWords=${t.length-i}, encodedWords=${t.length})`);let d=a[o];(!d||d.length<l)&&(d=a[o]=new Uint32Array(l));let h=0;for(;h<s;h=h+32|0)(function(t,i,n,r,a){switch(a){case 2:let o,s,l;o=r,s=t[i]>>>0,l=t[i+1]>>>0,n[o++]=s>>>0&3,n[o++]=s>>>2&3,n[o++]=s>>>4&3,n[o++]=s>>>6&3,n[o++]=s>>>8&3,n[o++]=s>>>10&3,n[o++]=s>>>12&3,n[o++]=s>>>14&3,n[o++]=s>>>16&3,n[o++]=s>>>18&3,n[o++]=s>>>20&3,n[o++]=s>>>22&3,n[o++]=s>>>24&3,n[o++]=s>>>26&3,n[o++]=s>>>28&3,n[o++]=s>>>30&3,n[o++]=l>>>0&3,n[o++]=l>>>2&3,n[o++]=l>>>4&3,n[o++]=l>>>6&3,n[o++]=l>>>8&3,n[o++]=l>>>10&3,n[o++]=l>>>12&3,n[o++]=l>>>14&3,n[o++]=l>>>16&3,n[o++]=l>>>18&3,n[o++]=l>>>20&3,n[o++]=l>>>22&3,n[o++]=l>>>24&3,n[o++]=l>>>26&3,n[o++]=l>>>28&3,n[o]=l>>>30&3;return;case 3:let c,d,h,u;c=r,d=t[i]>>>0,h=t[i+1]>>>0,u=t[i+2]>>>0,n[c++]=d>>>0&7,n[c++]=d>>>3&7,n[c++]=d>>>6&7,n[c++]=d>>>9&7,n[c++]=d>>>12&7,n[c++]=d>>>15&7,n[c++]=d>>>18&7,n[c++]=d>>>21&7,n[c++]=d>>>24&7,n[c++]=d>>>27&7,n[c++]=(d>>>30|(1&h)<<2)&7,n[c++]=h>>>1&7,n[c++]=h>>>4&7,n[c++]=h>>>7&7,n[c++]=h>>>10&7,n[c++]=h>>>13&7,n[c++]=h>>>16&7,n[c++]=h>>>19&7,n[c++]=h>>>22&7,n[c++]=h>>>25&7,n[c++]=h>>>28&7,n[c++]=(h>>>31|(3&u)<<1)&7,n[c++]=u>>>2&7,n[c++]=u>>>5&7,n[c++]=u>>>8&7,n[c++]=u>>>11&7,n[c++]=u>>>14&7,n[c++]=u>>>17&7,n[c++]=u>>>20&7,n[c++]=u>>>23&7,n[c++]=u>>>26&7,n[c]=u>>>29&7;return;case 4:let p,m,f,g,_;p=r,m=t[i]>>>0,f=t[i+1]>>>0,g=t[i+2]>>>0,_=t[i+3]>>>0,n[p++]=m>>>0&15,n[p++]=m>>>4&15,n[p++]=m>>>8&15,n[p++]=m>>>12&15,n[p++]=m>>>16&15,n[p++]=m>>>20&15,n[p++]=m>>>24&15,n[p++]=m>>>28&15,n[p++]=f>>>0&15,n[p++]=f>>>4&15,n[p++]=f>>>8&15,n[p++]=f>>>12&15,n[p++]=f>>>16&15,n[p++]=f>>>20&15,n[p++]=f>>>24&15,n[p++]=f>>>28&15,n[p++]=g>>>0&15,n[p++]=g>>>4&15,n[p++]=g>>>8&15,n[p++]=g>>>12&15,n[p++]=g>>>16&15,n[p++]=g>>>20&15,n[p++]=g>>>24&15,n[p++]=g>>>28&15,n[p++]=_>>>0&15,n[p++]=_>>>4&15,n[p++]=_>>>8&15,n[p++]=_>>>12&15,n[p++]=_>>>16&15,n[p++]=_>>>20&15,n[p++]=_>>>24&15,n[p]=_>>>28&15;return;case 5:let v,y,b,x,w,C;v=r,y=t[i]>>>0,b=t[i+1]>>>0,x=t[i+2]>>>0,w=t[i+3]>>>0,C=t[i+4]>>>0,n[v++]=y>>>0&31,n[v++]=y>>>5&31,n[v++]=y>>>10&31,n[v++]=y>>>15&31,n[v++]=y>>>20&31,n[v++]=y>>>25&31,n[v++]=(y>>>30|(7&b)<<2)&31,n[v++]=b>>>3&31,n[v++]=b>>>8&31,n[v++]=b>>>13&31,n[v++]=b>>>18&31,n[v++]=b>>>23&31,n[v++]=(b>>>28|(1&x)<<4)&31,n[v++]=x>>>1&31,n[v++]=x>>>6&31,n[v++]=x>>>11&31,n[v++]=x>>>16&31,n[v++]=x>>>21&31,n[v++]=x>>>26&31,n[v++]=(x>>>31|(15&w)<<1)&31,n[v++]=w>>>4&31,n[v++]=w>>>9&31,n[v++]=w>>>14&31,n[v++]=w>>>19&31,n[v++]=w>>>24&31,n[v++]=(w>>>29|(3&C)<<3)&31,n[v++]=C>>>2&31,n[v++]=C>>>7&31,n[v++]=C>>>12&31,n[v++]=C>>>17&31,n[v++]=C>>>22&31,n[v]=C>>>27&31;return;case 6:let E,T,k,A,I,S,D;E=r,T=t[i]>>>0,k=t[i+1]>>>0,A=t[i+2]>>>0,I=t[i+3]>>>0,S=t[i+4]>>>0,D=t[i+5]>>>0,n[E++]=T>>>0&63,n[E++]=T>>>6&63,n[E++]=T>>>12&63,n[E++]=T>>>18&63,n[E++]=T>>>24&63,n[E++]=(T>>>30|(15&k)<<2)&63,n[E++]=k>>>4&63,n[E++]=k>>>10&63,n[E++]=k>>>16&63,n[E++]=k>>>22&63,n[E++]=(k>>>28|(3&A)<<4)&63,n[E++]=A>>>2&63,n[E++]=A>>>8&63,n[E++]=A>>>14&63,n[E++]=A>>>20&63,n[E++]=A>>>26&63,n[E++]=I>>>0&63,n[E++]=I>>>6&63,n[E++]=I>>>12&63,n[E++]=I>>>18&63,n[E++]=I>>>24&63,n[E++]=(I>>>30|(15&S)<<2)&63,n[E++]=S>>>4&63,n[E++]=S>>>10&63,n[E++]=S>>>16&63,n[E++]=S>>>22&63,n[E++]=(S>>>28|(3&D)<<4)&63,n[E++]=D>>>2&63,n[E++]=D>>>8&63,n[E++]=D>>>14&63,n[E++]=D>>>20&63,n[E]=D>>>26&63;return;case 7:let P,M,z,L,R,F,O,B;P=r,M=t[i]>>>0,z=t[i+1]>>>0,L=t[i+2]>>>0,R=t[i+3]>>>0,F=t[i+4]>>>0,O=t[i+5]>>>0,B=t[i+6]>>>0,n[P++]=M>>>0&127,n[P++]=M>>>7&127,n[P++]=M>>>14&127,n[P++]=M>>>21&127,n[P++]=(M>>>28|(7&z)<<4)&127,n[P++]=z>>>3&127,n[P++]=z>>>10&127,n[P++]=z>>>17&127,n[P++]=z>>>24&127,n[P++]=(z>>>31|(63&L)<<1)&127,n[P++]=L>>>6&127,n[P++]=L>>>13&127,n[P++]=L>>>20&127,n[P++]=(L>>>27|(3&R)<<5)&127,n[P++]=R>>>2&127,n[P++]=R>>>9&127,n[P++]=R>>>16&127,n[P++]=R>>>23&127,n[P++]=(R>>>30|(31&F)<<2)&127,n[P++]=F>>>5&127,n[P++]=F>>>12&127,n[P++]=F>>>19&127,n[P++]=(F>>>26|(1&O)<<6)&127,n[P++]=O>>>1&127,n[P++]=O>>>8&127,n[P++]=O>>>15&127,n[P++]=O>>>22&127,n[P++]=(O>>>29|(15&B)<<3)&127,n[P++]=B>>>4&127,n[P++]=B>>>11&127,n[P++]=B>>>18&127,n[P]=B>>>25&127;return;case 8:let N,V,$,j,U,q,G,H,Z;N=r,V=t[i]>>>0,$=t[i+1]>>>0,j=t[i+2]>>>0,U=t[i+3]>>>0,q=t[i+4]>>>0,G=t[i+5]>>>0,H=t[i+6]>>>0,Z=t[i+7]>>>0,n[N++]=V>>>0&255,n[N++]=V>>>8&255,n[N++]=V>>>16&255,n[N++]=V>>>24&255,n[N++]=$>>>0&255,n[N++]=$>>>8&255,n[N++]=$>>>16&255,n[N++]=$>>>24&255,n[N++]=j>>>0&255,n[N++]=j>>>8&255,n[N++]=j>>>16&255,n[N++]=j>>>24&255,n[N++]=U>>>0&255,n[N++]=U>>>8&255,n[N++]=U>>>16&255,n[N++]=U>>>24&255,n[N++]=q>>>0&255,n[N++]=q>>>8&255,n[N++]=q>>>16&255,n[N++]=q>>>24&255,n[N++]=G>>>0&255,n[N++]=G>>>8&255,n[N++]=G>>>16&255,n[N++]=G>>>24&255,n[N++]=H>>>0&255,n[N++]=H>>>8&255,n[N++]=H>>>16&255,n[N++]=H>>>24&255,n[N++]=Z>>>0&255,n[N++]=Z>>>8&255,n[N++]=Z>>>16&255,n[N]=Z>>>24&255;return;case 9:let X,W,Y,K,J,Q,ee,et,ei,en;X=r,W=t[i]>>>0,Y=t[i+1]>>>0,K=t[i+2]>>>0,J=t[i+3]>>>0,Q=t[i+4]>>>0,ee=t[i+5]>>>0,et=t[i+6]>>>0,ei=t[i+7]>>>0,en=t[i+8]>>>0,n[X++]=W>>>0&511,n[X++]=W>>>9&511,n[X++]=W>>>18&511,n[X++]=(W>>>27|(15&Y)<<5)&511,n[X++]=Y>>>4&511,n[X++]=Y>>>13&511,n[X++]=Y>>>22&511,n[X++]=(Y>>>31|(255&K)<<1)&511,n[X++]=K>>>8&511,n[X++]=K>>>17&511,n[X++]=(K>>>26|(7&J)<<6)&511,n[X++]=J>>>3&511,n[X++]=J>>>12&511,n[X++]=J>>>21&511,n[X++]=(J>>>30|(127&Q)<<2)&511,n[X++]=Q>>>7&511,n[X++]=Q>>>16&511,n[X++]=(Q>>>25|(3&ee)<<7)&511,n[X++]=ee>>>2&511,n[X++]=ee>>>11&511,n[X++]=ee>>>20&511,n[X++]=(ee>>>29|(63&et)<<3)&511,n[X++]=et>>>6&511,n[X++]=et>>>15&511,n[X++]=(et>>>24|(1&ei)<<8)&511,n[X++]=ei>>>1&511,n[X++]=ei>>>10&511,n[X++]=ei>>>19&511,n[X++]=(ei>>>28|(31&en)<<4)&511,n[X++]=en>>>5&511,n[X++]=en>>>14&511,n[X]=en>>>23&511;return;case 10:let er,ea,eo,es,el,ec,ed,eh,eu,ep,em;er=r,ea=t[i]>>>0,eo=t[i+1]>>>0,es=t[i+2]>>>0,el=t[i+3]>>>0,ec=t[i+4]>>>0,ed=t[i+5]>>>0,eh=t[i+6]>>>0,eu=t[i+7]>>>0,ep=t[i+8]>>>0,em=t[i+9]>>>0,n[er++]=ea>>>0&1023,n[er++]=ea>>>10&1023,n[er++]=ea>>>20&1023,n[er++]=(ea>>>30|(255&eo)<<2)&1023,n[er++]=eo>>>8&1023,n[er++]=eo>>>18&1023,n[er++]=(eo>>>28|(63&es)<<4)&1023,n[er++]=es>>>6&1023,n[er++]=es>>>16&1023,n[er++]=(es>>>26|(15&el)<<6)&1023,n[er++]=el>>>4&1023,n[er++]=el>>>14&1023,n[er++]=(el>>>24|(3&ec)<<8)&1023,n[er++]=ec>>>2&1023,n[er++]=ec>>>12&1023,n[er++]=ec>>>22&1023,n[er++]=ed>>>0&1023,n[er++]=ed>>>10&1023,n[er++]=ed>>>20&1023,n[er++]=(ed>>>30|(255&eh)<<2)&1023,n[er++]=eh>>>8&1023,n[er++]=eh>>>18&1023,n[er++]=(eh>>>28|(63&eu)<<4)&1023,n[er++]=eu>>>6&1023,n[er++]=eu>>>16&1023,n[er++]=(eu>>>26|(15&ep)<<6)&1023,n[er++]=ep>>>4&1023,n[er++]=ep>>>14&1023,n[er++]=(ep>>>24|(3&em)<<8)&1023,n[er++]=em>>>2&1023,n[er++]=em>>>12&1023,n[er]=em>>>22&1023;return;case 11:let ef,eg,e_,ev,ey,eb,ex,ew,eC,eE,eT,ek;ef=r,eg=t[i]>>>0,e_=t[i+1]>>>0,ev=t[i+2]>>>0,ey=t[i+3]>>>0,eb=t[i+4]>>>0,ex=t[i+5]>>>0,ew=t[i+6]>>>0,eC=t[i+7]>>>0,eE=t[i+8]>>>0,eT=t[i+9]>>>0,ek=t[i+10]>>>0,n[ef++]=eg>>>0&2047,n[ef++]=eg>>>11&2047,n[ef++]=(eg>>>22|(1&e_)<<10)&2047,n[ef++]=e_>>>1&2047,n[ef++]=e_>>>12&2047,n[ef++]=(e_>>>23|(3&ev)<<9)&2047,n[ef++]=ev>>>2&2047,n[ef++]=ev>>>13&2047,n[ef++]=(ev>>>24|(7&ey)<<8)&2047,n[ef++]=ey>>>3&2047,n[ef++]=ey>>>14&2047,n[ef++]=(ey>>>25|(15&eb)<<7)&2047,n[ef++]=eb>>>4&2047,n[ef++]=eb>>>15&2047,n[ef++]=(eb>>>26|(31&ex)<<6)&2047,n[ef++]=ex>>>5&2047,n[ef++]=ex>>>16&2047,n[ef++]=(ex>>>27|(63&ew)<<5)&2047,n[ef++]=ew>>>6&2047,n[ef++]=ew>>>17&2047,n[ef++]=(ew>>>28|(127&eC)<<4)&2047,n[ef++]=eC>>>7&2047,n[ef++]=eC>>>18&2047,n[ef++]=(eC>>>29|(255&eE)<<3)&2047,n[ef++]=eE>>>8&2047,n[ef++]=eE>>>19&2047,n[ef++]=(eE>>>30|(511&eT)<<2)&2047,n[ef++]=eT>>>9&2047,n[ef++]=eT>>>20&2047,n[ef++]=(eT>>>31|(1023&ek)<<1)&2047,n[ef++]=ek>>>10&2047,n[ef]=ek>>>21&2047;return;case 12:let eA,eI,eS,eD,eP,eM,ez,eL,eR,eF,eO,eB,eN;eA=r,eI=t[i]>>>0,eS=t[i+1]>>>0,eD=t[i+2]>>>0,eP=t[i+3]>>>0,eM=t[i+4]>>>0,ez=t[i+5]>>>0,eL=t[i+6]>>>0,eR=t[i+7]>>>0,eF=t[i+8]>>>0,eO=t[i+9]>>>0,eB=t[i+10]>>>0,eN=t[i+11]>>>0,n[eA++]=eI>>>0&4095,n[eA++]=eI>>>12&4095,n[eA++]=(eI>>>24|(15&eS)<<8)&4095,n[eA++]=eS>>>4&4095,n[eA++]=eS>>>16&4095,n[eA++]=(eS>>>28|(255&eD)<<4)&4095,n[eA++]=eD>>>8&4095,n[eA++]=eD>>>20&4095,n[eA++]=eP>>>0&4095,n[eA++]=eP>>>12&4095,n[eA++]=(eP>>>24|(15&eM)<<8)&4095,n[eA++]=eM>>>4&4095,n[eA++]=eM>>>16&4095,n[eA++]=(eM>>>28|(255&ez)<<4)&4095,n[eA++]=ez>>>8&4095,n[eA++]=ez>>>20&4095,n[eA++]=eL>>>0&4095,n[eA++]=eL>>>12&4095,n[eA++]=(eL>>>24|(15&eR)<<8)&4095,n[eA++]=eR>>>4&4095,n[eA++]=eR>>>16&4095,n[eA++]=(eR>>>28|(255&eF)<<4)&4095,n[eA++]=eF>>>8&4095,n[eA++]=eF>>>20&4095,n[eA++]=eO>>>0&4095,n[eA++]=eO>>>12&4095,n[eA++]=(eO>>>24|(15&eB)<<8)&4095,n[eA++]=eB>>>4&4095,n[eA++]=eB>>>16&4095,n[eA++]=(eB>>>28|(255&eN)<<4)&4095,n[eA++]=eN>>>8&4095,n[eA]=eN>>>20&4095;return;case 16:let eV,e$,ej,eU,eq,eG,eH,eZ,eX,eW,eY,eK,eJ,eQ,e0,e2,e1;eV=r,e$=t[i]>>>0,ej=t[i+1]>>>0,eU=t[i+2]>>>0,eq=t[i+3]>>>0,eG=t[i+4]>>>0,eH=t[i+5]>>>0,eZ=t[i+6]>>>0,eX=t[i+7]>>>0,eW=t[i+8]>>>0,eY=t[i+9]>>>0,eK=t[i+10]>>>0,eJ=t[i+11]>>>0,eQ=t[i+12]>>>0,e0=t[i+13]>>>0,e2=t[i+14]>>>0,e1=t[i+15]>>>0,n[eV++]=e$>>>0&65535,n[eV++]=e$>>>16&65535,n[eV++]=ej>>>0&65535,n[eV++]=ej>>>16&65535,n[eV++]=eU>>>0&65535,n[eV++]=eU>>>16&65535,n[eV++]=eq>>>0&65535,n[eV++]=eq>>>16&65535,n[eV++]=eG>>>0&65535,n[eV++]=eG>>>16&65535,n[eV++]=eH>>>0&65535,n[eV++]=eH>>>16&65535,n[eV++]=eZ>>>0&65535,n[eV++]=eZ>>>16&65535,n[eV++]=eX>>>0&65535,n[eV++]=eX>>>16&65535,n[eV++]=eW>>>0&65535,n[eV++]=eW>>>16&65535,n[eV++]=eY>>>0&65535,n[eV++]=eY>>>16&65535,n[eV++]=eK>>>0&65535,n[eV++]=eK>>>16&65535,n[eV++]=eJ>>>0&65535,n[eV++]=eJ>>>16&65535,n[eV++]=eQ>>>0&65535,n[eV++]=eQ>>>16&65535,n[eV++]=e0>>>0&65535,n[eV++]=e0>>>16&65535,n[eV++]=e2>>>0&65535,n[eV++]=e2>>>16&65535,n[eV++]=e1>>>0&65535,n[eV]=e1>>>16&65535;return;case 32:for(let a=0;a<32;a=a+1|0)n[r+a|0]=0|t[i+a|0];return}let e3=ha[a]>>>0,e5=i,e4=0,e6=t[e5]>>>0;for(let i=0;i<32;i++)if(e4+a<=32){let o=e6>>>e4&e3;n[r+i]=0|o,32===(e4+=a)&&(e4=0,e5++,31!==i&&(e6=t[e5]>>>0))}else{let o=32-e4,s=(e6>>>e4|((e6=t[++e5]>>>0)&ha[a-o]>>>0)<<o)&e3;n[r+i]=0|s,e4=a-o}})(t,i,d,h,o),i=i+o|0;i=i-((h-s|0)*o>>>5)|0,n.exceptionSizes[o]=s}return i}(t,p,o);return o.dataPointers.fill(0),function(t,i,n,r,a,o,s,l,c,d){let h=0|n,u=0;for(let i=0;i<s;i=i+1|0){let n=function(t,i,n,r){if(n+2>i)throw Error(`FastPFOR decode: byteContainer underflow at block=${r} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${n}, byteSize=${i})`);let a=t[n++],o=t[n++];if(a>32)throw Error(`FastPFOR decode: invalid bitWidth=${a} at block=${r} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:a,exceptionCount:o,bytePosIn:n}}(l,c,u,i);u=n.bytePosIn;let r=n.bitWidth,s=n.exceptionCount,p=o+256*i|0;switch(r){case 0:a.fill(0,p,p+256);break;case 32:for(let i=0;i<256;i=i+1|0)a[p+i|0]=0|t[h+i|0];h=h+256|0;break;default:h=function(t,i,n,r,a){switch(a){case 1:let o=r,s=i;for(let i=0;i<8;i++){let i=t[s++]>>>0;n[o++]=i>>>0&1,n[o++]=i>>>1&1,n[o++]=i>>>2&1,n[o++]=i>>>3&1,n[o++]=i>>>4&1,n[o++]=i>>>5&1,n[o++]=i>>>6&1,n[o++]=i>>>7&1,n[o++]=i>>>8&1,n[o++]=i>>>9&1,n[o++]=i>>>10&1,n[o++]=i>>>11&1,n[o++]=i>>>12&1,n[o++]=i>>>13&1,n[o++]=i>>>14&1,n[o++]=i>>>15&1,n[o++]=i>>>16&1,n[o++]=i>>>17&1,n[o++]=i>>>18&1,n[o++]=i>>>19&1,n[o++]=i>>>20&1,n[o++]=i>>>21&1,n[o++]=i>>>22&1,n[o++]=i>>>23&1,n[o++]=i>>>24&1,n[o++]=i>>>25&1,n[o++]=i>>>26&1,n[o++]=i>>>27&1,n[o++]=i>>>28&1,n[o++]=i>>>29&1,n[o++]=i>>>30&1,n[o++]=i>>>31&1}break;case 2:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0;n[a++]=i>>>0&3,n[a++]=i>>>2&3,n[a++]=i>>>4&3,n[a++]=i>>>6&3,n[a++]=i>>>8&3,n[a++]=i>>>10&3,n[a++]=i>>>12&3,n[a++]=i>>>14&3,n[a++]=i>>>16&3,n[a++]=i>>>18&3,n[a++]=i>>>20&3,n[a++]=i>>>22&3,n[a++]=i>>>24&3,n[a++]=i>>>26&3,n[a++]=i>>>28&3,n[a++]=i>>>30&3,n[a++]=r>>>0&3,n[a++]=r>>>2&3,n[a++]=r>>>4&3,n[a++]=r>>>6&3,n[a++]=r>>>8&3,n[a++]=r>>>10&3,n[a++]=r>>>12&3,n[a++]=r>>>14&3,n[a++]=r>>>16&3,n[a++]=r>>>18&3,n[a++]=r>>>20&3,n[a++]=r>>>22&3,n[a++]=r>>>24&3,n[a++]=r>>>26&3,n[a++]=r>>>28&3,n[a++]=r>>>30&3}}(t,i,n,r);break;case 3:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0;n[a++]=i>>>0&7,n[a++]=i>>>3&7,n[a++]=i>>>6&7,n[a++]=i>>>9&7,n[a++]=i>>>12&7,n[a++]=i>>>15&7,n[a++]=i>>>18&7,n[a++]=i>>>21&7,n[a++]=i>>>24&7,n[a++]=i>>>27&7,n[a++]=(i>>>30|(1&r)<<2)&7,n[a++]=r>>>1&7,n[a++]=r>>>4&7,n[a++]=r>>>7&7,n[a++]=r>>>10&7,n[a++]=r>>>13&7,n[a++]=r>>>16&7,n[a++]=r>>>19&7,n[a++]=r>>>22&7,n[a++]=r>>>25&7,n[a++]=r>>>28&7,n[a++]=(r>>>31|(3&s)<<1)&7,n[a++]=s>>>2&7,n[a++]=s>>>5&7,n[a++]=s>>>8&7,n[a++]=s>>>11&7,n[a++]=s>>>14&7,n[a++]=s>>>17&7,n[a++]=s>>>20&7,n[a++]=s>>>23&7,n[a++]=s>>>26&7,n[a++]=s>>>29&7}}(t,i,n,r);break;case 4:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0;n[a++]=i>>>0&15,n[a++]=i>>>4&15,n[a++]=i>>>8&15,n[a++]=i>>>12&15,n[a++]=i>>>16&15,n[a++]=i>>>20&15,n[a++]=i>>>24&15,n[a++]=i>>>28&15,n[a++]=r>>>0&15,n[a++]=r>>>4&15,n[a++]=r>>>8&15,n[a++]=r>>>12&15,n[a++]=r>>>16&15,n[a++]=r>>>20&15,n[a++]=r>>>24&15,n[a++]=r>>>28&15,n[a++]=s>>>0&15,n[a++]=s>>>4&15,n[a++]=s>>>8&15,n[a++]=s>>>12&15,n[a++]=s>>>16&15,n[a++]=s>>>20&15,n[a++]=s>>>24&15,n[a++]=s>>>28&15,n[a++]=l>>>0&15,n[a++]=l>>>4&15,n[a++]=l>>>8&15,n[a++]=l>>>12&15,n[a++]=l>>>16&15,n[a++]=l>>>20&15,n[a++]=l>>>24&15,n[a++]=l>>>28&15}}(t,i,n,r);break;case 5:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0;n[a++]=i>>>0&31,n[a++]=i>>>5&31,n[a++]=i>>>10&31,n[a++]=i>>>15&31,n[a++]=i>>>20&31,n[a++]=i>>>25&31,n[a++]=(i>>>30|(7&r)<<2)&31,n[a++]=r>>>3&31,n[a++]=r>>>8&31,n[a++]=r>>>13&31,n[a++]=r>>>18&31,n[a++]=r>>>23&31,n[a++]=(r>>>28|(1&s)<<4)&31,n[a++]=s>>>1&31,n[a++]=s>>>6&31,n[a++]=s>>>11&31,n[a++]=s>>>16&31,n[a++]=s>>>21&31,n[a++]=s>>>26&31,n[a++]=(s>>>31|(15&l)<<1)&31,n[a++]=l>>>4&31,n[a++]=l>>>9&31,n[a++]=l>>>14&31,n[a++]=l>>>19&31,n[a++]=l>>>24&31,n[a++]=(l>>>29|(3&c)<<3)&31,n[a++]=c>>>2&31,n[a++]=c>>>7&31,n[a++]=c>>>12&31,n[a++]=c>>>17&31,n[a++]=c>>>22&31,n[a++]=c>>>27&31}}(t,i,n,r);break;case 6:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,d=t[o++]>>>0;n[a++]=i>>>0&63,n[a++]=i>>>6&63,n[a++]=i>>>12&63,n[a++]=i>>>18&63,n[a++]=i>>>24&63,n[a++]=(i>>>30|(15&r)<<2)&63,n[a++]=r>>>4&63,n[a++]=r>>>10&63,n[a++]=r>>>16&63,n[a++]=r>>>22&63,n[a++]=(r>>>28|(3&s)<<4)&63,n[a++]=s>>>2&63,n[a++]=s>>>8&63,n[a++]=s>>>14&63,n[a++]=s>>>20&63,n[a++]=s>>>26&63,n[a++]=l>>>0&63,n[a++]=l>>>6&63,n[a++]=l>>>12&63,n[a++]=l>>>18&63,n[a++]=l>>>24&63,n[a++]=(l>>>30|(15&c)<<2)&63,n[a++]=c>>>4&63,n[a++]=c>>>10&63,n[a++]=c>>>16&63,n[a++]=c>>>22&63,n[a++]=(c>>>28|(3&d)<<4)&63,n[a++]=d>>>2&63,n[a++]=d>>>8&63,n[a++]=d>>>14&63,n[a++]=d>>>20&63,n[a++]=d>>>26&63}}(t,i,n,r);break;case 7:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,d=t[o++]>>>0,h=t[o++]>>>0;n[a++]=i>>>0&127,n[a++]=i>>>7&127,n[a++]=i>>>14&127,n[a++]=i>>>21&127,n[a++]=(i>>>28|(7&r)<<4)&127,n[a++]=r>>>3&127,n[a++]=r>>>10&127,n[a++]=r>>>17&127,n[a++]=r>>>24&127,n[a++]=(r>>>31|(63&s)<<1)&127,n[a++]=s>>>6&127,n[a++]=s>>>13&127,n[a++]=s>>>20&127,n[a++]=(s>>>27|(3&l)<<5)&127,n[a++]=l>>>2&127,n[a++]=l>>>9&127,n[a++]=l>>>16&127,n[a++]=l>>>23&127,n[a++]=(l>>>30|(31&c)<<2)&127,n[a++]=c>>>5&127,n[a++]=c>>>12&127,n[a++]=c>>>19&127,n[a++]=(c>>>26|(1&d)<<6)&127,n[a++]=d>>>1&127,n[a++]=d>>>8&127,n[a++]=d>>>15&127,n[a++]=d>>>22&127,n[a++]=(d>>>29|(15&h)<<3)&127,n[a++]=h>>>4&127,n[a++]=h>>>11&127,n[a++]=h>>>18&127,n[a++]=h>>>25&127}}(t,i,n,r);break;case 8:!function(t,i,n,r){let a=r,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,r=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,d=t[o++]>>>0,h=t[o++]>>>0,u=t[o++]>>>0;n[a++]=i>>>0&255,n[a++]=i>>>8&255,n[a++]=i>>>16&255,n[a++]=i>>>24&255,n[a++]=r>>>0&255,n[a++]=r>>>8&255,n[a++]=r>>>16&255,n[a++]=r>>>24&255,n[a++]=s>>>0&255,n[a++]=s>>>8&255,n[a++]=s>>>16&255,n[a++]=s>>>24&255,n[a++]=l>>>0&255,n[a++]=l>>>8&255,n[a++]=l>>>16&255,n[a++]=l>>>24&255,n[a++]=c>>>0&255,n[a++]=c>>>8&255,n[a++]=c>>>16&255,n[a++]=c>>>24&255,n[a++]=d>>>0&255,n[a++]=d>>>8&255,n[a++]=d>>>16&255,n[a++]=d>>>24&255,n[a++]=h>>>0&255,n[a++]=h>>>8&255,n[a++]=h>>>16&255,n[a++]=h>>>24&255,n[a++]=u>>>0&255,n[a++]=u>>>8&255,n[a++]=u>>>16&255,n[a++]=u>>>24&255}}(t,i,n,r);break;case 16:let l=r,c=i;for(let i=0;i<128;i++){let i=t[c++]>>>0;n[l++]=65535&i,n[l++]=i>>>16&65535}break;default:!function(t,i,n,r,a){let o=ha[a]>>>0,s=i,l=0,c=t[s]>>>0,d=r;for(let i=0;i<8;i++){for(let i=0;i<32;i++)if(l+a<=32){let r=c>>>l&o;n[d+i]=0|r,32===(l+=a)&&(l=0,s++,31!==i&&(c=t[s]>>>0))}else{let r=32-l,h=c>>>l;c=t[++s]>>>0;let u=a-r,p=(h|(c&-1>>>32-u>>>0)<<r)&o;n[d+i]=0|p,l=u}d+=32,l=0,i<7&&(c=t[s]>>>0)}}(t,i,n,r,a)}return i+(a<<3)|0}(t,h,a,p,r)}s>0&&(u=function(t,i,n,r,a,o,s,l,c){let{maxBits:d,exceptionBitWidth:h,bytePosIn:u}=function(t,i,n,r,a,o){if(n+1>i)throw Error(`FastPFOR decode: exception header underflow at block=${o} (need 1 byte for maxBits, bytePos=${n}, byteSize=${i})`);let s=t[n++];if(s<r||s>32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${o} (bitWidth=${r}, expected ${r}..32)`);let l=s-r|0;if(l<1||l>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${l} at block=${o} (bitWidth=${r}, maxBits=${s})`);if(n+a>i)throw Error(`FastPFOR decode: exception positions underflow at block=${o} (need=${a}, have=${i-n})`);return{maxBits:s,exceptionBitWidth:l,bytePosIn:n}}(a,o,s,n,r,c);if(s=u,1===h){let o=1<<n;for(let n=0;n<r;n=n+1|0){let n=a[s++];t[n+i|0]|=o}return s}let p=l.dataToBePacked[h];if(!p)throw Error(`FastPFOR decode: missing exception stream for exceptionBitWidth=${h} (bitWidth=${n}, maxBits=${d}) at block ${c}`);let m=l.dataPointers,f=0|m[h],g=0|l.exceptionSizes[h];if(f+r>g)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${f}, need ${r}, size=${g}) at block ${c}`);for(let o=0;o<r;o=o+1|0){let r=a[s++],o=0|p[f++];t[r+i|0]|=o<<n}return m[h]=f,s}(a,p,r,s,l,c,u,d,i))}if(h!==r)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${i}, packedStart=${n}, consumedPackedEnd=${h}, expectedPackedEnd=${r}, packedWords=${r-n}, encoded.length=${t.length})`)}(t,s,s+1|0,c,i,0|r,a/256|0,m,d,o),f}(t,i,c,l,n,o),l=l+n|0}return c}(t,o,r,a,i,s),a=a+i|0}let l=t.length-r|0,c=i-a|0;return function(t,i,n,r,a,o){if(0===o)return;let s=0,l=i,c=i+n,d=a,h=a+o,u=0,p=0;for(;l<c&&d<h;){let i=t[l]>>>s&255;if(s+=8,l+=s>>>5,s&=31,u|=(127&i)<<p,128&i)r[d++]=0|u,u=0,p=0;else if((p+=7)>28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${p}, partial=${u}, decoded=${d-a}/${o}, inPos=${l}, inEnd=${c})`)}if(d!==h)throw Error(`FastPFOR VByte: truncated stream (decoded=${d-a}, expected=${o}, consumedWords=${l-i}/${n}, vbyteStart=${i}, vbyteEnd=${c})`)}(t,r,l,o,a,c),o}(l.subarray(0,s),i,a.decoderWorkspace);return r.add(n),c}(t,a,o=n.byteLength,i,function(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);return{encodedWords:new Uint32Array(Math.max(16,0|t)),decoderWorkspace:hl()}}(o>>>2));case ux.VARINT:return hc(t,i,n.numValues);case ux.NONE:return function(t,i,n){let r=i.get(),a=n*Uint32Array.BYTES_PER_ELEMENT,o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=new Uint32Array(n);for(let t=0;t<n;t++)s[t]=o.getUint32(r+t*Uint32Array.BYTES_PER_ELEMENT,!0);return i.add(a),s}(t,i,n.numValues);default:throw Error(`Specified physicalLevelTechnique ${r} is not supported (yet).`)}}function hU(t,i,n){let r=n.physicalLevelTechnique;switch(r){case ux.VARINT:return hd(t,i,n.numValues);case ux.NONE:return function(t,i,n){let r=i.get(),a=n*BigUint64Array.BYTES_PER_ELEMENT,o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=new BigUint64Array(n);for(let t=0;t<n;t++)s[t]=o.getBigUint64(r+t*BigUint64Array.BYTES_PER_ELEMENT,!0);return i.add(a),s}(t,i,n.numValues);default:throw Error(`Specified physicalLevelTechnique ${r} is not supported (yet).`)}}function hq(t,i,n){let r=hj(t,i,n);return 1===r.length?n.logicalLevelTechnique1===hn.DELTA?hh(r[0]):r[0]:r[1]}function hG(t,i,n){var r=hj(t,i,n);if(2===r.length){let t=hh(r[1]);return[t,t]}return[hh(r[2]),hh(r[3])]}function hH(t,i,n){var r=hd(t,i,n.numValues);if(2===r.length){let t=hu(r[1]);return[t,t]}return[hu(r[2]),hu(r[3])]}function hZ(t,i,n,r){return hY(hU(t,i,n),n,r)}function hX(t,i,n){let r=hU(t,i,n);return 1===r.length?n.logicalLevelTechnique1===hn.DELTA?hu(r[0]):r[0]:r[1]}function hW(t,i,n){let r;switch(i.logicalLevelTechnique1){case hn.DELTA:if(i.logicalLevelTechnique2===hn.RLE){if(!n)return function(t,i,n){let r=new BigInt64Array(n),a=0,o=0n;for(let n=0;n<i;n++){let s=Number(t[n]),l=hu(t[n+i]);for(let t=0;t<s;t++)o+=l,r[a++]=o}return r}(t,i.runs,i.numRleValues);r=hv(t=hf(t,i.runs,i.numRleValues))}else r=hv(t);break;case hn.RLE:r=function(t,i,n){if(void 0===n){n=0;for(let r=0;r<i;r++)n+=Number(t[r])}let r=new BigInt64Array(n),a=0;for(let n=0;n<i;n++){let o=Number(t[n]),s=t[n+i];s=hu(s),r.fill(s,a,a+o),a+=o}return r}(t,i.runs,i.numRleValues);break;case hn.NONE:r=function(t){let i=new BigInt64Array(t.length);for(let n=0;n<t.length;n++)i[n]=hu(t[n]);return i}(t);break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return n?hM(r,n,0n):r}function hY(t,i,n){let r;switch(i.logicalLevelTechnique1){case hn.DELTA:r=i.logicalLevelTechnique2===hn.RLE?hC(hf(t,i.runs,i.numRleValues)):hC(t);break;case hn.RLE:r=hf(t,i.runs,i.numRleValues);break;case hn.NONE:r=t;break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return n?hM(r,n,0n):r}function hK(t,i,n,r,a="int32"){let o=t.logicalLevelTechnique1;if(o===hn.RLE)return 1===t.runs?uk.CONST:uk.FLAT;if(o!==hn.DELTA||t.logicalLevelTechnique2!==hn.RLE)return 1===t.numValues?uk.CONST:uk.FLAT;let s=i instanceof hP?i.size():i;if(t.numRleValues!==s)return uk.FLAT;if(1===t.runs)return uk.SEQUENCE;if(2!==t.runs)return 1===t.numValues?uk.CONST:uk.FLAT;let l=r.get();if(t.physicalLevelTechnique===ux.VARINT)return!function(t,i,n){let r=new hr(i.get());if("int64"===n){let i=hd(t,r,4);return 2n===i[2]&&2n===i[3]}let a=hc(t,r,4);return 2===a[2]&&2===a[3]}(n,r,a)?1===t.numValues?uk.CONST:uk.FLAT:uk.SEQUENCE;let c=r.get(),d=new Int32Array(n.buffer,n.byteOffset+c,4);return r.set(l),2===d[2]&&2===d[3]?uk.SEQUENCE:1===t.numValues?uk.CONST:uk.FLAT}var hJ=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},hQ=class extends d6{constructor(t,i,n,r,a){super(t,a?BigInt64Array.of(i):BigUint64Array.of(i),n,r)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function h0(t,i,n){return{x:h2(t,i)-n,y:h2(t>>1,i)-n}}function h2(t,i){let n=0;for(let r=0;r<i;r++)n|=(t&1<<2*r)>>r;return n}function h1(t,i,n,r,a,o,s){return t===uS.MORTON?function(t,i,n,r,a,o){let s=Array(a?r+1:r);for(let a=0;a<r;a++){let r=h0(t[i[n+a]],o.numBits,o.coordinateShift);s[a]=new R(r.x,r.y)}return a&&(s[s.length-1]=s[0]),s}(i,n,r,a,o,s):function(t,i,n,r,a){let o=Array(a?r+1:r);for(let a=0;a<2*r;a+=2){let r=2*i[n+a/2],s=t[r],l=t[r+1];o[a/2]=new R(s,l)}return a&&(o[o.length-1]=o[0]),o}(i,n,r,a,o)}function h3(t,i,n,r){let a=Array(r?n+1:n);for(let r=0;r<2*n;r+=2){let n=t[i+r],o=t[i+r+1];a[r/2]=new R(n,o)}return r&&(a[a.length-1]=a[0]),a}(uv=uA||={})[uv.POINT=0]="POINT",uv[uv.LINESTRING=1]="LINESTRING",uv[uv.POLYGON=2]="POLYGON",uv[uv.MULTIPOINT=3]="MULTIPOINT",uv[uv.MULTILINESTRING=4]="MULTILINESTRING",uv[uv.MULTIPOLYGON=5]="MULTIPOLYGON",(uy=uI||={})[uy.POINT=0]="POINT",uy[uy.LINESTRING=1]="LINESTRING",uy[uy.POLYGON=2]="POLYGON",(ub=uS||={})[ub.MORTON=0]="MORTON",ub[ub.VEC_2=1]="VEC_2",ub[ub.VEC_3=2]="VEC_3";var h5=class{constructor(t,i,n,r,a){this._vertexBufferType=t,this._topologyVector=i,this._vertexOffsets=n,this._vertexBuffer=r,this._mortonSettings=a}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(t){let i=this.vertexOffsets?2*this.vertexOffsets[t]:2*t;return[this.vertexBuffer[i],this.vertexBuffer[i+1]]}getVertex(t){if(this.vertexOffsets&&this.mortonSettings){let i=this.vertexOffsets[t],n=h0(this.vertexBuffer[i],this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[n.x,n.y]}let i=this.vertexOffsets?2*this.vertexOffsets[t]:2*t;return[this.vertexBuffer[i],this.vertexBuffer[i+1]]}getGeometries(){return function(t){let i=Array(t.numGeometries),n=1,r=1,a=1,o=0,s=0,l=0,c=t.mortonSettings,d=t.topologyVector,h=d.geometryOffsets,u=d.partOffsets,p=d.ringOffsets,m=t.vertexOffsets,f=!m||0===m.length,g=t.containsPolygonGeometry(),_=t.vertexBuffer;for(let d=0;d<t.numGeometries;d++){let v=t.geometryType(d);switch(v){case uA.POINT:{let d,g;if(f)d=_[s++],g=_[s++];else if(t.vertexBufferType===uS.MORTON){let t=h0(_[m[l++]],c.numBits,c.coordinateShift);d=t.x,g=t.y}else{let t=2*m[l++];d=_[t],g=_[t+1]}i[o++]=[[new R(d,g)]],h&&a++,u&&n++,p&&r++}break;case uA.MULTIPOINT:{let d,u=h[a]-h[a-1];if(a++,f){d=Array(u);for(let t=0;t<u;t++){let i=_[s++],n=_[s++];d[t]=new R(i,n)}}else d=h1(t.vertexBufferType,_,m,l,u,!1,c),l+=u;i[o++]=d.map(t=>[t]),n+=u,r+=u}break;case uA.LINESTRING:{let d,v;g?(d=p[r]-p[r-1],r++):d=u[n]-u[n-1],n++,f?(v=h3(_,s,d,!1),s+=2*d):(v=h1(t.vertexBufferType,_,m,l,d,!1,c),l+=d),i[o++]=[v],h&&a++}break;case uA.POLYGON:{let d=u[n]-u[n-1];n++;let g=Array(d-1),v,y=p[r]-p[r-1];if(r++,f){v=h3(_,s,y,!0),s+=2*y;for(let t=0;t<g.length;t++)y=p[r]-p[r-1],r++,g[t]=h3(_,s,y,!0),s+=2*y}else{v=h1(t.vertexBufferType,_,m,l,y,!0,c),l+=y;for(let i=0;i<g.length;i++)y=p[r]-p[r-1],r++,g[i]=h1(t.vertexBufferType,_,m,l,y,!0,c),l+=y}i[o++]=[v].concat(g),h&&a++}break;case uA.MULTILINESTRING:{let d=h[a]-h[a-1];a++;let v=Array(d);for(let i=0;i<d;i++){let a;if(g?(a=p[r]-p[r-1],r++):a=u[n]-u[n-1],n++,f)v[i]=h3(_,s,a,!1),s+=2*a;else{let n=h1(t.vertexBufferType,_,m,l,a,!1,c);v[i]=n,l+=a}}i[o++]=v}break;case uA.MULTIPOLYGON:{let d=h[a]-h[a-1];a++;let g=Array(d);for(let i=0;i<d;i++){let a=u[n]-u[n-1];n++;let o,d=Array(a-1),h=p[r]-p[r-1];r++,f?(o=h3(_,s,h,!0),s+=2*h):(o=h1(t.vertexBufferType,_,m,l,h,!0,c),l+=h);for(let i=0;i<d.length;i++){let n=p[r]-p[r-1];r++,f?(d[i]=h3(_,s,n,!0),s+=2*n):(d[i]=h1(t.vertexBufferType,_,m,l,n,!0,c),l+=n)}g[i]=[o].concat(d)}i[o++]=g.flat()}break;default:throw Error(`The specified geometry type (${v}) is currently not supported.`)}}return i}(this)}get mortonSettings(){return this._mortonSettings}},h4=class extends h5{constructor(t,i,n,r,a,o,s){super(n,r,a,o,s),this._numGeometries=t,this._geometryType=i}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===uA.POLYGON||this._geometryType===uA.MULTIPOLYGON}containsSingleGeometryType(){return!0}};function h6(t,i,n,r){return new h8(uS.VEC_2,t,i,n,r)}var h8=class extends h5{constructor(t,i,n,r,a,o){super(t,n,r,a,o),this._geometryTypes=i}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let t=0;t<this.numGeometries;t++)if(this.geometryType(t)===uA.POLYGON||this.geometryType(t)===uA.MULTIPOLYGON)return!0;return!1}containsSingleGeometryType(){return!1}},h7=class{constructor(t,i,n,r){this._triangleOffsets=t,this._indexBuffer=i,this._vertexBuffer=n,this._topologyVector=r}get triangleOffsets(){return this._triangleOffsets}get indexBuffer(){return this._indexBuffer}get vertexBuffer(){return this._vertexBuffer}get topologyVector(){return this._topologyVector}getGeometries(){if(!this._topologyVector)throw Error("Cannot convert GpuVector to coordinates without topology information");let t=new Uint32Array(this.numGeometries);for(let i=0;i<this.numGeometries;i++)t[i]=this.geometryType(i);return h6(t,this._topologyVector,void 0,this._vertexBuffer).getGeometries()}[Symbol.iterator](){return null}},h9=class extends h7{constructor(t,i,n,r,a,o){super(n,r,a,o),this._numGeometries=t,this._geometryType=i}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}},ue=class extends h7{constructor(t,i,n,r,a){super(i,n,r,a),this._geometryTypes=t}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}};function ut(t,i,n){let r=new Uint32Array(t.length+1),a=0;r[0]=a;let o=0;for(let s=0;s<t.length;s++)a=r[s+1]=a+(t[s]>n?i[o++]:1);return r}function ui(t,i,n,r){let a=new Uint32Array(i[i.length-1]+1),o=0;a[0]=o;let s=1,l=0;for(let c=0;c<t.length;c++){let d=t[c],h=i[c+1]-i[c];if(5===d||2===d||r&&(4===d||1===d))for(let t=0;t<h;t++)o=a[s++]=o+n[l++];else for(let t=0;t<h;t++)a[s++]=++o}return a}var un=class extends d1{constructor(t,i,n){super(t,i.getBuffer(),n),this.dataVector=i}getValueFromBuffer(t){return this.dataVector.get(t)}},ur=class extends d3{getValueFromBuffer(t){return this.dataBuffer[t]}},ua=class extends d1{constructor(t,i,n,r){super(t,r?BigInt64Array.of(i):BigUint64Array.of(i),n)}getValueFromBuffer(t){return this.dataBuffer[0]}},uo=class extends d1{constructor(t,i,n,r){super(t,n,r),this.offsetBuffer=i}},us=class extends uo{constructor(t,i,n,r){super(t,i,n,r??i.length-1)}getValueFromBuffer(t){let i=this.offsetBuffer[t],n=this.offsetBuffer[t+1];return hB(this.dataBuffer,i,n)}},ul=class extends uo{constructor(t,i,n,r,a){super(t,n,r,a??i.length),this.indexBuffer=i,this.indexBuffer=i}getValueFromBuffer(t){let i=this.indexBuffer[t],n=this.offsetBuffer[i],r=this.offsetBuffer[i+1];return hB(this.dataBuffer,n,r)}},uc=class extends uo{constructor(t,i,n,r,a,o,s,l){super(t,n,r,s??i.length),this.indexBuffer=i,this.symbolOffsetBuffer=a,this.symbolTableBuffer=o,this.sharedDictionaryCache=l}getValueFromBuffer(t){this.decodedDictionary??(this.decodedDictionary=this.sharedDictionaryCache?.decodedDictionary,this.decodedDictionary??(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let i=this.indexBuffer[t],n=this.offsetBuffer[i],r=this.offsetBuffer[i+1];return hB(this.decodedDictionary,n,r)}decodeDictionary(){return this.symbolLengthBuffer??=this.offsetToLengthBuffer(this.symbolOffsetBuffer),function(t,i,n){let r=new Uint32Array(i.length);for(let t=1;t<i.length;t++)r[t]=r[t-1]+i[t-1];let a=new Uint8Array(function(t,i){let n=0;for(let r=0;r<i.length;r++){let a=i[r];255===a?(n++,r++):n+=t[a]}return n}(i,n)),o=0;for(let s=0;s<n.length;s++){let l=n[s];if(255===l)s++,a[o++]=n[s];else{let n=i[l],s=r[l];for(;n-- >0;)a[o++]=t[s++]}}return a}(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let i=new Uint32Array(t.length-1),n=t[0];for(let r=1;r<t.length;r++){let a=t[r];i[r-1]=a-n,n=a}return i}};function ud(t,i,n,r,a){let o,s,l,c,d,h=a,u,p;for(let t=0;t<r;t++){let t=hD(i,n);switch(t.physicalStreamType){case uw.PRESENT:{let r=new hP(hL(i,t.numValues,t.byteLength,n),t.numValues);h=a??r;break}case uw.OFFSET:s=hV(i,n,t,void 0,h);break;case uw.LENGTH:{let r=h$(i,n,t);uT.DICTIONARY===t.logicalStreamType.lengthType?o=r:uT.SYMBOL===t.logicalStreamType.lengthType?c=r:u=r;break}case uw.DATA:{let r=i.subarray(n.get(),n.get()+t.byteLength);n.add(t.byteLength);let a=t.logicalStreamType.dictionaryType;uC.FSST===a?d=r:uC.SINGLE===a||uC.SHARED===a?l=r:uC.NONE===a&&(p=r)}}}return function(t,i,n,r,a,o,s){if(i){if(!n||!r||!a||!o)throw Error(`Incomplete FSST dictionary string column "${t}"`);return new uc(t,n,r,a,o,i,s)}}(t,d,s,o,l,c,h)??function(t,i,n,r,a){if(i){if(!n||!r)throw Error(`Incomplete dictionary string column "${t}"`);return a?new ul(t,n,r,i,a):new ul(t,n,r,i)}}(t,l,s,o,h)??function(t,i,n,r,a){if(i&&n){if(r)return a?new ul(t,r,i,n,a):new ul(t,r,i,n);if(a&&a.size()!==i.length-1){let r=new Uint32Array(a.size()),o=0;for(let t=0;t<a.size();t++)a.get(t)?r[t]=o++:r[t]=0;return new ul(t,r,i,n,a)}return a?new us(t,i,n,a):new us(t,i,n)}}(t,u,p,s,h)}var uh,uu,up,um,uf,ug,u_,uv,uy,ub,ux,uw,uC,uE,uT,uk,uA,uI,uS,uD,uP=class extends d1{constructor(t,i,n){super(t,new Uint8Array,n??i.length),this.values=i}getValueFromBuffer(t){return this.values[t]}};function uM(t,i,n,r){let a=Object.create(null),o=i;for(;o<n;){let i=uR(t[o++],r);if("string"!=typeof i)throw Error(`Map key dictionary index does not resolve to a string: ${i}`);let s=uz(t,o,n,r);a[i]=s.value,o=s.nextIndex}return{value:a,nextIndex:o}}function uz(t,i,n,r){if(i>=n)throw Error("Unexpected end of map value stream");let a=t[i];if(a===A.FALSE)return{value:!1,nextIndex:i+1};if(a===A.TRUE)return{value:!0,nextIndex:i+1};if(a===A.START_MAP){let a=uL(t,i,n);return{value:uM(t,i+2,a,r).value,nextIndex:a}}if(a===A.START_LIST){let a=uL(t,i,n),o=[],s=i+2;for(;s<a;){let i=uz(t,s,a,r);o.push(i.value),s=i.nextIndex}return{value:o,nextIndex:a}}return{value:uR(a,r),nextIndex:i+1}}function uL(t,i,n){if(i+1>=n)throw Error("Missing length for nested map/list payload");let r=t[i+1];if(r<2)throw Error(`Invalid nested payload length: ${r}`);let a=i+r;if(a>n)throw Error("Nested payload exceeds containing payload bounds");return a}function uR(t,i){let n=t-A.COUNT;if(n<0||n>=i.length)throw Error(`Scalar dictionary index out of range: ${t}`);return i[n]}function uF(t,i){for(let n of i)t.push(n)}function uO(t){return t instanceof hP}(T=uD||={})[T.STRING=1]="STRING",T[T.INT32=2]="INT32",T[T.UINT32=4]="UINT32",T[T.INT64=8]="INT64",T[T.UINT64=16]="UINT64",T[T.FLOAT=32]="FLOAT",T[T.DOUBLE=64]="DOUBLE",T[T.PRESENCE=128]="PRESENCE",(k=A||={})[k.FALSE=0]="FALSE",k[k.TRUE=1]="TRUE",k[k.START_MAP=2]="START_MAP",k[k.START_LIST=3]="START_LIST",k[k.COUNT=4]="COUNT";function uB(t){switch(t){case 0:case 1:case 2:case 3:return{nullable:(1&t)!=0,columnScope:0,type:"scalarType",scalarType:{longID:(2&t)!=0,type:"logicalType",logicalType:0}};case 4:return{nullable:!1,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:0,children:[]}};case 30:return{nullable:!1,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:1,children:[]}};case 31:return{nullable:!0,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:2,children:[]}};default:let i;var n=t;switch(n){case 10:case 11:i=0;break;case 12:case 13:i=1;break;case 14:case 15:i=2;break;case 16:case 17:i=3;break;case 18:case 19:i=4;break;case 20:case 21:i=5;break;case 22:case 23:i=6;break;case 24:case 25:i=7;break;case 26:case 27:i=8;break;case 28:case 29:i=9;break;default:return null}return{nullable:!!(1&n),columnScope:0,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:i}}}}function uN(t){return 30===t||31===t}let uV=new TextDecoder,u$="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function uj(t,i){let n=hc(t,i,1)[0];if(0===n)return"";let r=i.get(),a=t.subarray(r,r+n);return i.add(n),uV.decode(a)}var uU=class{constructor(t,i){switch(this._featureData=t,this.properties=this._featureData.properties||{},this._featureData.geometry?.type){case uA.POINT:case uA.MULTIPOINT:this.type=1;break;case uA.LINESTRING:case uA.MULTILINESTRING:this.type=2;break;case uA.POLYGON:case uA.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=i,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let i of this._featureData.geometry.coordinates){let n=[];for(let t of i)n.push(new R(t.x,t.y));t.push(n)}return t}},uq=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new uU(this.features[t],this.extent)}},uG=class{constructor(t){this.layers={};let i=function(t,i=!0){let n=new hr(0),r=[];for(;n.get()<t.length;){let s=hc(t,n,1)[0]>>>0,l=n.get()+s;if(l>t.length)throw Error(`Block overruns tile: ${l} > ${t.length}`);let c=hc(t,n,1)[0]>>>0;if(1!==c&&2!==c){n.set(l);continue}let[d,h]=function(t,i){let n={};n.featureTables=[];let r={};if(r.name=uj(t,i),0===r.name.length)throw Error("Missing layer name");let a=hc(t,i,1)[0]>>>0,o=hc(t,i,1)[0]>>>0;r.columns=Array(o);for(let n=0;n<o;n++)r.columns[n]=function(t,i){let n,r=hc(t,i,1)[0]>>>0,a=uB(r);if(!a)throw Error(`Unsupported column type code ${r}. Supported: ${u$}`);if(r>=10)n=uj(t,i);else if(r<4)n="id";else if(4===r)n="geometry";else throw Error(`Unsupported column type code ${r}. Supported: ${u$}`);let o={...a,name:n};if("complexType"===o.type&&uN(r)){let n=hc(t,i,1)[0]>>>0,r=o.complexType;r.children=Array(n);for(let a=0;a<n;a++)r.children[a]=function t(i,n){let r,a,o=hc(i,n,1)[0]>>>0,s=o>=10?uB(o):null;if(!s)throw Error(`Unsupported field type code ${o}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let l={...s,name:uj(i,n)};if("complexType"===l.type&&uN(o)){let r=l.complexType,a=hc(i,n,1)[0]>>>0;r.children=Array(a);for(let o=0;o<a;o++)r.children[o]=t(i,n)}return r=l.name,a=l.nullable,"scalarType"===l.type?{type:"scalarField",scalarField:l.scalarType,name:r,nullable:a}:{type:"complexField",complexField:l.complexType,name:r,nullable:a}}(t,i)}return o}(t,i);return n.featureTables.push(r),[n,a]}(t,n),u=d.featureTables[0],p=null,m=null,f=[],g=0;for(let r of u.columns){var a,o;let s=r.name;if("scalarType"===r.type&&r.scalarType?.type==="logicalType"&&0===r.scalarType.logicalType){let a=null;if(r.nullable){let i=hD(t,n),r=n.get(),o=hL(t,i.numValues,i.byteLength,n);n.set(r+i.byteLength),a=new hP(o,i.numValues)}let o=hD(t,n);g=a?a.size():o.decompressedCount,p=function(t,i,n,r,a,o,s=!1){let l=i.scalarType?.longID?6:4,c="number"==typeof o?void 0:o,d=hK(a,o,t,n,6===l?"int64":"int32");if(4===l)switch(d){case uk.FLAT:return new d5(r,hV(t,n,a,void 0,c),o);case uk.SEQUENCE:{let i=hG(t,n,a);return new d8(r,i[0],i[1],a.numRleValues,!1)}case uk.CONST:return new d7(r,hq(t,n,a),o,!1)}switch(d){case uk.FLAT:let h;return s?new d4(r,(h=function(t,i,n,r){if(n.physicalLevelTechnique===ux.VARINT)return function(t,i,n){switch(i.logicalLevelTechnique1){case hn.DELTA:return i.logicalLevelTechnique2===hn.RLE&&(t=hg(t,i.runs,i.numRleValues)),function(t){t[0]=hp(t[0]);let i=t.length/4*4,n=1;if(i>=4)for(;n<i-4;n+=4){let i=t[n],r=t[n+1],a=t[n+2],o=t[n+3];t[n]=hp(i)+t[n-1],t[n+1]=hp(r)+t[n],t[n+2]=hp(a)+t[n+1],t[n+3]=hp(o)+t[n+2]}for(;n!==t.length;++n)t[n]=hp(t[n])+t[n-1]}(t),t;case hn.RLE:var r,a;return r=t,a=i,n?function(t,i,n){let r=new Float64Array(n),a=0;for(let n=0;n<i;n++){let o=t[n],s=t[n+i];s=hp(s),r.fill(s,a,a+o),a+=o}return r}(r,a.runs,a.numRleValues):hg(r,a.runs,a.numRleValues);case hn.NONE:return n&&function(t){for(let i=0;i<t.length;i++)t[i]=hp(t[i])}(t),t;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}}(function(t,i,n){let r=new Float64Array(n);for(let a=0;a<n;a++)r[a]=function(t,i){let n,r;return r=t[i.get()],i.increment(),n=127&r,r<128||(r=t[i.get()],i.increment(),n|=(127&r)<<7,r<128)||(r=t[i.get()],i.increment(),n|=(127&r)<<14,r<128)||(r=t[i.get()],i.increment(),n|=(127&r)<<21,r<128)?n:function(t,i,n){let r,a;if(a=i[n.get()],n.increment(),r=(112&a)>>4,a<128||(a=i[n.get()],n.increment(),r|=(127&a)<<3,a<128)||(a=i[n.get()],n.increment(),r|=(127&a)<<10,a<128)||(a=i[n.get()],n.increment(),r|=(127&a)<<17,a<128)||(a=i[n.get()],n.increment(),r|=(127&a)<<24,a<128)||(a=i[n.get()],n.increment(),r|=(1&a)<<31,a<128))return 0x100000000*r+(t>>>0);throw Error("Expected varint not more than 10 bytes")}(n|=(15&(r=t[i.get()]))<<28,t,i)}(t,i);return r}(t,i,n.numValues),n,r);let a=hU(t,i,n),o=r?hW(a,n):hY(a,n);return Float64Array.from(o,Number)}(t,n,a,!1),c?hM(h,c,0):h),o):new hJ(r,hZ(t,n,a,c),o);case uk.SEQUENCE:{let i=hH(t,n,a);return new hQ(r,i[0],i[1],a.numRleValues,!1)}case uk.CONST:return new ua(r,hX(t,n,a),o,!1)}throw Error("Vector type not supported for id column.")}(t,r,n,s,o,a??g,i)}else if("complexType"===r.type&&r.complexType?.type==="physicalType"&&0===r.complexType.physicalType){let i=hc(t,n,1)[0];if(0===g){let i=n.get();g=hD(t,n).decompressedCount,n.set(i)}m=function(t,i,n,r,a){var o,s,l,c,d,h,u,p,m,f,g;let _,v,y,b=hD(t,n),x,w,C,E;if(hK(b,r,t,n)===uk.CONST){let p=hq(t,n,b),m,f,g,_;for(let r=0;r<i-1;r++){let i=hD(t,n);switch(i.physicalStreamType){case uw.LENGTH:switch(i.logicalStreamType.lengthType){case uT.GEOMETRIES:m=h$(t,n,i);break;case uT.PARTS:f=h$(t,n,i);break;case uT.RINGS:g=h$(t,n,i);break;case uT.TRIANGLES:_=h$(t,n,i)}break;case uw.OFFSET:switch(i.logicalStreamType.offsetType){case uE.VERTEX:x=hV(t,n,i);break;case uE.INDEX:E=hV(t,n,i)}break;case uw.DATA:uC.VERTEX===i.logicalStreamType.dictionaryType?w=hN(t,n,i,a):(C={numBits:i.numBits,coordinateShift:i.coordinateShift},w=hV(t,n,i,a))}}return E?void 0!==m||void 0!==f?new h9(r,p,_,E,w,{geometryOffsets:m,partOffsets:f,ringOffsets:g}):new h9(r,p,_,E,w,void 0):void 0===C?(o={geometryOffsets:m,partOffsets:f,ringOffsets:g},s=x,l=w,new h4(r,p,uS.VEC_2,o,s,l)):(c={geometryOffsets:m,partOffsets:f,ringOffsets:g},d=x,h=w,u=C,new h4(r,p,uS.MORTON,c,d,h,u))}let T=hV(t,n,b),k,A,I,S;for(let r=0;r<i-1;r++){let i=hD(t,n);switch(i.physicalStreamType){case uw.LENGTH:switch(i.logicalStreamType.lengthType){case uT.GEOMETRIES:k=hV(t,n,i);break;case uT.PARTS:A=hV(t,n,i);break;case uT.RINGS:I=hV(t,n,i);break;case uT.TRIANGLES:S=h$(t,n,i)}break;case uw.OFFSET:switch(i.logicalStreamType.offsetType){case uE.VERTEX:x=hV(t,n,i);break;case uE.INDEX:E=hV(t,n,i)}break;case uw.DATA:uC.VERTEX===i.logicalStreamType.dictionaryType?w=hN(t,n,i,a):(C={numBits:i.numBits,coordinateShift:i.coordinateShift},w=hV(t,n,i,a))}}return k?(_=ut(T,k,2),A&&I?(v=ui(T,_,A,!1),y=function(t,i,n,r){let a=new Uint32Array(n[n.length-1]+1),o=0;a[0]=o;let s=1,l=1,c=0;for(let d=0;d<t.length;d++){let h=t[d],u=i[d+1]-i[d];if(0!==h&&3!==h)for(let t=0;t<u;t++){let t=n[s]-n[s-1];s++;for(let i=0;i<t;i++)o=a[l++]=o+r[c++]}else for(let t=0;t<u;t++)a[l++]=++o,s++}return a}(T,_,v,I)):A&&(v=function(t,i,n){let r=new Uint32Array(i[i.length-1]+1),a=0;r[0]=a;let o=1,s=0;for(let l=0;l<t.length;l++){let c=t[l],d=i[l+1]-i[l];if(4===c||1===c)for(let t=0;t<d;t++)a=r[o++]=a+n[s++];else for(let t=0;t<d;t++)r[o++]=++a}return r}(T,_,A))):A&&I?(v=ut(T,A,1),y=ui(T,v,I,!0)):A&&(v=ut(T,A,0)),E&&!v?new ue(T,S,E,w,void 0):E?new ue(T,S,E,w,{geometryOffsets:_,partOffsets:v,ringOffsets:y}):void 0===C?h6(T,{geometryOffsets:_,partOffsets:v,ringOffsets:y},x,w):(p={geometryOffsets:_,partOffsets:v,ringOffsets:y},m=x,f=w,g=C,new h8(uS.MORTON,T,p,m,f,g))}(t,i,n,g,void 0)}else{let i=!function(t){if("scalarType"===t.type){let i=t.scalarType;if("physicalType"===i.type)switch(i.physicalType){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:default:return!1;case 9:return!0}if("logicalType"===i.type)return!1}else if("complexType"===t.type){let i=t.complexType;if("physicalType"===i.type)switch(i.physicalType){case 0:case 1:case 2:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}(r)?1:hc(t,n,1)[0];if(0===i)continue;let s=(a=g,o=void 0,"scalarType"===r.type?o&&!o.has(r.name)?(hz(i,t,n),null):function(t,i,n,r,a,o){let s;if(0===t)return null;if(o.nullable){let t=hD(i,n),r=t.numValues,a=n.get(),o=hL(i,r,t.byteLength,n);n.set(a+t.byteLength),s=new hP(o,t.numValues)}let l=s??r;switch(a.physicalType){case 4:case 3:return function(t,i,n,r,a){let o=hD(t,i),s=hK(o,a,t,i),l=3===r.physicalType;if(s===uk.FLAT){let r=uO(a)?a:void 0,s=l?hN(t,i,o,void 0,r):hV(t,i,o,void 0,r);return new d5(n.name,s,a)}if(s===uk.SEQUENCE){let r=hG(t,i,o);return new d8(n.name,r[0],r[1],o.numRleValues,l)}let c=l?function(t,i,n){let r=hj(t,i,n);return 1===r.length?hh(r[0]):hh(r[1])}(t,i,o):hq(t,i,o);return new d7(n.name,c,a,l)}(i,n,o,a,l);case 9:{let r=o.nullable?t-1:t;return ud(o.name,i,n,r,s)??null}case 0:return function(t,i,n,r){let a=hD(t,i),o=a.numValues,s=i.get(),l=uO(r)?r:void 0,c=hL(t,o,a.byteLength,i,l);i.set(s+a.byteLength);let d=new hP(c,o);return new un(n.name,d,r)}(i,n,o,l);case 6:case 5:return function(t,i,n,r,a){let o=hD(t,i),s=hK(o,r,t,i,"int64"),l=5===a.physicalType;if(s===uk.FLAT){let a=uO(r)?r:void 0,s=l?hW(hU(t,i,o),o,a):hZ(t,i,o,a);return new hJ(n.name,s,r)}if(s===uk.SEQUENCE){let r=hH(t,i,o);return new hQ(n.name,r[0],r[1],o.numRleValues,l)}let c=l?function(t,i,n){let r=hU(t,i,n);return 1===r.length?hu(r[0]):hu(r[1])}(t,i,o):hX(t,i,o);return new ua(n.name,c,r,l)}(i,n,o,l,a);case 7:return function(t,i,n,r){let a=hD(t,i),o=uO(r)?r:void 0,s=hR(t,i,a.numValues,o);return new ur(n.name,s,r)}(i,n,o,l);case 8:return function(t,i,n,r){let a=hD(t,i),o=uO(r)?r:void 0,s=hF(t,i,a.numValues,o);return new d4(n.name,s,r)}(i,n,o,l);default:throw Error(`The specified data type for the field is currently not supported: ${a}`)}}(i,t,n,a,r.scalarType,r):r.complexType?.physicalType===2?function(t,i,n,r){let a=function(t){let i="complexType"===t.type?t.complexType.children:void 0;return i&&0!==i.length?i.map(i=>t.name+(i.name??"")):[t.name]}(n);if(0===r)return a.map(t=>new uP(t,[]));let o=function(t,i,n){let r=t[i.get()];i.add(1);let a=hV(t,i,hD(t,i)),o=n-1,s=[];r&uD.STRING&&(o-=function(t,i,n){let r=t[i.get()];i.add(1);let a=ud("",t,i,r);if(a)for(let t=0;t<a.size;t++)n.push(a.getValue(t));return r}(t,i,s)),o-=function(t,i,n,r){var a;let o=0;return n&uD.INT32?(uF(r,hN(t,i,hD(t,i))),o++):n&uD.INT64&&(uF(r,hW(hU(t,i,a=hD(t,i)),a,void 0)),o++),n&uD.UINT32?(uF(r,hV(t,i,hD(t,i))),o++):n&uD.UINT64&&(uF(r,hZ(t,i,hD(t,i))),o++),o}(t,i,r,s),o-=function(t,i,n,r){let a=0;return n&uD.FLOAT&&(uF(r,hR(t,i,hD(t,i).numValues)),a++),n&uD.DOUBLE&&(uF(r,hF(t,i,hD(t,i).numValues)),a++),a}(t,i,r,s);let l,c=0;if(r&uD.PRESENCE){let n=function(t,i){let n=hD(t,i);if(n.physicalStreamType!==uw.PRESENT)throw Error(`Expected PRESENT stream for map column but found: ${n.physicalStreamType}`);let r=n.numValues,a=i.get(),o=new hP(hL(t,r,n.byteLength,i),r);return i.set(a+n.byteLength),{value:o,count:r}}(t,i);l=n.value,c=n.count,o--}let d=new Uint32Array;if(o>0&&(d=hV(t,i,hD(t,i)),o--),0!==o)throw Error(`Unexpected number of remaining streams while decoding map column: ${o}`);return{lengthStream:a,dictionary:s,presentStream:l,presentCount:c,flattenedValues:d}}(t,i,r),s=(o.presentStream?o.presentCount:o.lengthStream.length)/a.length,l=[],c=0,d=0;for(let t=0;t<a.length;t++){let i=function(t,i,n,r,a){let{lengthStream:o,flattenedValues:s,presentStream:l,dictionary:c}=t,d=i*n,h=n,u;if(l){u=new hP(new Uint8Array(Math.ceil(n/8)),n),h=0;for(let t=0;t<n;t++)l.get(d+t)&&(u.set(t,!0),h++)}let p=r+h;if(p>o.length)throw Error("Merged map counts underflow while decoding child streams");let m=Array(n),f=r,g=a;for(let t=0;t<n;t++){var _,v,y,b;if(l&&!l.get(d+t)){m[t]=null;continue}let i=g+o[f++];if(i>s.length)throw Error("Map value stream underflow while decoding feature payload");let n=(_=s,v=g,y=i,b=c,y-v==1||_[v]===A.START_LIST?uz(_,v,y,b):uM(_,v,y,b));m[t]=n.value,g=n.nextIndex}let x=0;for(let t=r;t<p;t++)x+=o[t];let w=a+x;if(g!==w)throw Error("Unused flattened map values remain after decode");return{value:m,nullabilityBuffer:u,countsEnd:p,valuesEnd:w}}(o,t,s,c,d);l.push(new uP(a[t],i.value,i.nullabilityBuffer)),c=i.countsEnd,d=i.valuesEnd}return l}(t,n,r,i):0===i?null:function(t,i,n,r){let a,o,s,l,c=!1;for(;!c;){let n=hD(t,i);switch(n.physicalStreamType){case uw.LENGTH:uT.DICTIONARY===n.logicalStreamType.lengthType?a=h$(t,i,n):s=h$(t,i,n);break;case uw.DATA:uC.SINGLE===n.logicalStreamType.dictionaryType||uC.SHARED===n.logicalStreamType.dictionaryType?(o=t.subarray(i.get(),i.get()+n.byteLength),c=!0):l=t.subarray(i.get(),i.get()+n.byteLength),i.add(n.byteLength)}}if("complexType"!==n.type)throw Error(`Shared dictionary column ${n.name} must be a complex (struct) column.`);if(!a||!o)throw Error(`Incomplete shared dictionary for column "${n.name}"`);let d=n.complexType.children,h=[],u=l?{}:void 0,p=0;for(let c of d){let d,m=hc(t,i,1)[0];if(0===m)continue;let f=c.name?`${n.name}${c.name}`:n.name;if(r&&!r.has(f)){hz(m,t,i);continue}if("scalarField"!==c.type||9!==c.scalarField.physicalType)throw Error("Currently only scalar string fields are implemented for a struct.");if(m>1&&!c.nullable||1===m&&c.nullable)throw Error(`The number of streams for the child field ${c.name} does not match its nullability. nullibilty: ${c.nullable}, numStreams: ${m}`);if(c.nullable){let n=hD(t,i);d=new hP(hL(t,n.numValues,n.byteLength,i),n.numValues)}let g=hV(t,i,hD(t,i),void 0,d);if(l){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${f}"`);h[p++]=new uc(f,g,a,o,s,l,d,u)}else h[p++]=new ul(f,g,a,o,d)}return h}(t,n,r,o));if(s)if(Array.isArray(s))for(let t of s)f.push(t);else f.push(s)}}let _=new d9(u.name,m,p,f,h);r.push(_),n.set(l)}return r}(new Uint8Array(t));this.layers=i.reduce((t,i)=>({...t,[i.name]:new uq(i)}),{})}};function uH(t,i,n,r,a){return tr(t,(t,o)=>{let s=i instanceof aK?i.get(o):null;return"object"==typeof s&&s&&"evaluate"in s?s.evaluate(n,r,void 0,a):s})}function uZ(t,i){return i-t}aw("FeatureIndex",class{constructor(t,i){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new ab(8192,16,0),this.grid3D=new ab(8192,16,0),this.featureIndexArray=new o$,this.promoteId=i}insert(t,i,n,r,a,o){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,a);let l=o?this.grid3D:this.grid;for(let t of i){let i=[1/0,1/0,-1/0,-1/0];for(let n of t)i[0]=Math.min(i[0],n.x),i[1]=Math.min(i[1],n.y),i[2]=Math.max(i[2],n.x),i[3]=Math.max(i[3],n.y);i[0]<8192&&i[1]<8192&&i[2]>=0&&i[3]>=0&&l.insert(s,i[0],i[1],i[2],i[3])}}loadVTLayers(){return this.vtLayers||("mlt"===this.encoding?this.vtLayers=new uG(this.rawTileData).layers:this.vtLayers=new l8(new cW(this.rawTileData)).layers,this.sourceLayerCoder=new d0(this.vtLayers?Object.keys(this.vtLayers).sort():[dQ])),this.vtLayers}query(t,i,n,r){this.loadVTLayers();let a=t.params,o=8192/t.tileSize/t.scale,s=rN(a.filter,"queryRenderedFeatures filter",a.globalState),l=t.queryGeometry,c=t.queryPadding*o,d=l0.fromPoints(l),h=this.grid.query(d.minX-c,d.minY-c,d.maxX+c,d.maxY+c),u=l0.fromPoints(t.cameraQueryGeometry).expandBy(c);for(let i of this.grid3D.query(u.minX,u.minY,u.maxX,u.maxY,(i,n,r,a)=>(function(t,i,n,r,a){for(let o of t)if(i<=o.x&&n<=o.y&&r>=o.x&&a>=o.y)return!0;let o=[new R(i,n),new R(i,a),new R(r,a),new R(r,n)];if(t.length>2){for(let i of o)if(sj(t,i))return!0}for(let i=0;i<t.length-1;i++)if(function(t,i,n){let r=n[0],a=n[2];if(t.x<r.x&&i.x<r.x||t.x>a.x&&i.x>a.x||t.y<r.y&&i.y<r.y||t.y>a.y&&i.y>a.y)return!1;let o=tc(t,i,n[0]);return o!==tc(t,i,n[1])||o!==tc(t,i,n[2])||o!==tc(t,i,n[3])}(t[i],t[i+1],o))return!0;return!1})(t.cameraQueryGeometry,i-c,n-c,r+c,a+c)))h.push(i);h.sort(uZ);let p={},m;for(let c of h){if(c===m)continue;m=c;let d=this.featureIndexArray.get(c),h=null;this.loadMatchingFeature(p,d.bucketIndex,d.sourceLayerIndex,d.featureIndex,s,a.layers,a.availableImages,i,n,r,(i,n,r)=>(h||=sM(i),n.queryIntersectsFeature({queryGeometry:l,feature:i,featureState:r,geometry:h,zoom:this.z,transform:t.transform,pixelsToTileUnits:o,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return p}loadMatchingFeature(t,i,n,r,a,o,s,l,c,d,h){let u=this.bucketLayerIDs[i];if(o&&!u.some(t=>o.has(t)))return;let p=this.sourceLayerCoder.decode(n),m=this.vtLayers[p].feature(r);if(a.needGeometry){let t=sz(m,!0);if(!a.filter(new a$(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!a.filter(new a$(this.tileID.overscaledZ),m))return;let f=this.getId(m,p);for(let i of u){if(o&&!o.has(i))continue;let n=l[i];if(!n)continue;let a={};f&&d&&(a=d.getState(n.sourceLayer||"_geojsonTileLayer",f));let u=e6({},c[i]);u.paint=uH(u.paint,n.paint,m,a,s),u.layout=uH(u.layout,n.layout,m,a,s);let p=!h||h(m,n,a);if(!p)continue;let g=new d2(m,this.z,this.x,this.y,f);g.layer=u;let _=t[i];void 0===_&&(_=t[i]=[]),_.push({featureIndex:r,feature:g,intersectionZ:p})}}lookupSymbolFeatures(t,i,n,r,a,o,s,l){let c={};this.loadVTLayers();let d=rN(a.filterSpec,"queryRenderedFeatures symbol filter",a.globalState);for(let a of t)this.loadMatchingFeature(c,n,r,a,d,o,s,l,i);return c}hasLayer(t){for(let i of this.bucketLayerIDs)for(let n of i)if(t===n)return!0;return!1}getId(t,i){let n=t.id;if(this.promoteId){let r="string"==typeof this.promoteId?this.promoteId:this.promoteId[i];"boolean"==typeof(n=t.properties[r])&&(n=Number(n)),void 0===n&&t.properties?.cluster&&this.promoteId&&(n=Number(t.properties.cluster_id))}return n}},{omit:["rawTileData","sourceLayerCoder"]});var uX=class{constructor(t,i){this.max=t,this.onRemove=i,this.reset()}reset(){for(let t in this.data)for(let i of this.data[t])i.timeout&&clearTimeout(i.timeout),this.onRemove(i.value);return this.data={},this.order=[],this}add(t,i,n){let r=t.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);let a={value:i,timeout:void 0};if(void 0!==n&&(a.timeout=setTimeout(()=>{this.remove(t,a)},n)),this.data[r].push(a),this.order.push(r),this.order.length>this.max){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){let i=this.data[t].shift();return i.timeout&&clearTimeout(i.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),i.value}getByKey(t){let i=this.data[t];return i?i[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,i){if(!this.has(t))return this;let n=t.wrapped().key,r=void 0===i?0:this.data[n].indexOf(i),a=this.data[n][r];return this.data[n].splice(r,1),a.timeout&&clearTimeout(a.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(a.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(t){let i=[];for(let n in this.data)for(let r of this.data[n])t(r.value)||i.push(r);for(let t of i)this.remove(t.value.tileID,t)}};n.d(i,{$:()=>cd,$n:()=>eB,$r:()=>ef,$t:()=>a$,A:()=>dl,Ai:()=>K,An:()=>tB,Ar:()=>ty,At:()=>sh,B:()=>cN,Bn:()=>e1,Br:()=>eL,Bt:()=>o1,C:()=>dD,Ci:()=>q,Cr:()=>eZ,Ct:()=>s7,Di:()=>Q,Dn:()=>tq,Dr:()=>tT,Dt:()=>sR,E:()=>dx,Ei:()=>ee,Er:()=>tw,F:()=>c1,Fi:()=>B,Fr:()=>e4,Ft:()=>s_,G:()=>cu,Gn:()=>e$,Gr:()=>eD,Gt:()=>oq,Hn:()=>to,Hr:()=>eF,Ht:()=>oU,I:()=>c0,Ii:()=>O,Ir:()=>tt,It:()=>sv,J:()=>cp,Jn:()=>function t(i,n){if(Array.isArray(i)){if(!Array.isArray(n)||i.length!==n.length)return!1;for(let r=0;r<i.length;r++)if(!t(i[r],n[r]))return!1;return!0}if("object"==typeof i&&i&&null!==n){if("object"!=typeof n||Object.keys(i).length!==Object.keys(n).length)return!1;for(let r in i)if(!t(i[r],n[r]))return!1;return!0}return i===n},Jr:()=>eT,K:()=>cf,Kn:()=>eV,Kr:()=>eA,Kt:()=>o4,L:()=>c2,Li:()=>F,Ln:()=>eX,Lr:()=>eO,Lt:()=>sb,M:()=>c9,Mi:()=>Z,Mn:()=>tM,Mr:()=>eq,Mt:()=>sm,Ni:()=>N,Nn:()=>tz,Nr:()=>e9,Nt:()=>sf,O:()=>dp,Oi:()=>W,On:()=>tO,Or:()=>ti,Ot:()=>sz,P:()=>c3,Pi:()=>V,Pn:()=>tL,Pr:()=>tl,Pt:()=>sg,Q:()=>cl,Qn:()=>eY,Qr:()=>er,Qt:()=>aH,R:()=>cQ,Ri:()=>R,Rt:()=>se,S:()=>dz,Si:()=>J,Sr:()=>tx,T:()=>dE,Ti:()=>H,Tr:()=>eJ,Tt:()=>s6,Un:()=>eU,Ur:()=>eR,Ut:()=>oj,Vn:()=>e5,Vr:()=>ez,Vt:()=>o8,Wn:()=>ej,Wr:()=>eS,Wt:()=>o5,Xn:()=>tb,Xr:()=>eE,Xt:()=>a4,Y:()=>ch,Yr:()=>eC,Yt:()=>a0,Z:()=>cc,Zn:()=>eW,Zr:()=>es,_:()=>d$,_i:()=>j,_n:()=>tX,_r:()=>eK,a:()=>d2,ai:()=>ep,an:()=>av,ar:()=>tE,at:()=>ci,bi:()=>ei,bn:()=>tV,br:()=>e8,ci:()=>ex,cn:()=>a_,cr:()=>tC,d:()=>dX,di:()=>el,dr:()=>tf,dt:()=>l0,ei:()=>eh,er:()=>tn,et:()=>cs,f:()=>dZ,fi:()=>el,fn:()=>iU,fr:()=>tI,g:()=>dq,gi:()=>ew,gr:()=>tr,gt:()=>lj,h:()=>dG,hi:()=>ev,hr:()=>eQ,ht:()=>l$,ii:()=>eu,ir:()=>e0,it:()=>ct,ji:()=>X,jr:()=>eH,jt:()=>sp,k:()=>ds,ki:()=>Y,kn:()=>tF,kr:()=>th,kt:()=>su,li:()=>ec,ln:()=>rN,lr:()=>tg,m:()=>dJ,mi:()=>eg,mn:()=>tK,mr:()=>tu,n:()=>uX,ni:()=>ea,nn:()=>aI,nr:()=>ta,nt:()=>ca,oi:()=>ey,on:()=>ay,or:()=>e2,ot:()=>cn,p:()=>dW,pi:()=>e_,pn:()=>iM,pr:()=>tD,q:()=>cm,qn:()=>eN,qr:()=>eI,qt:()=>or,ri:()=>ea,rr:()=>td,rt:()=>cr,si:()=>eb,st:()=>l7,ti:()=>em,tn:()=>aS,tr:()=>e6,tt:()=>co,u:()=>dH,ui:()=>ed,ur:()=>tS,vi:()=>U,vn:()=>tZ,vr:()=>te,w:()=>dA,wi:()=>G,wn:()=>t$,wr:()=>tv,wt:()=>s4,xi:()=>et,xr:()=>eG,y:()=>dN,yi:()=>$,yn:()=>tW,yr:()=>tp,yt:()=>lr,zr:()=>eP,zt:()=>oP},{Cn:(t,i)=>tU(e6(t,{type:"json"}),i),En:tU,Et:t=>"circle"===t.type,H:t=>"line"===t.type,In:85.051129,Jt:t=>"raster"===t.type,Rn:t=>new Promise((i,n)=>{let r=new Image;r.onload=()=>{i(r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},r.onerror=()=>n(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."));let a=new Blob([new Uint8Array(t)],{type:"image/png"});r.src=URL.createObjectURL(a)}),Sn:(t,i)=>tU(e6(t,{type:"arrayBuffer"}),i),St:t=>"heatmap"===t.type,Tn:t=>{let i=window.document.createElement("video");return i.muted=!0,new Promise(n=>{for(let r of(i.onloadstart=()=>{n(i)},t)){let t=window.document.createElement("source");tq(r)||(i.crossOrigin="Anonymous"),t.src=r,i.appendChild(t)}})},V:cF,W:t=>"fill-extrusion"===t.type,Yn:e3,Zt:aU,_t:t=>"color-relief"===t.type,b:t=>"background"===t.type,bt:t=>"hillshade"===t.type,ct:6371008.8,dn:i1,ft:t=>"fill"===t.type,gn:tY,hn:["type","source","source-layer","minzoom","maxzoom","filter","layout"],in:ag,jn:tR,s:dQ,sn:ad,ut:l2,v:t=>"custom"===t.type,x:t=>"symbol"===t.type,xn:tN,zn:t_})},776(t,i,n){"use strict";let r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w;n.r(i);var C,E=n(554),T="6.8.0";function k(){var t=new E.Fi(4);return E.Fi!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}let A={frame(t,i,n,r){let a=r||window,o=a.requestAnimationFrame(t=>{s(),i(t)}),{unsubscribe:s}=(0,E.Ar)(t.signal,"abort",()=>{s(),a.cancelAnimationFrame(o),n(new E.Mn(t.signal.reason))},!1)},frameAsync(t,i){return new Promise((n,r)=>{this.frame(t,n,r,i)})},getImageData(t,i=0){return this.getImageCanvasContext(t).getImageData(-i,-i,t.width+2*i,t.height+2*i)},getImageCanvasContext(t){let i=window.document.createElement("canvas"),n=i.getContext("2d",{willReadFrequently:!0});if(!n)throw Error("failed to create canvas 2d context");return i.width=t.width,i.height=t.height,n.drawImage(t,0,0,t.width,t.height),n},resolveURL:t=>((r||=document.createElement("a")).href=t,r.href),get hardwareConcurrency(){return"u">typeof navigator&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return void 0===o?!!matchMedia&&(a??=matchMedia("(prefers-reduced-motion: reduce)")).matches:o},set prefersReducedMotion(e){o=e}},I=new class{constructor(){this._frozenAt=null}getCurrentTime(){return null===this._frozenAt?performance.now():this._frozenAt}setNow(t){this._frozenAt=t}restoreNow(){this._frozenAt=null}isFrozen(){return null!==this._frozenAt}};function S(){return I.getCurrentTime()}function D(t){I.setNow(t)}function P(){I.restoreNow()}function M(){return I.isFrozen()}var z=class t{static{this.docStyle="u">typeof window&&window.document?.documentElement.style}static{this.selectProp=!t.docStyle||"userSelect"in t.docStyle?"userSelect":"webkitUserSelect"}static create(t,i,n){let r=window.document.createElement(t);return void 0!==i&&(r.className=i),n&&n.appendChild(r),r}static createNS(t,i){return window.document.createElementNS(t,i)}static disableDrag(){t.docStyle&&t.selectProp&&(t.userSelect=t.docStyle[t.selectProp],t.docStyle[t.selectProp]="none")}static enableDrag(){t.docStyle&&t.selectProp&&(t.docStyle[t.selectProp]=t.userSelect)}static suppressClickInternal(i){i.preventDefault(),i.stopPropagation(),window.removeEventListener("click",t.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",t.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",t.suppressClickInternal,!0)},0)}static getScale(t){let i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}static getPoint(t,i,n){let r=i.boundingClientRect;return new E.Ri((n.clientX-r.left)/i.x-t.clientLeft,(n.clientY-r.top)/i.y-t.clientTop)}static mousePos(i,n){let r=t.getScale(i);return t.getPoint(i,r,n)}static touchPos(i,n){let r=[],a=t.getScale(i);for(let o of n)r.push(t.getPoint(i,a,o));return r}static sanitize(i){let n=new DOMParser().parseFromString(i,"text/html").body||document.createElement("body");for(let t of n.querySelectorAll("script"))t.remove();return t.clean(n),n.innerHTML}static isPossiblyDangerous(t,i){let n=i.replace(/\s+/g,"").toLowerCase();if(["src","href","xlink:href"].includes(t)&&(n.includes("javascript:")||n.includes("data:"))||t.startsWith("on"))return!0}static clean(i){for(let n of i.children)t.removeAttributes(n),t.clean(n)}static removeAttributes(i){for(let{name:n,value:r}of Array.from(i.attributes))t.isPossiblyDangerous(n,r)&&i.removeAttribute(n)}};(C=s||={}).resetRequestQueue=()=>{g=[],_=0,v=0,y={}},C.addThrottleControl=t=>{let i=v++;return y[i]=t,i},C.removeThrottleControl=t=>{delete y[t],x()},C.transformAndGetImage=async function(t,i,n,r,a=!0,o){let l=await t.transformRequest(i,n);return(0,E.Pn)(r.signal),s.getImage(l,r,a,o)},C.getImage=(t,i,n=!0,r)=>new Promise((a,o)=>{t.headers||={},t.headers.accept="image/webp,*/*",(0,E.tr)(t,{type:"image"}),g.push({abortController:i,requestParameters:t,supportImageRefresh:n,imageBitmapOptions:r,state:"queued",onError:t=>{o(t)},onSuccess:t=>{a(t)}}),x()}),b=async t=>{t.state="running";let{requestParameters:i,supportImageRefresh:n,imageBitmapOptions:r,onError:a,onSuccess:o,abortController:s}=t,l=!1===n&&!r&&!(0,E.mr)(self)&&!(0,E.kn)(i.url)&&(!i.headers||Object.keys(i.headers).reduce((t,i)=>t&&"accept"===i,!0));_++;let c=l?w(i,s):(0,E.En)(i,s);try{let i,n=await c;delete t.abortController,t.state="completed",n.data instanceof HTMLImageElement||(0,E.lr)(n.data)?o(n):o(n.data&&0!==n.data.byteLength?{data:await (i=n.data,"function"==typeof createImageBitmap?(0,E.zn)(i,r):(0,E.Rn)(i)),cacheControl:n.cacheControl,expires:n.expires}:{data:null,cacheControl:n.cacheControl,expires:n.expires})}catch(i){delete t.abortController,a((0,E.$n)(i))}finally{_--,x()}},x=()=>{let t=(()=>{for(let t of Object.keys(y))if(y[t]())return!0;return!1})()?E.jn.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:E.jn.MAX_PARALLEL_IMAGE_REQUESTS;for(let i=_;i<t&&g.length>0;i++){let t=g.shift();if(t.abortController.signal.aborted){i--;continue}b(t)}},w=(t,i)=>new Promise((n,r)=>{let a=new Image,o=t.url,s=t.credentials;s&&"include"===s?a.crossOrigin="use-credentials":(s&&"same-origin"===s||!(0,E.Dn)(o))&&(a.crossOrigin="anonymous"),i.signal.addEventListener("abort",()=>{a.src="",r(new E.Mn(i.signal.reason))}),a.fetchPriority="high",a.onload=()=>{a.onerror=a.onload=null,n({data:a})},a.onerror=()=>{a.onerror=a.onload=null,i.signal.aborted||r(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."))},a.src=o}),s.resetRequestQueue();var L=class{constructor(t){this._transformRequestFn=t??null}transformRequest(t,i){return this._transformRequestFn&&this._transformRequestFn(t,i)||{url:t}}setTransformRequest(t){this._transformRequestFn=t}},R=class extends E.vn{},F=class extends R{},O=class extends R{constructor(t={}){super("style.load",t)}},B=class extends R{constructor(t,i={}){super(t,i),this.dataType="style"}},N=class extends R{constructor(t,i={}){super(t,i),this.dataType="source"}},V=class extends R{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,n,r={}){n=n instanceof MouseEvent?n:new MouseEvent(t,n);let a=z.mousePos(i.getCanvas(),n),o=i.unproject(a);super(t,(0,E.tr)({point:a,lngLat:o,originalEvent:n},r)),this._defaultPrevented=!1,this.target=i}},$=class extends R{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,n){let r="touchend"===t?n.changedTouches:n.touches,a=z.touchPos(i.getCanvasContainer(),r),o=a.map(t=>i.unproject(t)),s=a.reduce((t,i,n,r)=>t.add(i.div(r.length)),new E.Ri(0,0)),l=i.unproject(s);super(t,{points:a,point:s,lngLats:o,lngLat:l,originalEvent:n}),this._defaultPrevented=!1}},j=class extends R{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i){super("wheel",{originalEvent:i}),this._defaultPrevented=!1}},U=class extends R{},q=class extends R{constructor(t={}){super("terrain",t)}},G=class extends R{constructor(t={}){super("projectiontransition",t)}},H=class extends R{},Z=class extends R{constructor(t={}){super("styleimagemissing",t)}};function X(t){t=t.slice();let i=Object.create(null);for(let n=0;n<t.length;n++)i[t[n].id]=t[n];for(let n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=function(t,i){let n={};for(let i in t)"ref"!==i&&(n[i]=t[i]);return E.hn.forEach(t=>{t in i&&(n[t]=i[t])}),n}(t[n],i[t[n].ref]));return t}function W(t,i){if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(let n=0;n<t.length;n++)if(!W(t[n],i[n]))return!1;return!0}if("object"==typeof t&&t&&null!==i){if("object"!=typeof i||Object.keys(t).length!==Object.keys(i).length)return!1;for(let n in t)if(!W(t[n],i[n]))return!1;return!0}return t===i}function Y(t,i){t.push(i)}function K(t,i,n){Y(n,{command:"addSource",args:[t,i[t]]})}function J(t,i,n){Y(i,{command:"removeSource",args:[t]}),n[t]=!0}function Q(t,i,n,r,a,o){for(let s in i||={},t||={})Object.prototype.hasOwnProperty.call(t,s)&&(W(t[s],i[s])||n.push({command:o,args:[r,s,i[s],a]}));for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&!Object.prototype.hasOwnProperty.call(t,s)&&(W(t[s],i[s])||n.push({command:o,args:[r,s,i[s],a]}))}function ee(t){return t.id}function et(t,i){return t[i.id]=i,t}function ei(t){let i=[];if("string"==typeof t)i.push({id:"default",url:t});else if(t&&t.length>0){let n=[];for(let{id:r,url:a}of t){let t=`${r}${a}`;n.includes(t)||(n.push(t),i.push({id:r,url:a}))}}return i}function en(t,i,n){try{let r=new URL(t);return r.pathname+=`${i}${n}`,r.toString()}catch{throw Error(`Invalid sprite URL "${t}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}async function er(t,i,n,r){let a=ei(t),o=n>1?"@2x":"",l={},c={};for(let{id:t,url:n}of a){let a=await i.transformRequest(en(n,o,".json"),"SpriteJSON");l[t]=(0,E.Cn)(a,r);let d=await i.transformRequest(en(n,o,".png"),"SpriteImage");c[t]=s.getImage(d,r)}return await Promise.all([...Object.values(l),...Object.values(c)]),ea(l,c)}async function ea(t,i){let n={};for(let r in t){n[r]={};let a=(await i[r]).data;if(!a)throw Error(`Could not load sprite image for ${r}: the response is empty`);let o=A.getImageCanvasContext(a),s=(await t[r]).data;for(let t in s){let{width:i,height:a,x:l,y:c,sdf:d,pixelRatio:h,stretchX:u,stretchY:p,content:m,textFitWidth:f,textFitHeight:g}=s[t],_={width:i,height:a,x:l,y:c,context:o};n[r][t]={data:null,pixelRatio:h,sdf:d,stretchX:u,stretchY:p,content:m,textFitWidth:f,textFitHeight:g,spriteData:_}}}return n}var eo=class extends E.yn{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let t of Object.keys(this.images))this.removeImage(t);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(let{ids:t,promiseResolve:i}of this.requestors)i(this._getImagesForIds(t));this.requestors=[]}}getImage(t){let i=this.images[t];if(i&&!i.data&&i.spriteData){let t=i.spriteData;i.data=new E.Tt({width:t.width,height:t.height},t.context.getImageData(t.x,t.y,t.width,t.height).data),i.spriteData=null}return i}addImage(t,i){if(this.images[t])throw Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,i)&&(this.images[t]=i,this._imagesIds=null,i.isWebGLImage&&this.updateImage(t,i,!1))}_validate(t,i){let n=!0,r=i.data||i.spriteData;return this._validateStretch(i.stretchX,r?.width)||(this.fire(new E._n(Error(`Image "${t}" has invalid "stretchX" value`))),n=!1),this._validateStretch(i.stretchY,r?.height)||(this.fire(new E._n(Error(`Image "${t}" has invalid "stretchY" value`))),n=!1),this._validateContent(i.content,i)||(this.fire(new E._n(Error(`Image "${t}" has invalid "content" value`))),n=!1),n}_validateStretch(t,i){if(!t)return!0;let n=0;for(let r of t){if(r[0]<n||r[1]<r[0]||i<r[1])return!1;n=r[1]}return!0}_validateContent(t,i){if(!t)return!0;if(4!==t.length)return!1;let n=i.spriteData,r=n?.width||i.data.width,a=n?.height||i.data.height;return!(t[0]<0)&&!(r<t[0])&&!(t[1]<0)&&!(a<t[1])&&!(t[2]<0)&&!(r<t[2])&&!(t[3]<0)&&!(a<t[3])&&!(t[2]<t[0])&&t[3]>=t[1]}updateImage(t,i,n=!0){let r=this.images[t];if(n){let t=r.data||r.spriteData;if(t.width!==i.data.width||t.height!==i.data.height)throw Error(`size mismatch between old image (${t.width}x${t.height}) and new image (${i.data.width}x${i.data.height}).`)}i.version=(r.version??0)+1,this.images[t]=i,this.updateVersion++}removeImage(t){let i=this.images[t];i&&(delete this.images[t],this._imagesIds=null,i.userImage?.onRemove&&i.userImage.onRemove())}listImages(){return this._imagesIds??=Object.keys(this.images),this._imagesIds}_getSpriteImageId(t,i){return"default"===t?i:`${t}:${i}`}setSpriteImages(t,i){let n=this._spriteImagesIds[t]??[],r=[];for(let n in i){let a=this._getSpriteImageId(t,n);r.push(a),a in this.images?this.updateImage(a,i[n],!1):this.addImage(a,i[n])}let a=new Set(r),o=n.filter(t=>!a.has(t));for(let t of o)this.removeImage(t);return this._spriteImagesIds[t]=r,{loaded:r,removed:o}}removeSpriteImages(t){let i=this._spriteImagesIds[t]??[];for(let t of i)this.removeImage(t);return delete this._spriteImagesIds[t],i}removeAllSpriteImages(){let t=Object.values(this._spriteImagesIds).flat();for(let i of t)this.removeImage(i);return this._spriteImagesIds={},t}setMissingImageResolver(t){this.missingImageResolver=t}getImages(t){return new Promise((i,n)=>{let r=!0;if(!this.isLoaded())for(let i of t)this.images[i]||(r=!1);this.isLoaded()||r?i(this._getImagesForIds(t)):this.requestors.push({ids:t,promiseResolve:i})})}async _getImagesForIds(t){let i=new Set(t.filter(t=>!this.getImage(t))),n=this.missingImageResolver;n&&await Promise.allSettled(Array.from(i,t=>n(t)));let r={};for(let n of t){let t=this.getImage(n);t&&(i.delete(n),r[n]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,textFitWidth:t.textFitWidth,textFitHeight:t.textFitHeight,hasRenderCallback:!!t.userImage?.render,isWebGLImage:t.isWebGLImage})}for(let t of i)this.fire(new Z({id:t})),(0,E.Pr)(`Image "${t}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return r}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(let i of t){if(this._renderCallbacksDispatchedThisFrame[i])continue;this._renderCallbacksDispatchedThisFrame[i]=!0;let t=this.getImage(i);t||(0,E.Pr)(`Image with ID: "${i}" was not found`),(0,E.L)(t)&&this.updateImage(i,t)}}cloneImages(){let t={};for(let i in this.images){let n=this.images[i];t[i]={...n,data:n.data?n.data.clone():null}}return t}},es=class{constructor(t){this._imageManager=t,this._entries={},this._image=new E.Tt({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&=(this._texture.destroy(),null),this._entries={},this._image=new E.Tt({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:t,height:i}=this._image;return{width:t,height:i}}getPattern(t){let i=this._imageManager.getImage(t);if(!i)return null;let n=this._entries[t];if(n?.image!==i){let n={w:i.data.width+2,h:i.data.height+2,x:0,y:0};this._entries[t]={bin:n,position:new E.P(n,i),image:i}}else{if(n.position.version===i.version)return n.position;n.position.version=i.version}return this._update(),this._entries[t].position}bind(t){let i=t.gl;this._texture?this._dirty&&=(this._texture.update(this._image),!1):(this._texture=new E.yt(t,this._image,i.RGBA),this._dirty=!1),this._texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}_update(){for(let t in this._entries)this._imageManager.getImage(t)||delete this._entries[t];let t=[];for(let i in this._entries)t.push(this._entries[i].bin);let{w:i,h:n}=(0,E.F)(t),r=this._image;for(let t in r.resize({width:i||1,height:n||1}),this._entries){let{bin:i}=this._entries[t],n=i.x+1,a=i.y+1,o=this._entries[t].image.data,s=o.width,l=o.height;E.Tt.copy(o,r,{x:0,y:0},{x:n,y:a},{width:s,height:l}),E.Tt.copy(o,r,{x:0,y:l-1},{x:n,y:a-1},{width:s,height:1}),E.Tt.copy(o,r,{x:0,y:0},{x:n,y:a+l},{width:s,height:1}),E.Tt.copy(o,r,{x:s-1,y:0},{x:n-1,y:a},{width:1,height:l}),E.Tt.copy(o,r,{x:0,y:0},{x:n+s,y:a},{width:1,height:l})}this._dirty=!0}};let el={start:0,end:1114111},ec=0;function ed(t,i){return t>i||t>1114111?null:{start:t,end:Math.min(i,1114111)}}var eh=class{constructor(t){this.requestManager=t,this._faces={},this._registered=new Set}setFontFaces(t){for(let[i,n]of(this._unregisterAll(),this._faces={},Object.entries(t??{}))){let t=Array.isArray(n)?n:[n];this._faces[i]=t.map(t=>this._declareFontFace(i,t)).filter(t=>null!==t)}}hasFontFaces(){return Object.keys(this._faces).length>0}async getFontFamily(t,i){for(let n of t.split(","))for(let t of this._faces[n.trim()]??[])if(function(t,i){return t.ranges.some(({start:t,end:n})=>i>=t&&i<=n)}(t,i)&&(t.loaded??=this._loadFontFace(t),await t.loaded))return t.family;return null}_declareFontFace(t,i){let n="string"==typeof i?{url:i}:i;if("string"!=typeof n?.url)return(0,E.Pr)(`Ignoring the font face declared for "${t}": it has no URL.`),null;let r=`maplibre-gl-font-face-${ec++}`,a=n["unicode-range"];if(!a?.length)return{url:n.url,ranges:[el],family:r};let o=[];for(let t of a){let i=function(t){let i=/^u\+([0-9a-f]*)(\?+)$/i.exec(t);if(i){let[,t,n]=i;return t.length+n.length>6?null:ed(parseInt(`${t}${"0".repeat(n.length)}`,16),parseInt(`${t}${"f".repeat(n.length)}`,16))}let n=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(t);if(!n)return null;let r=parseInt(n[1],16);return ed(r,void 0===n[2]?r:parseInt(n[2],16))}(t);if(!i){(0,E.Pr)(`Ignoring the unicode range "${t}" of the font face at ${n.url}: it is not a valid range.`);continue}o.push(i)}return o.length?{url:n.url,ranges:o,family:r}:null}async _loadFontFace(t){let i;if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return(0,E.Pr)(`Ignoring the font face at ${t.url}: this environment has no CSS Font Loading API.`),!1;try{return i=new FontFace(t.family,await this._downloadFontFile(t.url)),!!Object.values(this._faces).some(i=>i.includes(t))&&(document.fonts.add(i),this._registered.add(i),await i.load(),!0)}catch(n){return i&&this._unregister(i),(0,E.Pr)(`Ignoring the font face at ${t.url}: ${(0,E.$n)(n).message}`),!1}}async _downloadFontFile(t){let i=await this.requestManager.transformRequest(t,"Glyphs"),n=await (0,E.Sn)(i,new AbortController);if(!n?.data)throw Error(`the response was empty for the font file at ${t}`);return n.data}_unregister(t){document.fonts?.delete(t),this._registered.delete(t)}_unregisterAll(){for(let t of this._registered)document.fonts?.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}};let eu=new Float64Array(256);for(let t=0;t<256;t++){let i=.5-(t/255)**(1/2.2);eu[t]=i*Math.abs(i)}eu[255]=-1e20;var ep=class{constructor({fontSize:t=24,buffer:i=3,radius:n=8,cutoff:r=.25,fontFamily:a="sans-serif",fontWeight:o="normal",fontStyle:s="normal",lang:l=null}={}){this.buffer=i,this.radius=n,this.cutoff=r,this.lang=l;let c=this.size=t+4*i,d=this._createCanvas(c),h=this.ctx=d.getContext("2d",{willReadFrequently:!0});h.font=`${s} ${o} ${t}px ${a}`,h.textBaseline="alphabetic",h.textAlign="left",h.fillStyle="black",this.gridOuter=new Float64Array(c*c),this.gridInner=new Float64Array(c*c),this.f=new Float64Array(c),this.z=new Float64Array(c+1),this.v=new Uint16Array(c)}_createCanvas(t){if("u">typeof OffscreenCanvas)return new OffscreenCanvas(t,t);let i=document.createElement("canvas");return i.width=i.height=t,i}draw(t){let{width:i,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:a,actualBoundingBoxRight:o}=this.ctx.measureText(t),s=Math.ceil(n),l=Math.floor(-a),c=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o)-l)),d=Math.max(0,Math.min(this.size-this.buffer,s+Math.ceil(r))),h=c+2*this.buffer,u=d+2*this.buffer,p=Math.max(h*u,0),m=new Uint8ClampedArray(p),f={data:m,width:h,height:u,glyphWidth:c,glyphHeight:d,glyphTop:s,glyphLeft:l,glyphAdvance:i};if(0===c||0===d)return f;let{ctx:g,buffer:_,gridInner:v,gridOuter:y}=this;this.lang&&(g.lang=this.lang),g.clearRect(_,_,c,d),g.fillText(t,_-l,_+s);let b=g.getImageData(_,_,c,d);y.fill(1e20,0,p),v.fill(0,0,p);let x=3;for(let t=0;t<d;t++){let i=(t+_)*h+_;for(let t=0;t<c;t++,x+=4,i++){let t=b.data[x];if(0===t)continue;let n=eu[t];y[i]=Math.max(0,n),v[i]=Math.max(0,-n)}}em(y,0,0,h,u,h,this.f,this.v,this.z);let w=Math.min(_,1);em(v,_-w,_-w,c+2*w,d+2*w,h,this.f,this.v,this.z);let C=255/this.radius,E=255*(1-this.cutoff);for(let t=0;t<p;t++){let i=Math.sqrt(y[t])-Math.sqrt(v[t]);m[t]=Math.round(E-C*i)}return f}};function em(t,i,n,r,a,o,s,l,c){for(let d=i;d<i+r;d++)ef(t,n*o+d,o,a,s,l,c);for(let d=n;d<n+a;d++)ef(t,d*o+i,1,r,s,l,c)}function ef(t,i,n,r,a,o,s){o[0]=0,s[0]=-1e20,s[1]=1e20,a[0]=t[i];for(let l=1,c=0,d=0;l<r;l++){a[l]=t[i+l*n];let r=l*l;do{let t=o[c];d=(a[l]-a[t]+r-t*t)/(l-t)/2}while(d<=s[c]&&--c>-1);o[++c]=l,s[c]=d,s[c+1]=1e20}for(let l=0,c=0;l<r;l++){for(;s[c+1]<l;)c++;let r=o[c],d=l-r;t[i+l*n]=a[r]+d*d}}let eg=E.gn.layout_symbol["text-font"].default.join(","),e_=(t,i)=>{let n=new ep(t);return n.buffer=i,n};var ev=class{constructor(t,i,n,r=e_){this.requestManager=t,this.localIdeographFontFamily=i,this.entries={},this.lang=n,this.fontFaceManager=new eh(t),this.createRasterizer=r}setURL(t){this.url=t}setFontFaces(t){this.fontFaceManager.setFontFaces(t),this.entries={}}async getGlyphs(t){let i=[];for(let n in t)for(let r of t[n])i.push(this._getAndCacheGlyphsPromise(n,r));let n=await Promise.all(i),r={};for(let{stack:t,id:i,glyph:a}of n)r[t]||={},r[t][i]=a&&{id:a.id,bitmap:a.bitmap.clone(),metrics:a.metrics};return r}async _getAndCacheGlyphsPromise(t,i){this.entries[t]??={glyphs:{},requests:{},ranges:{}};let n=this.entries[t],r=n.glyphs[i];if(void 0!==r)return{stack:t,id:i,glyph:r};let a=i.codePointAt(0),o=this.fontFaceManager.hasFontFaces()?await this.fontFaceManager.getFontFamily(t,a):null;return o?(r=n.glyphs[i]=await this._drawGlyph(n,t,i,o),{stack:t,id:i,glyph:r}):(0,E.B)(i)?(r=n.glyphs[i]=null,{stack:t,id:i,glyph:r}):!this.url||this._charUsesLocalIdeographFontFamily(a)?(r=n.glyphs[i]=await this._drawGlyph(n,t,i),{stack:t,id:i,glyph:r}):await this._downloadAndCacheRangePromise(t,i)}async _downloadAndCacheRangePromise(t,i){let n=i.codePointAt(0),r=this.entries[t],a=Math.floor(n/256);if(r.ranges[a])return{stack:t,id:i,glyph:null};r.requests[a]||=this._loadGlyphRange(t,a);try{let o=await r.requests[a];for(let t in o)r.glyphs[String.fromCodePoint(+t)]=o[+t];return r.ranges[a]=!0,{stack:t,id:i,glyph:o[n]||null}}catch(s){let o=r.glyphs[i]=await this._drawGlyph(r,t,i);return this._warnOnMissingGlyphRange(o,a,n,(0,E.$n)(s)),{stack:t,id:i,glyph:o}}}async _loadGlyphRange(t,i){let n=256*i,r=n+255,a=await this.requestManager.transformRequest(this.url.replace("{fontstack}",t).replace("{range}",`${n}-${r}`),"Glyphs"),o=await (0,E.Sn)(a,new AbortController);if(!o?.data)throw Error(`Could not load glyph range. range: ${i}, ${n}-${r}`);let s={};for(let t of(0,E.R)(o.data))s[t.id]=t;return s}_warnOnMissingGlyphRange(t,i,n,r){let a=256*i,o=n.toString(16).padStart(4,"0").toUpperCase();(0,E.Pr)(`Unable to load glyph range ${i}, ${a}-${a+255}. Rendering codepoint U+${o} locally instead. ${r}`)}_charUsesLocalIdeographFontFamily(t){return!!this.localIdeographFontFamily&&(0,E.tn)(t)}async _drawGlyph(t,i,n,r){let a=(await this._getTinySDF(t,i,n,r)).draw(n),o=/^\p{gc=Cf}+$/u.test(n);return{id:n.codePointAt(0),bitmap:new E.wt({width:a.width||60,height:a.height||60},a.data),metrics:{width:o?0:a.glyphWidth/2||24,height:a.glyphHeight/2||24,left:a.glyphLeft/2+.5||0,top:a.glyphTop/2-27.5||-8,advance:o?0:a.glyphAdvance/2||24,isDoubleResolution:!0}}}_getTinySDF(t,i,n,r){if(r){let i=(0,E.B)(n),a=i?"clusterTinySDFs":"fontFaceTinySDFs";return t[a]??={},t[a][r]||=this._createTinySDF(r,!1,i?3:1),t[a][r]}let a=i===eg&&""!==this.localIdeographFontFamily&&this._charUsesLocalIdeographFontFamily(n.codePointAt(0)),o=a?"ideographTinySDF":"tinySDF";return t[o]||=this._createTinySDF(a?this.localIdeographFontFamily:i),t[o]}async _createTinySDF(t,i=!0,n=1){let r=t?t.split(","):[];r.push("sans-serif");let a=r.map(t=>/[-\w]+/.test(t)?t:`'${CSS.escape(t)}'`).join(","),o=i?this._fontWeight(r[0]):void 0,s=i?this._fontStyle(r[0]):"normal";if("u">typeof document&&document.fonts?.load)try{await document.fonts.load(`${s} ${o||"normal"} 48px ${a}`)}catch(t){(0,E.Pr)(`Failed to load font "${a}": ${(0,E.$n)(t).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(n-1)/4)),radius:16,cutoff:.25,fontFamily:a,fontWeight:o,fontStyle:s,lang:this.lang},6)}_fontStyle(t){return/italic/i.test(t)?"italic":/oblique/i.test(t)?"oblique":"normal"}_fontWeight(t){let i;for(let[n,r]of Object.entries({thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950}))RegExp(`\\b${n}\\b`,"i").test(t)&&(i=`${r}`);return i}destroy(){for(let t in this.entries){let i=this.entries[t];i.tinySDF=null,i.ideographTinySDF=null,i.fontFaceTinySDFs={},i.glyphs={},i.requests={},i.ranges={}}this.entries={},this.fontFaceManager.destroy()}},ey=class extends E.yn{constructor(t,i){super(),this._transitionable=new E.Qt(l||=new E.Xt({anchor:new E.Yt(E.gn.light.anchor,"anchor"),position:new E.Yt(E.gn.light.position,"position"),color:new E.Yt(E.gn.light.color,"color"),intensity:new E.Yt(E.gn.light.intensity,"intensity")}),"light",i),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return(0,E.kr)(this.properties.get("position"))}setLight(t,i={}){if(!this._validate(E.sn.light,t,i))for(let i in t){let n=t[i];i.endsWith("-transition")?this._transitionable.setTransition(i.slice(0,-E.Zt.length),n):this._transitionable.setValue(i,n)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(t,i,n){return(0,E.on)(this,t,{value:i},n)}},eb=class extends E.yn{constructor(t,i){super(),this._transitionable=new E.Qt(c||=new E.Xt({"sky-color":new E.Yt(E.gn.sky["sky-color"],"sky-color"),"horizon-color":new E.Yt(E.gn.sky["horizon-color"],"horizon-color"),"fog-color":new E.Yt(E.gn.sky["fog-color"],"fog-color"),"fog-ground-blend":new E.Yt(E.gn.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new E.Yt(E.gn.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new E.Yt(E.gn.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new E.Yt(E.gn.sky["atmosphere-blend"],"atmosphere-blend")}),"sky",i),this.setSky(t),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new E.$t(0))}setSky(t,i={}){if(!this._validate(E.sn.sky,t,i))for(let i in t||={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}){let n=t[i];i.endsWith("-transition")?this._transitionable.setTransition(i.slice(0,-E.Zt.length),n):this._transitionable.setValue(i,n)}}getSky(){return this._transitionable.serialize()}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(t,i,n={}){return(0,E.on)(this,t,{value:i},n)}calculateFogBlendOpacity(t){return t<60?0:t<70?(t-60)/10:1}},ex=class{constructor(t,i){this.width=t,this.height=i,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(t,i){let n=t.join(",")+String(i);return this.dashEntry[n]||=this.addDash(t,i),this.dashEntry[n]}getDashRanges(t,i,n){let r=t.length%2==1,a=[],o=r?-t[t.length-1]*n:0,s=t[0]*n,l=!0;a.push({left:o,right:s,isDash:l,zeroLength:0===t[0]});let c=t[0];for(let i=1;i<t.length;i++){l=!l;let r=t[i];o=c*n,c+=r,s=c*n,a.push({left:o,right:s,isDash:l,zeroLength:0===r})}return a}addRoundDash(t,i,n){let r=i/2;for(let i=-n;i<=n;i++){let a=this.nextRow+n+i,o=this.width*a,s=0,l=t[0];for(let a=0;a<this.width;a++){a/l.right>1&&(l=t[++s]);let c=Math.min(Math.abs(a-l.left),Math.abs(a-l.right)),d,h=i/n*(r+1);if(l.isDash){let t=r-Math.abs(h);d=Math.sqrt(c*c+t*t)}else d=r-Math.sqrt(c*c+h*h);this.data[o+a]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(t){for(let i=t.length-1;i>=0;--i){let n=t[i],r=t[i+1];n.zeroLength?t.splice(i,1):r?.isDash===n.isDash&&(r.left=n.left,t.splice(i,1))}let i=t[0],n=t[t.length-1];i.isDash===n.isDash&&(i.left=n.left-this.width,n.right=i.right+this.width);let r=this.width*this.nextRow,a=0,o=t[0];for(let i=0;i<this.width;i++){i/o.right>1&&(o=t[++a]);let n=Math.min(Math.abs(i-o.left),Math.abs(i-o.right)),s=o.isDash?n:-n;this.data[r+i]=Math.max(0,Math.min(255,s+128))}}addDash(t,i){let n=7*!!i,r=2*n+1;if(this.nextRow+r>this.height)return(0,E.Pr)("LineAtlas out of space"),null;let a=0;for(let i of t)a+=i;if(0!==a){let r=this.width/a,o=this.getDashRanges(t,this.width,r);i?this.addRoundDash(o,r,n):this.addRegularDash(o)}let o={y:this.nextRow+n,height:2*n,width:a};return this.nextRow+=r,this.dirty=!0,o}bind(t){let i=t.gl;this.texture?(i.bindTexture(i.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,i.texSubImage2D(i.TEXTURE_2D,0,0,0,this.width,this.height,i.ALPHA,i.UNSIGNED_BYTE,this.data))):(this.texture=i.createTexture(),i.bindTexture(i.TEXTURE_2D,this.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.REPEAT),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.REPEAT),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.ALPHA,this.width,this.height,0,i.ALPHA,i.UNSIGNED_BYTE,this.data))}};function ew(t,i){if(i)try{return new Worker(t,{type:"module"})}catch(t){console.warn("Module worker not supported, falling back to classic worker",t)}return new Worker(t)}async function eC(t){let i=await fetch(t);if(!i.ok)throw Error(`Failed to fetch worker script (${i.status}): ${t}`);let n=new Blob([await i.text()],{type:"text/javascript"});return URL.createObjectURL(n)}async function eE(){let t=E.jn.WORKER_URL||function(){let t="file:///home/runner/work/core/core/node_modules/maplibre-gl/dist/maplibre-gl.mjs";if(!/^https?:/.test(t))return"";let i=t.endsWith("-dev.mjs")?"maplibre-gl-worker-dev.mjs":"maplibre-gl-worker.mjs";return new URL(`./${i}`,t).href}(),i=!t?.endsWith(".cjs");if(!function(t){if(!t)return!1;let i=globalThis.location;if(!i)return!1;try{return new URL(t,i.href).origin!==i.origin}catch{return!1}}(t))return ew(t,i);if(i){let n,r=(n=new Blob([`import ${JSON.stringify(new URL(t,"file:///home/runner/work/core/core/node_modules/maplibre-gl/dist/maplibre-gl.mjs").href)}`],{type:"text/javascript"}),URL.createObjectURL(n));try{return ew(r,i)}finally{URL.revokeObjectURL(r)}}let n=await eC(t);try{return ew(n,i)}finally{URL.revokeObjectURL(n)}}let eT="maplibre_preloaded_worker_pool";var ek=class t{constructor(){this.active={},this.workersPromise=null}async acquire(i){if(this.active[i]=!0,!this.workersPromise){let i=[];for(;i.length<t.workerCount;)i.push(eE());this.workersPromise=Promise.all(i)}return(await this.workersPromise).slice()}release(t){if(delete this.active[t],0===this.numActive()&&this.workersPromise){let t=this.workersPromise;this.workersPromise=null,t.then(t=>{for(let i of t)i.terminate()})}}isPreloaded(){return!!this.active[eT]}numActive(){return Object.keys(this.active).length}};let eA=Math.floor(A.hardwareConcurrency/2);function eI(){return d||=new ek}function eS(){eI().acquire(eT)}function eD(){let t=d;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(eT),d=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}ek.workerCount=(0,E.dr)(globalThis)?Math.max(Math.min(eA,3),1):1;var eP=class{constructor(t,i){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=i,this.removed=!1,this.actorsPromise=this.initActors(i)}async initActors(t){let i=await this.workerPool.acquire(t);if(this.removed)return[];if(this.actors=i.map((i,n)=>{let r=new E.g(i,t);return r.name=`Worker ${n}`,r}),!this.actors.length)throw Error("No actors found");return this.actors}async broadcast(t,i){return Promise.all((await this.actorsPromise).map(n=>n.sendAsync({type:t,data:i})))}async getActor(){let t=await this.actorsPromise;return this.currentActor=(this.currentActor+1)%t.length,t[this.currentActor]}async waitForInitComplete(){0===this.actors.length&&await this.actorsPromise}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(t=!0){for(let t of(this.removed=!0,this.actors))t.remove();this.actors=[],t&&this.workerPool.release(this.id)}async registerMessageHandler(t,i){for(let n of(await this.actorsPromise))n.registerMessageHandler(t,i)}async unregisterMessageHandler(t){for(let i of(await this.actorsPromise))i.unregisterMessageHandler(t)}};function eM(){return h||(h=new eP(eI(),E.xn)).registerMessageHandler("GR",(t,i,n)=>(0,E.En)(i,n)),h}function ez(t,i){let n=t.tileID,r=i.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}function eL(t,i){let n=t.feature,r=i.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}async function eR(t,i,n,r){let a=t;if(t.url?a=(await (0,E.Cn)(await i.transformRequest(t.url,"Source"),n)).data:await A.frameAsync(n,r),!a)return null;let o=(0,E.br)((0,E.tr)(a,t),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in a&&a.vector_layers&&(o.vectorLayerIds=a.vector_layers.map(t=>t.id)),o}var eF=class t{constructor(t,i){t&&(i?this.setSouthWest(t).setNorthEast(i):Array.isArray(t)&&(4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof E.st?new E.st(t.lng,t.lat):E.st.convert(t),this}setSouthWest(t){return this._sw=t instanceof E.st?new E.st(t.lng,t.lat):E.st.convert(t),this}extend(i){let n=this._sw,r=this._ne,a,o;if(i instanceof E.st)a=i,o=i;else if(i instanceof t){if(a=i._sw,o=i._ne,!a||!o)return this}else return Array.isArray(i)?4===i.length||i.every(Array.isArray)?this.extend(t.convert(i)):this.extend(E.st.convert(i)):i&&("lng"in i||"lon"in i)&&"lat"in i?this.extend(E.st.convert(i)):this;return n||r?(n.lng=Math.min(a.lng,n.lng),n.lat=Math.min(a.lat,n.lat),r.lng=Math.max(o.lng,r.lng),r.lat=Math.max(o.lat,r.lat)):(this._sw=new E.st(a.lng,a.lat),this._ne=new E.st(o.lng,o.lat)),this}getCenter(){return new E.st((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new E.st(this.getWest(),this.getNorth())}getSouthEast(){return new E.st(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:i,lat:n}=E.st.convert(t),r=this._sw.lat<=n&&n<=this._ne.lat,a=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=i&&i>=this._ne.lng),r&&a}intersects(i){if(!((i=t.convert(i)).getNorth()>=this.getSouth()&&i.getSouth()<=this.getNorth()))return!1;let n=Math.abs(this.getEast()-this.getWest()),r=Math.abs(i.getEast()-i.getWest());if(n>=360||r>=360)return!0;let a=(0,E.Fr)(this.getWest(),-180,180),o=(0,E.Fr)(this.getEast(),-180,180),s=(0,E.Fr)(i.getWest(),-180,180),l=(0,E.Fr)(i.getEast(),-180,180),c=a>o,d=s>l;return!!c&&!!d||(c?l>=a||s<=o:d?o>=s||a<=l:s<=o&&l>=a)}static convert(i){return i instanceof t||!i?i:new t(i)}static fromLngLat(i,n=0){let r=360*n/0x2637f09,a=r/Math.cos(Math.PI/180*i.lat);return new t(new E.st(i.lng-a,i.lat-r),new E.st(i.lng+a,i.lat+r))}adjustAntiMeridian(){let i=new E.st(this._sw.lng,this._sw.lat),n=new E.st(this._ne.lng,this._ne.lat);return i.lng>n.lng?new t(i,new E.st(n.lng+360,n.lat)):new t(i,n)}},eO=class{constructor(t,i,n){this.bounds=eF.convert(this.validateBounds(t)),this.minzoom=i||0,this.maxzoom=n||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){let i=2**t.z,n={minX:Math.floor((0,E.it)(this.bounds.getWest())*i),minY:Math.floor((0,E.at)(this.bounds.getNorth())*i),maxX:Math.ceil((0,E.it)(this.bounds.getEast())*i),maxY:Math.ceil((0,E.at)(this.bounds.getSouth())*i)};return t.x>=n.minX&&t.x<n.maxX&&t.y>=n.minY&&t.y<n.maxY}},eB=class extends E.yn{constructor(t,i,n,r){if(super(),this.id=t,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,(0,E.tr)(this,(0,E.br)(i,["url","scheme","tileSize","promoteId","encoding"])),this._options=(0,E.tr)({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r)}async load(t=!1){this._loaded=!1,this.fire(new N("dataloading")),this._tileJSONRequest=new AbortController;try{let i=await eR(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,i&&((0,E.tr)(this,i),i.bounds&&(this.tileBounds=new eO(i.bounds,this.minzoom,this.maxzoom)),this.fire(new N("data",{sourceDataType:"metadata"})),this.fire(new N("data",{sourceDataType:"content",sourceDataChanged:t})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,(0,E.Nn)(t)||this.fire(new E._n((0,E.$n)(t)))}}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.abort(),t(),this.load(!0)}setTiles(t){return this.setSourceProperty(()=>{this.tiles=t,this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}serialize(){return(0,E.tr)({},this._options)}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n={request:await this.map._requestManager.transformRequest(i,"Tile"),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:await this._getOverzoomParameters(t),etag:t.etag};n.request.collectResourceTiming=this._collectResourceTiming,await this.dispatcher.waitForInitComplete();let r="RT";if(t.actor&&"expired"!==t.state){if("loading"===t.state)return new Promise((i,n)=>{t.reloadPromise={resolve:i,reject:n}})}else t.actor=this.dispatcher.getReadyActor(),r="LT";t.abortController=new AbortController;try{let i=await t.actor.sendAsync({type:r,data:n},t.abortController);if(delete t.abortController,t.aborted)return;this._afterTileLoadWorkerResponse(t,i);let a={};return i?.etagUnmodified&&(a.unmodified=!0),a}catch(i){if(delete t.abortController,t.aborted||(0,E.Nn)(i))return;if(i&&404!==i.status)throw i;this._afterTileLoadWorkerResponse(t,null)}}async _getOverzoomParameters(t){if(t.tileID.canonical.z<=this.maxzoom||void 0===this.map._zoomLevelsToOverscale)return;let i=t.tileID.scaledTo(this.maxzoom).canonical,n=i.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:i,overzoomRequest:await this.map._requestManager.transformRequest(n,"Tile")}}_afterTileLoadWorkerResponse(t,i){if(i?.resourceTiming&&(t.resourceTiming=i.resourceTiming),i&&this.map._refreshExpiredTiles&&t.setExpiryData(i),t.etag=i?.etag,t.loadVectorData(i,this.map.painter),t.reloadPromise){let i=t.reloadPromise;t.reloadPromise=null,this.loadTile(t).then(i.resolve).catch(i.reject)}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController),t.actor&&await t.actor.sendAsync({type:"AT",data:{uid:t.uid,type:this.type,source:this.id}})}async unloadTile(t){t.unloadVectorData(),t.actor&&await t.actor.sendAsync({type:"RMT",data:{uid:t.uid,type:this.type,source:this.id}})}hasTransition(){return!1}},eN=class extends E.yn{constructor(t,i,n,r){super(),this.id=t,this.dispatcher=n,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=(0,E.tr)({type:"raster"},i),(0,E.tr)(this,(0,E.br)(i,["url","scheme","tileSize"]))}async load(t=!1){this._loaded=!1,this.fire(new N("dataloading")),this._tileJSONRequest=new AbortController;try{let i=await eR(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,i&&((0,E.tr)(this,i),i.bounds&&(this.tileBounds=new eO(i.bounds,this.minzoom,this.maxzoom)),this.fire(new N("data",{sourceDataType:"metadata"})),this.fire(new N("data",{sourceDataType:"content",sourceDataChanged:t})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,(0,E.Nn)(t)||this.fire(new E._n((0,E.$n)(t)))}}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}setSourceProperty(t){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null),t(),this.load(!0)}setTiles(t){return this.setSourceProperty(()=>{this.tiles=t,this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}serialize(){return(0,E.tr)({},this._options)}setPremultiplyAlpha(t){return this._premultiplyAlpha===t||this.setSourceProperty(()=>{this._premultiplyAlpha=t}),this}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n=this._premultiplyAlpha,r=n?void 0:{premultiplyAlpha:"none"};t.abortController=new AbortController;try{let a=await s.transformAndGetImage(this.map._requestManager,i,"Tile",t.abortController,this.map._refreshExpiredTiles,r);if(delete t.abortController,t.aborted){t.state="unloaded";return}if(a){this.map._refreshExpiredTiles&&(a.cacheControl||a.expires)&&t.setExpiryData({cacheControl:a.cacheControl,expires:a.expires});let i=this.map.painter.context,r=i.gl,o=a.data??new E.Tt({width:1,height:1},new Uint8Array(4));t.texture=this.map.painter.getTileTexture(o.width),t.texture?t.texture.update(o,{useMipmap:!0,premultiply:n}):(t.texture=new E.yt(i,o,r.RGBA,{useMipmap:!0,premultiply:n}),t.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_NEAREST)),t.state="loaded"}}catch(i){if(delete t.abortController,t.aborted)t.state="unloaded";else if(i)throw t.state="errored",i}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController)}async unloadTile(t){t.texture&&this.map.painter.saveTileTexture(t.texture)}hasTransition(){return!1}},eV=class extends eN{constructor(t,i,n,r){super(t,i,n,r),this.type="raster-dem",this.maxzoom=22,this._options=(0,E.tr)({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox",this.redFactor=i.redFactor,this.greenFactor=i.greenFactor,this.blueFactor=i.blueFactor,this.baseShift=i.baseShift}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.abortController=new AbortController;try{let n=await s.transformAndGetImage(this.map._requestManager,i,"Tile",t.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete t.abortController,t.aborted){t.state="unloaded";return}if(n){if(this.map._refreshExpiredTiles&&(n.cacheControl||n.expires)&&t.setExpiryData({cacheControl:n.cacheControl,expires:n.expires}),!n.data){t.state="loaded";return}let i=n.data,r=(0,E.lr)(i)&&(0,E.Li)()?i:await this.readImageNow(i),a={type:this.type,uid:t.uid,source:this.id,rawImageData:r,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(t.actor&&"expired"!==t.state&&"reloading"!==t.state)return;await this.dispatcher.waitForInitComplete(),t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getReadyActor()),t.dem=await t.actor.sendAsync({type:"LDT",data:a}),t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.needsColorReliefPrepare=!0,t.state="loaded"}}catch(i){if(delete t.abortController,t.aborted)t.state="unloaded";else if(i)throw t.state="errored",i}}async readImageNow(t){if("u">typeof VideoFrame&&(0,E.Ii)()){let i=t.width+4,n=t.height+4;try{return new E.Tt({width:i,height:n},await (0,E.wr)(t,-2,-2,i,n))}catch{}}return A.getImageData(t,2)}_getNeighboringTiles(t){let i=t.canonical,n=2**i.z,r=(i.x-1+n)%n,a=0===i.x?t.wrap-1:t.wrap,o=(i.x+1+n)%n,s=i.x+1===n?t.wrap+1:t.wrap,l={};return l[new E.d(t.overscaledZ,a,i.z,r,i.y).key]={backfilled:!1},l[new E.d(t.overscaledZ,s,i.z,o,i.y).key]={backfilled:!1},i.y>0&&(l[new E.d(t.overscaledZ,a,i.z,r,i.y-1).key]={backfilled:!1},l[new E.d(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new E.d(t.overscaledZ,s,i.z,o,i.y-1).key]={backfilled:!1}),i.y+1<n&&(l[new E.d(t.overscaledZ,a,i.z,r,i.y+1).key]={backfilled:!1},l[new E.d(t.overscaledZ,t.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new E.d(t.overscaledZ,s,i.z,o,i.y+1).key]={backfilled:!1}),l}async unloadTile(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&await t.actor.sendAsync({type:"RDT",data:{type:this.type,uid:t.uid,source:this.id}})}};function e$(t,i){return i?t.properties[i]:t.id}function ej(t){if(!t)return{};let i={};return i.removeAll=t.removeAll,i.remove=new Set(t.remove||[]),i.add=new Map(t.add?.map(t=>[t.id,t])),i.update=new Map(t.update?.map(t=>[t.id,t])),i}function eU(t){return"GeometryCollection"===t.type?t.geometries.flatMap(t=>eU(t)):function t(i){return i&&0!==i.length?"number"==typeof i[0]?[i]:i.flatMap(i=>t(i)):[]}(t.coordinates)}function eq(t){let i=new eF,n;switch(t.type){case"FeatureCollection":n=t.features.flatMap(t=>eU(t.geometry));break;case"Feature":n=eU(t.geometry);break;default:n=eU(t)}if(0===n.length)return i;for(let t of n){let[n,r]=t;i.extend([n,r])}return i}var eG=class extends E.yn{constructor(t,i,n,r){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._isUpdatingWorker=!1,this._pendingWorkerUpdate={data:i.data},this.actorPromise=n.getActor(),this.setEventedParent(r),this._data="string"==typeof i.data?{url:i.data}:{geojson:i.data},this._options=(0,E.tr)({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId,void 0!==i.clusterMaxZoom&&this.maxzoom<=i.clusterMaxZoom&&(0,E.Pr)(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i.clusterMaxZoom}".`),this.workerOptions=(0,E.tr)({source:this.id,geojsonVtOptions:{buffer:this._pixelsToTileUnits(void 0===i.buffer?128:i.buffer),tolerance:this._pixelsToTileUnits(void 0===i.tolerance?.375:i.tolerance),extent:8192,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1,promoteId:"string"==typeof i.promoteId?i.promoteId:void 0,cluster:i.cluster||!1,clusterOptions:{maxZoom:this._getClusterMaxZoom(i.clusterMaxZoom),minPoints:Math.max(2,i.clusterMinPoints||2),extent:8192,radius:this._pixelsToTileUnits(i.clusterRadius||50),log:!1,generateId:i.generateId||!1}},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions)}_hasPendingWorkerUpdate(){return void 0!==this._pendingWorkerUpdate.data||void 0!==this._pendingWorkerUpdate.diff||this._pendingWorkerUpdate.updateCluster}_pixelsToTileUnits(t){return t*(8192/this.tileSize)}_tileUnitsToPixels(t){return t/(8192/this.tileSize)}_getClusterMaxZoom(t){let i=t?Math.round(t):this.maxzoom-1;return Number.isInteger(t)||void 0===t||(0,E.Pr)(`Integer expected for option 'clusterMaxZoom': provided value "${t}" rounded to "${i}"`),i}async load(){await this._updateWorkerData()}onAdd(t){this.map=t,this.load()}setData(t){return this._data="string"==typeof t?{url:t}:{geojson:t},this._pendingWorkerUpdate={data:t},this._updateWorkerData()}updateData(t){return this._pendingWorkerUpdate.diff=function(t,i){let n;if(!t)return i||{};if(!i)return t||{};let r=ej(t),a=ej(i);var o,s=r,l=a;for(let t of(l.removeAll&&(s.add.clear(),s.update.clear(),s.remove.clear(),l.remove.clear()),l.remove))s.add.delete(t),s.update.delete(t);for(let[t,i]of l.update){let n=s.update.get(t);n&&(l.update.set(t,function(t,i){let n={id:t.id};if(i.removeAllProperties&&(delete t.removeProperties,delete t.addOrUpdateProperties,delete i.removeProperties),i.removeProperties)for(let n of i.removeProperties){let i=t.addOrUpdateProperties.findIndex(t=>t.key===n);i>-1&&t.addOrUpdateProperties.splice(i,1)}return(t.removeAllProperties||i.removeAllProperties)&&(n.removeAllProperties=!0),(t.removeProperties||i.removeProperties)&&(n.removeProperties=[...t.removeProperties||[],...i.removeProperties||[]]),(t.addOrUpdateProperties||i.addOrUpdateProperties)&&(n.addOrUpdateProperties=[...t.addOrUpdateProperties||[],...i.addOrUpdateProperties||[]]),(t.newGeometry||i.newGeometry)&&(n.newGeometry=i.newGeometry||t.newGeometry),n}(n,i)),s.update.delete(t))}let c={};if((r.removeAll||a.removeAll)&&(c.removeAll=!0),c.remove=new Set([...r.remove,...a.remove]),c.add=new Map([...r.add,...a.add]),c.update=new Map([...r.update,...a.update]),c.remove.size&&c.add.size)for(let t of c.add.keys())c.remove.delete(t);return n={},(o=c).removeAll&&(n.removeAll=o.removeAll),o.remove&&(n.remove=Array.from(o.remove)),o.add&&(n.add=Array.from(o.add.values())),o.update&&(n.update=Array.from(o.update.values())),n}(this._pendingWorkerUpdate.diff,t),this._updateWorkerData()}async getData(){return this._data.url&&await this.once("data"),this._data.geojson?this._data.geojson:{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}}async getBounds(){return eq(await this.getData())}setClusterOptions(t){return this.workerOptions.geojsonVtOptions.cluster=t.cluster,void 0!==t.clusterRadius&&(this.workerOptions.geojsonVtOptions.clusterOptions.radius=this._pixelsToTileUnits(t.clusterRadius)),void 0!==t.clusterMaxZoom&&(this.workerOptions.geojsonVtOptions.clusterOptions.maxZoom=this._getClusterMaxZoom(t.clusterMaxZoom)),this._pendingWorkerUpdate.updateCluster=!0,this._updateWorkerData()}getClusterOptions(){let{cluster:t,clusterOptions:i}=this.workerOptions.geojsonVtOptions;return{cluster:t,clusterMaxZoom:i.maxZoom,clusterRadius:this._tileUnitsToPixels(i.radius)}}async getClusterExpansionZoom(t){return(await this.actorPromise).sendAsync({type:"GCEZ",data:{type:this.type,clusterId:t,source:this.id}})}async getClusterChildren(t){return(await this.actorPromise).sendAsync({type:"GCC",data:{type:this.type,clusterId:t,source:this.id}})}async getClusterLeaves(t,i,n){return(await this.actorPromise).sendAsync({type:"GCL",data:{type:this.type,source:this.id,clusterId:t,limit:i,offset:n}})}async _updateWorkerData(){if(this._isUpdatingWorker)return this._updatePromise;if(!this._hasPendingWorkerUpdate())return void(0,E.Pr)(`No pending worker updates for GeoJSONSource ${this.id}.`);let{data:t,diff:i,updateCluster:n}=this._pendingWorkerUpdate,r=this._getLoadGeoJSONParameters(t,i,n);void 0===t?i?this._pendingWorkerUpdate.diff=void 0:n&&(this._pendingWorkerUpdate.updateCluster=void 0):this._pendingWorkerUpdate.data=void 0,this._updatePromise=this._dispatchWorkerUpdate(r),await this._updatePromise}async _getLoadGeoJSONParameters(t,i,n){let r=(0,E.tr)({type:this.type,source:this.id},this.workerOptions);return"string"==typeof t?(r.request=await this.map._requestManager.transformRequest(A.resolveURL(t),"Source"),r.request.collectResourceTiming=this._collectResourceTiming,r):void 0!==t?(r.data=t,r):i?(r.dataDiff=i,r):n?(r.updateCluster=!0,r):void 0}async _dispatchWorkerUpdate(t){this._isUpdatingWorker=!0,this.fire(new N("dataloading"));try{let i=await t,n=await (await this.actorPromise).sendAsync({type:"LD",data:i});if(this._isUpdatingWorker=!1,this._removed||n.abandoned)return void this.fire(new N("dataabort"));n.data&&(this._data={geojson:n.data});let r=this._applyDiffToSource(i.dataDiff),a=this._getShouldReloadTileOptions(r),o={};this._applyResourceTiming(o,n),this.fire(new N("data",{...o,sourceDataType:"metadata"})),this.fire(new N("data",{...o,sourceDataType:"content",shouldReloadTileOptions:a}))}catch(t){if(this._isUpdatingWorker=!1,this._removed)return void this.fire(new N("dataabort"));this.fire(new E._n((0,E.$n)(t)))}finally{this._hasPendingWorkerUpdate()&&await this._updateWorkerData()}}_applyResourceTiming(t,i){if(!this._collectResourceTiming)return;let n=i.resourceTiming?.[this.id];if(!n)return;let r=n.slice(0);r?.length&&(0,E.tr)(t,{resourceTiming:r})}_applyDiffToSource(t){if(!t)return;let i="string"==typeof this.promoteId?this.promoteId:void 0;if(!this._data.url&&!this._data.updateable){let t=function(t,i){let n=new Map;if(null==t||null==t.type)return n;if("Feature"===t.type){let r=e$(t,i);return null==r?void 0:(n.set(r,t),n)}if("FeatureCollection"===t.type){let r=new Set;for(let a of t.features){let t=e$(a,i);if(null==t||r.has(t))return;r.add(t),n.set(t,a)}return n}}(this._data.geojson,i);if(!t)throw Error(`GeoJSONSource "${this.id}": GeoJSON data is not compatible with updateData`);this._data={updateable:t}}if(!this._data.updateable)return;let n=function(t,i,n){let r=[];if(i.removeAll)t.clear();else if(i.remove)for(let n of i.remove){let i=t.get(n);i&&(r.push(i.geometry),t.delete(n))}if(i.add)for(let a of i.add){let i=e$(a,n);if(null==i)continue;let o=t.get(i);o&&r.push(o.geometry),r.push(a.geometry),t.set(i,a)}if(i.update)for(let n of i.update){let i=t.get(n.id);if(!i)continue;let a=!!n.newGeometry,o=n.removeAllProperties||n.removeProperties?.length>0||n.addOrUpdateProperties?.length>0;if(!a&&!o)continue;r.push(i.geometry);let s={...i};if(t.set(n.id,s),a&&(r.push(n.newGeometry),s.geometry=n.newGeometry),o){if(s.properties=n.removeAllProperties?{}:{...s.properties||{}},n.removeProperties)for(let t of n.removeProperties)delete s.properties[t];if(n.addOrUpdateProperties)for(let{key:t,value:i}of n.addOrUpdateProperties)s.properties[t]=i}}return r}(this._data.updateable,t,i);if(!(t.removeAll||this._options.cluster))return n}_getShouldReloadTileOptions(t){if(t)return{affectedBounds:t.filter(Boolean).map(t=>eq(t))}}shouldReloadTile(t,{affectedBounds:i}){if("loading"===t.state)return!0;if("unloaded"===t.state)return!1;let{buffer:n,extent:r}=this.workerOptions.geojsonVtOptions,a=function({x:t,y:i,z:n},r=0){return new eF([(0,E.rt)((t-r)/2**n),(0,E.nt)((i+1+r)/2**n)],[(0,E.rt)((t+1+r)/2**n),(0,E.nt)((i-r)/2**n)])}(t.tileID.canonical,n/r);for(let t of i)if(a.intersects(t))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}async loadTile(t){let i=t.actor?"RT":"LT";t.actor=await this.actorPromise;let n={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};t.abortController=new AbortController;try{let r=await (await this.actorPromise).sendAsync({type:i,data:n},t.abortController);delete t.abortController,t.unloadVectorData(),t.aborted||t.loadVectorData(r,this.map.painter,"RT"===i)}catch(i){if(delete t.abortController,t.aborted||(0,E.Nn)(i))return;throw i}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController),t.aborted=!0}async unloadTile(t){t.unloadVectorData(),await (await this.actorPromise).sendAsync({type:"RMT",data:{uid:t.uid,type:this.type,source:this.id}})}onRemove(){this._removed=!0,this.actorPromise.then(t=>t.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return(0,E.tr)({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}};let eH=[0,0,1],eZ=(t,i,n,r,a,o)=>{var s,l,c;let d,h;return{u_tl_parent:t,u_scale_parent:i,u_buffer_scale:1,u_image_warp:o,u_fade_t:n.mix,u_opacity:n.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(s=r.paint.get("raster-saturation"))>0?1-1/(1.001-s):-s,u_contrast_factor:(l=r.paint.get("raster-contrast"))>0?1/(1-l):1+l,u_spin_weights:(d=Math.sin(c=r.paint.get("raster-hue-rotate")*(Math.PI/180)),[(2*(h=Math.cos(c))+1)/3,(-Math.sqrt(3)*d-h+1)/3,(Math.sqrt(3)*d-h+1)/3]),u_coords_top:[a[0].x,a[0].y,a[1].x,a[1].y],u_coords_bottom:[a[3].x,a[3].y,a[2].x,a[2].y]}};var eX=class{constructor(t,i,n){this.vertexBuffer=t,this.indexBuffer=i,this.segments=n}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}};let eW=(0,E.qt)([{name:"a_pos",type:"Int16",components:2}]);function eY(t,i){let n=eK(i,"16bit"),r=E.Ut.deserialize({arrayBuffer:n.vertices,length:n.vertices.byteLength/2/2}),a=E.Kt.deserialize({arrayBuffer:n.indices,length:n.indices.byteLength/2/3});return new eX(t.createVertexBuffer(r,eW.members),t.createIndexBuffer(a),E.Rt.simpleSegment(0,0,r.length,a.length))}function eK(t,i){let n=void 0===t.granularity?1:Math.max(t.granularity,1),r=n+2*!!t.generateBorders,a=n+(t.extendToNorthPole||t.generateBorders?1:0)+(t.extendToSouthPole||t.generateBorders?1:0),o=r+1,s=a+1,l=t.generateBorders?-1:0,c=t.generateBorders||t.extendToNorthPole?-1:0,d=n+ +!!t.generateBorders,h=n+(t.generateBorders||t.extendToSouthPole?1:0),u=r*a*6,p=o*s>65536;if(p&&"16bit"===i)throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let m=p||"32bit"===i,f=new Int16Array(o*s*2),g=0;for(let i=c;i<=h;i++)for(let r=l;r<=d;r++){let a=r/n*8192;-1===r&&(a=-64),r===n+1&&(a=8256);let o=i/n*8192;-1===i&&(o=t.extendToNorthPole?-32768:-64),i===n+1&&(o=t.extendToSouthPole?32767:8256),f[g++]=a,f[g++]=o}let _=m?new Uint32Array(u):new Uint16Array(u),v=0;for(let t=0;t<a;t++)for(let i=0;i<r;i++){let n=i+t*o,r=i+1+t*o,a=i+(t+1)*o,s=i+1+(t+1)*o;_[v++]=n,_[v++]=a,_[v++]=r,_[v++]=r,_[v++]=a,_[v++]=s}return{vertices:f.buffer.slice(0),indices:_.buffer.slice(0),uses32bitIndices:m}}var eJ=class extends E.yn{constructor(t,i,n,r){super(),this.imageWarp=eH,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=t,this.dispatcher=n,this.coordinates=i.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=i}async load(t){if(void 0===this.options.url){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new N("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let i=await s.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,i?.data?(this._setImage(i.data),t&&(this.coordinates=t),this._finishLoading()):this.fire(new E._n(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if((0,E.Nn)(t))return;this._abortController=null,this._loaded=!0,this.fire(new E._n((0,E.$n)(t)))}}loaded(){return this._loaded}updateImage(t){return this._abortController&&=(this._abortController.abort(),null),"image"in t?(this._loaded=!0,this._setImage(t.image),t.coordinates&&(this.coordinates=t.coordinates),this._finishLoading()):t.url&&(this.options.url=t.url,this.load(t.coordinates)),this}_setImage(t){this.image=t,this._imageDirty=!0}getMesh(t,i){return!this._subdividedQuad||i?null:(this._subdividedMesh??=eY(t,{granularity:16}),this._subdividedMesh)}_disposeTexture(){this.texture?.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new N("data",{sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._abortController&&=(this._abortController.abort(),null),this._disposeTexture(),this._subdividedMesh?.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(t){return this._warp===t||(this._warp=t,this.tileCoords&&this.setCoordinates(this.coordinates)),this}getWarp(){return this._warp}setCoordinates(t){var i,n;let r,a,o,s,l,c;this.coordinates=t;let d=t.map(E.et.fromLngLat);return this.tileID=(i=d,a=Math.max(0,Math.floor(-Math.log(Math.max((r=E.dt.fromPoints(i)).width(),r.height()))/Math.LN2)),o=2**a,new E.u(a,Math.floor((r.minX+r.maxX)/2*o),Math.floor((r.minY+r.maxY)/2*o))),this.terrainTileRanges=this._getOverlappingTileRanges(d),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=d.map(t=>this.tileID.getTilePoint(t)._round()),this.imageWarp=function(t,i){if("flat"===i||eQ(t))return eH;let[n,r,a,o]=t,s=n.x-r.x+a.x-o.x,l=n.y-r.y+a.y-o.y,c=[r.x-a.x,r.y-a.y,o.x-a.x,o.y-a.y],[d,h,u,p]=c,m=c[0]*c[3]-c[2]*c[1],f=(s*p-u*l)/m,g=(d*l-s*h)/m,_=[1,1+f,1+f+g,1+g],v=Math.max(..._)/Math.min(..._),y="perspective"===i?0:Math.max(0,(1-4/v)/(1-4/512));return!(v>=1&&v<=512)||y>=1?eH:[f,g,y]}(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!eQ(this.tileCoords),this.flippedWindingOrder=(s=(n=this.tileCoords)[1].x-n[0].x,l=n[1].y-n[0].y,c=n[2].x-n[0].x,s*(n[2].y-n[0].y)-l*c<0),this.fire(new N("data",{sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;let t=this.map.painter.context,i=t.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)):(this.texture=new E.yt(t,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this._imageDirty=!1;let n=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,n=!0)}n&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}))}async loadTile(t){this.tileID?.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={}):t.state="errored"}serialize(){let t={type:"image",coordinates:this.coordinates};return void 0!==this.options.url&&(t.url=this.options.url),t}hasTransition(){return!1}_getOverlappingTileRanges(t){let{minX:i,minY:n,maxX:r,maxY:a}=E.dt.fromPoints(t),o={};for(let t=0;t<=25;t++){let s=2**t,l=Math.floor(i*s),c=Math.floor(n*s),d=Math.floor(r*s),h=Math.floor(a*s),u=(l%s+s)%s,p=d%s,m=Math.floor(l/s),f=Math.floor(d/s);o[t]={minWrap:m,maxWrap:f,minTileXWrapped:u,maxTileXWrapped:p,minTileY:c,maxTileY:h}}return o}};function eQ(t){let[i,n,r,a]=t;return i.x+r.x===n.x+a.x&&i.y+r.y===n.y+a.y}var e0=class extends eJ{constructor(t,i,n,r){super(t,i,n,r),this._onPlayingHandler=()=>{this.map?.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=i}async load(){this._loaded=!1;let t=this.options;for(let i of(this.urls=[],t.urls))this.urls.push((await this.map._requestManager.transformRequest(i,"Source")).url);try{let t=await (0,E.Tn)(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new E._n((0,E.$n)(t)))}}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){let i=this.video.seekable;t<i.start(0)||t>i.end(0)?this.fire(new E._n(new E.mn(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;let t=this.map.painter.context,i=t.gl;this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new E.yt(t,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));let n=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,n=!0)}n&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},e2=class extends eJ{constructor(t,i,n,r){super(t,i,n,r),i.coordinates?(!Array.isArray(i.coordinates)||4!==i.coordinates.length||i.coordinates.some(t=>!Array.isArray(t)||2!==t.length||t.some(t=>"number"!=typeof t)))&&this.fire(new E._n(new E.mn(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new E._n(new E.mn(`sources.${t}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new E._n(new E.mn(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof HTMLCanvasElement||this.fire(new E._n(new E.mn(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new E._n(new E.mn(`sources.${t}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}async load(){(this._loaded=!0,this.canvas||=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions())?this.fire(new E._n(Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&=(this.prepare(),!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;let i=this.map.painter.context,n=i.gl;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new E.yt(i,this.canvas,n.RGBA,{premultiply:!0}),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let r=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,r=!0)}r&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}};let e1={},e3=t=>{switch(t){case"geojson":return eG;case"image":return eJ;case"raster":return eN;case"raster-dem":return eV;case"vector":return eB;case"video":return e0;case"canvas":return e2}return e1[t]},e5=async(t,i)=>{if(e3(t))throw Error(`A source type called "${t}" already exists.`);e1[t]=i},e4="RTLPluginLoaded";var e6=class extends E.yn{constructor(...t){super(...t),this.status="unavailable",this.url=null,this.dispatcher=eM()}_syncState(t){return this.status=t,this.dispatcher.broadcast("SRPS",{pluginStatus:t,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}async setRTLTextPlugin(t,i=!1){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=A.resolveURL(t),!this.url)throw Error(`requested url ${t} is invalid`);if("unavailable"===this.status)if(!i)return this._requestImport();else this.status="deferred",this._syncState(this.status);else if("requested"===this.status)return this._requestImport()}async _requestImport(){await this._syncState("loading"),this.status="loaded",this.fire(new E.vn(e4))}lazyLoad(){"unavailable"===this.status?this.status="requested":"deferred"===this.status&&this._requestImport()}};let e8=null;function e7(){return e8||=new e6}var e9=class{constructor(t,i){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=t,this.uid=(0,E.Nr)(),this.uses=0,this.tileSize=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(t){return this.hasData()&&(!this.fadeEndTime||this.fadeOpacity>0)&&(t||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:t,fadingDirection:i,fadingParentID:n,fadeEndTime:r}){this.resetFadeLogic(),this.fadingRole=t,this.fadingDirection=i,this.fadingParentID=n,this.fadeEndTime=r}setSelfFadeLogic(t){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=t}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=S(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}clearTextures(t){this.demTexture&&t.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(t){return this.rttObjects[t]}acquireRTT(t,i,n){return this.rttObjects[i]=t.acquireRTT(n)}releaseRTT(t){if(0!==this.rttObjects.length){for(let i of this.rttObjects)i&&t.releaseRTT(i);this.rttObjects.length=0}}loadVectorData(t,i,n){if(t?.etagUnmodified===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!t){this.collisionBoxArray=new E.zt;return}for(let r in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestEncoding=t.encoding,this.latestFeatureIndex.rawTileData=t.rawTileData,this.latestFeatureIndex.encoding=t.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,i){let n={};if(!i)return n;for(let r of t){let t=r.layerIds.map(t=>i.getLayer(t)).filter(Boolean);if(0!==t.length)for(let i of(r.layers=t,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(i=>t.filter(t=>t.id===i)[0])),t))n[i.id]=r}return n}(t.buckets,i?.style),this.hasSymbolBuckets=!1,this.buckets){let t=this.buckets[r];if(t instanceof E.S)if(this.hasSymbolBuckets=!0,n)t.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let t in this.buckets){let i=this.buckets[t];if(i instanceof E.S&&i.hasRTLText){this.hasRTLText=!0,e7().lazyLoad();break}}for(let t in this.queryPadding=0,this.buckets){let n=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,i.style.getLayer(t).queryRadius(n))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),this.dashPositions=t.dashPositions}unloadVectorData(){for(let t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(let i in this.buckets){let n=this.buckets[i];n.uploadPending()&&n.upload(t)}let i=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new E.yt(t,this.imageAtlas.image,i.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&=(this.glyphAtlasTexture=new E.yt(t,this.glyphAtlasImage,i.ALPHA),null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,i,n,r,a,o,s,l,c,d,h){return this.latestFeatureIndex?.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:a,scale:o,tileSize:this.tileSize,pixelPosMatrix:d,transform:l,params:s,queryPadding:this.queryPadding*c,getElevation:h},t,i,n):{}}querySourceFeatures(t,i){let n=this.latestFeatureIndex;if(!n?.rawTileData)return;let r=n.loadVTLayers(),a=i?.sourceLayer?i.sourceLayer:"",o=r._geojsonTileLayer||r[a];if(!o)return;let s=(0,E.ln)(i?.filter,`querySourceFeatures[${a}].filter`,i?.globalState),{z:l,x:c,y:d}=this.tileID.canonical,h={z:l,x:c,y:d};for(let i=0;i<o.length;i++){let r=o.feature(i);if(s.needGeometry){let t=(0,E.Ot)(r,!0);if(!s.filter(new E.$t(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!s.filter(new E.$t(this.tileID.overscaledZ),r))continue;let u=n.getId(r,a),p=new E.a(r,l,c,d,u);p.tile=h,t.push(p)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){let i=this.expirationTime;if(t.cacheControl){let i=(0,E.yr)(t.cacheControl);i["max-age"]&&(this.expirationTime=Date.now()+1e3*i["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){let t=Date.now(),n=!1;if(this.expirationTime>t)n=!1;else if(i)if(this.expirationTime<i)n=!0;else{let r=this.expirationTime-i;r?this.expirationTime=t+Math.max(r,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),0x7fffffff)}setFeatureState(t,i,n){if(!this.latestFeatureIndex?.rawTileData||0===Object.keys(t).length||this.featureStateRevision===n)return;this.featureStateRevision=n;let r=this.latestFeatureIndex.loadVTLayers();for(let n in this.buckets){if(!i.style.hasLayer(n))continue;let a=this.buckets[n],o=a.layers[0].sourceLayer||"_geojsonTileLayer",s=r[o],l=t[o];if(!s||!l||0===l.length)continue;a.update(l,s,this.imageAtlas?.patternPositions||{},this.dashPositions||{});let c=i?.style?.getLayer(n);c&&(this.queryPadding=Math.max(this.queryPadding,c.queryRadius(a)))}}holdingForSymbolFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<S()}clearSymbolFadeHold(){this.symbolFadeHoldUntil=void 0}setSymbolHoldDuration(t){this.symbolFadeHoldUntil=S()+t}setDependencies(t,i){let n={};for(let t of i)n[t]=!0;this.dependencies[t]=n}hasDependency(t,i){for(let n of t){let t=this.dependencies[n];if(t){for(let n of i)if(t[n])return!0}}return!1}};function te(t){let i=[];for(let n in t)i.push({id:n,state:t[n]});return i}var tt=class{constructor(){this.state={},this.stateChanges={},this.deletedStates={},this.revision=0}updateState(t,i,n){let r=String(i);if(this.stateChanges[t]||={},this.stateChanges[t][r]||={},(0,E.tr)(this.stateChanges[t][r],n),null===this.deletedStates[t])for(let i in this.deletedStates[t]={},this.state[t])if(i===r)for(let a in this.deletedStates[t][r]={},this.state[t][i])void 0===n[a]&&(this.deletedStates[t][r][a]=null);else this.deletedStates[t][i]=null;else if(this.deletedStates[t]?.[r]===null)for(let i in this.deletedStates[t][r]={},this.state[t][r])void 0===n[i]&&(this.deletedStates[t][r][i]=null);else for(let i in n)this.deletedStates[t]?.[r]?.[i]===null&&delete this.deletedStates[t][r][i]}removeFeatureState(t,i,n){if(null===this.deletedStates[t])return;let r=String(i);if(this.deletedStates[t]||={},n&&void 0!==i)null!==this.deletedStates[t][r]&&(this.deletedStates[t][r]||={},this.deletedStates[t][r][n]=null);else if(void 0!==i)if(this.stateChanges[t]?.[r])for(n in this.deletedStates[t][r]={},this.stateChanges[t][r])this.deletedStates[t][r][n]=null;else this.deletedStates[t][r]=null;else this.deletedStates[t]=null}getState(t,i){let n=String(i),r=this.state[t]||{},a=this.stateChanges[t]||{},o=(0,E.tr)({},r[n],a[n]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){let n=this.deletedStates[t][i];if(null===n)return{};for(let t in n)delete o[t]}return o}initializeTileState(t,i){let n={};for(let t in this.state)n[t]=te(this.state[t]);t.setFeatureState(n,i,this.revision)}coalesceChanges(t,i){let n={};for(let t in this.stateChanges)for(let i in this.state[t]||={},n[t]||={},this.stateChanges[t])this.state[t][i]||={},(0,E.tr)(this.state[t][i],this.stateChanges[t][i]),n[t][i]=this.state[t][i];for(let t in this.deletedStates)if(this.state[t]||={},n[t]||={},null===this.deletedStates[t])for(let i in this.state[t])this.state[t][i]={},n[t][i]={};else for(let i in this.deletedStates[t]){if(null===this.deletedStates[t][i])this.state[t][i]={};else for(let n of Object.keys(this.deletedStates[t][i]))delete this.state[t][i][n];n[t][i]=this.state[t][i]}if(this.stateChanges={},this.deletedStates={},0===Object.keys(n).length)return;this.revision++;let r={};for(let t in n)r[t]=te(n[t]);t.setFeatureState(r,i,this.revision)}},ti=class t{constructor(t,i){this.min=t,this.max=i,this.center=(0,E.li)([],(0,E.Zr)([],this.min,this.max),.5)}quadrant(i){let n=[i%2==0,i<2],r=(0,E.Qr)(this.min),a=(0,E.Qr)(this.max);for(let t=0;t<n.length;t++)r[t]=n[t]?this.min[t]:this.center[t],a[t]=n[t]?this.center[t]:this.max[t];return a[2]=this.max[2],new t(r,a)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}intersectsFrustum(t){let i=!0;for(let n of t.planes){let t=this.intersectsPlane(n);if(0===t)return 0;1===t&&(i=!1)}return i?2:t.aabb.min[0]>this.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]<this.min[0]||t.aabb.max[1]<this.min[1]||t.aabb.max[2]<this.min[2]?0:1}intersectsPlane(t){let i=t[3],n=t[3];for(let r=0;r<3;r++)t[r]>0?(i+=t[r]*this.min[r],n+=t[r]*this.max[r]):(n+=t[r]*this.min[r],i+=t[r]*this.max[r]);return i>=0?2:n<0?0:1}},tn=class t{constructor(t,i,n){this.points=t,this.planes=i,this.aabb=n}static fromInvProjectionMatrix(i,n=1,r=0,a,o){let s=o?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**r,c=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(t=>{var r,a,o,s;let c,d;return r=t,a=i,o=n,s=l,d=1/(c=(0,E.Xr)([],r,a))[3]/o*s,(0,E.Jr)(c,c,[d,d,1/c[3],d])});a&&function(t,i,n,r){var a,o;let s,l,c,d=4*!!r,h=4*!r,u=0,p=[],m=[];for(let i=0;i<4;i++){let n=(0,E.di)([],t[i+h],t[i+d]),r=(0,E.ri)(n);(0,E.li)(n,n,1/r),p.push(r),m.push(n)}for(let i=0;i<4;i++){let r=(0,E.Cr)(t[i+d],m[i],n);u=null!==r&&r>=0?Math.max(u,r):Math.max(u,p[i])}let f=(a=t,o=i,s=(0,E.di)([],a[o[0]],a[o[1]]),l=(0,E.di)([],a[o[2]],a[o[1]]),c=[0,0,0,0],(0,E.ai)(c,(0,E.$r)([],s,l)),c[3]=-(0,E.ti)(c,a[o[0]]),c),g=function(t,i){let n=(0,E.ni)(t),r=(0,E.Yr)([],t,1/n),a=(0,E.di)([],i,(0,E.li)([],r,(0,E.ti)(i,r))),o=(0,E.ni)(a);if(o>0){let t=Math.sqrt(1-r[3]*r[3]),n=(0,E.li)([],r,-r[3]),s=(0,E.Zr)([],n,(0,E.li)([],a,t/o));return(0,E.xr)(i,s)}return null}(n,f);null!==g&&(u=Math.min(u,g/(0,E.ti)(m[0],f)));for(let i=0;i<4;i++){let n=Math.min(u,p[i]);t[i+h]=[t[i+d][0]+m[i][0]*n,t[i+d][1]+m[i][1]*n,t[i+d][2]+m[i][2]*n,1]}}(c,s[0],a,o);let d=s.map(t=>{let i=(0,E.di)([],c[t[0]],c[t[1]]),n=(0,E.di)([],c[t[2]],c[t[1]]),r=(0,E.ai)([],(0,E.$r)([],i,n)),a=-(0,E.ti)(r,c[t[1]]);return r.concat(a)}),h=[1/0,1/0,1/0],u=[-1/0,-1/0,-1/0];for(let t of c)for(let i=0;i<3;i++)h[i]=Math.min(h[i],t[i]),u[i]=Math.max(u[i],t[i]);return new t(c,d,new ti(h,u))}};function tr(t,i,n){let r=0,a=(n-i)/10;for(let o=0;o<10;o++){let s=i+(o+.5)/10*(n-i);r+=a*Math.cos(s)**t}return r}function ta(t,i){return function(n,r,a,o,s){let l=2*((t-1)/(0,E.Or)(Math.cos((0,E.Xn)(89.25-s))/Math.cos((0,E.Xn)(89.25)))-1),c=Math.acos(a/o),d=2*tr(l-1,0,(0,E.Xn)(s/2)),h=Math.min((0,E.Xn)(89.25),c+(0,E.Xn)(s/2)),u=tr(l-1,Math.min(h,c-(0,E.Xn)(s/2)),h),p=Math.atan(r/a),m=Math.hypot(r,a),f=n;return f+=(0,E.Or)(o/m/Math.max(.5,Math.cos((0,E.Xn)(s/2)))),f+=l*(0,E.Or)(Math.cos(p))/2,f-=(0,E.Or)(Math.max(1,u/d/i))/2}}let to=ta(9.314,3);function ts(t,i){return Math.max(0,(i.roundZoom?Math.round:Math.floor)(t.zoom+(0,E.Or)(t.tileSize/i.tileSize)))}function tl(t,i){var n;let r,a,o,s=t.getCameraFrustum(),l=t.getClippingPlane();if(l&&i.maxContentElevation>0){let n=Math.hypot(l[0],l[1],l[2]);if(n>0){let r=1+i.maxContentElevation/E.ct,a=Math.cos(Math.acos((0,E.Vn)(-l[3]/n,-1,1))+Math.acos(1/r));l=[l[0],l[1],l[2],-a*n],s=function(t,i,n){let r=t.planes[1],a=t.points.map(t=>{if(Math.abs(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]+r[3])>1e-6)return t;let a=[t[0]-n[0],t[1]-n[1],t[2]-n[2]],o=r[0]*a[0]+r[1]*a[1]+r[2]*a[2];if(o>=-1e-9)return t;let s=-(i/o);return[t[0]+a[0]*s,t[1]+a[1]*s,t[2]+a[2]*s,t[3]]}),o=t.planes.map((t,n)=>1===n?[t[0],t[1],t[2],t[3]+i]:t),s=[1/0,1/0,1/0],l=[-1/0,-1/0,-1/0];for(let t of a)for(let i=0;i<3;i++)s[i]=Math.min(s[i],t[i]),l[i]=Math.max(l[i],t[i]);return new tn(a,o,new ti(s,l))}(s,Math.sqrt(r*r-1),t.cameraPosition)}}let c=(0,E.q)(t),d=E.et.fromLngLat(t.center,t.elevation),h=(n=i.maxContentElevation,r=89.25-t.pitch-t.fov/2,a=(0,E.Vn)((15-r)/15,0,1),o=Math.max(500,n??0),t.elevation+a*o),u=t.getCoveringTilesDetailsProvider(),p=u.allowVariableZoom(t,i),m=ts(t,i),f=i.minzoom||0,g=void 0===i.maxzoom?t.maxZoom:i.maxzoom,_=Math.min(Math.max(0,m),g),v=2**_,y=[v*c.x,v*c.y,0],b=[v*d.x,v*d.y,0],x=Math.hypot(d.x-c.x,d.y-c.y),w=Math.abs(d.z-c.z),C=Math.hypot(x,w),T=t=>({zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}),k=[],A=[];if(t.renderWorldCopies&&u.allowWorldCopies())for(let t=1;t<=3;t++)k.push(T(-t)),k.push(T(t));for(k.push(T(0));k.length>0;){let n=k.pop(),r=n.x,a=n.y,o=n.fullyVisible,v={x:r,y:a,z:n.zoom},x=u.getTileBoundingVolume(v,n.wrap,h,i);if(!o){let t=function(t,i,n){let r=i.intersectsFrustum(t);if(!n||0===r)return r;let a=i.intersectsPlane(n);return 0===a?0:2===r&&2===a?2:1}(s,x,l);if(0===t)continue;o=2===t}let T=u.distanceToTile2d(c.x,c.y,v,x),I=m;p&&(I=(i.calculateTileZoom||to)(t.zoom+(0,E.Or)(t.tileSize/i.tileSize),T,w,C,t.fov));let S=Math.min(I=Math.max(0,I=(i.roundZoom?Math.round:Math.floor)(I)),g);if(n.wrap=u.getWrap(d,v,n.wrap),n.zoom>=S){if(n.zoom<f)continue;let t=_-n.zoom,o=y[0]-.5-(r<<t),s=y[1]-.5-(a<<t),l=i.reparseOverscaled?Math.max(n.zoom,I):n.zoom;A.push({tileID:new E.d(n.zoom===g?l:n.zoom,n.wrap,n.zoom,r,a),distanceSq:(0,E.Hr)([b[0]-.5-r,b[1]-.5-a]),tileDistanceToCamera:Math.sqrt(o*o+s*s)});continue}for(let t=0;t<4;t++){let i=(r<<1)+t%2,s=(a<<1)+(t>>1),l=n.zoom+1;k.push({zoom:l,x:i,y:s,wrap:n.wrap,fullyVisible:o})}}return A.sort((t,i)=>t.distanceSq-i.distanceSq).map(t=>t.tileID)}function tc(t){return"raster"===t||"image"===t||"video"===t}function td(t,i,n,r,a,o,s){if(n[0].overscaledZ>=o)return!1;let l=!1;for(let o of n){let n=t.getLoadedTile(o);if(!n)continue;let{fadingRole:c,fadingDirection:d,fadingParentID:h}=n;0===c&&0===d&&h||(n.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:i.tileID,fadeEndTime:a+s}),i.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:a+s})),r[o.key]=o,l=!0}return l}function th(t,i){t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.needsColorReliefPrepare=!0;let n=i.tileID.canonical.x-t.tileID.canonical.x,r=i.tileID.canonical.y-t.tileID.canonical.y,a=2**t.tileID.canonical.z,o=i.tileID.key;(0!==n||0!==r)&&(Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+a)?n+=a:1===Math.abs(n-a)&&(n-=a)),i.dem&&t.dem&&(t.dem.backfillBorder(i.dem,n,r),t.neighboringTiles?.[o]&&(t.neighboringTiles[o].backfilled=!0))))}var tu=class{constructor(){this._tiles={}}handleWrapJump(t){let i={};for(let n in this._tiles){let r=this._tiles[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),i[r.tileID.key]=r}this._tiles=i}setFeatureState(t,i,n){for(let r in this._tiles)this._tiles[r].setFeatureState(t,i,n)}getAllTiles(){return Object.values(this._tiles)}getAllIds(t=!1){return t?Object.values(this._tiles).map(t=>t.tileID).sort(E.m).map(t=>t.key):Object.keys(this._tiles)}getTileById(t){return this._tiles[t]}setTile(t,i){this._tiles[t]=i}deleteTileById(t){delete this._tiles[t]}getLoadedTile(t){let i=this.getTileById(t.key);return i?.hasData()?i:null}isIdRenderable(t,i=!1){return this.getTileById(t)?.isRenderable(i)}getRenderableIds(t=0,i){let n=[];for(let t of this.getAllIds())this.isIdRenderable(t,i)&&n.push(this.getTileById(t));return i?n.sort((i,n)=>{let r=i.tileID,a=n.tileID,o=new E.Ri(r.canonical.x,r.canonical.y)._rotate(-t),s=new E.Ri(a.canonical.x,a.canonical.y)._rotate(-t);return r.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x}).map(t=>t.tileID.key):n.map(t=>t.tileID).sort(E.m).map(t=>t.key)}},tp=class t extends E.yn{static{this.maxUnderzooming=10}static{this.maxOverzooming=3}constructor(t,i,n){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=n,this.on("data",t=>{this._dataHandler(t)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((t,i,n,r)=>{let a=new(e3(i.type))(t,i,n,r);if(a.id!==t)throw Error(`Expected Source id to be ${t} instead of ${a.id}`);return a})(t,i,n,this),this._inViewTiles=new tu,this._outOfViewCache=new E.n(0,t=>this._unloadTile(t)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new tt,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source?.onAdd&&this._source.onAdd(t)}onRemove(t){for(let t of this._inViewTiles.getAllTiles())t.unloadVectorData();this.clearTiles(),this._source?.onRemove&&this._source.onRemove(t),this._inViewTiles=new tu}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((void 0!==this.used||void 0!==this.usedForTerrain)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if("loaded"!==t.state&&"errored"!==t.state)return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}async _loadTile(t,i,n,r){try{let a=await this._source.loadTile(t);this._tileLoaded(t,i,n,r,a)}catch(i){t.state="errored",404===i.status?this.update(this.transform,this.terrain):this._source.fire(new E._n((0,E.$n)(i),{tile:t}))}}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new N("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){for(let i of(this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null),this._inViewTiles.getAllTiles()))i.upload(t),i.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){return this._inViewTiles.getRenderableIds(this.transform?.bearingInRadians,t)}hasRenderableParent(t){let i=t.overscaledZ-1;if(i>=this._source.minzoom){let n=this.getLoadedTile(t.scaledTo(i));if(n)return this._inViewTiles.isIdRenderable(n.tileID.key)}return!1}reload(t,i){if(this._paused){this._shouldReloadOnResume=!0;return}for(let n of(this._outOfViewCache.reset(),this._inViewTiles.getAllIds())){let r=this._inViewTiles.getTileById(n);(!i||this._source.shouldReloadTile(r,i))&&(t?this._reloadTile(n,"errored"===r.state?"loading":"expired"):"errored"!==r.state&&this._reloadTile(n,"reloading"))}}async _reloadTile(t,i){let n=this._inViewTiles.getTileById(t);if(!n)return;let r=n.hasData();"loading"!==n.state&&(n.state=i),await this._loadTile(n,t,i,r)}_tileLoaded(t,i,n,r,a){r||(t.timeAdded=S(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),"expired"===n&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(i,t),!a?.unmodified&&("raster-dem"===this.getSource().type&&t.dem&&function(t,i){for(let n of i.getRenderableIds()){if(!t.neighboringTiles?.[n])continue;let r=i.getTileById(n);t.neighboringTiles[n].backfilled||th(t,r),r.neighboringTiles?.[t.tileID.key]?.backfilled||th(r,t)}}(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new N("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(i,n){let r=this._getLoadedDescendents(n),a=new Set;for(let o of n){let n=r[o.key];if(!n?.length){a.add(o);continue}let s=o.overscaledZ+t.maxOverzooming,l=n.filter(t=>t.tileID.overscaledZ<=s);if(!l.length){a.add(o);continue}let c=Math.min(...l.map(t=>t.tileID.overscaledZ)),d=l.filter(t=>t.tileID.overscaledZ===c).map(t=>t.tileID);for(let t of d)i[t.key]=t;this._areDescendentsComplete(d,c,o.overscaledZ)||a.add(o)}return a}_getLoadedDescendents(t){let i={};for(let n of this._inViewTiles.getAllTiles().filter(t=>t.hasData()))for(let r of t)n.tileID.isChildOf(r)&&(i[r.key]||=[],i[r.key].push(n));return i}_areDescendentsComplete(t,i,n){return 1===t.length&&t[0].isOverscaled()?t[0].overscaledZ===i:4**(i-n)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let i=Math.floor((Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1)*(null===this._maxTileCacheZoomLevels?E.jn.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),n="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._outOfViewCache.setMaxSize(n)}handleWrapJump(t){let i=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){let t=this._maxContentElevationSeen,i=this.map?.style?._layers;if(!i)return t;let n=this._inViewTiles.getAllTiles();for(let r in i){let a=i[r];if(!("symbol"!==a.type||a.source!==this.id||a.isHidden(this.transform.zoom))&&a.layout)for(let i of(t=Math.max(t,a.layout.get("symbol-height-offset").constantOr(0)),n)){let n=i.getBucket(a);n&&n.maxHeightOffset>t&&(t=n.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,i){let n;if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=i,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this.used||this.usedForTerrain?this._source.tileID?n=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new E.d(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(n=tl(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:"vector"===this._source.type&&void 0!==this.map._zoomLevelsToOverscale?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:i,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(n=n.filter(t=>this._source.hasTile(t)))):n=[],this.usedForTerrain&&(n=this._addTerrainIdealTiles(n));let r=0===n.length&&!this._updated&&this._didEmitContent;this._updated=!0,r&&this.fire(new N("data",{sourceDataType:"idle",sourceId:this.id}));let a=ts(t,this._source),o=this._updateRetainedTiles(n,a),s=tc(this._source.type);s&&this._rasterFadeDuration>0&&!i&&function(t,i,n,r,a,o,s){let l=S(),c=(0,E.or)(i);for(let d of i){let i=t.getTileById(d.key);(0===i.fadingDirection||0===i.fadeOpacity)&&i.resetFadeLogic(),!function(t,i,n,r,a,o,s){if(!i.hasData())return!1;let{tileID:l,fadingRole:c,fadingDirection:d,fadingParentID:h}=i;if(0===c&&1===d&&h)return n[h.key]=h,!0;let u=Math.max(l.overscaledZ-a,o);for(let a=l.overscaledZ-1;a>=u;a--){let o=l.scaledTo(a),c=t.getLoadedTile(o);if(c)return i.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:c.tileID,fadeEndTime:r+s}),c.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:r+s}),n[o.key]=o,!0}return!1}(t,i,n,l,r,a,s)&&(function(t,i,n,r,a,o){if(!i.hasData())return!1;let s=i.tileID.children(a),l=td(t,i,s,n,r,a,o);if(l)return!0;for(let c of s)td(t,i,c.children(a),n,r,a,o)&&(l=!0);return l}(t,i,n,l,o,s)||function(t,i,n,r){let a=t.tileID;return!!t.selfFading||!t.hasData()&&!!i.has(a)&&(t.setSelfFadeLogic(n+r),!0)}(i,c,l,s)||i.resetFadeLogic())}}(this._inViewTiles,n,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let i of this._inViewTiles.getAllIds())t[i]||this._removeTile(i)}_cleanUpVectorTiles(t){for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);if(t[i]){n.clearSymbolFadeHold();continue}if(!n.hasSymbolBuckets){this._removeTile(i);continue}n.holdingForSymbolFade()?n.symbolFadeFinished()&&this._removeTile(i):n.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let i=[];for(let n of t)if(n.canonical.z>this._source.minzoom){let t=n.scaledTo(n.canonical.z-1);i.push(t);let r=n.scaledTo(Math.max(this._source.minzoom,Math.min(n.canonical.z,5)));i.push(r)}return t.concat(i)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(i,n){let r=new Set;for(let t of i)this._addTile(t).hasData()||r.add(t);let a=i.reduce((t,i)=>(t[i.key]=i,t),{}),o=this._retainLoadedChildren(a,r),s={},l=Math.max(n-t.maxUnderzooming,this._source.minzoom);for(let t of o){let i=this._inViewTiles.getTileById(t.key),n=i?.wasRequested();for(let r=t.overscaledZ-1;r>=l;--r){let o=t.scaledTo(r);if(s[o.key])break;if(s[o.key]=!0,(i=this.getTile(o))||!n||(i=this._addTile(o)),i){let t=i.hasData();if((t||!this.map?.cancelPendingTileRequestsWhileZooming||n)&&(a[o.key]=o),n=i.wasRequested(),t)break}}}return a}_addTile(t){let i=this._inViewTiles.getTileById(t.key);if(i)return i;(i=this._outOfViewCache.getAndRemove(t))&&(i.resetFadeLogic(),this._setTileReloadTimer(t.key,i),i.tileID=t,this._state.initializeTileState(i,this.map?this.map.painter:null));let n=i;return i||(i=new e9(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(i,t.key,i.state,!1)),i.uses++,this._inViewTiles.setTile(t.key,i),n||this._source.fire(new N("dataloading",{tile:i,coord:i.tileID})),i}_setTileReloadTimer(t,i){this._clearTileReloadTimer(t);let n=i.getExpiryTimeout();if(n){let i=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(i,n)}}_clearTileReloadTimer(t){let i=this._timers[t];i&&(clearTimeout(i),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,i)}}refreshTiles(t){for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);(this._inViewTiles.isIdRenderable(i)||"errored"==n.state)&&t.some(t=>t.equals(n.tileID.canonical))&&this._reloadTile(i,"expired")}}_removeTile(t){let i=this._inViewTiles.getTileById(t);i&&(i.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),i.uses>0||(i.hasData()&&"reloading"!==i.state?this._outOfViewCache.add(i.tileID,i,i.getExpiryTimeout()):(i.aborted=!0,this._abortTile(i),this._unloadTile(i))))}_dataHandler(t){if("source"===t.dataType){if("metadata"===t.sourceDataType){this._sourceLoaded=!0;return}"content"===t.sourceDataType&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){for(let t of(this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation(),this._inViewTiles.getAllIds()))this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,i,n){let r=[],a=this.transform;if(!a)return r;let o=a.getCoveringTilesDetailsProvider().allowWorldCopies(),s=n?a.getCameraQueryGeometry(t):t,l=t=>a.screenPointToMercatorCoordinate(t,this.terrain),c=this.transformBbox(t,l,!o),d=this.transformBbox(s,l,!o),h=this.getIds(),u=E.dt.fromPoints(d);for(let t of h){let n=this._inViewTiles.getTileById(t);if(n.holdingForSymbolFade())continue;let s=o?[n.tileID]:[n.tileID.unwrapTo(-1),n.tileID.unwrapTo(0)],l=2**(a.zoom-n.tileID.overscaledZ),h=i*n.queryPadding*8192/n.tileSize/l;for(let t of s){let i=u.map(i=>t.getTilePoint(new E.et(i.x,i.y)));if(i.expandBy(h),i.intersects(E.ut)){let i=c.map(i=>t.getTilePoint(i)),a=d.map(i=>t.getTilePoint(i));r.push({tile:n,tileID:o?t:t.unwrapTo(0),queryGeometry:i,cameraQueryGeometry:a,scale:l})}}}return r}transformBbox(t,i,n){let r=t.map(i);if(n){let n=E.dt.fromPoints(t);n.shrinkBy(.001*Math.min(n.width(),n.height()));let a=n.map(i);E.dt.fromPoints(r).covers(a)||(r=r.map(t=>t.x>.5?new E.et(t.x-1,t.y,t.z):t))}return r}getVisibleCoordinates(t){let i=this.getRenderableIds(t).map(t=>this._inViewTiles.getTileById(t).tileID);return this.transform&&this.transform.populateCache(i),i}hasTransition(){return!!this._source.hasTransition()||tc(this._source.type)&&function(t,i){if(i<=0)return!1;let n=S();for(let i of t.getAllTiles())if(i.fadeEndTime>=n)return!0;return!1}(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,i,n){t||=E.s,this._state.updateState(t,i,n)}removeFeatureState(t,i,n){t||=E.s,this._state.removeFeatureState(t,i,n)}getFeatureState(t,i){return t||=E.s,this._state.getState(t,i)}setDependencies(t,i,n){let r=this._inViewTiles.getTileById(t);r&&r.setDependencies(i,n)}reloadTilesForDependencies(t,i){for(let n of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(n).hasDependency(t,i)&&this._reloadTile(n,"reloading");this._outOfViewCache.filter(n=>!n.hasDependency(t,i))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if("loaded"!==t.state&&"errored"!==t.state)return!1;return!0}},tm=class{constructor(t,i){this.reset(t,i)}reset(t,i){this.points=t||[],this._distances=[0];for(let t=1;t<this.points.length;t++)this._distances[t]=this._distances[t-1]+this.points[t].dist(this.points[t-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(i||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=(0,E.Vn)(t,0,1);let i=1,n=this._distances[i],r=t*this.paddedLength+this.padding;for(;n<r&&i<this._distances.length;)n=this._distances[++i];let a=i-1,o=this._distances[a],s=n-o,l=s>0?(r-o)/s:0;return this.points[a].mult(1-l).add(this.points[i].mult(l))}};function tf(t,i,n,r,a){return a?t?t(i,n)+r:0===r?void 0:r:r}function tg(t,i){let n=!0;return"always"===t||("never"===t||"never"===i)&&(n=!1),n}var t_=class{constructor(t,i,n){let r=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(i/n);for(let t=0;t<this.xCellCount*this.yCellCount;t++)r.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=i,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/i,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(t,i,n,r,a){this._forEachCell(i,n,r,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)}insertCircle(t,i,n,r){this._forEachCell(i-r,n-r,i+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(i),this.circles.push(n),this.circles.push(r)}_insertBoxCell(t,i,n,r,a,o){this.boxCells[a].push(o)}_insertCircleCell(t,i,n,r,a,o){this.circleCells[a].push(o)}_query(t,i,n,r,a,o,s){if(n<0||t>this.width||r<0||i>this.height)return[];let l=[];if(t<=0&&i<=0&&this.width<=n&&this.height<=r){if(a)return[{key:null,x1:t,y1:i,x2:n,y2:r}];for(let t=0;t<this.boxKeys.length;t++)l.push({key:this.boxKeys[t],x1:this.bboxes[4*t],y1:this.bboxes[4*t+1],x2:this.bboxes[4*t+2],y2:this.bboxes[4*t+3]});for(let t=0;t<this.circleKeys.length;t++){let i=this.circles[3*t],n=this.circles[3*t+1],r=this.circles[3*t+2];l.push({key:this.circleKeys[t],x1:i-r,y1:n-r,x2:i+r,y2:n+r})}}else this._forEachCell(t,i,n,r,this._queryCell,l,{hitTest:a,overlapMode:o,seenUids:{box:{},circle:{}}},s);return l}query(t,i,n,r){return this._query(t,i,n,r,!1,null)}hitTest(t,i,n,r,a,o){return this._query(t,i,n,r,!0,a,o).length>0}hitTestCircle(t,i,n,r,a){let o=t-n,s=t+n,l=i-n,c=i+n;if(s<0||o>this.width||c<0||l>this.height)return!1;let d=[];return this._forEachCell(o,l,s,c,this._queryCellCircle,d,{hitTest:!0,overlapMode:r,circle:{x:t,y:i,radius:n},seenUids:{box:{},circle:{}}},a),d.length>0}_queryCell(t,i,n,r,a,o,s,l){let{seenUids:c,hitTest:d,overlapMode:h}=s,u=this.boxCells[a];if(null!==u){let a=this.bboxes;for(let s of u)if(!c.box[s]){c.box[s]=!0;let u=4*s,p=this.boxKeys[s];if(t<=a[u+2]+1e-6&&i<=a[u+3]+1e-6&&n>=a[u+0]-1e-6&&r>=a[u+1]-1e-6&&(!l||l(p))&&(!d||!tg(h,p.overlapMode))&&(o.push({key:p,x1:a[u],y1:a[u+1],x2:a[u+2],y2:a[u+3]}),d))return!0}}let p=this.circleCells[a];if(null!==p){let a=this.circles;for(let s of p)if(!c.circle[s]){c.circle[s]=!0;let u=3*s,p=this.circleKeys[s];if(this._circleAndRectCollide(a[u],a[u+1],a[u+2],t,i,n,r)&&(!l||l(p))&&(!d||!tg(h,p.overlapMode))){let t=a[u],i=a[u+1],n=a[u+2];if(o.push({key:p,x1:t-n,y1:i-n,x2:t+n,y2:i+n}),d)return!0}}}return!1}_queryCellCircle(t,i,n,r,a,o,s,l){let{circle:c,seenUids:d,overlapMode:h}=s,u=this.boxCells[a];if(null!==u){let t=this.bboxes;for(let i of u)if(!d.box[i]){d.box[i]=!0;let n=4*i,r=this.boxKeys[i];if(this._circleAndRectCollide(c.x,c.y,c.radius,t[n+0],t[n+1],t[n+2],t[n+3])&&(!l||l(r))&&!tg(h,r.overlapMode))return o.push(!0),!0}}let p=this.circleCells[a];if(null!==p){let t=this.circles;for(let i of p)if(!d.circle[i]){d.circle[i]=!0;let n=3*i,r=this.circleKeys[i];if(this._circlesCollide(t[n],t[n+1],t[n+2],c.x,c.y,c.radius)&&(!l||l(r))&&!tg(h,r.overlapMode))return o.push(!0),!0}}}_forEachCell(t,i,n,r,a,o,s,l){let c=this._convertToXCellCoord(t),d=this._convertToYCellCoord(i),h=this._convertToXCellCoord(n),u=this._convertToYCellCoord(r);for(let p=c;p<=h;p++)for(let c=d;c<=u;c++){let d=this.xCellCount*c+p;if(a.call(this,t,i,n,r,d,o,s,l))return}}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,i,n,r,a,o){let s=r-t,l=a-i,c=n+o;return c*c>s*s+l*l}_circleAndRectCollide(t,i,n,r,a,o,s){let l=(o-r)/2,c=Math.abs(t-(r+l));if(c>l+n)return!1;let d=(s-a)/2,h=Math.abs(i-(a+d));if(h>d+n)return!1;if(c<=l||h<=d)return!0;let u=c-l,p=h-d;return u*u+p*p<=n*n}};let tv=(0,E.yi)();function ty(t,i,n){let r=(0,E.yi)();if(!t){var a,o,s,l,c;let{vecSouth:t,vecEast:n}=tb(i),d=k();d[0]=n[0],d[1]=n[1],d[2]=t[0],d[3]=t[1],a=d[0],o=d[1],s=d[2],(c=a*(l=d[3])-s*o)&&(c=1/c,d[0]=l*c,d[1]=-o*c,d[2]=-s*c,d[3]=a*c),r[0]=d[0],r[1]=d[1],r[4]=d[2],r[5]=d[3]}return(0,E.ji)(r,r,[1/n,1/n,1]),r}function tb(t){let i=Math.cos(t.rollInRadians),n=Math.sin(t.rollInRadians),r=Math.cos(t.pitchInRadians),a=Math.cos(t.bearingInRadians),o=Math.sin(t.bearingInRadians),s=(0,E.zr)();s[0]=-a*r*n-o*i,s[1]=-o*r*n+a*i;let l=(0,E.Br)(s);l<1e-9?(0,E.Ur)(s):(0,E.Vr)(s,s,1/l);let c=(0,E.zr)();c[0]=a*r*i-o*n,c[1]=o*r*i+a*n;let d=(0,E.Br)(c);return d<1e-9?(0,E.Ur)(c):(0,E.Vr)(c,c,1/d),{vecEast:c,vecSouth:s}}function tx(t,i,n){return tf(t.getElevation,i,n,t.heightOffset??0,t.heightAnchorGround??!0)}function tw(t,i,n,r){let a;null==r?tR(a=[t,i,0,1],a,n):(a=[t,i,r,1],(0,E.Xr)(a,a,n));let o=a[3];return{point:new E.Ri(a[0]/o,a[1]/o),signedDistanceFromCamera:o,isOccluded:!1}}function tC(t,i,n,r,a,o,s,l){let c=o.glyphStartIndex+o.numGlyphs,d=o.lineStartIndex,h=o.lineStartIndex+o.lineLength,u=i.getoffsetX(o.glyphStartIndex),p=i.getoffsetX(c-1),m=tM(t*u,n,r,a,o.segment,d,h,l,s);if(!m)return null;let f=tM(t*p,n,r,a,o.segment,d,h,l,s);return!f||l.projectionCache.anyProjectionOccluded?null:{first:m,last:f}}function tE(t,i,n,r){return 1===t&&Math.abs(n.y-i.y)>Math.abs(n.x-i.x)*r?{useVertical:!0}:(2===t?i.y<n.y:i.x>n.x)?{needsFlipping:!0}:null}function tT(t){let{projectionContext:i,pitchedLabelPlaneMatrixInverse:n,symbol:r,fontSize:a,flip:o,keepUpright:s,glyphOffsetArray:l,dynamicLayoutVertexArray:c,aspectRatio:d,rotateToLine:h}=t,u=a/24,p=r.lineOffsetX*u,m=r.lineOffsetY*u,f;if(r.numGlyphs>1){let t=r.glyphStartIndex+r.numGlyphs,a=r.lineStartIndex,c=r.lineStartIndex+r.lineLength,g=tC(u,l,p,m,o,r,h,i);if(!g)return{notEnoughRoom:!0};let _=tS(g.first.point.x,g.first.point.y,i,n),v=tS(g.last.point.x,g.last.point.y,i,n);if(s&&!o){let t=tE(r.writingMode,_,v,d);if(t)return t}f=[g.first];for(let n=r.glyphStartIndex+1;n<t-1;n++){let t=tM(u*l.getoffsetX(n),p,m,o,r.segment,a,c,i,h);if(!t)return{notEnoughRoom:!0};f.push(t)}f.push(g.last)}else{if(s&&!o){let t=tI(i.tileAnchorPoint.x,i.tileAnchorPoint.y,i).point,a=r.lineStartIndex+r.segment+1,o=new E.Ri(i.lineVertexArray.getx(a),i.lineVertexArray.gety(a)),s=tI(o.x,o.y,i),l=s.signedDistanceFromCamera>0?s.point:tk(i.tileAnchorPoint,o,t,1,i),c=tS(t.x,t.y,i,n),h=tS(l.x,l.y,i,n),u=tE(r.writingMode,c,h,d);if(u)return u}let t=tM(u*l.getoffsetX(r.glyphStartIndex),p,m,o,r.segment,r.lineStartIndex,r.lineStartIndex+r.lineLength,i,h);if(!t||i.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};f=[t]}for(let t of f)(0,E.C)(c,t.point,t.angle);return{}}function tk(t,i,n,r,a){let o=t.add(t.sub(i)._unit()),s=tI(o.x,o.y,a).point,l=n.sub(s);return n.add(l._mult(r/l.mag()))}function tA(t,i,n){let r=i.projectionCache;if(r.projections[t])return r.projections[t];let a=new E.Ri(i.lineVertexArray.getx(t),i.lineVertexArray.gety(t)),o=tI(a.x,a.y,i);if(o.signedDistanceFromCamera>0)return r.projections[t]=o.point,r.anyProjectionOccluded||=o.isOccluded,o.point;let s=t-n.direction,l=0===n.distanceFromAnchor?i.tileAnchorPoint:new E.Ri(i.lineVertexArray.getx(s),i.lineVertexArray.gety(s)),c=n.absOffsetX-n.distanceFromAnchor+1;return tk(l,a,n.previousVertex,c,i)}function tI(t,i,n){let r=t+n.translation[0],a=i+n.translation[1],o;return n.pitchWithMap?(o=tw(r,a,n.pitchedLabelPlaneMatrix,tx(n,r,a))).isOccluded=!1:((o=n.transform.projectTileCoordinates(r,a,n.unwrappedTileID,tx(n,r,a))).point.x=(.5*o.point.x+.5)*n.width,o.point.y=(-(.5*o.point.y)+.5)*n.height),o}function tS(t,i,n,r){if(n.pitchWithMap){let a=[t,i,0,1];(0,E.Xr)(a,a,r);let o=a[0]/a[3],s=a[1]/a[3];return n.transform.projectTileCoordinates(o,s,n.unwrappedTileID,tx(n,o,s)).point}return{x:t/n.width*2-1,y:1-i/n.height*2}}function tD(t,i,n){return n.transform.projectTileCoordinates(t,i,n.unwrappedTileID,tx(n,t,i))}function tP(t,i,n){return t._unit()._perp()._mult(i*n)}function tM(t,i,n,r,a,o,s,l,c){let d=r?t-i:t+i,h=d>0?1:-1,u=0;r&&(h*=-1,u=Math.PI),h<0&&(u+=Math.PI);let p=h>0?o+a:o+a+1,m;l.projectionCache.cachedAnchorPoint?m=l.projectionCache.cachedAnchorPoint:(m=tI(l.tileAnchorPoint.x,l.tileAnchorPoint.y,l).point,l.projectionCache.cachedAnchorPoint=m);let f=m,g=m,_,v,y=0,b=0,x=Math.abs(d),w=[],C;for(;y+b<=x;){if((p+=h)<o||p>=s)return null;y+=b,g=f,v=_;let t={absOffsetX:x,direction:h,distanceFromAnchor:y,previousVertex:g};if(f=tA(p,l,t),0===n)w.push(g),C=f.sub(g);else{let i,r=f.sub(g);i=0===r.mag()?tP(tA(p+h,l,t).sub(f),n,h):tP(r,n,h),v||=g.add(i),_=function(t,i,n,r,a,o,s,l,c){if(l.projectionCache.offsets[t])return l.projectionCache.offsets[t];let d=n.add(i);if(t+c.direction<r||t+c.direction>=a)return l.projectionCache.offsets[t]=d,d;let h=tA(t+c.direction,l,c),u=tP(h.sub(n),s,c.direction),p=n.add(u),m=h.add(u);return l.projectionCache.offsets[t]=(0,E.rr)(o,d,p,m)||d,l.projectionCache.offsets[t]}(p,i,f,o,s,v,n,l,t),w.push(v),C=_.sub(v)}b=C.mag()}let T=(x-y)/b,k=C._mult(T)._add(v||g),A=u+Math.atan2(f.y-g.y,f.x-g.x);return w.push(k),{point:k,angle:c?A:0,path:w}}let tz=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function tL(t,i){for(let n=0;n<t;n++){let t=i.length;i.resize(t+4),i.float32.set(tz,3*t)}}function tR(t,i,n){let r=i[0],a=i[1];return t[0]=n[0]*r+n[4]*a+n[12],t[1]=n[1]*r+n[5]*a+n[13],t[3]=n[3]*r+n[7]*a+n[15],t}var tF=class{constructor(t,i=new t_(t.width+200,t.height+200,25),n=new t_(t.width+200,t.height+200,25)){this.transform=t,this.grid=i,this.ignoredGrid=n,this.pitchFactor=Math.cos(t.pitch*Math.PI/180)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(t,i,n,r,a,o,s,l,c,d,h,u,p=0,m=!0){let f=t.anchorPointX+l[0],g=t.anchorPointY+l[1],_=this.projectAndGetPerspectiveRatio(f,g,a,tf(d,f,g,p,m),u),v=n*_.perspectiveRatio,y;if(o||s)y=this._projectCollisionBox(t,v,r,a,o,s,l,_,d,h,u,p,m);else{let i=_.x+(h?h.x*v:0),n=_.y+(h?h.y*v:0);y={allPointsOccluded:!1,box:[i+t.x1*v,n+t.y1*v,i+t.x2*v,n+t.y2*v]}}let[b,x,w,C]=y.box,E=o?y.allPointsOccluded:_.isOccluded,T=E;return T||=_.perspectiveRatio<this.perspectiveRatioCutoff,(T||=!this.isInsideGrid(b,x,w,C))||"always"!==i&&this.grid.hitTest(b,x,w,C,i,c)?{box:[b,x,w,C],placeable:!1,offscreen:!1,occluded:E}:{box:[b,x,w,C],placeable:!0,offscreen:this.isOffscreen(b,x,w,C),occluded:E}}placeCollisionCircles(t,i,n,r,a,o,s,l,c,d,h,u,p,m){let f=[],g=new E.Ri(i.anchorX,i.anchorY),_=this.getPerspectiveRatio(g.x,g.y,o,m?.(g.x,g.y)),v=(c?a*this.transform.getPitchedTextCorrection(i.anchorX,i.anchorY,o)/_:a*_)/24,y=i.lineOffsetX*v,b=i.lineOffsetY*v,x={getElevation:m,pitchedLabelPlaneMatrix:s,lineVertexArray:n,pitchWithMap:c,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},transform:this.transform,tileAnchorPoint:g,unwrappedTileID:o,width:this.transform.width,height:this.transform.height,translation:p},w=tC(v,r,y,b,!1,i,!1,x),C=!1,T=!1,k=!0;if(w){let i=.5*h*_+u,n=new E.Ri(-100,-100),r=new E.Ri(this.screenRightBoundary,this.screenBottomBoundary),a=new tm,o=w.first,s=w.last,p=[];for(let t=o.path.length-1;t>=1;t--)p.push(o.path[t]);for(let t=1;t<s.path.length;t++)p.push(s.path[t]);let m=2.5*i;if(c){let t=this.projectPathToScreenSpace(p,x);p=t.some(t=>t.signedDistanceFromCamera<=0)?[]:t.map(t=>t.point)}let g=[];if(p.length>0){let t=p[0].clone(),i=p[0].clone();for(let n=1;n<p.length;n++)t.x=Math.min(t.x,p[n].x),t.y=Math.min(t.y,p[n].y),i.x=Math.max(i.x,p[n].x),i.y=Math.max(i.y,p[n].y);g=t.x>=n.x&&i.x<=r.x&&t.y>=n.y&&i.y<=r.y?[p]:i.x<n.x||t.x>r.x||i.y<n.y||t.y>r.y?[]:(0,E.O)([p],n.x,n.y,r.x,r.y)}for(let n of g){a.reset(n,.25*i);let r=0;r=a.length<=.5*i?1:Math.ceil(a.paddedLength/m)+1;for(let n=0;n<r;n++){let o=n/Math.max(r-1,1),s=a.lerp(o),c=s.x+100,h=s.y+100;f.push(c,h,i,0);let u=c-i,p=h-i,m=c+i,g=h+i;if(k&&=this.isOffscreen(u,p,m,g),T||=this.isInsideGrid(u,p,m,g),"always"!==t&&this.grid.hitTestCircle(c,h,i,t,d)&&(C=!0,!l))return{circles:[],offscreen:!1,collisionDetected:C}}}}return{circles:!l&&C||!T||_<this.perspectiveRatioCutoff?[]:f,offscreen:k,collisionDetected:C}}projectPathToScreenSpace(t,i){var n;let r;return function(t){let i=0,n=0,r=0,a=0;for(let o=0;o<t.length;o++)t[o].isOccluded?(r=o+1,a=0):++a>n&&(n=a,i=r);return t.slice(i,i+n)}((r=1/((n=i.pitchedLabelPlaneMatrix)[0]*n[5]-n[1]*n[4]),tv[0]=n[5]*r,tv[1]=-n[1]*r,tv[2]=0,tv[3]=0,tv[4]=-n[4]*r,tv[5]=n[0]*r,tv[6]=0,tv[7]=0,tv[8]=0,tv[9]=0,tv[10]=1/n[10],tv[11]=0,tv[12]=0,tv[13]=0,tv[14]=0,tv[15]=1/n[15],t.map(t=>{let n=tw(t.x,t.y,tv,tx(i,t.x,t.y)),r=i.transform.projectTileCoordinates(n.point.x,n.point.y,i.unwrappedTileID,tx(i,n.point.x,n.point.y));return r.point.x=(.5*r.point.x+.5)*i.width,r.point.y=(-(.5*r.point.y)+.5)*i.height,r})))}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};let i=[],n=new E.dt;for(let r of t){let t=new E.Ri(r.x+100,r.y+100);n.extend(t),i.push(t)}let{minX:r,minY:a,maxX:o,maxY:s}=n,l=this.grid.query(r,a,o,s).concat(this.ignoredGrid.query(r,a,o,s)),c={},d={};for(let t of l){let n=t.key;if(void 0===c[n.bucketInstanceId]&&(c[n.bucketInstanceId]={}),c[n.bucketInstanceId][n.featureIndex])continue;let r=[new E.Ri(t.x1,t.y1),new E.Ri(t.x2,t.y1),new E.Ri(t.x2,t.y2),new E.Ri(t.x1,t.y2)];(0,E.Dt)(i,r)&&(c[n.bucketInstanceId][n.featureIndex]=!0,void 0===d[n.bucketInstanceId]&&(d[n.bucketInstanceId]=[]),d[n.bucketInstanceId].push(n.featureIndex))}return d}insertCollisionBox(t,i,n,r,a,o){(n?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:a,collisionGroupID:o,overlapMode:i},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,i,n,r,a,o){let s=n?this.ignoredGrid:this.grid,l={bucketInstanceId:r,featureIndex:a,collisionGroupID:o,overlapMode:i};for(let i=0;i<t.length;i+=4)s.insertCircle(l,t[i],t[i+1],t[i+2])}projectAndGetPerspectiveRatio(t,i,n,r,a){if(a){let n;null==r?tR(n=[t,i,0,1],n,a):(n=[t,i,r,1],(0,E.Xr)(n,n,a));let o=n[3];return{x:(n[0]/o+1)/2*this.transform.width+100,y:(-n[1]/o+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/o),isOccluded:!1,signedDistanceFromCamera:o}}{let a=this.transform.projectTileCoordinates(t,i,n,r);return{x:(a.point.x+1)/2*this.transform.width+100,y:(-a.point.y+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/a.signedDistanceFromCamera),isOccluded:a.isOccluded,signedDistanceFromCamera:a.signedDistanceFromCamera}}}getPerspectiveRatio(t,i,n,r){let a=this.transform.projectTileCoordinates(t,i,n,r);return .5+.5*(this.transform.cameraToCenterDistance/a.signedDistanceFromCamera)}isOffscreen(t,i,n,r){return n<100||t>=this.screenRightBoundary||r<100||i>this.screenBottomBoundary}isInsideGrid(t,i,n,r){return n>=0&&t<this.gridRightBoundary&&r>=0&&i<this.gridBottomBoundary}getViewportMatrix(){let t=(0,E.Ci)([]);return(0,E.Mi)(t,t,[-100,-100,0]),t}_projectCollisionBox(t,i,n,r,a,o,s,l,c,d,h,u=0,p=!0){let m=1,f=0,g=0,_=1,v=t.anchorPointX+s[0],y=t.anchorPointY+s[1];if(o&&!a){let t=this.projectAndGetPerspectiveRatio(v+1,y,r,tf(c,v+1,y,u,p),h),i=t.x-l.x,n=Math.atan((t.y-l.y)/i)+(i<0?Math.PI:0),a=Math.sin(n),o=Math.cos(n);m=o,f=a,g=-a,_=o}else if(!o&&a){let t=tb(this.transform);m=t.vecEast[0],f=t.vecEast[1],g=t.vecSouth[0],_=t.vecSouth[1]}let b=l.x,x=l.y,w=i;if(a&&(b=v,x=y,w=2**-(this.transform.zoom-n.overscaledZ)*this.transform.getPitchedTextCorrection(v,y,r),!d)){let t=l.signedDistanceFromCamera/this.transform.cameraToCenterDistance;w*=(0,E.Vn)(.5+.5*t,0,4)}d&&(b+=m*d.x*w+g*d.y*w,x+=f*d.x*w+_*d.y*w);let C=t.x1*w,T=t.x2*w,k=(C+T)/2,A=t.y1*w,I=t.y2*w,S=(A+I)/2,D=[];for(let{offsetX:t,offsetY:i}of[{offsetX:C,offsetY:A},{offsetX:k,offsetY:A},{offsetX:T,offsetY:A},{offsetX:T,offsetY:S},{offsetX:T,offsetY:I},{offsetX:k,offsetY:I},{offsetX:C,offsetY:I},{offsetX:C,offsetY:S}])D.push(new E.Ri(b+m*t+g*i,x+f*t+_*i));let P=!1;if(a){let t=D.map(t=>this.projectAndGetPerspectiveRatio(t.x,t.y,r,tf(c,t.x,t.y,u,p),h));P=t.some(t=>!t.isOccluded),D=t.map(t=>new E.Ri(t.x,t.y))}else P=!0;return{box:(0,E.ir)(D),allPointsOccluded:!P}}},tO=class{constructor(t,i,n,r){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?i:-i))):r&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}},tB=class{constructor(t,i,n,r,a){this.text=new tO(t?t.text:null,i,n,a),this.icon=new tO(t?t.icon:null,i,r,a)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},tN=class{constructor(t,i,n){this.text=t,this.icon=i,this.skipFade=n}},tV=class{constructor(t,i,n,r,a){this.bucketInstanceId=t,this.featureIndex=i,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=a}},t$=class{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){let i=++this.maxGroupID;this.collisionGroups[t]={ID:i,predicate:t=>t.collisionGroupID===i}}return this.collisionGroups[t]}};function tj(t,i,n,r,a){let{horizontalAlign:o,verticalAlign:s}=(0,E.M)(t);return new E.Ri(-(o-.5)*i+r[0]*a,-(s-.5)*n+r[1]*a)}var tU=class{constructor(t,i,n,r,a){this.transform=t.clone(),this.terrain=i,this.collisionIndex=new tF(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=n,this.retainedQueryData={},this.collisionGroups=new t$(r),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=a,a&&(a.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(t){let i=this.terrain;if(i)return(n,r)=>i.getElevation(t,n,r)}getBucketParts(t,i,n,r){let a=n.getBucket(i),o=n.latestFeatureIndex;if(!a||!o||i.id!==a.layerIds[0])return;let s=n.collisionBoxArray,l=a.layers[0].layout,c=a.layers[0].paint,d=2**(this.transform.zoom-n.tileID.overscaledZ),h=n.tileSize/8192,u=n.tileID.toUnwrapped(),p="map"===l.get("text-rotation-alignment"),m=(0,E.Lr)(n,1,this.transform.zoom),f=(0,E.Mr)(this.collisionIndex.transform,n,c.get("text-translate"),c.get("text-translate-anchor")),g=(0,E.Mr)(this.collisionIndex.transform,n,c.get("icon-translate"),c.get("icon-translate-anchor")),_=ty(p,this.transform,m);this.retainedQueryData[a.bucketInstanceId]=new tV(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);let v={bucket:a,layout:l,translationText:f,translationIcon:g,unwrappedTileID:u,pitchedLabelPlaneMatrix:_,scale:d,textPixelRatio:h,holdingForFade:n.holdingForSymbolFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:(0,E.A)(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(r)for(let i of a.sortKeyRanges){let{sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:a}=i;t.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:a,parameters:v})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:v})}attemptAnchorPlacement(t,i,n,r,a,o,s,l,c,d,h,u,p,m,f,g,_,v,y,b,x,w){let C=E.E[t.textAnchor],T=[t.textOffset0,t.textOffset1],k=tj(C,n,r,T,a),A=this.collisionIndex.placeCollisionBox(i,u,l,c,d,s,o,g,h.predicate,y,k,b,x,w);if((!v||this.collisionIndex.placeCollisionBox(v,u,l,c,d,s,o,_,h.predicate,y,k,b,x,w).placeable)&&A.placeable){let t;if(this.prevPlacement?.variableOffsets[p.crossTileID]&&this.prevPlacement?.placements[p.crossTileID]?.text&&(t=this.prevPlacement.variableOffsets[p.crossTileID].anchor),0===p.crossTileID)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[p.crossTileID]={textOffset:T,width:n,height:r,anchor:C,textBoxScale:a,prevAnchor:t},this.markUsedJustification(m,C,p,f),m.allowVerticalPlacement&&(this.markUsedOrientation(m,f,p),this.placedOrientations[p.crossTileID]=f),{shift:k,placedGlyphBoxes:A}}}placeLayerBucketPart(t,i,n){let{bucket:r,layout:a,translationText:o,translationIcon:s,unwrappedTileID:l,pitchedLabelPlaneMatrix:c,textPixelRatio:d,holdingForFade:h,collisionBoxArray:u,partiallyEvaluatedTextSize:p,collisionGroup:m}=t.parameters,f=a.get("text-optional"),g=a.get("icon-optional"),_=(0,E.w)(a,"text-overlap","text-allow-overlap"),v="always"===_,y=(0,E.w)(a,"icon-overlap","icon-allow-overlap"),b="always"===y,x="map"===a.get("text-rotation-alignment"),w="map"===a.get("text-pitch-alignment"),C="none"!==a.get("icon-text-fit"),T="viewport-y"===a.get("symbol-z-order"),k="ground"===a.get("symbol-height-anchor"),A=v&&(b||!r.hasIconData()||g),I=b&&(v||!r.hasTextData()||f);!r.collisionArrays&&u&&r.deserializeCollisionBoxes(u);let S=this.retainedQueryData[r.bucketInstanceId].tileID,D=this._getTerrainElevationFunc(S),P=this.transform.getFastPathSimpleProjectionMatrix(S),M=(t,u,b)=>{if(i[t.crossTileID])return;if(h){this.placements[t.crossTileID]=new tN(!1,!1,!1);return}let T=t.heightOffset,M=!1,z=!1,L=!0,R=null,F={box:null,placeable:!1,offscreen:null,occluded:!1},O={box:null,placeable:!1,offscreen:null},B=null,N=null,V=null,$=0,j=0,U=0;u.textFeatureIndex?$=u.textFeatureIndex:t.useRuntimeCollisionCircles&&($=t.featureIndex),u.verticalTextFeatureIndex&&(j=u.verticalTextFeatureIndex);let q=u.textBox;if(q){let i=i=>{let n=1;if(r.allowVerticalPlacement&&!i&&this.prevPlacement){let i=this.prevPlacement.placedOrientations[t.crossTileID];i&&(this.placedOrientations[t.crossTileID]=i,n=i,this.markUsedOrientation(r,n,t))}return n},a=(i,n)=>{if(r.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&u.verticalTextBox){for(let t of r.writingModes)if(2===t?O=F=n():F=i(),F?.placeable)break}else F=i()},c=t.textAnchorOffsetStartIndex,h=t.textAnchorOffsetEndIndex;if(h===c){let n=(i,n)=>{let a=this.collisionIndex.placeCollisionBox(i,_,d,S,l,w,x,o,m.predicate,D,void 0,P,T,k);return a?.placeable&&(this.markUsedOrientation(r,n,t),this.placedOrientations[t.crossTileID]=n),a};a(()=>n(q,1),()=>{let i=u.verticalTextBox;return r.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i?n(i,2):{box:null,offscreen:null}}),i(F?.placeable)}else{let p=E.E[this.prevPlacement?.variableOffsets[t.crossTileID]?.anchor],f=(i,a,u)=>{let f=i.x2-i.x1,g=i.y2-i.y1,v=t.textBoxScale,b=C&&"never"===y?a:null,E=null,A="never"===_?1:2,I="never";p&&A++;for(let n=0;n<A;n++){for(let n=c;n<h;n++){let a=r.textAnchorOffsets.get(n);if(p&&a.textAnchor!==p)continue;let c=this.attemptAnchorPlacement(a,i,f,g,v,x,w,d,S,l,m,I,t,r,u,o,s,b,D,P,T,k);if(c&&(E=c.placedGlyphBoxes,E?.placeable))return M=!0,R=c.shift,E}p?p=null:I=_}return n&&!E&&(E={box:this.collisionIndex.placeCollisionBox(q,"always",d,S,l,w,x,o,m.predicate,D,void 0,P,T,k).box,offscreen:!1,placeable:!1,occluded:!1}),E};a(()=>f(q,u.iconBox,1),()=>{let i=u.verticalTextBox,n=F?.placeable;return r.allowVerticalPlacement&&!n&&t.numVerticalGlyphVertices>0&&i?f(i,u.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),F&&(M=F.placeable,L=F.offscreen);let g=i(F?.placeable);if(!M&&this.prevPlacement){let i=this.prevPlacement.variableOffsets[t.crossTileID];i&&(this.variableOffsets[t.crossTileID]=i,this.markUsedJustification(r,i.anchor,t,g))}}}if(B=F,M=B?.placeable,L=B?.offscreen,t.useRuntimeCollisionCircles&&t.centerJustifiedTextSymbolIndex>=0){let i=r.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),s=(0,E.k)(r.textSizeData,p,i),d=a.get("text-padding"),h=t.collisionCircleDiameter;(N=this.collisionIndex.placeCollisionCircles(_,i,r.lineVertexArray,r.glyphOffsetArray,s,l,c,n,w,m.predicate,h,d,o,D)).circles.length&&N.collisionDetected&&!n&&(0,E.Pr)("Collisions detected, but collision boxes are not shown"),M=v||N.circles.length>0&&!N.collisionDetected,L&&=N.offscreen}if(u.iconFeatureIndex&&(U=u.iconFeatureIndex),u.iconBox){let t=t=>this.collisionIndex.placeCollisionBox(t,y,d,S,l,w,x,s,m.predicate,D,C&&R?R:void 0,P,T,k);z=O&&O.placeable&&u.verticalIconBox?(V=t(u.verticalIconBox)).placeable:(V=t(u.iconBox)).placeable,L&&=V.offscreen}let G=f||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,H=g||0===t.numIconVertices;G||H?H?G||(z&&=M):M=z&&M:z=M=z&&M;let Z=M&&B.placeable,X=z&&V.placeable;if(Z&&(O&&O.placeable&&j?this.collisionIndex.insertCollisionBox(B.box,_,a.get("text-ignore-placement"),r.bucketInstanceId,j,m.ID):this.collisionIndex.insertCollisionBox(B.box,_,a.get("text-ignore-placement"),r.bucketInstanceId,$,m.ID)),X&&this.collisionIndex.insertCollisionBox(V.box,y,a.get("icon-ignore-placement"),r.bucketInstanceId,U,m.ID),N&&M&&this.collisionIndex.insertCollisionCircles(N.circles,_,a.get("text-ignore-placement"),r.bucketInstanceId,$,m.ID),n&&this.storeCollisionData(r.bucketInstanceId,b,u,B,V,N),0===t.crossTileID)throw Error("symbolInstance.crossTileID can't be 0");if(0===r.bucketInstanceId)throw Error("bucket.bucketInstanceId can't be 0");let W=(M||A)&&!B?.occluded,Y=(z||I)&&!V?.occluded;this.placements[t.crossTileID]=new tN(W,Y,L||r.justReloaded),i[t.crossTileID]=!0};if(T){if(0!==t.symbolInstanceStart)throw Error("bucket.bucketInstanceId should be 0");let i=r.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let t=i.length-1;t>=0;--t){let n=i[t];M(r.symbolInstances.get(n),r.collisionArrays[n],n)}}else for(let i=t.symbolInstanceStart;i<t.symbolInstanceEnd;i++)M(r.symbolInstances.get(i),r.collisionArrays[i],i);r.justReloaded=!1}storeCollisionData(t,i,n,r,a,o){if(n.textBox||n.iconBox){let o,s;this.collisionBoxArrays.has(t)?o=this.collisionBoxArrays.get(t):(o=new Map,this.collisionBoxArrays.set(t,o)),o.has(i)?s=o.get(i):(s={text:null,icon:null},o.set(i,s)),n.textBox&&(s.text=r.box),n.iconBox&&(s.icon=a.box)}if(o){let i=this.collisionCircleArrays[t];void 0===i&&(i=this.collisionCircleArrays[t]=[]);for(let t=0;t<o.circles.length;t+=4)i.push(o.circles[t+0]-100),i.push(o.circles[t+1]-100),i.push(o.circles[t+2]),i.push(+!!o.collisionDetected)}}markUsedJustification(t,i,n,r){let a={left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex},o;for(let s of(o=2===r?n.verticalPlacedTextSymbolIndex:a[(0,E.T)(i)],[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex]))s>=0&&(o>=0&&s!==o?t.text.placedSymbolArray.get(s).crossTileID=0:t.text.placedSymbolArray.get(s).crossTileID=n.crossTileID)}markUsedOrientation(t,i,n){let r=1===i||3===i?i:0;for(let i of[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex])t.text.placedSymbolArray.get(i).placedOrientation=r;n.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=2===i?i:0)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;let i=this.prevPlacement,n=!1;this.prevZoomAdjustment=i?i.zoomAdjustment(this.transform.zoom):0;let r=i?i.symbolFadeChange(t):1,a=i?i.opacities:{},o=i?i.variableOffsets:{},s=i?i.placedOrientations:{};for(let t in this.placements){let i=this.placements[t],o=a[t];o?(this.opacities[t]=new tB(o,r,i.text,i.icon),n||=i.text!==o.text.placed,n||=i.icon!==o.icon.placed):(this.opacities[t]=new tB(null,r,i.text,i.icon,i.skipFade),n||=i.text||i.icon)}for(let t in a){let i=a[t];if(!this.opacities[t]){let a=new tB(i,r,!1,!1);a.isHidden()||(this.opacities[t]=a,n||=i.text.placed,n||=i.icon.placed)}}for(let t in o)this.variableOffsets[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.variableOffsets[t]=o[t]);for(let t in s)this.placedOrientations[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.placedOrientations[t]=s[t]);if(i&&void 0===i.lastPlacementChangeTime)throw Error("Last placement time for previous placement is not defined");n?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=i?i.lastPlacementChangeTime:t)}updateLayerOpacities(t,i){let n={};for(let r of i){let i=r.getBucket(t);i&&r.latestFeatureIndex&&t.id===i.layerIds[0]&&this.updateBucketOpacities(i,r.tileID,n,r.collisionBoxArray)}}updateBucketOpacities(t,i,n,r){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();let a=t.layers[0],o=a.layout,s=new tB(null,0,!1,!1,!0),l=o.get("text-allow-overlap"),c=o.get("icon-allow-overlap"),d=a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"),h="map"===o.get("text-rotation-alignment"),u="map"===o.get("text-pitch-alignment"),p="none"!==o.get("icon-text-fit"),m=new tB(null,0,l&&(c||!t.hasIconData()||o.get("icon-optional")),c&&(l||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);let f=(t,i,n)=>{for(let r=0;r<i/4;r++)t.opacityVertexArray.emplaceBack(n);t.hasVisibleVertices||=n!==tH},g=this.collisionBoxArrays.get(t.bucketInstanceId);for(let i=0;i<t.symbolInstances.length;i++){let r=t.symbolInstances.get(i),{numHorizontalGlyphVertices:a,numVerticalGlyphVertices:o,crossTileID:l}=r,c=n[l],_=this.opacities[l];c?_=s:_||(_=m,this.opacities[l]=_),n[l]=!0;let v=a>0||o>0,y=r.numIconVertices>0,b=this.placedOrientations[r.crossTileID],x=2===b,w=1===b||3===b;if(v){let i=tG(_.text),n=x?tH:i;f(t.text,a,n);let s=w?tH:i;f(t.text,o,s);let l=_.text.isHidden();for(let i of[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex])i>=0&&(t.text.placedSymbolArray.get(i).hidden=l||x?1:0);r.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).hidden=l||w?1:0);let c=this.variableOffsets[r.crossTileID];c&&this.markUsedJustification(t,c.anchor,r,b);let d=this.placedOrientations[r.crossTileID];d&&(this.markUsedJustification(t,"left",r,d),this.markUsedOrientation(t,d,r))}if(y){let i=tG(_.icon),n=!(p&&r.verticalPlacedIconSymbolIndex&&x);if(r.placedIconSymbolIndex>=0){let a=n?i:tH;f(t.icon,r.numIconVertices,a),t.icon.placedSymbolArray.get(r.placedIconSymbolIndex).hidden=_.icon.isHidden()}if(r.verticalPlacedIconSymbolIndex>=0){let a=n?tH:i;f(t.icon,r.numVerticalIconVertices,a),t.icon.placedSymbolArray.get(r.verticalPlacedIconSymbolIndex).hidden=_.icon.isHidden()}}let C=g?.has(i)?g.get(i):{text:null,icon:null};if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){let n=t.collisionArrays[i];if(n){let i=new E.Ri(0,0);if(n.textBox||n.verticalTextBox){let r=!0;if(d){let t=this.variableOffsets[l];t?(i=tj(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),h&&i._rotate(u?-this.transform.bearingInRadians:this.transform.bearingInRadians)):r=!1}if(n.textBox||n.verticalTextBox){let a;n.textBox&&(a=x),n.verticalTextBox&&(a=w),tq(t.textCollisionBox.collisionVertexArray,_.text.placed,!r||a,C.text,i.x,i.y)}}if(n.iconBox||n.verticalIconBox){let r=!(w||!n.verticalIconBox),a;n.iconBox&&(a=r),n.verticalIconBox&&(a=!r),tq(t.iconCollisionBox.collisionVertexArray,_.icon.placed,a,C.icon,p?i.x:0,p?i.y:0)}}}}if(t.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);t.bucketInstanceId in this.collisionCircleArrays&&(t.collisionCircleArray=this.collisionCircleArrays[t.bucketInstanceId],delete this.collisionCircleArrays[t.bucketInstanceId])}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(t,i){let n=this.zoomAtLastRecencyCheck===i?1-this.zoomAdjustment(i):1;return this.zoomAtLastRecencyCheck=i,this.commitTime+this.fadeDuration*n>t}setStale(){this.stale=!0}};function tq(t,i,n,r,a,o){r&&0!==r.length||(r=[0,0,0,0]);let s=r[0]-100,l=r[1]-100,c=r[2]-100,d=r[3]-100;t.emplaceBack(+!!i,+!!n,a||0,o||0,s,l),t.emplaceBack(+!!i,+!!n,a||0,o||0,c,l),t.emplaceBack(+!!i,+!!n,a||0,o||0,c,d),t.emplaceBack(+!!i,+!!n,a||0,o||0,s,d)}function tG(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 0xffffffff;let i=+!!t.placed,n=Math.floor(127*t.opacity);return 0x2000000*n+0x1000000*i+131072*n+65536*i+512*n+256*i+2*n+i}let tH=0;var tZ=class{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,i,n,r,a){let o=this._bucketParts;for(;this._currentTileIndex<t.length;){let n=t[this._currentTileIndex];if(i.getBucketParts(o,r,n,this._sortAcrossTiles),this._currentTileIndex++,a())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((t,i)=>t.sortKey-i.sortKey));this._currentPartIndex<o.length;){let t=o[this._currentPartIndex];if(i.placeLayerBucketPart(t,this._seenCrossTileIDs,n),this._currentPartIndex++,a())return!0}return!1}},tX=class{constructor(t,i,n,r,a,o,s,l){this.placement=new tU(t,i,o,s,l),this._currentPlacementIndex=n.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=a,this._done=!1}isDone(){return this._done}continuePlacement(t,i,n){let r=S(),a=()=>!this._forceFullPlacement&&S()-r>2;for(;this._currentPlacementIndex>=0;){let r=i[t[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if((0,E.x)(r)&&r.layout&&(!r.minzoom||r.minzoom<=o)&&(!r.maxzoom||r.maxzoom>o)){if(this._inProgressLayer||=new tZ(r),this._inProgressLayer.continuePlacement(n[r.source],this.placement,this._showCollisionBoxes,r,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}};let tW=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],tY=new Uint32Array(96);var tK=class t{static from(i){if(!i||void 0===i.byteLength||i.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[n,r]=new Uint8Array(i,0,2);if(219!==n)throw Error("Data does not appear to be in a KDBush format.");let a=r>>4;if(1!==a)throw Error(`Got v${a} data when expected v1.`);let o=tW[15&r];if(!o)throw Error("Unrecognized array type.");let[s]=new Uint16Array(i,2,1),[l]=new Uint32Array(i,4,1);return new t(l,s,o,void 0,i)}constructor(t,i=64,n=Float64Array,r=ArrayBuffer,a){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+i,2),65535),this.ArrayType=n,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=tW.indexOf(this.ArrayType),s=2*t*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${n}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new n(a,8+l+c,2*t),this._pos=2*t,this._finished=!0;else{let a=this.data=new r(8+s+l+c);this.ids=new this.IndexArrayType(a,8,t),this.coords=new n(a,8+l+c,2*t),this._pos=0,this._finished=!1,new Uint8Array(a,0,2).set([219,16+o]),new Uint16Array(a,2,1)[0]=i,new Uint32Array(a,4,1)[0]=t}}add(t,i){let n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=i,n}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return function t(i,n,r,a,o,s){if(o-a<=r)return;let l=a+o>>1;(function t(i,n,r,a,o,s){for(;o>a;){if(o-a>600){let l=o-a+1,c=r-a+1,d=Math.log(l),h=.5*Math.exp(2*d/3),u=.5*Math.sqrt(d*h*(l-h)/l)*(c-l/2<0?-1:1);t(i,n,r,Math.max(a,Math.floor(r-c*h/l+u)),Math.min(o,Math.floor(r+(l-c)*h/l+u)),s)}let l=n[2*r+s],c=a,d=o;for(tJ(i,n,a,r),n[2*o+s]>l&&tJ(i,n,a,o);c<d;){for(tJ(i,n,c,d),c++,d--;n[2*c+s]<l;)c++;for(;n[2*d+s]>l;)d--}n[2*a+s]===l?tJ(i,n,a,d):tJ(i,n,++d,o),d<=r&&(a=d+1),r<=d&&(o=d-1)}})(i,n,l,a,o,s),t(i,n,r,a,l-1,1-s),t(i,n,r,l+1,o,1-s)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,i,n,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;tY[0]=0,tY[1]=a.length-1,tY[2]=0;let l=3,c=[];for(;l>0;){let d=tY[--l],h=tY[--l],u=tY[--l];if(h-u<=s){for(let s=u;s<=h;s++){let l=o[2*s],d=o[2*s+1];l>=t&&l<=n&&d>=i&&d<=r&&c.push(a[s])}continue}let p=u+h>>1,m=o[2*p],f=o[2*p+1];m>=t&&m<=n&&f>=i&&f<=r&&c.push(a[p]),(0===d?t<=m:i<=f)&&(tY[l++]=u,tY[l++]=p-1,tY[l++]=1-d),(0===d?n>=m:r>=f)&&(tY[l++]=p+1,tY[l++]=h,tY[l++]=1-d)}return c}within(t,i,n){let r=[];return this.withinInto(t,i,n,r),r}withinInto(t,i,n,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;tY[0]=0,tY[1]=a.length-1,tY[2]=0;let l=3,c=0,d=n*n;for(;l>0;){let h=tY[--l],u=tY[--l],p=tY[--l];if(u-p<=s){for(let n=p;n<=u;n++)t0(o[2*n],o[2*n+1],t,i)<=d&&(r[c++]=a[n]);continue}let m=p+u>>1,f=o[2*m],g=o[2*m+1];t0(f,g,t,i)<=d&&(r[c++]=a[m]),(0===h?t-n<=f:i-n<=g)&&(tY[l++]=p,tY[l++]=m-1,tY[l++]=1-h),(0===h?t+n>=f:i+n>=g)&&(tY[l++]=m+1,tY[l++]=u,tY[l++]=1-h)}return c}};function tJ(t,i,n,r){tQ(t,n,r),tQ(i,2*n,2*r),tQ(i,2*n+1,2*r+1)}function tQ(t,i,n){let r=t[i];t[i]=t[n],t[n]=r}function t0(t,i,n,r){let a=t-n,o=i-r;return a*a+o*o}var t2=class{constructor(t,i,n){this.tileID=t,this.bucketInstanceId=n,this._symbolsByKey={};let r=new Map;for(let t=0;t<i.length;t++){let n=i.get(t),a=n.key,o=r.get(a);o?o.push(n):r.set(a,[n])}for(let[t,i]of r){let n={positions:i.map(t=>({x:Math.floor(.03125*t.anchorX),y:Math.floor(.03125*t.anchorY)})),crossTileIDs:i.map(t=>t.crossTileID)};if(n.positions.length>128){let t=new tK(n.positions.length,16,Uint16Array);for(let{x:i,y:r}of n.positions)t.add(i,r);t.finish(),delete n.positions,n.index=t}this._symbolsByKey[t]=n}}getScaledCoordinates(t,i){let{x:n,y:r,z:a}=this.tileID.canonical,{x:o,y:s,z:l}=i.canonical,c=.03125/2**(l-a);return{x:Math.floor((8192*o+t.anchorX)*c-8192*n*.03125),y:Math.floor((8192*s+t.anchorY)*c-8192*r*.03125)}}findMatches(t,i,n){let r=this.tileID.canonical.z<i.canonical.z?1:2**(this.tileID.canonical.z-i.canonical.z);for(let a=0;a<t.length;a++){let o=t.get(a);if(o.crossTileID)continue;let s=this._symbolsByKey[o.key];if(!s)continue;let l=this.getScaledCoordinates(o,i);s.index?this.findMatchesForIndexedEntry(s,o,l,r,n):s.positions&&this.findMatchesForNonIndexedEntry(s,o,l,r,n)}}findMatchesForIndexedEntry(t,i,n,r,a){let o=t.index.range(n.x-r,n.y-r,n.x+r,n.y+r),s=1/0;for(let i of o)i<s&&!a[t.crossTileIDs[i]]&&(s=i);if(1/0!==s){let n=t.crossTileIDs[s];a[n]=!0,i.crossTileID=n}}findMatchesForNonIndexedEntry(t,i,n,r,a){for(let o=0;o<t.positions.length;o++){let s=t.positions[o],l=t.crossTileIDs[o];if(Math.abs(s.x-n.x)<=r&&Math.abs(s.y-n.y)<=r&&!a[l]){a[l]=!0,i.crossTileID=l;break}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map(({crossTileIDs:t})=>t)}},t1=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},t3=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){let i=Math.round((t-this.lng)/360);if(0!==i)for(let t in this.indexes){let n=this.indexes[t],r={};for(let t in n){let a=n[t];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+i),r[a.tileID.key]=a}this.indexes[t]=r}this.lng=t}addBucket(t,i,n){if(this.indexes[t.overscaledZ]?.[t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===i.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let t=0;t<i.symbolInstances.length;t++)i.symbolInstances.get(t).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||={};let r=this.usedCrossTileIDs[t.overscaledZ];for(let n in this.indexes){let a=this.indexes[n];if(Number(n)>t.overscaledZ)for(let n in a){let o=a[n];o.tileID.isChildOf(t)&&o.findMatches(i.symbolInstances,t,r)}else{let o=a[t.scaledTo(Number(n)).key];o&&o.findMatches(i.symbolInstances,t,r)}}for(let t=0;t<i.symbolInstances.length;t++){let a=i.symbolInstances.get(t);a.crossTileID||(a.crossTileID=n.generate(),r[a.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new t2(t,i.symbolInstances,i.bucketInstanceId),!0}removeBucketCrossTileIDs(t,i){for(let n of i.getCrossTileIDsLists())for(let i of n)delete this.usedCrossTileIDs[t][i]}removeStaleBuckets(t){let i=!1;for(let n in this.indexes){let r=this.indexes[n];for(let a in r)t[r[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[a]),delete r[a],i=!0)}return i}},t5=class{constructor(){this.layerIndexes={},this.crossTileIDs=new t1,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(t,i,n){let r=this.layerIndexes[t.id];void 0===r&&(r=this.layerIndexes[t.id]=new t3);let a=!1,o={};for(let s of(r.handleWrapJump(n),i)){let i=s.getBucket(t);t.id===i?.layerIds[0]&&(i.bucketInstanceId||=(this.maxBucketInstanceId+=1,this.maxBucketInstanceId),r.addBucket(s.tileID,i,this.crossTileIDs)&&(a=!0),o[i.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(a=!0),a}pruneUnusedLayers(t){let i={};for(let n of t)i[n]=!0;for(let t in this.layerIndexes)i[t]||delete this.layerIndexes[t]}},t4=`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
3
3
  #ifdef OVERDRAW_INSPECTOR
4
4
  fragColor=vec4(1.0);
5
5
  #endif