This commit is contained in:
HarelM committed 2025-09-07 14:30:51 +00:00
1 parent 4e02c6e12d
commit 956d24c524
29 files changed
+1001 -999

No files matched your search

@@ -1 +1 @@
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button{background-color:transparent}.maputnik-icon-button:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{margin:10px;display:flex;flex-wrap:wrap}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:32%;vertical-align:top;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:18%;vertical-align:top;font-size:12px;text-align:right}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{display:inline-block;width:32%;margin-bottom:10px}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;display:inline-block;width:18%}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{-webkit-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-o-flex-grow:1;flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;text-decoration:underline;cursor:pointer}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-staLine truncated
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button{background-color:transparent}.maputnik-icon-button:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{margin:10px;display:flex;flex-wrap:wrap}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:32%;vertical-align:top;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:18%;vertical-align:top;font-size:12px;text-align:right}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{display:inline-block;width:32%;margin-bottom:10px}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;display:inline-block;width:18%}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{-webkit-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-o-flex-grow:1;flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;text-decoration:underline;cursor:pointer}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-staLine truncated
-977
View File
@@ -1,977 +0,0 @@
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function Gl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function pB(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var $3={exports:{}},xv={},V3={exports:{}},hs={},WI;function bj(){if(WI)return hs;WI=1;/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function R(Ie){return Ie===null||typeof Ie!="object"?null:(Ie=B&&Ie[B]||Ie["@@iterator"],typeof Ie=="function"?Ie:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,N={};function W(Ie,$e,gt){this.props=Ie,this.context=$e,this.refs=N,this.updater=gt||P}W.prototype.isReactComponent={},W.prototype.setState=function(Ie,$e){if(typeof Ie!="object"&&typeof Ie!="function"&&Ie!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ie,$e,"setState")},W.prototype.forceUpdate=function(Ie){this.updater.enqueueForceUpdate(this,Ie,"forceUpdate")};function X(){}X.prototype=W.prototype;function $(Ie,$e,gt){this.props=Ie,this.context=$e,this.refs=N,this.updater=gt||P}var re=$.prototype=new X;re.constructor=$,U(re,W.prototype),re.isPureReactComponent=!0;var te=Array.isArray,V=Object.prototype.hasOwnProperty,ne={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function le(Ie,$e,gt){var Dt,ut={},Rt=null,St=null;if($e!=null)for(Dt in $e.ref!==void 0&&(St=$e.ref),$e.key!==void 0&&(Rt=""+$e.key),$e)V.call($e,Dt)&&!G.hasOwnProperty(Dt)&&(ut[Dt]=$e[Dt]);var Ke=arguments.length-2;if(Ke===1)ut.children=gt;else if(1<Ke){for(var Pe=Array(Ke),Re=0;Re<Ke;Re++)Pe[Re]=arguments[Re+2];ut.children=Pe}if(Ie&&Ie.defaultProps)for(Dt in Ke=Ie.defaultProps,Ke)ut[Dt]===void 0&&(ut[Dt]=Ke[Dt]);return{$$typeof:n,type:Ie,key:Rt,ref:St,props:ut,_owner:ne.current}}function fe(Ie,$e){return{$$typeof:n,type:Ie.type,key:$e,ref:Ie.ref,props:Ie.props,_owner:Ie._owner}}function pe(Ie){return typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===n}function we(Ie){var $e={"=":"=0",":":"=2"};return"$"+Ie.replace(/[=:]/g,function(gt){return $e[gt]})}var Se=/\/+/g;function xe(Ie,$e){return typeof Ie=="object"&&Ie!==null&&Ie.key!=null?we(""+Ie.key):$e.toString(36)}function je(Ie,$e,gt,Dt,ut){var Rt=typeof Ie;(Rt==="undefined"||Rt==="boolean")&&(Ie=null);var St=!1;if(Ie===null)St=!0;else switch(Rt){case"string":case"number":St=!0;break;case"object":switch(Ie.$$typeof){case n:case e:St=!0}}if(St)return St=Ie,ut=ut(St),Ie=Dt===""?"."+xe(St,0):Dt,te(ut)?(gt="",Ie!=null&&(gt=Ie.replace(Se,"$&/")+"/"),je(ut,$e,gt,"",function(Re){return Re})):ut!=null&&(pe(ut)&&(ut=fe(ut,gt+(!ut.key||St&&St.key===ut.key?"":(""+ut.key).replace(Se,"$&/")+"/")+Ie)),$e.push(ut)),1;if(St=0,Dt=Dt===""?".":Dt+":",te(Ie))for(var Ke=0;Ke<Ie.length;Ke++){Rt=Ie[Ke];var Pe=Dt+xe(Rt,Ke);St+=je(Rt,$e,gt,Pe,ut)}else if(Pe=R(Ie),typeof Pe=="function")for(Ie=Pe.call(Ie),Ke=0;!(Rt=Ie.next()).done;)Rt=Rt.value,Pe=Dt+xe(Rt,Ke++),St+=je(Rt,$e,gt,Pe,ut);else if(Rt==="object")throw $e=String(Ie),Error("Objects are not valid as a React child (found: "+($e==="[object Object]"?"object with keys {"+Object.keys(Ie).join(", ")+"}":$e)+"). If you meant to render a collection of children, use an array instead.");return St}function Me(Ie,$e,gt){if(Ie==null)return Ie;var Dt=[],ut=0;return je(Ie,Dt,"","",function(Rt){return $e.call(gt,Rt,ut++)}),Dt}function rt(Ie){if(Ie._status===-1){var $e=Ie._result;$e=$e(),$e.then(function(gt){(Ie._status===0||Ie._status===-1)&&(Ie._status=1,Ie._result=gt)},function(gt){(Ie._status===0||Ie._status===-1)&&(Ie._status=2,Ie._result=gt)}),Ie._status===-1&&(Ie._status=0,Ie._result=$e)}if(Ie._status===1)return Ie._result.default;throw Ie._result}var Ct={current:null},it={transition:null},nt={ReactCurrentDispatcher:Ct,ReactCurrentBatchConfig:it,ReactCurrentOwner:ne};function Ge(){throw Error("act(...) is not supported in production builds of React.")}return hs.Children={map:Me,forEach:function(Ie,$e,gt){Me(Ie,function(){$e.apply(this,arguments)},gt)},count:function(Ie){var $e=0;return Me(Ie,function(){$e++}),$e},toArray:function(Ie){return Me(Ie,function($e){return $e})||[]},only:function(Ie){if(!pe(Ie))throw Error("React.Children.only expected to receive a single React element child.");return Ie}},hs.Component=W,hs.Fragment=t,hs.Profiler=i,hs.PureComponent=$,hs.StrictMode=r,hs.Suspense=f,hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nt,hs.act=Ge,hs.cloneElement=function(Ie,$e,gt){if(Ie==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Ie+".");var Dt=U({},Ie.props),ut=Ie.key,Rt=Ie.ref,St=Ie._owner;if($e!=null){if($e.ref!==void 0&&(Rt=$e.ref,St=ne.current),$e.key!==void 0&&(ut=""+$e.key),Ie.type&&Ie.type.defaultProps)var Ke=Ie.type.defaultProps;for(Pe in $e)V.call($e,Pe)&&!G.hasOwnProperty(Pe)&&(Dt[Pe]=$e[Pe]===void 0&&Ke!==void 0?Ke[Pe]:$e[Pe])}var Pe=arguments.lengthLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var YI;function xj(){if(YI)return xv;YI=1;var n=tl(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(o,f,C){var x,B={},R=null,P=null;C!==void 0&&(R=""+C),f.key!==void 0&&(R=""+f.key),f.ref!==void 0&&(P=f.ref);for(x in f)r.call(f,x)&&!s.hasOwnProperty(x)&&(B[x]=f[x]);if(o&&o.defaultProps)for(x in f=o.defaultProps,f)B[x]===void 0&&(B[x]=f[x]);return{$$typeof:e,type:o,key:R,ref:P,props:B,_owner:i.current}}return xv.Fragment=t,xv.jsx=l,xv.jsxs=l,xv}var qI;function Mj(){return qI||(qI=1,$3.exports=xj()),$3.exports}var oe=Mj(),nr=tl();const ur=Gl(nr);var cF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ey=ur.createContext&&ur.createContext(cF),wj=["attr","size","title"];function Sj(n,e){if(n==null)return{};var t=Ej(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Ej(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function d2(){return d2=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},d2.apply(this,arguments)}function $I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function f2(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$I(Object(t),!0).forEach(function(r){Bj(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$I(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Bj(n,e,t){return e=Oj(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Oj(n){var e=Ij(n,"string");return typeof e=="symbol"?e:e+""}function Ij(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function hF(n){return n&&n.map((e,t)=>ur.createElement(e.tag,f2({key:t},e.attr),hF(e.child)))}function rA(n){return e=>ur.createElement(Tj,d2({attr:f2({},n.attr)},e),hF(n.child))}function Tj(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=Sj(n,wj),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),ur.createElement("svg",d2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:f2(f2({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&ur.createElement("title",null,s),n.children)};return Ey!==void 0?ur.createElement(Ey.Consumer,null,t=>e(t)):e(cF)}var sb={},H3={exports:{}},ad={},Z3={exports:{}},X3={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var VI;function kj(){return VI||(VI=1,function(n){function e(it,nt){var Ge=it.length;it.push(nt);e:for(;0<Ge;){var Ie=Ge-1>>>1,$e=it[Ie];if(0<i($e,nt))it[Ie]=nt,it[Ge]=$e,Ge=Ie;else break e}}function t(it){return it.length===0?null:it[0]}function r(it){if(it.length===0)return null;var nt=it[0],Ge=it.pop();if(Ge!==nt){it[0]=Ge;e:for(var Ie=0,$e=it.length,gt=$e>>>1;Ie<gt;){var Dt=2*(Ie+1)-1,ut=it[Dt],Rt=Dt+1,St=it[Rt];if(0>i(ut,Ge))Rt<$e&&0>i(St,ut)?(it[Ie]=St,it[Rt]=Ge,Ie=Rt):(it[Ie]=ut,it[Dt]=Ge,Ie=Dt);else if(Rt<$e&&0>i(St,Ge))it[Ie]=St,it[Rt]=Ge,Ie=Rt;else break e}}return nt}function i(it,nt){var Ge=it.sortIndex-nt.sortIndex;return Ge!==0?Ge:it.id-nt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var f=[],C=[],x=1,B=null,R=3,P=!1,U=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re(it){for(var nt=t(C);nt!==null;){if(nt.callback===null)r(C);else if(nt.startTime<=it)r(C),nt.sortIndex=nt.expirationTime,e(f,nt);else break;nt=t(C)}}function te(it){if(N=!1,re(it),!U)if(t(f)!==null)U=!0,rt(V);else{var nt=t(C);nt!==null&&Ct(te,nt.startTime-it)}}function V(it,nt){U=!1,N&&(N=!1,X(le),le=-1),P=!0;var Ge=R;try{for(re(nt),B=t(f);B!==null&&(!(B.expirationTime>nt)||it&&!we());){var Ie=B.callback;if(typeof Ie=="function"){B.callback=null,R=B.priorityLevel;var $e=Ie(B.expirationTime<=nt);nt=n.unstable_now(),typeof $e=="function"?B.callback=$e:B===t(f)&&r(f),re(nt)}else r(f);B=t(f)}if(B!==null)var gt=!0;else{var Dt=t(C);Dt!==null&&Ct(te,Dt.startTime-nt),gt=!1}return gt}finally{B=null,R=Ge,P=!1}}var ne=!1,G=null,le=-1,fe=5,pe=-1;function we(){return!(n.unstable_now()-pe<fe)}function Se(){if(G!==null){var it=n.unstable_now();pe=it;var nt=!0;try{nt=G(!0,it)}finally{nt?xe():(ne=!1,G=null)}}else ne=!1}var xe;if(typeof $=="function")xe=function(){$(Se)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,Me=je.port2;je.port1.onmessage=Se,xe=function(){Me.postMessage(null)}}else xe=function(){W(Se,0)};function rt(it){G=it,ne||(ne=!0,xe())}function Ct(it,nt){le=W(function(){it(n.unstable_now())},nt)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(it){it.callback=null},n.unstable_continueExecution=function(){U||P||(U=!0,rt(V))},n.unstable_forceFrameRate=function(it){0>it||125<it?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<it?Math.floor(1e3/it):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_getFirstCallbackNode=function(){return t(f)},n.unstable_next=function(it){switch(R){case 1:case 2:case 3:var nt=3;break;default:nt=R}var Ge=R;R=nt;try{return it()}finally{R=Ge}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(it,nt){switch(it){case 1:case 2:case 3:case 4:case 5:break;default:it=3}var Ge=R;R=it;try{return nt()}finally{R=Ge}},n.unstable_scheduleCallback=function(it,nt,Ge){var Ie=n.unstable_now();switch(typeof Ge=="object"&&Ge!==null?(Ge=Ge.delay,Ge=typeof Ge=="number"&&0<Ge?Ie+Ge:Ie):Ge=Ie,it){case 1:var $e=-1;break;case 2:$e=250;break;case 5:$e=1073741823;break;case 4:$e=1e4;break;default:$e=5e3}return $e=Ge+$e,it={id:x++,callback:nt,priorityLevel:it,startTime:Ge,expirationTime:$e,sortIndex:-1},Ge>Ie?(it.sortIndex=Ge,e(C,it),t(f)===null&&it===t(C)&&(N?(X(le),le=-1):N=!0,Ct(te,Ge-Ie))):(it.sortIndex=$e,e(f,it),U||P||(U=!0,rt(V))),it},n.unstable_shouldYield=we,n.unstable_wrapCallback=function(it){var nt=R;return function(){var Ge=R;R=nt;try{return it.apply(this,arguments)}finally{R=Ge}}}}(X3)),X3}var HI;function Pj(){return HI||(HI=1,Z3.exports=kj()),Z3.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ZI;function Rj(){if(ZI)return ad;ZI=1;var n=tl(),e=Pj();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,K=1;K<arguments.length;K++)_+="&args[]="+encodeURIComponent(arguments[K]);return"Minified React error #"+m+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(m,_){l(m,_),l(m+"Capture",_)}function l(m,_){for(i[m]=_,m=0;m<_.length;m++)r.add(_[m])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},B={};function R(m){return f.call(B,m)?!0:f.call(x,m)?!1:C.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,K,Q){if(K!==null&&K.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:K!==null?!K.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function U(m,_,K,Q){if(_===null||typeof _>"u"||P(m,_,K,Q))return!0;if(Q)return!1;if(K!==null)switch(K.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,K,Q,se,ye,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=se,this.mustUseProperty=K,this.propertyName=m,this.type=_,this.sanitizeURL=ye,this.removeEmptyString=tt}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){W[m]=new N(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];W[_]=new N(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){W[m]=new N(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){W[m]=new N(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){W[m]=new N(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){W[m]=new N(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){W[m]=new N(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){W[m]=new N(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){W[m]=new N(m,5,!1,m.toLowerCase(),null,!1,!1)});var X=/[\-:]([a-z])/g;function $(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(X,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!1,!1)}),W.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!0,!0)});function re(m,_,K,Q){var se=W.hasOwnProperty(_)?W[_]:null;(se!==null?se.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+Ie+m}var gt=!1;function Dt(m,_){if(!m||gt)return"";gt=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Mn){var Q=Mn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Mn){Q=Mn}m.call(_.prototype)}else{try{throw Error()}catch(Mn){Q=Mn}m()}}catch(Mn){if(Mn&&Q&&typeof Mn.stack=="string"){for(var se=Mn.stack.split(`
`),ye=Q.stack.split(`
`),tt=se.length-1,Ot=ye.length-1;1<=tt&&0<=Ot&&se[tt]!==ye[Ot];)Ot--;for(;1<=tt&&0<=Ot;tt--,Ot--)if(se[tt]!==ye[Ot]){if(tt!==1||Ot!==1)do if(tt--,Ot--,0>Ot||se[tt]!==ye[Ot]){var Qt=`
`+se[tt].replace(" at new "," at ");return m.displayName&&Qt.includes("<anonymous>")&&(Qt=Qt.replace("<anonymous>",m.displayName)),Qt}while(1<=tt&&0<=Ot);break}}}finally{gt=!1,Error.prepareStackTrace=K}return(m=m?m.displayName||m.name:"")?$e(m):""}function ut(m){switch(m.tag){case 5:return $e(m.type);case 16:return $e("Lazy");case 13:return $e("Suspense");case 19:return $e("SuspenseList");case 0:case 2:case 15:return m=Dt(m.type,!1),m;case 11:return m=Dt(m.type.render,!1),m;case 1:return m=Dt(m.type,!0),m;default:return""}}function Rt(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case G:return"Fragment";case ne:return"Portal";case fe:return"Profiler";case le:return"StrictMode";case xe:return"Suspense";case je:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case we:return(m.displayName||"Context")+".Consumer";case pe:return(m._context.displayName||"Context")+".Provider";case Se:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case Me:return _=m.displayName||null,_!==null?_:Rt(m.type)||"Memo";case rt:_=m._payload,m=m._init;try{return Rt(m(_))}catch{}}return null}function St(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rt(_);case 8:return _===le?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function Ke(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Pe(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Re(m){var _=Pe(m)?"checked":"value",K=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof K<"u"&&typeof K.get=="function"&&typeof K.set=="function"){var se=K.get,ye=K.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return se.call(this)},set:function(tt){Q=""+tt,ye.call(this,tt)}}),Object.defineProperty(m,_,{enumerable:K.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function Ye(m){m._valueTracker||(m._valueTracker=Re(m))}function vt(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var K=_.getValue(),Q="";return m&&(Q=Pe(m)?m.checked?"true":"false":m.value),m=Q,m!==K?(_.setValue(m),!0):!1}function yt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Et(m,_){var K=_.checked;return Ge({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:K??m._wrapperState.initialChecked})}function Zt(m,_){var K=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;K=Ke(_.value!=null?_.value:K),m._wrapperState={initialChecked:Q,initialValue:K,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Ut(m,_){_=_.checked,_!=null&&re(m,"checked",_,!1)}function An(m,_){Ut(m,_);var K=Ke(_.value),Q=_.type;if(K!=null)Q==="number"?(K===0&&m.value===""||m.value!=K)&&(m.value=""+K):m.value!==""+K&&(m.value=""+K);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?Vt(m,_.type,K):_.hasOwnProperty("defaultValue")&&Vt(m,_.type,Ke(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function hr(m,_,K){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,K||_===m.value||(m.value=_),m.defaultValue=_}K=m.name,K!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,K!==""&&(m.name=K)}function Vt(m,_,K){(_!=="number"||yt(m.ownerDocument)!==m)&&(K==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+K&&(m.defaultValue=""+K))}var Vn=Array.isArray;function Pn(m,_,K,Q){if(m=m.options,_){_={};for(var se=0;se<K.length;se++)_["$"+K[se]]=!0;for(K=0;K<m.length;K++)se=_.hasOwnProperty("$"+m[K].value),m[K].selected!==se&&(m[K].selected=se),se&&Q&&(m[K].defaultSelected=!0)}else{for(K=""+Ke(K),_=null,se=0;se<m.length;se++){if(m[se].value===K){m[se].selected=!0,Q&&(m[se].defaultSelected=!0);return}_!==null||m[se].disabled||(_=m[se])}_!==null&&(_.selecte Line truncated
`).replace(Ed,"")}function Sh(m,_,K){if(_=ah(_),ah(m)!==_&&K)throw Error(t(425))}function Qu(){}var lh=null,PA=null;function pc(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var Sl=typeof setTimeout=="function"?setTimeout:void 0,xu=typeof clearTimeout=="function"?clearTimeout:void 0,Mu=typeof Promise=="function"?Promise:void 0,zc=typeof queueMicrotask=="function"?queueMicrotask:typeof Mu<"u"?function(m){return Mu.resolve(null).then(m).catch(bs)}:Sl;function bs(m){setTimeout(function(){throw m})}function Yu(m,_){var K=_,Q=0;do{var se=K.nextSibling;if(m.removeChild(K),se&&se.nodeType===8)if(K=se.data,K==="/$"){if(Q===0){m.removeChild(se),to(_);return}Q--}else K!=="$"&&K!=="$?"&&K!=="$!"||Q++;K=se}while(K);to(_)}function Qa(m){for(;m!=null;m=m.nextSibling){var _=m.nodeType;if(_===1||_===3)break;if(_===8){if(_=m.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return m}function mc(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var K=m.data;if(K==="$"||K==="$!"||K==="$?"){if(_===0)return m;_--}else K==="/$"&&_++}m=m.previousSibling}return null}var Ql=Math.random().toString(36).slice(2),wu="__reactFiber$"+Ql,El="__reactProps$"+Ql,cA="__reactContainer$"+Ql,Ah="__reactEvents$"+Ql,ot="__reactListeners$"+Ql,Eh="__reactHandles$"+Ql;function Xs(m){var _=m[wu];if(_)return _;for(var K=m.parentNode;K;){if(_=K[cA]||K[wu]){if(K=_.alternate,_.child!==null||K!==null&&K.child!==null)for(m=mc(m);m!==null;){if(K=m[wu])return K;m=mc(m)}return _}m=K,K=m.parentNode}return null}function Ro(m){return m=m[wu]||m[cA],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function ai(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function Bs(m){return m[El]||null}var js=[],qu=-1;function il(m){return{current:m}}function Ps(m){0>qu||(m.current=js[qu],js[qu]=null,qu--)}function Os(m,_){qu++,js[qu]=m.current,m.current=_}var nu={},Ya=il(nu),gl=il(!1),yl=nu;function $u(m,_){var K=m.type.contextTypes;if(!K)return nu;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var se={},ye;for(ye in K)se[ye]=_[ye];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=se),se}function Bl(m){return m=m.childContextTypes,m!=null}function Oa(){Ps(gl),Ps(Ya)}function ru(m,_,K){if(Ya.current!==nu)throw Error(t(168));Os(Ya,_),Os(gl,K)}function uh(m,_,K){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return K;Q=Q.getChildContext();for(var se in Q)if(!(se in _))throw Error(t(108,St(m)||"Unknown",se));return Ge({},K,Q)}function Js(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||nu,yl=Ya.current,Os(Ya,m),Os(gl,gl.current),!0}function ch(m,_,K){var Q=m.stateNode;if(!Q)throw Error(t(169));K?(m=uh(m,_,yl),Q.__reactInternalMemoizedMergedChildContext=m,Ps(gl),Ps(Ya),Os(Ya,m)):Ps(gl),Os(gl,K)}var Yl=null,gf=!1,hh=!1;function iu(m){Yl===null?Yl=[m]:Yl.push(m)}function gc(m){gf=!0,iu(m)}function ou(){if(!hh&&Yl!==null){hh=!0;var m=0,_=bi;try{var K=Yl;for(bi=1;m<K.length;m++){var Q=K[m];do Q=Q(!0);while(Q!==null)}Yl=null,gf=!1}catch(se){throw Yl!==null&&(Yl=Yl.slice(m+1)),da(bo,ou),se}finally{bi=_,hh=!1}}return null}var ql=[],Xn=0,Mo=null,Ol=0,qa=[],ea=0,Su=null,RA=1,Ti="";function yc(m,_){ql[Xn++]=Ol,ql[Xn++]=Mo,Mo=m,Ol=_}function yf(m,_,K){qa[ea++]=RA,qa[ea++]=Ti,qa[ea++]=Su,Su=m;var Q=RA;m=Ti;var se=32-_n(Q)-1;Q&=~(1<<se),K+=1;var ye=32-_n(_)+se;if(30<ye){var tt=se-se%5;ye=(Q&(1<<tt)-1).toString(32),Q>>=tt,se-=tt,RA=1<<32-_n(_)+se|K<<se|Q,Ti=ye+m}else RA=1<<ye|K<<se|Q,Ti=m}function Vu(m){m.return!==null&&(yc(m,1),yf(m,1,0))}function Nc(m){for(;m===Mo;)Mo=ql[--Xn],ql[Xn]=null,Ol=ql[--Xn],ql[Xn]=null;for(;m===Su;)Su=qa[--ea],qa[ea]=null,Ti=qa[--ea],qa[ea]=null,RA=qa[--ea],qa[ea]=null}var ol=null,va=null,gs=!1,$l=null;function vc(m,_){var K=Mc(5,null,null,0);K.elementType="DELETED",K.stateNode=_,K.return=m,_=m.deletions,_===null?(m.deletions=[K],m.flags|=16):_.push(K)}function Cc(m,_){switch(m.tag){case 5:var K=m.type;return _=_.nodeType!==1||K.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,ol=m,va=Qa(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,ol=m,va=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(K=Su!==null?{id:RA,overflow:Ti}:null,m.memoizedState={dehydrated:_,treeContext:K,retryLane:1073741824},K=Mc(18,null,null,0),K.stateNode=_,K.return=m,m.child=K,ol=m,va=null,!0):!1;default:return!1}}function Hu(m){return(m.mode&1)!==0&&(m.flags&128)===0}function hA(m){if(gs){var _=va;if(_){var K=_;if(!Cc(m,_)){if(Hu(m))throw Error(t(418));_=Qa(K.nextSibling);var Q=ol;_&&Cc(m,_)?vc(Q,K):(m.flags=m.flags&-4097|2,gs=!1,ol=m)}}else{if(Hu(m))throw Error(t(418));m.flags=m.flags&-4097| Line truncated
Error generating stack: `+ye.message+`
`+ye.stack}return{value:m,source:_,stack:se,digest:null}}function dh(m,_,K){return{value:m,source:null,stack:K??null,digest:_??null}}function Td(m,_){try{console.error(_.value)}catch(K){setTimeout(function(){throw K})}}var gm=typeof WeakMap=="function"?WeakMap:Map;function kh(m,_,K){K=fA(-1,K),K.tag=3,K.payload={element:null};var Q=_.value;return K.callback=function(){_m||(_m=!0,Gp=Q),Td(m,_)},K}function _f(m,_,K){K=fA(-1,K),K.tag=3;var Q=m.type.getDerivedStateFromError;if(typeof Q=="function"){var se=_.value;K.payload=function(){return Q(se)},K.callback=function(){Td(m,_)}}var ye=m.stateNode;return ye!==null&&typeof ye.componentDidCatch=="function"&&(K.callback=function(){Td(m,_),typeof Q!="function"&&(Ud===null?Ud=new Set([this]):Ud.add(this));var tt=_.stack;this.componentDidCatch(_.value,{componentStack:tt!==null?tt:""})}),K}function Vf(m,_,K){var Q=m.pingCache;if(Q===null){Q=m.pingCache=new gm;var se=new Set;Q.set(_,se)}else se=Q.get(_),se===void 0&&(se=new Set,Q.set(_,se));se.has(K)||(se.add(K),m=rv.bind(null,m,_,K),_.then(m,m))}function Lp(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function rd(m,_,K,Q,se){return(m.mode&1)===0?(m===_?m.flags|=65536:(m.flags|=128,K.flags|=131072,K.flags&=-52805,K.tag===1&&(K.alternate===null?K.tag=17:(_=fA(-1,1),_.tag=2,kl(K,_,1))),K.lanes|=1),m):(m.flags|=65536,m.lanes=se,m)}var kd=te.ReactCurrentOwner,Jl=!1;function Rl(m,_,K,Q){_.child=m===null?ri(_,null,K,Q):vr(_,m.child,K,Q)}function ym(m,_,K,Q,se){K=K.render;var ye=_.ref;return dA(_,se),Q=Ar(m,_,K,Q,ye,se),K=cr(),m!==null&&!Jl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~se,vA(m,_,se)):(gs&&K&&Vu(_),_.flags|=1,Rl(m,_,Q,se),_.child)}function Up(m,_,K,Q,se){if(m===null){var ye=K.type;return typeof ye=="function"&&!r0(ye)&&ye.defaultProps===void 0&&K.compare===null&&K.defaultProps===void 0?(_.tag=15,_.type=ye,wo(m,_,ye,Q,se)):(m=Wp(K.type,null,Q,_,_.mode,se),m.ref=_.ref,m.return=_,_.child=m)}if(ye=m.child,(m.lanes&se)===0){var tt=ye.memoizedProps;if(K=K.compare,K=K!==null?K:Lr,K(tt,Q)&&m.ref===_.ref)return vA(m,_,se)}return _.flags|=1,m=qc(ye,Q),m.ref=_.ref,m.return=_,_.child=m}function wo(m,_,K,Q,se){if(m!==null){var ye=m.memoizedProps;if(Lr(ye,Q)&&m.ref===_.ref)if(Jl=!1,_.pendingProps=Q=ye,(m.lanes&se)!==0)(m.flags&131072)!==0&&(Jl=!0);else return _.lanes=m.lanes,vA(m,_,se)}return fh(m,_,K,Q,se)}function vm(m,_,K){var Q=_.pendingProps,se=Q.children,ye=m!==null?m.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Os(lu,xs),xs|=K;else{if((K&1073741824)===0)return m=ye!==null?ye.baseLanes|K:K,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,Os(lu,xs),xs|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ye!==null?ye.baseLanes:K,Os(lu,xs),xs|=Q}else ye!==null?(Q=ye.baseLanes|K,_.memoizedState=null):Q=K,Os(lu,xs),xs|=Q;return Rl(m,_,se,K),_.child}function Ph(m,_){var K=_.ref;(m===null&&K!==null||m!==null&&m.ref!==K)&&(_.flags|=512,_.flags|=2097152)}function fh(m,_,K,Q,se){var ye=Bl(K)?yl:Ya.current;return ye=$u(_,ye),dA(_,se),K=Ar(m,_,K,Q,ye,se),Q=cr(),m!==null&&!Jl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~se,vA(m,_,se)):(gs&&Q&&Vu(_),_.flags|=1,Rl(m,_,K,se),_.child)}function UA(m,_,K,Q,se){if(Bl(K)){var ye=!0;Js(_)}else ye=!1;if(dA(_,se),_.stateNode===null)zA(m,_),td(_,K,Q),Fp(_,K,Q,se),Q=!0;else if(m===null){var tt=_.stateNode,Ot=_.memoizedProps;tt.props=Ot;var Qt=tt.context,Mn=K.contextType;typeof Mn=="object"&&Mn!==null?Mn=Do(Mn):(Mn=Bl(K)?yl:Ya.current,Mn=$u(_,Mn));var sr=K.getDerivedStateFromProps,yr=typeof sr=="function"||typeof tt.getSnapshotBeforeUpdate=="function";yr||typeof tt.UNSAFE_componentWillReceiveProps!="function"&&typeof tt.componentWillReceiveProps!="function"||(Ot!==Q||Qt!==Mn)&&nd(_,tt,Q,Mn),sl=!1;var ar=_.memoizedState;tt.state=ar,c(_,Q,tt,se),Qt=_.memoizedState,Ot!==Q||ar!==Qt||gl.current||sl?(typeof sr=="function"&&(Th(_,K,sr,Q),Qt=_.memoizedState),(Ot=sl||Id(_,K,Ot,Q,ar,Qt,Mn))?(yr||typeof tt.UNSAFE_componentWillMount!="function"&&typeof tt.componentWillMount!="function"||(typeof tt.componentWillMount=="function"&&tt.componentWillMount(),typeof tt.UNSAFE_componentWillMount=="function"&&tt.UNSAFE_componentWillMount()),typeof tt.componentDidMount=="function"&&(_.flags|=4194308)):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=Q,_.memoizedState=Qt),tt.props=Q,tt.state=Qt,tt.context=Mn,Q=Ot):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{tt=_.stateNode,Gc(m,_),Ot=_.memoizedProps,Mn=_.type===_.elementType?Ot:ta(_.type,Ot),tt.props=Mn,yr=_.pendingProps,ar=tt.context,Qt=K.contextType,typeof Qt=="object"&&Qt!==null?Qt=Do(Qt):(Qt=Bl(K)?yl:Ya.current,Qt=$u(_,Qt));var Wr=K.getDerivedStateFromProps;(sr=typeof Wr=="function"||typeof tt.getSnapshotBeforeUpdate=="function")||typeof tt.UNSAFE_c Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var O8;function rQ(){return O8||(O8=1,function(n){const e=tQ(),t=nQ(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=$,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const We=new Uint8Array(1),he={foo:function(){return 42}};return Object.setPrototypeOf(he,Uint8Array.prototype),Object.setPrototypeOf(We,he),We.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function l(We){if(We>i)throw new RangeError('The value "'+We+'" is invalid for option "size"');const he=new Uint8Array(We);return Object.setPrototypeOf(he,o.prototype),he}function o(We,he,me){if(typeof We=="number"){if(typeof he=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(We)}return f(We,he,me)}o.poolSize=8192;function f(We,he,me){if(typeof We=="string")return R(We,he);if(ArrayBuffer.isView(We))return U(We);if(We==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We);if(Dn(We,ArrayBuffer)||We&&Dn(We.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Dn(We,SharedArrayBuffer)||We&&Dn(We.buffer,SharedArrayBuffer)))return N(We,he,me);if(typeof We=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const et=We.valueOf&&We.valueOf();if(et!=null&&et!==We)return o.from(et,he,me);const bt=W(We);if(bt)return bt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof We[Symbol.toPrimitive]=="function")return o.from(We[Symbol.toPrimitive]("string"),he,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We)}o.from=function(We,he,me){return f(We,he,me)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function C(We){if(typeof We!="number")throw new TypeError('"size" argument must be of type number');if(We<0)throw new RangeError('The value "'+We+'" is invalid for option "size"')}function x(We,he,me){return C(We),We<=0?l(We):he!==void 0?typeof me=="string"?l(We).fill(he,me):l(We).fill(he):l(We)}o.alloc=function(We,he,me){return x(We,he,me)};function B(We){return C(We),l(We<0?0:X(We)|0)}o.allocUnsafe=function(We){return B(We)},o.allocUnsafeSlow=function(We){return B(We)};function R(We,he){if((typeof he!="string"||he==="")&&(he="utf8"),!o.isEncoding(he))throw new TypeError("Unknown encoding: "+he);const me=re(We,he)|0;let et=l(me);const bt=et.write(We,he);return bt!==me&&(et=et.slice(0,bt)),et}function P(We){const he=We.length<0?0:X(We.length)|0,me=l(he);for(let et=0;et<he;et+=1)me[et]=We[et]&255;return me}function U(We){if(Dn(We,Uint8Array)){const he=new Uint8Array(We);return N(he.buffer,he.byteOffset,he.byteLength)}return P(We)}function N(We,he,me){if(he<0||We.byteLength<he)throw new RangeError('"offset" is outside of buffer bounds');if(We.byteLength<he+(me||0))throw new RangeError('"length" is outside of buffer bounds');let et;return he===void 0&&me===void 0?et=new Uint8Array(We):me===void 0?et=new Uint8Array(We,he):et=new Uint8Array(We,he,me),Object.setPrototypeOf(et,o.prototype),et}function W(We){if(o.isBuffer(We)){const he=X(We.length)|0,me=l(he);return me.length===0||We.copy(me,0,0,he),me}if(We.length!==void 0)return typeof We.length!="number"||Ln(We.length)?l(0):P(We);if(We.type==="Buffer"&&Array.isArray(We.data))return P(We.data)}function X(We){if(We>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return We|0}function $(We){return+We!=We&&(We=0),o.alloc(+We)}o.isBuffer=function(he){return he!=null&&he._isBuffer===!0&&he!==o.prototype},o.compare=function(he,me){if(Dn(he,Uint8Array)&&(he=o.from(he,he.offset,he.byteLength)),Dn(me,Uint8Array)&&(me=o.from(me,me.offset,me.byteLength)),!o.isBuffer(he)||!o.isBuffer(me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(he===me)return 0;let et=he.length,bt=me.length;for(let Yt=0,Jt=Math.min(et,bt);Yt<Jt;++Yt)if(he[Yt]!==me[Yt]){et=he[Yt],bt=me[Yt];break}return et<bt?-1:bt<et?1:0},o.isEncoding=function(he){switch(String(he).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(he,me){if(!Array.isArray(he))throw new TypeError('"list" argument must be an Array of BuLine truncated
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var AQ=zv.exports,T8;function uQ(){return T8||(T8=1,function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",o="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",C=500,x="__lodash_placeholder__",B=1,R=2,P=4,U=1,N=2,W=1,X=2,$=4,re=8,te=16,V=32,ne=64,G=128,le=256,fe=512,pe=30,we="...",Se=800,xe=16,je=1,Me=2,rt=3,Ct=1/0,it=9007199254740991,nt=17976931348623157e292,Ge=NaN,Ie=4294967295,$e=Ie-1,gt=Ie>>>1,Dt=[["ary",G],["bind",W],["bindKey",X],["curry",re],["curryRight",te],["flip",fe],["partial",V],["partialRight",ne],["rearg",le]],ut="[object Arguments]",Rt="[object Array]",St="[object AsyncFunction]",Ke="[object Boolean]",Pe="[object Date]",Re="[object DOMException]",Ye="[object Error]",vt="[object Function]",yt="[object GeneratorFunction]",Et="[object Map]",Zt="[object Number]",Ut="[object Null]",An="[object Object]",hr="[object Promise]",Vt="[object Proxy]",Vn="[object RegExp]",Pn="[object Set]",Dn="[object String]",Ln="[object Symbol]",Ir="[object Undefined]",rr="[object WeakMap]",Yn="[object WeakSet]",We="[object ArrayBuffer]",he="[object DataView]",me="[object Float32Array]",et="[object Float64Array]",bt="[object Int8Array]",Yt="[object Int16Array]",Jt="[object Int32Array]",ir="[object Uint8Array]",Xe="[object Uint8ClampedArray]",ae="[object Uint16Array]",ve="[object Uint32Array]",p=/\b__p \+= '';/g,Ne=/\b(__p \+=) '' \+/g,Ve=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Te=/&(?:amp|lt|gt|quot|#39);/g,lt=/[&<>"']/g,ct=RegExp(Te.source),Ft=RegExp(lt.source),jt=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,On=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rn=/^\w*$/,dr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,or=RegExp(Tr.source),on=/^\s+/,ti=/\s/,li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jr=/\{\n\/\* \[wrapped with (.+)\] \*/,Fr=/,? & /,wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,ui=/\\(\\)?/g,Pi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yi=/\w*$/,As=/^[-+]0x[0-9a-f]+$/i,qr=/^0b[01]+$/i,_s=/^\[object .+?Constructor\]$/,La=/^0o[0-7]+$/i,da=/^(?:0|[1-9]\d*)$/,No=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zs=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,ci="\\ud800-\\udfff",oa="\\u0300-\\u036f",bo="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",Er=oa+bo+lo,wa="\\u2700-\\u27bf",qo="a-z\\xdf-\\xf6\\xf8-\\xff",Jo="\\xac\\xb1\\xd7\\xf7",qe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xt="\\u2000-\\u206f",_n=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jn="A-Z\\xc0-\\xd6\\xd8-\\xde",fn="\\ufe0e\\ufe0f",gr=Jo+qe+xt+_n,Qi="['’]",Io="["+ci+"]",fs="["+gr+"]",fa="["+Er+"]",iA="\\d+",vi="["+wa+"]",zu="["+qo+"]",jl="[^"+ci+gr+iA+wa+qo+jn+"]",nl="\\ud83c[\\udffb-\\udfff]",Ua="(?:"+fa+"|"+nl+")",JA="[^"+ci+"]",Sa="(?:\\ud83c[\\udde6-\\uddff]){2}",bi="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+jn+"]",Oi="\\u200d",xl="(?:"+zu+"|"+jl+")",Oo="(?:"+Ao+"|"+jl+")",Wl="(?:"+Qi+"(?:d|ll|m|re|s|t|ve))?",Di="(?:"+Qi+"(?:D|LL|M|RE|S|T|VE))?",oA=Ua+"?",sA="["+fn+"]?",za="(?:"+Oi+"(?:"+[JA,Sa,bi].join("|")+")"+sA+oA+")*",Ni="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$o=sA+oA+za,Vo="(?:"+[vi,Sa,bi].join("|")+")"+$o,Hi="(?:"+[JA+fa+"?",fa,Sa,bi,Io].join("|")+")",Ea=RegExp(Qi,"g"),pa=RegExp(fa,"g"),Ss=RegExp(nl+"(?="+nl+")|"+Hi+$o,"g"),sa=RegExp([Ao+"?"+zu+"+"+Wl+"(?="+[fs,Ao,"$"].join("|")+")",Oo+"+"+Di+"(?="+[fs,Ao+xl,"$"].join("|")+")",Ao+"?"+xl+"+"+Wl,Ao+"+"+Di,uo,Ni,iA,Vo].join("|"),"g"),EA=RegExp("["+Oi+ci+Er+fn+"]"),Ii=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ho=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gi=-1,Sr={};Sr[me]=Sr[et]=Sr[bt]=Sr[Yt]=Sr[Jt]=Sr[ir]=Sr[Xe]=Sr[ae]=Sr[ve]=!0,Sr[ut]=Sr[Rt]=Sr[We]=Sr[Ke]=Sr[he]=Sr[Pe]=Sr[Ye]=Sr[vt]=Sr[Et]=Sr[Zt]=Sr[An]=Sr[Vn]=Sr[Pn]=Sr[Dn]=Sr[rr]=!1;var to={};to[ut]=to[Rt]=to[We]=to[he]=to[Ke]=to[Pe]=to[me]=to[et]=to[bt]=to[Yt]=to[Jt]=to[Et]=to[Zt]=to[An]=to[Vn]=to[Pn]=to[Dn]=to[Ln]=to[ir]=to[Xe]=to[ae]=to[ve]=!0,to[Ye]=to[vt]=to[rr]=!1;var J={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",Line truncated
/* [wrapped with `+T+`] */
`)}function g(b){return So(b)||op(b)||!!(mf&&b&&b[mf])}function E(b,T){var q=typeof b;return T=T??it,!!T&&(q=="number"||q!="symbol"&&da.test(b))&&b>-1&&b%1==0&&b<T}function S(b,T,q){if(!Cl(q))return!1;var Ce=typeof T;return(Ce=="number"?$c(q)&&E(T,q.length):Ce=="string"&&T in q)?sd(q[T],b):!1}function D(b,T){if(So(b))return!1;var q=typeof b;return q=="number"||q=="symbol"||q=="boolean"||b==null||Dh(b)?!0:Rn.test(b)||!On.test(b)||T!=null&&b in es(T)}function H(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function ce(b){var T=id(b),q=ot[T];if(typeof q!="function"||!(T in ai.prototype))return!1;if(b===q)return!0;var Ce=Dd(q);return!!Ce&&b===Ce[0]}function _e(b){return!!vu&&vu in b}var ke=ga?sp:zh;function Ue(b){var T=b&&b.constructor,q=typeof T=="function"&&T.prototype||ja;return b===q}function mt(b){return b===b&&!Cl(b)}function Bt(b,T){return function(q){return q==null?!1:q[b]===T&&(T!==t||b in es(q))}}function tn(b){var T=pn(b,function(Ce){return q.size===C&&q.clear(),Ce}),q=T.cache;return T}function qt(b,T){var q=b[1],Ce=T[1],Ze=q|Ce,ht=Ze<(W|X|G),Lt=Ce==G&&q==re||Ce==G&&q==le&&b[7].length<=T[8]||Ce==(G|le)&&T[7].length<=T[8]&&q==re;if(!(ht||Lt))return b;Ce&W&&(b[2]=T[2],Ze|=q&W?0:$);var $t=T[3];if($t){var an=b[3];b[3]=an?Bd(an,$t,T[4]):$t,b[4]=an?rl(b[3],x):T[4]}return $t=T[5],$t&&(an=b[5],b[5]=an?Od(an,$t,T[6]):$t,b[6]=an?rl(b[5],x):T[6]),$t=T[7],$t&&(b[7]=$t),Ce&G&&(b[8]=b[8]==null?T[8]:ya(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=Ze,b}function xn(b){var T=[];if(b!=null)for(var q in es(b))T.push(q);return T}function Fn(b){return TA.call(b)}function Kn(b,T,q){return T=ms(T===t?b.length-1:T,0),function(){for(var Ce=arguments,Ze=-1,ht=ms(Ce.length-T,0),Lt=dn(ht);++Ze<ht;)Lt[Ze]=Ce[T+Ze];Ze=-1;for(var $t=dn(T+1);++Ze<T;)$t[Ze]=Ce[Ze];return $t[T]=q(Lt),Gs(b,this,$t)}}function Hn(b,T){return T.length<2?b:Bu(b,Hr(T,0,-1))}function br(b,T){for(var q=b.length,Ce=ya(T.length,q),Ze=gA(b);Ce--;){var ht=T[Ce];b[Ce]=E(ht,q)?Ze[ht]:t}return b}function fr(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Pr=fo(cr),Jr=Uc||function(b,T){return Rr.setTimeout(b,T)},zr=fo(kn);function eo(b,T,q){var Ce=T+"";return zr(b,u(Ce,na(Ra(Ce),q)))}function fo(b){var T=0,q=0;return function(){var Ce=Ed(),Ze=xe-(Ce-q);if(q=Ce,Ze>0){if(++T>=Se)return arguments[0]}else T=0;return b.apply(t,arguments)}}function _a(b,T){var q=-1,Ce=b.length,Ze=Ce-1;for(T=T===t?Ce:T;++q<T;){var ht=zt(q,Ze),Lt=b[ht];b[ht]=b[q],b[q]=Lt}return b.length=T,b}var vs=tn(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(dr,function(q,Ce,Ze,ht){T.push(Ze?ht.replace(ui,"$1"):Ce||q)}),T});function Ys(b){if(typeof b=="string"||Dh(b))return b;var T=b+"";return T=="0"&&1/b==-Ct?"-0":T}function qs(b){if(b!=null){try{return ih.call(b)}catch{}try{return b+""}catch{}}return""}function na(b,T){return Ga(Dt,function(q){var Ce="_."+q[0];T&q[1]&&!aA(b,Ce)&&b.push(Ce)}),b.sort()}function NA(b){if(b instanceof ai)return b.clone();var T=new Ro(b.__wrapped__,b.__chain__);return T.__actions__=gA(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function $a(b,T,q){(q?S(b,T,q):T===t)?T=1:T=ms(Lo(T),0);var Ce=b==null?0:b.length;if(!Ce||T<1)return[];for(var Ze=0,ht=0,Lt=dn(_u(Ce/T));Ze<Ce;)Lt[ht++]=Hr(b,Ze,Ze+=T);return Lt}function Ds(b){for(var T=-1,q=b==null?0:b.length,Ce=0,Ze=[];++T<q;){var ht=b[T];ht&&(Ze[Ce++]=ht)}return Ze}function cs(){var b=arguments.length;if(!b)return[];for(var T=dn(b-1),q=arguments[0],Ce=b;Ce--;)T[Ce-1]=arguments[Ce];return Tc(So(q)?gA(q):[q],vr(T,1))}var xi=en(function(b,T){return Kl(b)?Eu(b,vr(T,1,Kl,!0)):[]}),Qo=en(function(b,T){var q=_A(T);return Kl(q)&&(q=t),Kl(b)?Eu(b,vr(T,1,Kl,!0),Mi(q,2)):[]}),$s=en(function(b,T){var q=_A(T);return Kl(q)&&(q=t),Kl(b)?Eu(b,vr(T,1,Kl,!0),t,q):[]});function la(b,T,q){var Ce=b==null?0:b.length;return Ce?(T=q||T===t?1:Lo(T),Hr(b,T<0?0:T,Ce)):[]}function xs(b,T,q){var Ce=b==null?0:b.length;return Ce?(T=q||T===t?1:Lo(T),T=Ce-T,Hr(b,0,T<0?0:T)):[]}function lu(b,T){return b&&b.length?Ca(b,Mi(T,3),!0,!0):[]}function Fo(b,T){return b&&b.length?Ca(b,Mi(T,3),!0):[]}function Fd(b,T,q,Ce){var Ze=b==null?0:b.length;return Ze?(q&&typeof q!="number"&&S(b,T,q)&&(q=0,Ce=Ze),Il(b,T,q,Ce)):[]}function GA(b,T,q){var Ce=b==null?0:b.length;if(!Ce)return-1;var Ze=q==null?0:Lo(q);return Ze<0&&(Ze=ms(Ce+Ze,0)),Nu(b,Mi(T,3),Ze)}function Yc(b,T,q){var Ce=b==null?0:b.length;if(!Ce)return-1;var Ze=Ce-1;return q!==t&&(Ze=Lo(q),Ze=q<0?ms(Ce+Ze,0):ya(Ze,Ce-1)),Nu(b,Mi(T,3),Ze,!0)}function xc(b){var T=b==null?0:b.length;return T?vr(b,1):[]}function al(b){var T=b==null?0:b.length;return T?vr(b,Ct):[]}function ll(b,T){var q=b==null?0:b.length;return q?(T=T===t?1:Lo(T),vr(b,T)):[]}function Mf(b){for(var T=-1,q=b==null?0:b.length,Ce={};++T<q;){var Ze=b[T];Ce[Ze[0]]=Ze[1]}return Ce}function Ld(b){return b&&b.length?b[0]:t}function od(b,T,q){var Ce=b==null?0:b.length;if(!Ce)return-1;var Ze=q==null?0:Lo(q);return Ze<0&&(Z Line truncated
`;b.replace($r,function(ro,Cs,Is,Vd,Nh,Hd){return Is||(Is=Vd),mr+=b.slice(qn,Hd).replace(hl,Rc),Cs&&($t=!0,mr+=`' +
__e(`+Cs+`) +
'`),Nh&&(an=!0,mr+=`';
`+Nh+`;
__p += '`),Is&&(mr+=`' +
((__t = (`+Is+`)) == null ? '' : __t) +
'`),qn=Hd+ro.length,ro}),mr+=`';
`;var no=Po.call(T,"variable")&&T.variable;if(!no)mr=`with (obj) {
`+mr+`
}
`;else if(Dr.test(no))throw new Ri(o);mr=(an?mr.replace(p,""):mr).replace(Ne,"$1").replace(Ve,"$1;"),mr="function("+(no||"obj")+`) {
`+(no?"":`obj || (obj = {});
`)+"var __t, __p = ''"+($t?", __e = _.escape":"")+(an?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+mr+`return __p
}`;var ns=yv(function(){return Go(ht,Bi+"return "+mr).apply(t,Lt)});if(ns.source=mr,Cg(ns))throw ns;return ns}function ba(b){return Ks(b).toLowerCase()}function Yd(b){return Ks(b).toUpperCase()}function p0(b,T,q){if(b=Ks(b),b&&(q||T===t))return cf(b);if(!b||!(T=ho(T)))return b;var Ce=Ba(b),Ze=Ba(T),ht=Gu(Ce,Ze),Lt=bh(Ce,Ze)+1;return Zl(Ce,ht,Lt).join("")}function qd(b,T,q){if(b=Ks(b),b&&(q||T===t))return b.slice(0,Mh(b)+1);if(!b||!(T=ho(T)))return b;var Ce=Ba(b),Ze=bh(Ce,Ba(T))+1;return Zl(Ce,0,Ze).join("")}function z3(b,T,q){if(b=Ks(b),b&&(q||T===t))return b.replace(on,"");if(!b||!(T=ho(T)))return b;var Ce=Ba(b),Ze=Gu(Ce,Ba(T));return Zl(Ce,Ze).join("")}function m0(b,T){var q=pe,Ce=we;if(Cl(T)){var Ze="separator"in T?T.separator:Ze;q="length"in T?Lo(T.length):q,Ce="omission"in T?ho(T.omission):Ce}b=Ks(b);var ht=b.length;if(ju(b)){var Lt=Ba(b);ht=Lt.length}if(q>=ht)return b;var $t=q-so(Ce);if($t<1)return Ce;var an=Lt?Zl(Lt,0,$t).join(""):b.slice(0,$t);if(Ze===t)return an+Ce;if(Lt&&($t+=an.length-$t),h0(Ze)){if(b.slice($t).search(Ze)){var qn,Zn=an;for(Ze.global||(Ze=cc(Ze.source,Ks(yi.exec(Ze))+"g")),Ze.lastIndex=0;qn=Ze.exec(Zn);)var mr=qn.index;an=an.slice(0,mr===t?$t:mr)}}else if(b.indexOf(ho(Ze),$t)!=$t){var $r=an.lastIndexOf(Ze);$r>-1&&(an=an.slice(0,$r))}return an+Ce}function Om(b){return b=Ks(b),b&&ct.test(b)?b.replace(Te,Md):b}var g0=td(function(b,T,q){return b+(q?" ":"")+T.toUpperCase()}),Hp=Id("toUpperCase");function Im(b,T,q){return b=Ks(b),T=q?t:T,T===t?qf(b)?ff(b):Vh(b):b.match(T)||[]}var yv=en(function(b,T){try{return Gs(b,t,T)}catch(q){return Cg(q)?q:new Ri(q)}}),eb=Qc(function(b,T){return Ga(T,function(q){q=Ys(q),vc(b,q,yr(b[q],b))}),b});function tb(b){var T=b==null?0:b.length,q=Mi();return b=T?ps(b,function(Ce){if(typeof Ce[1]!="function")throw new IA(l);return[q(Ce[0]),Ce[1]]}):[],en(function(Ce){for(var Ze=-1;++Ze<T;){var ht=b[Ze];if(Gs(ht[0],this,Ce))return Gs(ht[1],this,Ce)}})}function nb(b){return _c(hA(b,B))}function f1(b){return function(){return b}}function vv(b,T){return b==null||b!==b?T:b}var ap=dh(),rb=dh(!0);function Zc(b){return b}function Cv(b){return Y(typeof b=="function"?b:hA(b,B))}function N3(b){return Be(hA(b,B))}function G3(b,T){return ze(b,hA(T,B))}var j3=en(function(b,T){return function(q){return sl(q,b,T)}}),W3=en(function(b,T){return function(q){return sl(b,q,T)}});function _v(b,T,q){var Ce=ue(T),Ze=Ws(T,Ce);q==null&&!(Cl(T)&&(Ze.length||!Ce.length))&&(q=T,T=b,b=this,Ze=Ws(T,ue(T)));var ht=!(Cl(q)&&"chain"in q)||!!q.chain,Lt=sp(b);return Ga(Ze,function($t){var an=T[$t];b[$t]=an,Lt&&(b.prototype[$t]=function(){var qn=this.__chain__;if(ht||qn){var Zn=b(this.__wrapped__),mr=Zn.__actions__=gA(this.__actions__);return mr.push({func:an,args:arguments,thisArg:b}),Zn.__chain__=qn,Zn}return an.apply(b,Tc([this.value()],arguments))})}),b}function Q3(){return Rr._===this&&(Rr._=Wa),this}function bv(){}function $d(b){return b=Lo(b),en(function(T){return dt(T,b)})}var Mg=_f(ps),ib=_f(uc),Y3=_f(qh);function ob(b){return D(b)?_h(Ys(b)):Mt(b)}function q3(b){return function(T){return b==null?t:Bu(b,T)}}var ic=rd(),Uh=rd(!0);function lp(){return[]}function zh(){return!1}function Tm(){return{}}function If(){return""}function rj(){return!0}function ij(b,T){if(b=Lo(b),b<1||b>it)return[];var q=Ie,Ce=ya(b,Ie);T=Mi(T),b-=Ie;for(var Ze=Pc(Ce,T);++q<b;)T(q);return Ze}function oj(b){return So(b)?ps(b,Ys):Dh(b)?[b]:gA(vs(Ks(b)))}function sj(b){var T=++Fc;return Ks(b)+T}var aj=kh(function(b,T){return b+T},0),lj=Rl("ceil"),Aj=kh(function(b,T){return b/T},1),uj=Rl("floor");function cj(b){return b&&b.length?Oh(b,Zc,dA):t}function hj(b,T){return b&&b.length?Oh(b,Mi(T,2),dA):t}function dj(b){return nh(b,Zc)}function fj(b,T){return nh(b,Mi(T,2))}function pj(b){return b&&b.length?Oh(b,Zc,de):t}function mj(b,T){return b&&b.length?Oh(b,Mi(T,2),de):t}var gj=kh(function(b,T){return b*T},1),yj=Rl("round"),vj=kh(function(b,T){return b-T},0);function Cj(b){return b&&b.length?vd(b,Zc):0}function _j(b,T){return b&&b.length?vd(b,Mi(T,2)):0}return ot.after=Qt,ot.ary=Mn,ot.assign=cv,ot.assignIn=hv,ot.assignInWith=Vp,ot.assignWith=dv,ot.at=J_,ot.before=sr,ot.bind=yr,ot.bindAll=eb,ot.bindKey=ar,ot.castArray=D3,ot.chain=r0,ot.chunk=$a,ot.compact=Ds,ot.concat=cs,ot.cond=tb,ot.conforms=nb,ot.constant=f1,ot.countBy=s1,ot.create=fv,ot.curry=Wr,ot.curryRight=ii,ot.debounce=hi,ot.defaults=xg,ot.defaultsDeep=d1,ot.defer=Al,ot.delay=un,ot.difference=xi,ot.differenceBy=Qo,ot.differenceWith=$s,ot.drop=la,ot.dropRight=xs,ot.dropRightWhile=lu,ot.dropWhile=Fo,ot.fill=Fd,ot.filter=rp,ot.flatMap=Qp,ot.flatMapDeep=o0,ot.flatMapDepth=gg,ot.flatten=xc,ot.flattenDeep=al,ot.flattenDepth=ll,ot.flip=Xt,ot.flow=ap,ot.flowRight=rb,ot.fromPairs=Mf,ot.functions=h,ot.functionsIn=y,ot.groupBy=a0,ot.initial=_m,ot.intersection=Gp,ot.intersectionBy=Ud,ot.intersectionWith=bm,ot.invert=j,ot.invertBy=Z,ot.invokeMap=a1,ot.iteratee=Cv,ot.keyBy=yg,ot.keys=ue,ot.keysIn=ge,ot.map=Gd,ot.mapKeys=De,ot.mapValues=Le,ot.matches=N3,ot.matchesProperty=G3,ot.memo Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const R=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&R.push(new wr(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Qy(Y1(l))&&ZA(l.type)==="identity"&&R.push(new wr(t,l,'"text-font" does not support identity functions'))),R.concat(r({key:n.key,value:l,valueSpec:x,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function CL(n){return vL(n,"paint")}function _L(n){return vL(n,"layout")}function bL(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;if(is(t)!=="object")return[new wr(r,t,`object expected, ${is(t)} found`)];!t.type&&!t.ref&&e.push(new wr(r,t,'either "type" or "ref" is required'));let l=ZA(t.type);const o=ZA(t.ref);if(t.id){const f=ZA(t.id);for(let C=0;C<n.arrayIndex;C++){const x=i.layers[C];ZA(x.id)===f&&e.push(new wr(r,t.id,`duplicate layer id "${t.id}", previously used at line ${x.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(C=>{C in t&&e.push(new wr(r,t[C],`"${C}" is prohibited for ref layers`))});let f;i.layers.forEach(C=>{ZA(C.id)===o&&(f=C)}),f?f.ref?e.push(new wr(r,t.ref,"ref cannot reference another ref layer")):l=ZA(f.type):e.push(new wr(r,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new wr(r,t,'missing required property "source"'));else{const f=i.sources&&i.sources[t.source],C=f&&ZA(f.type);f?C==="vector"&&l==="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster source`)):C!=="raster-dem"&&l==="hillshade"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):C==="raster"&&l!=="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a vector source`)):C==="vector"&&!t["source-layer"]?e.push(new wr(r,t,`layer "${t.id}" must specify a "source-layer"`)):C==="raster-dem"&&l!=="hillshade"?e.push(new wr(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(C!=="geojson"||!f.lineMetrics)&&e.push(new wr(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new wr(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Uf({key:r,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:qB,layout(f){return Uf({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(C){return _L(By({layerType:l},C))}}})},paint(f){return Uf({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(C){return CL(By({layerType:l},C))}}})}}})),e}function q1(n){const e=n.value,t=n.key,r=is(e);return r!=="string"?[new wr(t,e,`string expected, ${r} found`)]:[]}function v$(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,s=i.source_raster_dem,l=n.style;let o=[];const f=is(r);if(r===void 0)return o;if(f!=="object")return o.push(new wr("source_raster_dem",r,`object expected, ${f} found`)),o;const x=ZA(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],R=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const P in r)!x&&B.includes(P)?o.push(new wr(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${R} encoding found`)):s[P]?o=o.concat(n.validateSpec({key:P,value:r[P],valueSpec:s[P],validateSpec:n.validateSpec,style:l,styleSpec:i})):o.push(new wr(P,r[P],`unknown property "${P}"`));return o}const r7={promoteId:C$};function xL(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,s=n.validateSpec;if(!e.type)return[new wr(t,e,'"type" is required')];const l=ZA(e.type);let o;switch(l){case"vector":case"raster":return o=Uf({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:r7,validateSpec:s}),o;case"raster-dem":return o=v$({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Uf({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:r7}),e.cluster)for(const f in e.clusterProperties){const[C,x]=e.clusterProperties[f],B=typeof C=="string"?[C,["accumulated"],["get",f]]:C;o.push(...Ty({key:`${t}.${f}.map`,value:x,expressionContext:"cluster-map"})),o.push(...Ty({key:`${t}.${f}.reduce`,value:B,expressionContext:"cluster-reduce"}))}return o;case"video":return Uf({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return Uf({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new wr(t,null,"PlLine truncated
${B}`),N].join(`
${o}`)}return C}(n,"",0)}function o7(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function TL(n,e=2){return n=o7(n,ws.$root),n.layers&&(n.layers=n.layers.map(t=>o7(t,ws.layer))),P$(n,{indent:e})}function y4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function s7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function g6(n,e){return typeof e=="string"&&e[0]==="@"?g6(n,n.constants[e]):e}function R$(n){return Array.isArray(n.stops)}function Sv(n,e,t){n[t]=n[e],delete n[e]}function D$(n){n.version=8,g$(n,i=>{i.type==="video"&&i.url!==void 0&&Sv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),uC(n,i=>{y4(i,s=>{s["symbol-min-distance"]!==void 0&&Sv(s,"symbol-min-distance","symbol-spacing")}),s7(i,s=>{s["background-image"]!==void 0&&Sv(s,"background-image","background-pattern"),s["line-image"]!==void 0&&Sv(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&Sv(s,"fill-image","fill-pattern")})}),QB(n,{paint:!0,layout:!0},i=>{const s=g6(n,i.value);R$(s)&&s.stops.forEach(l=>{l[1]=g6(n,l[1])}),i.set(s)}),delete n.constants,uC(n,i=>{y4(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),s7(i,s=>{s["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(i){function s(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return s(i);if(typeof i=="object")return i.stops.forEach(l=>{l[1]=s(l[1])}),i;throw new Error("unexpected font value")}uC(n,i=>{y4(i,s=>{s["text-font"]&&(s["text-font"]=e(s["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function K$(n){const e=[];return uC(n,t=>{t.filter&&(t.filter=AC(t.filter))}),QB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{Yy(r)||(typeof r=="object"&&!Array.isArray(r)?(s(NB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(pL(r)))}),n}function F$(n){return JSON.parse(L$(JSON.stringify(n)))}function L$(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,s,l,o]=r.slice(1);return[s,l]=[s,l].map(f=>f.endsWith("%")?f:`${parseFloat(f)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[i,s,l,o].filter(Boolean).join(",")})"`}return e})}function U$(n){let e=!1;if(n.version===7&&(n=D$(n),e=!0),n.version===8&&(e=!!K$(n),e=!0),QB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(F$(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const z$=ws,N$={StyleExpression:dL,StylePropertyFunction:kx,ZoomConstantExpression:d6,ZoomDependentExpression:f6,createExpression:Ix,createPropertyExpression:Tx,isExpression:Yy,isExpressionFilter:d_,isZoomExpression:n$,normalizePropertyExpression:r$},G$={convertFunction:NB,createFunction:zB,isFunction:Qy};var Dx=Ax();const j$=Gl(Dx);var t2={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.5.0/LICENSE.txt
*/var W$=t2.exports,a7;function Q$(){return a7||(a7=1,function(n,e){(function(t,r){n.exports=r()})(W$,function(){var t={},r={};function i(l,o,f){if(r[l]=f,l==="index"){var C="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",x={};return r.shared(x),r.index(t,x),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([C],{type:"text/javascript"}))),t}}i("shared",["exports"],function(l){function o(d,A,h,y){return new(h||(h=Promise))(function(w,k){function F(ie){try{Z(y.next(ie))}catch(ue){k(ue)}}function j(ie){try{Z(y.throw(ie))}catch(ue){k(ue)}}function Z(ie){var ue;ie.done?w(ie.value):(ue=ie.value,ue instanceof h?ue:new h(function(ge){ge(ue)})).then(F,j)}Z((y=y.apply(d,A||[])).next())})}function f(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var C,x;function B(){if(x)return C;function d(A,h){this.x=A,this.y=h}return x=1,C=d,d.prototype={clone:function(){return new d(this.x,this.y)},add:function(A){return this.clone()._add(A)},sub:function(A){return this.clone()._sub(A)},multByPoint:function(A){return this.clone()._multByPoint(A)},divByPoint:function(A){return this.clone()._divByPoint(A)},mult:function(A){return this.clone()._mult(A)},div:function(A){return this.clone()._div(A)},rotate:function(A){return this.clone()._rotate(A)},rotateAround:function(A,h){return this.clone()._rotateAround(A,h)},matMult:function(A){return this.clone()._matMult(A)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(A){return this.x===A.x&&this.y===A.y},dist:function(A){return Math.sqrt(this.distSqr(A))},distSqr:function(A){var h=A.x-this.x,y=A.y-this.y;return h*h+y*y},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(A){return Math.atan2(this.y-A.y,this.x-A.x)},angleWith:function(A){return this.angleWithSep(A.x,A.y)},angleWithSep:function(A,h){return Math.atan2(this.x*h-this.y*A,this.x*A+this.y*h)},_matMult:function(A){var h=A[2]*this.x+A[3]*this.y;return this.x=A[0]*this.x+A[1]*this.y,this.y=h,this},_add:function(A){return this.x+=A.x,this.y+=A.y,this},_sub:function(A){return this.x-=A.x,this.y-=A.y,this},_mult:function(A){return this.x*=A,this.y*=A,this},_div:function(A){return this.x/=A,this.y/=A,this},_multByPoint:function(A){return this.x*=A.x,this.y*=A.y,this},_divByPoint:function(A){return this.x/=A.x,this.y/=A.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var A=this.y;return this.y=this.x,this.x=-A,this},_rotate:function(A){var h=Math.cos(A),y=Math.sin(A),w=y*this.x+h*this.y;return this.x=h*this.x-y*this.y,this.y=w,this},_rotateAround:function(A,h){var y=Math.cos(A),w=Math.sin(A),k=h.y+w*(this.x-h.x)+y*(this.y-h.y);return this.x=h.x+y*(this.x-h.x)-w*(this.y-h.y),this.y=k,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},d.convert=function(A){return A instanceof d?A:Array.isArray(A)?new d(A[0],A[1]):A},C}typeof SuppressedError=="function"&&SuppressedError;var R,P,U=f(B()),N=function(){if(P)return R;function d(A,h,y,w){this.cx=3*A,this.bx=3*(y-A)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*h,this.by=3*(w-h)-this.cy,this.ay=1-this.cy-this.by,this.p1x=A,this.p1y=h,this.p2x=y,this.p2y=w}return P=1,R=d,d.prototype={sampleCurveX:function(A){return((this.ax*A+this.bx)*A+this.cx)*A},sampleCurveY:function(A){return((this.ay*A+this.by)*A+this.cy)*A},sampleCurveDerivativeX:function(A){return(3*this.ax*A+2*this.bx)*A+this.cx},solveCurveX:function(A,h){if(h===void 0&&(h=1e-6),A<0)return 0;if(A>1)return 1;for(var y=A,w=0;w<8;w++){var k=this.sampleCurveX(y)-A;if(Math.abs(k)<h)return y;var F=this.sampleCurveDerivativeX(y);if(Math.abs(F)<1e-6)break;y-=k/F}var j=0,Z=1;for(y=A,w=0;w<20&&(k=this.sampleCurveX(y),!(Math.abs(k-A)<h));w++)A>k?j=y:Z=y,y=.5*(Z-j)+j;return y},solve:function(A,h){return this.sampleCurveY(this.solveCurveX(A,h))}},R}(),W=f(N);let X,$;function re(){return X==null&&(X=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),X}function te(){if($==null&&($=!1,re())){const A=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(A){for(let y=0;y<5*5;y++){const w=4*y;A.fillStyle=`rgb(${w},${w+1},${w+2})`,A.fillRect(y%5,Math.floor(y/5),1,1)}const h=A.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&h[y]!==y){$=!0;break}}}return $||!1}var V=1e-6,ne=typeof Float32Array<"u"?Float32Array:Array;function G(){var d=new ne(9);return ne!=Float32Array&&(d[1]=0,d[2]=0,d[3]=0,d[5]=0,d[6]=0,d[7]=0),d[0]=1,d[4]=1,d[8]=1,d}function le(d){return d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1,d}function fe(){var d=new ne(3);return ne!=Float32Array&&(d[0]=0,d[1]=0,d[2]=0),d}function pe(d){return Math.hypot(d[0],d[1],d[2])}function we(d,A,h){var y=new neLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ge[1])} }\`.`)];const De=[];return d.layerType==="symbol"&&(j==="text-field"&&w&&!w.glyphs&&De.push(new on(h,F,'use of "text-field" requires a style "glyphs" property')),j==="text-font"&&Lc(Yu(F))&&bs(F.type)==="identity"&&De.push(new on(h,F,'"text-font" does not support identity functions'))),De.concat(y({key:d.key,value:F,valueSpec:ue,style:w,styleSpec:k,expressionContext:"property",propertyType:A,propertyKey:j}))}function Ro(d){return Xs(d,"paint")}function ai(d){return Xs(d,"layout")}function Bs(d){let A=[];const h=d.value,y=d.key,w=d.style,k=d.styleSpec;if(Zi(h)!=="object")return[new on(y,h,`object expected, ${Zi(h)} found`)];h.type||h.ref||A.push(new on(y,h,'either "type" or "ref" is required'));let F=bs(h.type);const j=bs(h.ref);if(h.id){const Z=bs(h.id);for(let ie=0;ie<d.arrayIndex;ie++){const ue=w.layers[ie];bs(ue.id)===Z&&A.push(new on(y,h.id,`duplicate layer id "${h.id}", previously used at line ${ue.id.__line__}`))}}if("ref"in h){let Z;["type","source","source-layer","filter","layout"].forEach(ie=>{ie in h&&A.push(new on(y,h[ie],`"${ie}" is prohibited for ref layers`))}),w.layers.forEach(ie=>{bs(ie.id)===j&&(Z=ie)}),Z?Z.ref?A.push(new on(y,h.ref,"ref cannot reference another ref layer")):F=bs(Z.type):A.push(new on(y,h.ref,`ref layer "${j}" not found`))}else if(F!=="background")if(h.source){const Z=w.sources&&w.sources[h.source],ie=Z&&bs(Z.type);Z?ie==="vector"&&F==="raster"?A.push(new on(y,h.source,`layer "${h.id}" requires a raster source`)):ie!=="raster-dem"&&F==="hillshade"?A.push(new on(y,h.source,`layer "${h.id}" requires a raster-dem source`)):ie==="raster"&&F!=="raster"?A.push(new on(y,h.source,`layer "${h.id}" requires a vector source`)):ie!=="vector"||h["source-layer"]?ie==="raster-dem"&&F!=="hillshade"?A.push(new on(y,h.source,"raster-dem source can only be used with layer type 'hillshade'.")):F!=="line"||!h.paint||!h.paint["line-gradient"]||ie==="geojson"&&Z.lineMetrics||A.push(new on(y,h,`layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new on(y,h,`layer "${h.id}" must specify a "source-layer"`)):A.push(new on(y,h.source,`source "${h.source}" not found`))}else A.push(new on(y,h,'missing required property "source"'));return A=A.concat(Qa({key:y,value:h,valueSpec:k.layer,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*":()=>[],type:()=>d.validateSpec({key:`${y}.type`,value:h.type,valueSpec:k.layer.type,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,object:h,objectKey:"type"}),filter:ot,layout:Z=>Qa({layer:h,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":ie=>ai(ti({layerType:F},ie))}}),paint:Z=>Qa({layer:h,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":ie=>Ro(ti({layerType:F},ie))}})}})),A}function js(d){const A=d.value,h=d.key,y=Zi(A);return y!=="string"?[new on(h,A,`string expected, ${y} found`)]:[]}const qu={promoteId:function({key:d,value:A}){if(Zi(A)==="string")return js({key:d,value:A});{const h=[];for(const y in A)h.push(...js({key:`${d}.${y}`,value:A[y]}));return h}}};function il(d){const A=d.value,h=d.key,y=d.styleSpec,w=d.style,k=d.validateSpec;if(!A.type)return[new on(h,A,'"type" is required')];const F=bs(A.type);let j;switch(F){case"vector":case"raster":return j=Qa({key:h,value:A,valueSpec:y[`source_${F.replace("-","_")}`],style:d.style,styleSpec:y,objectElementValidators:qu,validateSpec:k}),j;case"raster-dem":return j=function(Z){var ie;const ue=(ie=Z.sourceName)!==null&&ie!==void 0?ie:"",ge=Z.value,De=Z.styleSpec,Le=De.source_raster_dem,Qe=Z.style;let Je=[];const At=Zi(ge);if(ge===void 0)return Je;if(At!=="object")return Je.push(new on("source_raster_dem",ge,`object expected, ${At} found`)),Je;const _t=bs(ge.encoding)==="custom",Wt=["redFactor","greenFactor","blueFactor","baseShift"],It=Z.value.encoding?`"${Z.value.encoding}"`:"Default";for(const Fe in ge)!_t&&Wt.includes(Fe)?Je.push(new on(Fe,ge[Fe],`In "${ue}": "${Fe}" is only valid when "encoding" is set to "custom". ${It} encoding found`)):Le[Fe]?Je=Je.concat(Z.validateSpec({key:Fe,value:ge[Fe],valueSpec:Le[Fe],validateSpec:Z.validateSpec,style:Qe,styleSpec:De})):Je.push(new on(Fe,ge[Fe],`unknown property "${Fe}"`));return Je}({sourceName:h,value:A,style:d.style,styleSpec:y,validateSpec:k}),j;case"geojson":if(j=Qa({key:h,value:A,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:k,objectElementValidators:qu}),A.cluster)for(const Z in A.clusterProperties){const[ie,ue]=A.clusterProperties[Z],ge=typeof ie=="string"?[ie,["accumulated"],["get",Z]]:ie;j.push(...El({key:`${h}.${Z}.map`,value:ue,expressionContext:"cluster-map"})),j.push(...El({key:`${h}.${Z}.reduce`,value:ge,expressionContext:"cluster-reduce"}))}return j;case"video":return Qa({key:h,value:A,valuLine truncated
precision mediump float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
out highp vec4 fragColor;`,`#ifdef GL_ES
precision highp float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+ c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+ c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+ c
);}
#ifdef TERRAIN3D
uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;
#endif
const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
#ifdef TERRAIN3D
highp float d=unpack(texture(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
#else
return 1.0;
#endif
}float calculate_visibility(vec4 pos) {
#ifdef TERRAIN3D
vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
#else
return 1.0;
#endif
}float ele(vec2 pos) {
#ifdef TERRAIN3D
vec4 rgb=(texture(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
#else
return 0.0;
#endif
}float get_elevation(vec2 pos) {
#ifdef TERRAIN3D
#ifdef GLOBE
if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
#endif
vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
#else
return 0.0;
#endif
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:Oi("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:Oi("",`#define GLOBE_RADIUS 6371008.8
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);
if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:Oi(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:Oi(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:Oi(`in vec3 v_data;in float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define highp vec4 stroke_color
#pragma mapbox: define mediump float stroke_width
#pragma mapbox: define lowp float stroke_opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize mediump float radius
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize highp vec4 stroke_color
#pragma mapbox: initialize mediump float stroke_width
#pragma mapbox: initialize lowp float stroke_opacity
vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define highp vec4 stroke_color
#pragma mapbox: define mediump float stroke_width
#pragma mapbox: define lowp float stroke_opacity
void main(void) {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize mediump float radius
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize highp vec4 stroke_color
#pragma mapbox: initialize mediump float stroke_width
#pragma mapbox: initialize lowp float stroke_opacity
vec2 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
#ifdef GLOBE
vec3 center_vector=projectToSphere(circle_center);
#endif
float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
#ifdef GLOBE
vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
#else
vec4 projected_center=projectTileWithElevation(circle_center,ele);
#endif
corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
#ifdef GLOBE
vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:Oi(bi,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Oi(`uniform highp float u_intensity;in vec2 v_extrude;
#pragma mapbox: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
#pragma mapbox: initialize highp float weight
float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out vec2 v_extrude;
#pragma mapbox: define highp float weight
#pragma mapbox: define mediump float radius
const highp float ZERO=1.0/255.0/16.0;
#define GAUSS_COEF 0.3989422804014327
void main(void) {
#pragma mapbox: initialize highp float weight
#pragma mapbox: initialize mediump float radius
vec2 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=floor(pos_raw/8.0);
#ifdef GLOBE
vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:Oi(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(0.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:Oi("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:Oi("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:Oi("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:Oi(bi,`in vec2 a_pos;void main() {
#ifdef GLOBE
gl_Position=projectTileFor3D(a_pos,0.0);
#else
gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
#endif
}`),fill:Oi(`#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
fragColor=color*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_fill_translate;in vec2 a_pos;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:Oi(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 outline_color
#pragma mapbox: initialize lowp float opacity
float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 outline_color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:Oi(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:Oi(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:Oi(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
out vec4 v_color;
#pragma mapbox: define highp float base
#pragma mapbox: define highp float height
#pragma mapbox: define highp vec4 color
void main() {
#pragma mapbox: initialize highp float base
#pragma mapbox: initialize highp float height
#pragma mapbox: initialize highp vec4 color
vec3 normal=a_normal_ed.xyz;
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:Oi(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
#ifdef GLOBE
out vec3 v_sphere_pos;
#endif
out vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:Oi(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Oi(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
#define IGOR 2
#define MULTIDIRECTIONAL 3
#define BASIC 4
float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;switch(u_method){case BASIC:
basic_hillshade(deriv);break;case COMBINED:
combined_hillshade(deriv);break;case IGOR:
igor_hillshade(deriv);break;case MULTIDIRECTIONAL:
multidirectional_hillshade(deriv);break;case STANDARD:
default:
standard_hillshade(deriv);break;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:Oi(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),lineGradient:Oi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),linePattern:Oi(`#ifdef GL_ES
precision highp float;
#endif
uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:Oi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:Oi(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;
#ifdef GLOBE
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
#endif
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:Oi(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
lowp float alpha=opacity*v_fade_opacity;fragColor=texture(u_texture,v_tex)*alpha;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out float v_fade_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:Oi(`#define SDF_PX 8.0
uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_data0;out vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:Oi(`#define SDF_PX 8.0
#define SDF 1.0
#define ICON 0.0
uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;fragColor=texture(u_texture_icon,tex_icon)*alpha;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out vec4 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Oi("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Oi("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Oi("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:Oi("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:Oi(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Oi("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Oi(O,a){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,v=a.match(/in ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=a.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=I?I.concat(M):M,Y={};return{fragmentSource:O=O.replace(c,(ee,Ae,de,Oe,Be)=>(Y[Be]=!0,Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Be}
in ${de} ${Oe} ${Be};
#else
uniform ${de} ${Oe} u_${Be};
#endif
`:`
#ifdef HAS_UNIFORM_u_${Be}
${de} ${Oe} ${Be} = u_${Be};
#endif
`)),vertexSource:a=a.replace(c,(ee,Ae,de,Oe,Be)=>{const ze=Oe==="float"?"vec2":"vec4",He=Be.match(/color/)?"color":ze;return Y[Be]?Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Be}
uniform lowp float u_${Be}_t;
in ${de} ${ze} a_${Be};
out ${de} ${Oe} ${Be};
#else
uniform ${de} ${Oe} u_${Be};
#endif
`:He==="vec4"?`
#ifndef HAS_UNIFORM_u_${Be}
${Be} = a_${Be};
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Be}
${Be} = unpack_mix_${He}(a_${Be}, u_${Be}_t);
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`:Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Be}
uniform lowp float u_${Be}_t;
in ${de} ${ze} a_${Be};
#else
uniform ${de} ${Oe} u_${Be};
#endif
`:He==="vec4"?`
#ifndef HAS_UNIFORM_u_${Be}
${de} ${Oe} ${Be} = a_${Be};
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Be}
${de} ${Oe} ${Be} = unpack_mix_${He}(a_${Be}, u_${Be}_t);
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`}),staticAttributes:v,staticUniforms:z}}class xl{constructor(a,c,v){this.vertexBuffer=a,this.indexBuffer=c,this.segments=v}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Oo=o.aG([{name:"a_pos",type:"Int16",components:2}]);const Wl="#define PROJECTION_MERCATOR",Di="mercator";class oA{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Di}get shaderDefine(){return Wl}get shaderPreludeCode(){return Ao.projectionMercator}get vertexShaderPreludeCode(){return Ao.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aH.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(a){}getMeshFromTileID(a,c,v,M,I){if(this._cachedMesh)return this._cachedMesh;const z=new o.aI;z.emplaceBack(0,0),z.emplaceBack(o.Z,0),z.emplaceBack(0,o.Z),z.emplaceBack(o.Z,o.Z);const Y=a.createVertexBuffer(z,Oo.members),ee=o.aJ.simpleSegment(0,0,4,2),Ae=new o.aK;Ae.emplaceBack(1,0,2),Ae.emplaceBack(1,2,3);const de=a.createIndexBuffer(Ae);return this._cachedMesh=new xl(Y,de,ee),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}class sA{constructor(a=0,c=0,v=0,M=0){if(isNaN(a)||a<0||isNaN(c)||c<0||isNaN(v)||v<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=c,this.left=v,this.right=M}interpolate(a,c,v){return c.top!=null&&a.top!=null&&(this.top=o.B.number(a.top,c.top,v)),c.bottom!=null&&a.bottom!=null&&(this.bottom=o.B.number(a.bottom,c.bottom,v)),c.left!=null&&a.left!=null&&(this.left=o.B.number(a.left,c.left,v)),c.right!=null&&a.right!=null&&(this.right=o.B.number(a.right,c.right,v)),this}getCenter(a,c){const v=o.ae((this.left+a-this.right)/2,0,a),M=o.ae((this.top+c-this.bottom)/2,0,c);return new o.P(v,M)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new sA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function za(O,a){if(!O.renderWorldCopies||O.lngRange)return;const c=a.lng-O.center.lng;a.lng+=c>180?-360:c<-180?360:0}function Ni(O){return Math.max(0,Math.floor(O))}class uo{constructor(a,c,v,M,I,z){this._callbacks=a,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=c||0,this._maxZoom=v||22,this._minPitch=M??0,this._maxPitch=I??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.Q(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Ni(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new sA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(a,c,v){this._latRange=a.latRange,this._lngRange=a.lngRange,this._width=a.width,this._height=a.height,this._center=a.center,this._elevation=a.elevation,this._minElevationForCurrentTile=a.minElevationForCurrentTile,this._zoom=a.zoom,this._tileZoom=Ni(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=a.bearingInRadians,this._fovInRadians=a.fovInRadians,this._pitchInRadians=a.pitchInRadians,this._rollInRadians=a.rollInRadians,this._unmodified=a.unmodified,this._edgeInsets=new sA(a.padding.top,a.padding.bottom,a.padding.left,a.padding.right),this._minZoom=a.minZoom,this._maxZoom=a.maxZoom,this._minPitch=a.minPitch,this._maxPitch=a.maxPitch,this._renderWorldCopies=a.renderWorldCopies,this._cameraToCenterDistance=a.cameraToCenterDistance,this._nearZ=a.nearZ,this._farZ=a.farZ,this._autoCalculateNearFarZ=!v&&a.autoCalculateNearFarZ,c&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(a){this._minElevationForCurrentTile=a}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(a){this._minZoom!==a&&(this._minZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(a){this._maxZoom!==a&&(this._maxZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(a){this._minPitch!==a&&(this._minPitch=a,this.setPitch(Math.max(this.pitch,a)))}get maxPitch(){return this._maxPitch}setMax Line truncated
`),Kt=Mt.concat(Ao.prelude.vertexSource,Y.vertexSource,c.vertexSource).join(`
`);st(de)||(kt=function(en){return en.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(kt),Kt=function(en){return en.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Kt));const zt=de.createShader(de.FRAGMENT_SHADER);if(de.isContextLost())return void(this.failedToCreate=!0);if(de.shaderSource(zt,kt),de.compileShader(zt),!de.getShaderParameter(zt,de.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${de.getShaderInfoLog(zt)}`);de.attachShader(this.program,zt);const sn=de.createShader(de.VERTEX_SHADER);if(de.isContextLost())return void(this.failedToCreate=!0);if(de.shaderSource(sn,Kt),de.compileShader(sn),!de.getShaderParameter(sn,de.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${de.getShaderInfoLog(sn)}`);de.attachShader(this.program,sn),this.attributes={};const bn={};this.numAttributes=ze.length;for(let en=0;en<this.numAttributes;en++)ze[en]&&(de.bindAttribLocation(this.program,en,ze[en]),this.attributes[ze[en]]=en);if(de.linkProgram(this.program),!de.getProgramParameter(this.program,de.LINK_STATUS))throw new Error(`Program failed to link: ${de.getProgramInfoLog(this.program)}`);de.deleteShader(sn),de.deleteShader(zt);for(let en=0;en<Tt.length;en++){const ln=Tt[en];if(ln&&!bn[ln]){const Cn=de.getUniformLocation(this.program,ln);Cn&&(bn[ln]=Cn)}}this.fixedUniforms=M(a,bn),this.terrainUniforms=((en,ln)=>({u_depth:new o.bH(en,ln.u_depth),u_terrain:new o.bH(en,ln.u_terrain),u_terrain_dim:new o.b8(en,ln.u_terrain_dim),u_terrain_matrix:new o.bJ(en,ln.u_terrain_matrix),u_terrain_unpack:new o.bK(en,ln.u_terrain_unpack),u_terrain_exaggeration:new o.b8(en,ln.u_terrain_exaggeration)}))(a,bn),this.projectionUniforms=((en,ln)=>({u_projection_matrix:new o.bJ(en,ln.u_projection_matrix),u_projection_tile_mercator_coords:new o.bK(en,ln.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bK(en,ln.u_projection_clipping_plane),u_projection_transition:new o.b8(en,ln.u_projection_transition),u_projection_fallback_matrix:new o.bJ(en,ln.u_projection_fallback_matrix)}))(a,bn),this.binderUniforms=v?v.getUniforms(a,bn):[]}draw(a,c,v,M,I,z,Y,ee,Ae,de,Oe,Be,ze,He,ft,dt,pt,wt,Tt){const Mt=a.gl;if(this.failedToCreate)return;if(a.program.set(this.program),a.setDepthMode(v),a.setStencilMode(M),a.setColorMode(I),a.setCullFace(z),ee){a.activeTexture.set(Mt.TEXTURE2),Mt.bindTexture(Mt.TEXTURE_2D,ee.depthTexture),a.activeTexture.set(Mt.TEXTURE3),Mt.bindTexture(Mt.TEXTURE_2D,ee.texture);for(const Kt in this.terrainUniforms)this.terrainUniforms[Kt].set(ee[Kt])}if(Ae)for(const Kt in Ae)this.projectionUniforms[gd[Kt]].set(Ae[Kt]);if(Y)for(const Kt in this.fixedUniforms)this.fixedUniforms[Kt].set(Y[Kt]);dt&&dt.setUniforms(a,this.binderUniforms,He,{zoom:ft});let kt=0;switch(c){case Mt.LINES:kt=2;break;case Mt.TRIANGLES:kt=3;break;case Mt.LINE_STRIP:kt=1}for(const Kt of ze.get()){const zt=Kt.vaos||(Kt.vaos={});(zt[de]||(zt[de]=new qh)).bind(a,this,Oe,dt?dt.getPaintVertexBuffers():[],Be,Kt.vertexOffset,pt,wt,Tt),Mt.drawElements(c,Kt.primitiveLength*kt,Mt.UNSIGNED_SHORT,Kt.primitiveOffset*kt*2)}}}function Nu(O,a,c){const v=1/o.az(c,1,a.transform.tileZoom),M=Math.pow(2,c.tileID.overscaledZ),I=c.tileSize*Math.pow(2,a.transform.tileZoom)/M,z=I*(c.tileID.canonical.x+c.tileID.wrap*M),Y=I*c.tileID.canonical.y;return{u_image:0,u_texsize:c.imageAtlasTexture.size,u_scale:[v,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[z>>16,Y>>16],u_pixel_coord_lower:[65535&z,65535&Y]}}const Es=(O,a,c,v)=>{const M=O.style.light,I=M.properties.get("position"),z=[I.x,I.y,I.z],Y=o.bN();M.properties.get("anchor")==="viewport"&&o.bO(Y,O.transform.bearingInRadians),o.bP(z,z,Y);const ee=O.transform.transformLightDirection(z),Ae=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:ee,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[Ae.r,Ae.g,Ae.b],u_vertical_gradient:+a,u_opacity:c,u_fill_translate:v}},gu=(O,a,c,v,M,I,z)=>o.e(Es(O,a,c,v),Nu(I,O,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),uf=(O,a,c,v)=>o.e(Nu(a,O,c),{u_fill_translate:v}),nh=(O,a)=>({u_world:O,u_fill_translate:a}),_h=(O,a,c,v,M)=>o.e(uf(O,a,c,M),{u_world:v}),kc=(O,a,c,v,M)=>{const I=O.transform;let z,Y,ee=0;if(c.paint.get("circle-pitch-alignment")==="map"){const Ae=o.az(a,1,I.zoom);z=!0,Y=[Ae,Ae],ee=Ae/(o.Z*Math.pow(2,a.tileID.overscaledZ))*2*Math.PI*M}else z=!1,Y=I.pixelsToGLUnits;return{u_camera_to_center_distance:I.cameraToCenterDistance,u_scale_with_map:+(c.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:Y,u_globe_extrude_scale:ee,u_translate:v}},Rp=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Hh=O=>({u_viewport_size:[O.width,O.height]}),vd=(O,a=1)=>({u_color:O,u_overlay:0,u_overlay_scale:a}),Pc=(O,a,c,v)=>{const M=o.az(O,1,a)/(o.Z*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*v;return{u_extrude_scale:o.a Line truncated
uniform mat4 u_projection_matrix;
${ze.shaderPreludeCode.vertexSource}`,define:ze.shaderDefine},defaultProjectionData:ft},pt=Be.renderingMode?Be.renderingMode:"2d";if(z.renderPass==="offscreen"){const wt=Be.prerender;wt&&(z.setCustomLayerDefaults(),Oe.setColorMode(z.colorModeForRenderPass()),wt.call(Be,Oe.gl,dt),Oe.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Oe.setColorMode(z.colorModeForRenderPass()),Oe.setStencilMode(J.disabled);const wt=pt==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,Sr.ReadOnly);Oe.setDepthMode(wt),Be.render(Oe.gl,dt),Oe.setDirty(),z.setBaseState(),Oe.bindFramebuffer.set(null)}}(a,0,v,I))}saveTileTexture(a){const c=this._tileTextures[a.size[0]];c?c.push(a):this._tileTextures[a.size[0]]=[a]}getTileTexture(a){const c=this._tileTextures[a];return c&&c.length>0?c.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const c=this.imageManager.getPattern(a.from.toString()),v=this.imageManager.getPattern(a.to.toString());return!c||!v}useProgram(a,c,v=!1,M=[]){this.cache=this.cache||{};const I=!!this.style.map.terrain,z=this.style.projection,Y=v?Ao.projectionMercator:z.shaderPreludeCode,ee=v?Wl:z.shaderDefine,Ae=a+(c?c.cacheKey:"")+`/${v?Di:z.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(I?"/terrain":"")+(M?`/${M.join("/")}`:"");return this.cache[Ae]||(this.cache[Ae]=new yd(this.context,Ao[a],c,pl[a],this._showOverdrawInspector,I,Y,ee,M)),this.cache[Ae]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new le(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:a,drawingBufferHeight:c}=this.context.gl;return this.width!==a||this.height!==c}}function Ql(O,a){let c,v=!1,M=null,I=null;const z=()=>{M=null,v&&(O.apply(I,c),M=setTimeout(z,a),v=!1)};return(...Y)=>(v=!0,I=this,c=Y,M||z(),M)}class wu{constructor(a){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let v;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(v=M)}),(v&&v[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const v=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:v,pitch:+(c[4]||0)}),!0},this._updateHashUnthrottled=()=>{const c=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,c)},this._removeHash=()=>{const c=this._getCurrentHash();if(c.length===0)return;const v=c.join("/");let M=v;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${v}`);let I=window.location.hash.replace(M,"");I.startsWith("#&")?I=I.slice(0,1)+I.slice(2):I==="#"&&(I="");let z=window.location.href.replace(/(#.+)?$/,I);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=Ql(this._updateHashUnthrottled,300),this._hashName=a&&encodeURIComponent(a)}addTo(a){return this._map=a,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(a){const c=this._map.getCenter(),v=Math.round(100*this._map.getZoom())/100,M=Math.ceil((v*Math.LN2+Math.log(512/360/.5))/Math.LN10),I=Math.pow(10,M),z=Math.round(c.lng*I)/I,Y=Math.round(c.lat*I)/I,ee=this._map.getBearing(),Ae=this._map.getPitch();let de="";if(de+=a?`/${z}/${Y}/${v}`:`${v}/${Y}/${z}`,(ee||Ae)&&(de+="/"+Math.round(10*ee)/10),Ae&&(de+=`/${Math.round(Ae)}`),this._hashName){const Oe=this._hashName;let Be=!1;const ze=window.location.hash.slice(1).split("&").map(He=>{const ft=He.split("=")[0];return ft===Oe?(Be=!0,`${ft}=${de}`):He}).filter(He=>He);return Be||ze.push(`${Oe}=${de}`),`#${ze.join("&")}`}return`#${de}`}_isValidHash(a){if(a.length<3||a.some(isNaN))return!1;try{new o.Q(+a[2],+a[1])}catch{return!1}const c=+a[0],v=+(a[3]||0),M=+(a[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&v>=-180&&v<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const El={linearity:.3,easing:o.cd(0,0,.3,1 Line truncated
${e} <span></span>
`,Vs().s[12]++,this._textEl=this._container.querySelector("span"),Vs().s[13]++,this.updateZoomLevel()}addEventListeners(){Vs().f[4]++,Vs().s[14]++,this._map.on("render",()=>(Vs().f[5]++,Vs().s[15]++,this.updateZoomLevel())),Vs().s[16]++,this._map.on("zoomIn",()=>(Vs().f[6]++,Vs().s[17]++,this.updateZoomLevel())),Vs().s[18]++,this._map.on("zoomOut",()=>(Vs().f[7]++,Vs().s[19]++,this.updateZoomLevel()))}onRemove(){Vs().f[8]++,Vs().s[20]++,this._container.parentNode.removeChild(this._container),Vs().s[21]++,this._map=void 0}}function w6(n,e,t){const r={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function S6(n,e,t,r){const i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function E6(n,e,t){const r={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(r["source-layer"]=t),r}function lH(n,e){const t=[],r=[],i=[];function s(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const f=s(l);r.push(w6(f.circle,l)),i.push(E6(f.line,l)),t.push(S6(f.polygon,f.polygonOutline,l))}else o.forEach(f=>{const C=s(f);r.push(w6(C.circle,l,f)),i.push(E6(C.line,l,f)),t.push(S6(C.polygon,C.polygonOutline,l,f))})}),t.concat(i).concat(r)}function AH(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(s=>{const l=n.sources[s];(l.type==="vector"||l.type==="geojson")&&(i[s]=l)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const M4={polygonLayer:S6,lineLayer:E6,circleLayer:w6,generateInspectStyle:AH,generateColoredLayers:lH};function vo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=CH.language(this.options.language.split(",")[0]);return this.options.language&&Ev?.[e][t]?Ev[e][t]:Ev[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=cp({},{padding:100},this.options.flyTo),i=new this._maplibregl.LngLatBounds;for(const s of e)i.extend(s.geometry.coordinates);this._map.fitBounds(i,r)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const r=cp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=cp({},{},this.options.popup);i=new this._maplibregl.Popup(l).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let r=cp({},{color:"#4668F2"},this.options.showResultMarkers);for(const i of e){let s;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(s=this.options.showResultMarkers.element.cloneNode(!0),r=cp(r,{element:s}));const l=new this._maplibregl.Marker(cp({},r,{element:s}));let o;if(this.options.popup){const C=cp({},{},this.options.popup);o=new this._maplibregl.Popup(C).setHTML(this.options.popupRender(i))}i.center?(l.setLngLat(i.center).addTo(this._map),this.options.popup&&l.setPopup(o)):i.geometry&&i.geometry.type&&i.geometry.type==="Point"&&i.geometry.coordinates&&(l.setLngLat(i.geometry.coordinates).addTo(this._map),this.options.popup&&l.setPopup(o)),this.resultMarkers.push(l)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function Sn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="300acb3537cd75ba7433c8df32ce2e40c6bb2cf5",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:2},end:{line:21,column:36}},1:{start:{line:22,column:2},end:{line:22,column:19}},2:{start:{line:25,column:26},end:{line:31,column:3}},3:{start:{line:32,column:16},end:{line:32,column:55}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:30}},6:{start:{line:36,column:18},end:{line:36,column:20}},7:{start:{line:37,column:2},end:{line:4Line truncated
`).reduce((i,s)=>Math.max(i,UU(n,s)),0);return t[e]=r,r}function GJ(n,e){const t=[],r=[],i=[];let s=0,l=0,o=0,f=0;for(let C=0,x=e.length;C<=x;C+=2){const B=e[C];if(B===`
`||C===x){s=Math.max(s,l),i.push(l),l=0,o+=f,f=0;continue}const R=e[C+1]||n.font,P=UU(R,B);t.push(P),l+=P;const U=NJ(R);r.push(U),f=Math.max(f,U)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function jJ(n,e,t,r,i,s,l,o,f,C,x){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=B=>B.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(f,C),n.scale(x[0],x[1]),WJ(r,n)):x[0]<0||x[1]<0?(n.translate(f,C),n.scale(x[0],x[1]),n.drawImage(r,i,s,l,o,0,0,l,o)):n.drawImage(r,i,s,l,o,f,C,l*x[0],o*x[1]),n.restore()}function WJ(n,e){const t=n.contextInstructions;for(let r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}class Zx{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Ch(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Zx({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return _o()}getImage(e){return _o()}getHitDetectionImage(){return _o()}getPixelRatio(e){return 1}getImageState(){return _o()}getImageSize(){return _o()}getOrigin(){return _o()}getSize(){return _o()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=Ch(e)}listenImageChange(e){_o()}load(){_o()}unlistenImageChange(e){_o()}ready(){return Promise.resolve()}}class Xx extends Zx{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?gi.LOADING:gi.LOADED,this.imageState_===gi.LOADING&&this.ready().then(()=>this.imageState_=gi.LOADED),this.render()}clone(){const e=this.getScale(),t=new Xx({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=Nf.get(r,null,null)?.getImage(1);if(!i){const s=this.renderOptions_,l=Math.ceil(s.size*e),o=SA(l,l);this.draw_(s,o,e),i=o.canvas,Nf.set(r,null,null,new KU(i,void 0,null,gi.LOADED,null))}return i}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,s=this.radius2_===void 0?i:this.radius2_;if(i<s){const ne=i;i=s,s=ne}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,f=s*Math.sin(o),C=Math.sqrt(s*s-f*f),x=i-C,B=Math.sqrt(f*f+x*x),R=B/f;if(e==="miter"&&R<=r)return R*t;const P=t/2/R,U=t/2*(x/B),W=Math.sqrt((i+P)*(i+P)+U*U)-i;if(this.radius2_===void 0||e==="bevel")return W*2;const X=i*Math.sin(o),$=Math.sqrt(i*i-X*X),re=s-$,V=Math.sqrt(X*X+re*re)/X;if(V<=r){const ne=V*t/2-s-i;return 2*Math.max(W,ne)}return W*2}createRenderOptions(){let e=Ky,t=Fy,r=0,i=null,s=0,l,o=0;this.stroke_&&(l=om(this.stroke_.getColor()??UC),o=this Line truncated
`,""),n.push(e,""),n}function Fee(n,e,t){return t%2===0&&(n+=e),n}class Lee{constructor(e,t,r,i,s){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=pd(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=s?new DO:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const s=e+t+r+i;if(this.labels_[s])return this.labels_[s];const l=i?this.strokeStates[i]:null,o=r?this.fillStates[r]:null,f=this.textStates[t],C=this.pixelRatio,x=[f.scale[0]*C,f.scale[1]*C],B=f.justify?$2[f.justify]:eM(Array.isArray(e)?e[0]:e,f.textAlign||zC),R=i&&l.lineWidth?l.lineWidth:0,P=Array.isArray(e)?e:String(e).split(`
`).reduce(Kee,[]),{width:U,height:N,widths:W,heights:X,lineWidths:$}=GJ(f,P),re=U+R,te=[],V=(re+2)*x[0],ne=(N+R)*x[1],G={width:V<0?Math.floor(V):Math.ceil(V),height:ne<0?Math.floor(ne):Math.ceil(ne),contextInstructions:te};(x[0]!=1||x[1]!=1)&&te.push("scale",x),i&&(te.push("strokeStyle",l.strokeStyle),te.push("lineWidth",R),te.push("lineCap",l.lineCap),te.push("lineJoin",l.lineJoin),te.push("miterLimit",l.miterLimit),te.push("setLineDash",[l.lineDash]),te.push("lineDashOffset",l.lineDashOffset)),r&&te.push("fillStyle",o.fillStyle),te.push("textBaseline","middle"),te.push("textAlign","center");const le=.5-B;let fe=B*re+le*R;const pe=[],we=[];let Se=0,xe=0,je=0,Me=0,rt;for(let Ct=0,it=P.length;Ct<it;Ct+=2){const nt=P[Ct];if(nt===`
`){xe+=Se,Se=0,fe=B*re+le*R,++Me;continue}const Ge=P[Ct+1]||f.font;Ge!==rt&&(i&&pe.push("font",Ge),r&&we.push("font",Ge),rt=Ge),Se=Math.max(Se,X[je]);const Ie=[nt,fe+le*W[je]+B*(W[je]-$[Me]),.5*(R+Se)+xe];fe+=W[je],i&&pe.push("strokeText",Ie),r&&we.push("fillText",Ie),++je}return Array.prototype.push.apply(te,pe),Array.prototype.push.apply(te,we),this.labels_[s]=G,G}replayTextBackground_(e,t,r,i,s,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,s,l,o,f,C,x,B,R,P,U,N,W){o*=R[0],f*=R[1];let X=r-o,$=i-f;const re=s+C>e?e-C:s,te=l+x>t?t-x:l,V=U[3]+re*R[0]+U[1],ne=U[0]+te*R[1]+U[2],G=X-U[3],le=$-U[0];(N||B!==0)&&(b0[0]=G,x0[0]=G,b0[1]=le,Pm[1]=le,Pm[0]=G+V,Rm[0]=Pm[0],Rm[1]=le+ne,x0[1]=Rm[1]);let fe;return B!==0?(fe=hm(pd(),r,i,1,1,B,-r,-i),Fu(fe,b0),Fu(fe,Pm),Fu(fe,Rm),Fu(fe,x0),Qm(Math.min(b0[0],Pm[0],Rm[0],x0[0]),Math.min(b0[1],Pm[1],Rm[1],x0[1]),Math.max(b0[0],Pm[0],Rm[0],x0[0]),Math.max(b0[1],Pm[1],Rm[1],x0[1]),Pg)):Qm(Math.min(G,G+V),Math.min(le,le+ne),Math.max(G,G+V),Math.max(le,le+ne),Pg),P&&(X=Math.round(X),$=Math.round($)),{drawImageX:X,drawImageY:$,drawImageW:re,drawImageH:te,originX:C,originY:x,declutterBox:{minX:Pg[0],minY:Pg[1],maxX:Pg[2],maxY:Pg[3],value:W},canvasTransform:fe,scale:R}}replayImageOrLabel_(e,t,r,i,s,l,o){const f=!!(l||o),C=i.declutterBox,x=o?o[2]*i.scale[0]/2:0;return C.minX-x<=t[0]&&C.maxX+x>=0&&C.minY-x<=t[1]&&C.maxY+x>=0&&(f&&this.replayTextBackground_(e,b0,Pm,Rm,x0,l,o),jJ(e,i.canvasTransform,s,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=Fu(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,r,i){const s=this.textStates[t],l=this.createLabel(e,t,i,r),o=this.strokeStates[r],f=this.pixelRatio,C=eM(Array.isArray(e)?e[0]:e,s.textAlign||zC),x=$2[s.textBaseline||N2],B=o&&o.lineWidth?o.lineWidth:0,R=l.width/f-2*s.scale[0],P=C*R+2*(.5-C)*B,U=x*l.height/f+2*(.5-x)*B;return{label:l,anchorX:P,anchorY:U}}execute_(e,t,r,i,s,l,o,f){const C=this.zIndexContext_;let x;this.pixelCoordinates_&&H0(r,this.renderedTransform_)?x=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),x=Q0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),NZ(this.renderedTransform_,r));let B=0;const R=i.length;let P=0,U,N,W,X,$,re,te,V,ne,G,le,fe,pe,we=0,Se=0;const xe=this.coordinateCache_,je=this.viewRotation_,Me=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,rt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:je},Ct=this.instructions!=i||this.overlaps?0:200;let it,nt,Ge,Ie;for(;B<R;){const $e=i[B];switch($e[0]){case Vi.BEGIN_GEOMETRY:it=$e[1],Ie=$e[3],it.getGeometry()?o!==void 0&&!XA(o,Ie.getExtent())?B=$e[2]+1:++B:B=$e[2],C&&(C.zIndex=$e[4]);break;case Vi.BEGIN_PATH:we>Ct&&(this.fill_(e),we=0),Se>Ct&&(e.stroke(),Se=0),!we&&!Se&&(e.beginPath(),$=NaN,re=NaN),++B;break;case Vi.CIRCLE:P=$e[1];const Dt=x[P],ut=x[P+1],Rt=x[P+2],St=x[P+3],Ke=Rt-Dt,Pe=St-ut,Re=Math.sqrt(Ke*Ke+Pe*Pe);e.moveTo(Dt+Re,ut),e.arc(Dt,ut,Re,0,2*Math.PI,!0),++B;break;case Vi.CLOSE_PATH:e.closePath(),++B;break;case Vi.CUSTOM:P=$e[1],U=$e[2];const Ye=$e[3],vt=$e[4],yt=$e[5];rt.geometry=Ye,rt.feature=it,B in xe||(xe[B]=[]);const Et=xe[B];yt?yt(x,P,U,2,Et):(Et[0]=x[P],Et[1]=x[P+1],Et.length=2),C&&(C.zIndex=$e[6]),vt(Et,rt),++B;break;case Vi.DRAW_IMAGE:P=$e[1],U=$e[2],ne=$e[3],N=$e[4],W=$e[5];let Zt=$e[6];const Ut=$e[7],An=$e[8],hr=$e[9],Vt=$e[10];let Vn=$e[11];const Pn=$e[12];let Dn=$e[13];X=$e[14]||"declutter";const Ln=$e[15];if(!ne&&$e.length>=20){G=$e[19],le=$e[20],fe=$e[21],pe=$e[22];const jt=this.drawLabelWithPointPlacement_(G,le,fe,pe);ne=jt.label,$e[3]=ne;const Gt=$e[23];N=(jt.anchorX-Gt)*this.pixelRatio,$e[4]=N;const nn=$e[24];W=(jt.anchorY-nn)*this.pixelRatio,$e[5]=W,Zt=ne.height,$e[6]=Zt,Dn=ne.width,$e[13]=Dn}let Ir;$e.length>25&&(Ir=$e[25]);let rr,Yn,We;$e.length>17?(rr=$e[16],Yn=$e[17],We=$e[18]):(rr=R1,Yn=null,We=null),Vt&&Me?Vn+=je:!Vt&&!Me&&(Vn-=je);let he=0;for(;P<U;P+=2){if(Ir&&Ir[he++]<Dn/this.pixelRatio)continue;const jt=this.calculateImageOrLabelDimensions_(ne.width,ne.height,x[P],x[P+1],Dn,Zt,N,W,An,hr,Vn,Pn,s,rr,!!Yn||!!We,it),Gt=[e,t,ne,jt,Ut,Yn,We];if(f){let nn,On,Rn;if(Ln){const or=U-P;if(!Ln[or]){Ln[or]={args:Gt,declutterMode:X};continue}const on=Ln[or];nn=on.args,On=on.declutterMode,delete Ln[or],Rn=M9(nn)}let dr,Tr;if(nn&&(On!=="declutter"||!f.collides(Rn))&&(dr=!0),(X!=="declutter"||!f.collides(jt.declutterBox))&&(Tr=!0),On==="declutter"&&X==="declutter"){co Line truncated
`),i=tte.slice(0,Math.round(e/.1));for(let s=0,l=r.length;s<l;++s)s>0&&(t+=`
`),t+=r[s].split("").join(i);return t}return n}let rM;function cz(){return rM||(rM=i3(1,1).getContext("2d")),rM}function y1(n,e){return cz().measureText(n).width+(n.length-1)*e}const Z2={};E1.on("propertychange",()=>{for(const n in Z2)delete Z2[n]});function Z6(n,e,t,r){if(n.indexOf(`
`)!==-1){const l=n.split(`
`),o=[];for(let f=0,C=l.length;f<C;++f)o.push(Z6(l[f],e,t,r));return o.join(`
`)}const i=t+","+e+","+n+","+r;let s=Z2[i];if(!s){const l=n.split(" ");if(l.length>1){const o=cz();o.font=e;const C=o.measureText("M").width*t;let x="";const B=[];for(let R=0,P=l.length;R<P;++R){const U=l[R],N=x+(x?" ":"")+U;y1(N,r)<=C?x=N:(x&&B.push(x),x=U)}x&&B.push(x);for(let R=0,P=B.length;R<P&&P>1;++R){const U=B[R];if(y1(U,r)<C*.35){const N=R>0?y1(B[R-1],r):1/0,W=R<P-1?y1(B[R+1],r):1/0;B.splice(R,1),P-=1,N<W?(B[R-1]+=" "+U,R-=1):B[R]=U+" "+B[R]}}for(let R=0,P=B.length-1;R<P;++R){const U=B[R],N=B[R+1];if(y1(U,r)>C*.7&&y1(N,r)<C*.6){const W=U.split(" "),X=W.pop();y1(X,r)<C*.2&&(B[R]=W.join(" "),B[R+1]=X+" "+N),P-=1}}s=B.join(`
`)}else s=n;s=H6(s,r),Z2[i]=s}return s}const nte=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],R9={};function rte(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let r=0,i=n.length;r<i;++r){const s=n[r];if(s in R9)continue;R9[s]=!0;const o=B6(s,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let r=0,i=t.length;r<i;++r){const s=t[r],l=s[0];if(nte.includes(l))continue;const o=s[1],f=s[2];if(!(await document.fonts.load(`${f} ${o} 16px "${l}"`)).some(x=>x.family.replace(/^['"]|['"]$/g,"").toLowerCase()===l.toLowerCase()&&x.weight==o&&x.style===f)){const x=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",f.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",f);if(!document.querySelector('link[href="'+x+'"]')){const B=document.createElement("link");B.href=x,B.rel="stylesheet",document.head.appendChild(B)}}}})(),n}const ite={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ote={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},ste=function(n,e){const t=Tx(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},sf={zoom:0,distanceFromCenter:0};rf.register(Ex,{...rf.definitions,pitch:[{kind:"number"},[],n=>sf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>sf.distanceFromCenter||0]});let Ob,iM;function Si(n,e,t,r,i,s){const l=n.id;i||(i={},console.warn("No functionCache provided to getValue()")),i[l]||(i[l]={});const o=i[l];if(!o[t]){let f=(n[e]||vp)[t];const C=z$[`${e}_${n.type}`][t];f===void 0&&(f=C.default);let x=Yy(f);if(!x&&Qy(f)&&(f=NB(f,C),x=!0),x){const B=ste(f,C);o[t]=B.evaluate.bind(B)}else C.type=="color"&&(f=Fa.parse(f)),o[t]=function(){return f}}return o[t](sf,r,s)}function D9(n,e,t,r){return Si(n,"layout",`${t}-allow-overlap`,e,r)?Si(n,"layout",`${t}-ignore-placement`,e,r)?"none":"obstacle":"declutter"}function ate(n,e,t,r){if(r||console.warn("No filterCache provided to evaluateFilter()"),!(n in r))try{r[n]=a$(e).filter}catch(i){console.warn("Filter will evaluate to false: "+i.message),r[n]=function(){return!1}}return r[n](sf,t)}function E0(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const lte=/\{[^{}}]*\}/g;function oM(n,e){return n.replace(lte,function(t){return e[t.slice(1,-1)]||""})}function K9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const Ate={};function ute(n,e,t,r=cm,i=void 0,s=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");Ate[Xee(e,n)]=Array.from(arguments);const f={};(typeof s=="string"||s instanceof Request||s instanceof Response||s instanceof Promise)&&(s={default:s});for(const V in s){const ne=s[V];Py(()=>ne).then(async G=>{let le;if(typeof Image<"u"){const fe=new Image;if(typeof G=="string")fe.crossOrigin="anonymous",fe.src=G;else{let pe;G instanceof Request?pe=await fetch(G):G instanceof Response&&(pe=G);const we=await pe.blob();le=URL.createObjectURL(we),fe.src=le}fe.addEventListener("load",function pe(){fe.removeEventListener("load",pe),f[V]={image:fe,size:[fe.width,fe.height]},n.changed(),le&&URL.revokeObjectURL(le)}),fe.addEventListener("error",function pe(){URL.revokeObjectURL(le),fe.removeEventListener("error",pe)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const fe=self;fe.postMessage({action:"loadImage",src:G}),fe.addEventListener("message",function(we){we.data.action==="imageLoaded"&&we.data.src===G&&(f[V]={image:we.data.image,size:[we.data.image.width,we.data.image.height]})})}})}const C=bB(e.layers),x={},B=[],R={},P={},U=lz(e),N=Jee(e);let W;for(let V=0,ne=C.length;V<ne;++V){const G=C[V],le=G.id;if(typeof t=="string"&&G.source==t||Array.isArray(t)&&t.indexOf(le)!==-1){const fe=G["source-layer"];if(W){if(G.source!==W)throw new Error(`Layer "${le}" does not use source "${W}`)}else{W=G.source;const we=e.sources[W];if(!we)throw new Error(`Source "${W}" is not defined`);const Se=we.type;if(Se!=="vector"&&Se!=="geojson")throw new Error(`Source "${W}" is not of type "vector" or "geojson", but "${Se}"`)}let pe=x[fe];pe||(pe=[],x[fe]=pe),pe.push({layer:G,index:V}),B.push(le)}}const X=new D0,$=new zm,re=[],te=function(V,ne,G){const le=n.getSource?.()?.format_?.layerName_??"mvt:layer",fe=V.getProperties(),pe=x[fe[le]];if(!pe)return;let we=r.indexOf(ne);we==-1&&(we=NO(ne,r)),sf.zoom=we,sf.distanceFromCenter=0;const Se=V.getGeometry(),xe=ite[Se.getType()],je=n.get("map");if(je&&je instanceof n3&&xe===1){const it=je.gLine truncated
`)return We.push(`
`,""),We;if(xe==2)return We.push(H6(Yt,Ln),bt),We;Yt=Z6(Yt,bt,Ir,Ln).split(`
`);for(let Jt=0,ir=Yt.length;Jt<ir;++Jt)Jt>0&&We.push(`
`,""),We.push(Yt[Jt],bt);return We},[]):Vt=oM(Yn,fe).trim(),St=Si(Ie,"paint","text-opacity",Me,U,rt)}if(Vt&&St&&!hr){yt||(++Ct,Ye=re[Ct],(!Ye||!Ye.getText()||Ye.getFill()||Ye.getStroke())&&(Ye=new Jd,re[Ct]=Ye),Ye.setImage(void 0),Ye.setGeometry(void 0));const rr=D9(Ie,Me,"text",U);Ye.getText()||Ye.setText(Et),Et=Ye.getText(),(!Et||"getDeclutterMode"in Et&&Et.getDeclutterMode()!==rr)&&(Et=new Jx({padding:[2,2,2,2],declutterMode:rr}),Ye.setText(Et));const Yn=Si(Ie,"layout","text-transform",Me,U,rt);Yn=="uppercase"?Vt=Array.isArray(Vt)?Vt.map((Te,lt)=>lt%2?Te:Te.toUpperCase()):Vt.toUpperCase():Yn=="lowercase"&&(Vt=Array.isArray(Vt)?Vt.map((Te,lt)=>lt%2?Te:Te.toLowerCase()):Vt.toLowerCase());const We=Array.isArray(Vt)?Vt:xe==2?H6(Vt,Ln):Z6(Vt,Vn,Ir,Ln);if(Et.setText(We),Et.setFont(Vn),Et.setRotation(nM(Si(Ie,"layout","text-rotate",Me,U,rt))),typeof Et.setKeepUpright=="function"){const Te=Si(Ie,"layout","text-keep-upright",Me,U,rt);Et.setKeepUpright(Te)}const he=Si(Ie,"layout","text-anchor",Me,U,rt),me=yt||xe==1?"point":Si(Ie,"layout","symbol-placement",Me,U,rt);let et;if(me==="line-center"?(Et.setPlacement("line"),et="center"):Et.setPlacement(me),me==="line"&&typeof Et.setRepeat=="function"){const Te=Si(Ie,"layout","symbol-spacing",Me,U,rt);Et.setRepeat(Te*2)}Et.setOverflow(me==="point");let bt=Si(Ie,"paint","text-halo-width",Me,U,rt);const Yt=Si(Ie,"layout","text-offset",Me,U,rt),Jt=Si(Ie,"paint","text-translate",Me,U,rt);let ir=0,Xe=0;if(me=="point"){et="center",he.indexOf("left")!==-1?(et="left",Xe=bt):he.indexOf("right")!==-1&&(et="right",Xe=-bt);const Te=Si(Ie,"layout","text-rotation-alignment",Me,U,rt);Et.setRotateWithView(Te=="map")}else Et.setMaxAngle(nM(Si(Ie,"layout","text-max-angle",Me,U,rt))*Vt.length/We.length),Et.setRotateWithView(!1);Et.setTextAlign(et);let ae="middle";he.indexOf("bottom")==0?(ae="bottom",ir=-bt-.5*(Pn-1)*Dn):he.indexOf("top")==0&&(ae="top",ir=bt+.5*(Pn-1)*Dn),Et.setTextBaseline(ae);const ve=Si(Ie,"layout","text-justify",Me,U,rt);Et.setJustify(ve==="auto"?void 0:ve),Et.setOffsetX(Yt[0]*Dn+Xe+Jt[0]),Et.setOffsetY(Yt[1]*Dn+ir+Jt[1]),$.setColor(E0(Si(Ie,"paint","text-color",Me,U,rt),St)),Et.setFill($);const p=E0(Si(Ie,"paint","text-halo-color",Me,U,rt),St);if(p&&bt>0){X.setColor(p),bt*=2;const Te=.5*Dn;X.setWidth(bt<=Te?bt:Te),Et.setStroke(X)}else Et.setStroke(void 0);const Ne=Si(Ie,"layout","text-padding",Me,U,rt),Ve=Et.getPadding();Ne!==Ve[0]&&(Ve[0]=Ne,Ve[1]=Ne,Ve[2]=Ne,Ve[3]=Ne),Ye.setZIndex(vt)}}}if(Ct>-1)return re.length=Ct+1,re};return n.setStyle(te),n.set("mapbox-layers",B),n.set("mapbox-source",W),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),te}class hz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=r3,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?Ma(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=Ma(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return _o()}readFeature(e,t){return _o()}readFeatures(e,t){return _o()}readGeometry(e,t){return _o()}readProjection(e){return _o()}writeFeature(e,t){return _o()}writeFeatures(e,t){return _o()}writeGeometry(e,t){return _o()}}function o3(n,e,t){const r=t?Ma(t.featureProjection):null,i=t?Ma(t.dataProjection):null;let s=n;if(r&&i&&!W0(r,i)){e&&(s=n.clone());const l=e?r:i,o=e?i:r;l.getUnits()==="tile-pixels"?s.transform(l,o):s.applyTransform(DC(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(f){for(let C=0,x=f.length;C<x;++C)f[C]=Math.round(f[C]*l)/l;return f};s===n&&(s=n.clone()),s.applyTransform(o)}return s}const cte={Point:H1,LineString:X1,Polygon:qm,MultiPoint:S_,MultiLineString:WC,MultiPolygon:QC};function hte(n,e,t){return Array.isArray(e[0])?(_U(n,0,e,t)||(n=n.slice(),N6(n,0,e,t)),n):(mO(n,0,e,t)||(n=n.slice(),U2(n,0,e,t)),n)}function dz(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(s=>dz({...n,geometry:s})).flat();const r=t.type==="MultiPolygon"?"Polygon":t.type;if(r==="GeometryCollection"||r==="Circle")throw new Error("Unsupported geometry type: "+r);const i=t.layout.length;return o3(new vh(r,r==="Polygon"?hte(t.flatCoordinates,t.ends,i):t.flatCoordinates,t.ends?.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function GO(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>GO(i,e));return new Y2(r)}const t=cte[n.type];return o3(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class dte extends hz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Ib(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Ib(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return _o()}readFeaturesFromObject(e,t){ Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function _ne(n,e){const t=Sz(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class bne extends f_{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=Cne(e,this.onWorkerMessage_.bind(this,i));else r[0]=_ne(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,r=e.inputs[0].height,i=e.inputs.map(function(f){return f.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/s);for(let f=0;f<s;++f){const C=f*o,x=[];for(let B=0,R=i.length;B<R;++B)x.push(i[B].slice(C,C+o));this.workers_[f].postMessage({buffers:x,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},x)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const s=e.inputs[0].data.length;r=new Uint8ClampedArray(s),i=new Array(t);const l=4*Math.ceil(s/4/t);for(let o=0;o<t;++o){const f=this.dataLookup_[o].buffer,C=o*l;r.set(new Uint8ClampedArray(f),C),i[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const Y9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class q9 extends Op{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class Ez extends bz{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=wne(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(go.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new YL(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:pd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Mne(this.layers_),pixelRatio:1,pixelToCoordinateTransform:pd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:ko(this),renderTargets:{}},this.setAttributions(function(r){const i=[];for(let s=0,l=e.sources.length;s<l;++s){const o=e.sources[s],f=o instanceof Xy?o:o.getSource();if(!f)continue;const C=f.getAttributions()?.(r);typeof C=="string"?i.push(C):C!==void 0&&i.push(...C)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new bne({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const s=af(e);i.size[0]=Math.ceil(Ls(e)/t),i.size[1]=Math.ceil(Uu(e)/t),i.extent=[s[0]-i.size[0]*t/2,s[1]-i.size[1]*t/2,s[0]+i.size[0]*t/2,s[1]+i.size[1]*t/2],i.time=Date.now();const l=i.viewState;return l.center=s,l.projection=r,l.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const s=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!Ym(s.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_,t=th Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Bz(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Kne extends l3{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Fne,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:oz,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!W0(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||W0(t,e)))return this.tileGrid;const r=ko(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=xz(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,l){const o=[e,t,r],f=this.getTileCoordForTileUrlFunction(o,s),C=f?this.tileUrlFunction(f,i,s):void 0,x=new this.tileClass(o,C!==void 0?Ur.IDLE:Ur.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return x.key=l,x.addEventListener(go.CHANGE,this.handleTileChange.bind(this)),x}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||W0(l,s))return this.getTileInternal(e,t,r,i,l||s);const o=[e,t,r],f=this.getKey(),C=this.getTileGridForProjection(l),x=this.getTileGridForProjection(s),B=this.getTileCoordForTileUrlFunction(o,s),R=new vz(l,C,s,x,o,B,this.getTilePixelRatio(i),this.getGutter(),(P,U,N,W)=>this.getTileInternal(P,U,N,W,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return R.key=f,R}getTileInternal(e,t,r,i,s){const l=this.getKey();return this.createTile_(e,t,r,i,s,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Ma(e);if(r){const i=ko(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Fne(n,e){n.getImage().src=e}class Oz extends Kne{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ma("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)Ene(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ma("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const C=v_(t,r);i=nZ(e.bounds,C)}const s=a3(r),l=e.minzoom||0,o=e.maxzoom||22,f=WO({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=Bz(e.tiles,f),e.attribution&&!this.getAttributions()){const C=i!==void 0?i:s;this.setAttributions(function(x){return XA(C,x.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class QO extends l3{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||a3(t),i=e.tileGrid||WO({extent:r,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:i,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Iz,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:sz,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===Ur.IDLE){r.setState(Ur.LOADING);const i=r.wr Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var Z9;function tre(){return Z9||(Z9=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var o in s)e.call(s,o)&&s[o]&&(l=i(l,o));return l}function i(s,l){return l?s?s+" "+l:s+l:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(dM)),dM.exports}var nre=tre();const dm=Gl(nre);function O1(){var n="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",e="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",statementMap:{0:{start:{line:6,column:22},end:{line:10,column:5}},1:{start:{line:11,column:4},end:{line:11,column:154}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:12,column:3}},line:5}},branchMap:{0:{loc:{start:{line:11,column:11},end:{line:11,column:153}},type:"cond-expr",locations:[{start:{line:11,column:52},end:{line:11,column:92}},{start:{line:11,column:111},end:{line:11,column:153}}],line:11}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx"],names:[],mappings:"AAeoC;AAfpC,OAAO,WAAW;AAClB,SAAQ,iBAAiB,qBAAoB;AAO7C,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,GAAG,KAAK,MAAM;AAAA,IAChB;AACA,WAAO,KAAK,MAAM,cAAc,oBAAC,iBAAc,OAAO,WAAU,IAAK,oBAAC,mBAAgB,OAAO,WAAW;AAAA,EAC1G;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e73e8fb606fcd7318a8222b2e50c576ed3ad8702"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return O1=function(){return l},l}O1();class rre extends ur.Component{render(){O1().f[0]++;const e=(O1().s[0]++,{width:20,height:20,...this.props.style});return O1().s[1]++,this.props.isCollapsed?(O1().b[0][0]++,oe.jsx(zV,{style:e})):(O1().b[0][1]++,oe.jsx(UV,{style:e}))}}function dy(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return dy=function(){return l},l}dy();class ire extends ur.Component{render(){return dy().f[0]++,dy().s[0]++,oe.jsx("li",{className:"maputnik-layer-list-group",children:oe.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(dy().f[1]++,dy().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[oe.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),oe.jsx("span",{className:"maputnik-space"}),oe.jsx(rre,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function bl(){return bl=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},bl.apply(null,arguments)}function ore(n){if(Array.isArray(n))return n}function sre(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,l,o=[],f=!0,C=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(f=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);f=!Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uz(n,e){return ore(n)||sre(n,e)||Lz(n,e)||are()}function Uy(n){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uy(n)}function lre(n,e){if(Uy(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Uy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function zz(n){var e=lre(n,"string");return Uy(e)=="symbol"?e:e+""}function Ka(n,e,t){return(e=zz(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function fM(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Ka(n,i,t[i])})}return n}function O_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Are(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,zz(r.key),r)}}function I_(n,e,t){return e&&Are(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ls(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function YO(n,e){if(e&&(Uy(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ls(n)}function YC(n){return YC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YC(n)}function iB(n,e){return iB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},iB(n,e)}function qO(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&iB(n,e)}var pM,X9;function ure(){if(X9)return pM;X9=1;var n=function(e,t,r,i,s,l,o,f){if(!e){var C;if(t===void 0)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[r,i,s,l,o,f],B=0;C=new Error(t.replace(/%s/g,function(){return x[B++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}};return pM=n,pM}var cre=ure();const J1=Gl(cre);function hre(n){if(Array.isArray(n))return rB(n)}function dre(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function fre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pre(n){return hre(n)||dre(n)||Lz(n)||fre()}var mre=function(){function n(){O_(this,n),Ka(this,"refs",{})}return I_(n,[{key:"add",value:function(t,r){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(r)}},{key:"remove",value:function(t,r){var i=this.getIndex(t,r);i!==-1&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,r){return this.refs[t].indexOf(r)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(gre)}}]),n}();function gre(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function Nz(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var Lg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Gz=function(){if(typeof window>"u"||typeof document>"u")return"";var n=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)||n.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function Rb(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function Db(n,e){n.style["".concat(Gz,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function mM(n,e){n.style["".concat(Gz,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Zv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function J9(n,e,t){return Math.max(n,Math.min(t,e))}function fy(n){return n.substr(-2)==="px"?parseFloat(n):0}function yre(n){var e=window.getComputedStyle(n);return{bottom:fy(e.marginBottom),left:fy(e.marginLeft),right:fy(e.marginRight),top:fy(e.marginTop)}}function $O(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function gM(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function Dv(n){return n.touches&&n.touches.length?{x:n.touches[0].pageX,y:n.touches[0].pageY}:n.changedTouches&&n.changedTouches.length?{x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY}:{x:n.pageX,y:n.pageY}}function vre(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function o2(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(n){var r={left:t.left+n.offsetLeft,top:t.top+n.offsetTop};return n.parentNode===e?r:o2(n.parentNode,e,r)}}function Cre(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function eT(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,s=e,l="px";if(typeof e=="string"){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);J1(o!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),s=parseFloat(e),l=o[1]}return J1(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",e),l==="%"&&(i=i*t/100,s=s*r/100),{x:i,y:s}}function _re(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];J1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=Uz(i,2),l=s[0],o=s[1];return[eT({height:e,lockOffset:l,width:t}),eT({height:e,lockOffset:o,width:t})]}function bre(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function jz(n){return n instanceof HTMLElement?bre(n)?n:jz(n.parentNode):null}function xre(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:fy(e.gridColumnGap),y:fy(e.gridRowGap)}:{x:0,y:0}}var C1={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},I1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Mre(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=pre(r.querySelectorAll(e));return i.forEach(function(s,l){if(s.type!=="file"&&(s.value=t[l].value),s.type==="radio"&&s.name&&(s.name="__sortableClone__".concat(s.name)),s.tagName===I1.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function wre(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){qO(s,i);function s(){var l,o;O_(this,s);for(var f=arguments.length,C=new Array(f),x=0;x<f;x++)C[x]=arguments[x];return o=YO(this,(l=YC(s)).call.apply(l,[this].concat(C))),Ka(ls(ls(o)),"wrappedInstance",nr.createRef()),o}return I_(s,[{key:"componentDidMount",value:function(){var o=Dx.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return J1(r.withRef,"T Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var $z=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ex=$z.join(","),Vz=typeof Element>"u",eg=Vz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tx=!Vz&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},nx=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=i===""||i==="true",l=s||t&&e&&n(e.parentNode);return l},Ure=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},Hz=function(e,t,r){if(nx(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(ex));return t&&eg.call(e,ex)&&i.unshift(e),i=i.filter(r),i},Zz=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!nx(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),f=o.length?o:l.children,C=n(f,!0,r);r.flatten?i.push.apply(i,C):i.push({scopeParent:l,candidates:C})}else{var x=eg.call(l,ex);x&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),R=!nx(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(B&&R){var P=n(B===!0?l.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:l,candidates:P})}else s.unshift.apply(s,l.children)}}return i},Xz=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},O0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ure(e))&&!Xz(e)?0:e.tabIndex},zre=function(e,t){var r=O0(e);return r<0&&t&&!Xz(e)?0:r},Nre=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Jz=function(e){return e.tagName==="INPUT"},Gre=function(e){return Jz(e)&&e.type==="hidden"},jre=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},Wre=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Qre=function(e){if(!e.name)return!0;var t=e.form||tx(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=Wre(i,e.form);return!s||s===e},Yre=function(e){return Jz(e)&&e.type==="radio"},qre=function(e){return Yre(e)&&!Qre(e)},$re=function(e){var t,r=e&&tx(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var l,o,f;for(s=!!((l=i)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!s&&i;){var C,x,B;r=tx(i),i=(C=r)===null||C===void 0?void 0:C.host,s=!!((x=i)!==null&&x!==void 0&&(B=x.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return s},nT=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Vre=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=eg.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(eg.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var f=e.parentElement,C=tx(e);if(f&&!f.shadowRoot&&i(f)===!0)return nT(e);e.assignedSlot?e=e.assignedSlot:!f&&C!==e.ownerDocument?e=C.host:e=f}e=o}if($re(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return nT(e);return!1},Hre=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return eg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},rx=function(e,t){return!(t.disabled||nx(t)||Gre(t)||Vre(t,e)||jre(t)||Hre(t))},oB=function(e,t){return!(qre(t)||O0(t)<0||!rx(e,t))},Zre=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Xre=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,f=zre(o,l),C=l?n(i.candidates):o;f===0?l?t.push.apply(t,C):t.push(o):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:C})}),r.sort(Nre).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),iLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function rT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function iT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rT(Object(t),!0).forEach(function(r){tie(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):rT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function tie(n,e,t){return e=rie(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function nie(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function rie(n){var e=nie(n,"string");return typeof e=="symbol"?e:String(e)}var oT={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},iie=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},oie=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},pC=function(e){return e?.key==="Tab"||e?.keyCode===9},sie=function(e){return pC(e)&&!e.shiftKey},aie=function(e){return pC(e)&&e.shiftKey},sT=function(e){return setTimeout(e,0)},aT=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},Kv=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},Kb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},lie=[],Aie=function(e,t){var r=t?.document||document,i=t?.trapStack||lie,s=iT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:sie,isKeyBackward:aie},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,f=function(Se,xe,je){return Se&&Se[xe]!==void 0?Se[xe]:s[je||xe]},C=function(Se,xe){var je=typeof xe?.composedPath=="function"?xe.composedPath():void 0;return l.containerGroups.findIndex(function(Me){var rt=Me.container,Ct=Me.tabbableNodes;return rt.contains(Se)||je?.includes(rt)||Ct.find(function(it){return it===Se})})},x=function(Se){var xe=s[Se];if(typeof xe=="function"){for(var je=arguments.length,Me=new Array(je>1?je-1:0),rt=1;rt<je;rt++)Me[rt-1]=arguments[rt];xe=xe.apply(void 0,Me)}if(xe===!0&&(xe=void 0),!xe){if(xe===void 0||xe===!1)return xe;throw new Error("`".concat(Se,"` was specified but was not a node, or did not return a node"))}var Ct=xe;if(typeof xe=="string"&&(Ct=r.querySelector(xe),!Ct))throw new Error("`".concat(Se,"` as selector refers to no known node"));return Ct},B=function(){var Se=x("initialFocus");if(Se===!1)return!1;if(Se===void 0||!s2(Se,s.tabbableOptions))if(C(r.activeElement)>=0)Se=r.activeElement;else{var xe=l.tabbableGroups[0],je=xe&&xe.firstTabbableNode;Se=je||x("fallbackFocus")}if(!Se)throw new Error("Your focus-trap needs to have at least one focusable element");return Se},R=function(){if(l.containerGroups=l.containers.map(function(Se){var xe=eN(Se,s.tabbableOptions),je=tN(Se,s.tabbableOptions),Me=xe.length>0?xe[0]:void 0,rt=xe.length>0?xe[xe.length-1]:void 0,Ct=je.find(function(Ge){return w1(Ge)}),it=je.slice().reverse().find(function(Ge){return w1(Ge)}),nt=!!xe.find(function(Ge){return O0(Ge)>0});return{container:Se,tabbableNodes:xe,focusableNodes:je,posTabIndexesFound:nt,firstTabbableNode:Me,lastTabbableNode:rt,firstDomTabbableNode:Ct,lastDomTabbableNode:it,nextTabbableNode:function(Ie){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,gt=xe.indexOf(Ie);return gt<0?$e?je.slice(je.indexOf(Ie)+1).find(function(Dt){return w1(Dt)}):je.slice(0,je.indexOf(Ie)).reverse().find(function(Dt){return w1(Dt)}):xe[gt+($e?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(Se){return Se.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(Se){return Se.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},P=function we(Se){var xe=Se.activeElement;if(xe)return xe.shadowRoot&&xe.shadowRoot.activeElement!==null?we(xe.shadowRoot):xe},U=function we(Se){if(Se!==!1&&Se!==P(document)){if(!Se||!Se.focus)Line truncated
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hT;function Sie(){if(hT)return xa;hT=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),U;U=Symbol.for("react.module.reference");function N(W){if(typeof W=="object"&&W!==null){var X=W.$$typeof;switch(X){case n:switch(W=W.type,W){case t:case i:case r:case C:case x:return W;default:switch(W=W&&W.$$typeof,W){case o:case l:case f:case R:case B:case s:return W;default:return X}}case e:return X}}}return xa.ContextConsumer=l,xa.ContextProvider=s,xa.Element=n,xa.ForwardRef=f,xa.Fragment=t,xa.Lazy=R,xa.Memo=B,xa.Portal=e,xa.Profiler=i,xa.StrictMode=r,xa.Suspense=C,xa.SuspenseList=x,xa.isAsyncMode=function(){return!1},xa.isConcurrentMode=function(){return!1},xa.isContextConsumer=function(W){return N(W)===l},xa.isContextProvider=function(W){return N(W)===s},xa.isElement=function(W){return typeof W=="object"&&W!==null&&W.$$typeof===n},xa.isForwardRef=function(W){return N(W)===f},xa.isFragment=function(W){return N(W)===t},xa.isLazy=function(W){return N(W)===R},xa.isMemo=function(W){return N(W)===B},xa.isPortal=function(W){return N(W)===e},xa.isProfiler=function(W){return N(W)===i},xa.isStrictMode=function(W){return N(W)===r},xa.isSuspense=function(W){return N(W)===C},xa.isSuspenseList=function(W){return N(W)===x},xa.isValidElementType=function(W){return typeof W=="string"||typeof W=="function"||W===t||W===i||W===r||W===C||W===x||W===P||typeof W=="object"&&W!==null&&(W.$$typeof===R||W.$$typeof===B||W.$$typeof===s||W.$$typeof===l||W.$$typeof===f||W.$$typeof===U||W.getModuleId!==void 0)},xa.typeOf=N,xa}var dT;function Eie(){return dT||(dT=1,bM.exports=Sie()),bM.exports}Eie();const fT=n=>typeof n=="object"&&n!=null&&n.nodeType===1,pT=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Lb=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return pT(t.overflowY,e)||pT(t.overflowX,e)||(r=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(n)}return!1},Ub=(n,e,t,r,i,s,l,o)=>s<n&&l>e||s>n&&l<e?0:s<=n&&o<=t||l>=e&&o>=t?s-n-r:l>e&&o<t||s<n&&o>t?l-e+i:0,Bie=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},Oie=(n,e)=>{var t,r,i,s;if(typeof document>"u")return[];const{inline:l,boundary:o,skipOverflowHiddenElements:f}=e,C=typeof o=="function"?o:xe=>xe!==o;if(!fT(n))throw new TypeError("Invalid target");const x=document.scrollingElement||document.documentElement,B=[];let R=n;for(;fT(R)&&C(R);){if(R=Bie(R),R===x){B.push(R);break}R!=null&&R===document.body&&Lb(R)&&!Lb(document.documentElement)||R!=null&&Lb(R,f)&&B.push(R)}const P=(r=(t=window.visualViewport)==null?void 0:t.width)!=null?r:innerWidth,U=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:N,scrollY:W}=window,{height:X,width:$,top:re,right:te,bottom:V,left:ne}=n.getBoundingClientRect(),{top:G,right:le,left:fe}=(xe=>{const je=window.getComputedStyle(xe);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(n);let pe=re-G,we=l==="center"?ne+$/2-fe+le:l==="end"?te+le:ne-fe;const Se=[];for(let xe=0;xe<B.length;xe++){const je=B[xe],{height:Me,width:rt,top:Ct,right:it,bottom:nt,left:Ge}=je.getBoundingClientRect();if(re>=0&&ne>=0&&V<=U&&te<=P&&(je===x&&!Lb(je)||re>=Ct&&V<=nt&&ne>=Ge&&te<=it))return Se;const Ie=getComputedStyle(je),$e=parseInt(Ie.borderLeftWidth,10),gt=parseInt(Ie.borderTopWidth,10),Dt=parseInt(Ie.borderRightWidth,10),ut=parseInt(Ie.borderBottomWidth,10);let Rt=0,St=0;const Ke="offsetWidth"in je?je.offsetWidth-je.clientWidth-$e-Dt:0,Pe="offsetHeight"in je?je.offsetHeight-je.clientHeight-gt-ut:0,Re="offsetWidth"in je?je.offsetWidth===0?0:rt/je.offsetWidth:0,Ye="offsetHeight"in je?je.offsetHeight===0?0:Me/je.offsetHeight:0;if(x===je)Rt=Ub(W,W+U,U,gt,ut,W+pe,W+pe+X,X),St=l==="start"?we:l==="center"?we-P/2:l==="end"?we-P:Ub(N,N+P,P,$e,Dt,N+we,N+we+$,$),Rt=Math.max(0,Rt+W),St=Math.max(0,St+N);else{Rt=Ub(Ct,nt,Me,gt,ut+Pe,pe,pe+X,X),St=l==="start"?we-Ge-$e:l==="center"?we-(Ge+rt/2)+Ke/2:l==="end"?we-it+Dt+Ke:Ub(Ge,it,rt,$e,Dt+Ke,we,we+$,$);const{scrollLeft:vt,scrollTop:yt}=je;Rt=Ye===0?0:Math.max(0,Math.min(yt+Rt/Ye,je.scrollHeight-Me/Ye+Pe)),St=Re===0?0:Math.max(0,Math.min(vt+St/Re,je.scrollWidth-rt/Re+Ke)),pe+=yt-Rt,we+=vt-St}Se.push({el:je,top:Rt,left:St})}return Se};var zy=function(){return zy=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Poe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Roe=d3(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,s=e.allowMultipleExpanded,l=s===void 0?!1:s,o=e.allowZeroExpanded,f=o===void 0?!1:o;h3(this,n),zl(this,"expanded",void 0),zl(this,"allowMultipleExpanded",void 0),zl(this,"allowZeroExpanded",void 0),zl(this,"toggleExpanded",function(C){if(t.isItemDisabled(C))return t;var x=t.isItemExpanded(C);return x?t.augment({expanded:t.expanded.filter(function(B){return B!==C})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Eoe(t.expanded),[C]):[C]})}),zl(this,"isItemDisabled",function(C){var x=t.isItemExpanded(C),B=t.expanded.length===1;return!!(x&&!t.allowZeroExpanded&&B)}),zl(this,"isItemExpanded",function(C){return t.expanded.indexOf(C)!==-1}),zl(this,"getPanelAttributes",function(C,x){var B=x??t.isItemExpanded(C);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(C),id:t.getPanelId(C),hidden:B?void 0:!0}}),zl(this,"getHeadingAttributes",function(){return{role:"heading"}}),zl(this,"getButtonAttributes",function(C,x){var B=x??t.isItemExpanded(C),R=t.isItemDisabled(C);return{id:t.getButtonId(C),"aria-disabled":R,"aria-expanded":B,"aria-controls":t.getPanelId(C),role:"button",tabIndex:0}}),zl(this,"getPanelId",function(C){return"accordion__panel-".concat(C)}),zl(this,"getButtonId",function(C){return"accordion__heading-".concat(C)}),zl(this,"augment",function(C){return new n(AB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},C))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=f}),BN=nr.createContext(null),ON=function(n){hI(t,n);var e=dI(t);function t(){var r;h3(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),zl(fp(r),"state",new Roe({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),zl(fp(r),"toggleExpanded",function(o){r.setState(function(f){return f.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),zl(fp(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),zl(fp(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),zl(fp(r),"getPanelAttributes",function(o,f){return r.state.getPanelAttributes(o,f)}),zl(fp(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),zl(fp(r),"getButtonAttributes",function(o,f){return r.state.getButtonAttributes(o,f)}),r}return d3(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return nr.createElement(BN.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(nr.PureComponent);zl(ON,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var IN=function(n){hI(t,n);var e=dI(t);function t(){var r;h3(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),zl(fp(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return d3(t,[{key:"render",value:function(){return nr.createElement(BN.Consumer,null,this.renderChildren)}}]),t}(nr.PureComponent),Doe=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Koe=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,s=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,f=f3(e,Doe);return nr.createElement(ON,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},nr.createElement("div",fm({"data-accordion-component":"Accordion",className:r},f)))},hB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(hB||(hB={}));var TN=hB,DM=0;function Foe(){var n=DM;return DM=DM+1,"raa-".concat(n)}var Loe=nr.useId||Foe,Uoe=/[\u0009\u000a\u000c\u000d\u0020]/g;function $C(n){return n===""||Uoe.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var kN=nr.createContext(null),zoe=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,l=function(){i.toggleExpanded(r)},o=function(C){var x=s??C.isItemExpanded(r),B=C.isItemDisabled(r),R=C.getPanelAttributes(r,s),P=C.getHeadingAttributes(r),U=C.getButtonAttributes(r,s);return nr.createElement(kN.Provider,{value:{uuid:r,expanded:x,disabled:B,toggleExpanded:l,panelAttributes:R,headingAttributes:P,buttonAttributes:U}},t)};return nr.createElement(IN,nu Line truncated
From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):
“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”
`,DN=function(n){hI(t,n);var e=dI(t);function t(){var r;h3(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),zl(fp(r),"ref",void 0),zl(fp(r),"setRef",function(o){r.ref=o}),r}return d3(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return nr.createElement("div",fm({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Zoe)}}]),t}(nr.PureComponent);zl(DN,"defaultProps",Hoe);var KN=function(e){return nr.createElement(p3,null,function(t){var r=t.headingAttributes;return e.id&&$C(e.id),nr.createElement(DN,fm({},e,r))})};KN.displayName=TN.AccordionItemHeading;var Xoe=["className","region","id"],Joe=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=f3(e,Xoe),o=function(C){var x=C.panelAttributes;s&&$C(s);var B=AB(AB({},x),{},{"aria-labelledby":i?x["aria-labelledby"]:void 0});return nr.createElement("div",fm({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return nr.createElement(p3,null,o)},l2={exports:{}},ese=l2.exports,KT;function g3(){return KT||(KT=1,function(n,e){(function(t,r){n.exports=r()})(ese,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),s=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),f=s||l||o,C=f&&(s?document.documentMode||6:+(o||l)[1]),x=!o&&/WebKit\//.test(t),B=x&&/Qt\/\d+\.\d+/.test(t),R=!o&&/Chrome\/(\d+)/.exec(t),P=R&&+R[1],U=/Opera\//.test(t),N=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),X=/PhantomJS/.test(t),$=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),re=/Android/.test(t),te=$||re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),V=$||/Mac/.test(r),ne=/\bCrOS\b/.test(t),G=/win/i.test(r),le=U&&t.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&(U=!1,x=!0);var fe=V&&(B||U&&(le==null||le<12.11)),pe=i||f&&C>=9;function we(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var Se=function(u,g){var E=u.className,S=we(g).exec(E);if(S){var D=E.slice(S.index+S[0].length);u.className=E.slice(0,S.index)+(D?S[1]+D:"")}};function xe(u){for(var g=u.childNodes.length;g>0;--g)u.removeChild(u.firstChild);return u}function je(u,g){return xe(u).appendChild(g)}function Me(u,g,E,S){var D=document.createElement(u);if(E&&(D.className=E),S&&(D.style.cssText=S),typeof g=="string")D.appendChild(document.createTextNode(g));else if(g)for(var H=0;H<g.length;++H)D.appendChild(g[H]);return D}function rt(u,g,E,S){var D=Me(u,g,E,S);return D.setAttribute("role","presentation"),D}var Ct;document.createRange?Ct=function(u,g,E,S){var D=document.createRange();return D.setEnd(S||u,E),D.setStart(u,g),D}:Ct=function(u,g,E){var S=document.body.createTextRange();try{S.moveToElementText(u.parentNode)}catch{return S}return S.collapse(!0),S.moveEnd("character",E),S.moveStart("character",g),S};function it(u,g){if(g.nodeType==3&&(g=g.parentNode),u.contains)return u.contains(g);do if(g.nodeType==11&&(g=g.host),g==u)return!0;while(g=g.parentNode)}function nt(u){var g=u.ownerDocument||u,E;try{E=u.activeElement}catch{E=g.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function Ge(u,g){var E=u.className;we(g).test(E)||(u.className+=(E?" ":"")+g)}function Ie(u,g){for(var E=u.split(" "),S=0;S<E.length;S++)E[S]&&!we(E[S]).test(g)&&(g+=" "+E[S]);return g}var $e=function(u){u.select()};$?$e=function(u){u.selectionStart=0,u.selectionEnd=u.value.length}:f&&($e=function(u){try{u.select()}catch{}});function gt(u){return u.display.wrapper.ownerDocument}function Dt(u){return ut(u.display.wrapper)}function ut(u){return u.getRootNode?u.getRootNode():u.ownerDocument}function Rt(u){return gt(u).defaultView}function St(u){var g=Array.prototype.slice.call(arguments,1);return function(){return u.apply(null,g)}}function Ke(u,g,E){g||(g={});for(var S in u)u.hasOwnProperty(S)&&(E!==!1||!g.hasOwnProperty(S))&&(g[S]=u[S]);return g}function Pe(u,g,E,S,D){g==null&&(g=u.search(/[^\s\u00a0]/),g==-1&&(g=u.length));for(var H=S||0,ce=D||0;;){var _e=u.indexOf(" ",H);if(_e<0||_e>=g)return ce+(g-H);ce+=_e-H,ce+=E-ce%E,H=_e+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=St(this.onTimeout,this)};Re.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},Re.prototype.set=function(u,g){this.f=g;var E=+new Date+u;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,u),this.time=E)};function Ye(u,g){for(var E=0;E<u.length;++E)if(u[E]==g)return E;return-1}var Line truncated
b`.split(/\n/).length!=3?function(u){for(var g=0,E=[],S=u.length;g<=S;){var D=u.indexOf(`
`,g);D==-1&&(D=u.length);var H=u.slice(g,u.charAt(D-1)=="\r"?D-1:D),ce=H.indexOf("\r");ce!=-1?(E.push(H.slice(0,ce)),g+=ce+1):(E.push(H),g=D+1)}return E}:function(u){return u.split(/\r\n?|\n/)},Dr=window.getSelection?function(u){try{return u.selectionStart!=u.selectionEnd}catch{return!1}}:function(u){var g;try{g=u.ownerDocument.selection.createRange()}catch{}return!g||g.parentElement()!=u?!1:g.compareEndPoints("StartToEnd",g)!=0},ui=function(){var u=Me("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),Pi=null;function yi(u){if(Pi!=null)return Pi;var g=je(u,Me("span","x")),E=g.getBoundingClientRect(),S=Ct(g,0,1).getBoundingClientRect();return Pi=Math.abs(E.left-S.left)>1}var As={},qr={};function _s(u,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),As[u]=g}function La(u,g){qr[u]=g}function da(u){if(typeof u=="string"&&qr.hasOwnProperty(u))u=qr[u];else if(u&&typeof u.name=="string"&&qr.hasOwnProperty(u.name)){var g=qr[u.name];typeof g=="string"&&(g={name:g}),u=Ir(g,u),u.name=g.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return da("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return da("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function No(u,g){g=da(g);var E=As[g.name];if(!E)return No(u,"text/plain");var S=E(u,g);if(zs.hasOwnProperty(g.name)){var D=zs[g.name];for(var H in D)D.hasOwnProperty(H)&&(S.hasOwnProperty(H)&&(S["_"+H]=S[H]),S[H]=D[H])}if(S.name=g.name,g.helperType&&(S.helperType=g.helperType),g.modeProps)for(var ce in g.modeProps)S[ce]=g.modeProps[ce];return S}var zs={};function hl(u,g){var E=zs.hasOwnProperty(u)?zs[u]:zs[u]={};Ke(g,E)}function ci(u,g){if(g===!0)return g;if(u.copyState)return u.copyState(g);var E={};for(var S in g){var D=g[S];D instanceof Array&&(D=D.concat([])),E[S]=D}return E}function oa(u,g){for(var E;u.innerMode&&(E=u.innerMode(g),!(!E||E.mode==u));)g=E.state,u=E.mode;return E||{mode:u,state:g}}function bo(u,g,E){return u.startState?u.startState(g,E):!0}var lo=function(u,g,E){this.pos=this.start=0,this.string=u,this.tabSize=g||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};lo.prototype.eol=function(){return this.pos>=this.string.length},lo.prototype.sol=function(){return this.pos==this.lineStart},lo.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},lo.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},lo.prototype.eat=function(u){var g=this.string.charAt(this.pos),E;if(typeof u=="string"?E=g==u:E=g&&(u.test?u.test(g):u(g)),E)return++this.pos,g},lo.prototype.eatWhile=function(u){for(var g=this.pos;this.eat(u););return this.pos>g},lo.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},lo.prototype.skipToEnd=function(){this.pos=this.string.length},lo.prototype.skipTo=function(u){var g=this.string.indexOf(u,this.pos);if(g>-1)return this.pos=g,!0},lo.prototype.backUp=function(u){this.pos-=u},lo.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Pe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},lo.prototype.indentation=function(){return Pe(this.string,null,this.tabSize)-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},lo.prototype.match=function(u,g,E){if(typeof u=="string"){var S=function(ce){return E?ce.toLowerCase():ce},D=this.string.substr(this.pos,u.length);if(S(D)==S(u))return g!==!1&&(this.pos+=u.length),!0}else{var H=this.string.slice(this.pos).match(u);return H&&H.index>0?null:(H&&g!==!1&&(this.pos+=H[0].length),H)}},lo.prototype.current=function(){return this.string.slice(this.start,this.pos)},lo.prototype.hideFirstChars=function(u,g){this.lineStart+=u;try{return g()}finally{this.lineStart-=u}},lo.prototype.lookAhead=function(u){var g=this.lineOracle;return g&&g.lookAhead(u)},lo.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function Er(u,g){if(g-=u.first,g<0||g>=u.size)throw new Error("There is no line "+(g+u.first)+" in the document.");for(var E=u;!E.lines;)for(var S=0;;++S){var D=E.children[S],H=D.chunkSize();if(g<H){E=D;break}g-=H}return E.lines[g]}function wa(u,g,E){var S=[],D=g.line;return u.iter(g.line,E.line+1,function(H){var ce=H.text;D==E.line&&(ce=ce.slice(0,E.ch)),D==g.line&&(ce=ce.slice(g.ch)),S.push(ce),++D}),S}function qo(u,g,E){var S=[];return u.iter(g,E,function(D){S.push(D.text)}),S}function Jo(u,g){var E=g-u.height;if(E)for(var S=u;S;S=S.parent)S.height+=E}function qe(u){if(u.parent==null)return null;for(var g=u.parent,E=Ye(g.lines,u),S=g.parent;S;g=S,S=S.parent)for(var D=0;S.children[D]!=g;++D)E+=S.children[D].chunkSize();return E+g.first}function xt(u,g){var E=u.first;e:do{for(var S=0;S<u.child Line truncated
`?(Fn=mt.appendChild(Me("span",tn[0]=="\r"?"␍":"␤","cm-invalidchar")),Fn.setAttribute("cm-text",tn[0]),u.col+=1):(Fn=u.cm.options.specialCharPlaceholder(tn[0]),Fn.setAttribute("cm-text",tn[0]),f&&C<9?mt.appendChild(Me("span",[Fn])):mt.appendChild(Fn),u.col+=1);u.map.push(u.pos,u.pos+1,Fn),u.pos++}}if(u.trailingSpace=_e.charCodeAt(g.length-1)==32,E||S||D||Ue||H||ce){var br=E||"";S&&(br+=S),D&&(br+=D);var fr=Me("span",[mt],br,H);if(ce)for(var Pr in ce)ce.hasOwnProperty(Pr)&&Pr!="style"&&Pr!="class"&&fr.setAttribute(Pr,ce[Pr]);return u.content.appendChild(fr)}u.content.appendChild(mt)}}function Ic(u,g){if(u.length>1&&!/ /.test(u))return u;for(var E=g,S="",D=0;D<u.length;D++){var H=u.charAt(D);H==" "&&E&&(D==u.length-1||u.charCodeAt(D+1)==32)&&(H=" "),S+=H,E=H==" "}return S}function ps(u,g){return function(E,S,D,H,ce,_e,ke){D=D?D+" cm-force-border":"cm-force-border";for(var Ue=E.pos,mt=Ue+S.length;;){for(var Bt=void 0,tn=0;tn<g.length&&(Bt=g[tn],!(Bt.to>Ue&&Bt.from<=Ue));tn++);if(Bt.to>=mt)return u(E,S,D,H,ce,_e,ke);u(E,S.slice(0,Bt.to-Ue),D,H,null,_e,ke),H=null,S=S.slice(Bt.to-Ue),Ue=Bt.to}}}function Tc(u,g,E,S){var D=!S&&E.widgetNode;D&&u.map.push(u.pos,u.pos+g,D),!S&&u.cm.display.input.needsContentAttribute&&(D||(D=u.content.appendChild(document.createElement("span"))),D.setAttribute("cm-marker",E.id)),D&&(u.cm.display.input.setUneditable(D),u.content.appendChild(D)),u.pos+=g,u.trailingSpace=!1}function md(u,g,E){var S=u.markedSpans,D=u.text,H=0;if(!S){for(var ce=1;ce<E.length;ce+=2)g.addToken(g,D.slice(H,H=E[ce]),BA(E[ce+1],g.cm.options));return}for(var _e=D.length,ke=0,Ue=1,mt="",Bt,tn,qt=0,xn,Fn,Kn,Hn,br;;){if(qt==ke){xn=Fn=Kn=tn="",br=null,Hn=null,qt=1/0;for(var fr=[],Pr=void 0,Jr=0;Jr<S.length;++Jr){var zr=S[Jr],eo=zr.marker;if(eo.type=="bookmark"&&zr.from==ke&&eo.widgetNode)fr.push(eo);else if(zr.from<=ke&&(zr.to==null||zr.to>ke||eo.collapsed&&zr.to==ke&&zr.from==ke)){if(zr.to!=null&&zr.to!=ke&&qt>zr.to&&(qt=zr.to,Fn=""),eo.className&&(xn+=" "+eo.className),eo.css&&(tn=(tn?tn+";":"")+eo.css),eo.startStyle&&zr.from==ke&&(Kn+=" "+eo.startStyle),eo.endStyle&&zr.to==qt&&(Pr||(Pr=[])).push(eo.endStyle,zr.to),eo.title&&((br||(br={})).title=eo.title),eo.attributes)for(var fo in eo.attributes)(br||(br={}))[fo]=eo.attributes[fo];eo.collapsed&&(!Hn||st(Hn.marker,eo)<0)&&(Hn=zr)}else zr.from>ke&&qt>zr.from&&(qt=zr.from)}if(Pr)for(var _a=0;_a<Pr.length;_a+=2)Pr[_a+1]==qt&&(Fn+=" "+Pr[_a]);if(!Hn||Hn.from==ke)for(var vs=0;vs<fr.length;++vs)Tc(g,0,fr[vs]);if(Hn&&(Hn.from||0)==ke){if(Tc(g,(Hn.to==null?_e+1:Hn.to)-ke,Hn.marker,Hn.from==null),Hn.to==null)return;Hn.to==ke&&(Hn=!1)}}if(ke>=_e)break;for(var Ys=Math.min(_e,qt);;){if(mt){var qs=ke+mt.length;if(!Hn){var na=qs>Ys?mt.slice(0,Ys-ke):mt;g.addToken(g,na,Bt?Bt+xn:xn,Kn,ke+na.length==qt?Fn:"",tn,br)}if(qs>=Ys){mt=mt.slice(Ys-ke),ke=Ys;break}ke=qs,Kn=""}mt=D.slice(H,H=E[Ue++]),Bt=BA(E[Ue++],g.cm.options)}}}function Pp(u,g,E){this.line=g,this.rest=Yi(g),this.size=this.rest?qe(Vn(this.rest))-E+1:1,this.node=this.text=null,this.hidden=fi(u,g)}function qh(u,g,E){for(var S=[],D,H=g;H<E;H=D){var ce=new Pp(u.doc,Er(u.doc,H),H);D=H+ce.size,S.push(ce)}return S}var $h=null;function gd(u){$h?$h.ops.push(u):u.ownsGroup=$h={ops:[u],delayedCallbacks:[]}}function Vh(u){var g=u.delayedCallbacks,E=0;do{for(;E<g.length;E++)g[E].call(null);for(var S=0;S<u.ops.length;S++){var D=u.ops[S];if(D.cursorActivityHandlers)for(;D.cursorActivityCalled<D.cursorActivityHandlers.length;)D.cursorActivityHandlers[D.cursorActivityCalled++].call(null,D.cm)}}while(E<g.length)}function yd(u,g){var E=u.ownsGroup;if(E)try{Vh(E)}finally{$h=null,g(E)}}var Nu=null;function Es(u,g){var E=Ve(u,g);if(E.length){var S=Array.prototype.slice.call(arguments,2),D;$h?D=$h.delayedCallbacks:Nu?D=Nu:(D=Nu=[],setTimeout(gu,0));for(var H=function(_e){D.push(function(){return E[_e].apply(null,S)})},ce=0;ce<E.length;++ce)H(ce)}}function gu(){var u=Nu;Nu=null;for(var g=0;g<u.length;++g)u[g]()}function uf(u,g,E,S){for(var D=0;D<g.changes.length;D++){var H=g.changes[D];H=="text"?Rp(u,g):H=="gutter"?vd(u,g,E,S):H=="class"?Hh(u,g):H=="widget"&&Pc(u,g,S)}g.changes=null}function nh(u){return u.node==u.text&&(u.node=Me("div",null,null,"position: relative"),u.text.parentNode&&u.text.parentNode.replaceChild(u.node,u.text),u.node.appendChild(u.text),f&&C<8&&(u.node.style.zIndex=2)),u.node}function _h(u,g){var E=g.bgClass?g.bgClass+" "+(g.line.bgClass||""):g.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),g.background)E?g.background.className=E:(g.background.parentNode.removeChild(g.background),g.background=null);else if(E){var S=nh(g);g.background=S.insertBefore(Me("div",null,E),S.firstChild),u.display.input.setUneditable(g.background)}}function kc(u,g){var E=u.display.externalMeasured;return E&&E.line==g.line?(u.display.externalMeasured=null,g.measure=E.measure,E.built):uc(u,g)}function Rp(u,g){var E=g.text.className,S=kc(u,g);g.text==g.node&&(g.node=S.pre),g.text.parentNode.replaceChild(S.pre,g.text),g.text=S.pre,S.bgClass Line truncated
top: `+Pr+"px; width: "+(Jr??ke-fr)+`px;
height: `+(zr-Pr)+"px"))}function Bt(fr,Pr,Jr){var zr=Er(D,fr),eo=zr.text.length,fo,_a;function vs(na,NA){return In(u,fn(fr,na),"div",zr,NA)}function Ys(na,NA,$a){var Ds=es(u,zr,null,na),cs=NA=="ltr"==($a=="after")?"left":"right",xi=$a=="after"?Ds.begin:Ds.end-(/\s/.test(zr.text.charAt(Ds.end-1))?2:1);return vs(xi,cs)[cs]}var qs=ve(zr,D.direction);return Jt(qs,Pr||0,Jr??eo,function(na,NA,$a,Ds){var cs=$a=="ltr",xi=vs(na,cs?"left":"right"),Qo=vs(NA-1,cs?"right":"left"),$s=Pr==null&&na==0,la=Jr==null&&NA==eo,xs=Ds==0,lu=!qs||Ds==qs.length-1;if(Qo.top-xi.top<=3){var Fo=(Ue?$s:la)&&xs,Fd=(Ue?la:$s)&&lu,GA=Fo?_e:(cs?xi:Qo).left,Yc=Fd?ke:(cs?Qo:xi).right;mt(GA,xi.top,Yc-GA,xi.bottom)}else{var xc,al,ll,Mf;cs?(xc=Ue&&$s&&xs?_e:xi.left,al=Ue?ke:Ys(na,$a,"before"),ll=Ue?_e:Ys(NA,$a,"after"),Mf=Ue&&la&&lu?ke:Qo.right):(xc=Ue?Ys(na,$a,"before"):_e,al=!Ue&&$s&&xs?ke:xi.right,ll=!Ue&&la&&lu?_e:Qo.left,Mf=Ue?Ys(NA,$a,"after"):ke),mt(xc,xi.top,al-xc,xi.bottom),xi.bottom<Qo.top&&mt(_e,xi.bottom,null,Qo.top),mt(ll,Qo.top,Mf-ll,Qo.bottom)}(!fo||dc(xi,fo)<0)&&(fo=xi),dc(Qo,fo)<0&&(fo=Qo),(!_a||dc(xi,_a)<0)&&(_a=xi),dc(Qo,_a)<0&&(_a=Qo)}),{start:fo,end:_a}}var tn=g.from(),qt=g.to();if(tn.line==qt.line)Bt(tn.line,tn.ch,qt.ch);else{var xn=Er(D,tn.line),Fn=Er(D,qt.line),Kn=Rr(xn)==Rr(Fn),Hn=Bt(tn.line,tn.ch,Kn?xn.text.length+1:null).end,br=Bt(qt.line,Kn?0:null,qt.ch).start;Kn&&(Hn.top<br.top-2?(mt(Hn.right,Hn.top,null,Hn.bottom),mt(_e,br.top,br.left,br.bottom)):mt(Hn.right,Hn.top,br.left-Hn.right,Hn.bottom)),Hn.bottom<br.top&&mt(_e,Hn.bottom,null,br.top)}E.appendChild(H)}function uA(u){if(u.state.focused){var g=u.display;clearInterval(g.blinker);var E=!0;g.cursorDiv.style.visibility="",u.options.cursorBlinkRate>0?g.blinker=setInterval(function(){u.hasFocus()||us(u),g.cursorDiv.style.visibility=(E=!E)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}}function oh(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Sd(u))}function wh(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&us(u))},100)}function Sd(u,g){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(lt(u,"focus",u,g),u.state.focused=!0,Ge(u.display.wrapper,"CodeMirror-focused"),!u.curOp&&u.display.selForContextMenu!=u.doc.sel&&(u.display.input.reset(),x&&setTimeout(function(){return u.display.input.reset(!0)},20)),u.display.input.receivedFocus()),uA(u))}function us(u,g){u.state.delayingBlurEvent||(u.state.focused&&(lt(u,"blur",u,g),u.state.focused=!1,Se(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Uc(u){for(var g=u.display,E=g.lineDiv.offsetTop,S=Math.max(0,g.scroller.getBoundingClientRect().top),D=g.lineDiv.getBoundingClientRect().top,H=0,ce=0;ce<g.view.length;ce++){var _e=g.view[ce],ke=u.options.lineWrapping,Ue=void 0,mt=0;if(!_e.hidden){if(D+=_e.line.height,f&&C<8){var Bt=_e.node.offsetTop+_e.node.offsetHeight;Ue=Bt-E,E=Bt}else{var tn=_e.node.getBoundingClientRect();Ue=tn.bottom-tn.top,!ke&&_e.text.firstChild&&(mt=_e.text.firstChild.getBoundingClientRect().right-tn.left-1)}var qt=_e.line.height-Ue;if((qt>.005||qt<-.005)&&(D<S&&(H-=qt),Jo(_e.line,Ue),_u(_e.line),_e.rest))for(var xn=0;xn<_e.rest.length;xn++)_u(_e.rest[xn]);if(mt>u.display.sizerWidth){var Fn=Math.ceil(mt/ga(u.display));Fn>u.display.maxLineLength&&(u.display.maxLineLength=Fn,u.display.maxLine=_e.line,u.display.maxLineChanged=!0)}}}Math.abs(H)>2&&(g.scroller.scrollTop+=H)}function _u(u){if(u.widgets)for(var g=0;g<u.widgets.length;++g){var E=u.widgets[g],S=E.node.parentNode;S&&(E.height=S.offsetHeight)}}function kA(u,g,E){var S=E&&E.top!=null?Math.max(0,E.top):u.scroller.scrollTop;S=Math.floor(S-bh(u));var D=E&&E.bottom!=null?E.bottom:S+u.wrapper.clientHeight,H=xt(g,S),ce=xt(g,D);if(E&&E.ensure){var _e=E.ensure.from.line,ke=E.ensure.to.line;_e<H?(H=_e,ce=xt(g,Ki(Er(g,_e))+u.wrapper.clientHeight)):Math.min(ke,g.lastLine())>=ce&&(H=xt(g,Ki(Er(g,ke))-u.wrapper.clientHeight),ce=ke)}return{from:H,to:Math.max(ce,H+1)}}function Xh(u,g){if(!ct(u,"scrollCursorIntoView")){var E=u.display,S=E.sizer.getBoundingClientRect(),D=null,H=E.wrapper.ownerDocument;if(g.top+S.top<0?D=!0:g.bottom+S.top>(H.defaultView.innerHeight||H.documentElement.clientHeight)&&(D=!1),D!=null&&!X){var ce=Me("div","​",null,`position: absolute;
top: `+(g.top-E.viewOffset-bh(u.display))+`px;
height: `+(g.bottom-g.top+fl(u)+E.barHeight)+`px;
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");u.display.lineSpace.appendChild(ce),ce.scrollIntoView(D),u.display.lineSpace.removeChild(ce)}}}function Jh(u,g,E,S){S==null&&(S=0);var D;!u.options.lineWrapping&&g==E&&(E=g.sticky=="before"?fn(g.line,g.ch+1,"before"):g,g=g.ch?fn(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g);for(var H=0;H<5;H++){var ce=!1,_e=dn(u,g),ke=!E||E==g?_e:dn(u,E);D={left:Math.min(_e.left,ke.left),top:Math.min(_e.top,ke.top)-S,right:Math.max(_e.left,ke.left),bottom:Math.max(_e.bottom,ke.bottom)+S};var Ue=fc(u,D),mt=u.doc.scrollTop,Bt=u.doc.scrollLeft;if(Ue.scrollTop!=null&&(Qu(u,Ue.scrollTop),Math.abs(u.doc.scrollTop-mt)>1&&(ce=!0)),Ue.scrollLeft!=null&&(PA(u,Ue.scrollLeft),Math.abs(u.doc.scrollLeft-Bt)>1&&(ce=!0)),!ce)break}return D}function sh(u,g){var E=fc(u,g);E.scrollTop!=null&&Qu(u,E.scrollTop),E.scrollLeft!=null&&PA(u,E.scrollLeft)}function fc(u,g){var E=u.display,S=ja(u.display);g.top<0&&(g.top=0);var D=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:E.scroller.scrollTop,H=Dc(u),ce={};g.bottom-g.top>H&&(g.bottom=g.top+H);var _e=u.doc.height+Cd(E),ke=g.top<S,Ue=g.bottom>_e-S;if(g.top<D)ce.scrollTop=ke?0:g.top;else if(g.bottom>D+H){var mt=Math.min(g.top,(Ue?_e:g.bottom)-H);mt!=D&&(ce.scrollTop=mt)}var Bt=u.options.fixedGutter?0:E.gutters.offsetWidth,tn=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:E.scroller.scrollLeft-Bt,qt=Rc(u)-E.gutters.offsetWidth,xn=g.right-g.left>qt;return xn&&(g.right=g.left+qt),g.left<10?ce.scrollLeft=0:g.left<tn?ce.scrollLeft=Math.max(0,g.left+Bt-(xn?0:10)):g.right>qt+tn-3&&(ce.scrollLeft=g.right+(xn?0:10)-qt),ce}function bu(u,g){g!=null&&(ah(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+g)}function ms(u){ah(u);var g=u.getCursor();u.curOp.scrollToPos={from:g,to:g,margin:u.options.cursorScrollMargin}}function ya(u,g,E){(g!=null||E!=null)&&ah(u),g!=null&&(u.curOp.scrollLeft=g),E!=null&&(u.curOp.scrollTop=E)}function Ed(u,g){ah(u),u.curOp.scrollToPos=g}function ah(u){var g=u.curOp.scrollToPos;if(g){u.curOp.scrollToPos=null;var E=Lr(u,g.from),S=Lr(u,g.to);Sh(u,E,S,g.margin)}}function Sh(u,g,E,S){var D=fc(u,{left:Math.min(g.left,E.left),top:Math.min(g.top,E.top)-S,right:Math.max(g.right,E.right),bottom:Math.max(g.bottom,E.bottom)+S});ya(u,D.scrollLeft,D.scrollTop)}function Qu(u,g){Math.abs(u.doc.scrollTop-g)<2||(i||yl(u,{top:g}),lh(u,g,!0),i&&yl(u),js(u,100))}function lh(u,g,E){g=Math.max(0,Math.min(u.display.scroller.scrollHeight-u.display.scroller.clientHeight,g)),!(u.display.scroller.scrollTop==g&&!E)&&(u.doc.scrollTop=g,u.display.scrollbars.setScrollTop(g),u.display.scroller.scrollTop!=g&&(u.display.scroller.scrollTop=g))}function PA(u,g,E,S){g=Math.max(0,Math.min(g,u.display.scroller.scrollWidth-u.display.scroller.clientWidth)),!((E?g==u.doc.scrollLeft:Math.abs(u.doc.scrollLeft-g)<2)&&!S)&&(u.doc.scrollLeft=g,ru(u),u.display.scroller.scrollLeft!=g&&(u.display.scroller.scrollLeft=g),u.display.scrollbars.setScrollLeft(g))}function pc(u){var g=u.display,E=g.gutters.offsetWidth,S=Math.round(u.doc.height+Cd(u.display));return{clientHeight:g.scroller.clientHeight,viewHeight:g.wrapper.clientHeight,scrollWidth:g.scroller.scrollWidth,clientWidth:g.scroller.clientWidth,viewWidth:g.wrapper.clientWidth,barLeft:u.options.fixedGutter?E:0,docHeight:S,scrollHeight:S+fl(u)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:E}}var Sl=function(u,g,E){this.cm=E;var S=this.vert=Me("div",[Me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),D=this.horiz=Me("div",[Me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=D.tabIndex=-1,u(S),u(D),Ne(S,"scroll",function(){S.clientHeight&&g(S.scrollTop,"vertical")}),Ne(D,"scroll",function(){D.clientWidth&&g(D.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sl.prototype.update=function(u){var g=u.scrollWidth>u.clientWidth+1,E=u.scrollHeight>u.clientHeight+1,S=u.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=g?S+"px":"0";var D=u.viewHeight-(g?S:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+D)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(g){this.horiz.style.display="block",this.horiz.style.right=E?S+"px":"0",this.horiz.style.left=u.barLeft+"px";var H=u.viewWidth-u.barLeft-(E?S:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+H)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&u.clientHeight>0&&(S==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?S:0,bottom:g?S:0}},Sl.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sl.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),thi Line truncated
`},setDirection:Bs(function(u){u!="rtl"&&(u="ltr"),u!=this.direction&&(this.direction=u,this.iter(function(g){return g.order=null}),this.cm&&vc(this.cm))})}),Kt.prototype.eachLine=Kt.prototype.iter;var zt=0;function sn(u){var g=this;if(ln(g),!(ct(g,u)||Gu(g.display,u))){nn(u),f&&(zt=+new Date);var E=TA(g,u,!0),S=u.dataTransfer.files;if(!(!E||g.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var D=S.length,H=Array(D),ce=0,_e=function(){++ce==D&&Ro(g,function(){E=vi(g.doc,E);var qt={from:E,to:E,text:g.doc.splitLines(H.filter(function(xn){return xn!=null}).join(g.doc.lineSeparator())),origin:"paste"};Gc(g.doc,qt),Bu(g.doc,qa(vi(g.doc,E),vi(g.doc,ea(qt))))})()},ke=function(qt,xn){if(g.options.allowDropFileTypes&&Ye(g.options.allowDropFileTypes,qt.type)==-1){_e();return}var Fn=new FileReader;Fn.onerror=function(){return _e()},Fn.onload=function(){var Kn=Fn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Kn)){_e();return}H[xn]=Kn,_e()},Fn.readAsText(qt)},Ue=0;Ue<S.length;Ue++)ke(S[Ue],Ue);else{if(g.state.draggingText&&g.doc.sel.contains(E)>-1){g.state.draggingText(u),setTimeout(function(){return g.display.input.focus()},20);return}try{var mt=u.dataTransfer.getData("Text");if(mt){var Bt;if(g.state.draggingText&&!g.state.draggingText.copy&&(Bt=g.listSelections()),Ia(g.doc,qa(E,E)),Bt)for(var tn=0;tn<Bt.length;++tn)v(g.doc,"",Bt[tn].anchor,Bt[tn].head,"drag");g.replaceSelection(mt,"around","paste"),g.display.input.focus()}}catch{}}}}function bn(u,g){if(f&&(!u.state.draggingText||+new Date-zt<100)){dr(g);return}if(!(ct(u,g)||Gu(u.display,g))&&(g.dataTransfer.setData("Text",u.getSelection()),g.dataTransfer.effectAllowed="copyMove",g.dataTransfer.setDragImage&&!N)){var E=Me("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",U&&(E.width=E.height=1,u.display.wrapper.appendChild(E),E._top=E.offsetTop),g.dataTransfer.setDragImage(E,0,0),U&&E.parentNode.removeChild(E)}}function en(u,g){var E=TA(u,g);if(E){var S=document.createDocumentFragment();Lc(u,E,S),u.display.dragCursor||(u.display.dragCursor=Me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),u.display.lineSpace.insertBefore(u.display.dragCursor,u.display.cursorDiv)),je(u.display.dragCursor,S)}}function ln(u){u.display.dragCursor&&(u.display.lineSpace.removeChild(u.display.dragCursor),u.display.dragCursor=null)}function Cn(u){if(document.getElementsByClassName){for(var g=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<g.length;S++){var D=g[S].CodeMirror;D&&E.push(D)}E.length&&E[0].operation(function(){for(var H=0;H<E.length;H++)u(E[H])})}}var Ar=!1;function cr(){Ar||(kn(),Ar=!0)}function kn(){var u;Ne(window,"resize",function(){u==null&&(u=setTimeout(function(){u=null,Cn(Br)},100))}),Ne(window,"blur",function(){return Cn(us)})}function Br(u){var g=u.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.scrollbarsClipped=!1,u.setSize()}for(var Hr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Xi=0;Xi<10;Xi++)Hr[Xi+48]=Hr[Xi+96]=String(Xi);for(var ts=65;ts<=90;ts++)Hr[ts]=String.fromCharCode(ts);for(var Ko=1;Ko<=12;Ko++)Hr[Ko+111]=Hr[Ko+63235]="F"+Ko;var jo={};jo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},jo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},jo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-Line truncated
`,"start")},toggleOverwrite:function(u){return u.toggleOverwrite()}};function Zl(u,g){var E=Er(u.doc,g),S=Rr(E);return S!=E&&(g=qe(S)),Ou(!0,u,S,g,1)}function mA(u,g){var E=Er(u.doc,g),S=ni(E);return S!=E&&(g=qe(S)),Ou(!0,u,E,g,-1)}function ec(u,g){var E=Zl(u,g.line),S=Er(u.doc,E.line),D=ve(S,u.doc.direction);if(!D||D[0].level==0){var H=Math.max(E.ch,S.text.search(/\S/)),ce=g.line==E.line&&g.ch<=H&&g.ch;return fn(E.line,ce?0:H,E.sticky)}return E}function Xl(u,g,E){if(typeof g=="string"&&(g=au[g],!g))return!1;u.display.input.ensurePolled();var S=u.display.shift,D=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),E&&(u.display.shift=!1),D=g(u)!=yt}finally{u.display.shift=S,u.state.suppressEdits=!1}return D}function jc(u,g,E){for(var S=0;S<u.state.keyMaps.length;S++){var D=ji(g,u.state.keyMaps[S],E,u);if(D)return D}return u.options.extraKeys&&ji(g,u.options.extraKeys,E,u)||ji(g,u.options.keyMap,E,u)}var ka=new Re;function Qs(u,g,E,S){var D=u.state.keySeq;if(D){if(aa(g))return"handled";if(/\'$/.test(g)?u.state.keySeq=null:ka.set(50,function(){u.state.keySeq==D&&(u.state.keySeq=null,u.display.input.reset())}),Pl(u,D+" "+g,E,S))return!0}return Pl(u,g,E,S)}function Pl(u,g,E,S){var D=jc(u,g,S);return D=="multi"&&(u.state.keySeq=g),D=="handled"&&Es(u,"keyHandled",u,g,E),(D=="handled"||D=="multi")&&(nn(E),uA(u)),!!D}function ys(u,g){var E=Ca(g,!0);return E?g.shiftKey&&!u.state.keySeq?Qs(u,"Shift-"+E,g,function(S){return Xl(u,S,!0)})||Qs(u,E,g,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return Xl(u,S)}):Qs(u,E,g,function(S){return Xl(u,S)}):!1}function Cf(u,g,E){return Qs(u,"'"+E+"'",g,function(S){return Xl(u,S,!0)})}var Bd=null;function Od(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&(g.curOp.focus=nt(Dt(g)),!ct(g,u))){f&&C<11&&u.keyCode==27&&(u.returnValue=!1);var E=u.keyCode;g.display.shift=E==16||u.shiftKey;var S=ys(g,u);U&&(Bd=S?E:null,!S&&E==88&&!ui&&(V?u.metaKey:u.ctrlKey)&&g.replaceSelection("",null,"cut")),i&&!V&&!S&&E==46&&u.shiftKey&&!u.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&gA(g)}}function gA(u){var g=u.display.lineDiv;Ge(g,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(Se(g,"CodeMirror-crosshair"),Te(document,"keyup",E),Te(document,"mouseover",E))}Ne(document,"keyup",E),Ne(document,"mouseover",E)}function LA(u){u.keyCode==16&&(this.doc.sel.shift=!1),ct(this,u)}function Wc(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&!(Gu(g.display,u)||ct(g,u)||u.ctrlKey&&!u.altKey||V&&u.metaKey)){var E=u.keyCode,S=u.charCode;if(U&&E==Bd){Bd=null,nn(u);return}if(!(U&&(!u.which||u.which<10)&&ys(g,u))){var D=String.fromCharCode(S??E);D!="\b"&&(Cf(g,u,D)||g.display.input.onKeyPress(u))}}}var Iu=400,yA=function(u,g,E){this.time=u,this.pos=g,this.button=E};yA.prototype.compare=function(u,g,E){return this.time+Iu>u&&gr(g,this.pos)==0&&E==this.button};var Pa,ta;function Th(u,g){var E=+new Date;return ta&&ta.compare(E,u,g)?(Pa=ta=null,"triple"):Pa&&Pa.compare(E,u,g)?(ta=new yA(E,u,g),Pa=null,"double"):(Pa=new yA(E,u,g),ta=null,"single")}function Tu(u){var g=this,E=g.display;if(!(ct(g,u)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=u.shiftKey,Gu(E,u)){x||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!kh(g,u)){var S=TA(g,u),D=or(u),H=S?Th(S,D):"single";Rt(g).focus(),D==1&&g.state.selectingText&&g.state.selectingText(u),!(S&&Id(g,D,S,H,u))&&(D==1?S?nd(g,S,H,u):Tr(u)==E.scroller&&nn(u):D==2?(S&&ri(g.doc,S),setTimeout(function(){return E.input.focus()},20)):D==3&&(pe?g.display.input.onContextMenu(u):wh(g)))}}}function Id(u,g,E,S,D){var H="Click";return S=="double"?H="Double"+H:S=="triple"&&(H="Triple"+H),H=(g==1?"Left":g==2?"Middle":"Right")+H,Qs(u,Ta(H,D),D,function(ce){if(typeof ce=="string"&&(ce=au[ce]),!ce)return!1;var _e=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),_e=ce(u,E)!=yt}finally{u.state.suppressEdits=!1}return _e})}function td(u,g,E){var S=u.getOption("configureMouse"),D=S?S(u,g,E):{};if(D.unit==null){var H=ne?E.shiftKey&&E.metaKey:E.altKey;D.unit=H?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(D.extend==null||u.doc.extend)&&(D.extend=u.doc.extend||E.shiftKey),D.addNew==null&&(D.addNew=V?E.metaKey:E.ctrlKey),D.moveOnDrag==null&&(D.moveOnDrag=!(V?E.altKey:E.ctrlKey)),D}function nd(u,g,E,S){f?setTimeout(St(oh,u),0):u.curOp.focus=nt(Dt(u));var D=td(u,E,S),H=u.doc.sel,ce;u.options.dragDrop&&on&&!u.isReadOnly()&&E=="single"&&(ce=H.contains(g))>-1&&(gr((ce=H.ranges[ce]).from(),g)<0||g.xRel>0)&&(gr(ce.to(),g)>0||g.xRel<0)?Fp(u,S,g,D):dh(u,S,g,D)}function Fp(u,g,E,S){var D=u.display,H=!1,ce=Ro(u,function(Ue){x&&(D.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:wh(u)),Te(D.wrapper.ownerDocument,"mouseup",ce),Te(D.wrapper.ownerDocument,"mousemove",_e),Te(D.scroller,"dragstart",ke),Te(D.scro Line truncated
`)==g){if(S.ranges.length%UA.text.length==0){Ue=[];for(var mt=0;mt<UA.text.length;mt++)Ue.push(H.splitLines(UA.text[mt]))}}else ke.length==S.ranges.length&&u.options.pasteLinesPerSelection&&(Ue=Pn(ke,function(Hn){return[Hn]}));for(var Bt=u.curOp.updateInput,tn=S.ranges.length-1;tn>=0;tn--){var qt=S.ranges[tn],xn=qt.from(),Fn=qt.to();qt.empty()&&(E&&E>0?xn=fn(xn.line,xn.ch-E):u.state.overwrite&&!_e?Fn=fn(Fn.line,Math.min(Er(H,Fn.line).text.length,Fn.ch+Vn(ke).length)):_e&&UA&&UA.lineWise&&UA.text.join(`
`)==ke.join(`
`)&&(xn=Fn=fn(xn.line,0)));var Kn={from:xn,to:Fn,text:Ue?Ue[tn%Ue.length]:ke,origin:D||(_e?"paste":u.state.cutIncoming>ce?"cut":"+input")};Gc(u.doc,Kn),Es(u,"inputRead",u,Kn)}g&&!_e&&bf(u,g),ms(u),u.curOp.updateInput<2&&(u.curOp.updateInput=Bt),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Qc(u,g){var E=u.clipboardData&&u.clipboardData.getData("Text");if(E)return u.preventDefault(),!g.isReadOnly()&&!g.options.disableInput&&g.hasFocus()&&Xs(g,function(){return Hf(g,E,0,null,"paste")}),!0}function bf(u,g){if(!(!u.options.electricChars||!u.options.smartIndent))for(var E=u.doc.sel,S=E.ranges.length-1;S>=0;S--){var D=E.ranges[S];if(!(D.head.ch>100||S&&E.ranges[S-1].head.line==D.head.line)){var H=u.getModeAt(D.head),ce=!1;if(H.electricChars){for(var _e=0;_e<H.electricChars.length;_e++)if(g.indexOf(H.electricChars.charAt(_e))>-1){ce=fh(u,D.head.line,"smart");break}}else H.electricInput&&H.electricInput.test(Er(u.doc,D.head.line).text.slice(0,D.head.ch))&&(ce=fh(u,D.head.line,"smart"));ce&&Es(u,"electricInput",u,D.head.line)}}}function Rd(u){for(var g=[],E=[],S=0;S<u.doc.sel.ranges.length;S++){var D=u.doc.sel.ranges[S].head.line,H={anchor:fn(D,0),head:fn(D+1,0)};E.push(H),g.push(u.getRange(H.anchor,H.head))}return{text:g,ranges:E}}function Dd(u,g,E,S){u.setAttribute("autocorrect",E?"on":"off"),u.setAttribute("autocapitalize",S?"on":"off"),u.setAttribute("spellcheck",!!g)}function id(){var u=Me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),g=Me("div",[u],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return x?u.style.width="1000px":u.setAttribute("wrap","off"),$&&(u.style.border="1px solid black"),g}function Rh(u){var g=u.optionHandlers,E=u.helpers={};u.prototype={constructor:u,focus:function(){Rt(this).focus(),this.display.input.focus()},setOption:function(S,D){var H=this.options,ce=H[S];H[S]==D&&S!="mode"||(H[S]=D,g.hasOwnProperty(S)&&Ro(this,g[S])(this,D,ce),lt(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,D){this.state.keyMaps[D?"push":"unshift"](ao(S))},removeKeyMap:function(S){for(var D=this.state.keyMaps,H=0;H<D.length;++H)if(D[H]==S||D[H].name==S)return D.splice(H,1),!0},addOverlay:ai(function(S,D){var H=S.token?S:u.getMode(this.options,S);if(H.startState)throw new Error("Overlays may not be stateful.");Dn(this.state.overlays,{mode:H,modeSpec:S,opaque:D&&D.opaque,priority:D&&D.priority||0},function(ce){return ce.priority}),this.state.modeGen++,Wa(this)}),removeOverlay:ai(function(S){for(var D=this.state.overlays,H=0;H<D.length;++H){var ce=D[H].modeSpec;if(ce==S||typeof S=="string"&&ce.name==S){D.splice(H,1),this.state.modeGen++,Wa(this);return}}}),indentLine:ai(function(S,D,H){typeof D!="string"&&typeof D!="number"&&(D==null?D=this.options.smartIndent?"smart":"prev":D=D?"add":"subtract"),_n(this.doc,S)&&fh(this,S,D,H)}),indentSelection:ai(function(S){for(var D=this.doc.sel.ranges,H=-1,ce=0;ce<D.length;ce++){var _e=D[ce];if(_e.empty())_e.head.line>H&&(fh(this,_e.head.line,S,!0),H=_e.head.line,ce==this.doc.sel.primIndex&&ms(this));else{var ke=_e.from(),Ue=_e.to(),mt=Math.max(H,ke.line);H=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var Bt=mt;Bt<H;++Bt)fh(this,Bt,S);var tn=this.doc.sel.ranges;ke.ch==0&&D.length==tn.length&&tn[ce].from().ch>0&&Tl(this.doc,ce,new Mo(ke,tn[ce].to()),Et)}}}),getTokenAt:function(S,D){return Wl(this,S,D)},getLineTokens:function(S,D){return Wl(this,fn(S),D,!0)},getTokenTypeAt:function(S){S=vi(this.doc,S);var D=Sa(this,Er(this.doc,S.line)),H=0,ce=(D.length-1)/2,_e=S.ch,ke;if(_e==0)ke=D[2];else for(;;){var Ue=H+ce>>1;if((Ue?D[Ue*2-1]:0)>=_e)ce=Ue;else if(D[Ue*2+1]<_e)H=Ue+1;else{ke=D[Ue*2+2];break}}var mt=ke?ke.indexOf("overlay "):-1;return mt<0?ke:mt==0?null:ke.slice(0,mt-1)},getModeAt:function(S){var D=this.doc.mode;return D.innerMode?u.innerMode(D,this.getTokenAt(S).state).mode:D},getHelper:function(S,D){return this.getHelpers(S,D)[0]},getHelpers:function(S,D){var H=[];if(!E.hasOwnProperty(D))return H;var ce=E[D],_e=this.getModeAt(S);if(typeof _e[D]=="string")ce[_e[D]]&&H.push(ce[_e[D]]);else if(_e[D])for(var ke=0;ke<_e[D].length;ke++){var Ue=ce[_e[D][ke]];Ue&&H.push(Ue)}else _e.helperType&&ce[_e.helperType]?H.push(ce[_e.helperType]):ce[_e.name]&&H.push(ce[_e.name]);for(var mt=0;mt<ce._global.length;mt++){var Bt=ce._global[mt];Bt.pred(_e,this)&&Ye(H,Bt.val)==-1&&H.push(Bt.val)}return H},getStateAfter:function(S,D){var H=this.doc;return S=iA(H,S??H.first+H.size-1),bi(this,S+1,D).state},cursorCoords:function(S,D){var H,ce=this.doc.sel.primary();return S==null?H=ce.head:typeof S=="object"?H=vi(this.doc,S):H=S?ce.from():ce.to(),dn(this,H,D||"page")},charCoords:function(S,D){return In(this,vi(this.doc,S),D||"page")},coordsChar:function(S,D){return S=rn(this,S,D||"page"),Go(this,S.left,S.top)},lineAtHeight:function(S,D){return S=rn(this,{top:S,left:0},D||"page").top,xt( Line truncated
`,Kn=We(Fn,qt)?"w":tn&&Fn==`
`?"n":!tn||/\s/.test(Fn)?null:"p";if(tn&&!xn&&!Kn&&(Kn="s"),Bt&&Bt!=Kn){E<0&&(E=1,mt(),g.sticky="after");break}if(Kn&&(Bt=Kn),E>0&&!mt(!xn))break}var Hn=Ju(u,g,H,ce,!0);return Qi(H,Hn)&&(Hn.hitSide=!0),Hn}function Kd(u,g,E,S){var D=u.doc,H=g.left,ce;if(S=="page"){var _e=Math.min(u.display.wrapper.clientHeight,Rt(u).innerHeight||D(u).documentElement.clientHeight),ke=Math.max(_e-.5*ja(u.display),3);ce=(E>0?g.bottom:g.top)+E*ke}else S=="line"&&(ce=E>0?g.bottom+3:g.top-3);for(var Ue;Ue=Go(u,H,ce),!!Ue.outside;){if(E<0?ce<=0:ce>=D.height){Ue.hitSide=!0;break}ce+=E*5}return Ue}var Wo=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wo.prototype.init=function(u){var g=this,E=this,S=E.cm,D=E.div=u.lineDiv;D.contentEditable=!0,Dd(D,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function H(_e){for(var ke=_e.target;ke;ke=ke.parentNode){if(ke==D)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Ne(D,"paste",function(_e){!H(_e)||ct(S,_e)||Qc(_e,S)||C<=11&&setTimeout(Ro(S,function(){return g.updateFromDOM()}),20)}),Ne(D,"compositionstart",function(_e){g.composing={data:_e.data,done:!1}}),Ne(D,"compositionupdate",function(_e){g.composing||(g.composing={data:_e.data,done:!1})}),Ne(D,"compositionend",function(_e){g.composing&&(_e.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),Ne(D,"touchstart",function(){return E.forceCompositionEnd()}),Ne(D,"input",function(){g.composing||g.readFromDOMSoon()});function ce(_e){if(!(!H(_e)||ct(S,_e))){if(S.somethingSelected())Pd({lineWise:!1,text:S.getSelections()}),_e.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var ke=Rd(S);Pd({lineWise:!0,text:ke.text}),_e.type=="cut"&&S.operation(function(){S.setSelections(ke.ranges,0,Et),S.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Ue=UA.text.join(`
`);if(_e.clipboardData.setData("Text",Ue),_e.clipboardData.getData("Text")==Ue){_e.preventDefault();return}}var mt=id(),Bt=mt.firstChild;Dd(Bt),S.display.lineSpace.insertBefore(mt,S.display.lineSpace.firstChild),Bt.value=UA.text.join(`
`);var tn=nt(ut(D));$e(Bt),setTimeout(function(){S.display.lineSpace.removeChild(mt),tn.focus(),tn==D&&E.showPrimarySelection()},50)}}Ne(D,"copy",ce),Ne(D,"cut",ce)},Wo.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},Wo.prototype.prepareSelection=function(){var u=Zi(this.cm,!1);return u.focus=nt(ut(this.div))==this.div,u},Wo.prototype.showSelection=function(u,g){!u||!this.cm.display.view.length||((u.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(u))},Wo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wo.prototype.showPrimarySelection=function(){var u=this.getSelection(),g=this.cm,E=g.doc.sel.primary(),S=E.from(),D=E.to();if(g.display.viewTo==g.display.viewFrom||S.line>=g.display.viewTo||D.line<g.display.viewFrom){u.removeAllRanges();return}var H=vl(g,u.anchorNode,u.anchorOffset),ce=vl(g,u.focusNode,u.focusOffset);if(!(H&&!H.bad&&ce&&!ce.bad&&gr(fa(H,ce),S)==0&&gr(fs(H,ce),D)==0)){var _e=g.display.view,ke=S.line>=g.display.viewFrom&&tc(g,S)||{node:_e[0].measure.map[2],offset:0},Ue=D.line<g.display.viewTo&&tc(g,D);if(!Ue){var mt=_e[_e.length-1].measure,Bt=mt.maps?mt.maps[mt.maps.length-1]:mt.map;Ue={node:Bt[Bt.length-1],offset:Bt[Bt.length-2]-Bt[Bt.length-3]}}if(!ke||!Ue){u.removeAllRanges();return}var tn=u.rangeCount&&u.getRangeAt(0),qt;try{qt=Ct(ke.node,ke.offset,Ue.offset,Ue.node)}catch{}qt&&(!i&&g.state.focused?(u.collapse(ke.node,ke.offset),qt.collapsed||(u.removeAllRanges(),u.addRange(qt))):(u.removeAllRanges(),u.addRange(qt)),tn&&u.anchorNode==null?u.addRange(tn):i&&this.startGracePeriod()),this.rememberSelection()}},Wo.prototype.startGracePeriod=function(){var u=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){u.gracePeriod=!1,u.selectionChanged()&&u.cm.operation(function(){return u.cm.curOp.selectionChanged=!0})},20)},Wo.prototype.showMultipleSelections=function(u){je(this.cm.display.cursorDiv,u.cursors),je(this.cm.display.selectionDiv,u.selection)},Wo.prototype.rememberSelection=function(){var u=this.getSelection();this.lastAnchorNode=u.anchorNode,this.lastAnchorOffset=u.anchorOffset,this.lastFocusNode=u.focusNode,this.lastFocusOffset=u.focusOffset},Wo.prototype.selectionInEditor=function(){var u=this.getSelection();if(!u.rangeCount)return!1;var g=u.getRangeAt(0).commonAncestorContainer;return it(this.div,g)},Wo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt(ut(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wo.prototype.blur=function(){this.div.blur()},Wo.prototype.getField=function(){return this.div},Wo.prototype.supportsTouch=function(){return!0},Wo.prototype.receivedFocus=function(){var u=this,g=this;this.selectionInEditor()?setTimeout(function(){return u.pollSelection()},20):Xs(this.cm,function(){return g.cm.curOp.selectionChanged=!0});function E(){g.cm.state.focused&&(g.pollSelection(),g.polling.set(g.cm.options.pollInterval,E))}this.polling.set(this.cm.options.pollInterval,E)},Wo.prototype.selectionChanged=function(){var u=this.getSelection();return u.anchorNode!=this.lastAnchorNode||u.anchorOffset!=this.lastAnchorOffset||u.focusNode!=this.lastFocusNode||u.focusOffset!=this.lastFocusOffset},Wo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var u=this.getSelection(),g=this.cm;if(re&&R&&this.cm.display.gutterSpecs.length&&zA(u.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=vl(g,u.anchorNode,u.anchorOffset),S=vl(g,u.focusNode,u.focusOffset);E&&S&&Xs(g,function(){ss(g.doc,qa(E,S),Et),(E.bad||S.bad)&&(g.curOp.selectionChanged=!0)})}}},Wo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var u=this.cm,g=u.display,E=u.doc.sel.primary(),S=E.from(),D=E.to();if(S.ch==0&&S.line>u.firstLine()&&(S=fn(S.line-1,Er(u.doc,S.line-1).length)),D.ch==Er(u.doc,D.line).text.length&&D.line<u.lastLine()&&(D=fn(D.line+1,0)),S.line<g.viewFrom||D.line>g.viewTo-1)return!1;var H,ce,_e;S.line==g.viewFrom||(H=tu(u,S.line))==0?(ce=qe(g.view[0].line),_e=g.view[0].node):(ce=qe(g.view[H].line),_e=g.view[H-1].node.nextSibling);var ke=tu(u,D.line),Ue,mt;if(ke==g.view.length-1?(Ue=g.viewTo-1,mt=g.lineDiv.lastChild):(Ue=qe(g.view[ke+1].line)-1,mt=g.view[ke+1].node.previousSibling),!_e)return!1;for(var Bt=u.doc.splitLines(zp(u,_e,mt,ce,Ue)),tn=wa(u.doc,fn(ce,0),fn(Ue,Er(u.doc,Ue).text.length));Bt.length>1&&tn.length>1;)if(Vn(Bt)==Vn(tn))Bt.pop(),tn.pop(),Ue--;else if(Bt[0]==tn[0])Bt.shift(),tn.shift(),ce++;else break;for(var qt=0,xn=0,Fn=Bt[0],Kn=tn[0],Hn=Math.min(Fn.length,Kn.length);qt<Hn&&Fn.charCodeAt(qt)==Kn.charCodeAt(qt);)++qt;for(var br=Vn(Bt),fr=Vn(tn),Pr=Math.min(br.length-(Bt.length==1?qt:0),fr.length-(tn. Line truncated
`),$e(D))}else return;ce.type=="cut"&&(S.state.cutIncoming=+new Date)}}Ne(D,"cut",H),Ne(D,"copy",H),Ne(u.scroller,"paste",function(ce){if(!(Gu(u,ce)||ct(S,ce))){if(!D.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var _e=new Event("paste");_e.clipboardData=ce.clipboardData,D.dispatchEvent(_e)}}),Ne(u.lineSpace,"selectstart",function(ce){Gu(u,ce)||nn(ce)}),Ne(D,"compositionstart",function(){var ce=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:ce,range:S.markText(ce,S.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(D,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Ra.prototype.createField=function(u){this.wrapper=id(),this.textarea=this.wrapper.firstChild;var g=this.cm.options;Dd(this.textarea,g.spellcheck,g.autocorrect,g.autocapitalize)},Ra.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Ra.prototype.prepareSelection=function(){var u=this.cm,g=u.display,E=u.doc,S=Zi(u);if(u.options.moveInputWithCursor){var D=dn(u,E.sel.primary().head,"div"),H=g.wrapper.getBoundingClientRect(),ce=g.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,D.top+ce.top-H.top)),S.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,D.left+ce.left-H.left))}return S},Ra.prototype.showSelection=function(u){var g=this.cm,E=g.display;je(E.cursorDiv,u.cursors),je(E.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Ra.prototype.reset=function(u){if(!(this.contextMenuPending||this.composing&&u)){var g=this.cm;if(this.resetting=!0,g.somethingSelected()){this.prevInput="";var E=g.getSelection();this.textarea.value=E,g.state.focused&&$e(this.textarea),f&&C>=9&&(this.hasSelection=E)}else u||(this.prevInput=this.textarea.value="",f&&C>=9&&(this.hasSelection=null));this.resetting=!1}},Ra.prototype.getField=function(){return this.textarea},Ra.prototype.supportsTouch=function(){return!1},Ra.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||nt(ut(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ra.prototype.blur=function(){this.textarea.blur()},Ra.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ra.prototype.receivedFocus=function(){this.slowPoll()},Ra.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Ra.prototype.fastPoll=function(){var u=!1,g=this;g.pollingFast=!0;function E(){var S=g.poll();!S&&!u?(u=!0,g.polling.set(60,E)):(g.pollingFast=!1,g.slowPoll())}g.polling.set(20,E)},Ra.prototype.poll=function(){var u=this,g=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!g.state.focused||Dr(E)&&!S&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var D=E.value;if(D==S&&!g.somethingSelected())return!1;if(f&&C>=9&&this.hasSelection===D||V&&/[\uf700-\uf7ff]/.test(D))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var H=D.charCodeAt(0);if(H==8203&&!S&&(S="​"),H==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,_e=Math.min(S.length,D.length);ce<_e&&S.charCodeAt(ce)==D.charCodeAt(ce);)++ce;return Xs(g,function(){Hf(g,D.slice(ce),S.length-ce,null,u.composing?"*compose":null),D.length>1e3||D.indexOf(`
`)>-1?E.value=u.prevInput="":u.prevInput=D,u.composing&&(u.composing.range.clear(),u.composing.range=g.markText(u.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ra.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ra.prototype.onKeyPress=function(){f&&C>=9&&(this.hasSelection=null),this.fastPoll()},Ra.prototype.onContextMenu=function(u){var g=this,E=g.cm,S=E.display,D=g.textarea;g.contextMenuPending&&g.contextMenuPending();var H=TA(E,u),ce=S.scroller.scrollTop;if(!H||U)return;var _e=E.options.resetSelectionOnContextMenu;_e&&E.doc.sel.contains(H)==-1&&Ro(E,ss)(E.doc,qa(H),Et);var ke=D.style.cssText,Ue=g.wrapper.style.cssText,mt=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",D.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(u.clientY-mt.top-5)+"px; left: "+(u.clientX-mt.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Bt;x&&(Bt=D.ownerDocument.defaultView.scrollY),S.input.focus(),x&&D.ownerDocument.defaultView.scrollTo(null,Bt),S.input.reset(),E.somethingSelected()||(D.value=g.prevInput=" "),g.contextMenuPending=qt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function tn(){if(D.selectionStart!=null){var Fn=E.somethingSelected(),Kn="​"+(Fn?D.value:"");D.value="⇚",D.value=Kn,g.prevInput=Fn?"":"​",D.selectionStart=1,D.selectionEnd=Kn.length,S.selForContextMenu=E.doc.sel}}function qt(){if(g.contextMenuPending==qt&&(g.contextMenuPending=!1,g.wrapper.style.cssText=Ue,D.style.cssText=ke,f&&C<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=ce),D.selectionStart!=null)){(!f||f&&C<9)&&tn();var Fn=0,Kn=function(){S.selForContextMenu==E.doc.sel&&D.selectionStart==0&&D.selectionEnd>0&&g.prevInput=="​"?Ro(E,sl)(E):Fn++<10?S.detectingSelectAll=setTimeout(Kn,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(Kn,200)}}if(f&&C>=9&&tn(),pe){dr(u);var xn=function(){Te(window,"mouseup",xn),setTimeout(qt,20)};Ne(window,"mouseup",xn)}else setTimeout(qt,50)},Ra.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Ra.prototype.setUneditable=function(){},Ra.prototype.needsContentAttribute=!1;function Cm(u,g){if(g=g?Ke(g):{},g.value=u.value,!g.tabindex&&u.tabIndex&&(g.tabindex=u.tabIndex),!g.placeholder&&u.placeholder&&(g.placeholder=u.placeholder),g.autofocus==null){var E=nt(ut(u));g.autofocus=E==u||u.getAttribute("autofocus")!=null&&E==document.body}function S(){u.value=_e.getValue()}var D;if(u.form&&(Ne(u.form,"submit",S),!g.leaveSubmitMethodAlone)){var H=u.form;D=H.submit;try{var ce=H.submit=function(){S(),H.submit=D,H.submit(),H.submit=ce}}catch{}}g.finishInit=function(ke){ke.save=S,ke.getTextArea=function(){return u},ke.toTextArea=function(){ke.toTextArea=isNaN,S(),u.parentNode.removeChild(ke.getWrapperElement()),u.style.display="",u.form&&(Te(u.form,"submit",S),!g.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=D))}},u.style.display="none";var _e=wo(function(ke){return u.parentNode.insertBefore(ke,u.nextSibling)},g);return _e}function Zf(u){u.off=Te,u.on=Ne,u.wheelEventPixels=ou,u.Doc=Kt,u.splitLines=wn,u.countColumn=Pe,u.findColumn=An,u.isWordChar=Yn,u.Pass=yt,u.signal=lt,u.Line=Na,u.changeEnd=ea,u.scrollbarModel=bs,u.Pos=fn,u.cmpPos=gr,u.modes=As,u.mimeModes=qr,u.resolveMode=da,u.getMode=No,u.modeExtensions=zs,u.extendMode=hl,u.copyState=ci,u.startState=bo,u.innerMode=oa,u.commands=au,u.keyMap=jo,u.keyName=Ca,u.isModifierKey=aa,u.lookupKey=ji,u.normalizeKeyMap=ho,u.StringStream=lo,u.SharedTextMarker=dt,u.TextMarker=He,u.LineWidget=de,u.e_preventDefault=nn,u.e_stopPropagation=On,u.e_stop=dr,u.addClass=Ge,u.contains=it,u.rmClass=Se,u.keyNames=Hr}Rl(wo),Rh(wo);var CA="iter insert remove copy getEditor constructor".split(" ");for(var xf in Kt.prototype)Kt.prototype.hasOwnProperty(xf)&&Ye(CA,xf)<0&&(wo.prototype[xf]=function(u){return function(){return u.apply(this.doc,arguments)}}(Kt.prototype[xf]));return Gt(Kt),wo.inputStyles={textarea:Ra,contenteditable:Wo},wo.defineMode=function(u){!wo.defaults.mode&&u!="null"&&(wo.defaults.mode=u),_s.apply(this,arguments)},wo.defineMIME=La,wo.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),wo.defineMIME("text/plain","null"),wo.defineExtension=function(u,g){wo.prototype[u]=g},wo.defineDocExtension=function(u,g){Kt.prototype[u]=g},wo.fromTextArea=Cm,Zf(wo),wo.version="5.65.20",wo})}(l2)),l2.exports}var tse=g3();const bp=Gl(tse);var FT={exports:{}},LT;function nse(){return LT||(LT=1,function(n,e){(function(t){t(g3())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,l=i.statementIndent,o=i.jsonld,f=i.json||o,C=i.trackScope!==!1,x=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,R=function(){function qe(Io){return{type:Io,style:"keyword"}}var xt=qe("keyword a"),_n=qe("keyword b"),jn=qe("keyword c"),fn=qe("keyword d"),gr=qe("operator"),Qi={type:"atom",style:"atom"};return{if:qe("if"),while:xt,with:xt,else:_n,do:_n,try:_n,finally:_n,return:fn,break:fn,continue:fn,new:qe("new"),delete:jn,void:jn,throw:jn,debugger:qe("debugger"),var:qe("var"),const:qe("var"),let:qe("var"),function:qe("function"),catch:qe("catch"),for:qe("for"),switch:qe("switch"),case:qe("case"),default:qe("default"),in:gr,typeof:gr,instanceof:gr,true:Qi,false:Qi,null:Qi,undefined:Qi,NaN:Qi,Infinity:Qi,this:qe("this"),class:qe("class"),super:qe("atom"),yield:jn,export:qe("export"),import:qe("import"),extends:jn,await:jn}}(),P=/[+\-*&%=<>!?|~^@]/,U=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(qe){for(var xt=!1,_n,jn=!1;(_n=qe.next())!=null;){if(!xt){if(_n=="/"&&!jn)return;_n=="["?jn=!0:jn&&_n=="]"&&(jn=!1)}xt=!xt&&_n=="\\"}}var W,X;function $(qe,xt,_n){return W=qe,X=_n,xt}fun Line truncated
${B}`),N].join(`
${o}`)}return C}(n,"",0)}var Xv={exports:{}},sse=Xv.exports,jT;function ase(){return jT||(jT=1,function(n,e){(function(t,r){r(e)})(sse,function(t){const r={isWhiteSpace:function(Ge){return Ge===" "||Ge===" "||Ge==="\uFEFF"||Ge>=" "&&Ge<="\r"||Ge===" "||Ge>=" "&&Ge<=" "||Ge==="\u2028"||Ge==="\u2029"||Ge===" "||Ge===" "||Ge===" "},isWhiteSpaceJSON:function(Ge){return Ge===" "||Ge===" "||Ge===`
`||Ge==="\r"},isLineTerminator:function(Ge){return Ge===`
`||Ge==="\r"||Ge==="\u2028"||Ge==="\u2029"},isLineTerminatorJSON:function(Ge){return Ge===`
`||Ge==="\r"},isIdentifierStart:function(Ge){return Ge==="$"||Ge==="_"||Ge>="A"&&Ge<="Z"||Ge>="a"&&Ge<="z"||Ge>="€"&&r.NonAsciiIdentifierStart.test(Ge)},isIdentifierPart:function(Ge){return Ge==="$"||Ge==="_"||Ge>="A"&&Ge<="Z"||Ge>="a"&&Ge<="z"||Ge>="0"&&Ge<="9"||Ge>="€"&&r.NonAsciiIdentifierPart.test(Ge)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
`,r:"\r",t:" ",v:"\v","/":"/"},C=Object.hasOwn,x={};function B(nt,Ge){(typeof nt!="string"||!(nt instanceof String))&&(nt=String(nt));const Ie=Ge.mode==="json5",$e=Ge.ignoreBOM,gt=Ge.ignoreComments||Ge.mode==="cjson"||Ie,Dt=Ge.ignoreTrailingCommas||Ie,ut=Ge.ignoreProtoKey,Rt=Ge.ignorePrototypeKeys,St=Ge.allowSingleQuotedStrings||Ie,Ke=Ge.allowDuplicateObjectKeys,Pe=Ge.reviver,Re=Ge.tokenize,Ye=Ge.rawTokens,vt=Ge.tokenLocations,yt=Ge.tokenPaths,Et=Ie?r.isLineTerminator:r.isLineTerminatorJSON,Zt=Ie?r.isWhiteSpace:r.isWhiteSpaceJSON,Ut=nt.length;let An=0,hr=0,Vt=0;const Vn=[];let Pn,Dn,Ln;if(Re){let Ve=null,Te,lt;Pn=function(){if(Ve!==null)throw Error("internal error, token overlap");Te=An+1,lt=Vt-hr+1,Ve=Vt},Dn=function(ct,Ft){if(Ve!==Vt){const jt={type:ct};Ye&&(jt.raw=nt.substr(Ve,Vt-Ve)),Ft!==void 0&&(jt.value=Ft),vt&&(jt.location={start:{column:lt,line:Te,offset:Ve}}),yt&&(jt.path=Ln.slice()),Vn.push(jt)}return Ve=null,Ft},yt&&(Ln=[])}function Ir(){let Ve;return Vt<Ut?Ve=`Unexpected token ${JSON.stringify(nt[Vt])}`:Ve="Unexpected end of input",Ve}function rr(Ve){const Te=Vt-hr+1;++An;const lt=we(Ve,nt,Vt,An,Te),ct=SyntaxError(lt.message);return ct.reason=Ve,ct.excerpt=lt.excerpt,ct.pointer=lt.pointer,ct.location={start:{column:Te,line:An,offset:Vt}},ct}function Yn(Ve){throw Ve||(Ve=Ir()),rr(Ve)}function We(Ve){Ve==="\r"&&nt[Vt]===`
`&&++Vt,hr=Vt,++An}function he(){if(Vt<Ut){Pn?.();const Ve=nt[Vt++];if(Ve==='"'||Ve==="'"&&St){const Te=p(Ve);return Dn?.("literal",Te),Te}if(Ve==="{")return Dn?.("symbol","{"),ir();if(Ve==="[")return Dn?.("symbol","["),Xe();if(Ve==="-"||Ve==="."||l(Ve)||Ie&&(Ve==="+"||Ve==="I"||Ve==="N")){const Te=ae();return Dn?.("literal",Te),Te}if(Ve==="n")return Jt("null"),Dn?.("literal",null),null;if(Ve==="t")return Jt("true"),Dn?.("literal",!0),!0;if(Ve==="f")return Jt("false"),Dn?.("literal",!1),!1;--Vt,Dn?.();return}}function me(){let Ve;if(Vt<Ut){Pn?.();const Te=nt[Vt++];if(Te==='"'||Te==="'"&&St){const lt=p(Te);return Dn?.("literal",lt),lt}if(Te==="{")return Dn?.("symbol","{"),ir();if(Te==="[")return Dn?.("symbol","["),Xe();if(Te==="."||l(Te)){const lt=ae();return Dn?.("literal",lt),lt}if(Ie&&r.isIdentifierStart(Te)||Te==="\\"&&nt[Vt]==="u"){const lt=Vt-1;if(Ve=ve(),Ve===void 0){Vt=lt,Dn?.();return}return Dn?.("literal",Ve),Ve}--Vt,Dn?.();return}}function et(){o(nt)&&(Pn?.(),++Vt,Dn?.("bom"))}function bt(){let Ve;function Te(){Ve||(Ve=!0,--Vt,Pn(),++Vt)}function lt(){Ve&&(Ve=!1,Dn("whitespace"))}for(;Vt<Ut;){const ct=nt[Vt++];if(Et(ct))Pn&&Te(),We(ct);else if(Zt(ct))Pn&&Te();else if(ct==="/"&&gt&&(nt[Vt]==="/"||nt[Vt]==="*"))Pn&&(--Vt,lt(),Pn(),++Vt),Yt(nt[Vt++]==="*"),Dn?.("comment");else{--Vt;break}}Dn&&lt()}function Yt(Ve){for(;Vt<Ut;){const Te=nt[Vt++];if(Et(Te)){if(!Ve){--Vt;return}We(Te)}else if(Te==="*"&&Ve&&nt[Vt]==="/"){++Vt;return}}Ve&&Yn("Unclosed multiline comment")}function Jt(Ve){const Te=Vt;for(let lt=1,ct=Ve.length;lt<ct;++lt)(Vt>=Ut||Ve[lt]!==nt[Vt])&&(Vt=Te-1,Yn()),++Vt}function ir(){let Ve={},Te=!1;for(;Vt<Ut;){bt();const lt=me();Ke===!1&&C(Ve,lt)&&Yn(`Duplicate key: "${lt}"`),bt(),Pn?.();let ct=nt[Vt++];if(Dn?.("symbol",ct),ct==="}"&&lt===void 0)return!Dt&&Te&&(--Vt,Yn("Trailing comma in object")),Ve;if(ct===":"&&lt!==void 0){bt(),Ln?.push(lt);let Ft=he();if(Ln?.pop(),Ft===void 0&&Yn(`No value found for key "${lt}"`),typeof lt!="string"&&(!Ie||typeof lt!="number")&&Yn(`Wrong key type: "${lt}"`),Rt&&(lt in x||x[lt]!=null)||ut&&lt==="__proto__"||(Pe&&(Ft=Pe(lt,Ft)),Ft!==void 0&&(Te=!0,lt==="__proto__"?Ve=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Ft)}}`),Ve):Ve[lt]=Ft)),bt(),Pn?.(),ct=nt[Vt++],Dn?.("symbol",ct),ct!==","){if(ct==="}")return Ve;Yn()}}else--Vt,Yn()}Yn()}function Xe(){const Ve=[];for(;Vt<Ut;){bt(),Ln?.push(Ve.length);let Te=he();Ln?.pop(),bt(),Pn?.();const lt=nt[Vt++];if(Dn?.("symbol",lt),Te!==void 0&&(Pe&&(Te=Pe(String(Ve.length),Te)),Te===void 0?(++Ve.length,Te=!0):Ve.push(Te)),lt===",")Te===void 0&&Yn("Elisions are not supported");else{if(lt==="]")return!Dt&&Te===void 0&&Ve.length&&(--Vt,Yn("Trailing comma in array")),Ve;--Vt,Yn()}}}function ae(){--Vt;let Ve=Vt,Te=nt[Vt++];const lt=function(ct){const Ft=nt.substr(Ve,Vt-Ve);let jt;if(ct?jt=Number.parseInt(Ft.replace(/^0o?/,""),8):jt=Number(Ft),Number.isNaN(jt))--Vt,Yn(`Bad numeric literal - "${nt.substr(Ve,Vt-Ve+1)}"`);else if(!Ie&&!Ft.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Vt,Yn(`Non-json numeric literal - "${nt.substr(Ve,Vt-Ve+1)}"`);else return jt};if((Te==="-"||Te==="+"&&Ie)&&(Te=nt[Vt++]),Te==="N"&&Ie)return Jt("NaN"),Number.NaN;if(Te==="I"&&Ie)return Jt("Infinity"),lt();if(Te>="1"&&Te<="9"){for(;Vt<Ut&&l(nt[Vt]);)++Vt;Te=nt[Vt++]}if(Te==="0"){Te=nt[Vt++];const ct=Te==="o"||Te==="O"||s(Te),Ft=Te==="x"||Te==="X";if(Ie&&(ct||Ft)){for(;Vt<Ut&&(Ft?i:s)(nt[Vt]);)++Vt;let jt=1;return nt[Ve]==="-"?(jt=-1,++Ve):nt[Ve]==="+"&&++Ve,jt*lt(ct)}}if(Te==="."){for(;Vt<Ut&&l(nt[Vt]);)++Vt;Te=nt[Vt++]}if(Te==="e"||Te==="E"){for(Te=nt[Vt++],(Te==="-"||Te==="+")&&++Vt;Vt<Ut&&l(nt[Vt]);)++Vt;Te=nt[Vt++]}return--Vt,lt()}function ve(){--Vt;let Ve="";for(;Vt<Ut;){let Te=nt[Vt++];if(Te==="\\"&&nt[Vt]==="u"&&i(nt[Vt+1])&&i(nt[Vt+2])&&i(nt[Vt+3])&&i(nt[Vt+4])&&(Te=String.fromCharCode(Number.parseInt(nt.substr(Vt+1,4),16)),Vt+=5),Ve.length)if(r.isIdentifierPart(Te))Ve+=Te;else return--Vt,Ve;else if(r.isIdentifierStart(Te))Ve+=Te;else return}Yn()}function p(Ve){let Te="";for(;Vt<Ut;){let lt=nt[Vt++];if(lt===Ve)return Te;if(lt==="\\")if(Vt>=Ut&&Yn(),lt=nt[Vt++],f[lt]&&(Ie||lt!=="v"&&(lt!=="'"||St)))Te+=f[lt];else if(Ie&&Et(lt))We(lt);else if(lt==="u"||lt==="x"&&Ie){const ct=lt==="u"?4:2;for(let Ft=0;Ft<ct;++Ft)Vt>=Ut&&Yn(),i(nt[Vt])||Yn("Bad escape sequence"),Vt++;Te+=String.fromCharCode(Number.parseInt(nt.substr(Vt-ct,ct),16))}else if(Ie&&s(lt)){let ct;lt<"4"&&s(nt[Vt])&&s(nt[Vt+1])?ct=3:s(nt[Vt])?ct=2:ct=1,Vt+=ct-1,Te+=String.fromCharCode(Number.parseInt(nt.substr(Vt-ct,ct),8))}else Ie?Te+=lt:(--Vt,Yn());else Et(lt)?Yn():(!Ie&&lt.charCodeAt(0)<32&&(--Vt,Yn("Unexpected control character")),Te+=lt)}Yn()}$e&&et(),bt();let Ne=he();if(Ne!==void 0||Vt<Ut){if(bt(),Vt>=Ut)return Pe&&(Ne=Pe("",Ne)),Re?Vn:Ne;Yn()}else Yn(Vt?"No data, only a whitespace":"No data, empty input")}function R(nt,Ge){return typeof Ge=="function"?Ge={reviver:Ge}:Ge||(Ge={}),B(nt,Ge)}function P(nt,Ge){Ge||(Ge={});const Ie=Ge.tokenize;Ge.tokenize=!0;const Line truncated
${ut}
${St}
${nt}`):Rt=`Parse error in JSON input:
${ut}
${nt}`,{message:Rt,excerpt:ut,pointer:St}}function Se(nt,Ge){let Ie=G(Ge);const $e=le(nt,Ie)||fe(nt,Ie)||pe(nt,Ie);let gt,Dt,ut;$e?(gt=$e.offset,Dt=$e.line,ut=$e.column,Ie=$e.reason):gt=0,Ge.reason=Ie;const Rt=we(Ie,nt,gt,Dt,ut);return Ge.message=Rt.message,Ge.excerpt=Rt.excerpt,Rt.pointer&&(Ge.pointer=Rt.pointer,Ge.location={start:{column:ut,line:Dt,offset:gt}}),Ge}function xe(nt,Ge){try{return JSON.parse(nt,Ge)}catch(Ie){const $e=Se(nt,Ie);if(Ie.location)throw $e;return R(nt,Ge)}}const je=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),Me=typeof process<"u"&&process.version.startsWith("v4.");function rt(nt){return nt.ignoreBOM||nt.ignoreComments||nt.ignoreTrailingCommas||nt.allowSingleQuotedStrings||nt.allowDuplicateObjectKeys===!1||nt.ignoreProtoKey||nt.ignorePrototypeKeys||nt.mode==="cjson"||nt.mode==="json5"||je||Me}function Ct(nt){if(typeof nt=="function")return nt;if(nt)return nt.reviver}function it(nt,Ge){return Ge||(Ge={}),rt(Ge)?R(nt,Ge):xe(nt,Ct(Ge))}t.parse=it,t.tokenize=P,t.pathToPointer=N,t.pointerToPath=X,t.parseNative=xe,t.parseCustom=R,t.getErrorTexts=we,Object.defineProperty(t,"__esModule",{value:!0})})}(Xv,Xv.exports)),Xv.exports}var lse=ase(),A2={exports:{}},Ase=A2.exports,WT;function use(){return WT||(WT=1,function(n,e){(function(t,r){n.exports=r()})(Ase,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Pe,Re){return Re={exports:{}},Pe(Re,Re.exports),Re.exports}var i=r(function(Pe){function Re(){var Ye=0,vt=1,yt=2,Et=3,Zt=4,Ut=5,An=6,hr=7,Vt=8,Vn=9,Pn=10,Dn=11,Ln=12,Ir=13,rr=14,Yn=15,We=16,he=17,me=0,et=1,bt=2,Yt=3,Jt=4;function ir(p,Ne){return 55296<=p.charCodeAt(Ne)&&p.charCodeAt(Ne)<=56319&&56320<=p.charCodeAt(Ne+1)&&p.charCodeAt(Ne+1)<=57343}function Xe(p,Ne){Ne===void 0&&(Ne=0);var Ve=p.charCodeAt(Ne);if(55296<=Ve&&Ve<=56319&&Ne<p.length-1){var Te=Ve,lt=p.charCodeAt(Ne+1);return 56320<=lt&&lt<=57343?(Te-55296)*1024+(lt-56320)+65536:Te}if(56320<=Ve&&Ve<=57343&&Ne>=1){var Te=p.charCodeAt(Ne-1),lt=Ve;return 55296<=Te&&Te<=56319?(Te-55296)*1024+(lt-56320)+65536:lt}return Ve}function ae(p,Ne,Ve){var Te=[p].concat(Ne).concat([Ve]),lt=Te[Te.length-2],ct=Ve,Ft=Te.lastIndexOf(rr);if(Ft>1&&Te.slice(1,Ft).every(function(nn){return nn==Et})&&[Et,Ir,he].indexOf(p)==-1)return bt;var jt=Te.lastIndexOf(Zt);if(jt>0&&Te.slice(1,jt).every(function(nn){return nn==Zt})&&[Ln,Zt].indexOf(lt)==-1)return Te.filter(function(nn){return nn==Zt}).length%2==1?Yt:Jt;if(lt==Ye&&ct==vt)return me;if(lt==yt||lt==Ye||lt==vt)return ct==rr&&Ne.every(function(nn){return nn==Et})?bt:et;if(ct==yt||ct==Ye||ct==vt)return et;if(lt==An&&(ct==An||ct==hr||ct==Vn||ct==Pn))return me;if((lt==Vn||lt==hr)&&(ct==hr||ct==Vt))return me;if((lt==Pn||lt==Vt)&&ct==Vt)return me;if(ct==Et||ct==Yn)return me;if(ct==Ut)return me;if(lt==Ln)return me;var Gt=Te.indexOf(Et)!=-1?Te.lastIndexOf(Et)-1:Te.length-2;return[Ir,he].indexOf(Te[Gt])!=-1&&Te.slice(Gt+1,-1).every(function(nn){return nn==Et})&&ct==rr||lt==Yn&&[We,he].indexOf(ct)!=-1?me:Ne.indexOf(Zt)!=-1?bt:lt==Zt&&ct==Zt?me:et}this.nextBreak=function(p,Ne){if(Ne===void 0&&(Ne=0),Ne<0)return 0;if(Ne>=p.length-1)return p.length;for(var Ve=ve(Xe(p,Ne)),Te=[],lt=Ne+1;lt<p.length;lt++)if(!ir(p,lt-1)){var ct=ve(Xe(p,lt));if(ae(Ve,Te,ct))return lt;Te.push(ct)}return p.length},this.splitGraphemes=function(p){for(var Ne=[],Ve=0,Te;(Te=this.nextBreak(p,Ve))<p.length;)Ne.push(p.slice(Ve,Te)),Ve=Te;return Ve<p.length&&Ne.push(p.slice(Ve)),Ne},this.iterateGraphemes=function(p){var Ne=0,Ve={next:(function(){var Te,lt;return(lt=this.nextBreak(p,Ne))<p.length?(Te=p.slice(Ne,lt),Ne=lt,{value:Te,done:!1}):Ne<p.length?(Te=p.slice(Ne),Ne=p.length,{value:Te,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Ve[Symbol.iterator]=function(){return Ve}),Ve},this.countGraphemes=function(p){for(var Ne=0,Ve=0,Te;(Te=this.nextBreak(p,Ve))<p.length;)Ve=Te,Ne++;return Ve<p.length&&Ne++,Ne};function ve(p){return 1536<=p&&p<=1541||p==1757||p==1807||p==2274||p==3406||p==69821||70082<=p&&p<=70083||p==72250||72326<=p&&p<=72329||p==73030?Ln:p==13?Ye:p==10?vt:0<=p&&p<=9||11<=p&&p<=12||14<=p&&p<=31||127<=p&&p<=159||p==173||p==1564||p==6158||p==8203||8206<=p&&p<=8207||p==8232||p==8233||8234<=p&&p<=8238||8288<=p&&p<=8292||p==8293||8294<=p&&p<=8303||55296<=p&&p<=57343||p==65279||65520<=p&&p<=65528||65529<=p&&p<=65531||113824<=p&&p<=113827||119155<=p&&p<=119162||p==917504||p==917505||917506<=p&&p<=917535||917632<=p&&p<=917759||918e3<=p&&p<=921599?yt:768<=p&&p<=879||1155<=p&&p<=1159||1160<=p&&p<=1161||1425<=p&&p<=1469||p==1471||1473<=p&&p<=1474||1476<=p&&p<=1477||p==1479||1552<=p&&p<=1562||1611<=p&&p<=1631||p==1648||1750<=p&&p<=1756||1759<=p&&p<=1764||1767<=p&&p<=1768||1770<=p&&p<=1773||p==1809||1840<=p&&p<=1866||1958<=p&&p<=1968||2027<=p&&p<=2035||2070<=p&&p<=2073||2075<=p&&p<=2083||2085<=p&&p<=2087||2089<=p&&p<=2093||2137<=p&&p<=2139||2260<=p&&p<=2273||2275<=p&&p<=2306||p==2362||p==2364||2369<=p&&p<= Line truncated
`)}var Vt={extraLines:2,tabSize:4},Vn=function(Dn,Ln,Ir,rr){rr=Ut({},Vt,rr);var Yn=Dn.split(/\r\n?|\n|\f/),We=Math.max(1,Ln-rr.extraLines)-1,he=Math.min(Ln+rr.extraLines,Yn.length),me=String(he).length,et=hr(Yn,We,Ln,me,rr),bt=An(Yn[Ln-1].substring(0,Ir-1),Ln,me,rr),Yt=yt(" ",bt.length)+"^",Jt=hr(Yn,Ln,he,me,rr);return[et,Yt,Jt].filter(Boolean).join(`
`)};return Vn})}),C=new Error().stack,x=function(Pe){var Re=Object.create(SyntaxError.prototype);return Object.assign(Re,Pe,{name:"SyntaxError"}),Object.defineProperty(Re,"stack",{get:function(){return C?C.replace(/^(.+\n){1,3}/,String(Re)+`
`):""}}),Re},B=function(Pe,Re,Ye,vt,yt){throw x({message:vt?Pe+`
`+f(Re,vt,yt):Pe,rawMessage:Pe,source:Ye,line:vt,column:yt})},R={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Re){for(var Ye=arguments.length,vt=Array(Ye>1?Ye-1:0),yt=1;yt<Ye;yt++)vt[yt-1]=arguments[yt];return"Unexpected token <"+Re+"> at "+vt.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Re){for(var Ye=arguments.length,vt=Array(Ye>1?Ye-1:0),yt=1;yt<Ye;yt++)vt[yt-1]=arguments[yt];return"Unexpected symbol <"+Re+"> at "+vt.filter(Boolean).join(":")}},U={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},N={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},X={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},$={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},re={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function te(Pe){return Pe>="1"&&Pe<="9"}function V(Pe){return Pe>="0"&&Pe<="9"}function ne(Pe){return V(Pe)||Pe>="a"&&Pe<="f"||Pe>="A"&&Pe<="F"}function G(Pe){return Pe==="e"||Pe==="E"}function le(Pe,Re,Ye,vt){var yt=Pe.charAt(Re);if(yt==="\r")Re++,Ye++,vt=1,Pe.charAt(Re)===`
`&&Re++;else if(yt===`
`)Re++,Ye++,vt=1;else if(yt===" "||yt===" ")Re++,vt++;else return null;return{index:Re,line:Ye,column:vt}}function fe(Pe,Re,Ye,vt){var yt=Pe.charAt(Re);return yt in N?{type:N[yt],line:Ye,column:vt+1,index:Re+1,value:null}:null}function pe(Pe,Re,Ye,vt){for(var yt in W)if(W.hasOwnProperty(yt)&&Pe.substr(Re,yt.length)===yt)return{type:W[yt],line:Ye,column:vt+yt.length,index:Re+yt.length,value:yt};return null}function we(Pe,Re,Ye,vt){for(var yt=Re,Et=X._START_;Re<Pe.length;){var Zt=Pe.charAt(Re);switch(Et){case X._START_:{if(Zt==='"')Re++,Et=X.START_QUOTE_OR_CHAR;else return null;break}case X.START_QUOTE_OR_CHAR:{if(Zt==="\\")Re++,Et=X.ESCAPE;else{if(Zt==='"')return Re++,{type:U.STRING,line:Ye,column:vt+Re-yt,index:Re,value:Pe.slice(yt,Re)};Re++}break}case X.ESCAPE:{if(Zt in $){if(Re++,Zt==="u")for(var Ut=0;Ut<4;Ut++){var An=Pe.charAt(Re);if(An&&ne(An))Re++;else return null}Et=X.START_QUOTE_OR_CHAR}else return null;break}}}}function Se(Pe,Re,Ye,vt){var yt=Re,Et=Re,Zt=re._START_;e:for(;Re<Pe.length;){var Ut=Pe.charAt(Re);switch(Zt){case re._START_:{if(Ut==="-")Zt=re.MINUS;else if(Ut==="0")Et=Re+1,Zt=re.ZERO;else if(te(Ut))Et=Re+1,Zt=re.DIGIT;else return null;break}case re.MINUS:{if(Ut==="0")Et=Re+1,Zt=re.ZERO;else if(te(Ut))Et=Re+1,Zt=re.DIGIT;else return null;break}case re.ZERO:{if(Ut===".")Zt=re.POINT;else if(G(Ut))Zt=re.EXP;else break e;break}case re.DIGIT:{if(V(Ut))Et=Re+1;else if(Ut===".")Zt=re.POINT;else if(G(Ut))Zt=re.EXP;else break e;break}case re.POINT:{if(V(Ut))Et=Re+1,Zt=re.DIGIT_FRACTION;else break e;break}case re.DIGIT_FRACTION:{if(V(Ut))Et=Re+1;else if(G(Ut))Zt=re.EXP;else break e;break}case re.EXP:{if(Ut==="+"||Ut==="-")Zt=re.EXP_DIGIT_OR_SIGN;else if(V(Ut))Et=Re+1,Zt=re.EXP_DIGIT_OR_SIGN;else break e;break}case re.EXP_DIGIT_OR_SIGN:{if(V(Ut))Et=Re+1;else break e;break}}Re++}return Et>0?{type:U.NUMBER,line:Ye,column:vt+Et-yt,index:Et,value:Pe.slice(yt,Et)}:null}var xe=function(Re,Ye){for(var vt=1,yt=1,Et=0,Zt=[];Et<Re.length;){var Ut=[Re,Et,vt,yt],An=le.apply(void 0,Ut);if(An){Et=An.index,vt=An.line,yt=An.column;continue}var hr=fe.apply(void 0,Ut)||pe.apply(void 0,Ut)||we.apply(void 0,Ut)||Se.apply(void 0,Ut);if(hr){var Vt={type:hr.type,value:hr.value,loc:o(vt,yt,Et,hr.line,hr.column,hr.index,Ye.source)};Zt.push(Vt),Et=hr.index,vt=hr.line,yt=hr.column}else B(P.unexpectedSymbol(l(Re,Et,Et+1),Ye.source,vt,yt),Re,Ye.source,vt,yt)}return Zt},je={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Me={_START_:0,KEY:1,COLON:2},rt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Ct={loc:!0,source:null};function it(Pe,Re,Ye){var vt=Re.length>0?Re[Re.length-1].loc.end:{line:1,column:1};B(R.unexpectedEnd(),Pe,Ye.source,vt.line,vt.column)}function nt(Pe){for(var Re=0,Ye=0;Ye<4;Ye++)Re=Re*16+parseInt(Pe[Ye],16);return String.fromCharCode(Re)}var Ge={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ie=['"',"\\","/"];function $e(Pe){for(var Re="",Ye=0;Ye<Pe.length;Ye++){var vt=Pe.charAt(Ye);if(vt==="\\"){Ye++;var yt=Pe.charAt(Ye);if(yt==="u")Re+=nt(Pe.substr(Ye+1,4)),Ye+=4;else if(Ie.indexOf(yt)!==-1)Re+=yt;else if(yt in Ge)Re+=Ge[yt];else break}else Re+=vt}return Re}function gt(Pe,Re,Ye,vt){for(var yt=void 0,Et={type:"Object",children:[]},Zt=je._START_;Ye<Re.length;){var Ut=Re[Ye];switch(Zt){case je._START_:{if(Ut.type===U.LEFT_BRACE)yt=Ut,Zt=je.OPEN_OBJECT,Ye++;else return null;break}case je.OPEN_OBJECT:{if(Ut.type===U.RIGHT_BRACE)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};var An=Dt(Pe,Re,Ye,vt);Et.children.push(An.value),Zt=je.PROPERTY,Ye=An.index;break}case je.PROPERTY:{if(Ut.type===U.RIGHT_BRACE)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};Ut.type===U.COMMA?(Zt=je.COMMA,Ye++):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}case je.COMMA:{var hr=Dt(Pe,Re,Ye,vt);hr?(Ye=hr.index,Et.children.push(hr.value),Zt=je.PROPERTY):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}}}it(Pe,Re,vt)}function Dt(Pe,Re,Ye,vt){for(var yt=void 0,Et={type:"Property",key:null,value:null},Zt=Me._START_;Ye<Re.length;){var Ut=Re[Ye];switch(Zt){case Me._START_:{if(Ut.type===U.STRING){var An={type:"Identifier",value:$e(Pe.slice(Ut.loc.start.offset+1,Ut.loc.end.offset-1)),raw:Ut.value};vt.loc&&(An.loc=Ut.loc),yt=Ut,Et.key=An,Zt=Me.KEY,Ye++}else return null;break}case Me.KEY:{Ut.type===U.COLON?(Zt=Me.COLON,Ye++):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Me.COLON:{var hr=St(Pe,Re,Ye,vt);return Et.value=hr.value,vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,hr.value.loc.end.line,hr.value.loc.end.column,hr.value.loc.end.offset,vt.source)),{value:Et,index:hr.index}}}}}function ut(Pe,Re,Ye,vt){for(var yt=void 0,Et={type:"Array",children:[]},Zt=rt._START_,Ut=void 0;Ye<Re.length;)switch(Ut=Re[Ye],Zt){case rt._START_:{if(Ut.type===U.LEFT_BRACKET)yt=Ut,Zt=rt.OPEN_ARRAY,Ye++;else return null;break}case rt.OPEN_ARRAY:{if(Ut.type===U.RIGHT_BRACKET)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};var An=St(Pe,Re,Ye,vt);Ye=An.index,Et.children.push(An.value),Zt=rt.VALUE;break}case rt.VALUE:{if(Ut.type===U.RIGHT_BRACKET)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};Ut.type===U.COMMA?(Zt=rt.COMMA,Ye++):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}case rt.COMMA:{var hr=St(Pe,Re,Ye,vt);Ye=hr.index,Et.children.push(hr.value),Zt=rt.VALUE;break}}it(Pe,Re,vt)}function Rt(Pe,Re,Ye,vt){var yt=Re[Ye],Et=null;switch(yt.type){case U.STRING:{Et=$e(Pe.slice(yt.loc.start.offset+1,yt.loc.end.offset-1));break}case U.NUMBER:{Et=Number(yt.value);break}case U.TRUE:{Et=!0;break}case U.FALSE:{Et=!1;break}case U.NULL:{Et=null;break}default:return null}var Zt={type:"Literal",value:Et,raw:yt.value};return vt.loc&&(Zt.loc=yt.loc),{value:Zt,index:Ye+1}}function St(Pe,Re,Ye,vt){var yt=Re[Ye],Et=Rt.apply(void 0,arguments)||gt.apply(void 0,arguments)||ut.apply(void 0,arguments);if(Et)return Et;B(R.unexpectedToken(l(Pe,yt.loc.start.offset,yt.loc.end.offset),vt.source,yt.loc.start.line,yt.loc.start.column),Pe,vt.source,yt.loc.start.line,yt.loc.start.column)}var Ke=function(Pe,Re){Re=Object.assign({},Ct,Re);var Ye=xe(Pe,Re);Ye.length===0&&it(Pe,Ye,Re);var vt=St(Pe,Ye,0,Re);if(vt.index===Ye.length)return vt.value;var yt=Ye[vt.index];B(R.unexpectedToken(l(Pe,yt.loc.start.offset,yt.loc.end.offset),Re.source,yt.loc.start.line,yt.loc.start.column),Pe,Re.source,yt.loc.start.line,yt.loc.start.column)};return Ke})}(A2)),A2.exports}var cse=use();const hse=Gl(cse);function pr(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}} Line truncated
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:te.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+te.r+","+te.g+","+te.b+`, 0) 0%,
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)"},pointer:{left:0,top:te.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:V.alpha},r.default.createElement("div",{style:V.checkboard},r.default.createElement(C.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:V.gradient}),r.default.createElement("div",{style:V.container,ref:function(G){return re.container=G},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:V.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:V.slider}))))}}]),X}(t.PureComponent||t.Component);return Qg.default=N,Qg}var qg={},mD;function Fle(){if(mD)return qg;mD=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.EditableInput=void 0;var n=function(){function $(re,te){for(var V=0;V<te.length;V++){var ne=te[V];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(re,ne.key,ne)}}return function(re,te,V){return te&&$(re.prototype,te),V&&$(re,V),re}}(),e=tl(),t=s(e),r=kp(),i=s(r);function s($){return $&&$.__esModule?$:{default:$}}function l($,re,te){return re in $?Object.defineProperty($,re,{value:te,enumerable:!0,configurable:!0,writable:!0}):$[re]=te,$}function o($,re){if(!($ instanceof re))throw new TypeError("Cannot call a class as a function")}function f($,re){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:$}function C($,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);$.prototype=Object.create(re&&re.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf($,re):$.__proto__=re)}var x=1,B=38,R=40,P=[B,R],U=function(re){return P.indexOf(re)>-1},N=function(re){return Number(String(re).replace(/%/g,""))},W=1,X=qg.EditableInput=function($){C(re,$);function re(te){o(this,re);var V=f(this,(re.__proto__||Object.getPrototypeOf(re)).call(this));return V.handleBlur=function(){V.state.blurValue&&V.setState({value:V.state.blurValue,blurValue:null})},V.handleChange=function(ne){V.setUpdatedValue(ne.target.value,ne)},V.handleKeyDown=function(ne){var G=N(ne.target.value);if(!isNaN(G)&&U(ne.keyCode)){var le=V.getArrowOffset(),fe=ne.keyCode===B?G+le:G-le;V.setUpdatedValue(fe,ne)}},V.handleDrag=function(ne){if(V.props.dragLabel){var G=Math.round(V.props.value+ne.movementX);G>=0&&G<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(G),ne)}},V.handleMouseDown=function(ne){V.props.dragLabel&&(ne.preventDefault(),V.handleDrag(ne),window.addEventListener("mousemove",V.handleDrag),window.addEventListener("mouseup",V.handleMouseUp))},V.handleMouseUp=function(){V.unbindEventListeners()},V.unbindEventListeners=function(){window.removeEventListener("mousemove",V.handleDrag),window.removeEventListener("mouseup",V.handleMouseUp)},V.state={value:String(te.value).toUpperCase(),blurValue:String(te.value).toUpperCase()},V.inputId="rc-editable-input-"+W++,V}return n(re,[{key:"componentDidUpdate",value:function(V,ne){this.props.value!==this.state.value&&(V.value!==this.props.value||ne.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(V){return l({},this.props.label,V)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||x}},{key:"setUpdatedValue",value:function(V,ne){var G=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(G,ne),this.setState({value:V})}},{key:"render",value:function(){var V=this,ne=(0,i.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ne.wrap},t.default.createElement("input",{id:this.inputId,style:ne.input,ref:function(le){return V.input=le},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:ne.label,onMouseDown:this.handleMouseDown},this.props.label):null)} Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hue-vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),t.default.createElement("div",{style:re.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:re.slider}))))}}]),U}(e.PureComponent||e.Component);return $g.default=R,$g}var Vg={},vD;function zle(){if(vD)return Vg;vD=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.Raised=void 0;var n=tl(),e=f(n),t=pm(),r=f(t),i=kp(),s=f(i),l=gG(),o=f(l);function f(x){return x&&x.__esModule?x:{default:x}}var C=Vg.Raised=function(B){var R=B.zDepth,P=B.radius,U=B.background,N=B.children,W=B.styles,X=W===void 0?{}:W,$=(0,s.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+R+"px "+R*4+"px rgba(0,0,0,.24)",borderRadius:P,background:U}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},X),{"zDepth-1":R===1});return e.default.createElement("div",{style:$.wrap},e.default.createElement("div",{style:$.bg}),e.default.createElement("div",{style:$.content},N))};return C.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},C.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},Vg.default=C,Vg}var Hg={},YS,CD;function Nle(){if(CD)return YS;CD=1;var n=Tp(),e=function(){return n.Date.now()};return YS=e,YS}var qS,_D;function Gle(){if(_D)return qS;_D=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return qS=e,qS}var $S,bD;function jle(){if(bD)return $S;bD=1;var n=Gle(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return $S=t,$S}var VS,xD;function Wle(){if(xD)return VS;xD=1;var n=jle(),e=Yf(),t=E3(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function f(C){if(typeof C=="number")return C;if(t(C))return r;if(e(C)){var x=typeof C.valueOf=="function"?C.valueOf():C;C=e(x)?x+"":x}if(typeof C!="string")return C===0?C:+C;C=n(C);var B=s.test(C);return B||l.test(C)?o(C.slice(2),B?2:8):i.test(C)?r:+C}return VS=f,VS}var HS,MD;function yG(){if(MD)return HS;MD=1;var n=Yf(),e=Nle(),t=Wle(),r="Expected a function",i=Math.max,s=Math.min;function l(o,f,C){var x,B,R,P,U,N,W=0,X=!1,$=!1,re=!0;if(typeof o!="function")throw new TypeError(r);f=t(f)||0,n(C)&&(X=!!C.leading,$="maxWait"in C,R=$?i(t(C.maxWait)||0,f):R,re="trailing"in C?!!C.trailing:re);function te(xe){var je=x,Me=B;return x=B=void 0,W=xe,P=o.apply(Me,je),P}function V(xe){return W=xe,U=setTimeout(le,f),X?te(xe):P}function ne(xe){var je=xe-N,Me=xe-W,rt=f-je;return $?s(rt,R-Me):rt}function G(xe){var je=xe-N,Me=xe-W;return N===void 0||je>=f||je<0||$&&Me>=R}function le(){var xe=e();if(G(xe))return fe(xe);U=setTimeout(le,ne(xe))}function fe(xe){return U=void 0,re&&x?te(xe):(x=B=void 0,P)}function pe(){U!==void 0&&clearTimeout(U),W=0,x=N=B=U=void 0}function we(){return U===void 0?P:fe(e())}function Se(){var xe=e(),je=G(xe);if(x=arguments,B=this,N=xe,je){if(U===void 0)return V(N);if($)return clearTimeout(U),U=setTimeout(le,f),te(N)}return U===void 0&&(U=setTimeout(le,f)),P}return Se.cancel=pe,Se.flush=we,Se}return HS=l,HS}var ZS,wD;function Qle(){if(wD)return ZS;wD=1;var n=yG(),e=Yf(),t="Expected a function";function r(i,s,l){var o=!0,f=!0;if(typeof i!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,f="trailing"in l?!!l.trailing:f),n(i,s,{leading:o,maxWait:s,trailing:f})}return ZS=r,ZS}var Yb={},SD;function Yle(){return SD||(SD=1,Object.defineProperty(Yb,"__esModule",{value:!0}),Yb.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),s=i.width,l=i.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,f=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,C=o-(r.getBoundingClientRect().left+window.pageXOffset),x=f-(r.getBoundingClientRect().top+window.pageYOffset);C<0?C=0:C>s&&(C=s),x<0?x=0:x>l&&(x=l);var B=C/s,R=1-x/l;return{h:t.h,s:B,v:R,a:t.a,source:"hsv"}}),Yb}var ED;function qle(){if(ED)return Hg;ED=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.Saturation=void 0;var n=function(){function N(W,X){for(var $=0;$<X.length;$++){var re=X[$];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(W,re.key,re)}}return function(W,X,$){return X&&N(W.prototype,X),$&&N(W,$),W}}(),e=tl(),t=x(e),r=kp(),i=x(r),s=Qle(),l=x(s),o=Yle(),f=C(o);function C(N){if(N&&N.__esModule)return N;var W={};if(N!=null)for(var X in N)Object.prototype.hasOwnProperty.call(N,X)&&(W[X]=N[X]);return W.default=N,W}function x(N) Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:te,white:V,black:ne,pointer:G,circle:le}},{custom:!!this.props.style});return t.default.createElement("div",{style:fe.color,ref:function(we){return $.container=we},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.saturation-black {
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),t.default.createElement("div",{style:fe.white,className:"saturation-white"},t.default.createElement("div",{style:fe.black,className:"saturation-black"}),t.default.createElement("div",{style:fe.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:fe.circle}))))}}]),W}(e.PureComponent||e.Component);return Hg.default=U,Hg}var Zg={},Gh={},XS,BD;function $le(){if(BD)return XS;BD=1;var n=aG(),e=sG(),t=QN(),r=Af();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return XS=i,XS}var JS,OD;function Vle(){return OD||(OD=1,JS=$le()),JS}var u2={exports:{}},Hle=u2.exports,ID;function Zle(){return ID||(ID=1,function(n,e){(function(t,r){n.exports=r()})(Hle,function(){function t(Ke){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},t(Ke)}var r=/^\s+/,i=/\s+$/;function s(Ke,Pe){if(Ke=Ke||"",Pe=Pe||{},Ke instanceof s)return Ke;if(!(this instanceof s))return new s(Ke,Pe);var Re=l(Ke);this._originalInput=Ke,this._r=Re.r,this._g=Re.g,this._b=Re.b,this._a=Re.a,this._roundA=Math.round(100*this._a)/100,this._format=Pe.format||Re.format,this._gradientType=Pe.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Re.ok}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Pe=this.toRgb();return(Pe.r*299+Pe.g*587+Pe.b*114)/1e3},getLuminance:function(){var Pe=this.toRgb(),Re,Ye,vt,yt,Et,Zt;return Re=Pe.r/255,Ye=Pe.g/255,vt=Pe.b/255,Re<=.03928?yt=Re/12.92:yt=Math.pow((Re+.055)/1.055,2.4),Ye<=.03928?Et=Ye/12.92:Et=Math.pow((Ye+.055)/1.055,2.4),vt<=.03928?Zt=vt/12.92:Zt=Math.pow((vt+.055)/1.055,2.4),.2126*yt+.7152*Et+.0722*Zt},setAlpha:function(Pe){return this._a=je(Pe),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Pe=x(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,v:Pe.v,a:this._a}},toHsvString:function(){var Pe=x(this._r,this._g,this._b),Re=Math.round(Pe.h*360),Ye=Math.round(Pe.s*100),vt=Math.round(Pe.v*100);return this._a==1?"hsv("+Re+", "+Ye+"%, "+vt+"%)":"hsva("+Re+", "+Ye+"%, "+vt+"%, "+this._roundA+")"},toHsl:function(){var Pe=f(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,l:Pe.l,a:this._a}},toHslString:function(){var Pe=f(this._r,this._g,this._b),Re=Math.round(Pe.h*360),Ye=Math.round(Pe.s*100),vt=Math.round(Pe.l*100);return this._a==1?"hsl("+Re+", "+Ye+"%, "+vt+"%)":"hsla("+Re+", "+Ye+"%, "+vt+"%, "+this._roundA+")"},toHex:function(Pe){return R(this._r,this._g,this._b,Pe)},toHexString:function(Pe){return"#"+this.toHex(Pe)},toHex8:function(Pe){return P(this._r,this._g,this._b,this._a,Pe)},toHex8String:function(Pe){return"#"+this.toHex8(Pe)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Me(this._r,255)*100)+"%",g:Math.round(Me(this._g,255)*100)+"%",b:Math.round(Me(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Me(this._r,255)*100)+"%, "+Math.round(Me(this._g,255)*100)+"%, "+Math.round(Me(this._b,255)*100)+"%)":"rgba("+Math.round(Me(this._r,255)*100)+"%, "+Math.round(Me(this._g,255)*100)+"%, "+Math.round(Me(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Se[R(this._r,this._g,this._b,!0)]||!1},toFilter:function(Pe){var Re="#"+U(this._r,this._g,this._b,this._a),Ye=Re,vt=this._gradientType?"GradientType = 1, ":"";if(Pe){var yt=s(Pe);Ye="#"+U(yt._r,yt._g,yt._b,yt._a)}return"progid:DXImageTransform.Microsoft.gradient("+vt+"startColorstr="+Re+",endColorstr="+Ye+")"},toString:function(Pe){var Re=!!Pe;Pe=Pe||this._format;var Ye=!1,vt=this._a<1&&this._a>=0,yt=!Re&&vt&&(Pe==="hex"||Pe==="hex6"||Pe==="hex3"||Pe==="hex4"||Pe==="hex8"||Pe==="name");return yt?Pe==="name"&&this._a===0?this.toName():this.toRgbString():(Pe==="rgb"&&(Ye=this.toRgbString()),Pe==="prgb"&&(Ye=this.toPercentageRgbString()),(Pe==="hex"||Pe==="hex6")&&(Ye=this.toHexString()),Pe==="hex3"&&(Ye=this.toHexString(!0)),Pe==="hex4"&&(Ye=this.toHex8String(!0)),Pe==="hex8"&&(Ye=this.toHex8String()),Pe==="name"&&(Ye=this.toName()),Pe==="hsl"&&(Ye=this.toHslString()),Pe==="hsv"&&(Ye=this.toHsvString()),Ye||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Pe,Re){var Ye=Pe.apply(nu Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${t}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://unpkg.com/maplibre-gl@${iK}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${iK}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script>
const map = new maplibregl.Map({
container: 'map',
style: ${e},
});
map.addControl(new maplibregl.NavigationControl());
<\/script>
</body>
</html>
`),i=(Nr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Nr().s[10]++,this.exportName());Nr().s[11]++,rK.saveAs(i,s+".html")}async saveStyle(){Nr().f[3]++;const e=(Nr().s[12]++,this.tokenizedStyle());if(Nr().s[13]++,oK)Nr().b[2][1]++;else{Nr().b[2][0]++;const i=(Nr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Nr().s[15]++,this.exportName());Nr().s[16]++,rK.saveAs(i,s+".json"),Nr().s[17]++;return}let t=(Nr().s[18]++,this.props.fileHandle);if(Nr().s[19]++,t==null)if(Nr().b[3][0]++,Nr().s[20]++,t=await this.createFileHandle(),Nr().s[21]++,this.props.onSetFileHandle(t),Nr().s[22]++,t==null){Nr().b[4][0]++,Nr().s[23]++;return}else Nr().b[4][1]++;else Nr().b[3][1]++;const r=(Nr().s[24]++,await t.createWritable());Nr().s[25]++,await r.write(e),Nr().s[26]++,await r.close(),Nr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Nr().f[4]++;const e=(Nr().s[28]++,this.tokenizedStyle()),t=(Nr().s[29]++,await this.createFileHandle());if(Nr().s[30]++,this.props.onSetFileHandle(t),Nr().s[31]++,t==null){Nr().b[5][0]++,Nr().s[32]++;return}else Nr().b[5][1]++;const r=(Nr().s[33]++,await t.createWritable());Nr().s[34]++,await r.write(e),Nr().s[35]++,await r.close(),Nr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Nr().f[5]++;const e=(Nr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Nr().s[38]++,await window.showSaveFilePicker(e));return Nr().s[39]++,this.props.onSetFileHandle(t),Nr().s[40]++,t}changeMetadataProperty(e,t){Nr().f[6]++;const r=(Nr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Nr().s[42]++,this.props.onStyleChanged(r)}render(){Nr().f[7]++;const e=(Nr().s[43]++,this.props.t),t=(Nr().s[44]++,TG(e));return Nr().s[45]++,oe.jsx(Z0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:oe.jsxs("section",{className:"maputnik-modal-section",children:[oe.jsx("h1",{children:e("Save Style")}),oe.jsx("p",{children:e("Save the JSON style to your computer.")}),oe.jsxs("div",{children:[oe.jsx(Ff,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Nr().b[6][0]++,this.props.mapStyle.metadata||(Nr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),oe.jsx(Ff,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Nr().b[7][0]++,this.props.mapStyle.metadata||(Nr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),oe.jsx(Ff,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Nr().b[8][0]++,this.props.mapStyle.metadata||(Nr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),oe.jsx(Ff,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Nr().b[9][0]++,this.props.mapStyle.metadata||(Nr().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),oe.jsxs("div",{className:"maputnik-modal-export-buttons",children:[oe.jsxs(el,{onClick:this.saveStyle.bind(this),children:[oe.jsx(_6,{}),e("Save")]}),(Nr().b[10][0]++,oK&&(Nr().b[10][1]++,oe.jsxs(el,{onClick:this.saveStyleAs.bind(this),children:[oe.jsx(_6,{}),e("Save as")]}))),oe.jsxs(el,{onClick:this.createHtml.bind(this),children:[oe.jsx(LV,{}),e("Create HTML")]})]})]})})}}const Zue=(Nr().s[46]++,Us()(Hue));function s_(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="008bf7f932014e13eee4379e3554a3bc406336ab",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"008bf7f932014e13eee4379e3554a3bc406336ab"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return s_=function(){return l},l}s_();s_().s[0]++;const DG=n=>(s_().f[0]++,s_().s[1]++,oe.jsx(ZC,{label:n.label,children:oe.jsx(MG,{...n})}));function a_(){var n="/home/runner/work/maputnik/maputnik/src/components/Field Line truncated
`)>=0)return!1;return!0}function Yt(Xe,ae){var ve;if(Xe.indent===" ")ve=" ";else if(typeof Xe.indent=="number"&&Xe.indent>0)ve=le.call(Array(Xe.indent+1)," ");else return null;return{base:ve,prev:le.call(Array(ae+1),ve)}}function Jt(Xe,ae){if(Xe.length===0)return"";var ve=`
`+ae.prev+ae.base;return ve+le.call(Xe,","+ve)+`
`+ae.prev}function ir(Xe,ae){var ve=Rt(Xe),p=[];if(ve){p.length=Xe.length;for(var Ne=0;Ne<Xe.length;Ne++)p[Ne]=Ut(Xe,Ne)?ae(Xe[Ne],Xe):""}var Ve=typeof Se=="function"?Se(Xe):[],Te;if(je){Te={};for(var lt=0;lt<Ve.length;lt++)Te["$"+Ve[lt]]=Ve[lt]}for(var ct in Xe)Ut(Xe,ct)&&(ve&&String(Number(ct))===ct&&ct<Xe.length||je&&Te["$"+ct]instanceof Symbol||(ne.call(/[^\w$]/,ct)?p.push(ae(ct,Xe)+": "+ae(Xe[ct],Xe)):p.push(ct+": "+ae(Xe[ct],Xe))));if(typeof Se=="function")for(var Ft=0;Ft<Ve.length;Ft++)rt.call(Xe,Ve[Ft])&&p.push("["+ae(Ve[Ft])+"]: "+ae(Xe[Ve[Ft]],Xe));return p}return aE}var lE,hK;function Rce(){if(hK)return lE;hK=1;var n=I3(),e=ev(),t=function(o,f,C){for(var x=o,B;(B=x.next)!=null;x=B)if(B.key===f)return x.next=B.next,C||(B.next=o.next,o.next=B),B},r=function(o,f){if(o){var C=t(o,f);return C&&C.value}},i=function(o,f,C){var x=t(o,f);x?x.value=C:o.next={key:f,next:o.next,value:C}},s=function(o,f){return o?!!t(o,f):!1},l=function(o,f){if(o)return t(o,f,!0)};return lE=function(){var f,C={assert:function(x){if(!C.has(x))throw new e("Side channel does not contain "+n(x))},delete:function(x){var B=f&&f.next,R=l(f,x);return R&&B&&B===R&&(f=void 0),!!R},get:function(x){return r(f,x)},has:function(x){return s(f,x)},set:function(x,B){f||(f={next:void 0}),i(f,x,B)}};return C},lE}var AE,dK;function zG(){return dK||(dK=1,AE=Object),AE}var uE,fK;function Dce(){return fK||(fK=1,uE=Error),uE}var cE,pK;function Kce(){return pK||(pK=1,cE=EvalError),cE}var hE,mK;function Fce(){return mK||(mK=1,hE=RangeError),hE}var dE,gK;function Lce(){return gK||(gK=1,dE=ReferenceError),dE}var fE,yK;function Uce(){return yK||(yK=1,fE=SyntaxError),fE}var pE,vK;function zce(){return vK||(vK=1,pE=URIError),pE}var mE,CK;function Nce(){return CK||(CK=1,mE=Math.abs),mE}var gE,_K;function Gce(){return _K||(_K=1,gE=Math.floor),gE}var yE,bK;function jce(){return bK||(bK=1,yE=Math.max),yE}var vE,xK;function Wce(){return xK||(xK=1,vE=Math.min),vE}var CE,MK;function Qce(){return MK||(MK=1,CE=Math.pow),CE}var _E,wK;function Yce(){return wK||(wK=1,_E=Math.round),_E}var bE,SK;function qce(){return SK||(SK=1,bE=Number.isNaN||function(e){return e!==e}),bE}var xE,EK;function $ce(){if(EK)return xE;EK=1;var n=qce();return xE=function(t){return n(t)||t===0?t:t<0?-1:1},xE}var ME,BK;function Vce(){return BK||(BK=1,ME=Object.getOwnPropertyDescriptor),ME}var wE,OK;function NG(){if(OK)return wE;OK=1;var n=Vce();if(n)try{n([],"length")}catch{n=null}return wE=n,wE}var SE,IK;function Hce(){if(IK)return SE;IK=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return SE=n,SE}var EE,TK;function Zce(){return TK||(TK=1,EE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),EE}var BE,kK;function Xce(){if(kK)return BE;kK=1;var n=typeof Symbol<"u"&&Symbol,e=Zce();return BE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},BE}var OE,PK;function GG(){return PK||(PK=1,OE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),OE}var IE,RK;function jG(){if(RK)return IE;RK=1;var n=zG();return IE=n.getPrototypeOf||null,IE}var TE,DK;function Jce(){if(DK)return TE;DK=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(f,C){for(var x=[],B=0;B<f.length;B+=1)x[B]=f[B];for(var R=0;R<C.length;R+=1)x[R+f.length]=C[R];return x},s=function(f,C){for(var x=[],B=C,R=0;B<f.length;B+=1,R+=1)x[R]=f[B];return x},l=function(o,f){for(var C="",x=0;x<o.length;x+=1)C+=o[x],x+1<o.length&&(C+=f);return C};return TE=function(f){var C=this;if(typeof C!="function"||e.apply(C)!==r)throw new TypeError(n+C);for(var x=s(arguments,1),B,R=function(){if(this instanceof B){var X=C.apply(this,i(x,arguments));return Object(X)===X?X:this}return C.apply(f,i(x,arguments))},P=t(0,C.length-x.length),U=[],N=0;N<P;N++)U[N]="$"+N;if(B=Function("binder","return function ("+l(U,",")+"){ return binder.apply(this,arguments); }")(R),C.prototype){var W=function(){};W.prototype=C.prototype,B.prototype=new W,W.prototype=null}return B},TE}var kE,KK;function T3(){if(KK)return kE;KK=1;var n=Jce();return kE=Function.prototype.bind||n,kE}var PE,FK;function UI(){return FK||(FK=1,PE=Function.prototype.call),PE}var RE,LK;function W Line truncated
`," "],l=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(l),f=["%","/","?",";","#"].concat(o),C=["/","?","#"],x=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,R=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},U={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=Ahe();function X(V,ne,G){if(V&&typeof V=="object"&&V instanceof e)return V;var le=new e;return le.parse(V,ne,G),le}e.prototype.parse=function(V,ne,G){if(typeof V!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof V);var le=V.indexOf("?"),fe=le!==-1&&le<V.indexOf("#")?"?":"#",pe=V.split(fe),we=/\\/g;pe[0]=pe[0].replace(we,"/"),V=pe.join(fe);var Se=V;if(Se=Se.trim(),!G&&V.split("#").length===1){var xe=i.exec(Se);if(xe)return this.path=Se,this.href=Se,this.pathname=xe[1],xe[2]?(this.search=xe[2],ne?this.query=W.parse(this.search.substr(1)):this.query=this.search.substr(1)):ne&&(this.search="",this.query={}),this}var je=t.exec(Se);if(je){je=je[0];var Me=je.toLowerCase();this.protocol=Me,Se=Se.substr(je.length)}if(G||je||Se.match(/^\/\/[^@/]+@[^@/]+/)){var rt=Se.substr(0,2)==="//";rt&&!(je&&U[je])&&(Se=Se.substr(2),this.slashes=!0)}if(!U[je]&&(rt||je&&!N[je])){for(var Ct=-1,it=0;it<C.length;it++){var nt=Se.indexOf(C[it]);nt!==-1&&(Ct===-1||nt<Ct)&&(Ct=nt)}var Ge,Ie;Ct===-1?Ie=Se.lastIndexOf("@"):Ie=Se.lastIndexOf("@",Ct),Ie!==-1&&(Ge=Se.slice(0,Ie),Se=Se.slice(Ie+1),this.auth=decodeURIComponent(Ge)),Ct=-1;for(var it=0;it<f.length;it++){var nt=Se.indexOf(f[it]);nt!==-1&&(Ct===-1||nt<Ct)&&(Ct=nt)}Ct===-1&&(Ct=Se.length),this.host=Se.slice(0,Ct),Se=Se.slice(Ct),this.parseHost(),this.hostname=this.hostname||"";var $e=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$e)for(var gt=this.hostname.split(/\./),it=0,Dt=gt.length;it<Dt;it++){var ut=gt[it];if(ut&&!ut.match(B)){for(var Rt="",St=0,Ke=ut.length;St<Ke;St++)ut.charCodeAt(St)>127?Rt+="x":Rt+=ut[St];if(!Rt.match(B)){var Pe=gt.slice(0,it),Re=gt.slice(it+1),Ye=ut.match(R);Ye&&(Pe.push(Ye[1]),Re.unshift(Ye[2])),Re.length&&(Se="/"+Re.join(".")+Se),this.hostname=Pe.join(".");break}}}this.hostname.length>x?this.hostname="":this.hostname=this.hostname.toLowerCase(),$e||(this.hostname=n.toASCII(this.hostname));var vt=this.port?":"+this.port:"",yt=this.hostname||"";this.host=yt+vt,this.href+=this.host,$e&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Se[0]!=="/"&&(Se="/"+Se))}if(!P[Me])for(var it=0,Dt=o.length;it<Dt;it++){var Et=o[it];if(Se.indexOf(Et)!==-1){var Zt=encodeURIComponent(Et);Zt===Et&&(Zt=escape(Et)),Se=Se.split(Et).join(Zt)}}var Ut=Se.indexOf("#");Ut!==-1&&(this.hash=Se.substr(Ut),Se=Se.slice(0,Ut));var An=Se.indexOf("?");if(An!==-1?(this.search=Se.substr(An),this.query=Se.substr(An+1),ne&&(this.query=W.parse(this.query)),Se=Se.slice(0,An)):ne&&(this.search="",this.query={}),Se&&(this.pathname=Se),N[Me]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var vt=this.pathname||"",hr=this.search||"";this.path=vt+hr}return this.href=this.format(),this};function $(V){return typeof V=="string"&&(V=X(V)),V instanceof e?V.format():e.prototype.format.call(V)}e.prototype.format=function(){var V=this.auth||"";V&&(V=encodeURIComponent(V),V=V.replace(/%3A/i,":"),V+="@");var ne=this.protocol||"",G=this.pathname||"",le=this.hash||"",fe=!1,pe="";this.host?fe=V+this.host:this.hostname&&(fe=V+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(pe=W.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var we=this.search||pe&&"?"+pe||"";return ne&&ne.substr(-1)!==":"&&(ne+=":"),this.slashes||(!ne||N[ne])&&fe!==!1?(fe="//"+(fe||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):fe||(fe=""),le&&le.charAt(0)!=="#"&&(le="#"+le),we&&we.charAt(0)!=="?"&&(we="?"+we),G=G.replace(/[?#]/g,function(Se){return encodeURIComponent(Se)}),we=we.replace("#","%23"),ne+fe+G+we+le};function re(V,ne){return X(V,!1,!0).resolve(ne)}e.prototype.resolve=function(V){return this.resolveObject(X(V,!1,!0)).format()};function te(V,ne){return V?X(V,!1,!0).resolveObject(ne):ne}return e.prototype.resolveObject=function(V){if(typeof V=="string"){var ne=new e;ne.parse(V,!1,!0),V=ne}for(var G=new e,le=Object.keys(this),fe=0;fe<le.length;fe++){var pe=le[fe];G[pe]=this[pe]}if(G.hash=V.hash,V.href==="")return G.href=G.format(),G;if(V.slashes&&!V.protocol){for(var we=Object.keys(V),Se=0;Se<we.length;Se++){var xe=we[Se];xe!=="protocol"&&(G[xe]=V[xe])}return N[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if(V.protocol&&V.protocol!==G.protocol){if(!N[V.protocol]){for(var je=Object.keys(V),Me=0;Me<je.length;Me++){var rt=je[Me];G[rt]=V[rt]}return G.href=G.format(),G}if(G.protocol=V.protocol,!V.host&&!U[V.protocol]){for(var Dt=(V.pathname||"").split("/");Dt.length&&!(V.host=Dt.shift()););V.host||(V.host=""),V.hostname Line truncated
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var dB=function(n,e){return dB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},dB(n,e)};function ej(n,e){dB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Che(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function _he(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return s}function bhe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(_he(arguments[e]));return n}var tj=function(){function n(e,t){this.target=t,this.type=e}return n}(),xhe=function(n){ej(e,n);function e(t,r){var i=n.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return e}(tj),Mhe=function(n){ej(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var s=n.call(this,"close",i)||this;return s.wasClean=!0,s.code=t,s.reason=r,s}return e}(tj);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var whe=function(){if(typeof WebSocket<"u")return WebSocket},She=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},x1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Ehe=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){i._debug("open event");var l=i._options.minUptime,o=l===void 0?x1.minUptime:l;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},o),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(f){return i._ws.send(f)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(f){return i._callEventListener(s,f)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(l){return i._callEventListener(s,l)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(l){return i._callEventListener(s,l)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(l){return i._callEventListener(s,l)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?x1.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,i=this._listeners[e.type];if(i)try{for(var s=Che(i),l=s.next();!l.done;l=s.next()){var o=l.value;this._callEventListener(e,o)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._liLine truncated
//# sourceMappingURL=index-DRoHSTNS.js.map
+979
View File
@@ -0,0 +1,979 @@
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function zl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function gB(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var V3={exports:{}},Mv={},H3={exports:{}},gs={},qI;function Mj(){if(qI)return gs;qI=1;/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),B=Symbol.iterator;function D(Te){return Te===null||typeof Te!="object"?null:(Te=B&&Te[B]||Te["@@iterator"],typeof Te=="function"?Te:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,G={};function W(Te,Ze,gt){this.props=Te,this.context=Ze,this.refs=G,this.updater=gt||R}W.prototype.isReactComponent={},W.prototype.setState=function(Te,Ze){if(typeof Te!="object"&&typeof Te!="function"&&Te!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Te,Ze,"setState")},W.prototype.forceUpdate=function(Te){this.updater.enqueueForceUpdate(this,Te,"forceUpdate")};function J(){}J.prototype=W.prototype;function $(Te,Ze,gt){this.props=Te,this.context=Ze,this.refs=G,this.updater=gt||R}var oe=$.prototype=new J;oe.constructor=$,U(oe,W.prototype),oe.isPureReactComponent=!0;var te=Array.isArray,H=Object.prototype.hasOwnProperty,re={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function Ae(Te,Ze,gt){var Dt,pt={},Tt=null,It=null;if(Ze!=null)for(Dt in Ze.ref!==void 0&&(It=Ze.ref),Ze.key!==void 0&&(Tt=""+Ze.key),Ze)H.call(Ze,Dt)&&!j.hasOwnProperty(Dt)&&(pt[Dt]=Ze[Dt]);var Le=arguments.length-2;if(Le===1)pt.children=gt;else if(1<Le){for(var Re=Array(Le),Ke=0;Ke<Le;Ke++)Re[Ke]=arguments[Ke+2];pt.children=Re}if(Te&&Te.defaultProps)for(Dt in Le=Te.defaultProps,Le)pt[Dt]===void 0&&(pt[Dt]=Le[Dt]);return{$$typeof:n,type:Te,key:Tt,ref:It,props:pt,_owner:re.current}}function ge(Te,Ze){return{$$typeof:n,type:Te.type,key:Ze,ref:Te.ref,props:Te.props,_owner:Te._owner}}function me(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===n}function xe(Te){var Ze={"=":"=0",":":"=2"};return"$"+Te.replace(/[=:]/g,function(gt){return Ze[gt]})}var Be=/\/+/g;function Me(Te,Ze){return typeof Te=="object"&&Te!==null&&Te.key!=null?xe(""+Te.key):Ze.toString(36)}function We(Te,Ze,gt,Dt,pt){var Tt=typeof Te;(Tt==="undefined"||Tt==="boolean")&&(Te=null);var It=!1;if(Te===null)It=!0;else switch(Tt){case"string":case"number":It=!0;break;case"object":switch(Te.$$typeof){case n:case e:It=!0}}if(It)return It=Te,pt=pt(It),Te=Dt===""?"."+Me(It,0):Dt,te(pt)?(gt="",Te!=null&&(gt=Te.replace(Be,"$&/")+"/"),We(pt,Ze,gt,"",function(Ke){return Ke})):pt!=null&&(me(pt)&&(pt=ge(pt,gt+(!pt.key||It&&It.key===pt.key?"":(""+pt.key).replace(Be,"$&/")+"/")+Te)),Ze.push(pt)),1;if(It=0,Dt=Dt===""?".":Dt+":",te(Te))for(var Le=0;Le<Te.length;Le++){Tt=Te[Le];var Re=Dt+Me(Tt,Le);It+=We(Tt,Ze,gt,Re,pt)}else if(Re=D(Te),typeof Re=="function")for(Te=Re.call(Te),Le=0;!(Tt=Te.next()).done;)Tt=Tt.value,Re=Dt+Me(Tt,Le++),It+=We(Tt,Ze,gt,Re,pt);else if(Tt==="object")throw Ze=String(Te),Error("Objects are not valid as a React child (found: "+(Ze==="[object Object]"?"object with keys {"+Object.keys(Te).join(", ")+"}":Ze)+"). If you meant to render a collection of children, use an array instead.");return It}function be(Te,Ze,gt){if(Te==null)return Te;var Dt=[],pt=0;return We(Te,Dt,"","",function(Tt){return Ze.call(gt,Tt,pt++)}),Dt}function nt(Te){if(Te._status===-1){var Ze=Te._result;Ze=Ze(),Ze.then(function(gt){(Te._status===0||Te._status===-1)&&(Te._status=1,Te._result=gt)},function(gt){(Te._status===0||Te._status===-1)&&(Te._status=2,Te._result=gt)}),Te._status===-1&&(Te._status=0,Te._result=Ze)}if(Te._status===1)return Te._result.default;throw Te._result}var _t={current:null},at={transition:null},Je={ReactCurrentDispatcher:_t,ReactCurrentBatchConfig:at,ReactCurrentOwner:re};function Ne(){throw Error("act(...) is not supported in production builds of React.")}return gs.Children={map:be,forEach:function(Te,Ze,gt){be(Te,function(){Ze.apply(this,arguments)},gt)},count:function(Te){var Ze=0;return be(Te,function(){Ze++}),Ze},toArray:function(Te){return be(Te,function(Ze){return Ze})||[]},only:function(Te){if(!me(Te))throw Error("React.Children.only expected to receive a single React element child.");return Te}},gs.Component=W,gs.Fragment=t,gs.Profiler=i,gs.PureComponent=$,gs.StrictMode=r,gs.Suspense=f,gs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Je,gs.act=Ne,gs.cloneElement=function(Te,Ze,gt){if(Te==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Te+".");var Dt=U({},Te.props),pt=Te.key,Tt=Te.ref,It=Te._owner;if(Ze!=null){if(Ze.ref!==void 0&&(Tt=Ze.ref,It=re.current),Ze.key!==void 0&&(pt=""+Ze.key),Te.type&&Te.type.defaultProps)var Le=Te.type.defaultProps;for(Re in Ze)H.call(Ze,Re)&&!j.hasOwnProperty(Re)&&(Dt[Re]=Ze[Re]===void 0&&Le!==void 0?Le[Re]:Ze[Re])}var Re=arguments.lengthLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var VI;function wj(){if(VI)return Mv;VI=1;var n=Va(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(o,f,C){var w,B={},D=null,R=null;C!==void 0&&(D=""+C),f.key!==void 0&&(D=""+f.key),f.ref!==void 0&&(R=f.ref);for(w in f)r.call(f,w)&&!s.hasOwnProperty(w)&&(B[w]=f[w]);if(o&&o.defaultProps)for(w in f=o.defaultProps,f)B[w]===void 0&&(B[w]=f[w]);return{$$typeof:e,type:o,key:D,ref:R,props:B,_owner:i.current}}return Mv.Fragment=t,Mv.jsx=l,Mv.jsxs=l,Mv}var HI;function Sj(){return HI||(HI=1,V3.exports=wj()),V3.exports}var ae=Sj(),Hn=Va();const nr=zl(Hn);var fF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ey=nr.createContext&&nr.createContext(fF),Ej=["attr","size","title"];function Bj(n,e){if(n==null)return{};var t=Oj(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Oj(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function A2(){return A2=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},A2.apply(this,arguments)}function ZI(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function u2(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ZI(Object(t),!0).forEach(function(r){Ij(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ZI(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Ij(n,e,t){return e=Tj(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Tj(n){var e=kj(n,"string");return typeof e=="symbol"?e:e+""}function kj(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function pF(n){return n&&n.map((e,t)=>nr.createElement(e.tag,u2({key:t},e.attr),pF(e.child)))}function eA(n){return e=>nr.createElement(Pj,A2({attr:u2({},n.attr)},e),pF(n.child))}function Pj(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=Bj(n,Ej),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),nr.createElement("svg",A2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:u2(u2({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&nr.createElement("title",null,s),n.children)};return Ey!==void 0?nr.createElement(Ey.Consumer,null,t=>e(t)):e(fF)}var rb={},Z3={exports:{}},vd={},X3={exports:{}},J3={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var XI;function Rj(){return XI||(XI=1,function(n){function e(at,Je){var Ne=at.length;at.push(Je);e:for(;0<Ne;){var Te=Ne-1>>>1,Ze=at[Te];if(0<i(Ze,Je))at[Te]=Je,at[Ne]=Ze,Ne=Te;else break e}}function t(at){return at.length===0?null:at[0]}function r(at){if(at.length===0)return null;var Je=at[0],Ne=at.pop();if(Ne!==Je){at[0]=Ne;e:for(var Te=0,Ze=at.length,gt=Ze>>>1;Te<gt;){var Dt=2*(Te+1)-1,pt=at[Dt],Tt=Dt+1,It=at[Tt];if(0>i(pt,Ne))Tt<Ze&&0>i(It,pt)?(at[Te]=It,at[Tt]=Ne,Te=Tt):(at[Te]=pt,at[Dt]=Ne,Te=Dt);else if(Tt<Ze&&0>i(It,Ne))at[Te]=It,at[Tt]=Ne,Te=Tt;else break e}}return Je}function i(at,Je){var Ne=at.sortIndex-Je.sortIndex;return Ne!==0?Ne:at.id-Je.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var f=[],C=[],w=1,B=null,D=3,R=!1,U=!1,G=!1,W=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(at){for(var Je=t(C);Je!==null;){if(Je.callback===null)r(C);else if(Je.startTime<=at)r(C),Je.sortIndex=Je.expirationTime,e(f,Je);else break;Je=t(C)}}function te(at){if(G=!1,oe(at),!U)if(t(f)!==null)U=!0,nt(H);else{var Je=t(C);Je!==null&&_t(te,Je.startTime-at)}}function H(at,Je){U=!1,G&&(G=!1,J(Ae),Ae=-1),R=!0;var Ne=D;try{for(oe(Je),B=t(f);B!==null&&(!(B.expirationTime>Je)||at&&!xe());){var Te=B.callback;if(typeof Te=="function"){B.callback=null,D=B.priorityLevel;var Ze=Te(B.expirationTime<=Je);Je=n.unstable_now(),typeof Ze=="function"?B.callback=Ze:B===t(f)&&r(f),oe(Je)}else r(f);B=t(f)}if(B!==null)var gt=!0;else{var Dt=t(C);Dt!==null&&_t(te,Dt.startTime-Je),gt=!1}return gt}finally{B=null,D=Ne,R=!1}}var re=!1,j=null,Ae=-1,ge=5,me=-1;function xe(){return!(n.unstable_now()-me<ge)}function Be(){if(j!==null){var at=n.unstable_now();me=at;var Je=!0;try{Je=j(!0,at)}finally{Je?Me():(re=!1,j=null)}}else re=!1}var Me;if(typeof $=="function")Me=function(){$(Be)};else if(typeof MessageChannel<"u"){var We=new MessageChannel,be=We.port2;We.port1.onmessage=Be,Me=function(){be.postMessage(null)}}else Me=function(){W(Be,0)};function nt(at){j=at,re||(re=!0,Me())}function _t(at,Je){Ae=W(function(){at(n.unstable_now())},Je)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(at){at.callback=null},n.unstable_continueExecution=function(){U||R||(U=!0,nt(H))},n.unstable_forceFrameRate=function(at){0>at||125<at?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ge=0<at?Math.floor(1e3/at):5},n.unstable_getCurrentPriorityLevel=function(){return D},n.unstable_getFirstCallbackNode=function(){return t(f)},n.unstable_next=function(at){switch(D){case 1:case 2:case 3:var Je=3;break;default:Je=D}var Ne=D;D=Je;try{return at()}finally{D=Ne}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(at,Je){switch(at){case 1:case 2:case 3:case 4:case 5:break;default:at=3}var Ne=D;D=at;try{return Je()}finally{D=Ne}},n.unstable_scheduleCallback=function(at,Je,Ne){var Te=n.unstable_now();switch(typeof Ne=="object"&&Ne!==null?(Ne=Ne.delay,Ne=typeof Ne=="number"&&0<Ne?Te+Ne:Te):Ne=Te,at){case 1:var Ze=-1;break;case 2:Ze=250;break;case 5:Ze=1073741823;break;case 4:Ze=1e4;break;default:Ze=5e3}return Ze=Ne+Ze,at={id:w++,callback:Je,priorityLevel:at,startTime:Ne,expirationTime:Ze,sortIndex:-1},Ne>Te?(at.sortIndex=Ne,e(C,at),t(f)===null&&at===t(C)&&(G?(J(Ae),Ae=-1):G=!0,_t(te,Ne-Te))):(at.sortIndex=Ze,e(f,at),U||R||(U=!0,nt(H))),at},n.unstable_shouldYield=xe,n.unstable_wrapCallback=function(at){var Je=D;return function(){var Ne=D;D=Je;try{return at.apply(this,arguments)}finally{D=Ne}}}}(J3)),J3}var JI;function Dj(){return JI||(JI=1,X3.exports=Rj()),X3.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var e8;function Kj(){if(e8)return vd;e8=1;var n=Va(),e=Dj();function t(p){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+p,F=1;F<arguments.length;F++)_+="&args[]="+encodeURIComponent(arguments[F]);return"Minified React error #"+p+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(p,_){l(p,_),l(p+"Capture",_)}function l(p,_){for(i[p]=_,p=0;p<_.length;p++)r.add(_[p])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},B={};function D(p){return f.call(B,p)?!0:f.call(w,p)?!1:C.test(p)?B[p]=!0:(w[p]=!0,!1)}function R(p,_,F,Q){if(F!==null&&F.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:F!==null?!F.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function U(p,_,F,Q){if(_===null||typeof _>"u"||R(p,_,F,Q))return!0;if(Q)return!1;if(F!==null)switch(F.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function G(p,_,F,Q,le,ye,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=le,this.mustUseProperty=F,this.propertyName=p,this.type=_,this.sanitizeURL=ye,this.removeEmptyString=tt}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){W[p]=new G(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var _=p[0];W[_]=new G(_,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){W[p]=new G(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){W[p]=new G(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){W[p]=new G(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){W[p]=new G(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){W[p]=new G(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){W[p]=new G(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){W[p]=new G(p,5,!1,p.toLowerCase(),null,!1,!1)});var J=/[\-:]([a-z])/g;function $(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var _=p.replace(J,$);W[_]=new G(_,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var _=p.replace(J,$);W[_]=new G(_,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var _=p.replace(J,$);W[_]=new G(_,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){W[p]=new G(p,1,!1,p.toLowerCase(),null,!1,!1)}),W.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){W[p]=new G(p,1,!1,p.toLowerCase(),null,!0,!0)});function oe(p,_,F,Q){var le=W.hasOwnProperty(_)?W[_]:null;(le!==null?le.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+Te+p}var gt=!1;function Dt(p,_){if(!p||gt)return"";gt=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(yn){var Q=yn}Reflect.construct(p,[],_)}else{try{_.call()}catch(yn){Q=yn}p.call(_.prototype)}else{try{throw Error()}catch(yn){Q=yn}p()}}catch(yn){if(yn&&Q&&typeof yn.stack=="string"){for(var le=yn.stack.split(`
`),ye=Q.stack.split(`
`),tt=le.length-1,Pt=ye.length-1;1<=tt&&0<=Pt&&le[tt]!==ye[Pt];)Pt--;for(;1<=tt&&0<=Pt;tt--,Pt--)if(le[tt]!==ye[Pt]){if(tt!==1||Pt!==1)do if(tt--,Pt--,0>Pt||le[tt]!==ye[Pt]){var Gt=`
`+le[tt].replace(" at new "," at ");return p.displayName&&Gt.includes("<anonymous>")&&(Gt=Gt.replace("<anonymous>",p.displayName)),Gt}while(1<=tt&&0<=Pt);break}}}finally{gt=!1,Error.prepareStackTrace=F}return(p=p?p.displayName||p.name:"")?Ze(p):""}function pt(p){switch(p.tag){case 5:return Ze(p.type);case 16:return Ze("Lazy");case 13:return Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 2:case 15:return p=Dt(p.type,!1),p;case 11:return p=Dt(p.type.render,!1),p;case 1:return p=Dt(p.type,!0),p;default:return""}}function Tt(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case j:return"Fragment";case re:return"Portal";case ge:return"Profiler";case Ae:return"StrictMode";case Me:return"Suspense";case We:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case xe:return(p.displayName||"Context")+".Consumer";case me:return(p._context.displayName||"Context")+".Provider";case Be:var _=p.render;return p=p.displayName,p||(p=_.displayName||_.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case be:return _=p.displayName||null,_!==null?_:Tt(p.type)||"Memo";case nt:_=p._payload,p=p._init;try{return Tt(p(_))}catch{}}return null}function It(p){var _=p.type;switch(p.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return p=_.render,p=p.displayName||p.name||"",_.displayName||(p!==""?"ForwardRef("+p+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tt(_);case 8:return _===Ae?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function Le(p){switch(typeof p){case"boolean":case"number":case"string":case"undefined":return p;case"object":return p;default:return""}}function Re(p){var _=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Ke(p){var _=Re(p)?"checked":"value",F=Object.getOwnPropertyDescriptor(p.constructor.prototype,_),Q=""+p[_];if(!p.hasOwnProperty(_)&&typeof F<"u"&&typeof F.get=="function"&&typeof F.set=="function"){var le=F.get,ye=F.set;return Object.defineProperty(p,_,{configurable:!0,get:function(){return le.call(this)},set:function(tt){Q=""+tt,ye.call(this,tt)}}),Object.defineProperty(p,_,{enumerable:F.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){p._valueTracker=null,delete p[_]}}}}function $e(p){p._valueTracker||(p._valueTracker=Ke(p))}function bt(p){if(!p)return!1;var _=p._valueTracker;if(!_)return!0;var F=_.getValue(),Q="";return p&&(Q=Re(p)?p.checked?"true":"false":p.value),p=Q,p!==F?(_.setValue(p),!0):!1}function vt(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function Ot(p,_){var F=_.checked;return Ne({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:F??p._wrapperState.initialChecked})}function $t(p,_){var F=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;F=Le(_.value!=null?_.value:F),p._wrapperState={initialChecked:Q,initialValue:F,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Kt(p,_){_=_.checked,_!=null&&oe(p,"checked",_,!1)}function un(p,_){Kt(p,_);var F=Le(_.value),Q=_.type;if(F!=null)Q==="number"?(F===0&&p.value===""||p.value!=F)&&(p.value=""+F):p.value!==""+F&&(p.value=""+F);else if(Q==="submit"||Q==="reset"){p.removeAttribute("value");return}_.hasOwnProperty("value")?Wt(p,_.type,F):_.hasOwnProperty("defaultValue")&&Wt(p,_.type,Le(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(p.defaultChecked=!!_.defaultChecked)}function $n(p,_,F){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+p._wrapperState.initialValue,F||_===p.value||(p.value=_),p.defaultValue=_}F=p.name,F!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,F!==""&&(p.name=F)}function Wt(p,_,F){(_!=="number"||vt(p.ownerDocument)!==p)&&(F==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+F&&(p.defaultValue=""+F))}var Jn=Array.isArray;function Sn(p,_,F,Q){if(p=p.options,_){_={};for(var le=0;le<F.length;le++)_["$"+F[le]]=!0;for(F=0;F<p.length;F++)le=_.hasOwnProperty("$"+p[F].value),p[F].selected!==le&&(p[F].selected=le),le&&Q&&(p[F].defaultSelected=!0)}else{for(F=""+Le(F),_=null,le=0;le<p.length;le++){if(p[le].value===F){p[le].selected=!0,Q&&(p[le].defaultSelected=!0);return}_!==null||p[le].disabled||(_=p[le])}_!==null&&(_.selecte Line truncated
`).replace(ff,"")}function Cu(p,_,F){if(_=Dh(_),Dh(p)!==_&&F)throw Error(t(425))}function lc(){}var kc=null,el=null;function Gu(p,_){return p==="textarea"||p==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var aA=typeof setTimeout=="function"?setTimeout:void 0,Ac=typeof clearTimeout=="function"?clearTimeout:void 0,OA=typeof Promise=="function"?Promise:void 0,Kh=typeof queueMicrotask=="function"?queueMicrotask:typeof OA<"u"?function(p){return OA.resolve(null).then(p).catch(Fh)}:aA;function Fh(p){setTimeout(function(){throw p})}function cd(p,_){var F=_,Q=0;do{var le=F.nextSibling;if(p.removeChild(F),le&&le.nodeType===8)if(F=le.data,F==="/$"){if(Q===0){p.removeChild(le),Wi(_);return}Q--}else F!=="$"&&F!=="$?"&&F!=="$!"||Q++;F=le}while(F);Wi(_)}function fs(p){for(;p!=null;p=p.nextSibling){var _=p.nodeType;if(_===1||_===3)break;if(_===8){if(_=p.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return p}function El(p){p=p.previousSibling;for(var _=0;p;){if(p.nodeType===8){var F=p.data;if(F==="$"||F==="$!"||F==="$?"){if(_===0)return p;_--}else F==="/$"&&_++}p=p.previousSibling}return null}var ha=Math.random().toString(36).slice(2),XA="__reactFiber$"+ha,_u="__reactProps$"+ha,IA="__reactContainer$"+ha,uc="__reactEvents$"+ha,ot="__reactListeners$"+ha,TA="__reactHandles$"+ha;function Qs(p){var _=p[XA];if(_)return _;for(var F=p.parentNode;F;){if(_=F[IA]||F[XA]){if(F=_.alternate,_.child!==null||F!==null&&F.child!==null)for(p=El(p);p!==null;){if(F=p[XA])return F;p=El(p)}return _}p=F,F=p.parentNode}return null}function Do(p){return p=p[XA]||p[IA],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function di(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(t(33))}function da(p){return p[_u]||null}var lh=[],Lh=-1;function Is(p){return{current:p}}function ps(p){0>Lh||(p.current=lh[Lh],lh[Lh]=null,Lh--)}function co(p,_){Lh++,lh[Lh]=p.current,p.current=_}var JA={},Ua=Is(JA),Yl=Is(!1),dl=JA;function ju(p,_){var F=p.type.contextTypes;if(!F)return JA;var Q=p.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var le={},ye;for(ye in F)le[ye]=_[ye];return Q&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=_,p.__reactInternalMemoizedMaskedChildContext=le),le}function fl(p){return p=p.childContextTypes,p!=null}function Wu(){ps(Yl),ps(Ua)}function pf(p,_,F){if(Ua.current!==JA)throw Error(t(168));co(Ua,_),co(Yl,F)}function ql(p,_,F){var Q=p.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return F;Q=Q.getChildContext();for(var le in Q)if(!(le in _))throw Error(t(108,It(p)||"Unknown",le));return Ne({},F,Q)}function ta(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||JA,dl=Ua.current,co(Ua,p),co(Yl,Yl.current),!0}function Ah(p,_,F){var Q=p.stateNode;if(!Q)throw Error(t(169));F?(p=ql(p,_,dl),Q.__reactInternalMemoizedMergedChildContext=p,ps(Yl),ps(Ua),co(Ua,p)):ps(Yl),co(Yl,F)}var fa=null,Pc=!1,hd=!1;function kA(p){fa===null?fa=[p]:fa.push(p)}function uh(p){Pc=!0,kA(p)}function ch(){if(!hd&&fa!==null){hd=!0;var p=0,_=mi;try{var F=fa;for(mi=1;p<F.length;p++){var Q=F[p];do Q=Q(!0);while(Q!==null)}fa=null,Pc=!1}catch(le){throw fa!==null&&(fa=fa.slice(p+1)),Aa(Os,ch),le}finally{mi=_,hd=!1}}return null}var Qu=[],Ho=0,Yi=null,ar=0,Ta=[],wa=0,cc=null,Bl=1,Ol="";function hc(p,_){Qu[Ho++]=ar,Qu[Ho++]=Yi,Yi=p,ar=_}function Ji(p,_,F){Ta[wa++]=Bl,Ta[wa++]=Ol,Ta[wa++]=cc,cc=p;var Q=Bl;p=Ol;var le=32-mn(Q)-1;Q&=~(1<<le),F+=1;var ye=32-mn(_)+le;if(30<ye){var tt=le-le%5;ye=(Q&(1<<tt)-1).toString(32),Q>>=tt,le-=tt,Bl=1<<32-mn(_)+le|F<<le|Q,Ol=ye+p}else Bl=1<<ye|F<<le|Q,Ol=p}function bu(p){p.return!==null&&(hc(p,1),Ji(p,1,0))}function hh(p){for(;p===Yi;)Yi=Qu[--Ho],Qu[Ho]=null,ar=Qu[--Ho],Qu[Ho]=null;for(;p===cc;)cc=Ta[--wa],Ta[wa]=null,Ol=Ta[--wa],Ta[wa]=null,Bl=Ta[--wa],Ta[wa]=null}var ka=null,za=null,Ts=!1,PA=null;function xu(p,_){var F=Nc(5,null,null,0);F.elementType="DELETED",F.stateNode=_,F.return=p,_=p.deletions,_===null?(p.deletions=[F],p.flags|=16):_.push(F)}function dh(p,_){switch(p.tag){case 5:var F=p.type;return _=_.nodeType!==1||F.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(p.stateNode=_,ka=p,za=fs(_.firstChild),!0):!1;case 6:return _=p.pendingProps===""||_.nodeType!==3?null:_,_!==null?(p.stateNode=_,ka=p,za=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(F=cc!==null?{id:Bl,overflow:Ol}:null,p.memoizedState={dehydrated:_,treeContext:F,retryLane:1073741824},F=Nc(18,null,null,0),F.stateNode=_,F.return=p,p.child=F,ka=p,za=null,!0):!1;default:return!1}}function Mu(p){return(p.mode&1)!==0&&(p.flags&128)===0}function Il(p){if(Ts){var _=za;if(_){var F=_;if(!dh(p,_)){if(Mu(p))throw Error(t(418));_=fs(F.nextSibling);var Q=ka;_&&dh(p,_)?xu(Q,F):(p.flags=p.flags&-4097|2,Ts=!1,ka=p)}}else{if(Mu(p))throw Error(t(418));p.flags=p.flags&-4097| Line truncated
Error generating stack: `+ye.message+`
`+ye.stack}return{value:p,source:_,stack:le,digest:null}}function jh(p,_,F){return{value:p,source:null,stack:F??null,digest:_??null}}function su(p,_){try{console.error(_.value)}catch(F){setTimeout(function(){throw F})}}var Hu=typeof WeakMap=="function"?WeakMap:Map;function fd(p,_,F){F=lA(-1,F),F.tag=3,F.payload={element:null};var Q=_.value;return F.callback=function(){Zm||(Zm=!0,V0=Q),su(p,_)},F}function Vf(p,_,F){F=lA(-1,F),F.tag=3;var Q=p.type.getDerivedStateFromError;if(typeof Q=="function"){var le=_.value;F.payload=function(){return Q(le)},F.callback=function(){su(p,_)}}var ye=p.stateNode;return ye!==null&&typeof ye.componentDidCatch=="function"&&(F.callback=function(){su(p,_),typeof Q!="function"&&(zc===null?zc=new Set([this]):zc.add(this));var tt=_.stack;this.componentDidCatch(_.value,{componentStack:tt!==null?tt:""})}),F}function Rd(p,_,F){var Q=p.pingCache;if(Q===null){Q=p.pingCache=new Hu;var le=new Set;Q.set(_,le)}else le=Q.get(_),le===void 0&&(le=new Set,Q.set(_,le));le.has(F)||(le.add(F),p=cg.bind(null,p,_,F),_.then(p,p))}function zp(p){do{var _;if((_=p.tag===13)&&(_=p.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return p;p=p.return}while(p!==null);return null}function pd(p,_,F,Q,le){return(p.mode&1)===0?(p===_?p.flags|=65536:(p.flags|=128,F.flags|=131072,F.flags&=-52805,F.tag===1&&(F.alternate===null?F.tag=17:(_=lA(-1,1),_.tag=2,Ra(F,_,1))),F.lanes|=1),p):(p.flags|=65536,p.lanes=le,p)}var gf=te.ReactCurrentOwner,Vl=!1;function kl(p,_,F,Q){_.child=p===null?dc(_,null,F,Q):Qo(_,p.child,F,Q)}function Hm(p,_,F,Q,le){F=F.render;var ye=_.ref;return Na(_,le),Q=Lt(p,_,F,Q,ye,le),F=wt(),p!==null&&!Vl?(_.updateQueue=p.updateQueue,_.flags&=-2053,p.lanes&=~le,yl(p,_,le)):(Ts&&F&&bu(_),_.flags|=1,kl(p,_,Q,le),_.child)}function Hf(p,_,F,Q,le){if(p===null){var ye=F.type;return typeof ye=="function"&&!Wp(ye)&&ye.defaultProps===void 0&&F.compare===null&&F.defaultProps===void 0?(_.tag=15,_.type=ye,Yo(p,_,ye,Q,le)):(p=i0(F.type,null,Q,_,_.mode,le),p.ref=_.ref,p.return=_,_.child=p)}if(ye=p.child,(p.lanes&le)===0){var tt=ye.memoizedProps;if(F=F.compare,F=F!==null?F:kr,F(tt,Q)&&p.ref===_.ref)return yl(p,_,le)}return _.flags|=1,p=Ch(ye,Q),p.ref=_.ref,p.return=_,_.child=p}function Yo(p,_,F,Q,le){if(p!==null){var ye=p.memoizedProps;if(kr(ye,Q)&&p.ref===_.ref)if(Vl=!1,_.pendingProps=Q=ye,(p.lanes&le)!==0)(p.flags&131072)!==0&&(Vl=!0);else return _.lanes=p.lanes,yl(p,_,le)}return Dd(p,_,F,Q,le)}function Np(p,_,F){var Q=_.pendingProps,le=Q.children,ye=p!==null?p.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},co(FA,ks),ks|=F;else{if((F&1073741824)===0)return p=ye!==null?ye.baseLanes|F:F,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:p,cachePool:null,transitions:null},_.updateQueue=null,co(FA,ks),ks|=p,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ye!==null?ye.baseLanes:F,co(FA,ks),ks|=Q}else ye!==null?(Q=ye.baseLanes|F,_.memoizedState=null):Q=F,co(FA,ks),ks|=Q;return kl(p,_,le,F),_.child}function mh(p,_){var F=_.ref;(p===null&&F!==null||p!==null&&p.ref!==F)&&(_.flags|=512,_.flags|=2097152)}function Dd(p,_,F,Q,le){var ye=fl(F)?dl:Ua.current;return ye=ju(_,ye),Na(_,le),F=Lt(p,_,F,Q,ye,le),Q=wt(),p!==null&&!Vl?(_.updateQueue=p.updateQueue,_.flags&=-2053,p.lanes&=~le,yl(p,_,le)):(Ts&&Q&&bu(_),_.flags|=1,kl(p,_,F,le),_.child)}function cA(p,_,F,Q,le){if(fl(F)){var ye=!0;ta(_)}else ye=!1;if(Na(_,le),_.stateNode===null)_f(p,_),tl(_,F,Q),Pd(_,F,Q,le),Q=!0;else if(p===null){var tt=_.stateNode,Pt=_.memoizedProps;tt.props=Pt;var Gt=tt.context,yn=F.contextType;typeof yn=="object"&&yn!==null?yn=ru(yn):(yn=fl(F)?dl:Ua.current,yn=ju(_,yn));var tr=F.getDerivedStateFromProps,Vn=typeof tr=="function"||typeof tt.getSnapshotBeforeUpdate=="function";Vn||typeof tt.UNSAFE_componentWillReceiveProps!="function"&&typeof tt.componentWillReceiveProps!="function"||(Pt!==Q||Gt!==yn)&&Gh(_,tt,Q,yn),ml=!1;var Un=_.memoizedState;tt.state=Un,Eu(_,Q,tt,le),Gt=_.memoizedState,Pt!==Q||Un!==Gt||Yl.current||ml?(typeof tr=="function"&&(DA(_,F,tr,Q),Gt=_.memoizedState),(Pt=ml||mf(_,F,Pt,Q,Un,Gt,yn))?(Vn||typeof tt.UNSAFE_componentWillMount!="function"&&typeof tt.componentWillMount!="function"||(typeof tt.componentWillMount=="function"&&tt.componentWillMount(),typeof tt.UNSAFE_componentWillMount=="function"&&tt.UNSAFE_componentWillMount()),typeof tt.componentDidMount=="function"&&(_.flags|=4194308)):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=Q,_.memoizedState=Gt),tt.props=Q,tt.state=Gt,tt.context=yn,Q=Pt):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{tt=_.stateNode,Kc(p,_),Pt=_.memoizedProps,yn=_.type===_.elementType?Pt:ra(_.type,Pt),tt.props=yn,Vn=_.pendingProps,Un=tt.context,Gt=F.contextType,typeof Gt=="object"&&Gt!==null?Gt=ru(Gt):(Gt=fl(F)?dl:Ua.current,Gt=ju(_,Gt));var zr=F.getDerivedStateFromProps;(tr=typeof zr=="function"||typeof tt.getSnapshotBeforeUpdate=="function")||typeof tt.UNSAFE_ Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var k8;function oQ(){return k8||(k8=1,function(n){const e=rQ(),t=iQ(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=$,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const Ge=new Uint8Array(1),de={foo:function(){return 42}};return Object.setPrototypeOf(de,Uint8Array.prototype),Object.setPrototypeOf(Ge,de),Ge.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function l(Ge){if(Ge>i)throw new RangeError('The value "'+Ge+'" is invalid for option "size"');const de=new Uint8Array(Ge);return Object.setPrototypeOf(de,o.prototype),de}function o(Ge,de,ie){if(typeof Ge=="number"){if(typeof de=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Ge)}return f(Ge,de,ie)}o.poolSize=8192;function f(Ge,de,ie){if(typeof Ge=="string")return D(Ge,de);if(ArrayBuffer.isView(Ge))return U(Ge);if(Ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge);if(Mn(Ge,ArrayBuffer)||Ge&&Mn(Ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Mn(Ge,SharedArrayBuffer)||Ge&&Mn(Ge.buffer,SharedArrayBuffer)))return G(Ge,de,ie);if(typeof Ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const se=Ge.valueOf&&Ge.valueOf();if(se!=null&&se!==Ge)return o.from(se,de,ie);const fe=W(Ge);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ge[Symbol.toPrimitive]=="function")return o.from(Ge[Symbol.toPrimitive]("string"),de,ie);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge)}o.from=function(Ge,de,ie){return f(Ge,de,ie)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function C(Ge){if(typeof Ge!="number")throw new TypeError('"size" argument must be of type number');if(Ge<0)throw new RangeError('The value "'+Ge+'" is invalid for option "size"')}function w(Ge,de,ie){return C(Ge),Ge<=0?l(Ge):de!==void 0?typeof ie=="string"?l(Ge).fill(de,ie):l(Ge).fill(de):l(Ge)}o.alloc=function(Ge,de,ie){return w(Ge,de,ie)};function B(Ge){return C(Ge),l(Ge<0?0:J(Ge)|0)}o.allocUnsafe=function(Ge){return B(Ge)},o.allocUnsafeSlow=function(Ge){return B(Ge)};function D(Ge,de){if((typeof de!="string"||de==="")&&(de="utf8"),!o.isEncoding(de))throw new TypeError("Unknown encoding: "+de);const ie=oe(Ge,de)|0;let se=l(ie);const fe=se.write(Ge,de);return fe!==ie&&(se=se.slice(0,fe)),se}function R(Ge){const de=Ge.length<0?0:J(Ge.length)|0,ie=l(de);for(let se=0;se<de;se+=1)ie[se]=Ge[se]&255;return ie}function U(Ge){if(Mn(Ge,Uint8Array)){const de=new Uint8Array(Ge);return G(de.buffer,de.byteOffset,de.byteLength)}return R(Ge)}function G(Ge,de,ie){if(de<0||Ge.byteLength<de)throw new RangeError('"offset" is outside of buffer bounds');if(Ge.byteLength<de+(ie||0))throw new RangeError('"length" is outside of buffer bounds');let se;return de===void 0&&ie===void 0?se=new Uint8Array(Ge):ie===void 0?se=new Uint8Array(Ge,de):se=new Uint8Array(Ge,de,ie),Object.setPrototypeOf(se,o.prototype),se}function W(Ge){if(o.isBuffer(Ge)){const de=J(Ge.length)|0,ie=l(de);return ie.length===0||Ge.copy(ie,0,0,de),ie}if(Ge.length!==void 0)return typeof Ge.length!="number"||En(Ge.length)?l(0):R(Ge);if(Ge.type==="Buffer"&&Array.isArray(Ge.data))return R(Ge.data)}function J(Ge){if(Ge>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ge|0}function $(Ge){return+Ge!=Ge&&(Ge=0),o.alloc(+Ge)}o.isBuffer=function(de){return de!=null&&de._isBuffer===!0&&de!==o.prototype},o.compare=function(de,ie){if(Mn(de,Uint8Array)&&(de=o.from(de,de.offset,de.byteLength)),Mn(ie,Uint8Array)&&(ie=o.from(ie,ie.offset,ie.byteLength)),!o.isBuffer(de)||!o.isBuffer(ie))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(de===ie)return 0;let se=de.length,fe=ie.length;for(let Ie=0,je=Math.min(se,fe);Ie<je;++Ie)if(de[Ie]!==ie[Ie]){se=de[Ie],fe=ie[Ie];break}return se<fe?-1:fe<se?1:0},o.isEncoding=function(de){switch(String(de).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(de,ie){if(!Array.isArray(de))throw new TypeError('"list" argument must be an Array of BuLine truncated
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var cQ=Nv.exports,R8;function hQ(){return R8||(R8=1,function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",o="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",C=500,w="__lodash_placeholder__",B=1,D=2,R=4,U=1,G=2,W=1,J=2,$=4,oe=8,te=16,H=32,re=64,j=128,Ae=256,ge=512,me=30,xe="...",Be=800,Me=16,We=1,be=2,nt=3,_t=1/0,at=9007199254740991,Je=17976931348623157e292,Ne=NaN,Te=4294967295,Ze=Te-1,gt=Te>>>1,Dt=[["ary",j],["bind",W],["bindKey",J],["curry",oe],["curryRight",te],["flip",ge],["partial",H],["partialRight",re],["rearg",Ae]],pt="[object Arguments]",Tt="[object Array]",It="[object AsyncFunction]",Le="[object Boolean]",Re="[object Date]",Ke="[object DOMException]",$e="[object Error]",bt="[object Function]",vt="[object GeneratorFunction]",Ot="[object Map]",$t="[object Number]",Kt="[object Null]",un="[object Object]",$n="[object Promise]",Wt="[object Proxy]",Jn="[object RegExp]",Sn="[object Set]",Mn="[object String]",En="[object Symbol]",Er="[object Undefined]",Yn="[object WeakMap]",Dn="[object WeakSet]",Ge="[object ArrayBuffer]",de="[object DataView]",ie="[object Float32Array]",se="[object Float64Array]",fe="[object Int8Array]",Ie="[object Int16Array]",je="[object Int32Array]",ht="[object Uint8Array]",Ve="[object Uint8ClampedArray]",Pe="[object Uint16Array]",He="[object Uint32Array]",m=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,ut=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bt=/&(?:amp|lt|gt|quot|#39);/g,rt=/[&<>"']/g,rn=RegExp(Bt.source),Wn=RegExp(rt.source),xn=/<%-([\s\S]+?)%>/g,dr=/<%([\s\S]+?)%>/g,ur=/<%=([\s\S]+?)%>/g,yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ui=/^\w*$/,ci=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/[\\^$.*+?()[\]{}|]/g,Cr=RegExp(Fr.source),Ei=/^\s+/,_n=/\s/,go=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ii=/\{\n\/\* \[wrapped with (.+)\] \*/,Ks=/,? & /,Bs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qn=/[()=,{}\[\]\/\s]/,_i=/\\(\\)?/g,Lr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ki=/\w*$/,la=/^[-+]0x[0-9a-f]+$/i,is=/^0b[01]+$/i,Nr=/^\[object .+?Constructor\]$/,Ha=/^0o[0-7]+$/i,Aa=/^(?:0|[1-9]\d*)$/,Wo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fs=/($^)/,bl=/['\n\r\u2028\u2029\\]/g,ni="\\ud800-\\udfff",bA="\\u0300-\\u036f",Os="\\ufe20-\\ufe2f",qr="\\u20d0-\\u20ff",wr=bA+Os+qr,ua="\\u2700-\\u27bf",vs="a-z\\xdf-\\xf6\\xf8-\\xff",os="\\xac\\xb1\\xd7\\xf7",Qe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",St="\\u2000-\\u206f",mn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fn="A-Z\\xc0-\\xd6\\xd8-\\xde",ln="\\ufe0e\\ufe0f",ir=os+Qe+St+mn,ji="['’]",wo="["+ni+"]",xs="["+ir+"]",_a="["+wr+"]",xA="\\d+",vi="["+ua+"]",fu="["+vs+"]",tA="[^"+ni+ir+xA+ua+vs+Fn+"]",Za="\\ud83c[\\udffb-\\udfff]",ba="(?:"+_a+"|"+Za+")",Ec="[^"+ni+"]",xa="(?:\\ud83c[\\udde6-\\uddff]){2}",mi="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+Fn+"]",gi="\\u200d",ll="(?:"+fu+"|"+tA+")",cs="(?:"+So+"|"+tA+")",Al="(?:"+ji+"(?:d|ll|m|re|s|t|ve))?",Nl="(?:"+ji+"(?:D|LL|M|RE|S|T|VE))?",Bi=ba+"?",xl="["+ln+"]?",ul="(?:"+gi+"(?:"+[Ec,xa,mi].join("|")+")"+xl+Bi+")*",Eo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hs=xl+Bi+ul,ss="(?:"+[vi,xa,mi].join("|")+")"+hs,vo="(?:"+[Ec+_a+"?",_a,xa,mi,wo].join("|")+")",Zi=RegExp(ji,"g"),Bc=RegExp(_a,"g"),Cs=RegExp(Za+"(?="+Za+")|"+vo+hs,"g"),Ma=RegExp([So+"?"+fu+"+"+Al+"(?="+[xs,So,"$"].join("|")+")",cs+"+"+Nl+"(?="+[xs,So+ll,"$"].join("|")+")",So+"?"+ll+"+"+Al,So+"+"+Nl,yo,Eo,xA,ss].join("|"),"g"),js=RegExp("["+gi+ni+wr+ln+"]"),Ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ml=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$r=-1,_r={};_r[ie]=_r[se]=_r[fe]=_r[Ie]=_r[je]=_r[ht]=_r[Ve]=_r[Pe]=_r[He]=!0,_r[pt]=_r[Tt]=_r[Ge]=_r[Le]=_r[de]=_r[Re]=_r[$e]=_r[bt]=_r[Ot]=_r[$t]=_r[un]=_r[Jn]=_r[Sn]=_r[Mn]=_r[Yn]=!1;var Wi={};Wi[pt]=Wi[Tt]=Wi[Ge]=Wi[de]=Wi[Le]=Wi[Re]=Wi[ie]=Wi[se]=Wi[fe]=Wi[Ie]=Wi[je]=Wi[Ot]=Wi[$t]=Wi[un]=Wi[Jn]=Wi[Sn]=Wi[Mn]=Wi[En]=Wi[ht]=Wi[Ve]=Wi[Pe]=Wi[He]=!0,Wi[$e]=Wi[bt]=Wi[Yn]=!1;var ee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",Line truncated
/* [wrapped with `+T+`] */
`)}function y(b){return Co(b)||qp(b)||!!(Up&&b&&b[Up])}function E(b,T){var V=typeof b;return T=T??at,!!T&&(V=="number"||V!="symbol"&&Aa.test(b))&&b>-1&&b%1==0&&b<T}function S(b,T,V){if(!Rl(V))return!1;var ve=typeof T;return(ve=="number"?Cc(V)&&E(T,V.length):ve=="string"&&T in V)?Tu(V[T],b):!1}function K(b,T){if(Co(b))return!1;var V=typeof b;return V=="number"||V=="symbol"||V=="boolean"||b==null||_c(b)?!0:ui.test(b)||!yi.test(b)||T!=null&&b in ds(T)}function Z(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function he(b){var T=md(b),V=ot[T];if(typeof V!="function"||!(T in di.prototype))return!1;if(b===V)return!0;var ve=vf(V);return!!ve&&b===ve[0]}function Ce(b){return!!ih&&ih in b}var ke=Wl?wf:hp;function Ue(b){var T=b&&b.constructor,V=typeof T=="function"&&T.prototype||Xa;return b===V}function mt(b){return b===b&&!Rl(b)}function Et(b,T){return function(V){return V==null?!1:V[b]===T&&(T!==t||b in ds(V))}}function Xt(b){var T=cn(b,function(ve){return V.size===C&&V.clear(),ve}),V=T.cache;return T}function Qt(b,T){var V=b[1],ve=T[1],Xe=V|ve,dt=Xe<(W|J|j),Ft=ve==j&&V==oe||ve==j&&V==Ae&&b[7].length<=T[8]||ve==(j|Ae)&&T[7].length<=T[8]&&V==oe;if(!(dt||Ft))return b;ve&W&&(b[2]=T[2],Xe|=V&W?0:$);var Yt=T[3];if(Yt){var tn=b[3];b[3]=tn?gl(tn,Yt,T[4]):Yt,b[4]=tn?wl(b[3],w):T[4]}return Yt=T[5],Yt&&(tn=b[5],b[5]=tn?$u(tn,Yt,T[6]):Yt,b[6]=tn?wl(b[5],w):T[6]),Yt=T[7],Yt&&(b[7]=Yt),ve&j&&(b[8]=b[8]==null?T[8]:ea(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=Xe,b}function Cn(b){var T=[];if(b!=null)for(var V in ds(b))T.push(V);return T}function On(b){return Sl.call(b)}function er(b,T,V){return T=_s(T===t?b.length-1:T,0),function(){for(var ve=arguments,Xe=-1,dt=_s(ve.length-T,0),Ft=An(dt);++Xe<dt;)Ft[Xe]=ve[T+Xe];Xe=-1;for(var Yt=An(T+1);++Xe<T;)Yt[Xe]=ve[Xe];return Yt[T]=V(Ft),Ws(b,this,Yt)}}function Zn(b,T){return T.length<2?b:nu(b,Vt(T,0,-1))}function fr(b,T){for(var V=b.length,ve=ea(T.length,V),Xe=No(b);ve--;){var dt=T[ve];b[ve]=E(dt,V)?Xe[dt]:t}return b}function or(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Ir=li(wt),Jr=ud||function(b,T){return Sr.setTimeout(b,T)},Br=li(Nt);function eo(b,T,V){var ve=T+"";return Br(b,h(ve,ia(Da(ve),V)))}function li(b){var T=0,V=0;return function(){var ve=ff(),Xe=Me-(ve-V);if(V=ve,Xe>0){if(++T>=Be)return arguments[0]}else T=0;return b.apply(t,arguments)}}function qs(b,T){var V=-1,ve=b.length,Xe=ve-1;for(T=T===t?ve:T;++V<T;){var dt=lt(V,Xe),Ft=b[dt];b[dt]=b[V],b[V]=Ft}return b.length=T,b}var $s=Xt(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(ci,function(V,ve,Xe,dt){T.push(Xe?dt.replace(_i,"$1"):ve||V)}),T});function Vs(b){if(typeof b=="string"||_c(b))return b;var T=b+"";return T=="0"&&1/b==-_t?"-0":T}function ma(b){if(b!=null){try{return hl.call(b)}catch{}try{return b+""}catch{}}return""}function ia(b,T){return Vo(Dt,function(V){var ve="_."+V[0];T&V[1]&&!Xc(b,ve)&&b.push(ve)}),b.sort()}function dA(b){if(b instanceof di)return b.clone();var T=new Do(b.__wrapped__,b.__chain__);return T.__actions__=No(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function ja(b,T,V){(V?S(b,T,V):T===t)?T=1:T=_s(Mo(T),0);var ve=b==null?0:b.length;if(!ve||T<1)return[];for(var Xe=0,dt=0,Ft=An(ac(ve/T));Xe<ve;)Ft[dt++]=Vt(b,Xe,Xe+=T);return Ft}function oa(b){for(var T=-1,V=b==null?0:b.length,ve=0,Xe=[];++T<V;){var dt=b[T];dt&&(Xe[ve++]=dt)}return Xe}function Jo(){var b=arguments.length;if(!b)return[];for(var T=An(b-1),V=arguments[0],ve=b;ve--;)T[ve-1]=arguments[ve];return rc(Co(V)?No(V):[V],Qo(T,1))}var Ai=yt(function(b,T){return Hl(b)?Uo(b,Qo(T,1,Hl,!0)):[]}),qo=yt(function(b,T){var V=Iu(T);return Hl(V)&&(V=t),Hl(b)?Uo(b,Qo(T,1,Hl,!0),wi(V,2)):[]}),Ss=yt(function(b,T){var V=Iu(T);return Hl(V)&&(V=t),Hl(b)?Uo(b,Qo(T,1,Hl,!0),t,V):[]});function Us(b,T,V){var ve=b==null?0:b.length;return ve?(T=V||T===t?1:Mo(T),Vt(b,T<0?0:T,ve)):[]}function ks(b,T,V){var ve=b==null?0:b.length;return ve?(T=V||T===t?1:Mo(T),T=ve-T,Vt(b,0,T<0?0:T)):[]}function FA(b,T){return b&&b.length?Ko(b,wi(T,3),!0,!0):[]}function so(b,T){return b&&b.length?Ko(b,wi(T,3),!0):[]}function Ld(b,T,V,ve){var Xe=b==null?0:b.length;return Xe?(V&&typeof V!="number"&&S(b,T,V)&&(V=0,ve=Xe),kd(b,T,V,ve)):[]}function fA(b,T,V){var ve=b==null?0:b.length;if(!ve)return-1;var Xe=V==null?0:Mo(V);return Xe<0&&(Xe=_s(ve+Xe,0)),wA(b,wi(T,3),Xe)}function au(b,T,V){var ve=b==null?0:b.length;if(!ve)return-1;var Xe=ve-1;return V!==t&&(Xe=Mo(V),Xe=V<0?_s(ve+Xe,0):ea(Xe,ve-1)),wA(b,wi(T,3),Xe,!0)}function yc(b){var T=b==null?0:b.length;return T?Qo(b,1):[]}function rl(b){var T=b==null?0:b.length;return T?Qo(b,_t):[]}function vl(b,T){var V=b==null?0:b.length;return V?(T=T===t?1:Mo(T),Qo(b,T)):[]}function ep(b){for(var T=-1,V=b==null?0:b.length,ve={};++T<V;){var Xe=b[T];ve[Xe[0]]=Xe[1]}return ve}function tp(b){return b&&b.length?b[0]:t}function Ud(b,T,V){var ve=b==null?0:b.length;if(!ve)return-1;var Xe=V==null?0:Mo(V);return Xe<0&&(X Line truncated
`;b.replace(Gr,function(no,bs,Ps,Yd,Hh,qd){return Ps||(Ps=Yd),sr+=b.slice(zn,qd).replace(bl,EA),bs&&(Yt=!0,sr+=`' +
__e(`+bs+`) +
'`),Hh&&(tn=!0,sr+=`';
`+Hh+`;
__p += '`),Ps&&(sr+=`' +
((__t = (`+Ps+`)) == null ? '' : __t) +
'`),zn=qd+no.length,no}),sr+=`';
`;var to=Ro.call(T,"variable")&&T.variable;if(!to)sr=`with (obj) {
`+sr+`
}
`;else if(qn.test(to))throw new Di(o);sr=(tn?sr.replace(m,""):sr).replace(ft,"$1").replace(ut,"$1;"),sr="function("+(to||"obj")+`) {
`+(to?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Yt?", __e = _.escape":"")+(tn?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+sr+`return __p
}`;var es=Bm(function(){return Po(dt,Si+"return "+sr).apply(t,Ft)});if(es.source=sr,Ap(es))throw es;return es}function Zl(b){return Hs(b).toLowerCase()}function Sa(b){return Hs(b).toUpperCase()}function Gd(b,T,V){if(b=Hs(b),b&&(V||T===t))return uf(b);if(!b||!(T=br(T)))return b;var ve=jl(b),Xe=jl(T),dt=mu(ve,Xe),Ft=Oh(ve,Xe)+1;return na(ve,dt,Ft).join("")}function d0(b,T,V){if(b=Hs(b),b&&(V||T===t))return b.slice(0,$A(b)+1);if(!b||!(T=br(T)))return b;var ve=jl(b),Xe=Oh(ve,jl(T))+1;return na(ve,0,Xe).join("")}function jd(b,T,V){if(b=Hs(b),b&&(V||T===t))return b.replace(Ei,"");if(!b||!(T=br(T)))return b;var ve=jl(b),Xe=mu(ve,jl(T));return na(ve,Xe).join("")}function z3(b,T){var V=me,ve=xe;if(Rl(T)){var Xe="separator"in T?T.separator:Xe;V="length"in T?Mo(T.length):V,ve="omission"in T?br(T.omission):ve}b=Hs(b);var dt=b.length;if(eh(b)){var Ft=jl(b);dt=Ft.length}if(V>=dt)return b;var Yt=V-th(ve);if(Yt<1)return ve;var tn=Ft?na(Ft,0,Yt).join(""):b.slice(0,Yt);if(Xe===t)return tn+ve;if(Ft&&(Yt+=tn.length-Yt),u0(Xe)){if(b.slice(Yt).search(Xe)){var zn,jn=tn;for(Xe.global||(Xe=oc(Xe.source,Hs(ki.exec(Xe))+"g")),Xe.lastIndex=0;zn=Xe.exec(jn);)var sr=zn.index;tn=tn.slice(0,sr===t?Yt:sr)}}else if(b.indexOf(br(Xe),Yt)!=Yt){var Gr=tn.lastIndexOf(Xe);Gr>-1&&(tn=tn.slice(0,Gr))}return tn+ve}function f0(b){return b=Hs(b),b&&rn.test(b)?b.replace(Bt,Bo):b}var Sm=tl(function(b,T,V){return b+(V?" ":"")+T.toUpperCase()}),$p=mf("toUpperCase");function Em(b,T,V){return b=Hs(b),T=V?t:T,T===t?ld(b)?qf(b):lf(b):b.match(T)||[]}var Bm=yt(function(b,T){try{return Ws(b,t,T)}catch(V){return Ap(V)?V:new Di(V)}}),X_=gc(function(b,T){return Vo(T,function(V){V=Vs(V),xu(b,V,Vn(b[V],b))}),b});function J_(b){var T=b==null?0:b.length,V=wi();return b=T?oo(b,function(ve){if(typeof ve[1]!="function")throw new rA(l);return[V(ve[0]),ve[1]]}):[],yt(function(ve){for(var Xe=-1;++Xe<T;){var dt=b[Xe];if(Ws(dt[0],this,ve))return Ws(dt[1],this,ve)}})}function eb(b){return $f(Il(b,B))}function bg(b){return function(){return b}}function Cv(b,T){return b==null||b!==b?T:b}var _v=jh(),cp=jh(!0);function Wc(b){return b}function xg(b){return O(typeof b=="function"?b:Il(b,B))}function N3(b){return I(Il(b,B))}function G3(b,T){return z(b,Il(T,B))}var j3=yt(function(b,T){return function(V){return ml(V,b,T)}}),W3=yt(function(b,T){return function(V){return ml(b,V,T)}});function bv(b,T,V){var ve=ne(T),Xe=tu(T,ve);V==null&&!(Rl(T)&&(Xe.length||!ve.length))&&(V=T,T=b,b=this,Xe=tu(T,ne(T)));var dt=!(Rl(V)&&"chain"in V)||!!V.chain,Ft=wf(b);return Vo(Xe,function(Yt){var tn=T[Yt];b[Yt]=tn,Ft&&(b.prototype[Yt]=function(){var zn=this.__chain__;if(dt||zn){var jn=b(this.__wrapped__),sr=jn.__actions__=No(this.__actions__);return sr.push({func:tn,args:arguments,thisArg:b}),jn.__chain__=zn,jn}return tn.apply(b,rc([this.value()],arguments))})}),b}function Q3(){return Sr._===this&&(Sr._=Ja),this}function xv(){}function Y3(b){return b=Mo(b),yt(function(T){return ue(T,b)})}var Wd=Vf(oo),Mg=Vf(YA),tb=Vf(Jc);function nb(b){return K(b)?sd(Vs(b)):De(b)}function q3(b){return function(T){return b==null?t:nu(b,T)}}var $3=pd(),Zu=pd(!0);function Qc(){return[]}function hp(){return!1}function Qd(){return{}}function Om(){return""}function Ef(){return!0}function sj(b,T){if(b=Mo(b),b<1||b>at)return[];var V=Te,ve=ea(b,Te);T=wi(T),b-=Te;for(var Xe=Wf(ve,T);++V<b;)T(V);return Xe}function aj(b){return Co(b)?oo(b,Vs):_c(b)?[b]:No($s(Hs(b)))}function lj(b){var T=++rh;return Hs(b)+T}var Aj=fd(function(b,T){return b+T},0),uj=kl("ceil"),cj=fd(function(b,T){return b/T},1),hj=kl("floor");function dj(b){return b&&b.length?Rc(b,Wc,Na):t}function fj(b,T){return b&&b.length?Rc(b,wi(T,2),Na):t}function pj(b){return od(b,Wc)}function mj(b,T){return od(b,wi(T,2))}function gj(b){return b&&b.length?Rc(b,Wc,v):t}function yj(b,T){return b&&b.length?Rc(b,wi(T,2),v):t}var vj=fd(function(b,T){return b*T},1),Cj=kl("round"),_j=fd(function(b,T){return b-T},0);function bj(b){return b&&b.length?Eh(b,Wc):0}function xj(b,T){return b&&b.length?Eh(b,wi(T,2)):0}return ot.after=Gt,ot.ary=yn,ot.assign=fv,ot.assignIn=Cg,ot.assignInWith=A1,ot.assignWith=u1,ot.at=pv,ot.before=tr,ot.bind=Vn,ot.bindAll=X_,ot.bindKey=Un,ot.castArray=O3,ot.chain=Wp,ot.chunk=ja,ot.compact=oa,ot.concat=Jo,ot.cond=J_,ot.conforms=eb,ot.constant=bg,ot.countBy=fg,ot.create=Z_,ot.curry=zr,ot.curryRight=Hr,ot.debounce=oi,ot.defaults=mv,ot.defaultsDeep=_g,ot.defer=Wa,ot.delay=sn,ot.difference=Ai,ot.differenceBy=qo,ot.differenceWith=Ss,ot.drop=Us,ot.dropRight=ks,ot.dropRightWhile=FA,ot.dropWhile=so,ot.fill=Ld,ot.filter=s0,ot.flatMap=bm,ot.flatMapDeep=mg,ot.flatMapDepth=zd,ot.flatten=yc,ot.flattenDeep=rl,ot.flattenDepth=vl,ot.flip=Ht,ot.flow=_v,ot.flowRight=cp,ot.fromPairs=ep,ot.functions=A,ot.functionsIn=u,ot.groupBy=Yp,ot.initial=Zm,ot.intersection=V0,ot.intersectionBy=zc,ot.intersectionWith=Xm,ot.invert=P,ot.invertBy=N,ot.invokeMap=gg,ot.iteratee=xg,ot.keyBy=ov,ot.keys=ne,ot.keysIn=ce,ot.map=Mf,ot.mapKeys=Se,ot.mapValues=Fe,ot.matches=N3,ot.matchesProperty=G3,ot.memoize= Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const D=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&D.push(new vr(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Qy(j1(l))&&WA(l.type)==="identity"&&D.push(new vr(t,l,'"text-font" does not support identity functions'))),D.concat(r({key:n.key,value:l,valueSpec:w,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function xL(n){return bL(n,"paint")}function ML(n){return bL(n,"layout")}function wL(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;if(rs(t)!=="object")return[new vr(r,t,`object expected, ${rs(t)} found`)];!t.type&&!t.ref&&e.push(new vr(r,t,'either "type" or "ref" is required'));let l=WA(t.type);const o=WA(t.ref);if(t.id){const f=WA(t.id);for(let C=0;C<n.arrayIndex;C++){const w=i.layers[C];WA(w.id)===f&&e.push(new vr(r,t.id,`duplicate layer id "${t.id}", previously used at line ${w.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(C=>{C in t&&e.push(new vr(r,t[C],`"${C}" is prohibited for ref layers`))});let f;i.layers.forEach(C=>{WA(C.id)===o&&(f=C)}),f?f.ref?e.push(new vr(r,t.ref,"ref cannot reference another ref layer")):l=WA(f.type):e.push(new vr(r,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new vr(r,t,'missing required property "source"'));else{const f=i.sources&&i.sources[t.source],C=f&&WA(f.type);f?C==="vector"&&l==="raster"?e.push(new vr(r,t.source,`layer "${t.id}" requires a raster source`)):C!=="raster-dem"&&l==="hillshade"?e.push(new vr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):C!=="raster-dem"&&l==="color-relief"?e.push(new vr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):C==="raster"&&l!=="raster"?e.push(new vr(r,t.source,`layer "${t.id}" requires a vector source`)):C==="vector"&&!t["source-layer"]?e.push(new vr(r,t,`layer "${t.id}" must specify a "source-layer"`)):C==="raster-dem"&&l!=="hillshade"&&l!=="color-relief"?e.push(new vr(r,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(C!=="geojson"||!f.lineMetrics)&&e.push(new vr(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new vr(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Df({key:r,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:VB,layout(f){return Df({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(C){return ML(By({layerType:l},C))}}})},paint(f){return Df({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(C){return xL(By({layerType:l},C))}}})}}})),e}function W1(n){const e=n.value,t=n.key,r=rs(e);return r!=="string"?[new vr(t,e,`string expected, ${r} found`)]:[]}function _$(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,s=i.source_raster_dem,l=n.style;let o=[];const f=rs(r);if(r===void 0)return o;if(f!=="object")return o.push(new vr("source_raster_dem",r,`object expected, ${f} found`)),o;const w=WA(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],D=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const R in r)!w&&B.includes(R)?o.push(new vr(R,r[R],`In "${t}": "${R}" is only valid when "encoding" is set to "custom". ${D} encoding found`)):s[R]?o=o.concat(n.validateSpec({key:R,value:r[R],valueSpec:s[R],validateSpec:n.validateSpec,style:l,styleSpec:i})):o.push(new vr(R,r[R],`unknown property "${R}"`));return o}const s7={promoteId:b$};function SL(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,s=n.validateSpec;if(!e.type)return[new vr(t,e,'"type" is required')];const l=WA(e.type);let o;switch(l){case"vector":case"raster":return o=Df({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:s7,validateSpec:s}),o;case"raster-dem":return o=_$({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Df({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:s7}),e.cluster)for(const f in e.clusterProperties){const[C,w]=e.clusterProperties[f],B=typeof C=="string"?[C,["accumulated"],["get",f]]:C;o.push(...Ty({key:`${t}.${f}.map`,value:w,expressionContext:"cluster-map"})),o.push(...Ty({key:`${t}.${f}.reduce`,value:B,expressionContext:"cluster-reduce"}))}return o;case"video":return Df({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,sLine truncated
${B}`),G].join(`
${o}`)}return C}(n,"",0)}function l7(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function RL(n,e=2){return n=l7(n,Es.$root),n.layers&&(n.layers=n.layers.map(t=>l7(t,Es.layer))),D$(n,{indent:e})}function v4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function A7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function y6(n,e){return typeof e=="string"&&e[0]==="@"?y6(n,n.constants[e]):e}function K$(n){return Array.isArray(n.stops)}function Ev(n,e,t){n[t]=n[e],delete n[e]}function F$(n){n.version=8,v$(n,i=>{i.type==="video"&&i.url!==void 0&&Ev(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),cC(n,i=>{v4(i,s=>{s["symbol-min-distance"]!==void 0&&Ev(s,"symbol-min-distance","symbol-spacing")}),A7(i,s=>{s["background-image"]!==void 0&&Ev(s,"background-image","background-pattern"),s["line-image"]!==void 0&&Ev(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&Ev(s,"fill-image","fill-pattern")})}),qB(n,{paint:!0,layout:!0},i=>{const s=y6(n,i.value);K$(s)&&s.stops.forEach(l=>{l[1]=y6(n,l[1])}),i.set(s)}),delete n.constants,cC(n,i=>{v4(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),A7(i,s=>{s["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(i){function s(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return s(i);if(typeof i=="object")return i.stops.forEach(l=>{l[1]=s(l[1])}),i;throw new Error("unexpected font value")}cC(n,i=>{v4(i,s=>{s["text-font"]&&(s["text-font"]=e(s["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function L$(n){const e=[];return cC(n,t=>{t.filter&&(t.filter=uC(t.filter))}),qB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{Yy(r)||(typeof r=="object"&&!Array.isArray(r)?(s(jB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(yL(r)))}),n}function U$(n){return JSON.parse(z$(JSON.stringify(n)))}function z$(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,s,l,o]=r.slice(1);return[s,l]=[s,l].map(f=>f.endsWith("%")?f:`${parseFloat(f)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[i,s,l,o].filter(Boolean).join(",")})"`}return e})}function N$(n){let e=!1;if(n.version===7&&(n=F$(n),e=!0),n.version===8&&(e=!!L$(n),e=!0),qB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(U$(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Jd=Es,G$={StyleExpression:mL,StylePropertyFunction:Ex,ZoomConstantExpression:f6,ZoomDependentExpression:p6,createExpression:wx,createPropertyExpression:Sx,isExpression:Yy,isExpressionFilter:p_,isZoomExpression:i$,normalizePropertyExpression:o$},j$={convertFunction:jB,createFunction:GB,isFunction:Qy};var Ix=ox();const W$=zl(Ix);var Zb={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.6.2/LICENSE.txt
*/var Q$=Zb.exports,u7;function Y$(){return u7||(u7=1,function(n,e){(function(t,r){n.exports=r()})(Q$,function(){var t={},r={};function i(l,o,f){if(r[l]=f,l==="index"){var C="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",w={};return r.shared(w),r.index(t,w),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([C],{type:"text/javascript"}))),t}}i("shared",["exports"],function(l){function o(c,A,u,g){return new(u||(u=Promise))(function(x,k){function P(ne){try{q(g.next(ne))}catch(ce){k(ce)}}function N(ne){try{q(g.throw(ne))}catch(ce){k(ce)}}function q(ne){var ce;ne.done?x(ne.value):(ce=ne.value,ce instanceof u?ce:new u(function(Se){Se(ce)})).then(P,N)}q((g=g.apply(c,A||[])).next())})}function f(c,A){this.x=c,this.y=A}function C(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var w,B;typeof SuppressedError=="function"&&SuppressedError,f.prototype={clone(){return new f(this.x,this.y)},add(c){return this.clone()._add(c)},sub(c){return this.clone()._sub(c)},multByPoint(c){return this.clone()._multByPoint(c)},divByPoint(c){return this.clone()._divByPoint(c)},mult(c){return this.clone()._mult(c)},div(c){return this.clone()._div(c)},rotate(c){return this.clone()._rotate(c)},rotateAround(c,A){return this.clone()._rotateAround(c,A)},matMult(c){return this.clone()._matMult(c)},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(c){return this.x===c.x&&this.y===c.y},dist(c){return Math.sqrt(this.distSqr(c))},distSqr(c){const A=c.x-this.x,u=c.y-this.y;return A*A+u*u},angle(){return Math.atan2(this.y,this.x)},angleTo(c){return Math.atan2(this.y-c.y,this.x-c.x)},angleWith(c){return this.angleWithSep(c.x,c.y)},angleWithSep(c,A){return Math.atan2(this.x*A-this.y*c,this.x*c+this.y*A)},_matMult(c){const A=c[2]*this.x+c[3]*this.y;return this.x=c[0]*this.x+c[1]*this.y,this.y=A,this},_add(c){return this.x+=c.x,this.y+=c.y,this},_sub(c){return this.x-=c.x,this.y-=c.y,this},_mult(c){return this.x*=c,this.y*=c,this},_div(c){return this.x/=c,this.y/=c,this},_multByPoint(c){return this.x*=c.x,this.y*=c.y,this},_divByPoint(c){return this.x/=c.x,this.y/=c.y,this},_unit(){return this._div(this.mag()),this},_perp(){const c=this.y;return this.y=this.x,this.x=-c,this},_rotate(c){const A=Math.cos(c),u=Math.sin(c),g=u*this.x+A*this.y;return this.x=A*this.x-u*this.y,this.y=g,this},_rotateAround(c,A){const u=Math.cos(c),g=Math.sin(c),x=A.y+g*(this.x-A.x)+u*(this.y-A.y);return this.x=A.x+u*(this.x-A.x)-g*(this.y-A.y),this.y=x,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:f},f.convert=function(c){if(c instanceof f)return c;if(Array.isArray(c))return new f(+c[0],+c[1]);if(c.x!==void 0&&c.y!==void 0)return new f(+c.x,+c.y);throw new Error("Expected [x, y] or {x, y} point format")};var D=function(){if(B)return w;function c(A,u,g,x){this.cx=3*A,this.bx=3*(g-A)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*u,this.by=3*(x-u)-this.cy,this.ay=1-this.cy-this.by,this.p1x=A,this.p1y=u,this.p2x=g,this.p2y=x}return B=1,w=c,c.prototype={sampleCurveX:function(A){return((this.ax*A+this.bx)*A+this.cx)*A},sampleCurveY:function(A){return((this.ay*A+this.by)*A+this.cy)*A},sampleCurveDerivativeX:function(A){return(3*this.ax*A+2*this.bx)*A+this.cx},solveCurveX:function(A,u){if(u===void 0&&(u=1e-6),A<0)return 0;if(A>1)return 1;for(var g=A,x=0;x<8;x++){var k=this.sampleCurveX(g)-A;if(Math.abs(k)<u)return g;var P=this.sampleCurveDerivativeX(g);if(Math.abs(P)<1e-6)break;g-=k/P}var N=0,q=1;for(g=A,x=0;x<20&&(k=this.sampleCurveX(g),!(Math.abs(k-A)<u));x++)A>k?N=g:q=g,g=.5*(q-N)+N;return g},solve:function(A,u){return this.sampleCurveY(this.solveCurveX(A,u))}},w}(),R=C(D);let U,G;function W(){return U==null&&(U=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),U}function J(){if(G==null&&(G=!1,W())){const A=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(A){for(let g=0;g<5*5;g++){const x=4*g;A.fillStyle=`rgb(${x},${x+1},${x+2})`,A.fillRect(g%5,Math.floor(g/5),1,1)}const u=A.getImageData(0,0,5,5).data;for(let g=0;g<5*5*4;g++)if(g%4!=3&&u[g]!==g){G=!0;break}}}return G||!1}var $=1e-6,oe=typeof Float32Array<"u"?Float32Array:Array;function te(){var c=new oe(9);return oe!=Float32Array&&(c[1]=0,c[2]=0,c[3]=0,c[5]=0,c[6]=0,c[7]=0),c[0]=1,c[4]=1,c[8]=1,c}function H(c){return c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1,c}function re(){var c=new oe(3);return oe!=Float32Array&&(c[0]=0,c[1]=0,c[2]=0),c}function j(c){return Math.hypot(c[0],c[1],c[2])}function Ae(c,A,u){var g=new oe(3);return g[0]=c,g[1]=A,g[2]=u,g}function ge(c,A,u){return c[0]=A[0]+u[0],c[1]=A[1]+u[1],c[2]=A[2]+u[2],c}function me(c,A,u){return c[0]=A[0]*u,c[1]=A[1]*u,c[2]=A[2]*u,c}function xe(c,A,u){var g=A[0],x=A[1],kLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Se[1])} }\`.`)];const Fe=[];return c.layerType==="symbol"&&(N==="text-field"&&x&&!x.glyphs&&Fe.push(new _n(u,P,'use of "text-field" requires a style "glyphs" property')),N==="text-font"&&Nu(El(P))&&fs(P.type)==="identity"&&Fe.push(new _n(u,P,'"text-font" does not support identity functions'))),Fe.concat(g({key:c.key,value:P,valueSpec:ce,style:x,styleSpec:k,expressionContext:"property",propertyType:A,propertyKey:N}))}function da(c){return di(c,"paint")}function lh(c){return di(c,"layout")}function Lh(c){let A=[];const u=c.value,g=c.key,x=c.style,k=c.styleSpec;if(Qi(u)!=="object")return[new _n(g,u,`object expected, ${Qi(u)} found`)];u.type||u.ref||A.push(new _n(g,u,'either "type" or "ref" is required'));let P=fs(u.type);const N=fs(u.ref);if(u.id){const q=fs(u.id);for(let ne=0;ne<c.arrayIndex;ne++){const ce=x.layers[ne];fs(ce.id)===q&&A.push(new _n(g,u.id,`duplicate layer id "${u.id}", previously used at line ${ce.id.__line__}`))}}if("ref"in u){let q;["type","source","source-layer","filter","layout"].forEach(ne=>{ne in u&&A.push(new _n(g,u[ne],`"${ne}" is prohibited for ref layers`))}),x.layers.forEach(ne=>{fs(ne.id)===N&&(q=ne)}),q?q.ref?A.push(new _n(g,u.ref,"ref cannot reference another ref layer")):P=fs(q.type):A.push(new _n(g,u.ref,`ref layer "${N}" not found`))}else if(P!=="background")if(u.source){const q=x.sources&&x.sources[u.source],ne=q&&fs(q.type);q?ne==="vector"&&P==="raster"?A.push(new _n(g,u.source,`layer "${u.id}" requires a raster source`)):ne!=="raster-dem"&&P==="hillshade"||ne!=="raster-dem"&&P==="color-relief"?A.push(new _n(g,u.source,`layer "${u.id}" requires a raster-dem source`)):ne==="raster"&&P!=="raster"?A.push(new _n(g,u.source,`layer "${u.id}" requires a vector source`)):ne!=="vector"||u["source-layer"]?ne==="raster-dem"&&P!=="hillshade"&&P!=="color-relief"?A.push(new _n(g,u.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):P!=="line"||!u.paint||!u.paint["line-gradient"]||ne==="geojson"&&q.lineMetrics||A.push(new _n(g,u,`layer "${u.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new _n(g,u,`layer "${u.id}" must specify a "source-layer"`)):A.push(new _n(g,u.source,`source "${u.source}" not found`))}else A.push(new _n(g,u,'missing required property "source"'));return A=A.concat(ha({key:g,value:u,valueSpec:k.layer,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*":()=>[],type:()=>c.validateSpec({key:`${g}.type`,value:u.type,valueSpec:k.layer.type,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,object:u,objectKey:"type"}),filter:Qs,layout:q=>ha({layer:u,key:q.key,value:q.value,style:q.style,styleSpec:q.styleSpec,validateSpec:q.validateSpec,objectElementValidators:{"*":ne=>lh(go({layerType:P},ne))}}),paint:q=>ha({layer:u,key:q.key,value:q.value,style:q.style,styleSpec:q.styleSpec,validateSpec:q.validateSpec,objectElementValidators:{"*":ne=>da(go({layerType:P},ne))}})}})),A}function Is(c){const A=c.value,u=c.key,g=Qi(A);return g!=="string"?[new _n(u,A,`string expected, ${g} found`)]:[]}const ps={promoteId:function({key:c,value:A}){if(Qi(A)==="string")return Is({key:c,value:A});{const u=[];for(const g in A)u.push(...Is({key:`${c}.${g}`,value:A[g]}));return u}}};function co(c){const A=c.value,u=c.key,g=c.styleSpec,x=c.style,k=c.validateSpec;if(!A.type)return[new _n(u,A,'"type" is required')];const P=fs(A.type);let N;switch(P){case"vector":case"raster":return N=ha({key:u,value:A,valueSpec:g[`source_${P.replace("-","_")}`],style:c.style,styleSpec:g,objectElementValidators:ps,validateSpec:k}),N;case"raster-dem":return N=function(q){var ne;const ce=(ne=q.sourceName)!==null&&ne!==void 0?ne:"",Se=q.value,Fe=q.styleSpec,ze=Fe.source_raster_dem,qe=q.style;let et=[];const At=Qi(Se);if(Se===void 0)return et;if(At!=="object")return et.push(new _n("source_raster_dem",Se,`object expected, ${At} found`)),et;const Mt=fs(Se.encoding)==="custom",qt=["redFactor","greenFactor","blueFactor","baseShift"],kt=q.value.encoding?`"${q.value.encoding}"`:"Default";for(const Ut in Se)!Mt&&qt.includes(Ut)?et.push(new _n(Ut,Se[Ut],`In "${ce}": "${Ut}" is only valid when "encoding" is set to "custom". ${kt} encoding found`)):ze[Ut]?et=et.concat(q.validateSpec({key:Ut,value:Se[Ut],valueSpec:ze[Ut],validateSpec:q.validateSpec,style:qe,styleSpec:Fe})):et.push(new _n(Ut,Se[Ut],`unknown property "${Ut}"`));return et}({sourceName:u,value:A,style:c.style,styleSpec:g,validateSpec:k}),N;case"geojson":if(N=ha({key:u,value:A,valueSpec:g.source_geojson,style:x,styleSpec:g,validateSpec:k,objectElementValidators:ps}),A.cluster)for(const q in A.clusterProperties){const[ne,ce]=A.clusterProperties[q],Se=typeof ne=="string"?[ne,["accumulated"],["get",q]]:ne;N.push(...uc({key:`${u}.${q}.map`,value:ce,expressionContext:"cluster-map"})),N.push(...uc({key:`${u}.${q}.reduce`,value:Se,expressionCLine truncated
precision mediump float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
out highp vec4 fragColor;`,`#ifdef GL_ES
precision highp float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+ c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+ c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+ c
);}
#ifdef TERRAIN3D
uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;
#endif
const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
#ifdef TERRAIN3D
highp float d=unpack(texture(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
#else
return 1.0;
#endif
}float calculate_visibility(vec4 pos) {
#ifdef TERRAIN3D
vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
#else
return 1.0;
#endif
}float ele(vec2 pos) {
#ifdef TERRAIN3D
vec4 rgb=(texture(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
#else
return 0.0;
#endif
}float get_elevation(vec2 pos) {
#ifdef TERRAIN3D
#ifdef GLOBE
if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
#endif
vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
#else
return 0.0;
#endif
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:gi("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:gi("",`#define GLOBE_RADIUS 6371008.8
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);
if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:gi(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:gi(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:gi(`in vec3 v_data;in float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define highp vec4 stroke_color
#pragma mapbox: define mediump float stroke_width
#pragma mapbox: define lowp float stroke_opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize mediump float radius
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize highp vec4 stroke_color
#pragma mapbox: initialize mediump float stroke_width
#pragma mapbox: initialize lowp float stroke_opacity
vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define highp vec4 stroke_color
#pragma mapbox: define mediump float stroke_width
#pragma mapbox: define lowp float stroke_opacity
void main(void) {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize mediump float radius
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize highp vec4 stroke_color
#pragma mapbox: initialize mediump float stroke_width
#pragma mapbox: initialize lowp float stroke_opacity
vec2 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
#ifdef GLOBE
vec3 center_vector=projectToSphere(circle_center);
#endif
float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
#ifdef GLOBE
vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
#else
vec4 projected_center=projectTileWithElevation(circle_center,ele);
#endif
corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
#ifdef GLOBE
vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:gi(mi,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:gi(`uniform highp float u_intensity;in vec2 v_extrude;
#pragma mapbox: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
#pragma mapbox: initialize highp float weight
float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out vec2 v_extrude;
#pragma mapbox: define highp float weight
#pragma mapbox: define mediump float radius
const highp float ZERO=1.0/255.0/16.0;
#define GAUSS_COEF 0.3989422804014327
void main(void) {
#pragma mapbox: initialize highp float weight
#pragma mapbox: initialize mediump float radius
vec2 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=floor(pos_raw/8.0);
#ifdef GLOBE
vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:gi(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(0.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:gi("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:gi("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:gi(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0));
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:gi("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:gi(mi,`in vec2 a_pos;void main() {
#ifdef GLOBE
gl_Position=projectTileFor3D(a_pos,0.0);
#else
gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
#endif
}`),fill:gi(`#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
fragColor=color*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_fill_translate;in vec2 a_pos;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:gi(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 outline_color
#pragma mapbox: initialize lowp float opacity
float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 outline_color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:gi(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:gi(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:gi(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
out vec4 v_color;
#pragma mapbox: define highp float base
#pragma mapbox: define highp float height
#pragma mapbox: define highp vec4 color
void main() {
#pragma mapbox: initialize highp float base
#pragma mapbox: initialize highp float height
#pragma mapbox: initialize highp vec4 color
vec3 normal=a_normal_ed.xyz;
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:gi(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
#ifdef GLOBE
out vec3 v_sphere_pos;
#endif
out vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:gi(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:gi(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
#define IGOR 2
#define MULTIDIRECTIONAL 3
#define BASIC 4
float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:gi(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),lineGradient:gi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),linePattern:gi(`#ifdef GL_ES
precision highp float;
#endif
uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:gi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:gi(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;
#ifdef GLOBE
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
#endif
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:gi(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
lowp float alpha=opacity*v_fade_opacity;fragColor=texture(u_texture,v_tex)*alpha;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out float v_fade_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:gi(`#define SDF_PX 8.0
uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_data0;out vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:gi(`#define SDF_PX 8.0
#define SDF 1.0
#define ICON 0.0
uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;fragColor=texture(u_texture_icon,tex_icon)*alpha;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out vec4 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:gi("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:gi("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:gi("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:gi("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:gi(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:gi("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function gi(O,a){const d=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,v=a.match(/in ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=a.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=I?I.concat(M):M,Y={};return{fragmentSource:O=O.replace(d,(X,ue,pe,Ee,we)=>(Y[we]=!0,ue==="define"?`
#ifndef HAS_UNIFORM_u_${we}
in ${pe} ${Ee} ${we};
#else
uniform ${pe} ${Ee} u_${we};
#endif
`:`
#ifdef HAS_UNIFORM_u_${we}
${pe} ${Ee} ${we} = u_${we};
#endif
`)),vertexSource:a=a.replace(d,(X,ue,pe,Ee,we)=>{const De=Ee==="float"?"vec2":"vec4",Ye=we.match(/color/)?"color":De;return Y[we]?ue==="define"?`
#ifndef HAS_UNIFORM_u_${we}
uniform lowp float u_${we}_t;
in ${pe} ${De} a_${we};
out ${pe} ${Ee} ${we};
#else
uniform ${pe} ${Ee} u_${we};
#endif
`:Ye==="vec4"?`
#ifndef HAS_UNIFORM_u_${we}
${we} = a_${we};
#else
${pe} ${Ee} ${we} = u_${we};
#endif
`:`
#ifndef HAS_UNIFORM_u_${we}
${we} = unpack_mix_${Ye}(a_${we}, u_${we}_t);
#else
${pe} ${Ee} ${we} = u_${we};
#endif
`:ue==="define"?`
#ifndef HAS_UNIFORM_u_${we}
uniform lowp float u_${we}_t;
in ${pe} ${De} a_${we};
#else
uniform ${pe} ${Ee} u_${we};
#endif
`:Ye==="vec4"?`
#ifndef HAS_UNIFORM_u_${we}
${pe} ${Ee} ${we} = a_${we};
#else
${pe} ${Ee} ${we} = u_${we};
#endif
`:`
#ifndef HAS_UNIFORM_u_${we}
${pe} ${Ee} ${we} = unpack_mix_${Ye}(a_${we}, u_${we}_t);
#else
${pe} ${Ee} ${we} = u_${we};
#endif
`}),staticAttributes:v,staticUniforms:z}}class ll{constructor(a,d,v){this.vertexBuffer=a,this.indexBuffer=d,this.segments=v}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var cs=o.aJ([{name:"a_pos",type:"Int16",components:2}]);const Al="#define PROJECTION_MERCATOR",Nl="mercator";class Bi{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Nl}get shaderDefine(){return Al}get shaderPreludeCode(){return So.projectionMercator}get vertexShaderPreludeCode(){return So.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(a){}getMeshFromTileID(a,d,v,M,I){if(this._cachedMesh)return this._cachedMesh;const z=new o.aL;z.emplaceBack(0,0),z.emplaceBack(o.$,0),z.emplaceBack(0,o.$),z.emplaceBack(o.$,o.$);const Y=a.createVertexBuffer(z,cs.members),X=o.aM.simpleSegment(0,0,4,2),ue=new o.aN;ue.emplaceBack(1,0,2),ue.emplaceBack(1,2,3);const pe=a.createIndexBuffer(ue);return this._cachedMesh=new ll(Y,pe,X),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}class xl{constructor(a=0,d=0,v=0,M=0){if(isNaN(a)||a<0||isNaN(d)||d<0||isNaN(v)||v<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=d,this.left=v,this.right=M}interpolate(a,d,v){return d.top!=null&&a.top!=null&&(this.top=o.C.number(a.top,d.top,v)),d.bottom!=null&&a.bottom!=null&&(this.bottom=o.C.number(a.bottom,d.bottom,v)),d.left!=null&&a.left!=null&&(this.left=o.C.number(a.left,d.left,v)),d.right!=null&&a.right!=null&&(this.right=o.C.number(a.right,d.right,v)),this}getCenter(a,d){const v=o.ah((this.left+a-this.right)/2,0,a),M=o.ah((this.top+d-this.bottom)/2,0,d);return new o.P(v,M)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new xl(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function ul(O,a){if(!O.renderWorldCopies||O.lngRange)return;const d=a.lng-O.center.lng;a.lng+=d>180?-360:d<-180?360:0}function Eo(O){return Math.max(0,Math.floor(O))}class yo{constructor(a,d,v,M,I,z){this._callbacks=a,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=d||0,this._maxZoom=v||22,this._minPitch=M??0,this._maxPitch=I??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Eo(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new xl,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(a,d,v){this._latRange=a.latRange,this._lngRange=a.lngRange,this._width=a.width,this._height=a.height,this._center=a.center,this._elevation=a.elevation,this._minElevationForCurrentTile=a.minElevationForCurrentTile,this._zoom=a.zoom,this._tileZoom=Eo(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=a.bearingInRadians,this._fovInRadians=a.fovInRadians,this._pitchInRadians=a.pitchInRadians,this._rollInRadians=a.rollInRadians,this._unmodified=a.unmodified,this._edgeInsets=new xl(a.padding.top,a.padding.bottom,a.padding.left,a.padding.right),this._minZoom=a.minZoom,this._maxZoom=a.maxZoom,this._minPitch=a.minPitch,this._maxPitch=a.maxPitch,this._renderWorldCopies=a.renderWorldCopies,this._cameraToCenterDistance=a.cameraToCenterDistance,this._nearZ=a.nearZ,this._farZ=a.farZ,this._autoCalculateNearFarZ=!v&&a.autoCalculateNearFarZ,d&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(a){this._minElevationForCurrentTile=a}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(a){this._minZoom!==a&&(this._minZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(a){this._maxZoom!==a&&(this._maxZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(a){this._minPitch!==a&&(this._minPitch=a,this.setPitch(Math.max(this.pitch,a)))}get maxPitch(){return this._maxPitch}setMaxPi Line truncated
`),Lt=xt.concat(So.prelude.vertexSource,Y.vertexSource,d.vertexSource).join(`
`);st(pe)||(Rt=function(Vt){return Vt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Rt),Lt=function(Vt){return Vt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Lt));const wt=pe.createShader(pe.FRAGMENT_SHADER);if(pe.isContextLost())return void(this.failedToCreate=!0);if(pe.shaderSource(wt,Rt),pe.compileShader(wt),!pe.getShaderParameter(wt,pe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${pe.getShaderInfoLog(wt)}`);pe.attachShader(this.program,wt);const Nt=pe.createShader(pe.VERTEX_SHADER);if(pe.isContextLost())return void(this.failedToCreate=!0);if(pe.shaderSource(Nt,Lt),pe.compileShader(Nt),!pe.getShaderParameter(Nt,pe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${pe.getShaderInfoLog(Nt)}`);pe.attachShader(this.program,Nt),this.attributes={};const en={};this.numAttributes=De.length;for(let Vt=0;Vt<this.numAttributes;Vt++)De[Vt]&&(pe.bindAttribLocation(this.program,Vt,De[Vt]),this.attributes[De[Vt]]=Vt);if(pe.linkProgram(this.program),!pe.getProgramParameter(this.program,pe.LINK_STATUS))throw new Error(`Program failed to link: ${pe.getProgramInfoLog(this.program)}`);pe.deleteShader(Nt),pe.deleteShader(wt);for(let Vt=0;Vt<yt.length;Vt++){const Jt=yt[Vt];if(Jt&&!en[Jt]){const nn=pe.getUniformLocation(this.program,Jt);nn&&(en[Jt]=nn)}}this.fixedUniforms=M(a,en),this.terrainUniforms=((Vt,Jt)=>({u_depth:new o.bP(Vt,Jt.u_depth),u_terrain:new o.bP(Vt,Jt.u_terrain),u_terrain_dim:new o.bg(Vt,Jt.u_terrain_dim),u_terrain_matrix:new o.bR(Vt,Jt.u_terrain_matrix),u_terrain_unpack:new o.bS(Vt,Jt.u_terrain_unpack),u_terrain_exaggeration:new o.bg(Vt,Jt.u_terrain_exaggeration)}))(a,en),this.projectionUniforms=((Vt,Jt)=>({u_projection_matrix:new o.bR(Vt,Jt.u_projection_matrix),u_projection_tile_mercator_coords:new o.bS(Vt,Jt.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bS(Vt,Jt.u_projection_clipping_plane),u_projection_transition:new o.bg(Vt,Jt.u_projection_transition),u_projection_fallback_matrix:new o.bR(Vt,Jt.u_projection_fallback_matrix)}))(a,en),this.binderUniforms=v?v.getUniforms(a,en):[]}draw(a,d,v,M,I,z,Y,X,ue,pe,Ee,we,De,Ye,it,lt,ct,Ct,yt){const xt=a.gl;if(this.failedToCreate)return;if(a.program.set(this.program),a.setDepthMode(v),a.setStencilMode(M),a.setColorMode(I),a.setCullFace(z),X){a.activeTexture.set(xt.TEXTURE2),xt.bindTexture(xt.TEXTURE_2D,X.depthTexture),a.activeTexture.set(xt.TEXTURE3),xt.bindTexture(xt.TEXTURE_2D,X.texture);for(const Lt in this.terrainUniforms)this.terrainUniforms[Lt].set(X[Lt])}if(ue)for(const Lt in ue)this.projectionUniforms[Af[Lt]].set(ue[Lt]);if(Y)for(const Lt in this.fixedUniforms)this.fixedUniforms[Lt].set(Y[Lt]);lt&&lt.setUniforms(a,this.binderUniforms,Ye,{zoom:it});let Rt=0;switch(d){case xt.LINES:Rt=2;break;case xt.TRIANGLES:Rt=3;break;case xt.LINE_STRIP:Rt=1}for(const Lt of De.get()){const wt=Lt.vaos||(Lt.vaos={});(wt[pe]||(wt[pe]=new Lp)).bind(a,this,Ee,lt?lt.getPaintVertexBuffers():[],we,Lt.vertexOffset,ct,Ct,yt),xt.drawElements(d,Lt.primitiveLength*Rt,xt.UNSIGNED_SHORT,Lt.primitiveOffset*Rt*2)}}}function id(O,a,d){const v=1/o.aC(d,1,a.transform.tileZoom),M=Math.pow(2,d.tileID.overscaledZ),I=d.tileSize*Math.pow(2,a.transform.tileZoom)/M,z=I*(d.tileID.canonical.x+d.tileID.wrap*M),Y=I*d.tileID.canonical.y;return{u_image:0,u_texsize:d.imageAtlasTexture.size,u_scale:[v,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[z>>16,Y>>16],u_pixel_coord_lower:[65535&z,65535&Y]}}const qA=(O,a,d,v)=>{const M=O.style.light,I=M.properties.get("position"),z=[I.x,I.y,I.z],Y=o.bV();M.properties.get("anchor")==="viewport"&&o.bW(Y,O.transform.bearingInRadians),o.bX(z,z,Y);const X=O.transform.transformLightDirection(z),ue=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:X,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[ue.r,ue.g,ue.b],u_vertical_gradient:+a,u_opacity:d,u_fill_translate:v}},od=(O,a,d,v,M,I,z)=>o.e(qA(O,a,d,v),id(I,O,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),sd=(O,a,d,v)=>o.e(id(a,O,d),{u_fill_translate:v}),Ic=(O,a)=>({u_world:O,u_fill_translate:a}),ad=(O,a,d,v,M)=>o.e(sd(O,a,d,M),{u_world:v}),jf=(O,a,d,v,M)=>{const I=O.transform;let z,Y,X=0;if(d.paint.get("circle-pitch-alignment")==="map"){const ue=o.aC(a,1,I.zoom);z=!0,Y=[ue,ue],X=ue/(o.$*Math.pow(2,a.tileID.overscaledZ))*2*Math.PI*M}else z=!1,Y=I.pixelsToGLUnits;return{u_camera_to_center_distance:I.cameraToCenterDistance,u_scale_with_map:+(d.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:Y,u_globe_extrude_scale:X,u_translate:v}},Eh=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Wf=O=>({u_viewport_size:[O.width,O.height]}),Bh=(O,a=1)=>({u_color:O,u_overlay:0,u_overlay_scale:a}),uf=(O,a,d,v)=>{const M=o.aC(O,1,a)/(o.$*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*v;return{u_extrude_scale:o.aC(O,1,a),u Line truncated
uniform mat4 u_projection_matrix;
${De.shaderPreludeCode.vertexSource}`,define:De.shaderDefine},defaultProjectionData:it},ct=we.renderingMode?we.renderingMode:"2d";if(z.renderPass==="offscreen"){const Ct=we.prerender;Ct&&(z.setCustomLayerDefaults(),Ee.setColorMode(z.colorModeForRenderPass()),Ct.call(we,Ee.gl,lt),Ee.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Ee.setColorMode(z.colorModeForRenderPass()),Ee.setStencilMode(ee.disabled);const Ct=ct==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,_r.ReadOnly);Ee.setDepthMode(Ct),we.render(Ee.gl,lt),Ee.setDirty(),z.setBaseState(),Ee.bindFramebuffer.set(null)}}(a,0,v,I))}saveTileTexture(a){const d=this._tileTextures[a.size[0]];d?d.push(a):this._tileTextures[a.size[0]]=[a]}getTileTexture(a){const d=this._tileTextures[a];return d&&d.length>0?d.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const d=this.imageManager.getPattern(a.from.toString()),v=this.imageManager.getPattern(a.to.toString());return!d||!v}useProgram(a,d,v=!1,M=[]){this.cache=this.cache||{};const I=!!this.style.map.terrain,z=this.style.projection,Y=v?So.projectionMercator:z.shaderPreludeCode,X=v?Al:z.shaderDefine,ue=a+(d?d.cacheKey:"")+`/${v?Nl:z.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(I?"/terrain":"")+(M?`/${M.join("/")}`:"");return this.cache[ue]||(this.cache[ue]=new Ls(this.context,So[a],d,Yf[a],this._showOverdrawInspector,I,Y,X,M)),this.cache[ue]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:a,drawingBufferHeight:d}=this.context.gl;return this.width!==a||this.height!==d}}function uc(O,a){let d,v=!1,M=null,I=null;const z=()=>{M=null,v&&(O.apply(I,d),M=setTimeout(z,a),v=!1)};return(...Y)=>(v=!0,I=this,d=Y,M||z(),M)}class ot{constructor(a){this._getCurrentHash=()=>{const d=window.location.hash.replace("#","");if(this._hashName){let v;return d.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(v=M)}),(v&&v[1]||"").split("/")}return d.split("/")},this._onHashChange=()=>{const d=this._getCurrentHash();if(!this._isValidHash(d))return!1;const v=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(d[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+d[2],+d[1]],zoom:+d[0],bearing:v,pitch:+(d[4]||0)}),!0},this._updateHashUnthrottled=()=>{const d=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,d)},this._removeHash=()=>{const d=this._getCurrentHash();if(d.length===0)return;const v=d.join("/");let M=v;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${v}`);let I=window.location.hash.replace(M,"");I.startsWith("#&")?I=I.slice(0,1)+I.slice(2):I==="#"&&(I="");let z=window.location.href.replace(/(#.+)?$/,I);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=uc(this._updateHashUnthrottled,300),this._hashName=a&&encodeURIComponent(a)}addTo(a){return this._map=a,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(a){const d=this._map.getCenter(),v=Math.round(100*this._map.getZoom())/100,M=Math.ceil((v*Math.LN2+Math.log(512/360/.5))/Math.LN10),I=Math.pow(10,M),z=Math.round(d.lng*I)/I,Y=Math.round(d.lat*I)/I,X=this._map.getBearing(),ue=this._map.getPitch();let pe="";if(pe+=a?`/${z}/${Y}/${v}`:`${v}/${Y}/${z}`,(X||ue)&&(pe+="/"+Math.round(10*X)/10),ue&&(pe+=`/${Math.round(ue)}`),this._hashName){const Ee=this._hashName;let we=!1;const De=window.location.hash.slice(1).split("&").map(Ye=>{const it=Ye.split("=")[0];return it===Ee?(we=!0,`${it}=${pe}`):Ye}).filter(Ye=>Ye);return we||De.push(`${Ee}=${pe}`),`#${De.join("&")}`}return`#${pe}`}_isValidHash(a){if(a.length<3||a.some(isNaN))return!1;try{new o.S(+a[2],+a[1])}catch{return!1}const d=+a[0],v=+(a[3]||0),M=+(a[4]||0);return d>=this._map.getMinZoom()&&d<=this._map.getMaxZoom()&&v>=-180&&v<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const TA={linearity:.3,easing:o.cm(0,0,.3,1)}, Line truncated
${e} <span></span>
`,Zs().s[12]++,this._textEl=this._container.querySelector("span"),Zs().s[13]++,this.updateZoomLevel()}addEventListeners(){Zs().f[4]++,Zs().s[14]++,this._map.on("render",()=>(Zs().f[5]++,Zs().s[15]++,this.updateZoomLevel())),Zs().s[16]++,this._map.on("zoomIn",()=>(Zs().f[6]++,Zs().s[17]++,this.updateZoomLevel())),Zs().s[18]++,this._map.on("zoomOut",()=>(Zs().f[7]++,Zs().s[19]++,this.updateZoomLevel()))}onRemove(){Zs().f[8]++,Zs().s[20]++,this._container.parentNode.removeChild(this._container),Zs().s[21]++,this._map=void 0}}function S6(n,e,t){const r={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function E6(n,e,t,r){const i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function B6(n,e,t){const r={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(r["source-layer"]=t),r}function AH(n,e){const t=[],r=[],i=[];function s(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const f=s(l);r.push(S6(f.circle,l)),i.push(B6(f.line,l)),t.push(E6(f.polygon,f.polygonOutline,l))}else o.forEach(f=>{const C=s(f);r.push(S6(C.circle,l,f)),i.push(B6(C.line,l,f)),t.push(E6(C.polygon,C.polygonOutline,l,f))})}),t.concat(i).concat(r)}function uH(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(s=>{const l=n.sources[s];(l.type==="vector"||l.type==="geojson")&&(i[s]=l)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const w4={polygonLayer:E6,lineLayer:B6,circleLayer:S6,generateInspectStyle:uH,generateColoredLayers:AH};function fo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=_H.language(this.options.language.split(",")[0]);return this.options.language&&Bv?.[e][t]?Bv[e][t]:Bv[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=pp({},{padding:100},this.options.flyTo),i=new this._maplibregl.LngLatBounds;for(const s of e)i.extend(s.geometry.coordinates);this._map.fitBounds(i,r)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const r=pp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=pp({},{},this.options.popup);i=new this._maplibregl.Popup(l).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let r=pp({},{color:"#4668F2"},this.options.showResultMarkers);for(const i of e){let s;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(s=this.options.showResultMarkers.element.cloneNode(!0),r=pp(r,{element:s}));const l=new this._maplibregl.Marker(pp({},r,{element:s}));let o;if(this.options.popup){const C=pp({},{},this.options.popup);o=new this._maplibregl.Popup(C).setHTML(this.options.popupRender(i))}i.center?(l.setLngLat(i.center).addTo(this._map),this.options.popup&&l.setPopup(o)):i.geometry&&i.geometry.type&&i.geometry.type==="Point"&&i.geometry.coordinates&&(l.setLngLat(i.geometry.coordinates).addTo(this._map),this.options.popup&&l.setPopup(o)),this.resultMarkers.push(l)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function vn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="300acb3537cd75ba7433c8df32ce2e40c6bb2cf5",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:2},end:{line:21,column:36}},1:{start:{line:22,column:2},end:{line:22,column:19}},2:{start:{line:25,column:26},end:{line:31,column:3}},3:{start:{line:32,column:16},end:{line:32,column:55}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:30}},6:{start:{line:36,column:18},end:{line:36,column:20}},7:{start:{line:37,column:2},end:{line:4Line truncated
`).reduce((i,s)=>Math.max(i,GU(n,s)),0);return t[e]=r,r}function jJ(n,e){const t=[],r=[],i=[];let s=0,l=0,o=0,f=0;for(let C=0,w=e.length;C<=w;C+=2){const B=e[C];if(B===`
`||C===w){s=Math.max(s,l),i.push(l),l=0,o+=f,f=0;continue}const D=e[C+1]||n.font,R=GU(D,B);t.push(R),l+=R;const U=GJ(D);r.push(U),f=Math.max(f,U)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function WJ(n,e,t,r,i,s,l,o,f,C,w){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=B=>B.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(f,C),n.scale(w[0],w[1]),QJ(r,n)):w[0]<0||w[1]<0?(n.translate(f,C),n.scale(w[0],w[1]),n.drawImage(r,i,s,l,o,0,0,l,o)):n.drawImage(r,i,s,l,o,f,C,l*w[0],o*w[1]),n.restore()}function QJ(n,e){const t=n.contextInstructions;for(let r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}class Yx{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=wh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Yx({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return mo()}getImage(e){return mo()}getHitDetectionImage(){return mo()}getPixelRatio(e){return 1}getImageState(){return mo()}getImageSize(){return mo()}getOrigin(){return mo()}getSize(){return mo()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=wh(e)}listenImageChange(e){mo()}load(){mo()}unlistenImageChange(e){mo()}ready(){return Promise.resolve()}}class qx extends Yx{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?pi.LOADING:pi.LOADED,this.imageState_===pi.LOADING&&this.ready().then(()=>this.imageState_=pi.LOADED),this.render()}clone(){const e=this.getScale(),t=new qx({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=Ff.get(r,null,null)?.getImage(1);if(!i){const s=this.renderOptions_,l=Math.ceil(s.size*e),o=_A(l,l);this.draw_(s,o,e),i=o.canvas,Ff.set(r,null,null,new UU(i,void 0,null,pi.LOADED,null))}return i}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,s=this.radius2_===void 0?i:this.radius2_;if(i<s){const re=i;i=s,s=re}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,f=s*Math.sin(o),C=Math.sqrt(s*s-f*f),w=i-C,B=Math.sqrt(f*f+w*w),D=B/f;if(e==="miter"&&D<=r)return D*t;const R=t/2/D,U=t/2*(w/B),W=Math.sqrt((i+R)*(i+R)+U*U)-i;if(this.radius2_===void 0||e==="bevel")return W*2;const J=i*Math.sin(o),$=Math.sqrt(i*i-J*J),oe=s-$,H=Math.sqrt(J*J+oe*oe)/J;if(H<=r){const re=H*t/2-s-i;return 2*Math.max(W,re)}return W*2}createRenderOptions(){let e=Ky,t=Fy,r=0,i=null,s=0,l,o=0;this.stroke_&&(l=rm(this.stroke_.getColor()??zC),o=this Line truncated
`,""),n.push(e,""),n}function Lee(n,e,t){return t%2===0&&(n+=e),n}class Uee{constructor(e,t,r,i,s){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=Ed(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=s?new FO:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const s=e+t+r+i;if(this.labels_[s])return this.labels_[s];const l=i?this.strokeStates[i]:null,o=r?this.fillStates[r]:null,f=this.textStates[t],C=this.pixelRatio,w=[f.scale[0]*C,f.scale[1]*C],B=f.justify?W2[f.justify]:tM(Array.isArray(e)?e[0]:e,f.textAlign||NC),D=i&&l.lineWidth?l.lineWidth:0,R=Array.isArray(e)?e:String(e).split(`
`).reduce(Fee,[]),{width:U,height:G,widths:W,heights:J,lineWidths:$}=jJ(f,R),oe=U+D,te=[],H=(oe+2)*w[0],re=(G+D)*w[1],j={width:H<0?Math.floor(H):Math.ceil(H),height:re<0?Math.floor(re):Math.ceil(re),contextInstructions:te};(w[0]!=1||w[1]!=1)&&te.push("scale",w),i&&(te.push("strokeStyle",l.strokeStyle),te.push("lineWidth",D),te.push("lineCap",l.lineCap),te.push("lineJoin",l.lineJoin),te.push("miterLimit",l.miterLimit),te.push("setLineDash",[l.lineDash]),te.push("lineDashOffset",l.lineDashOffset)),r&&te.push("fillStyle",o.fillStyle),te.push("textBaseline","middle"),te.push("textAlign","center");const Ae=.5-B;let ge=B*oe+Ae*D;const me=[],xe=[];let Be=0,Me=0,We=0,be=0,nt;for(let _t=0,at=R.length;_t<at;_t+=2){const Je=R[_t];if(Je===`
`){Me+=Be,Be=0,ge=B*oe+Ae*D,++be;continue}const Ne=R[_t+1]||f.font;Ne!==nt&&(i&&me.push("font",Ne),r&&xe.push("font",Ne),nt=Ne),Be=Math.max(Be,J[We]);const Te=[Je,ge+Ae*W[We]+B*(W[We]-$[be]),.5*(D+Be)+Me];ge+=W[We],i&&me.push("strokeText",Te),r&&xe.push("fillText",Te),++We}return Array.prototype.push.apply(te,me),Array.prototype.push.apply(te,xe),this.labels_[s]=j,j}replayTextBackground_(e,t,r,i,s,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,s,l,o,f,C,w,B,D,R,U,G,W){o*=D[0],f*=D[1];let J=r-o,$=i-f;const oe=s+C>e?e-C:s,te=l+w>t?t-w:l,H=U[3]+oe*D[0]+U[1],re=U[0]+te*D[1]+U[2],j=J-U[3],Ae=$-U[0];(G||B!==0)&&(v0[0]=j,C0[0]=j,v0[1]=Ae,Tm[1]=Ae,Tm[0]=j+H,km[0]=Tm[0],km[1]=Ae+re,C0[1]=km[1]);let ge;return B!==0?(ge=um(Ed(),r,i,1,1,B,-r,-i),Ku(ge,v0),Ku(ge,Tm),Ku(ge,km),Ku(ge,C0),jm(Math.min(v0[0],Tm[0],km[0],C0[0]),Math.min(v0[1],Tm[1],km[1],C0[1]),Math.max(v0[0],Tm[0],km[0],C0[0]),Math.max(v0[1],Tm[1],km[1],C0[1]),Pg)):jm(Math.min(j,j+H),Math.min(Ae,Ae+re),Math.max(j,j+H),Math.max(Ae,Ae+re),Pg),R&&(J=Math.round(J),$=Math.round($)),{drawImageX:J,drawImageY:$,drawImageW:oe,drawImageH:te,originX:C,originY:w,declutterBox:{minX:Pg[0],minY:Pg[1],maxX:Pg[2],maxY:Pg[3],value:W},canvasTransform:ge,scale:D}}replayImageOrLabel_(e,t,r,i,s,l,o){const f=!!(l||o),C=i.declutterBox,w=o?o[2]*i.scale[0]/2:0;return C.minX-w<=t[0]&&C.maxX+w>=0&&C.minY-w<=t[1]&&C.maxY+w>=0&&(f&&this.replayTextBackground_(e,v0,Tm,km,C0,l,o),WJ(e,i.canvasTransform,s,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=Ku(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,r,i){const s=this.textStates[t],l=this.createLabel(e,t,i,r),o=this.strokeStates[r],f=this.pixelRatio,C=tM(Array.isArray(e)?e[0]:e,s.textAlign||NC),w=W2[s.textBaseline||F2],B=o&&o.lineWidth?o.lineWidth:0,D=l.width/f-2*s.scale[0],R=C*D+2*(.5-C)*B,U=w*l.height/f+2*(.5-w)*B;return{label:l,anchorX:R,anchorY:U}}execute_(e,t,r,i,s,l,o,f){const C=this.zIndexContext_;let w;this.pixelCoordinates_&&q0(r,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=G0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),GZ(this.renderedTransform_,r));let B=0;const D=i.length;let R=0,U,G,W,J,$,oe,te,H,re,j,Ae,ge,me,xe=0,Be=0;const Me=this.coordinateCache_,We=this.viewRotation_,be=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,nt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:We},_t=this.instructions!=i||this.overlaps?0:200;let at,Je,Ne,Te;for(;B<D;){const Ze=i[B];switch(Ze[0]){case $i.BEGIN_GEOMETRY:at=Ze[1],Te=Ze[3],at.getGeometry()?o!==void 0&&!QA(o,Te.getExtent())?B=Ze[2]+1:++B:B=Ze[2],C&&(C.zIndex=Ze[4]);break;case $i.BEGIN_PATH:xe>_t&&(this.fill_(e),xe=0),Be>_t&&(e.stroke(),Be=0),!xe&&!Be&&(e.beginPath(),$=NaN,oe=NaN),++B;break;case $i.CIRCLE:R=Ze[1];const Dt=w[R],pt=w[R+1],Tt=w[R+2],It=w[R+3],Le=Tt-Dt,Re=It-pt,Ke=Math.sqrt(Le*Le+Re*Re);e.moveTo(Dt+Ke,pt),e.arc(Dt,pt,Ke,0,2*Math.PI,!0),++B;break;case $i.CLOSE_PATH:e.closePath(),++B;break;case $i.CUSTOM:R=Ze[1],U=Ze[2];const $e=Ze[3],bt=Ze[4],vt=Ze[5];nt.geometry=$e,nt.feature=at,B in Me||(Me[B]=[]);const Ot=Me[B];vt?vt(w,R,U,2,Ot):(Ot[0]=w[R],Ot[1]=w[R+1],Ot.length=2),C&&(C.zIndex=Ze[6]),bt(Ot,nt),++B;break;case $i.DRAW_IMAGE:R=Ze[1],U=Ze[2],re=Ze[3],G=Ze[4],W=Ze[5];let $t=Ze[6];const Kt=Ze[7],un=Ze[8],$n=Ze[9],Wt=Ze[10];let Jn=Ze[11];const Sn=Ze[12];let Mn=Ze[13];J=Ze[14]||"declutter";const En=Ze[15];if(!re&&Ze.length>=20){j=Ze[19],Ae=Ze[20],ge=Ze[21],me=Ze[22];const xn=this.drawLabelWithPointPlacement_(j,Ae,ge,me);re=xn.label,Ze[3]=re;const dr=Ze[23];G=(xn.anchorX-dr)*this.pixelRatio,Ze[4]=G;const ur=Ze[24];W=(xn.anchorY-ur)*this.pixelRatio,Ze[5]=W,$t=re.height,Ze[6]=$t,Mn=re.width,Ze[13]=Mn}let Er;Ze.length>25&&(Er=Ze[25]);let Yn,Dn,Ge;Ze.length>17?(Yn=Ze[16],Dn=Ze[17],Ge=Ze[18]):(Yn=T1,Dn=null,Ge=null),Wt&&be?Jn+=We:!Wt&&!be&&(Jn-=We);let de=0;for(;R<U;R+=2){if(Er&&Er[de++]<Mn/this.pixelRatio)continue;const xn=this.calculateImageOrLabelDimensions_(re.width,re.height,w[R],w[R+1],Mn,$t,G,W,un,$n,Jn,Sn,s,Yn,!!Dn||!!Ge,at),dr=[e,t,re,xn,Kt,Dn,Ge];if(f){let ur,yi,ui;if(En){const Cr=U-R;if(!En[Cr]){En[Cr]={args:dr,declutterMode:J};continue}const Ei=En[Cr];ur=Ei.args,yi=Ei.declutterMode,delete En[Cr],ui=E9(ur)}let ci,Fr;if(ur&&(yi!=="declutter"||!f.collides(ui))&&(ci=!0),(J!=="declutter"||!f.collides(xn.declutterBox))&&(Fr=!0),yi==="declutter"&&J==="declutter"){co Line truncated
`),i=nte.slice(0,Math.round(e/.1));for(let s=0,l=r.length;s<l;++s)s>0&&(t+=`
`),t+=r[s].split("").join(i);return t}return n}let iM;function fz(){return iM||(iM=Jx(1,1).getContext("2d")),iM}function p1(n,e){return fz().measureText(n).width+(n.length-1)*e}const q2={};M1.on("propertychange",()=>{for(const n in q2)delete q2[n]});function X6(n,e,t,r){if(n.indexOf(`
`)!==-1){const l=n.split(`
`),o=[];for(let f=0,C=l.length;f<C;++f)o.push(X6(l[f],e,t,r));return o.join(`
`)}const i=t+","+e+","+n+","+r;let s=q2[i];if(!s){const l=n.split(" ");if(l.length>1){const o=fz();o.font=e;const C=o.measureText("M").width*t;let w="";const B=[];for(let D=0,R=l.length;D<R;++D){const U=l[D],G=w+(w?" ":"")+U;p1(G,r)<=C?w=G:(w&&B.push(w),w=U)}w&&B.push(w);for(let D=0,R=B.length;D<R&&R>1;++D){const U=B[D];if(p1(U,r)<C*.35){const G=D>0?p1(B[D-1],r):1/0,W=D<R-1?p1(B[D+1],r):1/0;B.splice(D,1),R-=1,G<W?(B[D-1]+=" "+U,D-=1):B[D]=U+" "+B[D]}}for(let D=0,R=B.length-1;D<R;++D){const U=B[D],G=B[D+1];if(p1(U,r)>C*.7&&p1(G,r)<C*.6){const W=U.split(" "),J=W.pop();p1(J,r)<C*.2&&(B[D]=W.join(" "),B[D+1]=J+" "+G),R-=1}}s=B.join(`
`)}else s=n;s=Z6(s,r),q2[i]=s}return s}const rte=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],F9={};function ite(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let r=0,i=n.length;r<i;++r){const s=n[r];if(s in F9)continue;F9[s]=!0;const o=O6(s,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let r=0,i=t.length;r<i;++r){const s=t[r],l=s[0];if(rte.includes(l))continue;const o=s[1],f=s[2];if(!(await document.fonts.load(`${f} ${o} 16px "${l}"`)).some(w=>w.family.replace(/^['"]|['"]$/g,"").toLowerCase()===l.toLowerCase()&&w.weight==o&&w.style===f)){const w=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",f.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",f);if(!document.querySelector('link[href="'+w+'"]')){const B=document.createElement("link");B.href=w,B.rel="stylesheet",document.head.appendChild(B)}}}})(),n}const ote={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ste={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},ate=function(n,e){const t=Sx(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},rf={zoom:0,distanceFromCenter:0};tf.register(bx,{...tf.definitions,pitch:[{kind:"number"},[],n=>rf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>rf.distanceFromCenter||0]});let Sb,oM;function bi(n,e,t,r,i,s){const l=n.id;i||(i={},console.warn("No functionCache provided to getValue()")),i[l]||(i[l]={});const o=i[l];if(!o[t]){let f=(n[e]||xp)[t];const C=Jd[`${e}_${n.type}`][t];f===void 0&&(f=C.default);let w=Yy(f);if(!w&&Qy(f)&&(f=jB(f,C),w=!0),w){const B=ate(f,C);o[t]=B.evaluate.bind(B)}else C.type=="color"&&(f=La.parse(f)),o[t]=function(){return f}}return o[t](rf,r,s)}function L9(n,e,t,r){return bi(n,"layout",`${t}-allow-overlap`,e,r)?bi(n,"layout",`${t}-ignore-placement`,e,r)?"none":"obstacle":"declutter"}function lte(n,e,t,r){if(r||console.warn("No filterCache provided to evaluateFilter()"),!(n in r))try{r[n]=A$(e).filter}catch(i){console.warn("Filter will evaluate to false: "+i.message),r[n]=function(){return!1}}return r[n](rf,t)}function M0(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const Ate=/\{[^{}}]*\}/g;function sM(n,e){return n.replace(Ate,function(t){return e[t.slice(1,-1)]||""})}function U9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const ute={};function cte(n,e,t,r=Am,i=void 0,s=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");ute[Jee(e,n)]=Array.from(arguments);const f={};(typeof s=="string"||s instanceof Request||s instanceof Response||s instanceof Promise)&&(s={default:s});for(const H in s){const re=s[H];Py(()=>re).then(async j=>{let Ae;if(typeof Image<"u"){const ge=new Image;if(typeof j=="string")ge.crossOrigin="anonymous",ge.src=j;else{let me;j instanceof Request?me=await fetch(j):j instanceof Response&&(me=j);const xe=await me.blob();Ae=URL.createObjectURL(xe),ge.src=Ae}ge.addEventListener("load",function me(){ge.removeEventListener("load",me),f[H]={image:ge,size:[ge.width,ge.height]},n.changed(),Ae&&URL.revokeObjectURL(Ae)}),ge.addEventListener("error",function me(){URL.revokeObjectURL(Ae),ge.removeEventListener("error",me)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:j}),ge.addEventListener("message",function(xe){xe.data.action==="imageLoaded"&&xe.data.src===j&&(f[H]={image:xe.data.image,size:[xe.data.image.width,xe.data.image.height]})})}})}const C=MB(e.layers),w={},B=[],D={},R={},U=cz(e),G=ete(e);let W;for(let H=0,re=C.length;H<re;++H){const j=C[H],Ae=j.id;if(typeof t=="string"&&j.source==t||Array.isArray(t)&&t.indexOf(Ae)!==-1){const ge=j["source-layer"];if(W){if(j.source!==W)throw new Error(`Layer "${Ae}" does not use source "${W}`)}else{W=j.source;const xe=e.sources[W];if(!xe)throw new Error(`Source "${W}" is not defined`);const Be=xe.type;if(Be!=="vector"&&Be!=="geojson")throw new Error(`Source "${W}" is not of type "vector" or "geojson", but "${Be}"`)}let me=w[ge];me||(me=[],w[ge]=me),me.push({layer:j,index:H}),B.push(Ae)}}const J=new k0,$=new Lm,oe=[],te=function(H,re,j){const Ae=n.getSource?.()?.format_?.layerName_??"mvt:layer",ge=H.getProperties(),me=w[ge[Ae]];if(!me)return;let xe=r.indexOf(re);xe==-1&&(xe=jO(re,r)),rf.zoom=xe,rf.distanceFromCenter=0;const Be=H.getGeometry(),Me=ote[Be.getType()],We=n.get("map");if(We&&We instanceof Zx&&Me===1){const at=We.gLine truncated
`)return Ge.push(`
`,""),Ge;if(Me==2)return Ge.push(Z6(Ie,En),fe),Ge;Ie=X6(Ie,fe,Er,En).split(`
`);for(let je=0,ht=Ie.length;je<ht;++je)je>0&&Ge.push(`
`,""),Ge.push(Ie[je],fe);return Ge},[]):Wt=sM(Dn,ge).trim(),It=bi(Te,"paint","text-opacity",be,U,nt)}if(Wt&&It&&!$n){vt||(++_t,$e=oe[_t],(!$e||!$e.getText()||$e.getFill()||$e.getStroke())&&($e=new Hd,oe[_t]=$e),$e.setImage(void 0),$e.setGeometry(void 0));const Yn=L9(Te,be,"text",U);$e.getText()||$e.setText(Ot),Ot=$e.getText(),(!Ot||"getDeclutterMode"in Ot&&Ot.getDeclutterMode()!==Yn)&&(Ot=new $x({padding:[2,2,2,2],declutterMode:Yn}),$e.setText(Ot));const Dn=bi(Te,"layout","text-transform",be,U,nt);Dn=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((Bt,rt)=>rt%2?Bt:Bt.toUpperCase()):Wt.toUpperCase():Dn=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((Bt,rt)=>rt%2?Bt:Bt.toLowerCase()):Wt.toLowerCase());const Ge=Array.isArray(Wt)?Wt:Me==2?Z6(Wt,En):X6(Wt,Jn,Er,En);if(Ot.setText(Ge),Ot.setFont(Jn),Ot.setRotation(rM(bi(Te,"layout","text-rotate",be,U,nt))),typeof Ot.setKeepUpright=="function"){const Bt=bi(Te,"layout","text-keep-upright",be,U,nt);Ot.setKeepUpright(Bt)}const de=bi(Te,"layout","text-anchor",be,U,nt),ie=vt||Me==1?"point":bi(Te,"layout","symbol-placement",be,U,nt);let se;if(ie==="line-center"?(Ot.setPlacement("line"),se="center"):Ot.setPlacement(ie),ie==="line"&&typeof Ot.setRepeat=="function"){const Bt=bi(Te,"layout","symbol-spacing",be,U,nt);Ot.setRepeat(Bt*2)}Ot.setOverflow(ie==="point");let fe=bi(Te,"paint","text-halo-width",be,U,nt);const Ie=bi(Te,"layout","text-offset",be,U,nt),je=bi(Te,"paint","text-translate",be,U,nt);let ht=0,Ve=0;if(ie=="point"){se="center",de.indexOf("left")!==-1?(se="left",Ve=fe):de.indexOf("right")!==-1&&(se="right",Ve=-fe);const Bt=bi(Te,"layout","text-rotation-alignment",be,U,nt);Ot.setRotateWithView(Bt=="map")}else Ot.setMaxAngle(rM(bi(Te,"layout","text-max-angle",be,U,nt))*Wt.length/Ge.length),Ot.setRotateWithView(!1);Ot.setTextAlign(se);let Pe="middle";de.indexOf("bottom")==0?(Pe="bottom",ht=-fe-.5*(Sn-1)*Mn):de.indexOf("top")==0&&(Pe="top",ht=fe+.5*(Sn-1)*Mn),Ot.setTextBaseline(Pe);const He=bi(Te,"layout","text-justify",be,U,nt);Ot.setJustify(He==="auto"?void 0:He),Ot.setOffsetX(Ie[0]*Mn+Ve+je[0]),Ot.setOffsetY(Ie[1]*Mn+ht+je[1]),$.setColor(M0(bi(Te,"paint","text-color",be,U,nt),It)),Ot.setFill($);const m=M0(bi(Te,"paint","text-halo-color",be,U,nt),It);if(m&&fe>0){J.setColor(m),fe*=2;const Bt=.5*Mn;J.setWidth(fe<=Bt?fe:Bt),Ot.setStroke(J)}else Ot.setStroke(void 0);const ft=bi(Te,"layout","text-padding",be,U,nt),ut=Ot.getPadding();ft!==ut[0]&&(ut[0]=ft,ut[1]=ft,ut[2]=ft,ut[3]=ft),$e.setZIndex(bt)}}}if(_t>-1)return oe.length=_t+1,oe};return n.setStyle(te),n.set("mapbox-layers",B),n.set("mapbox-source",W),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),te}class pz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=Xx,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?Ba(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=Ba(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return mo()}readFeature(e,t){return mo()}readFeatures(e,t){return mo()}readGeometry(e,t){return mo()}readProjection(e){return mo()}writeFeature(e,t){return mo()}writeFeatures(e,t){return mo()}writeGeometry(e,t){return mo()}}function e3(n,e,t){const r=t?Ba(t.featureProjection):null,i=t?Ba(t.dataProjection):null;let s=n;if(r&&i&&!N0(r,i)){e&&(s=n.clone());const l=e?r:i,o=e?i:r;l.getUnits()==="tile-pixels"?s.transform(l,o):s.applyTransform(KC(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(f){for(let C=0,w=f.length;C<w;++C)f[C]=Math.round(f[C]*l)/l;return f};s===n&&(s=n.clone()),s.applyTransform(o)}return s}const hte={Point:q1,LineString:V1,Polygon:Qm,MultiPoint:B_,MultiLineString:QC,MultiPolygon:YC};function dte(n,e,t){return Array.isArray(e[0])?(MU(n,0,e,t)||(n=n.slice(),G6(n,0,e,t)),n):(yO(n,0,e,t)||(n=n.slice(),D2(n,0,e,t)),n)}function mz(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(s=>mz({...n,geometry:s})).flat();const r=t.type==="MultiPolygon"?"Polygon":t.type;if(r==="GeometryCollection"||r==="Circle")throw new Error("Unsupported geometry type: "+r);const i=t.layout.length;return e3(new Mh(r,r==="Polygon"?dte(t.flatCoordinates,t.ends,i):t.flatCoordinates,t.ends?.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function WO(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>WO(i,e));return new G2(r)}const t=hte[n.type];return e3(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class fte extends pz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Eb(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Eb(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return mo()}readFeaturesFromObject(e,t){ Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function bne(n,e){const t=Oz(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class xne extends m_{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=_ne(e,this.onWorkerMessage_.bind(this,i));else r[0]=bne(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,r=e.inputs[0].height,i=e.inputs.map(function(f){return f.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/s);for(let f=0;f<s;++f){const C=f*o,w=[];for(let B=0,D=i.length;B<D;++B)w.push(i[B].slice(C,C+o));this.workers_[f].postMessage({buffers:w,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},w)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const s=e.inputs[0].data.length;r=new Uint8ClampedArray(s),i=new Array(t);const l=4*Math.ceil(s/4/t);for(let o=0;o<t;++o){const f=this.dataLookup_[o].buffer,C=o*l;r.set(new Uint8ClampedArray(f),C),i[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const V9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class H9 extends Pp{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class Iz extends wz{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Sne(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(uo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new VL(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:Ed(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:wne(this.layers_),pixelRatio:1,pixelToCoordinateTransform:Ed(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:ko(this),renderTargets:{}},this.setAttributions(function(r){const i=[];for(let s=0,l=e.sources.length;s<l;++s){const o=e.sources[s],f=o instanceof Xy?o:o.getSource();if(!f)continue;const C=f.getAttributions()?.(r);typeof C=="string"?i.push(C):C!==void 0&&i.push(...C)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new xne({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const s=of(e);i.size[0]=Math.ceil(Ns(e)/t),i.size[1]=Math.ceil(Lu(e)/t),i.extent=[s[0]-i.size[0]*t/2,s[1]-i.size[1]*t/2,s[0]+i.size[0]*t/2,s[1]+i.size[1]*t/2],i.time=Date.now();const l=i.viewState;return l.center=s,l.projection=r,l.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const s=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!Wm(s.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_,t=th Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Tz(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Fne extends r3{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Lne,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:lz,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!N0(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||N0(t,e)))return this.tileGrid;const r=ko(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=Sz(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,l){const o=[e,t,r],f=this.getTileCoordForTileUrlFunction(o,s),C=f?this.tileUrlFunction(f,i,s):void 0,w=new this.tileClass(o,C!==void 0?Pr.IDLE:Pr.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return w.key=l,w.addEventListener(uo.CHANGE,this.handleTileChange.bind(this)),w}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||N0(l,s))return this.getTileInternal(e,t,r,i,l||s);const o=[e,t,r],f=this.getKey(),C=this.getTileGridForProjection(l),w=this.getTileGridForProjection(s),B=this.getTileCoordForTileUrlFunction(o,s),D=new bz(l,C,s,w,o,B,this.getTilePixelRatio(i),this.getGutter(),(R,U,G,W)=>this.getTileInternal(R,U,G,W,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return D.key=f,D}getTileInternal(e,t,r,i,s){const l=this.getKey();return this.createTile_(e,t,r,i,s,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Ba(e);if(r){const i=ko(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Lne(n,e){n.getImage().src=e}class kz extends Fne{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ba("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)Bne(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ba("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const C=__(t,r);i=rZ(e.bounds,C)}const s=n3(r),l=e.minzoom||0,o=e.maxzoom||22,f=YO({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=Tz(e.tiles,f),e.attribution&&!this.getAttributions()){const C=i!==void 0?i:s;this.setAttributions(function(w){return QA(C,w.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class qO extends r3{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||n3(t),i=e.tileGrid||YO({extent:r,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:i,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Pz,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:Az,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===Pr.IDLE){r.setState(Pr.LOADING);const i=r.wr Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var eT;function nre(){return eT||(eT=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var o in s)e.call(s,o)&&s[o]&&(l=i(l,o));return l}function i(s,l){return l?s?s+" "+l:s+l:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(fM)),fM.exports}var rre=nre();const cm=zl(rre);function S1(){var n="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",e="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",statementMap:{0:{start:{line:6,column:22},end:{line:10,column:5}},1:{start:{line:11,column:4},end:{line:11,column:154}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:12,column:3}},line:5}},branchMap:{0:{loc:{start:{line:11,column:11},end:{line:11,column:153}},type:"cond-expr",locations:[{start:{line:11,column:52},end:{line:11,column:92}},{start:{line:11,column:111},end:{line:11,column:153}}],line:11}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx"],names:[],mappings:"AAeoC;AAfpC,OAAO,WAAW;AAClB,SAAQ,iBAAiB,qBAAoB;AAO7C,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,GAAG,KAAK,MAAM;AAAA,IAChB;AACA,WAAO,KAAK,MAAM,cAAc,oBAAC,iBAAc,OAAO,WAAU,IAAK,oBAAC,mBAAgB,OAAO,WAAW;AAAA,EAC1G;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e73e8fb606fcd7318a8222b2e50c576ed3ad8702"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return S1=function(){return l},l}S1();class ire extends nr.Component{render(){S1().f[0]++;const e=(S1().s[0]++,{width:20,height:20,...this.props.style});return S1().s[1]++,this.props.isCollapsed?(S1().b[0][0]++,ae.jsx(NV,{style:e})):(S1().b[0][1]++,ae.jsx(zV,{style:e}))}}function dy(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return dy=function(){return l},l}dy();class ore extends nr.Component{render(){return dy().f[0]++,dy().s[0]++,ae.jsx("li",{className:"maputnik-layer-list-group",children:ae.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(dy().f[1]++,dy().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[ae.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),ae.jsx("span",{className:"maputnik-space"}),ae.jsx(ire,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function _l(){return _l=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_l.apply(null,arguments)}function sre(n){if(Array.isArray(n))return n}function are(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,l,o=[],f=!0,C=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(f=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);f=!Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gz(n,e){return sre(n)||are(n,e)||Nz(n,e)||lre()}function Uy(n){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uy(n)}function Are(n,e){if(Uy(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Uy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function jz(n){var e=Are(n,"string");return Uy(e)=="symbol"?e:e+""}function Fa(n,e,t){return(e=jz(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function pM(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Fa(n,i,t[i])})}return n}function T_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ure(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,jz(r.key),r)}}function k_(n,e,t){return e&&ure(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function us(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function $O(n,e){if(e&&(Uy(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return us(n)}function qC(n){return qC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qC(n)}function oB(n,e){return oB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},oB(n,e)}function VO(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&oB(n,e)}var mM,tT;function cre(){if(tT)return mM;tT=1;var n=function(e,t,r,i,s,l,o,f){if(!e){var C;if(t===void 0)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var w=[r,i,s,l,o,f],B=0;C=new Error(t.replace(/%s/g,function(){return w[B++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}};return mM=n,mM}var hre=cre();const H1=zl(hre);function dre(n){if(Array.isArray(n))return iB(n)}function fre(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function pre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mre(n){return dre(n)||fre(n)||Nz(n)||pre()}var gre=function(){function n(){T_(this,n),Fa(this,"refs",{})}return k_(n,[{key:"add",value:function(t,r){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(r)}},{key:"remove",value:function(t,r){var i=this.getIndex(t,r);i!==-1&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,r){return this.refs[t].indexOf(r)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(yre)}}]),n}();function yre(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function Wz(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var Lg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Qz=function(){if(typeof window>"u"||typeof document>"u")return"";var n=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)||n.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function Tb(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function kb(n,e){n.style["".concat(Qz,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function gM(n,e){n.style["".concat(Qz,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Xv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function nT(n,e,t){return Math.max(n,Math.min(t,e))}function fy(n){return n.substr(-2)==="px"?parseFloat(n):0}function vre(n){var e=window.getComputedStyle(n);return{bottom:fy(e.marginBottom),left:fy(e.marginLeft),right:fy(e.marginRight),top:fy(e.marginTop)}}function HO(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function yM(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function Kv(n){return n.touches&&n.touches.length?{x:n.touches[0].pageX,y:n.touches[0].pageY}:n.changedTouches&&n.changedTouches.length?{x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY}:{x:n.pageX,y:n.pageY}}function Cre(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function t2(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(n){var r={left:t.left+n.offsetLeft,top:t.top+n.offsetTop};return n.parentNode===e?r:t2(n.parentNode,e,r)}}function _re(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function rT(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,s=e,l="px";if(typeof e=="string"){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);H1(o!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),s=parseFloat(e),l=o[1]}return H1(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",e),l==="%"&&(i=i*t/100,s=s*r/100),{x:i,y:s}}function bre(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];H1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=Gz(i,2),l=s[0],o=s[1];return[rT({height:e,lockOffset:l,width:t}),rT({height:e,lockOffset:o,width:t})]}function xre(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function Yz(n){return n instanceof HTMLElement?xre(n)?n:Yz(n.parentNode):null}function Mre(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:fy(e.gridColumnGap),y:fy(e.gridRowGap)}:{x:0,y:0}}var g1={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},E1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function wre(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=mre(r.querySelectorAll(e));return i.forEach(function(s,l){if(s.type!=="file"&&(s.value=t[l].value),s.type==="radio"&&s.name&&(s.name="__sortableClone__".concat(s.name)),s.tagName===E1.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function Sre(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){VO(s,i);function s(){var l,o;T_(this,s);for(var f=arguments.length,C=new Array(f),w=0;w<f;w++)C[w]=arguments[w];return o=$O(this,(l=qC(s)).call.apply(l,[this].concat(C))),Fa(us(us(o)),"wrappedInstance",Hn.createRef()),o}return k_(s,[{key:"componentDidMount",value:function(){var o=Ix.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return H1(r.withRef,"T Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var Zz=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],H2=Zz.join(","),Xz=typeof Element>"u",Z1=Xz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Z2=!Xz&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},X2=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=i===""||i==="true",l=s||t&&e&&n(e.parentNode);return l},zre=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},Jz=function(e,t,r){if(X2(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(H2));return t&&Z1.call(e,H2)&&i.unshift(e),i=i.filter(r),i},eN=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!X2(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),f=o.length?o:l.children,C=n(f,!0,r);r.flatten?i.push.apply(i,C):i.push({scopeParent:l,candidates:C})}else{var w=Z1.call(l,H2);w&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),D=!X2(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(B&&D){var R=n(B===!0?l.children:B.children,!0,r);r.flatten?i.push.apply(i,R):i.push({scopeParent:l,candidates:R})}else s.unshift.apply(s,l.children)}}return i},tN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},S0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||zre(e))&&!tN(e)?0:e.tabIndex},Nre=function(e,t){var r=S0(e);return r<0&&t&&!tN(e)?0:r},Gre=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},nN=function(e){return e.tagName==="INPUT"},jre=function(e){return nN(e)&&e.type==="hidden"},Wre=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},Qre=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Yre=function(e){if(!e.name)return!0;var t=e.form||Z2(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=Qre(i,e.form);return!s||s===e},qre=function(e){return nN(e)&&e.type==="radio"},$re=function(e){return qre(e)&&!Yre(e)},Vre=function(e){var t,r=e&&Z2(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var l,o,f;for(s=!!((l=i)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!s&&i;){var C,w,B;r=Z2(i),i=(C=r)===null||C===void 0?void 0:C.host,s=!!((w=i)!==null&&w!==void 0&&(B=w.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return s},oT=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Hre=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Z1.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(Z1.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var f=e.parentElement,C=Z2(e);if(f&&!f.shadowRoot&&i(f)===!0)return oT(e);e.assignedSlot?e=e.assignedSlot:!f&&C!==e.ownerDocument?e=C.host:e=f}e=o}if(Vre(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return oT(e);return!1},Zre=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return Z1.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},J2=function(e,t){return!(t.disabled||X2(t)||jre(t)||Hre(t,e)||Wre(t)||Zre(t))},sB=function(e,t){return!($re(t)||S0(t)<0||!J2(e,t))},Xre=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Jre=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,f=Nre(o,l),C=l?n(i.candidates):o;f===0?l?t.push.apply(t,C):t.push(o):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:C})}),r.sort(Gre).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),iLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function sT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function aT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?sT(Object(t),!0).forEach(function(r){nie(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):sT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function nie(n,e,t){return e=iie(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function rie(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function iie(n){var e=rie(n,"string");return typeof e=="symbol"?e:String(e)}var lT={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},oie=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},sie=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},mC=function(e){return e?.key==="Tab"||e?.keyCode===9},aie=function(e){return mC(e)&&!e.shiftKey},lie=function(e){return mC(e)&&e.shiftKey},AT=function(e){return setTimeout(e,0)},uT=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},Fv=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},Pb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Aie=[],uie=function(e,t){var r=t?.document||document,i=t?.trapStack||Aie,s=aT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:aie,isKeyBackward:lie},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,f=function(Be,Me,We){return Be&&Be[Me]!==void 0?Be[Me]:s[We||Me]},C=function(Be,Me){var We=typeof Me?.composedPath=="function"?Me.composedPath():void 0;return l.containerGroups.findIndex(function(be){var nt=be.container,_t=be.tabbableNodes;return nt.contains(Be)||We?.includes(nt)||_t.find(function(at){return at===Be})})},w=function(Be){var Me=s[Be];if(typeof Me=="function"){for(var We=arguments.length,be=new Array(We>1?We-1:0),nt=1;nt<We;nt++)be[nt-1]=arguments[nt];Me=Me.apply(void 0,be)}if(Me===!0&&(Me=void 0),!Me){if(Me===void 0||Me===!1)return Me;throw new Error("`".concat(Be,"` was specified but was not a node, or did not return a node"))}var _t=Me;if(typeof Me=="string"&&(_t=r.querySelector(Me),!_t))throw new Error("`".concat(Be,"` as selector refers to no known node"));return _t},B=function(){var Be=w("initialFocus");if(Be===!1)return!1;if(Be===void 0||!n2(Be,s.tabbableOptions))if(C(r.activeElement)>=0)Be=r.activeElement;else{var Me=l.tabbableGroups[0],We=Me&&Me.firstTabbableNode;Be=We||w("fallbackFocus")}if(!Be)throw new Error("Your focus-trap needs to have at least one focusable element");return Be},D=function(){if(l.containerGroups=l.containers.map(function(Be){var Me=rN(Be,s.tabbableOptions),We=iN(Be,s.tabbableOptions),be=Me.length>0?Me[0]:void 0,nt=Me.length>0?Me[Me.length-1]:void 0,_t=We.find(function(Ne){return b1(Ne)}),at=We.slice().reverse().find(function(Ne){return b1(Ne)}),Je=!!Me.find(function(Ne){return S0(Ne)>0});return{container:Be,tabbableNodes:Me,focusableNodes:We,posTabIndexesFound:Je,firstTabbableNode:be,lastTabbableNode:nt,firstDomTabbableNode:_t,lastDomTabbableNode:at,nextTabbableNode:function(Te){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,gt=Me.indexOf(Te);return gt<0?Ze?We.slice(We.indexOf(Te)+1).find(function(Dt){return b1(Dt)}):We.slice(0,We.indexOf(Te)).reverse().find(function(Dt){return b1(Dt)}):Me[gt+(Ze?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(Be){return Be.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!w("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(Be){return Be.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},R=function xe(Be){var Me=Be.activeElement;if(Me)return Me.shadowRoot&&Me.shadowRoot.activeElement!==null?xe(Me.shadowRoot):Me},U=function xe(Be){if(Be!==!1&&Be!==R(document)){if(!Be||!Be.focus)Line truncated
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var pT;function Eie(){if(pT)return Ea;pT=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),U;U=Symbol.for("react.module.reference");function G(W){if(typeof W=="object"&&W!==null){var J=W.$$typeof;switch(J){case n:switch(W=W.type,W){case t:case i:case r:case C:case w:return W;default:switch(W=W&&W.$$typeof,W){case o:case l:case f:case D:case B:case s:return W;default:return J}}case e:return J}}}return Ea.ContextConsumer=l,Ea.ContextProvider=s,Ea.Element=n,Ea.ForwardRef=f,Ea.Fragment=t,Ea.Lazy=D,Ea.Memo=B,Ea.Portal=e,Ea.Profiler=i,Ea.StrictMode=r,Ea.Suspense=C,Ea.SuspenseList=w,Ea.isAsyncMode=function(){return!1},Ea.isConcurrentMode=function(){return!1},Ea.isContextConsumer=function(W){return G(W)===l},Ea.isContextProvider=function(W){return G(W)===s},Ea.isElement=function(W){return typeof W=="object"&&W!==null&&W.$$typeof===n},Ea.isForwardRef=function(W){return G(W)===f},Ea.isFragment=function(W){return G(W)===t},Ea.isLazy=function(W){return G(W)===D},Ea.isMemo=function(W){return G(W)===B},Ea.isPortal=function(W){return G(W)===e},Ea.isProfiler=function(W){return G(W)===i},Ea.isStrictMode=function(W){return G(W)===r},Ea.isSuspense=function(W){return G(W)===C},Ea.isSuspenseList=function(W){return G(W)===w},Ea.isValidElementType=function(W){return typeof W=="string"||typeof W=="function"||W===t||W===i||W===r||W===C||W===w||W===R||typeof W=="object"&&W!==null&&(W.$$typeof===D||W.$$typeof===B||W.$$typeof===s||W.$$typeof===l||W.$$typeof===f||W.$$typeof===U||W.getModuleId!==void 0)},Ea.typeOf=G,Ea}var mT;function Bie(){return mT||(mT=1,xM.exports=Eie()),xM.exports}Bie();const gT=n=>typeof n=="object"&&n!=null&&n.nodeType===1,yT=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Db=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return yT(t.overflowY,e)||yT(t.overflowX,e)||(r=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(n)}return!1},Kb=(n,e,t,r,i,s,l,o)=>s<n&&l>e||s>n&&l<e?0:s<=n&&o<=t||l>=e&&o>=t?s-n-r:l>e&&o<t||s<n&&o>t?l-e+i:0,Oie=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},Iie=(n,e)=>{var t,r,i,s;if(typeof document>"u")return[];const{inline:l,boundary:o,skipOverflowHiddenElements:f}=e,C=typeof o=="function"?o:Me=>Me!==o;if(!gT(n))throw new TypeError("Invalid target");const w=document.scrollingElement||document.documentElement,B=[];let D=n;for(;gT(D)&&C(D);){if(D=Oie(D),D===w){B.push(D);break}D!=null&&D===document.body&&Db(D)&&!Db(document.documentElement)||D!=null&&Db(D,f)&&B.push(D)}const R=(r=(t=window.visualViewport)==null?void 0:t.width)!=null?r:innerWidth,U=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:G,scrollY:W}=window,{height:J,width:$,top:oe,right:te,bottom:H,left:re}=n.getBoundingClientRect(),{top:j,right:Ae,left:ge}=(Me=>{const We=window.getComputedStyle(Me);return{top:parseFloat(We.scrollMarginTop)||0,right:parseFloat(We.scrollMarginRight)||0,bottom:parseFloat(We.scrollMarginBottom)||0,left:parseFloat(We.scrollMarginLeft)||0}})(n);let me=oe-j,xe=l==="center"?re+$/2-ge+Ae:l==="end"?te+Ae:re-ge;const Be=[];for(let Me=0;Me<B.length;Me++){const We=B[Me],{height:be,width:nt,top:_t,right:at,bottom:Je,left:Ne}=We.getBoundingClientRect();if(oe>=0&&re>=0&&H<=U&&te<=R&&(We===w&&!Db(We)||oe>=_t&&H<=Je&&re>=Ne&&te<=at))return Be;const Te=getComputedStyle(We),Ze=parseInt(Te.borderLeftWidth,10),gt=parseInt(Te.borderTopWidth,10),Dt=parseInt(Te.borderRightWidth,10),pt=parseInt(Te.borderBottomWidth,10);let Tt=0,It=0;const Le="offsetWidth"in We?We.offsetWidth-We.clientWidth-Ze-Dt:0,Re="offsetHeight"in We?We.offsetHeight-We.clientHeight-gt-pt:0,Ke="offsetWidth"in We?We.offsetWidth===0?0:nt/We.offsetWidth:0,$e="offsetHeight"in We?We.offsetHeight===0?0:be/We.offsetHeight:0;if(w===We)Tt=Kb(W,W+U,U,gt,pt,W+me,W+me+J,J),It=l==="start"?xe:l==="center"?xe-R/2:l==="end"?xe-R:Kb(G,G+R,R,Ze,Dt,G+xe,G+xe+$,$),Tt=Math.max(0,Tt+W),It=Math.max(0,It+G);else{Tt=Kb(_t,Je,be,gt,pt+Re,me,me+J,J),It=l==="start"?xe-Ne-Ze:l==="center"?xe-(Ne+nt/2)+Le/2:l==="end"?xe-at+Dt+Le:Kb(Ne,at,nt,Ze,Dt+Le,xe,xe+$,$);const{scrollLeft:bt,scrollTop:vt}=We;Tt=$e===0?0:Math.max(0,Math.min(vt+Tt/$e,We.scrollHeight-be/$e+Re)),It=Ke===0?0:Math.max(0,Math.min(bt+It/Ke,We.scrollWidth-nt/Ke+Le)),me+=vt-Tt,xe+=bt-It}Be.push({el:We,top:Tt,left:It})}return Be};var zy=function(){return zy=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Roe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Doe=l3(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,s=e.allowMultipleExpanded,l=s===void 0?!1:s,o=e.allowZeroExpanded,f=o===void 0?!1:o;a3(this,n),Ll(this,"expanded",void 0),Ll(this,"allowMultipleExpanded",void 0),Ll(this,"allowZeroExpanded",void 0),Ll(this,"toggleExpanded",function(C){if(t.isItemDisabled(C))return t;var w=t.isItemExpanded(C);return w?t.augment({expanded:t.expanded.filter(function(B){return B!==C})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Boe(t.expanded),[C]):[C]})}),Ll(this,"isItemDisabled",function(C){var w=t.isItemExpanded(C),B=t.expanded.length===1;return!!(w&&!t.allowZeroExpanded&&B)}),Ll(this,"isItemExpanded",function(C){return t.expanded.indexOf(C)!==-1}),Ll(this,"getPanelAttributes",function(C,w){var B=w??t.isItemExpanded(C);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(C),id:t.getPanelId(C),hidden:B?void 0:!0}}),Ll(this,"getHeadingAttributes",function(){return{role:"heading"}}),Ll(this,"getButtonAttributes",function(C,w){var B=w??t.isItemExpanded(C),D=t.isItemDisabled(C);return{id:t.getButtonId(C),"aria-disabled":D,"aria-expanded":B,"aria-controls":t.getPanelId(C),role:"button",tabIndex:0}}),Ll(this,"getPanelId",function(C){return"accordion__panel-".concat(C)}),Ll(this,"getButtonId",function(C){return"accordion__heading-".concat(C)}),Ll(this,"augment",function(C){return new n(cB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},C))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=f}),TN=Hn.createContext(null),kN=function(n){pI(t,n);var e=mI(t);function t(){var r;a3(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(yp(r),"state",new Doe({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Ll(yp(r),"toggleExpanded",function(o){r.setState(function(f){return f.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Ll(yp(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),Ll(yp(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),Ll(yp(r),"getPanelAttributes",function(o,f){return r.state.getPanelAttributes(o,f)}),Ll(yp(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Ll(yp(r),"getButtonAttributes",function(o,f){return r.state.getButtonAttributes(o,f)}),r}return l3(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return Hn.createElement(TN.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Hn.PureComponent);Ll(kN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var PN=function(n){pI(t,n);var e=mI(t);function t(){var r;a3(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(yp(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return l3(t,[{key:"render",value:function(){return Hn.createElement(TN.Consumer,null,this.renderChildren)}}]),t}(Hn.PureComponent),Koe=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Foe=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,s=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,f=A3(e,Koe);return Hn.createElement(kN,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},Hn.createElement("div",hm({"data-accordion-component":"Accordion",className:r},f)))},fB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(fB||(fB={}));var RN=fB,KM=0;function Loe(){var n=KM;return KM=KM+1,"raa-".concat(n)}var Uoe=Hn.useId||Loe,zoe=/[\u0009\u000a\u000c\u000d\u0020]/g;function VC(n){return n===""||zoe.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var DN=Hn.createContext(null),Noe=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,l=function(){i.toggleExpanded(r)},o=function(C){var w=s??C.isItemExpanded(r),B=C.isItemDisabled(r),D=C.getPanelAttributes(r,s),R=C.getHeadingAttributes(r),U=C.getButtonAttributes(r,s);return Hn.createElement(DN.Provider,{value:{uuid:r,expanded:w,disabled:B,toggleExpanded:l,panelAttributes:D,headingAttributes:R,buttonAttributes:U}},t)};return Hn.createElement(PN,nu Line truncated
From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):
“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”
`,LN=function(n){pI(t,n);var e=mI(t);function t(){var r;a3(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(yp(r),"ref",void 0),Ll(yp(r),"setRef",function(o){r.ref=o}),r}return l3(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Hn.createElement("div",hm({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Xoe)}}]),t}(Hn.PureComponent);Ll(LN,"defaultProps",Zoe);var UN=function(e){return Hn.createElement(u3,null,function(t){var r=t.headingAttributes;return e.id&&VC(e.id),Hn.createElement(LN,hm({},e,r))})};UN.displayName=RN.AccordionItemHeading;var Joe=["className","region","id"],ese=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=A3(e,Joe),o=function(C){var w=C.panelAttributes;s&&VC(s);var B=cB(cB({},w),{},{"aria-labelledby":i?w["aria-labelledby"]:void 0});return Hn.createElement("div",hm({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return Hn.createElement(u3,null,o)},i2={exports:{}},tse=i2.exports,UT;function h3(){return UT||(UT=1,function(n,e){(function(t,r){n.exports=r()})(tse,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),s=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),f=s||l||o,C=f&&(s?document.documentMode||6:+(o||l)[1]),w=!o&&/WebKit\//.test(t),B=w&&/Qt\/\d+\.\d+/.test(t),D=!o&&/Chrome\/(\d+)/.exec(t),R=D&&+D[1],U=/Opera\//.test(t),G=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),J=/PhantomJS/.test(t),$=G&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),te=$||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),H=$||/Mac/.test(r),re=/\bCrOS\b/.test(t),j=/win/i.test(r),Ae=U&&t.match(/Version\/(\d*\.\d*)/);Ae&&(Ae=Number(Ae[1])),Ae&&Ae>=15&&(U=!1,w=!0);var ge=H&&(B||U&&(Ae==null||Ae<12.11)),me=i||f&&C>=9;function xe(h){return new RegExp("(^|\\s)"+h+"(?:$|\\s)\\s*")}var Be=function(h,y){var E=h.className,S=xe(y).exec(E);if(S){var K=E.slice(S.index+S[0].length);h.className=E.slice(0,S.index)+(K?S[1]+K:"")}};function Me(h){for(var y=h.childNodes.length;y>0;--y)h.removeChild(h.firstChild);return h}function We(h,y){return Me(h).appendChild(y)}function be(h,y,E,S){var K=document.createElement(h);if(E&&(K.className=E),S&&(K.style.cssText=S),typeof y=="string")K.appendChild(document.createTextNode(y));else if(y)for(var Z=0;Z<y.length;++Z)K.appendChild(y[Z]);return K}function nt(h,y,E,S){var K=be(h,y,E,S);return K.setAttribute("role","presentation"),K}var _t;document.createRange?_t=function(h,y,E,S){var K=document.createRange();return K.setEnd(S||h,E),K.setStart(h,y),K}:_t=function(h,y,E){var S=document.body.createTextRange();try{S.moveToElementText(h.parentNode)}catch{return S}return S.collapse(!0),S.moveEnd("character",E),S.moveStart("character",y),S};function at(h,y){if(y.nodeType==3&&(y=y.parentNode),h.contains)return h.contains(y);do if(y.nodeType==11&&(y=y.host),y==h)return!0;while(y=y.parentNode)}function Je(h){var y=h.ownerDocument||h,E;try{E=h.activeElement}catch{E=y.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function Ne(h,y){var E=h.className;xe(y).test(E)||(h.className+=(E?" ":"")+y)}function Te(h,y){for(var E=h.split(" "),S=0;S<E.length;S++)E[S]&&!xe(E[S]).test(y)&&(y+=" "+E[S]);return y}var Ze=function(h){h.select()};$?Ze=function(h){h.selectionStart=0,h.selectionEnd=h.value.length}:f&&(Ze=function(h){try{h.select()}catch{}});function gt(h){return h.display.wrapper.ownerDocument}function Dt(h){return pt(h.display.wrapper)}function pt(h){return h.getRootNode?h.getRootNode():h.ownerDocument}function Tt(h){return gt(h).defaultView}function It(h){var y=Array.prototype.slice.call(arguments,1);return function(){return h.apply(null,y)}}function Le(h,y,E){y||(y={});for(var S in h)h.hasOwnProperty(S)&&(E!==!1||!y.hasOwnProperty(S))&&(y[S]=h[S]);return y}function Re(h,y,E,S,K){y==null&&(y=h.search(/[^\s\u00a0]/),y==-1&&(y=h.length));for(var Z=S||0,he=K||0;;){var Ce=h.indexOf(" ",Z);if(Ce<0||Ce>=y)return he+(y-Z);he+=Ce-Z,he+=E-he%E,Z=Ce+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=It(this.onTimeout,this)};Ke.prototype.onTimeout=function(h){h.id=0,h.time<=+new Date?h.f():setTimeout(h.handler,h.time-+new Date)},Ke.prototype.set=function(h,y){this.f=y;var E=+new Date+h;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,h),this.time=E)};function $e(h,y){for(var E=0;E<h.length;++E)if(h[E]==y)return E;return-1}var Line truncated
b`.split(/\n/).length!=3?function(h){for(var y=0,E=[],S=h.length;y<=S;){var K=h.indexOf(`
`,y);K==-1&&(K=h.length);var Z=h.slice(y,h.charAt(K-1)=="\r"?K-1:K),he=Z.indexOf("\r");he!=-1?(E.push(Z.slice(0,he)),y+=he+1):(E.push(Z),y=K+1)}return E}:function(h){return h.split(/\r\n?|\n/)},qn=window.getSelection?function(h){try{return h.selectionStart!=h.selectionEnd}catch{return!1}}:function(h){var y;try{y=h.ownerDocument.selection.createRange()}catch{}return!y||y.parentElement()!=h?!1:y.compareEndPoints("StartToEnd",y)!=0},_i=function(){var h=be("div");return"oncopy"in h?!0:(h.setAttribute("oncopy","return;"),typeof h.oncopy=="function")}(),Lr=null;function ki(h){if(Lr!=null)return Lr;var y=We(h,be("span","x")),E=y.getBoundingClientRect(),S=_t(y,0,1).getBoundingClientRect();return Lr=Math.abs(E.left-S.left)>1}var la={},is={};function Nr(h,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),la[h]=y}function Ha(h,y){is[h]=y}function Aa(h){if(typeof h=="string"&&is.hasOwnProperty(h))h=is[h];else if(h&&typeof h.name=="string"&&is.hasOwnProperty(h.name)){var y=is[h.name];typeof y=="string"&&(y={name:y}),h=Er(y,h),h.name=y.name}else{if(typeof h=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(h))return Aa("application/xml");if(typeof h=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(h))return Aa("application/json")}return typeof h=="string"?{name:h}:h||{name:"null"}}function Wo(h,y){y=Aa(y);var E=la[y.name];if(!E)return Wo(h,"text/plain");var S=E(h,y);if(Fs.hasOwnProperty(y.name)){var K=Fs[y.name];for(var Z in K)K.hasOwnProperty(Z)&&(S.hasOwnProperty(Z)&&(S["_"+Z]=S[Z]),S[Z]=K[Z])}if(S.name=y.name,y.helperType&&(S.helperType=y.helperType),y.modeProps)for(var he in y.modeProps)S[he]=y.modeProps[he];return S}var Fs={};function bl(h,y){var E=Fs.hasOwnProperty(h)?Fs[h]:Fs[h]={};Le(y,E)}function ni(h,y){if(y===!0)return y;if(h.copyState)return h.copyState(y);var E={};for(var S in y){var K=y[S];K instanceof Array&&(K=K.concat([])),E[S]=K}return E}function bA(h,y){for(var E;h.innerMode&&(E=h.innerMode(y),!(!E||E.mode==h));)y=E.state,h=E.mode;return E||{mode:h,state:y}}function Os(h,y,E){return h.startState?h.startState(y,E):!0}var qr=function(h,y,E){this.pos=this.start=0,this.string=h,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};qr.prototype.eol=function(){return this.pos>=this.string.length},qr.prototype.sol=function(){return this.pos==this.lineStart},qr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qr.prototype.eat=function(h){var y=this.string.charAt(this.pos),E;if(typeof h=="string"?E=y==h:E=y&&(h.test?h.test(y):h(y)),E)return++this.pos,y},qr.prototype.eatWhile=function(h){for(var y=this.pos;this.eat(h););return this.pos>y},qr.prototype.eatSpace=function(){for(var h=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>h},qr.prototype.skipToEnd=function(){this.pos=this.string.length},qr.prototype.skipTo=function(h){var y=this.string.indexOf(h,this.pos);if(y>-1)return this.pos=y,!0},qr.prototype.backUp=function(h){this.pos-=h},qr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},qr.prototype.indentation=function(){return Re(this.string,null,this.tabSize)-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},qr.prototype.match=function(h,y,E){if(typeof h=="string"){var S=function(he){return E?he.toLowerCase():he},K=this.string.substr(this.pos,h.length);if(S(K)==S(h))return y!==!1&&(this.pos+=h.length),!0}else{var Z=this.string.slice(this.pos).match(h);return Z&&Z.index>0?null:(Z&&y!==!1&&(this.pos+=Z[0].length),Z)}},qr.prototype.current=function(){return this.string.slice(this.start,this.pos)},qr.prototype.hideFirstChars=function(h,y){this.lineStart+=h;try{return y()}finally{this.lineStart-=h}},qr.prototype.lookAhead=function(h){var y=this.lineOracle;return y&&y.lookAhead(h)},qr.prototype.baseToken=function(){var h=this.lineOracle;return h&&h.baseToken(this.pos)};function wr(h,y){if(y-=h.first,y<0||y>=h.size)throw new Error("There is no line "+(y+h.first)+" in the document.");for(var E=h;!E.lines;)for(var S=0;;++S){var K=E.children[S],Z=K.chunkSize();if(y<Z){E=K;break}y-=Z}return E.lines[y]}function ua(h,y,E){var S=[],K=y.line;return h.iter(y.line,E.line+1,function(Z){var he=Z.text;K==E.line&&(he=he.slice(0,E.ch)),K==y.line&&(he=he.slice(y.ch)),S.push(he),++K}),S}function vs(h,y,E){var S=[];return h.iter(y,E,function(K){S.push(K.text)}),S}function os(h,y){var E=y-h.height;if(E)for(var S=h;S;S=S.parent)S.height+=E}function Qe(h){if(h.parent==null)return null;for(var y=h.parent,E=$e(y.lines,h),S=y.parent;S;y=S,S=S.parent)for(var K=0;S.children[K]!=y;++K)E+=S.children[K].chunkSize();return E+y.first}function St(h,y){var E=h.first;e:do{for(var S=0;S<h.child Line truncated
`?(On=mt.appendChild(be("span",Xt[0]=="\r"?"␍":"␤","cm-invalidchar")),On.setAttribute("cm-text",Xt[0]),h.col+=1):(On=h.cm.options.specialCharPlaceholder(Xt[0]),On.setAttribute("cm-text",Xt[0]),f&&C<9?mt.appendChild(be("span",[On])):mt.appendChild(On),h.col+=1);h.map.push(h.pos,h.pos+1,On),h.pos++}}if(h.trailingSpace=Ce.charCodeAt(y.length-1)==32,E||S||K||Ue||Z||he){var fr=E||"";S&&(fr+=S),K&&(fr+=K);var or=be("span",[mt],fr,Z);if(he)for(var Ir in he)he.hasOwnProperty(Ir)&&Ir!="style"&&Ir!="class"&&or.setAttribute(Ir,he[Ir]);return h.content.appendChild(or)}h.content.appendChild(mt)}}function Sh(h,y){if(h.length>1&&!/ /.test(h))return h;for(var E=y,S="",K=0;K<h.length;K++){var Z=h.charAt(K);Z==" "&&E&&(K==h.length-1||h.charCodeAt(K+1)==32)&&(Z=" "),S+=Z,E=Z==" "}return S}function oo(h,y){return function(E,S,K,Z,he,Ce,ke){K=K?K+" cm-force-border":"cm-force-border";for(var Ue=E.pos,mt=Ue+S.length;;){for(var Et=void 0,Xt=0;Xt<y.length&&(Et=y[Xt],!(Et.to>Ue&&Et.from<=Ue));Xt++);if(Et.to>=mt)return h(E,S,K,Z,he,Ce,ke);h(E,S.slice(0,Et.to-Ue),K,Z,null,Ce,ke),Z=null,S=S.slice(Et.to-Ue),Ue=Et.to}}}function rc(h,y,E,S){var K=!S&&E.widgetNode;K&&h.map.push(h.pos,h.pos+y,K),!S&&h.cm.display.input.needsContentAttribute&&(K||(K=h.content.appendChild(document.createElement("span"))),K.setAttribute("cm-marker",E.id)),K&&(h.cm.display.input.setUneditable(K),h.content.appendChild(K)),h.pos+=y,h.trailingSpace=!1}function nd(h,y,E){var S=h.markedSpans,K=h.text,Z=0;if(!S){for(var he=1;he<E.length;he+=2)y.addToken(y,K.slice(Z,Z=E[he]),Oc(E[he+1],y.cm.options));return}for(var Ce=K.length,ke=0,Ue=1,mt="",Et,Xt,Qt=0,Cn,On,er,Zn,fr;;){if(Qt==ke){Cn=On=er=Xt="",fr=null,Zn=null,Qt=1/0;for(var or=[],Ir=void 0,Jr=0;Jr<S.length;++Jr){var Br=S[Jr],eo=Br.marker;if(eo.type=="bookmark"&&Br.from==ke&&eo.widgetNode)or.push(eo);else if(Br.from<=ke&&(Br.to==null||Br.to>ke||eo.collapsed&&Br.to==ke&&Br.from==ke)){if(Br.to!=null&&Br.to!=ke&&Qt>Br.to&&(Qt=Br.to,On=""),eo.className&&(Cn+=" "+eo.className),eo.css&&(Xt=(Xt?Xt+";":"")+eo.css),eo.startStyle&&Br.from==ke&&(er+=" "+eo.startStyle),eo.endStyle&&Br.to==Qt&&(Ir||(Ir=[])).push(eo.endStyle,Br.to),eo.title&&((fr||(fr={})).title=eo.title),eo.attributes)for(var li in eo.attributes)(fr||(fr={}))[li]=eo.attributes[li];eo.collapsed&&(!Zn||st(Zn.marker,eo)<0)&&(Zn=Br)}else Br.from>ke&&Qt>Br.from&&(Qt=Br.from)}if(Ir)for(var qs=0;qs<Ir.length;qs+=2)Ir[qs+1]==Qt&&(On+=" "+Ir[qs]);if(!Zn||Zn.from==ke)for(var $s=0;$s<or.length;++$s)rc(y,0,or[$s]);if(Zn&&(Zn.from||0)==ke){if(rc(y,(Zn.to==null?Ce+1:Zn.to)-ke,Zn.marker,Zn.from==null),Zn.to==null)return;Zn.to==ke&&(Zn=!1)}}if(ke>=Ce)break;for(var Vs=Math.min(Ce,Qt);;){if(mt){var ma=ke+mt.length;if(!Zn){var ia=ma>Vs?mt.slice(0,Vs-ke):mt;y.addToken(y,ia,Et?Et+Cn:Cn,er,ke+ia.length==Qt?On:"",Xt,fr)}if(ma>=Vs){mt=mt.slice(Vs-ke),ke=Vs;break}ke=ma,er=""}mt=K.slice(Z,Z=E[Ue++]),Et=Oc(E[Ue++],y.cm.options)}}}function Fp(h,y,E){this.line=y,this.rest=Vi(y),this.size=this.rest?Qe(Jn(this.rest))-E+1:1,this.node=this.text=null,this.hidden=hi(h,y)}function Jc(h,y,E){for(var S=[],K,Z=y;Z<E;Z=K){var he=new Fp(h.doc,wr(h.doc,Z),Z);K=Z+he.size,S.push(he)}return S}var rd=null;function Lp(h){rd?rd.ops.push(h):h.ownsGroup=rd={ops:[h],delayedCallbacks:[]}}function lf(h){var y=h.delayedCallbacks,E=0;do{for(;E<y.length;E++)y[E].call(null);for(var S=0;S<h.ops.length;S++){var K=h.ops[S];if(K.cursorActivityHandlers)for(;K.cursorActivityCalled<K.cursorActivityHandlers.length;)K.cursorActivityHandlers[K.cursorActivityCalled++].call(null,K.cm)}}while(E<y.length)}function Af(h,y){var E=h.ownsGroup;if(E)try{lf(E)}finally{rd=null,y(E)}}var wA=null;function Ls(h,y){var E=ut(h,y);if(E.length){var S=Array.prototype.slice.call(arguments,2),K;rd?K=rd.delayedCallbacks:wA?K=wA:(K=wA=[],setTimeout(id,0));for(var Z=function(Ce){K.push(function(){return E[Ce].apply(null,S)})},he=0;he<E.length;++he)Z(he)}}function id(){var h=wA;wA=null;for(var y=0;y<h.length;++y)h[y]()}function qA(h,y,E,S){for(var K=0;K<y.changes.length;K++){var Z=y.changes[K];Z=="text"?ad(h,y):Z=="gutter"?Eh(h,y,E,S):Z=="class"?jf(h,y):Z=="widget"&&Wf(h,y,S)}y.changes=null}function od(h){return h.node==h.text&&(h.node=be("div",null,null,"position: relative"),h.text.parentNode&&h.text.parentNode.replaceChild(h.node,h.text),h.node.appendChild(h.text),f&&C<8&&(h.node.style.zIndex=2)),h.node}function sd(h,y){var E=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),y.background)E?y.background.className=E:(y.background.parentNode.removeChild(y.background),y.background=null);else if(E){var S=od(y);y.background=S.insertBefore(be("div",null,E),S.firstChild),h.display.input.setUneditable(y.background)}}function Ic(h,y){var E=h.display.externalMeasured;return E&&E.line==y.line?(h.display.externalMeasured=null,y.measure=E.measure,E.built):YA(h,y)}function ad(h,y){var E=y.text.className,S=Ic(h,y);y.text==y.node&&(y.node=S.pre),y.text.parentNode.replaceChild(S.pre,y.text),y.text=S.pre,S.bgClass Line truncated
top: `+Ir+"px; width: "+(Jr??ke-or)+`px;
height: `+(Br-Ir)+"px"))}function Et(or,Ir,Jr){var Br=wr(K,or),eo=Br.text.length,li,qs;function $s(ia,dA){return bn(h,ln(or,ia),"div",Br,dA)}function Vs(ia,dA,ja){var oa=ds(h,Br,null,ia),Jo=dA=="ltr"==(ja=="after")?"left":"right",Ai=ja=="after"?oa.begin:oa.end-(/\s/.test(Br.text.charAt(oa.end-1))?2:1);return $s(Ai,Jo)[Jo]}var ma=He(Br,K.direction);return je(ma,Ir||0,Jr??eo,function(ia,dA,ja,oa){var Jo=ja=="ltr",Ai=$s(ia,Jo?"left":"right"),qo=$s(dA-1,Jo?"right":"left"),Ss=Ir==null&&ia==0,Us=Jr==null&&dA==eo,ks=oa==0,FA=!ma||oa==ma.length-1;if(qo.top-Ai.top<=3){var so=(Ue?Ss:Us)&&ks,Ld=(Ue?Us:Ss)&&FA,fA=so?Ce:(Jo?Ai:qo).left,au=Ld?ke:(Jo?qo:Ai).right;mt(fA,Ai.top,au-fA,Ai.bottom)}else{var yc,rl,vl,ep;Jo?(yc=Ue&&Ss&&ks?Ce:Ai.left,rl=Ue?ke:Vs(ia,ja,"before"),vl=Ue?Ce:Vs(dA,ja,"after"),ep=Ue&&Us&&FA?ke:qo.right):(yc=Ue?Vs(ia,ja,"before"):Ce,rl=!Ue&&Ss&&ks?ke:Ai.right,vl=!Ue&&Us&&FA?Ce:qo.left,ep=Ue?Vs(dA,ja,"after"):ke),mt(yc,Ai.top,rl-yc,Ai.bottom),Ai.bottom<qo.top&&mt(Ce,Ai.bottom,null,qo.top),mt(vl,qo.top,ep-vl,qo.bottom)}(!li||Nu(Ai,li)<0)&&(li=Ai),Nu(qo,li)<0&&(li=qo),(!qs||Nu(Ai,qs)<0)&&(qs=Ai),Nu(qo,qs)<0&&(qs=qo)}),{start:li,end:qs}}var Xt=y.from(),Qt=y.to();if(Xt.line==Qt.line)Et(Xt.line,Xt.ch,Qt.ch);else{var Cn=wr(K,Xt.line),On=wr(K,Qt.line),er=Sr(Cn)==Sr(On),Zn=Et(Xt.line,Xt.ch,er?Cn.text.length+1:null).end,fr=Et(Qt.line,er?0:null,Qt.ch).start;er&&(Zn.top<fr.top-2?(mt(Zn.right,Zn.top,null,Zn.bottom),mt(Ce,fr.top,fr.left,fr.bottom)):mt(Zn.right,Zn.top,fr.left-Zn.right,Zn.bottom)),Zn.bottom<fr.top&&mt(Ce,Zn.bottom,null,fr.top)}E.appendChild(Z)}function yu(h){if(h.state.focused){var y=h.display;clearInterval(y.blinker);var E=!0;y.cursorDiv.style.visibility="",h.options.cursorBlinkRate>0?y.blinker=setInterval(function(){h.hasFocus()||as(h),y.cursorDiv.style.visibility=(E=!E)?"":"hidden"},h.options.cursorBlinkRate):h.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function sA(h){h.hasFocus()||(h.display.input.focus(),h.state.focused||df(h))}function oh(h){h.state.delayingBlurEvent=!0,setTimeout(function(){h.state.delayingBlurEvent&&(h.state.delayingBlurEvent=!1,h.state.focused&&as(h))},100)}function df(h,y){h.state.delayingBlurEvent&&!h.state.draggingText&&(h.state.delayingBlurEvent=!1),h.options.readOnly!="nocursor"&&(h.state.focused||(rt(h,"focus",h,y),h.state.focused=!0,Ne(h.display.wrapper,"CodeMirror-focused"),!h.curOp&&h.display.selForContextMenu!=h.doc.sel&&(h.display.input.reset(),w&&setTimeout(function(){return h.display.input.reset(!0)},20)),h.display.input.receivedFocus()),yu(h))}function as(h,y){h.state.delayingBlurEvent||(h.state.focused&&(rt(h,"blur",h,y),h.state.focused=!1,Be(h.display.wrapper,"CodeMirror-focused")),clearInterval(h.display.blinker),setTimeout(function(){h.state.focused||(h.display.shift=!1)},150))}function ud(h){for(var y=h.display,E=y.lineDiv.offsetTop,S=Math.max(0,y.scroller.getBoundingClientRect().top),K=y.lineDiv.getBoundingClientRect().top,Z=0,he=0;he<y.view.length;he++){var Ce=y.view[he],ke=h.options.lineWrapping,Ue=void 0,mt=0;if(!Ce.hidden){if(K+=Ce.line.height,f&&C<8){var Et=Ce.node.offsetTop+Ce.node.offsetHeight;Ue=Et-E,E=Et}else{var Xt=Ce.node.getBoundingClientRect();Ue=Xt.bottom-Xt.top,!ke&&Ce.text.firstChild&&(mt=Ce.text.firstChild.getBoundingClientRect().right-Xt.left-1)}var Qt=Ce.line.height-Ue;if((Qt>.005||Qt<-.005)&&(K<S&&(Z-=Qt),os(Ce.line,Ue),ac(Ce.line),Ce.rest))for(var Cn=0;Cn<Ce.rest.length;Cn++)ac(Ce.rest[Cn]);if(mt>h.display.sizerWidth){var On=Math.ceil(mt/Wl(h.display));On>h.display.maxLineLength&&(h.display.maxLineLength=On,h.display.maxLine=Ce.line,h.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(y.scroller.scrollTop+=Z)}function ac(h){if(h.widgets)for(var y=0;y<h.widgets.length;++y){var E=h.widgets[y],S=E.node.parentNode;S&&(E.height=S.offsetHeight)}}function BA(h,y,E){var S=E&&E.top!=null?Math.max(0,E.top):h.scroller.scrollTop;S=Math.floor(S-Oh(h));var K=E&&E.bottom!=null?E.bottom:S+h.wrapper.clientHeight,Z=St(y,S),he=St(y,K);if(E&&E.ensure){var Ce=E.ensure.from.line,ke=E.ensure.to.line;Ce<Z?(Z=Ce,he=St(y,zi(wr(y,Ce))+h.wrapper.clientHeight)):Math.min(ke,y.lastLine())>=he&&(Z=St(y,zi(wr(y,ke))-h.wrapper.clientHeight),he=ke)}return{from:Z,to:Math.max(he,Z+1)}}function sh(h,y){if(!rn(h,"scrollCursorIntoView")){var E=h.display,S=E.sizer.getBoundingClientRect(),K=null,Z=E.wrapper.ownerDocument;if(y.top+S.top<0?K=!0:y.bottom+S.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(K=!1),K!=null&&!J){var he=be("div","​",null,`position: absolute;
top: `+(y.top-E.viewOffset-Oh(h.display))+`px;
height: `+(y.bottom-y.top+gu(h)+E.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");h.display.lineSpace.appendChild(he),he.scrollIntoView(K),h.display.lineSpace.removeChild(he)}}}function Ph(h,y,E,S){S==null&&(S=0);var K;!h.options.lineWrapping&&y==E&&(E=y.sticky=="before"?ln(y.line,y.ch+1,"before"):y,y=y.ch?ln(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y);for(var Z=0;Z<5;Z++){var he=!1,Ce=An(h,y),ke=!E||E==y?Ce:An(h,E);K={left:Math.min(Ce.left,ke.left),top:Math.min(Ce.top,ke.top)-S,right:Math.max(Ce.left,ke.left),bottom:Math.max(Ce.bottom,ke.bottom)+S};var Ue=Rh(h,K),mt=h.doc.scrollTop,Et=h.doc.scrollLeft;if(Ue.scrollTop!=null&&(lc(h,Ue.scrollTop),Math.abs(h.doc.scrollTop-mt)>1&&(he=!0)),Ue.scrollLeft!=null&&(el(h,Ue.scrollLeft),Math.abs(h.doc.scrollLeft-Et)>1&&(he=!0)),!he)break}return K}function ah(h,y){var E=Rh(h,y);E.scrollTop!=null&&lc(h,E.scrollTop),E.scrollLeft!=null&&el(h,E.scrollLeft)}function Rh(h,y){var E=h.display,S=Xa(h.display);y.top<0&&(y.top=0);var K=h.curOp&&h.curOp.scrollTop!=null?h.curOp.scrollTop:E.scroller.scrollTop,Z=ic(h),he={};y.bottom-y.top>Z&&(y.bottom=y.top+Z);var Ce=h.doc.height+Ih(E),ke=y.top<S,Ue=y.bottom>Ce-S;if(y.top<K)he.scrollTop=ke?0:y.top;else if(y.bottom>K+Z){var mt=Math.min(y.top,(Ue?Ce:y.bottom)-Z);mt!=K&&(he.scrollTop=mt)}var Et=h.options.fixedGutter?0:E.gutters.offsetWidth,Xt=h.curOp&&h.curOp.scrollLeft!=null?h.curOp.scrollLeft:E.scroller.scrollLeft-Et,Qt=EA(h)-E.gutters.offsetWidth,Cn=y.right-y.left>Qt;return Cn&&(y.right=y.left+Qt),y.left<10?he.scrollLeft=0:y.left<Xt?he.scrollLeft=Math.max(0,y.left+Et-(Cn?0:10)):y.right>Qt+Xt-3&&(he.scrollLeft=y.right+(Cn?0:10)-Qt),he}function vu(h,y){y!=null&&(Dh(h),h.curOp.scrollTop=(h.curOp.scrollTop==null?h.doc.scrollTop:h.curOp.scrollTop)+y)}function _s(h){Dh(h);var y=h.getCursor();h.curOp.scrollToPos={from:y,to:y,margin:h.options.cursorScrollMargin}}function ea(h,y,E){(y!=null||E!=null)&&Dh(h),y!=null&&(h.curOp.scrollLeft=y),E!=null&&(h.curOp.scrollTop=E)}function ff(h,y){Dh(h),h.curOp.scrollToPos=y}function Dh(h){var y=h.curOp.scrollToPos;if(y){h.curOp.scrollToPos=null;var E=kr(h,y.from),S=kr(h,y.to);Cu(h,E,S,y.margin)}}function Cu(h,y,E,S){var K=Rh(h,{left:Math.min(y.left,E.left),top:Math.min(y.top,E.top)-S,right:Math.max(y.right,E.right),bottom:Math.max(y.bottom,E.bottom)+S});ea(h,K.scrollLeft,K.scrollTop)}function lc(h,y){Math.abs(h.doc.scrollTop-y)<2||(i||dl(h,{top:y}),kc(h,y,!0),i&&dl(h),lh(h,100))}function kc(h,y,E){y=Math.max(0,Math.min(h.display.scroller.scrollHeight-h.display.scroller.clientHeight,y)),!(h.display.scroller.scrollTop==y&&!E)&&(h.doc.scrollTop=y,h.display.scrollbars.setScrollTop(y),h.display.scroller.scrollTop!=y&&(h.display.scroller.scrollTop=y))}function el(h,y,E,S){y=Math.max(0,Math.min(y,h.display.scroller.scrollWidth-h.display.scroller.clientWidth)),!((E?y==h.doc.scrollLeft:Math.abs(h.doc.scrollLeft-y)<2)&&!S)&&(h.doc.scrollLeft=y,pf(h),h.display.scroller.scrollLeft!=y&&(h.display.scroller.scrollLeft=y),h.display.scrollbars.setScrollLeft(y))}function Gu(h){var y=h.display,E=y.gutters.offsetWidth,S=Math.round(h.doc.height+Ih(h.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:h.options.fixedGutter?E:0,docHeight:S,scrollHeight:S+gu(h)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var aA=function(h,y,E){this.cm=E;var S=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),K=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=K.tabIndex=-1,h(S),h(K),ft(S,"scroll",function(){S.clientHeight&&y(S.scrollTop,"vertical")}),ft(K,"scroll",function(){K.clientWidth&&y(K.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};aA.prototype.update=function(h){var y=h.scrollWidth>h.clientWidth+1,E=h.scrollHeight>h.clientHeight+1,S=h.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=y?S+"px":"0";var K=h.viewHeight-(y?S:0);this.vert.firstChild.style.height=Math.max(0,h.scrollHeight-h.clientHeight+K)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=E?S+"px":"0",this.horiz.style.left=h.barLeft+"px";var Z=h.viewWidth-h.barLeft-(E?S:0);this.horiz.firstChild.style.width=Math.max(0,h.scrollWidth-h.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&h.clientHeight>0&&(S==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?S:0,bottom:y?S:0}},aA.prototype.setScrollLeft=function(h){this.horiz.scrollLeft!=h&&(this.horiz.scrollLeft=h),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},aA.prototype.setScrollTop=function(h){this.vert.scrollTop!=h&&(this.vert.scrollTop=h),thi Line truncated
`},setDirection:da(function(h){h!="rtl"&&(h="ltr"),h!=this.direction&&(this.direction=h,this.iter(function(y){return y.order=null}),this.cm&&xu(this.cm))})}),it.prototype.eachLine=it.prototype.iter;var lt=0;function ct(h){var y=this;if(xt(y),!(rn(y,h)||mu(y.display,h))){ur(h),f&&(lt=+new Date);var E=Sl(y,h,!0),S=h.dataTransfer.files;if(!(!E||y.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var K=S.length,Z=Array(K),he=0,Ce=function(){++he==K&&Do(y,function(){E=vi(y.doc,E);var Qt={from:E,to:E,text:y.doc.splitLines(Z.filter(function(Cn){return Cn!=null}).join(y.doc.lineSeparator())),origin:"paste"};Kc(y.doc,Qt),nu(y.doc,Ta(vi(y.doc,E),vi(y.doc,wa(Qt))))})()},ke=function(Qt,Cn){if(y.options.allowDropFileTypes&&$e(y.options.allowDropFileTypes,Qt.type)==-1){Ce();return}var On=new FileReader;On.onerror=function(){return Ce()},On.onload=function(){var er=On.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(er)){Ce();return}Z[Cn]=er,Ce()},On.readAsText(Qt)},Ue=0;Ue<S.length;Ue++)ke(S[Ue],Ue);else{if(y.state.draggingText&&y.doc.sel.contains(E)>-1){y.state.draggingText(h),setTimeout(function(){return y.display.input.focus()},20);return}try{var mt=h.dataTransfer.getData("Text");if(mt){var Et;if(y.state.draggingText&&!y.state.draggingText.copy&&(Et=y.listSelections()),Pa(y.doc,Ta(E,E)),Et)for(var Xt=0;Xt<Et.length;++Xt)pc(y.doc,"",Et[Xt].anchor,Et[Xt].head,"drag");y.replaceSelection(mt,"around","paste"),y.display.input.focus()}}catch{}}}}function Ct(h,y){if(f&&(!h.state.draggingText||+new Date-lt<100)){ci(y);return}if(!(rn(h,y)||mu(h.display,y))&&(y.dataTransfer.setData("Text",h.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!G)){var E=be("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",U&&(E.width=E.height=1,h.display.wrapper.appendChild(E),E._top=E.offsetTop),y.dataTransfer.setDragImage(E,0,0),U&&E.parentNode.removeChild(E)}}function yt(h,y){var E=Sl(h,y);if(E){var S=document.createDocumentFragment();Qi(h,E,S),h.display.dragCursor||(h.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),h.display.lineSpace.insertBefore(h.display.dragCursor,h.display.cursorDiv)),We(h.display.dragCursor,S)}}function xt(h){h.display.dragCursor&&(h.display.lineSpace.removeChild(h.display.dragCursor),h.display.dragCursor=null)}function Rt(h){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<y.length;S++){var K=y[S].CodeMirror;K&&E.push(K)}E.length&&E[0].operation(function(){for(var Z=0;Z<E.length;Z++)h(E[Z])})}}var Lt=!1;function wt(){Lt||(Nt(),Lt=!0)}function Nt(){var h;ft(window,"resize",function(){h==null&&(h=setTimeout(function(){h=null,Rt(en)},100))}),ft(window,"blur",function(){return Rt(as)})}function en(h){var y=h.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,h.setSize()}for(var Vt={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Jt=0;Jt<10;Jt++)Vt[Jt+48]=Vt[Jt+96]=String(Jt);for(var nn=65;nn<=90;nn++)Vt[nn]=String.fromCharCode(nn);for(var Gn=1;Gn<=12;Gn++)Vt[Gn+111]=Vt[Gn+63235]="F"+Gn;var Ln={};Ln.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ln.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ln.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","CtrlLine truncated
`,"start")},toggleOverwrite:function(h){return h.toggleOverwrite()}};function na(h,y){var E=wr(h.doc,y),S=Sr(E);return S!=E&&(y=Qe(S)),Ys(!0,h,S,y,1)}function ou(h,y){var E=wr(h.doc,y),S=Vr(E);return S!=E&&(y=Qe(S)),Ys(!0,h,E,y,-1)}function Yu(h,y){var E=na(h,y.line),S=wr(h.doc,E.line),K=He(S,h.doc.direction);if(!K||K[0].level==0){var Z=Math.max(E.ch,S.text.search(/\S/)),he=y.line==E.line&&y.ch<=Z&&y.ch;return ln(E.line,he?0:Z,E.sticky)}return E}function AA(h,y,E){if(typeof y=="string"&&(y=pa[y],!y))return!1;h.display.input.ensurePolled();var S=h.display.shift,K=!1;try{h.isReadOnly()&&(h.state.suppressEdits=!0),E&&(h.display.shift=!1),K=y(h)!=vt}finally{h.display.shift=S,h.state.suppressEdits=!1}return K}function zh(h,y,E){for(var S=0;S<h.state.keyMaps.length;S++){var K=ai(y,h.state.keyMaps[S],E,h);if(K)return K}return h.options.extraKeys&&ai(y,h.options.extraKeys,E,h)||ai(y,h.options.keyMap,E,h)}var Nh=new Ke;function Bu(h,y,E,S){var K=h.state.keySeq;if(K){if(xo(y))return"handled";if(/\'$/.test(y)?h.state.keySeq=null:Nh.set(50,function(){h.state.keySeq==K&&(h.state.keySeq=null,h.display.input.reset())}),Uc(h,K+" "+y,E,S))return!0}return Uc(h,y,E,S)}function Uc(h,y,E,S){var K=zh(h,y,S);return K=="multi"&&(h.state.keySeq=y),K=="handled"&&Ls(h,"keyHandled",h,y,E),(K=="handled"||K=="multi")&&(ur(E),yu(h)),!!K}function Tl(h,y){var E=Ko(y,!0);return E?y.shiftKey&&!h.state.keySeq?Bu(h,"Shift-"+E,y,function(S){return AA(h,S,!0)})||Bu(h,E,y,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return AA(h,S)}):Bu(h,E,y,function(S){return AA(h,S)}):!1}function qu(h,y,E){return Bu(h,"'"+E+"'",y,function(S){return AA(h,S,!0)})}var gl=null;function $u(h){var y=this;if(!(h.target&&h.target!=y.display.input.getField())&&(y.curOp.focus=Je(Dt(y)),!rn(y,h))){f&&C<11&&h.keyCode==27&&(h.returnValue=!1);var E=h.keyCode;y.display.shift=E==16||h.shiftKey;var S=Tl(y,h);U&&(gl=S?E:null,!S&&E==88&&!_i&&(H?h.metaKey:h.ctrlKey)&&y.replaceSelection("",null,"cut")),i&&!H&&!S&&E==46&&h.shiftKey&&!h.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&No(y)}}function No(h){var y=h.display.lineDiv;Ne(y,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(Be(y,"CodeMirror-crosshair"),Bt(document,"keyup",E),Bt(document,"mouseover",E))}ft(document,"keyup",E),ft(document,"mouseover",E)}function ms(h){h.keyCode==16&&(this.doc.sel.shift=!1),rn(this,h)}function $l(h){var y=this;if(!(h.target&&h.target!=y.display.input.getField())&&!(mu(y.display,h)||rn(y,h)||h.ctrlKey&&!h.altKey||H&&h.metaKey)){var E=h.keyCode,S=h.charCode;if(U&&E==gl){gl=null,ur(h);return}if(!(U&&(!h.which||h.which<10)&&Tl(y,h))){var K=String.fromCharCode(S??E);K!="\b"&&(qu(y,h,K)||y.display.input.onKeyPress(h))}}}var Ga=400,mc=function(h,y,E){this.time=h,this.pos=y,this.button=E};mc.prototype.compare=function(h,y,E){return this.time+Ga>h&&ir(y,this.pos)==0&&E==this.button};var uA,ra;function DA(h,y){var E=+new Date;return ra&&ra.compare(E,h,y)?(uA=ra=null,"triple"):uA&&uA.compare(E,h,y)?(ra=new mc(E,h,y),uA=null,"double"):(uA=new mc(E,h,y),ra=null,"single")}function Ou(h){var y=this,E=y.display;if(!(rn(y,h)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=h.shiftKey,mu(E,h)){w||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!fd(y,h)){var S=Sl(y,h),K=Cr(h),Z=S?DA(S,K):"single";Tt(y).focus(),K==1&&y.state.selectingText&&y.state.selectingText(h),!(S&&mf(y,K,S,Z,h))&&(K==1?S?Gh(y,S,Z,h):Fr(h)==E.scroller&&ur(h):K==2?(S&&dc(y.doc,S),setTimeout(function(){return E.input.focus()},20)):K==3&&(me?y.display.input.onContextMenu(h):oh(y)))}}}function mf(h,y,E,S,K){var Z="Click";return S=="double"?Z="Double"+Z:S=="triple"&&(Z="Triple"+Z),Z=(y==1?"Left":y==2?"Middle":"Right")+Z,Bu(h,Zo(Z,K),K,function(he){if(typeof he=="string"&&(he=pa[he]),!he)return!1;var Ce=!1;try{h.isReadOnly()&&(h.state.suppressEdits=!0),Ce=he(h,E)!=vt}finally{h.state.suppressEdits=!1}return Ce})}function tl(h,y,E){var S=h.getOption("configureMouse"),K=S?S(h,y,E):{};if(K.unit==null){var Z=re?E.shiftKey&&E.metaKey:E.altKey;K.unit=Z?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(K.extend==null||h.doc.extend)&&(K.extend=h.doc.extend||E.shiftKey),K.addNew==null&&(K.addNew=H?E.metaKey:E.ctrlKey),K.moveOnDrag==null&&(K.moveOnDrag=!(H?E.altKey:E.ctrlKey)),K}function Gh(h,y,E,S){f?setTimeout(It(sA,h),0):h.curOp.focus=Je(Dt(h));var K=tl(h,E,S),Z=h.doc.sel,he;h.options.dragDrop&&Ei&&!h.isReadOnly()&&E=="single"&&(he=Z.contains(y))>-1&&(ir((he=Z.ranges[he]).from(),y)<0||y.xRel>0)&&(ir(he.to(),y)>0||y.xRel<0)?Pd(h,S,y,K):jh(h,S,y,K)}function Pd(h,y,E,S){var K=h.display,Z=!1,he=Do(h,function(Ue){w&&(K.scroller.draggable=!1),h.state.draggingText=!1,h.state.delayingBlurEvent&&(h.hasFocus()?h.state.delayingBlurEvent=!1:oh(h)),Bt(K.wrapper.ownerDocument,"mouseup",he),Bt(K.wrapper.ownerDocument,"mousemove",Ce),Bt(K.scroller,"dragstart",ke),Bt(K.scro Line truncated
`)==y){if(S.ranges.length%cA.text.length==0){Ue=[];for(var mt=0;mt<cA.text.length;mt++)Ue.push(Z.splitLines(cA.text[mt]))}}else ke.length==S.ranges.length&&h.options.pasteLinesPerSelection&&(Ue=Sn(ke,function(Zn){return[Zn]}));for(var Et=h.curOp.updateInput,Xt=S.ranges.length-1;Xt>=0;Xt--){var Qt=S.ranges[Xt],Cn=Qt.from(),On=Qt.to();Qt.empty()&&(E&&E>0?Cn=ln(Cn.line,Cn.ch-E):h.state.overwrite&&!Ce?On=ln(On.line,Math.min(wr(Z,On.line).text.length,On.ch+Jn(ke).length)):Ce&&cA&&cA.lineWise&&cA.text.join(`
`)==ke.join(`
`)&&(Cn=On=ln(Cn.line,0)));var er={from:Cn,to:On,text:Ue?Ue[Xt%Ue.length]:ke,origin:K||(Ce?"paste":h.state.cutIncoming>he?"cut":"+input")};Kc(h.doc,er),Ls(h,"inputRead",h,er)}y&&!Ce&&Fd(h,y),_s(h),h.curOp.updateInput<2&&(h.curOp.updateInput=Et),h.curOp.typing=!0,h.state.pasteIncoming=h.state.cutIncoming=-1}function gc(h,y){var E=h.clipboardData&&h.clipboardData.getData("Text");if(E)return h.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&y.hasFocus()&&Qs(y,function(){return Kd(y,E,0,null,"paste")}),!0}function Fd(h,y){if(!(!h.options.electricChars||!h.options.smartIndent))for(var E=h.doc.sel,S=E.ranges.length-1;S>=0;S--){var K=E.ranges[S];if(!(K.head.ch>100||S&&E.ranges[S-1].head.line==K.head.line)){var Z=h.getModeAt(K.head),he=!1;if(Z.electricChars){for(var Ce=0;Ce<Z.electricChars.length;Ce++)if(y.indexOf(Z.electricChars.charAt(Ce))>-1){he=Dd(h,K.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(wr(h.doc,K.head.line).text.slice(0,K.head.ch))&&(he=Dd(h,K.head.line,"smart"));he&&Ls(h,"electricInput",h,K.head.line)}}}function yf(h){for(var y=[],E=[],S=0;S<h.doc.sel.ranges.length;S++){var K=h.doc.sel.ranges[S].head.line,Z={anchor:ln(K,0),head:ln(K+1,0)};E.push(Z),y.push(h.getRange(Z.anchor,Z.head))}return{text:y,ranges:E}}function vf(h,y,E,S){h.setAttribute("autocorrect",E?"on":"off"),h.setAttribute("autocapitalize",S?"on":"off"),h.setAttribute("spellcheck",!!y)}function md(){var h=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),y=be("div",[h],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return w?h.style.width="1000px":h.setAttribute("wrap","off"),$&&(h.style.border="1px solid black"),y}function gh(h){var y=h.optionHandlers,E=h.helpers={};h.prototype={constructor:h,focus:function(){Tt(this).focus(),this.display.input.focus()},setOption:function(S,K){var Z=this.options,he=Z[S];Z[S]==K&&S!="mode"||(Z[S]=K,y.hasOwnProperty(S)&&Do(this,y[S])(this,K,he),rt(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,K){this.state.keyMaps[K?"push":"unshift"](Xo(S))},removeKeyMap:function(S){for(var K=this.state.keyMaps,Z=0;Z<K.length;++Z)if(K[Z]==S||K[Z].name==S)return K.splice(Z,1),!0},addOverlay:di(function(S,K){var Z=S.token?S:h.getMode(this.options,S);if(Z.startState)throw new Error("Overlays may not be stateful.");Mn(this.state.overlays,{mode:Z,modeSpec:S,opaque:K&&K.opaque,priority:K&&K.priority||0},function(he){return he.priority}),this.state.modeGen++,Ja(this)}),removeOverlay:di(function(S){for(var K=this.state.overlays,Z=0;Z<K.length;++Z){var he=K[Z].modeSpec;if(he==S||typeof S=="string"&&he.name==S){K.splice(Z,1),this.state.modeGen++,Ja(this);return}}}),indentLine:di(function(S,K,Z){typeof K!="string"&&typeof K!="number"&&(K==null?K=this.options.smartIndent?"smart":"prev":K=K?"add":"subtract"),mn(this.doc,S)&&Dd(this,S,K,Z)}),indentSelection:di(function(S){for(var K=this.doc.sel.ranges,Z=-1,he=0;he<K.length;he++){var Ce=K[he];if(Ce.empty())Ce.head.line>Z&&(Dd(this,Ce.head.line,S,!0),Z=Ce.head.line,he==this.doc.sel.primIndex&&_s(this));else{var ke=Ce.from(),Ue=Ce.to(),mt=Math.max(Z,ke.line);Z=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var Et=mt;Et<Z;++Et)Dd(this,Et,S);var Xt=this.doc.sel.ranges;ke.ch==0&&K.length==Xt.length&&Xt[he].from().ch>0&&Rr(this.doc,he,new Yi(ke,Xt[he].to()),Ot)}}}),getTokenAt:function(S,K){return Al(this,S,K)},getLineTokens:function(S,K){return Al(this,ln(S),K,!0)},getTokenTypeAt:function(S){S=vi(this.doc,S);var K=xa(this,wr(this.doc,S.line)),Z=0,he=(K.length-1)/2,Ce=S.ch,ke;if(Ce==0)ke=K[2];else for(;;){var Ue=Z+he>>1;if((Ue?K[Ue*2-1]:0)>=Ce)he=Ue;else if(K[Ue*2+1]<Ce)Z=Ue+1;else{ke=K[Ue*2+2];break}}var mt=ke?ke.indexOf("overlay "):-1;return mt<0?ke:mt==0?null:ke.slice(0,mt-1)},getModeAt:function(S){var K=this.doc.mode;return K.innerMode?h.innerMode(K,this.getTokenAt(S).state).mode:K},getHelper:function(S,K){return this.getHelpers(S,K)[0]},getHelpers:function(S,K){var Z=[];if(!E.hasOwnProperty(K))return Z;var he=E[K],Ce=this.getModeAt(S);if(typeof Ce[K]=="string")he[Ce[K]]&&Z.push(he[Ce[K]]);else if(Ce[K])for(var ke=0;ke<Ce[K].length;ke++){var Ue=he[Ce[K][ke]];Ue&&Z.push(Ue)}else Ce.helperType&&he[Ce.helperType]?Z.push(he[Ce.helperType]):he[Ce.name]&&Z.push(he[Ce.name]);for(var mt=0;mt<he._global.length;mt++){var Et=he._global[mt];Et.pred(Ce,this)&&$e(Z,Et.val)==-1&&Z.push(Et.val)}return Z},getStateAfter:function(S,K){var Z=this.doc;return S=xA(Z,S??Z.first+Z.size-1),mi(this,S+1,K).state},cursorCoords:function(S,K){var Z,he=this.doc.sel.primary();return S==null?Z=he.head:typeof S=="object"?Z=vi(this.doc,S):Z=S?he.from():he.to(),An(this,Z,K||"page")},charCoords:function(S,K){return bn(this,vi(this.doc,S),K||"page")},coordsChar:function(S,K){return S=Zt(this,S,K||"page"),Po(this,S.left,S.top)},lineAtHeight:function(S,K){return S=Zt(this,{top:S,left:0},K||"page").top,St( Line truncated
`,er=Ge(On,Qt)?"w":Xt&&On==`
`?"n":!Xt||/\s/.test(On)?null:"p";if(Xt&&!Cn&&!er&&(er="s"),Et&&Et!=er){E<0&&(E=1,mt(),y.sticky="after");break}if(er&&(Et=er),E>0&&!mt(!Cn))break}var Zn=Ms(h,y,Z,he,!0);return ji(Z,Zn)&&(Zn.hitSide=!0),Zn}function Cf(h,y,E,S){var K=h.doc,Z=y.left,he;if(S=="page"){var Ce=Math.min(h.display.wrapper.clientHeight,Tt(h).innerHeight||K(h).documentElement.clientHeight),ke=Math.max(Ce-.5*Xa(h.display),3);he=(E>0?y.bottom:y.top)+E*ke}else S=="line"&&(he=E>0?y.bottom+3:y.top-3);for(var Ue;Ue=Po(h,Z,he),!!Ue.outside;){if(E<0?he<=0:he>=K.height){Ue.hitSide=!0;break}he+=E*5}return Ue}var Go=function(h){this.cm=h,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Go.prototype.init=function(h){var y=this,E=this,S=E.cm,K=E.div=h.lineDiv;K.contentEditable=!0,vf(K,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function Z(Ce){for(var ke=Ce.target;ke;ke=ke.parentNode){if(ke==K)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}ft(K,"paste",function(Ce){!Z(Ce)||rn(S,Ce)||gc(Ce,S)||C<=11&&setTimeout(Do(S,function(){return y.updateFromDOM()}),20)}),ft(K,"compositionstart",function(Ce){y.composing={data:Ce.data,done:!1}}),ft(K,"compositionupdate",function(Ce){y.composing||(y.composing={data:Ce.data,done:!1})}),ft(K,"compositionend",function(Ce){y.composing&&(Ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),ft(K,"touchstart",function(){return E.forceCompositionEnd()}),ft(K,"input",function(){y.composing||y.readFromDOMSoon()});function he(Ce){if(!(!Z(Ce)||rn(S,Ce))){if(S.somethingSelected())Wh({lineWise:!1,text:S.getSelections()}),Ce.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var ke=yf(S);Wh({lineWise:!0,text:ke.text}),Ce.type=="cut"&&S.operation(function(){S.setSelections(ke.ranges,0,Ot),S.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var Ue=cA.text.join(`
`);if(Ce.clipboardData.setData("Text",Ue),Ce.clipboardData.getData("Text")==Ue){Ce.preventDefault();return}}var mt=md(),Et=mt.firstChild;vf(Et),S.display.lineSpace.insertBefore(mt,S.display.lineSpace.firstChild),Et.value=cA.text.join(`
`);var Xt=Je(pt(K));Ze(Et),setTimeout(function(){S.display.lineSpace.removeChild(mt),Xt.focus(),Xt==K&&E.showPrimarySelection()},50)}}ft(K,"copy",he),ft(K,"cut",he)},Go.prototype.screenReaderLabelChanged=function(h){h?this.div.setAttribute("aria-label",h):this.div.removeAttribute("aria-label")},Go.prototype.prepareSelection=function(){var h=kh(this.cm,!1);return h.focus=Je(pt(this.div))==this.div,h},Go.prototype.showSelection=function(h,y){!h||!this.cm.display.view.length||((h.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(h))},Go.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Go.prototype.showPrimarySelection=function(){var h=this.getSelection(),y=this.cm,E=y.doc.sel.primary(),S=E.from(),K=E.to();if(y.display.viewTo==y.display.viewFrom||S.line>=y.display.viewTo||K.line<y.display.viewFrom){h.removeAllRanges();return}var Z=nl(y,h.anchorNode,h.anchorOffset),he=nl(y,h.focusNode,h.focusOffset);if(!(Z&&!Z.bad&&he&&!he.bad&&ir(_a(Z,he),S)==0&&ir(xs(Z,he),K)==0)){var Ce=y.display.view,ke=S.line>=y.display.viewFrom&&yh(y,S)||{node:Ce[0].measure.map[2],offset:0},Ue=K.line<y.display.viewTo&&yh(y,K);if(!Ue){var mt=Ce[Ce.length-1].measure,Et=mt.maps?mt.maps[mt.maps.length-1]:mt.map;Ue={node:Et[Et.length-1],offset:Et[Et.length-2]-Et[Et.length-3]}}if(!ke||!Ue){h.removeAllRanges();return}var Xt=h.rangeCount&&h.getRangeAt(0),Qt;try{Qt=_t(ke.node,ke.offset,Ue.offset,Ue.node)}catch{}Qt&&(!i&&y.state.focused?(h.collapse(ke.node,ke.offset),Qt.collapsed||(h.removeAllRanges(),h.addRange(Qt))):(h.removeAllRanges(),h.addRange(Qt)),Xt&&h.anchorNode==null?h.addRange(Xt):i&&this.startGracePeriod()),this.rememberSelection()}},Go.prototype.startGracePeriod=function(){var h=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){h.gracePeriod=!1,h.selectionChanged()&&h.cm.operation(function(){return h.cm.curOp.selectionChanged=!0})},20)},Go.prototype.showMultipleSelections=function(h){We(this.cm.display.cursorDiv,h.cursors),We(this.cm.display.selectionDiv,h.selection)},Go.prototype.rememberSelection=function(){var h=this.getSelection();this.lastAnchorNode=h.anchorNode,this.lastAnchorOffset=h.anchorOffset,this.lastFocusNode=h.focusNode,this.lastFocusOffset=h.focusOffset},Go.prototype.selectionInEditor=function(){var h=this.getSelection();if(!h.rangeCount)return!1;var y=h.getRangeAt(0).commonAncestorContainer;return at(this.div,y)},Go.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Je(pt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Go.prototype.blur=function(){this.div.blur()},Go.prototype.getField=function(){return this.div},Go.prototype.supportsTouch=function(){return!0},Go.prototype.receivedFocus=function(){var h=this,y=this;this.selectionInEditor()?setTimeout(function(){return h.pollSelection()},20):Qs(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function E(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,E))}this.polling.set(this.cm.options.pollInterval,E)},Go.prototype.selectionChanged=function(){var h=this.getSelection();return h.anchorNode!=this.lastAnchorNode||h.anchorOffset!=this.lastAnchorOffset||h.focusNode!=this.lastFocusNode||h.focusOffset!=this.lastFocusOffset},Go.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var h=this.getSelection(),y=this.cm;if(oe&&D&&this.cm.display.gutterSpecs.length&&_f(h.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=nl(y,h.anchorNode,h.anchorOffset),S=nl(y,h.focusNode,h.focusOffset);E&&S&&Qs(y,function(){zo(y.doc,Ta(E,S),Ot),(E.bad||S.bad)&&(y.curOp.selectionChanged=!0)})}}},Go.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var h=this.cm,y=h.display,E=h.doc.sel.primary(),S=E.from(),K=E.to();if(S.ch==0&&S.line>h.firstLine()&&(S=ln(S.line-1,wr(h.doc,S.line-1).length)),K.ch==wr(h.doc,K.line).text.length&&K.line<h.lastLine()&&(K=ln(K.line+1,0)),S.line<y.viewFrom||K.line>y.viewTo-1)return!1;var Z,he,Ce;S.line==y.viewFrom||(Z=VA(h,S.line))==0?(he=Qe(y.view[0].line),Ce=y.view[0].node):(he=Qe(y.view[Z].line),Ce=y.view[Z-1].node.nextSibling);var ke=VA(h,K.line),Ue,mt;if(ke==y.view.length-1?(Ue=y.viewTo-1,mt=y.lineDiv.lastChild):(Ue=Qe(y.view[ke+1].line)-1,mt=y.view[ke+1].node.previousSibling),!Ce)return!1;for(var Et=h.doc.splitLines(KA(h,Ce,mt,he,Ue)),Xt=ua(h.doc,ln(he,0),ln(Ue,wr(h.doc,Ue).text.length));Et.length>1&&Xt.length>1;)if(Jn(Et)==Jn(Xt))Et.pop(),Xt.pop(),Ue--;else if(Et[0]==Xt[0])Et.shift(),Xt.shift(),he++;else break;for(var Qt=0,Cn=0,On=Et[0],er=Xt[0],Zn=Math.min(On.length,er.length);Qt<Zn&&On.charCodeAt(Qt)==er.charCodeAt(Qt);)++Qt;for(var fr=Jn(Et),or=Jn(Xt),Ir=Math.min(fr.length-(Et.length==1?Qt:0),or.length-(Xt. Line truncated
`),Ze(K))}else return;he.type=="cut"&&(S.state.cutIncoming=+new Date)}}ft(K,"cut",Z),ft(K,"copy",Z),ft(h.scroller,"paste",function(he){if(!(mu(h,he)||rn(S,he))){if(!K.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var Ce=new Event("paste");Ce.clipboardData=he.clipboardData,K.dispatchEvent(Ce)}}),ft(h.lineSpace,"selectstart",function(he){mu(h,he)||ur(he)}),ft(K,"compositionstart",function(){var he=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:he,range:S.markText(he,S.getCursor("to"),{className:"CodeMirror-composing"})}}),ft(K,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Da.prototype.createField=function(h){this.wrapper=md(),this.textarea=this.wrapper.firstChild;var y=this.cm.options;vf(this.textarea,y.spellcheck,y.autocorrect,y.autocapitalize)},Da.prototype.screenReaderLabelChanged=function(h){h?this.textarea.setAttribute("aria-label",h):this.textarea.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var h=this.cm,y=h.display,E=h.doc,S=kh(h);if(h.options.moveInputWithCursor){var K=An(h,E.sel.primary().head,"div"),Z=y.wrapper.getBoundingClientRect(),he=y.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,K.top+he.top-Z.top)),S.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,K.left+he.left-Z.left))}return S},Da.prototype.showSelection=function(h){var y=this.cm,E=y.display;We(E.cursorDiv,h.cursors),We(E.selectionDiv,h.selection),h.teTop!=null&&(this.wrapper.style.top=h.teTop+"px",this.wrapper.style.left=h.teLeft+"px")},Da.prototype.reset=function(h){if(!(this.contextMenuPending||this.composing&&h)){var y=this.cm;if(this.resetting=!0,y.somethingSelected()){this.prevInput="";var E=y.getSelection();this.textarea.value=E,y.state.focused&&Ze(this.textarea),f&&C>=9&&(this.hasSelection=E)}else h||(this.prevInput=this.textarea.value="",f&&C>=9&&(this.hasSelection=null));this.resetting=!1}},Da.prototype.getField=function(){return this.textarea},Da.prototype.supportsTouch=function(){return!1},Da.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||Je(pt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Da.prototype.blur=function(){this.textarea.blur()},Da.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Da.prototype.receivedFocus=function(){this.slowPoll()},Da.prototype.slowPoll=function(){var h=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){h.poll(),h.cm.state.focused&&h.slowPoll()})},Da.prototype.fastPoll=function(){var h=!1,y=this;y.pollingFast=!0;function E(){var S=y.poll();!S&&!h?(h=!0,y.polling.set(60,E)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,E)},Da.prototype.poll=function(){var h=this,y=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!y.state.focused||qn(E)&&!S&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var K=E.value;if(K==S&&!y.somethingSelected())return!1;if(f&&C>=9&&this.hasSelection===K||H&&/[\uf700-\uf7ff]/.test(K))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var Z=K.charCodeAt(0);if(Z==8203&&!S&&(S="​"),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var he=0,Ce=Math.min(S.length,K.length);he<Ce&&S.charCodeAt(he)==K.charCodeAt(he);)++he;return Qs(y,function(){Kd(y,K.slice(he),S.length-he,null,h.composing?"*compose":null),K.length>1e3||K.indexOf(`
`)>-1?E.value=h.prevInput="":h.prevInput=K,h.composing&&(h.composing.range.clear(),h.composing.range=y.markText(h.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Da.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Da.prototype.onKeyPress=function(){f&&C>=9&&(this.hasSelection=null),this.fastPoll()},Da.prototype.onContextMenu=function(h){var y=this,E=y.cm,S=E.display,K=y.textarea;y.contextMenuPending&&y.contextMenuPending();var Z=Sl(E,h),he=S.scroller.scrollTop;if(!Z||U)return;var Ce=E.options.resetSelectionOnContextMenu;Ce&&E.doc.sel.contains(Z)==-1&&Do(E,zo)(E.doc,Ta(Z),Ot);var ke=K.style.cssText,Ue=y.wrapper.style.cssText,mt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",K.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(h.clientY-mt.top-5)+"px; left: "+(h.clientX-mt.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Et;w&&(Et=K.ownerDocument.defaultView.scrollY),S.input.focus(),w&&K.ownerDocument.defaultView.scrollTo(null,Et),S.input.reset(),E.somethingSelected()||(K.value=y.prevInput=" "),y.contextMenuPending=Qt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function Xt(){if(K.selectionStart!=null){var On=E.somethingSelected(),er="​"+(On?K.value:"");K.value="⇚",K.value=er,y.prevInput=On?"":"​",K.selectionStart=1,K.selectionEnd=er.length,S.selForContextMenu=E.doc.sel}}function Qt(){if(y.contextMenuPending==Qt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Ue,K.style.cssText=ke,f&&C<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=he),K.selectionStart!=null)){(!f||f&&C<9)&&Xt();var On=0,er=function(){S.selForContextMenu==E.doc.sel&&K.selectionStart==0&&K.selectionEnd>0&&y.prevInput=="​"?Do(E,ml)(E):On++<10?S.detectingSelectAll=setTimeout(er,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(er,200)}}if(f&&C>=9&&Xt(),me){ci(h);var Cn=function(){Bt(window,"mouseup",Cn),setTimeout(Qt,20)};ft(window,"mouseup",Cn)}else setTimeout(Qt,50)},Da.prototype.readOnlyChanged=function(h){h||this.reset(),this.textarea.disabled=h=="nocursor",this.textarea.readOnly=!!h},Da.prototype.setUneditable=function(){},Da.prototype.needsContentAttribute=!1;function Gp(h,y){if(y=y?Le(y):{},y.value=h.value,!y.tabindex&&h.tabIndex&&(y.tabindex=h.tabIndex),!y.placeholder&&h.placeholder&&(y.placeholder=h.placeholder),y.autofocus==null){var E=Je(pt(h));y.autofocus=E==h||h.getAttribute("autofocus")!=null&&E==document.body}function S(){h.value=Ce.getValue()}var K;if(h.form&&(ft(h.form,"submit",S),!y.leaveSubmitMethodAlone)){var Z=h.form;K=Z.submit;try{var he=Z.submit=function(){S(),Z.submit=K,Z.submit(),Z.submit=he}}catch{}}y.finishInit=function(ke){ke.save=S,ke.getTextArea=function(){return h},ke.toTextArea=function(){ke.toTextArea=isNaN,S(),h.parentNode.removeChild(ke.getWrapperElement()),h.style.display="",h.form&&(Bt(h.form,"submit",S),!y.leaveSubmitMethodAlone&&typeof h.form.submit=="function"&&(h.form.submit=K))}},h.style.display="none";var Ce=Yo(function(ke){return h.parentNode.insertBefore(ke,h.nextSibling)},y);return Ce}function Xf(h){h.off=Bt,h.on=ft,h.wheelEventPixels=ch,h.Doc=it,h.splitLines=Bs,h.countColumn=Re,h.findColumn=un,h.isWordChar=Dn,h.Pass=vt,h.signal=rt,h.Line=Oa,h.changeEnd=wa,h.scrollbarModel=Fh,h.Pos=ln,h.cmpPos=ir,h.modes=la,h.mimeModes=is,h.resolveMode=Aa,h.getMode=Wo,h.modeExtensions=Fs,h.extendMode=bl,h.copyState=ni,h.startState=Os,h.innerMode=bA,h.commands=pa,h.keyMap=Ln,h.keyName=Ko,h.isModifierKey=xo,h.lookupKey=ai,h.normalizeKeyMap=br,h.StringStream=qr,h.SharedTextMarker=ue,h.TextMarker=Y,h.LineWidget=v,h.e_preventDefault=ur,h.e_stopPropagation=yi,h.e_stop=ci,h.addClass=Ne,h.contains=at,h.rmClass=Be,h.keyNames=Vt}kl(Yo),gh(Yo);var hA="iter insert remove copy getEditor constructor".split(" ");for(var Jf in it.prototype)it.prototype.hasOwnProperty(Jf)&&$e(hA,Jf)<0&&(Yo.prototype[Jf]=function(h){return function(){return h.apply(this.doc,arguments)}}(it.prototype[Jf]));return dr(it),Yo.inputStyles={textarea:Da,contenteditable:Go},Yo.defineMode=function(h){!Yo.defaults.mode&&h!="null"&&(Yo.defaults.mode=h),Nr.apply(this,arguments)},Yo.defineMIME=Ha,Yo.defineMode("null",function(){return{token:function(h){return h.skipToEnd()}}}),Yo.defineMIME("text/plain","null"),Yo.defineExtension=function(h,y){Yo.prototype[h]=y},Yo.defineDocExtension=function(h,y){it.prototype[h]=y},Yo.fromTextArea=Gp,Xf(Yo),Yo.version="5.65.20",Yo})}(i2)),i2.exports}var nse=h3();const Sp=zl(nse);var zT={exports:{}},NT;function rse(){return NT||(NT=1,function(n,e){(function(t){t(h3())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,l=i.statementIndent,o=i.jsonld,f=i.json||o,C=i.trackScope!==!1,w=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,D=function(){function Qe(wo){return{type:wo,style:"keyword"}}var St=Qe("keyword a"),mn=Qe("keyword b"),Fn=Qe("keyword c"),ln=Qe("keyword d"),ir=Qe("operator"),ji={type:"atom",style:"atom"};return{if:Qe("if"),while:St,with:St,else:mn,do:mn,try:mn,finally:mn,return:ln,break:ln,continue:ln,new:Qe("new"),delete:Fn,void:Fn,throw:Fn,debugger:Qe("debugger"),var:Qe("var"),const:Qe("var"),let:Qe("var"),function:Qe("function"),catch:Qe("catch"),for:Qe("for"),switch:Qe("switch"),case:Qe("case"),default:Qe("default"),in:ir,typeof:ir,instanceof:ir,true:ji,false:ji,null:ji,undefined:ji,NaN:ji,Infinity:ji,this:Qe("this"),class:Qe("class"),super:Qe("atom"),yield:Fn,export:Qe("export"),import:Qe("import"),extends:Fn,await:Fn}}(),R=/[+\-*&%=<>!?|~^@]/,U=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function G(Qe){for(var St=!1,mn,Fn=!1;(mn=Qe.next())!=null;){if(!St){if(mn=="/"&&!Fn)return;mn=="["?Fn=!0:Fn&&mn=="]"&&(Fn=!1)}St=!St&&mn=="\\"}}var W,J;function $(Qe,St,mn){return W=Qe,J=mn,St}funct Line truncated
${B}`),G].join(`
${o}`)}return C}(n,"",0)}var Jv={exports:{}},ase=Jv.exports,YT;function lse(){return YT||(YT=1,function(n,e){(function(t,r){r(e)})(ase,function(t){const r={isWhiteSpace:function(Ne){return Ne===" "||Ne===" "||Ne==="\uFEFF"||Ne>=" "&&Ne<="\r"||Ne===" "||Ne>=" "&&Ne<=" "||Ne==="\u2028"||Ne==="\u2029"||Ne===" "||Ne===" "||Ne===" "},isWhiteSpaceJSON:function(Ne){return Ne===" "||Ne===" "||Ne===`
`||Ne==="\r"},isLineTerminator:function(Ne){return Ne===`
`||Ne==="\r"||Ne==="\u2028"||Ne==="\u2029"},isLineTerminatorJSON:function(Ne){return Ne===`
`||Ne==="\r"},isIdentifierStart:function(Ne){return Ne==="$"||Ne==="_"||Ne>="A"&&Ne<="Z"||Ne>="a"&&Ne<="z"||Ne>="€"&&r.NonAsciiIdentifierStart.test(Ne)},isIdentifierPart:function(Ne){return Ne==="$"||Ne==="_"||Ne>="A"&&Ne<="Z"||Ne>="a"&&Ne<="z"||Ne>="0"&&Ne<="9"||Ne>="€"&&r.NonAsciiIdentifierPart.test(Ne)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
`,r:"\r",t:" ",v:"\v","/":"/"},C=Object.hasOwn,w={};function B(Je,Ne){(typeof Je!="string"||!(Je instanceof String))&&(Je=String(Je));const Te=Ne.mode==="json5",Ze=Ne.ignoreBOM,gt=Ne.ignoreComments||Ne.mode==="cjson"||Te,Dt=Ne.ignoreTrailingCommas||Te,pt=Ne.ignoreProtoKey,Tt=Ne.ignorePrototypeKeys,It=Ne.allowSingleQuotedStrings||Te,Le=Ne.allowDuplicateObjectKeys,Re=Ne.reviver,Ke=Ne.tokenize,$e=Ne.rawTokens,bt=Ne.tokenLocations,vt=Ne.tokenPaths,Ot=Te?r.isLineTerminator:r.isLineTerminatorJSON,$t=Te?r.isWhiteSpace:r.isWhiteSpaceJSON,Kt=Je.length;let un=0,$n=0,Wt=0;const Jn=[];let Sn,Mn,En;if(Ke){let ut=null,Bt,rt;Sn=function(){if(ut!==null)throw Error("internal error, token overlap");Bt=un+1,rt=Wt-$n+1,ut=Wt},Mn=function(rn,Wn){if(ut!==Wt){const xn={type:rn};$e&&(xn.raw=Je.substr(ut,Wt-ut)),Wn!==void 0&&(xn.value=Wn),bt&&(xn.location={start:{column:rt,line:Bt,offset:ut}}),vt&&(xn.path=En.slice()),Jn.push(xn)}return ut=null,Wn},vt&&(En=[])}function Er(){let ut;return Wt<Kt?ut=`Unexpected token ${JSON.stringify(Je[Wt])}`:ut="Unexpected end of input",ut}function Yn(ut){const Bt=Wt-$n+1;++un;const rt=xe(ut,Je,Wt,un,Bt),rn=SyntaxError(rt.message);return rn.reason=ut,rn.excerpt=rt.excerpt,rn.pointer=rt.pointer,rn.location={start:{column:Bt,line:un,offset:Wt}},rn}function Dn(ut){throw ut||(ut=Er()),Yn(ut)}function Ge(ut){ut==="\r"&&Je[Wt]===`
`&&++Wt,$n=Wt,++un}function de(){if(Wt<Kt){Sn?.();const ut=Je[Wt++];if(ut==='"'||ut==="'"&&It){const Bt=m(ut);return Mn?.("literal",Bt),Bt}if(ut==="{")return Mn?.("symbol","{"),ht();if(ut==="[")return Mn?.("symbol","["),Ve();if(ut==="-"||ut==="."||l(ut)||Te&&(ut==="+"||ut==="I"||ut==="N")){const Bt=Pe();return Mn?.("literal",Bt),Bt}if(ut==="n")return je("null"),Mn?.("literal",null),null;if(ut==="t")return je("true"),Mn?.("literal",!0),!0;if(ut==="f")return je("false"),Mn?.("literal",!1),!1;--Wt,Mn?.();return}}function ie(){let ut;if(Wt<Kt){Sn?.();const Bt=Je[Wt++];if(Bt==='"'||Bt==="'"&&It){const rt=m(Bt);return Mn?.("literal",rt),rt}if(Bt==="{")return Mn?.("symbol","{"),ht();if(Bt==="[")return Mn?.("symbol","["),Ve();if(Bt==="."||l(Bt)){const rt=Pe();return Mn?.("literal",rt),rt}if(Te&&r.isIdentifierStart(Bt)||Bt==="\\"&&Je[Wt]==="u"){const rt=Wt-1;if(ut=He(),ut===void 0){Wt=rt,Mn?.();return}return Mn?.("literal",ut),ut}--Wt,Mn?.();return}}function se(){o(Je)&&(Sn?.(),++Wt,Mn?.("bom"))}function fe(){let ut;function Bt(){ut||(ut=!0,--Wt,Sn(),++Wt)}function rt(){ut&&(ut=!1,Mn("whitespace"))}for(;Wt<Kt;){const rn=Je[Wt++];if(Ot(rn))Sn&&Bt(),Ge(rn);else if($t(rn))Sn&&Bt();else if(rn==="/"&&gt&&(Je[Wt]==="/"||Je[Wt]==="*"))Sn&&(--Wt,rt(),Sn(),++Wt),Ie(Je[Wt++]==="*"),Mn?.("comment");else{--Wt;break}}Mn&&rt()}function Ie(ut){for(;Wt<Kt;){const Bt=Je[Wt++];if(Ot(Bt)){if(!ut){--Wt;return}Ge(Bt)}else if(Bt==="*"&&ut&&Je[Wt]==="/"){++Wt;return}}ut&&Dn("Unclosed multiline comment")}function je(ut){const Bt=Wt;for(let rt=1,rn=ut.length;rt<rn;++rt)(Wt>=Kt||ut[rt]!==Je[Wt])&&(Wt=Bt-1,Dn()),++Wt}function ht(){let ut={},Bt=!1;for(;Wt<Kt;){fe();const rt=ie();Le===!1&&C(ut,rt)&&Dn(`Duplicate key: "${rt}"`),fe(),Sn?.();let rn=Je[Wt++];if(Mn?.("symbol",rn),rn==="}"&&rt===void 0)return!Dt&&Bt&&(--Wt,Dn("Trailing comma in object")),ut;if(rn===":"&&rt!==void 0){fe(),En?.push(rt);let Wn=de();if(En?.pop(),Wn===void 0&&Dn(`No value found for key "${rt}"`),typeof rt!="string"&&(!Te||typeof rt!="number")&&Dn(`Wrong key type: "${rt}"`),Tt&&(rt in w||w[rt]!=null)||pt&&rt==="__proto__"||(Re&&(Wn=Re(rt,Wn)),Wn!==void 0&&(Bt=!0,rt==="__proto__"?ut=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Wn)}}`),ut):ut[rt]=Wn)),fe(),Sn?.(),rn=Je[Wt++],Mn?.("symbol",rn),rn!==","){if(rn==="}")return ut;Dn()}}else--Wt,Dn()}Dn()}function Ve(){const ut=[];for(;Wt<Kt;){fe(),En?.push(ut.length);let Bt=de();En?.pop(),fe(),Sn?.();const rt=Je[Wt++];if(Mn?.("symbol",rt),Bt!==void 0&&(Re&&(Bt=Re(String(ut.length),Bt)),Bt===void 0?(++ut.length,Bt=!0):ut.push(Bt)),rt===",")Bt===void 0&&Dn("Elisions are not supported");else{if(rt==="]")return!Dt&&Bt===void 0&&ut.length&&(--Wt,Dn("Trailing comma in array")),ut;--Wt,Dn()}}}function Pe(){--Wt;let ut=Wt,Bt=Je[Wt++];const rt=function(rn){const Wn=Je.substr(ut,Wt-ut);let xn;if(rn?xn=Number.parseInt(Wn.replace(/^0o?/,""),8):xn=Number(Wn),Number.isNaN(xn))--Wt,Dn(`Bad numeric literal - "${Je.substr(ut,Wt-ut+1)}"`);else if(!Te&&!Wn.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Wt,Dn(`Non-json numeric literal - "${Je.substr(ut,Wt-ut+1)}"`);else return xn};if((Bt==="-"||Bt==="+"&&Te)&&(Bt=Je[Wt++]),Bt==="N"&&Te)return je("NaN"),Number.NaN;if(Bt==="I"&&Te)return je("Infinity"),rt();if(Bt>="1"&&Bt<="9"){for(;Wt<Kt&&l(Je[Wt]);)++Wt;Bt=Je[Wt++]}if(Bt==="0"){Bt=Je[Wt++];const rn=Bt==="o"||Bt==="O"||s(Bt),Wn=Bt==="x"||Bt==="X";if(Te&&(rn||Wn)){for(;Wt<Kt&&(Wn?i:s)(Je[Wt]);)++Wt;let xn=1;return Je[ut]==="-"?(xn=-1,++ut):Je[ut]==="+"&&++ut,xn*rt(rn)}}if(Bt==="."){for(;Wt<Kt&&l(Je[Wt]);)++Wt;Bt=Je[Wt++]}if(Bt==="e"||Bt==="E"){for(Bt=Je[Wt++],(Bt==="-"||Bt==="+")&&++Wt;Wt<Kt&&l(Je[Wt]);)++Wt;Bt=Je[Wt++]}return--Wt,rt()}function He(){--Wt;let ut="";for(;Wt<Kt;){let Bt=Je[Wt++];if(Bt==="\\"&&Je[Wt]==="u"&&i(Je[Wt+1])&&i(Je[Wt+2])&&i(Je[Wt+3])&&i(Je[Wt+4])&&(Bt=String.fromCharCode(Number.parseInt(Je.substr(Wt+1,4),16)),Wt+=5),ut.length)if(r.isIdentifierPart(Bt))ut+=Bt;else return--Wt,ut;else if(r.isIdentifierStart(Bt))ut+=Bt;else return}Dn()}function m(ut){let Bt="";for(;Wt<Kt;){let rt=Je[Wt++];if(rt===ut)return Bt;if(rt==="\\")if(Wt>=Kt&&Dn(),rt=Je[Wt++],f[rt]&&(Te||rt!=="v"&&(rt!=="'"||It)))Bt+=f[rt];else if(Te&&Ot(rt))Ge(rt);else if(rt==="u"||rt==="x"&&Te){const rn=rt==="u"?4:2;for(let Wn=0;Wn<rn;++Wn)Wt>=Kt&&Dn(),i(Je[Wt])||Dn("Bad escape sequence"),Wt++;Bt+=String.fromCharCode(Number.parseInt(Je.substr(Wt-rn,rn),16))}else if(Te&&s(rt)){let rn;rt<"4"&&s(Je[Wt])&&s(Je[Wt+1])?rn=3:s(Je[Wt])?rn=2:rn=1,Wt+=rn-1,Bt+=String.fromCharCode(Number.parseInt(Je.substr(Wt-rn,rn),8))}else Te?Bt+=rt:(--Wt,Dn());else Ot(rt)?Dn():(!Te&&rt.charCodeAt(0)<32&&(--Wt,Dn("Unexpected control character")),Bt+=rt)}Dn()}Ze&&se(),fe();let ft=de();if(ft!==void 0||Wt<Kt){if(fe(),Wt>=Kt)return Re&&(ft=Re("",ft)),Ke?Jn:ft;Dn()}else Dn(Wt?"No data, only a whitespace":"No data, empty input")}function D(Je,Ne){return typeof Ne=="function"?Ne={reviver:Ne}:Ne||(Ne={}),B(Je,Ne)}function R(Je,Ne){Ne||(Ne={});const Te=Ne.tokenize;Ne.tokenize=!0;const Line truncated
${pt}
${It}
${Je}`):Tt=`Parse error in JSON input:
${pt}
${Je}`,{message:Tt,excerpt:pt,pointer:It}}function Be(Je,Ne){let Te=j(Ne);const Ze=Ae(Je,Te)||ge(Je,Te)||me(Je,Te);let gt,Dt,pt;Ze?(gt=Ze.offset,Dt=Ze.line,pt=Ze.column,Te=Ze.reason):gt=0,Ne.reason=Te;const Tt=xe(Te,Je,gt,Dt,pt);return Ne.message=Tt.message,Ne.excerpt=Tt.excerpt,Tt.pointer&&(Ne.pointer=Tt.pointer,Ne.location={start:{column:pt,line:Dt,offset:gt}}),Ne}function Me(Je,Ne){try{return JSON.parse(Je,Ne)}catch(Te){const Ze=Be(Je,Te);if(Te.location)throw Ze;return D(Je,Ne)}}const We=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),be=typeof process<"u"&&process.version.startsWith("v4.");function nt(Je){return Je.ignoreBOM||Je.ignoreComments||Je.ignoreTrailingCommas||Je.allowSingleQuotedStrings||Je.allowDuplicateObjectKeys===!1||Je.ignoreProtoKey||Je.ignorePrototypeKeys||Je.mode==="cjson"||Je.mode==="json5"||We||be}function _t(Je){if(typeof Je=="function")return Je;if(Je)return Je.reviver}function at(Je,Ne){return Ne||(Ne={}),nt(Ne)?D(Je,Ne):Me(Je,_t(Ne))}t.parse=at,t.tokenize=R,t.pathToPointer=G,t.pointerToPath=J,t.parseNative=Me,t.parseCustom=D,t.getErrorTexts=xe,Object.defineProperty(t,"__esModule",{value:!0})})}(Jv,Jv.exports)),Jv.exports}var Ase=lse(),o2={exports:{}},use=o2.exports,qT;function cse(){return qT||(qT=1,function(n,e){(function(t,r){n.exports=r()})(use,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Re,Ke){return Ke={exports:{}},Re(Ke,Ke.exports),Ke.exports}var i=r(function(Re){function Ke(){var $e=0,bt=1,vt=2,Ot=3,$t=4,Kt=5,un=6,$n=7,Wt=8,Jn=9,Sn=10,Mn=11,En=12,Er=13,Yn=14,Dn=15,Ge=16,de=17,ie=0,se=1,fe=2,Ie=3,je=4;function ht(m,ft){return 55296<=m.charCodeAt(ft)&&m.charCodeAt(ft)<=56319&&56320<=m.charCodeAt(ft+1)&&m.charCodeAt(ft+1)<=57343}function Ve(m,ft){ft===void 0&&(ft=0);var ut=m.charCodeAt(ft);if(55296<=ut&&ut<=56319&&ft<m.length-1){var Bt=ut,rt=m.charCodeAt(ft+1);return 56320<=rt&&rt<=57343?(Bt-55296)*1024+(rt-56320)+65536:Bt}if(56320<=ut&&ut<=57343&&ft>=1){var Bt=m.charCodeAt(ft-1),rt=ut;return 55296<=Bt&&Bt<=56319?(Bt-55296)*1024+(rt-56320)+65536:rt}return ut}function Pe(m,ft,ut){var Bt=[m].concat(ft).concat([ut]),rt=Bt[Bt.length-2],rn=ut,Wn=Bt.lastIndexOf(Yn);if(Wn>1&&Bt.slice(1,Wn).every(function(ur){return ur==Ot})&&[Ot,Er,de].indexOf(m)==-1)return fe;var xn=Bt.lastIndexOf($t);if(xn>0&&Bt.slice(1,xn).every(function(ur){return ur==$t})&&[En,$t].indexOf(rt)==-1)return Bt.filter(function(ur){return ur==$t}).length%2==1?Ie:je;if(rt==$e&&rn==bt)return ie;if(rt==vt||rt==$e||rt==bt)return rn==Yn&&ft.every(function(ur){return ur==Ot})?fe:se;if(rn==vt||rn==$e||rn==bt)return se;if(rt==un&&(rn==un||rn==$n||rn==Jn||rn==Sn))return ie;if((rt==Jn||rt==$n)&&(rn==$n||rn==Wt))return ie;if((rt==Sn||rt==Wt)&&rn==Wt)return ie;if(rn==Ot||rn==Dn)return ie;if(rn==Kt)return ie;if(rt==En)return ie;var dr=Bt.indexOf(Ot)!=-1?Bt.lastIndexOf(Ot)-1:Bt.length-2;return[Er,de].indexOf(Bt[dr])!=-1&&Bt.slice(dr+1,-1).every(function(ur){return ur==Ot})&&rn==Yn||rt==Dn&&[Ge,de].indexOf(rn)!=-1?ie:ft.indexOf($t)!=-1?fe:rt==$t&&rn==$t?ie:se}this.nextBreak=function(m,ft){if(ft===void 0&&(ft=0),ft<0)return 0;if(ft>=m.length-1)return m.length;for(var ut=He(Ve(m,ft)),Bt=[],rt=ft+1;rt<m.length;rt++)if(!ht(m,rt-1)){var rn=He(Ve(m,rt));if(Pe(ut,Bt,rn))return rt;Bt.push(rn)}return m.length},this.splitGraphemes=function(m){for(var ft=[],ut=0,Bt;(Bt=this.nextBreak(m,ut))<m.length;)ft.push(m.slice(ut,Bt)),ut=Bt;return ut<m.length&&ft.push(m.slice(ut)),ft},this.iterateGraphemes=function(m){var ft=0,ut={next:(function(){var Bt,rt;return(rt=this.nextBreak(m,ft))<m.length?(Bt=m.slice(ft,rt),ft=rt,{value:Bt,done:!1}):ft<m.length?(Bt=m.slice(ft),ft=m.length,{value:Bt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(ut[Symbol.iterator]=function(){return ut}),ut},this.countGraphemes=function(m){for(var ft=0,ut=0,Bt;(Bt=this.nextBreak(m,ut))<m.length;)ut=Bt,ft++;return ut<m.length&&ft++,ft};function He(m){return 1536<=m&&m<=1541||m==1757||m==1807||m==2274||m==3406||m==69821||70082<=m&&m<=70083||m==72250||72326<=m&&m<=72329||m==73030?En:m==13?$e:m==10?bt:0<=m&&m<=9||11<=m&&m<=12||14<=m&&m<=31||127<=m&&m<=159||m==173||m==1564||m==6158||m==8203||8206<=m&&m<=8207||m==8232||m==8233||8234<=m&&m<=8238||8288<=m&&m<=8292||m==8293||8294<=m&&m<=8303||55296<=m&&m<=57343||m==65279||65520<=m&&m<=65528||65529<=m&&m<=65531||113824<=m&&m<=113827||119155<=m&&m<=119162||m==917504||m==917505||917506<=m&&m<=917535||917632<=m&&m<=917759||918e3<=m&&m<=921599?vt:768<=m&&m<=879||1155<=m&&m<=1159||1160<=m&&m<=1161||1425<=m&&m<=1469||m==1471||1473<=m&&m<=1474||1476<=m&&m<=1477||m==1479||1552<=m&&m<=1562||1611<=m&&m<=1631||m==1648||1750<=m&&m<=1756||1759<=m&&m<=1764||1767<=m&&m<=1768||1770<=m&&m<=1773||m==1809||1840<=m&&m<=1866||1958<=m&&m<=1968||2027<=m&&m<=2035||2070<=m&&m<=2073||2075<=m&&m<=2083||2085<=m&&m<=2087||2089<=m&&m<=2093||2137<=m&&m<=2139||2260<=m&&m<=2273||2275<=m&&m<=2306||m==2362||m==2364||2369<=m&&m<= Line truncated
`)}var Wt={extraLines:2,tabSize:4},Jn=function(Mn,En,Er,Yn){Yn=Kt({},Wt,Yn);var Dn=Mn.split(/\r\n?|\n|\f/),Ge=Math.max(1,En-Yn.extraLines)-1,de=Math.min(En+Yn.extraLines,Dn.length),ie=String(de).length,se=$n(Dn,Ge,En,ie,Yn),fe=un(Dn[En-1].substring(0,Er-1),En,ie,Yn),Ie=vt(" ",fe.length)+"^",je=$n(Dn,En,de,ie,Yn);return[se,Ie,je].filter(Boolean).join(`
`)};return Jn})}),C=new Error().stack,w=function(Re){var Ke=Object.create(SyntaxError.prototype);return Object.assign(Ke,Re,{name:"SyntaxError"}),Object.defineProperty(Ke,"stack",{get:function(){return C?C.replace(/^(.+\n){1,3}/,String(Ke)+`
`):""}}),Ke},B=function(Re,Ke,$e,bt,vt){throw w({message:bt?Re+`
`+f(Ke,bt,vt):Re,rawMessage:Re,source:$e,line:bt,column:vt})},D={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ke){for(var $e=arguments.length,bt=Array($e>1?$e-1:0),vt=1;vt<$e;vt++)bt[vt-1]=arguments[vt];return"Unexpected token <"+Ke+"> at "+bt.filter(Boolean).join(":")}},R={unexpectedSymbol:function(Ke){for(var $e=arguments.length,bt=Array($e>1?$e-1:0),vt=1;vt<$e;vt++)bt[vt-1]=arguments[vt];return"Unexpected symbol <"+Ke+"> at "+bt.filter(Boolean).join(":")}},U={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},G={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},J={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},$={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},oe={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function te(Re){return Re>="1"&&Re<="9"}function H(Re){return Re>="0"&&Re<="9"}function re(Re){return H(Re)||Re>="a"&&Re<="f"||Re>="A"&&Re<="F"}function j(Re){return Re==="e"||Re==="E"}function Ae(Re,Ke,$e,bt){var vt=Re.charAt(Ke);if(vt==="\r")Ke++,$e++,bt=1,Re.charAt(Ke)===`
`&&Ke++;else if(vt===`
`)Ke++,$e++,bt=1;else if(vt===" "||vt===" ")Ke++,bt++;else return null;return{index:Ke,line:$e,column:bt}}function ge(Re,Ke,$e,bt){var vt=Re.charAt(Ke);return vt in G?{type:G[vt],line:$e,column:bt+1,index:Ke+1,value:null}:null}function me(Re,Ke,$e,bt){for(var vt in W)if(W.hasOwnProperty(vt)&&Re.substr(Ke,vt.length)===vt)return{type:W[vt],line:$e,column:bt+vt.length,index:Ke+vt.length,value:vt};return null}function xe(Re,Ke,$e,bt){for(var vt=Ke,Ot=J._START_;Ke<Re.length;){var $t=Re.charAt(Ke);switch(Ot){case J._START_:{if($t==='"')Ke++,Ot=J.START_QUOTE_OR_CHAR;else return null;break}case J.START_QUOTE_OR_CHAR:{if($t==="\\")Ke++,Ot=J.ESCAPE;else{if($t==='"')return Ke++,{type:U.STRING,line:$e,column:bt+Ke-vt,index:Ke,value:Re.slice(vt,Ke)};Ke++}break}case J.ESCAPE:{if($t in $){if(Ke++,$t==="u")for(var Kt=0;Kt<4;Kt++){var un=Re.charAt(Ke);if(un&&re(un))Ke++;else return null}Ot=J.START_QUOTE_OR_CHAR}else return null;break}}}}function Be(Re,Ke,$e,bt){var vt=Ke,Ot=Ke,$t=oe._START_;e:for(;Ke<Re.length;){var Kt=Re.charAt(Ke);switch($t){case oe._START_:{if(Kt==="-")$t=oe.MINUS;else if(Kt==="0")Ot=Ke+1,$t=oe.ZERO;else if(te(Kt))Ot=Ke+1,$t=oe.DIGIT;else return null;break}case oe.MINUS:{if(Kt==="0")Ot=Ke+1,$t=oe.ZERO;else if(te(Kt))Ot=Ke+1,$t=oe.DIGIT;else return null;break}case oe.ZERO:{if(Kt===".")$t=oe.POINT;else if(j(Kt))$t=oe.EXP;else break e;break}case oe.DIGIT:{if(H(Kt))Ot=Ke+1;else if(Kt===".")$t=oe.POINT;else if(j(Kt))$t=oe.EXP;else break e;break}case oe.POINT:{if(H(Kt))Ot=Ke+1,$t=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if(H(Kt))Ot=Ke+1;else if(j(Kt))$t=oe.EXP;else break e;break}case oe.EXP:{if(Kt==="+"||Kt==="-")$t=oe.EXP_DIGIT_OR_SIGN;else if(H(Kt))Ot=Ke+1,$t=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if(H(Kt))Ot=Ke+1;else break e;break}}Ke++}return Ot>0?{type:U.NUMBER,line:$e,column:bt+Ot-vt,index:Ot,value:Re.slice(vt,Ot)}:null}var Me=function(Ke,$e){for(var bt=1,vt=1,Ot=0,$t=[];Ot<Ke.length;){var Kt=[Ke,Ot,bt,vt],un=Ae.apply(void 0,Kt);if(un){Ot=un.index,bt=un.line,vt=un.column;continue}var $n=ge.apply(void 0,Kt)||me.apply(void 0,Kt)||xe.apply(void 0,Kt)||Be.apply(void 0,Kt);if($n){var Wt={type:$n.type,value:$n.value,loc:o(bt,vt,Ot,$n.line,$n.column,$n.index,$e.source)};$t.push(Wt),Ot=$n.index,bt=$n.line,vt=$n.column}else B(R.unexpectedSymbol(l(Ke,Ot,Ot+1),$e.source,bt,vt),Ke,$e.source,bt,vt)}return $t},We={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},be={_START_:0,KEY:1,COLON:2},nt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},_t={loc:!0,source:null};function at(Re,Ke,$e){var bt=Ke.length>0?Ke[Ke.length-1].loc.end:{line:1,column:1};B(D.unexpectedEnd(),Re,$e.source,bt.line,bt.column)}function Je(Re){for(var Ke=0,$e=0;$e<4;$e++)Ke=Ke*16+parseInt(Re[$e],16);return String.fromCharCode(Ke)}var Ne={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Te=['"',"\\","/"];function Ze(Re){for(var Ke="",$e=0;$e<Re.length;$e++){var bt=Re.charAt($e);if(bt==="\\"){$e++;var vt=Re.charAt($e);if(vt==="u")Ke+=Je(Re.substr($e+1,4)),$e+=4;else if(Te.indexOf(vt)!==-1)Ke+=vt;else if(vt in Ne)Ke+=Ne[vt];else break}else Ke+=bt}return Ke}function gt(Re,Ke,$e,bt){for(var vt=void 0,Ot={type:"Object",children:[]},$t=We._START_;$e<Ke.length;){var Kt=Ke[$e];switch($t){case We._START_:{if(Kt.type===U.LEFT_BRACE)vt=Kt,$t=We.OPEN_OBJECT,$e++;else return null;break}case We.OPEN_OBJECT:{if(Kt.type===U.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:$e+1};var un=Dt(Re,Ke,$e,bt);Ot.children.push(un.value),$t=We.PROPERTY,$e=un.index;break}case We.PROPERTY:{if(Kt.type===U.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:$e+1};Kt.type===U.COMMA?($t=We.COMMA,$e++):B(D.unexpectedToken(l(Re,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Re,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case We.COMMA:{var $n=Dt(Re,Ke,$e,bt);$n?($e=$n.index,Ot.children.push($n.value),$t=We.PROPERTY):B(D.unexpectedToken(l(Re,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Re,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}}}at(Re,Ke,bt)}function Dt(Re,Ke,$e,bt){for(var vt=void 0,Ot={type:"Property",key:null,value:null},$t=be._START_;$e<Ke.length;){var Kt=Ke[$e];switch($t){case be._START_:{if(Kt.type===U.STRING){var un={type:"Identifier",value:Ze(Re.slice(Kt.loc.start.offset+1,Kt.loc.end.offset-1)),raw:Kt.value};bt.loc&&(un.loc=Kt.loc),vt=Kt,Ot.key=un,$t=be.KEY,$e++}else return null;break}case be.KEY:{Kt.type===U.COLON?($t=be.COLON,$e++):B(D.unexpectedToken(l(Re,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Re,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case be.COLON:{var $n=It(Re,Ke,$e,bt);return Ot.value=$n.value,bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,$n.value.loc.end.line,$n.value.loc.end.column,$n.value.loc.end.offset,bt.source)),{value:Ot,index:$n.index}}}}}function pt(Re,Ke,$e,bt){for(var vt=void 0,Ot={type:"Array",children:[]},$t=nt._START_,Kt=void 0;$e<Ke.length;)switch(Kt=Ke[$e],$t){case nt._START_:{if(Kt.type===U.LEFT_BRACKET)vt=Kt,$t=nt.OPEN_ARRAY,$e++;else return null;break}case nt.OPEN_ARRAY:{if(Kt.type===U.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:$e+1};var un=It(Re,Ke,$e,bt);$e=un.index,Ot.children.push(un.value),$t=nt.VALUE;break}case nt.VALUE:{if(Kt.type===U.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:$e+1};Kt.type===U.COMMA?($t=nt.COMMA,$e++):B(D.unexpectedToken(l(Re,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Re,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case nt.COMMA:{var $n=It(Re,Ke,$e,bt);$e=$n.index,Ot.children.push($n.value),$t=nt.VALUE;break}}at(Re,Ke,bt)}function Tt(Re,Ke,$e,bt){var vt=Ke[$e],Ot=null;switch(vt.type){case U.STRING:{Ot=Ze(Re.slice(vt.loc.start.offset+1,vt.loc.end.offset-1));break}case U.NUMBER:{Ot=Number(vt.value);break}case U.TRUE:{Ot=!0;break}case U.FALSE:{Ot=!1;break}case U.NULL:{Ot=null;break}default:return null}var $t={type:"Literal",value:Ot,raw:vt.value};return bt.loc&&($t.loc=vt.loc),{value:$t,index:$e+1}}function It(Re,Ke,$e,bt){var vt=Ke[$e],Ot=Tt.apply(void 0,arguments)||gt.apply(void 0,arguments)||pt.apply(void 0,arguments);if(Ot)return Ot;B(D.unexpectedToken(l(Re,vt.loc.start.offset,vt.loc.end.offset),bt.source,vt.loc.start.line,vt.loc.start.column),Re,bt.source,vt.loc.start.line,vt.loc.start.column)}var Le=function(Re,Ke){Ke=Object.assign({},_t,Ke);var $e=Me(Re,Ke);$e.length===0&&at(Re,$e,Ke);var bt=It(Re,$e,0,Ke);if(bt.index===$e.length)return bt.value;var vt=$e[bt.index];B(D.unexpectedToken(l(Re,vt.loc.start.offset,vt.loc.end.offset),Ke.source,vt.loc.start.line,vt.loc.start.column),Re,Ke.source,vt.loc.start.line,vt.loc.start.column)};return Le})}(o2)),o2.exports}var hse=cse();const dse=zl(hse);function rr(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}} Line truncated
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:te.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+te.r+","+te.g+","+te.b+`, 0) 0%,
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)"},pointer:{left:0,top:te.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:H.alpha},r.default.createElement("div",{style:H.checkboard},r.default.createElement(C.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:H.gradient}),r.default.createElement("div",{style:H.container,ref:function(j){return oe.container=j},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:H.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:H.slider}))))}}]),J}(t.PureComponent||t.Component);return Qg.default=G,Qg}var qg={},vD;function Lle(){if(vD)return qg;vD=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.EditableInput=void 0;var n=function(){function $(oe,te){for(var H=0;H<te.length;H++){var re=te[H];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(oe,re.key,re)}}return function(oe,te,H){return te&&$(oe.prototype,te),H&&$(oe,H),oe}}(),e=Va(),t=s(e),r=Kp(),i=s(r);function s($){return $&&$.__esModule?$:{default:$}}function l($,oe,te){return oe in $?Object.defineProperty($,oe,{value:te,enumerable:!0,configurable:!0,writable:!0}):$[oe]=te,$}function o($,oe){if(!($ instanceof oe))throw new TypeError("Cannot call a class as a function")}function f($,oe){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:$}function C($,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);$.prototype=Object.create(oe&&oe.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf($,oe):$.__proto__=oe)}var w=1,B=38,D=40,R=[B,D],U=function(oe){return R.indexOf(oe)>-1},G=function(oe){return Number(String(oe).replace(/%/g,""))},W=1,J=qg.EditableInput=function($){C(oe,$);function oe(te){o(this,oe);var H=f(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return H.handleBlur=function(){H.state.blurValue&&H.setState({value:H.state.blurValue,blurValue:null})},H.handleChange=function(re){H.setUpdatedValue(re.target.value,re)},H.handleKeyDown=function(re){var j=G(re.target.value);if(!isNaN(j)&&U(re.keyCode)){var Ae=H.getArrowOffset(),ge=re.keyCode===B?j+Ae:j-Ae;H.setUpdatedValue(ge,re)}},H.handleDrag=function(re){if(H.props.dragLabel){var j=Math.round(H.props.value+re.movementX);j>=0&&j<=H.props.dragMax&&H.props.onChange&&H.props.onChange(H.getValueObjectWithLabel(j),re)}},H.handleMouseDown=function(re){H.props.dragLabel&&(re.preventDefault(),H.handleDrag(re),window.addEventListener("mousemove",H.handleDrag),window.addEventListener("mouseup",H.handleMouseUp))},H.handleMouseUp=function(){H.unbindEventListeners()},H.unbindEventListeners=function(){window.removeEventListener("mousemove",H.handleDrag),window.removeEventListener("mouseup",H.handleMouseUp)},H.state={value:String(te.value).toUpperCase(),blurValue:String(te.value).toUpperCase()},H.inputId="rc-editable-input-"+W++,H}return n(oe,[{key:"componentDidUpdate",value:function(H,re){this.props.value!==this.state.value&&(H.value!==this.props.value||re.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(H){return l({},this.props.label,H)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||w}},{key:"setUpdatedValue",value:function(H,re){var j=this.props.label?this.getValueObjectWithLabel(H):H;this.props.onChange&&this.props.onChange(j,re),this.setState({value:H})}},{key:"render",value:function(){var H=this,re=(0,i.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:re.wrap},t.default.createElement("input",{id:this.inputId,style:re.input,ref:function(Ae){return H.input=Ae},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:re.label,onMouseDown:this.handleMouseDown},this.props.label):null)} Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hue-vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),t.default.createElement("div",{style:oe.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:oe.slider}))))}}]),U}(e.PureComponent||e.Component);return $g.default=D,$g}var Vg={},bD;function Nle(){if(bD)return Vg;bD=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.Raised=void 0;var n=Va(),e=f(n),t=dm(),r=f(t),i=Kp(),s=f(i),l=CG(),o=f(l);function f(w){return w&&w.__esModule?w:{default:w}}var C=Vg.Raised=function(B){var D=B.zDepth,R=B.radius,U=B.background,G=B.children,W=B.styles,J=W===void 0?{}:W,$=(0,s.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+D+"px "+D*4+"px rgba(0,0,0,.24)",borderRadius:R,background:U}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},J),{"zDepth-1":D===1});return e.default.createElement("div",{style:$.wrap},e.default.createElement("div",{style:$.bg}),e.default.createElement("div",{style:$.content},G))};return C.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},C.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},Vg.default=C,Vg}var Hg={},qS,xD;function Gle(){if(xD)return qS;xD=1;var n=Dp(),e=function(){return n.Date.now()};return qS=e,qS}var $S,MD;function jle(){if(MD)return $S;MD=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return $S=e,$S}var VS,wD;function Wle(){if(wD)return VS;wD=1;var n=jle(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return VS=t,VS}var HS,SD;function Qle(){if(SD)return HS;SD=1;var n=Wle(),e=Gf(),t=b3(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function f(C){if(typeof C=="number")return C;if(t(C))return r;if(e(C)){var w=typeof C.valueOf=="function"?C.valueOf():C;C=e(w)?w+"":w}if(typeof C!="string")return C===0?C:+C;C=n(C);var B=s.test(C);return B||l.test(C)?o(C.slice(2),B?2:8):i.test(C)?r:+C}return HS=f,HS}var ZS,ED;function _G(){if(ED)return ZS;ED=1;var n=Gf(),e=Gle(),t=Qle(),r="Expected a function",i=Math.max,s=Math.min;function l(o,f,C){var w,B,D,R,U,G,W=0,J=!1,$=!1,oe=!0;if(typeof o!="function")throw new TypeError(r);f=t(f)||0,n(C)&&(J=!!C.leading,$="maxWait"in C,D=$?i(t(C.maxWait)||0,f):D,oe="trailing"in C?!!C.trailing:oe);function te(Me){var We=w,be=B;return w=B=void 0,W=Me,R=o.apply(be,We),R}function H(Me){return W=Me,U=setTimeout(Ae,f),J?te(Me):R}function re(Me){var We=Me-G,be=Me-W,nt=f-We;return $?s(nt,D-be):nt}function j(Me){var We=Me-G,be=Me-W;return G===void 0||We>=f||We<0||$&&be>=D}function Ae(){var Me=e();if(j(Me))return ge(Me);U=setTimeout(Ae,re(Me))}function ge(Me){return U=void 0,oe&&w?te(Me):(w=B=void 0,R)}function me(){U!==void 0&&clearTimeout(U),W=0,w=G=B=U=void 0}function xe(){return U===void 0?R:ge(e())}function Be(){var Me=e(),We=j(Me);if(w=arguments,B=this,G=Me,We){if(U===void 0)return H(G);if($)return clearTimeout(U),U=setTimeout(Ae,f),te(G)}return U===void 0&&(U=setTimeout(Ae,f)),R}return Be.cancel=me,Be.flush=xe,Be}return ZS=l,ZS}var XS,BD;function Yle(){if(BD)return XS;BD=1;var n=_G(),e=Gf(),t="Expected a function";function r(i,s,l){var o=!0,f=!0;if(typeof i!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,f="trailing"in l?!!l.trailing:f),n(i,s,{leading:o,maxWait:s,trailing:f})}return XS=r,XS}var jb={},OD;function qle(){return OD||(OD=1,Object.defineProperty(jb,"__esModule",{value:!0}),jb.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),s=i.width,l=i.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,f=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,C=o-(r.getBoundingClientRect().left+window.pageXOffset),w=f-(r.getBoundingClientRect().top+window.pageYOffset);C<0?C=0:C>s&&(C=s),w<0?w=0:w>l&&(w=l);var B=C/s,D=1-w/l;return{h:t.h,s:B,v:D,a:t.a,source:"hsv"}}),jb}var ID;function $le(){if(ID)return Hg;ID=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.Saturation=void 0;var n=function(){function G(W,J){for(var $=0;$<J.length;$++){var oe=J[$];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(W,oe.key,oe)}}return function(W,J,$){return J&&G(W.prototype,J),$&&G(W,$),W}}(),e=Va(),t=w(e),r=Kp(),i=w(r),s=Yle(),l=w(s),o=qle(),f=C(o);function C(G){if(G&&G.__esModule)return G;var W={};if(G!=null)for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(W[J]=G[J]);return W.default=G,W}function w(G) Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:te,white:H,black:re,pointer:j,circle:Ae}},{custom:!!this.props.style});return t.default.createElement("div",{style:ge.color,ref:function(xe){return $.container=xe},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.saturation-black {
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),W}(e.PureComponent||e.Component);return Hg.default=U,Hg}var Zg={},Zh={},JS,TD;function Vle(){if(TD)return JS;TD=1;var n=uG(),e=AG(),t=$N(),r=af();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return JS=i,JS}var eE,kD;function Hle(){return kD||(kD=1,eE=Vle()),eE}var s2={exports:{}},Zle=s2.exports,PD;function Xle(){return PD||(PD=1,function(n,e){(function(t,r){n.exports=r()})(Zle,function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Re){return typeof Re}:function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},t(Le)}var r=/^\s+/,i=/\s+$/;function s(Le,Re){if(Le=Le||"",Re=Re||{},Le instanceof s)return Le;if(!(this instanceof s))return new s(Le,Re);var Ke=l(Le);this._originalInput=Le,this._r=Ke.r,this._g=Ke.g,this._b=Ke.b,this._a=Ke.a,this._roundA=Math.round(100*this._a)/100,this._format=Re.format||Ke.format,this._gradientType=Re.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ke.ok}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Re=this.toRgb();return(Re.r*299+Re.g*587+Re.b*114)/1e3},getLuminance:function(){var Re=this.toRgb(),Ke,$e,bt,vt,Ot,$t;return Ke=Re.r/255,$e=Re.g/255,bt=Re.b/255,Ke<=.03928?vt=Ke/12.92:vt=Math.pow((Ke+.055)/1.055,2.4),$e<=.03928?Ot=$e/12.92:Ot=Math.pow(($e+.055)/1.055,2.4),bt<=.03928?$t=bt/12.92:$t=Math.pow((bt+.055)/1.055,2.4),.2126*vt+.7152*Ot+.0722*$t},setAlpha:function(Re){return this._a=We(Re),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Re=w(this._r,this._g,this._b);return{h:Re.h*360,s:Re.s,v:Re.v,a:this._a}},toHsvString:function(){var Re=w(this._r,this._g,this._b),Ke=Math.round(Re.h*360),$e=Math.round(Re.s*100),bt=Math.round(Re.v*100);return this._a==1?"hsv("+Ke+", "+$e+"%, "+bt+"%)":"hsva("+Ke+", "+$e+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Re=f(this._r,this._g,this._b);return{h:Re.h*360,s:Re.s,l:Re.l,a:this._a}},toHslString:function(){var Re=f(this._r,this._g,this._b),Ke=Math.round(Re.h*360),$e=Math.round(Re.s*100),bt=Math.round(Re.l*100);return this._a==1?"hsl("+Ke+", "+$e+"%, "+bt+"%)":"hsla("+Ke+", "+$e+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Re){return D(this._r,this._g,this._b,Re)},toHexString:function(Re){return"#"+this.toHex(Re)},toHex8:function(Re){return R(this._r,this._g,this._b,this._a,Re)},toHex8String:function(Re){return"#"+this.toHex8(Re)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(be(this._r,255)*100)+"%",g:Math.round(be(this._g,255)*100)+"%",b:Math.round(be(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(be(this._r,255)*100)+"%, "+Math.round(be(this._g,255)*100)+"%, "+Math.round(be(this._b,255)*100)+"%)":"rgba("+Math.round(be(this._r,255)*100)+"%, "+Math.round(be(this._g,255)*100)+"%, "+Math.round(be(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Be[D(this._r,this._g,this._b,!0)]||!1},toFilter:function(Re){var Ke="#"+U(this._r,this._g,this._b,this._a),$e=Ke,bt=this._gradientType?"GradientType = 1, ":"";if(Re){var vt=s(Re);$e="#"+U(vt._r,vt._g,vt._b,vt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Ke+",endColorstr="+$e+")"},toString:function(Re){var Ke=!!Re;Re=Re||this._format;var $e=!1,bt=this._a<1&&this._a>=0,vt=!Ke&&bt&&(Re==="hex"||Re==="hex6"||Re==="hex3"||Re==="hex4"||Re==="hex8"||Re==="name");return vt?Re==="name"&&this._a===0?this.toName():this.toRgbString():(Re==="rgb"&&($e=this.toRgbString()),Re==="prgb"&&($e=this.toPercentageRgbString()),(Re==="hex"||Re==="hex6")&&($e=this.toHexString()),Re==="hex3"&&($e=this.toHexString(!0)),Re==="hex4"&&($e=this.toHex8String(!0)),Re==="hex8"&&($e=this.toHex8String()),Re==="name"&&($e=this.toName()),Re==="hsl"&&($e=this.toHslString()),Re==="hsv"&&($e=this.toHsvString()),$e||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Re,Ke){var $e=Re.apply(nu Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${t}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://unpkg.com/maplibre-gl@${aK}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${aK}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script>
const map = new maplibregl.Map({
container: 'map',
style: ${e},
});
map.addControl(new maplibregl.NavigationControl());
<\/script>
</body>
</html>
`),i=(Dr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Dr().s[10]++,this.exportName());Dr().s[11]++,sK.saveAs(i,s+".html")}async saveStyle(){Dr().f[3]++;const e=(Dr().s[12]++,this.tokenizedStyle());if(Dr().s[13]++,lK)Dr().b[2][1]++;else{Dr().b[2][0]++;const i=(Dr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Dr().s[15]++,this.exportName());Dr().s[16]++,sK.saveAs(i,s+".json"),Dr().s[17]++;return}let t=(Dr().s[18]++,this.props.fileHandle);if(Dr().s[19]++,t==null)if(Dr().b[3][0]++,Dr().s[20]++,t=await this.createFileHandle(),Dr().s[21]++,this.props.onSetFileHandle(t),Dr().s[22]++,t==null){Dr().b[4][0]++,Dr().s[23]++;return}else Dr().b[4][1]++;else Dr().b[3][1]++;const r=(Dr().s[24]++,await t.createWritable());Dr().s[25]++,await r.write(e),Dr().s[26]++,await r.close(),Dr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Dr().f[4]++;const e=(Dr().s[28]++,this.tokenizedStyle()),t=(Dr().s[29]++,await this.createFileHandle());if(Dr().s[30]++,this.props.onSetFileHandle(t),Dr().s[31]++,t==null){Dr().b[5][0]++,Dr().s[32]++;return}else Dr().b[5][1]++;const r=(Dr().s[33]++,await t.createWritable());Dr().s[34]++,await r.write(e),Dr().s[35]++,await r.close(),Dr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Dr().f[5]++;const e=(Dr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Dr().s[38]++,await window.showSaveFilePicker(e));return Dr().s[39]++,this.props.onSetFileHandle(t),Dr().s[40]++,t}changeMetadataProperty(e,t){Dr().f[6]++;const r=(Dr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Dr().s[42]++,this.props.onStyleChanged(r)}render(){Dr().f[7]++;const e=(Dr().s[43]++,this.props.t),t=(Dr().s[44]++,RG(e));return Dr().s[45]++,ae.jsx($0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:ae.jsxs("section",{className:"maputnik-modal-section",children:[ae.jsx("h1",{children:e("Save Style")}),ae.jsx("p",{children:e("Save the JSON style to your computer.")}),ae.jsxs("div",{children:[ae.jsx(Pf,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Dr().b[6][0]++,this.props.mapStyle.metadata||(Dr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),ae.jsx(Pf,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Dr().b[7][0]++,this.props.mapStyle.metadata||(Dr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),ae.jsx(Pf,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Dr().b[8][0]++,this.props.mapStyle.metadata||(Dr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),ae.jsx(Pf,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Dr().b[9][0]++,this.props.mapStyle.metadata||(Dr().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[ae.jsxs($a,{onClick:this.saveStyle.bind(this),children:[ae.jsx(b6,{}),e("Save")]}),(Dr().b[10][0]++,lK&&(Dr().b[10][1]++,ae.jsxs($a,{onClick:this.saveStyleAs.bind(this),children:[ae.jsx(b6,{}),e("Save as")]}))),ae.jsxs($a,{onClick:this.createHtml.bind(this),children:[ae.jsx(UV,{}),e("Create HTML")]})]})]})})}}const Wue=(Dr().s[46]++,Gs()(jue));function a_(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="008bf7f932014e13eee4379e3554a3bc406336ab",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"008bf7f932014e13eee4379e3554a3bc406336ab"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return a_=function(){return l},l}a_();a_().s[0]++;const LG=n=>(a_().f[0]++,a_().s[1]++,ae.jsx(XC,{label:n.label,children:ae.jsx(EG,{...n})}));function l_(){var n="/home/runner/work/maputnik/maputnik/src/components/Field Line truncated
`)>=0)return!1;return!0}function Ie(Ve,Pe){var He;if(Ve.indent===" ")He=" ";else if(typeof Ve.indent=="number"&&Ve.indent>0)He=Ae.call(Array(Ve.indent+1)," ");else return null;return{base:He,prev:Ae.call(Array(Pe+1),He)}}function je(Ve,Pe){if(Ve.length===0)return"";var He=`
`+Pe.prev+Pe.base;return He+Ae.call(Ve,","+He)+`
`+Pe.prev}function ht(Ve,Pe){var He=Tt(Ve),m=[];if(He){m.length=Ve.length;for(var ft=0;ft<Ve.length;ft++)m[ft]=Kt(Ve,ft)?Pe(Ve[ft],Ve):""}var ut=typeof Be=="function"?Be(Ve):[],Bt;if(We){Bt={};for(var rt=0;rt<ut.length;rt++)Bt["$"+ut[rt]]=ut[rt]}for(var rn in Ve)Kt(Ve,rn)&&(He&&String(Number(rn))===rn&&rn<Ve.length||We&&Bt["$"+rn]instanceof Symbol||(re.call(/[^\w$]/,rn)?m.push(Pe(rn,Ve)+": "+Pe(Ve[rn],Ve)):m.push(rn+": "+Pe(Ve[rn],Ve))));if(typeof Be=="function")for(var Wn=0;Wn<ut.length;Wn++)nt.call(Ve,ut[Wn])&&m.push("["+Pe(ut[Wn])+"]: "+Pe(Ve[ut[Wn]],Ve));return m}return lE}var AE,pK;function Ece(){if(pK)return AE;pK=1;var n=w3(),e=ev(),t=function(o,f,C){for(var w=o,B;(B=w.next)!=null;w=B)if(B.key===f)return w.next=B.next,C||(B.next=o.next,o.next=B),B},r=function(o,f){if(o){var C=t(o,f);return C&&C.value}},i=function(o,f,C){var w=t(o,f);w?w.value=C:o.next={key:f,next:o.next,value:C}},s=function(o,f){return o?!!t(o,f):!1},l=function(o,f){if(o)return t(o,f,!0)};return AE=function(){var f,C={assert:function(w){if(!C.has(w))throw new e("Side channel does not contain "+n(w))},delete:function(w){var B=f&&f.next,D=l(f,w);return D&&B&&B===D&&(f=void 0),!!D},get:function(w){return r(f,w)},has:function(w){return s(f,w)},set:function(w,B){f||(f={next:void 0}),i(f,w,B)}};return C},AE}var uE,mK;function jG(){return mK||(mK=1,uE=Object),uE}var cE,gK;function Bce(){return gK||(gK=1,cE=Error),cE}var hE,yK;function Oce(){return yK||(yK=1,hE=EvalError),hE}var dE,vK;function Ice(){return vK||(vK=1,dE=RangeError),dE}var fE,CK;function Tce(){return CK||(CK=1,fE=ReferenceError),fE}var pE,_K;function kce(){return _K||(_K=1,pE=SyntaxError),pE}var mE,bK;function Pce(){return bK||(bK=1,mE=URIError),mE}var gE,xK;function Rce(){return xK||(xK=1,gE=Math.abs),gE}var yE,MK;function Dce(){return MK||(MK=1,yE=Math.floor),yE}var vE,wK;function Kce(){return wK||(wK=1,vE=Math.max),vE}var CE,SK;function Fce(){return SK||(SK=1,CE=Math.min),CE}var _E,EK;function Lce(){return EK||(EK=1,_E=Math.pow),_E}var bE,BK;function Uce(){return BK||(BK=1,bE=Math.round),bE}var xE,OK;function zce(){return OK||(OK=1,xE=Number.isNaN||function(e){return e!==e}),xE}var ME,IK;function Nce(){if(IK)return ME;IK=1;var n=zce();return ME=function(t){return n(t)||t===0?t:t<0?-1:1},ME}var wE,TK;function Gce(){return TK||(TK=1,wE=Object.getOwnPropertyDescriptor),wE}var SE,kK;function WG(){if(kK)return SE;kK=1;var n=Gce();if(n)try{n([],"length")}catch{n=null}return SE=n,SE}var EE,PK;function jce(){if(PK)return EE;PK=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return EE=n,EE}var BE,RK;function Wce(){return RK||(RK=1,BE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),BE}var OE,DK;function Qce(){if(DK)return OE;DK=1;var n=typeof Symbol<"u"&&Symbol,e=Wce();return OE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},OE}var IE,KK;function QG(){return KK||(KK=1,IE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),IE}var TE,FK;function YG(){if(FK)return TE;FK=1;var n=jG();return TE=n.getPrototypeOf||null,TE}var kE,LK;function Yce(){if(LK)return kE;LK=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(f,C){for(var w=[],B=0;B<f.length;B+=1)w[B]=f[B];for(var D=0;D<C.length;D+=1)w[D+f.length]=C[D];return w},s=function(f,C){for(var w=[],B=C,D=0;B<f.length;B+=1,D+=1)w[D]=f[B];return w},l=function(o,f){for(var C="",w=0;w<o.length;w+=1)C+=o[w],w+1<o.length&&(C+=f);return C};return kE=function(f){var C=this;if(typeof C!="function"||e.apply(C)!==r)throw new TypeError(n+C);for(var w=s(arguments,1),B,D=function(){if(this instanceof B){var J=C.apply(this,i(w,arguments));return Object(J)===J?J:this}return C.apply(f,i(w,arguments))},R=t(0,C.length-w.length),U=[],G=0;G<R;G++)U[G]="$"+G;if(B=Function("binder","return function ("+l(U,",")+"){ return binder.apply(this,arguments); }")(D),C.prototype){var W=function(){};W.prototype=C.prototype,B.prototype=new W,W.prototype=null}return B},kE}var PE,UK;function S3(){if(UK)return PE;UK=1;var n=Yce();return PE=Function.prototype.bind||n,PE}var RE,zK;function GI(){return zK||(zK=1,RE=Function.prototype.call),RE}var DE,NK;function q Line truncated
`," "],l=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(l),f=["%","/","?",";","#"].concat(o),C=["/","?","#"],w=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,D=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,R={javascript:!0,"javascript:":!0},U={javascript:!0,"javascript:":!0},G={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=nhe();function J(H,re,j){if(H&&typeof H=="object"&&H instanceof e)return H;var Ae=new e;return Ae.parse(H,re,j),Ae}e.prototype.parse=function(H,re,j){if(typeof H!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof H);var Ae=H.indexOf("?"),ge=Ae!==-1&&Ae<H.indexOf("#")?"?":"#",me=H.split(ge),xe=/\\/g;me[0]=me[0].replace(xe,"/"),H=me.join(ge);var Be=H;if(Be=Be.trim(),!j&&H.split("#").length===1){var Me=i.exec(Be);if(Me)return this.path=Be,this.href=Be,this.pathname=Me[1],Me[2]?(this.search=Me[2],re?this.query=W.parse(this.search.substr(1)):this.query=this.search.substr(1)):re&&(this.search="",this.query={}),this}var We=t.exec(Be);if(We){We=We[0];var be=We.toLowerCase();this.protocol=be,Be=Be.substr(We.length)}if(j||We||Be.match(/^\/\/[^@/]+@[^@/]+/)){var nt=Be.substr(0,2)==="//";nt&&!(We&&U[We])&&(Be=Be.substr(2),this.slashes=!0)}if(!U[We]&&(nt||We&&!G[We])){for(var _t=-1,at=0;at<C.length;at++){var Je=Be.indexOf(C[at]);Je!==-1&&(_t===-1||Je<_t)&&(_t=Je)}var Ne,Te;_t===-1?Te=Be.lastIndexOf("@"):Te=Be.lastIndexOf("@",_t),Te!==-1&&(Ne=Be.slice(0,Te),Be=Be.slice(Te+1),this.auth=decodeURIComponent(Ne)),_t=-1;for(var at=0;at<f.length;at++){var Je=Be.indexOf(f[at]);Je!==-1&&(_t===-1||Je<_t)&&(_t=Je)}_t===-1&&(_t=Be.length),this.host=Be.slice(0,_t),Be=Be.slice(_t),this.parseHost(),this.hostname=this.hostname||"";var Ze=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ze)for(var gt=this.hostname.split(/\./),at=0,Dt=gt.length;at<Dt;at++){var pt=gt[at];if(pt&&!pt.match(B)){for(var Tt="",It=0,Le=pt.length;It<Le;It++)pt.charCodeAt(It)>127?Tt+="x":Tt+=pt[It];if(!Tt.match(B)){var Re=gt.slice(0,at),Ke=gt.slice(at+1),$e=pt.match(D);$e&&(Re.push($e[1]),Ke.unshift($e[2])),Ke.length&&(Be="/"+Ke.join(".")+Be),this.hostname=Re.join(".");break}}}this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ze||(this.hostname=n.toASCII(this.hostname));var bt=this.port?":"+this.port:"",vt=this.hostname||"";this.host=vt+bt,this.href+=this.host,Ze&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Be[0]!=="/"&&(Be="/"+Be))}if(!R[be])for(var at=0,Dt=o.length;at<Dt;at++){var Ot=o[at];if(Be.indexOf(Ot)!==-1){var $t=encodeURIComponent(Ot);$t===Ot&&($t=escape(Ot)),Be=Be.split(Ot).join($t)}}var Kt=Be.indexOf("#");Kt!==-1&&(this.hash=Be.substr(Kt),Be=Be.slice(0,Kt));var un=Be.indexOf("?");if(un!==-1?(this.search=Be.substr(un),this.query=Be.substr(un+1),re&&(this.query=W.parse(this.query)),Be=Be.slice(0,un)):re&&(this.search="",this.query={}),Be&&(this.pathname=Be),G[be]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",$n=this.search||"";this.path=bt+$n}return this.href=this.format(),this};function $(H){return typeof H=="string"&&(H=J(H)),H instanceof e?H.format():e.prototype.format.call(H)}e.prototype.format=function(){var H=this.auth||"";H&&(H=encodeURIComponent(H),H=H.replace(/%3A/i,":"),H+="@");var re=this.protocol||"",j=this.pathname||"",Ae=this.hash||"",ge=!1,me="";this.host?ge=H+this.host:this.hostname&&(ge=H+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ge+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(me=W.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var xe=this.search||me&&"?"+me||"";return re&&re.substr(-1)!==":"&&(re+=":"),this.slashes||(!re||G[re])&&ge!==!1?(ge="//"+(ge||""),j&&j.charAt(0)!=="/"&&(j="/"+j)):ge||(ge=""),Ae&&Ae.charAt(0)!=="#"&&(Ae="#"+Ae),xe&&xe.charAt(0)!=="?"&&(xe="?"+xe),j=j.replace(/[?#]/g,function(Be){return encodeURIComponent(Be)}),xe=xe.replace("#","%23"),re+ge+j+xe+Ae};function oe(H,re){return J(H,!1,!0).resolve(re)}e.prototype.resolve=function(H){return this.resolveObject(J(H,!1,!0)).format()};function te(H,re){return H?J(H,!1,!0).resolveObject(re):re}return e.prototype.resolveObject=function(H){if(typeof H=="string"){var re=new e;re.parse(H,!1,!0),H=re}for(var j=new e,Ae=Object.keys(this),ge=0;ge<Ae.length;ge++){var me=Ae[ge];j[me]=this[me]}if(j.hash=H.hash,H.href==="")return j.href=j.format(),j;if(H.slashes&&!H.protocol){for(var xe=Object.keys(H),Be=0;Be<xe.length;Be++){var Me=xe[Be];Me!=="protocol"&&(j[Me]=H[Me])}return G[j.protocol]&&j.hostname&&!j.pathname&&(j.pathname="/",j.path=j.pathname),j.href=j.format(),j}if(H.protocol&&H.protocol!==j.protocol){if(!G[H.protocol]){for(var We=Object.keys(H),be=0;be<We.length;be++){var nt=We[be];j[nt]=H[nt]}return j.href=j.format(),j}if(j.protocol=H.protocol,!H.host&&!U[H.protocol]){for(var Dt=(H.pathname||"").split("/");Dt.length&&!(H.host=Dt.shift()););H.host||(H.host=""),H.hostname Line truncated
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var pB=function(n,e){return pB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},pB(n,e)};function rj(n,e){pB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function dhe(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function fhe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return s}function phe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(fhe(arguments[e]));return n}var ij=function(){function n(e,t){this.target=t,this.type=e}return n}(),mhe=function(n){rj(e,n);function e(t,r){var i=n.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return e}(ij),ghe=function(n){rj(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var s=n.call(this,"close",i)||this;return s.wasClean=!0,s.code=t,s.reason=r,s}return e}(ij);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var yhe=function(){if(typeof WebSocket<"u")return WebSocket},vhe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},C1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Che=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){i._debug("open event");var l=i._options.minUptime,o=l===void 0?C1.minUptime:l;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},o),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(f){return i._ws.send(f)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(f){return i._callEventListener(s,f)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(l){return i._callEventListener(s,l)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(l){return i._callEventListener(s,l)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(l){return i._callEventListener(s,l)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?C1.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,i=this._listeners[e.type];if(i)try{for(var s=dhe(i),l=s.next();!l.done;l=s.next()){var o=l.value;this._callEventListener(e,o)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._liLine truncated
//# sourceMappingURL=index-uAlRDdVw.js.map
@@ -1 +1 @@
{"version":3,"mappings":"k4CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAC,MAAM,EAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,GAAG,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,GACnQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAC,GAAc,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAQ,MAAM,MAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,IACtK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAQ,IAAIU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAEM,EAAE,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAG,IAAII,GAAE,UAAU,OAAO,EAAE,GAAOA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAID,GAAEC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAa,IAAIe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,GAAE,QAAQ,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,OAAO,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,MAAM,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAcjB,GAAE,MAAK,IAAIkB,GAAE,GAAG,GAAUlB,KAAP,KAASkB,GAAE,eAAeD,GAAA,CAAG,IAAK,SAAS,IAAK,SAASC,GAAE,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,UAAU,KAAKb,EAAE,KAAKC,EAAE8B,GAAE,GAAE,CAAE,GAAGA,GAAE,OAAOA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,GAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAC,OAAOA,EAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAAyB,GAAvBE,GAAE,EAAEH,GAAOA,KAAL,GAAO,IAAIA,GAAE,IAAOL,GAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,QAAQ,MAAMiB,GAAEA,GAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAa,MAAMZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAE,OAAOa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAC,GAASN,IAAN,KAAQ,OAAOA,GAAE,IAAIe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAC,GAAQA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAA,EAAIA,GAAE,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAeA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,EAAG,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAeA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,MAAMC,GAAE,CAAC,WAAW,MAAMC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAA,EAAG,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAACK,GAAE,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAC,OAAO4B,GAAE5B,GAAE,SAASA,GAAE,CAAC,OAAOA,EAAA,CAAE,GAAG,EAAE,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAAC,EAAE,MAAM,MAAM,uEAAuE,EAAE,Line truncated
{"version":3,"mappings":"k4CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAC,MAAM,EAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,GAAG,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,GACnQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAC,GAAc,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAQ,MAAM,MAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,IACtK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAQ,IAAIU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAEM,EAAE,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAG,IAAII,GAAE,UAAU,OAAO,EAAE,GAAOA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAID,GAAEC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAa,IAAIe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,GAAE,QAAQ,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,OAAO,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,MAAM,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAcjB,GAAE,MAAK,IAAIkB,GAAE,GAAG,GAAUlB,KAAP,KAASkB,GAAE,eAAeD,GAAA,CAAG,IAAK,SAAS,IAAK,SAASC,GAAE,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,UAAU,KAAKb,EAAE,KAAKC,EAAE8B,GAAE,GAAE,CAAE,GAAGA,GAAE,OAAOA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,GAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAC,OAAOA,EAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAAyB,GAAvBE,GAAE,EAAEH,GAAOA,KAAL,GAAO,IAAIA,GAAE,IAAOL,GAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,QAAQ,MAAMiB,GAAEA,GAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAa,MAAMZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAE,OAAOa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAC,GAASN,IAAN,KAAQ,OAAOA,GAAE,IAAIe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAC,GAAQA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAA,EAAIA,GAAE,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAeA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,EAAG,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAeA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,MAAMC,GAAE,CAAC,WAAW,MAAMC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAA,EAAG,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAACK,GAAE,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAC,OAAO4B,GAAE5B,GAAE,SAASA,GAAE,CAAC,OAAOA,EAAA,CAAE,GAAG,EAAE,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAAC,EAAE,MAAM,MAAM,uEAAuE,EAAE,Line truncated
+2
View File
@@ -0,0 +1,2 @@
const e="Base",o="Predefinito",i="Fermate",t="Zoom",a="Esamina",r="Apri",s="Salva",l="Vista",n="Aiuto",c="Commenti",p="Sorgente",d="Tipo",u="Filtro",m="Livello",g="Elimina",y="Duplica",S="Mostra",f="Nascondi",h="Livelli",v="Coprimi",L="Espandi",R="Cerca",b="Debug",C="Opzioni",I="Annulla",T="Nome",z="Proprietario",A="Centro",U="Direzione",O="Inclinazione",P="Scorciatoie",M="Immagine",D="Video",N="Sorgenti",E="GeoJSON",x="Cluster",J="Codifica",k="Lingua",G={"Input value":"Valore di input","Data value":"Valore dei dati","Output value":"Valore di output",Function:"Funzione","Select a type of data scale (default is 'categorical').":"Seleziona un tipo di scala dati (predefinito 'categorical').",Base:e,"Input a data property to base styles off of.":"Inserisci una proprietà dati su cui basare gli stili.",Default:o,Stops:i,Zoom:t,"Add stop":"Aggiungi fermata","Convert to expression":"Converti in espressione","Remove zoom level from stop":"Rimuovi il livello di zoom dalla fermata","Revert from expression":"Ripristina dall'espressione","Delete expression":"Elimina espressione","Convert property into a zoom function":"Converti proprietà in una funzione di zoom","Convert property to data function":"Converti proprietà in una funzione dati","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Livello <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"passa al livello",Map:"Mappa",Inspect:a,"Deuteranopia filter":"Filtro deuteranopia","Protanopia filter":"Filtro protanopia","Tritanopia filter":"Filtro tritanopia","Achromatopsia filter":"Filtro acromatopsia","Layers list":"Elenco livelli","Layer editor":"Editor livelli","Map view":"Vista mappa","Maputnik on GitHub":"Maputnik su GitHub",Open:r,Save:s,"Data Sources":"Fonti dati","Style Settings":"Impostazioni stile",View:l,"Color accessibility":"Accessibilità colori",Help:n,"Comments for the current layer. This is non-standard and not in the spec.":"Commenti per il livello attuale. Questo non è standard e non è nella specifica.",Comments:c,"Comment...":"Il tuo commento...","Max Zoom":"Zoom massimo","Min Zoom":"Zoom minimo",Source:p,"Source Layer":"Livello sorgente",Type:d,"Nested filters are not supported.":"I filtri nidificati non sono supportati.","Upgrade to expression":"Aggiorna a espressione",Filter:u,"every filter matches":"tutti i filtri corrispondono","no filter matches":"nessun filtro corrisponde","any filter matches":"qualsiasi filtro corrisponde","Add filter":"Aggiungi filtro","You've entered an old style filter.":"Hai inserito uno stile filtro obsoleto.","Switch to filter editor.":"Passa all'editor dei filtri.","Delete filter block":"Elimina blocco filtro","Add value":"Aggiungi valore","Remove array item":"Rimuovi elemento dall'array","Press <1>ESC</1> to lose focus":"Premi <1>ESC</1> per perdere il focus","Must provide protocol: <1>https://</1>":"Protocollo richiesto: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocollo richiesto: <1>http://</1> o <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politica CORS non permette di caricare risorse tramite http da https, utilizza un dominio <1>https://</1>.","General layout properties":"Proprietà generali del layout","Text layout properties":"Proprietà di layout del testo","Icon layout properties":"Proprietà di layout dell'icona","Text paint properties":"Proprietà di pittura del testo","Icon paint properties":"Proprietà di pittura dell'icona","Paint properties":"Proprietà di pittura","Layout properties":"Proprietà di layout",Layer:m,"JSON Editor":"Editor JSON",Delete:g,Duplicate:y,Show:S,Hide:f,"Move layer up":"Sposta il livello in su","Move layer down":"Sposta il livello in giù","Layer: {{layerId}}":"Livello: {{layerId}}",Layers:h,Collapse:v,Expand:L,"Add Layer":"Aggiungi Livello",Search:R,"Zoom:":"Zoom:","Close popup":"Chiudi popup","cursor:":"cursore:","center:":"centro:","rotation:":"rotazione:","Close modal":"Chiudi finestra modale","Layer ID already exists":"L'ID del layer esiste già",Debug:b,Options:C,"Save Style":"Opzioni stile","Save the JSON style to your computer.":"Salva lo style JSON nel tuo computer.","Save as":"Salva con nome","Create HTML":"Crea HTML",Cancel:I,"Open Style":"Apri stile","Open local Style":"Apri stile locale","Open a local JSON style from your computer.":"Apri uno stile JSON dal tuo computer.","Load from URL":"Carica da URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Carica da URL. Nota che l'URL deve avere l'abilitazione <1>CORS attivata</1>.","Style URL":"Stile URL","Enter URL...":"Inserisci URL...","Gallery Styles":"Galleria degli stili","Open one of the publicly available styles to start from.":"Apro uno degli stili pubblici a partire da.","Loading style":"Caricamento stile","Loading: {{requestUrl}}":"Caricamento: {{requestUrl}}",Name:T,Owner:z,"Owner ID of the style. Used by Mapbox or future style APIsLine truncated
//# sourceMappingURL=translation-BGP2gpqo.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-BGP2gpqo.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="Base",r="Par défaut",t="Arrêts",o="Zoom",s="Inspecter",a="Ouvrir",i="Enregistrer",n="Vue",l="Aide",u="Commentaires",c="Source",d="Type",p="Filtre",m="Calque",y="Supprimer",h="Dupliquer",S="Afficher",f="Cacher",v="Calques",L="Réduire",g="Développer",R="Recherche",C="Déboguer",b="Options",O="Annuler",T="Nom",U="Propriétaire",D="Centre",A="Orientation",I="Inclinaison",P="Raccourcis",M="Image",x="Vidéo",J="Sources",N="GeoJSON",q="Cluster",z="Encodage",E="Langue",V={"Input value":"Valeur d'entrée","Data value":"Valeur des données","Output value":"Valeur de sortie",Function:"Fonction","Select a type of data scale (default is 'categorical').":"Sélectionnez un type d'échelle de données (par défaut 'categorical').",Base:e,"Input a data property to base styles off of.":"Entrez une propriété de données pour baser les styles.",Default:r,Stops:t,Zoom:o,"Add stop":"Ajouter un arrêt","Convert to expression":"Convertir en expression","Remove zoom level from stop":"Supprimer le niveau de zoom de l'arrêt","Revert from expression":"Annuler l'expression","Delete expression":"Supprimer l'expression","Convert property into a zoom function":"Convertir la propriété en fonction de zoom","Convert property to data function":"Convertir la propriété en fonction de données","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Calque <1>{formatLayerId(layerId)}</1> : {parsed.data.message}","switch to layer":"changer de calque",Map:"Carte",Inspect:s,"Deuteranopia filter":"Filtre Deutéranopie","Protanopia filter":"Filtre Protanopie","Tritanopia filter":"Filtre Tritanopie","Achromatopsia filter":"Filtre Achromatopsie","Layers list":"Liste des calques","Layer editor":"Éditeur de calque","Map view":"Vue de la carte","Maputnik on GitHub":"Maputnik sur GitHub",Open:a,Save:i,"Data Sources":"Sources de données","Style Settings":"Paramètres du style",View:n,"Color accessibility":"Accessibilité des couleurs",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Commentaires pour le calque actuel. Ceci n'est pas standard et n'est pas dans la spécification.",Comments:u,"Comment...":"Votre commentaire...","Max Zoom":"Zoom max","Min Zoom":"Zoom min",Source:c,"Source Layer":"Calque Source",Type:d,"Nested filters are not supported.":"Les filtres imbriqués ne sont pas pris en charge.","Upgrade to expression":"Mettre à niveau vers une expression",Filter:p,"every filter matches":"tous les filtres correspondent","no filter matches":"aucun filtre ne correspond","any filter matches":"l'un des filtres correspond","Add filter":"Ajouter un filtre","You've entered an old style filter.":"Vous avez entré un ancien style de filtre.","Switch to filter editor.":"Passer à l'éditeur de filtre.","Delete filter block":"Supprimer le bloc de filtre","Add value":"Ajouter une valeur","Remove array item":"Supprimer l'élément de tableau","Press <1>ESC</1> to lose focus":"Appuyez sur <1>Échap</1> pour perdre le focus","Must provide protocol: <1>https://</1>":"Protocole requis : <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocole requis : <1>http://</1> ou <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politique CORS ne permet pas de récupérer des ressources servies sur http depuis https, utilisez un protocole <1>https://</1>",Layer:m,"JSON Editor":"Éditeur JSON",Delete:y,Duplicate:h,Show:S,Hide:f,"Move layer up":"Monter le calque","Move layer down":"Descendre le calque","Layer: {{layerId}}":"Calque : {{layerId}}",Layers:v,Collapse:L,Expand:g,"Add Layer":"Ajouter un calque","Layer ID already exists":"L'identifiant du calque existe déjà",Search:R,"Zoom:":"Zoom :","Close popup":"Fermer la fenêtre","cursor:":"curseur :","center:":"centre :","rotation:":"rotation :","Close modal":"Fermer la fenêtre modale",Debug:C,Options:b,"Save Style":"Enregistrer le style","Save the JSON style to your computer.":"Enregistrer le style JSON sur votre ordinateur.","Save as":"Enregistrer sous","Create HTML":"Créer le HTML",Cancel:O,"Open Style":"Ouvrir le style","Open local Style":"Ouvrir un style local","Open a local JSON style from your computer.":"Ouvrir un style JSON local depuis votre ordinateur.","Load from URL":"Charger depuis une URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Charger depuis une URL. Notez que l'URL doit avoir les <1>CORS activés</1>.","Style URL":"URL du style","Enter URL...":"Entrez l'URL...","Gallery Styles":"Styles de la galerie","Open one of the publicly available styles to start from.":"Ouvrez l'un des styles publics disponibles pour commencer.","Loading style":"Chargement du style","Loading: {{requestUrl}}":"Chargement : {{requestUrl}}",Name:T,Owner:U,"Owner ID of the style. Used by Mapbox or future style APIs.":"ID du propriétaire du style. Utilisé par Mapbox ou les futures API de style.","Sprite URL":"URL du sprite","Glyphs URL":"URL deLine truncated
//# sourceMappingURL=translation-BJ5cSZoo.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-BJ5cSZoo.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="Base",o="Predefinito",i="Fermate",t="Zoom",a="Esamina",r="Apri",s="Salva",l="Vista",n="Aiuto",c="Commenti",d="Sorgente",p="Tipo",u="Filtro",m="Livello",g="Elimina",S="Duplica",f="Mostra",y="Nascondi",h="Livelli",v="Coprimi",L="Espandi",R="Cerca",b="Debug",C="Opzioni",z="Annulla",I="Nome",T="Proprietario",A="Centro",U="Direzione",O="Inclinazione",M="Scorciatoie",D="Immagine",P="Video",N="Sorgenti",E="GeoJSON",J="Cluster",x="Codifica",k="Lingua",V={"Input value":"Valore di input","Data value":"Valore dei dati","Output value":"Valore di output",Function:"Funzione","Select a type of data scale (default is 'categorical').":"Seleziona un tipo di scala dati (predefinito 'categorical').",Base:e,"Input a data property to base styles off of.":"Inserisci una proprietà dati su cui basare gli stili.",Default:o,Stops:i,Zoom:t,"Add stop":"Aggiungi fermata","Convert to expression":"Converti in espressione","Remove zoom level from stop":"Rimuovi il livello di zoom dalla fermata","Revert from expression":"Ripristina dall'espressione","Delete expression":"Elimina espressione","Convert property into a zoom function":"Converti proprietà in una funzione di zoom","Convert property to data function":"Converti proprietà in una funzione dati","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Livello <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"passa al livello",Map:"Mappa",Inspect:a,"Deuteranopia filter":"Filtro deuteranopia","Protanopia filter":"Filtro protanopia","Tritanopia filter":"Filtro tritanopia","Achromatopsia filter":"Filtro acromatopsia","Layers list":"Elenco livelli","Layer editor":"Editor livelli","Map view":"Vista mappa","Maputnik on GitHub":"Maputnik su GitHub",Open:r,Save:s,"Data Sources":"Fonti dati","Style Settings":"Impostazioni stile",View:l,"Color accessibility":"Accessibilità colori",Help:n,"Comments for the current layer. This is non-standard and not in the spec.":"Commenti per il livello attuale. Questo non è standard e non è nella specifica.",Comments:c,"Comment...":"Il tuo commento...","Max Zoom":"Zoom massimo","Min Zoom":"Zoom minimo",Source:d,"Source Layer":"Livello sorgente",Type:p,"Nested filters are not supported.":"I filtri nidificati non sono supportati.","Upgrade to expression":"Aggiorna a espressione",Filter:u,"every filter matches":"tutti i filtri corrispondono","no filter matches":"nessun filtro corrisponde","any filter matches":"qualsiasi filtro corrisponde","Add filter":"Aggiungi filtro","You've entered an old style filter.":"Hai inserito uno stile filtro obsoleto.","Switch to filter editor.":"Passa all'editor dei filtri.","Delete filter block":"Elimina blocco filtro","Add value":"Aggiungi valore","Remove array item":"Rimuovi elemento dall'array","Press <1>ESC</1> to lose focus":"Premi <1>ESC</1> per perdere il focus","Must provide protocol: <1>https://</1>":"Protocollo richiesto: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocollo richiesto: <1>http://</1> o <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politica CORS non permette di caricare risorse tramite http da https, utilizza un dominio <1>https://</1>.",Layer:m,"JSON Editor":"Editor JSON",Delete:g,Duplicate:S,Show:f,Hide:y,"Move layer up":"Sposta il livello in su","Move layer down":"Sposta il livello in giù","Layer: {{layerId}}":"Livello: {{layerId}}",Layers:h,Collapse:v,Expand:L,"Add Layer":"Aggiungi Livello","Layer ID already exists":"L'ID del layer esiste già",Search:R,"Zoom:":"Zoom:","Close popup":"Chiudi popup","cursor:":"cursore:","center:":"centro:","rotation:":"rotazione:","Close modal":"Chiudi finestra modale",Debug:b,Options:C,"Save Style":"Opzioni stile","Save the JSON style to your computer.":"Salva lo style JSON nel tuo computer.","Save as":"Salva con nome","Create HTML":"Crea HTML",Cancel:z,"Open Style":"Apri stile","Open local Style":"Apri stile locale","Open a local JSON style from your computer.":"Apri uno stile JSON dal tuo computer.","Load from URL":"Carica da URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Carica da URL. Nota che l'URL deve avere l'abilitazione <1>CORS attivata</1>.","Style URL":"Stile URL","Enter URL...":"Inserisci URL...","Gallery Styles":"Galleria degli stili","Open one of the publicly available styles to start from.":"Apro uno degli stili pubblici a partire da.","Loading style":"Caricamento stile","Loading: {{requestUrl}}":"Caricamento: {{requestUrl}}",Name:I,Owner:T,"Owner ID of the style. Used by Mapbox or future style APIs.":"ID del proprietario dello stile. Utilizzato da Mapbox o dalle future API di stile.","Sprite URL":"URL Sprite","Glyphs URL":"URL Glyphs",Center:A,Bearing:U,Pitch:O,"Light anchor":"Ancora della luce","Light color":"Colore della luce","Light intensity":"Intensità della luce","Light position":"Posizione della luce","Terrain source":"Sorgente del terreno","Terrain exaggeration":Line truncated
//# sourceMappingURL=translation-BYOLCo4p.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-BYOLCo4p.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
const e="ベース",t="デフォルト",o="ストップ",r="ズーム",s="検査",a="開く",n="保存",i="表示",l="ヘルプ",c="コメント",p="ソース",u="タイプ",d="フィルタ",y="レイヤー",h="削除",S="複製",L="表示",f="非表示",m="レイヤー",R="畳む",U="展開",O="検索",T="デバッグ",I="設定",v="キャンセル",g="名前",M="所有者",b="中央",C="方位",D="ピッチ",N="ショートカット",J="画像",P="動画",x="ソース一覧",A="GeoJSON",w="クラスタ",E="エンコーディング",G="言語",k={"Input value":"入力値","Data value":"データ値","Output value":"値",Function:"関数","Select a type of data scale (default is 'categorical').":"データスケールの種類を選択してください(デフォルトは「categorical」です)。",Base:e,"Input a data property to base styles off of.":"スタイルのベースとなるデータプロパティを入力してください。",Default:t,Stops:o,Zoom:r,"Add stop":"ストップを追加","Convert to expression":"フィルタ式に変換","Remove zoom level from stop":"ズームレベルをストップから削除","Revert from expression":"式から戻す","Delete expression":"式を削除","Convert property into a zoom function":"プロパティをズーム関数に変換する","Convert property to data function":"プロパティをデータ関数に変換する","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"レイヤ<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"レイヤへ切替",Map:"地図",Inspect:s,"Deuteranopia filter":"緑色盲フィルタ","Protanopia filter":"赤色盲フィルタ","Tritanopia filter":"青色盲フィルタ","Achromatopsia filter":"全色盲フィルタ","Layers list":"レイヤー一覧","Layer editor":"レイヤーエディタ","Map view":"地図画面","Maputnik on GitHub":"GitHubのMaputnik",Open:a,Save:n,"Data Sources":"データソース","Style Settings":"スタイル設定",View:i,"Color accessibility":"色のアクセシビリティ",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。",Comments:c,"Comment...":"コメントを書く","Max Zoom":"最大ズーム","Min Zoom":"最小ズーム",Source:p,"Source Layer":"ソースレイヤ",Type:u,"Nested filters are not supported.":"ネストされたフィルタはサポートされていません。","Upgrade to expression":"式にアップグレード",Filter:d,"every filter matches":"全てのフィルタが一致","no filter matches":"フィルタが一致しない","any filter matches":"いずれかのフィルタが一致","Add filter":"フィルタを追加","You've entered an old style filter.":"旧型フィルタを使用しております。","Switch to filter editor.":"新型に変換","Delete filter block":"フィルタブロックを削除","Add value":"値を追加する","Remove array item":"配列の項目を削除","Press <1>ESC</1> to lose focus":"<1>ESC</1>を押すとフォーカスが外れます","Must provide protocol: <1>https://</1>":"プロトコルを指定してください: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"プロトコルを指定してください: <1>http://</1> または <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。","General layout properties":"一般レイアウトプロパティ","Text layout properties":"文字レイアウトプロパティ","Icon layout properties":"アイコンレイアウトプロパティ","Text paint properties":"文字ペイントプロパティ","Icon paint properties":"アイコンペイントプロパティ","Paint properties":"ペイントプロパティ","Layout properties":"レイアウトプロパティ",Layer:y,"JSON Editor":"JSONエディタ",Delete:h,Duplicate:S,Show:L,Hide:f,"Move layer up":"上に移動","Move layer down":"下に移動","Layer: {{layerId}}":"レイヤー {{layerId}}",Layers:m,Collapse:R,Expand:U,"Add Layer":"レイヤー追加",Search:O,"Zoom:":"ズーム:","Close popup":"ポップアップを閉じる","cursor:":"カーソル","center:":"中央:","rotation:":"回転角度:","Close modal":"モーダルを閉じる","Layer ID already exists":"レイヤーIDは既に存在します",Debug:T,Options:I,"Save Style":"スタイルを保存","Save the JSON style to your computer.":"JSONスタイルをコンピュータに保存します。","Save as":"名前を付けて保存","Create HTML":"HTMLを作成",Cancel:v,"Open Style":"スタイルを開く","Open local Style":"ローカルスタイルを開く","Open Line truncated
//# sourceMappingURL=translation-C7LKy5U2.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-C7LKy5U2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="Basis",t="Standard",n="Stopps",o="Zoom",r="Untersuchen",i="Öffnen",s="Speichern",a="Ansicht",l="Hilfe",u="Kommentare",c="Quelle",d="Typ",h="Filter",p="Ebene",f="Löschen",S="Duplizieren",m="Anzeigen",g="Verstecken",y="Ebenen",b="Einklappen",L="Ausklappen",k="Suche",R="Debug",v="Optionen",D="Abbrechen",U="Name",T="Besitzer",M="Mittelpunkt",z="Ausrichtung",I="Neigung",O="Shortcuts",E="Bild",C="Video",A="Quellen",w="GeoJSON",N="Cluster",P="Kodierung",F="Deckkraft",x="Radius",J="Farbe",Z="Sprache",G="Breite",Q="Höhe",V="Feld",K="Größe",B={"Input value":"Eingabewert","Data value":"Datenwert","Output value":"Ausgabewert",Function:"Funktion","Select a type of data scale (default is 'categorical').":"Wähle eine Art Datenskala (Standard ist 'kategorisch').",Base:e,"Input a data property to base styles off of.":"Gib eine Dateneigenschaft ein, um Stile darauf zu basieren.",Default:t,Stops:n,Zoom:o,"Add stop":"Stopp hinzufügen","Convert to expression":"In Ausdruck umwandeln","Remove zoom level from stop":"Zoom-Stufe vom Stopp entfernen","Revert from expression":"Vom Ausdruck zurücksetzen","Delete expression":"Ausdruck löschen","Convert property into a zoom function":"Eigenschaft in eine Zoom-Funktion umwandeln","Convert property to data function":"Eigenschaft in eine Datenfunktion umwandeln","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Ebene <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"zur Ebene wechseln",Map:"Karte",Inspect:r,"Deuteranopia filter":"Deuteranopie-Filter","Protanopia filter":"Protanopie-Filter","Tritanopia filter":"Tritanopie-Filter","Achromatopsia filter":"Achromatopsie-Filter","Layers list":"Ebenenliste","Layer editor":"Ebenen-Editor","Map view":"Kartenansicht","Maputnik on GitHub":"Maputnik auf GitHub",Open:i,Save:s,"Data Sources":"Datenquellen","Style Settings":"Stileinstellungen",View:a,"Color accessibility":"Farbzugänglichkeit",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Kommentare zur aktuellen Ebene. Das ist nicht standardmäßig und nicht in der Spezifikation.",Comments:u,"Comment...":"Dein Kommentar...","Max Zoom":"Max-Zoom","Min Zoom":"Min-Zoom",Source:c,"Source Layer":"Quellenebene",Type:d,"Nested filters are not supported.":"Verschachtelte Filter werden nicht unterstützt.","Upgrade to expression":"Aufrüsten zu Ausdruck",Filter:h,"every filter matches":"alle Filter passen","no filter matches":"kein Filter passt","any filter matches":"irgendein Filter passt","Add filter":"Filter hinzufügen","You've entered an old style filter.":"Du hast einen alten Filter-Stil eingegeben.","Switch to filter editor.":"Zum Filter-Editor wechseln.","Delete filter block":"Filterblock löschen","Add value":"Wert hinzufügen","Remove array item":"Element aus Array entfernen","Press <1>ESC</1> to lose focus":"Drück <1>ESC</1>, um den Fokus zu verlieren","Must provide protocol: <1>https://</1>":"Protokoll erforderlich: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protokoll erforderlich: <1>http://</1> oder <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"Die CORS-Politik erlaubt es nicht, Ressourcen über http von https zu laden, benutze eine <1>https://</1>-Domain",Layer:p,"JSON Editor":"JSON-Editor",Delete:f,Duplicate:S,Show:m,Hide:g,"Move layer up":"Ebene nach oben verschieben","Move layer down":"Ebene nach unten verschieben","Layer: {{layerId}}":"Ebene: {{layerId}}",Layers:y,Collapse:b,Expand:L,"Add Layer":"Ebene hinzufügen","Layer ID already exists":"Layer-ID existiert bereits",Search:k,"Zoom:":"Zoom:","Close popup":"Popup schließen","cursor:":"Mauszeiger:","center:":"Zentrum:","rotation:":"Rotation:","Close modal":"Modale Fenster schließen",Debug:R,Options:v,"Save Style":"Stil Speichern","Save the JSON style to your computer.":"Speichere den JSON Stil auf deinem Computer.","Save as":"Speichern unter","Create HTML":"HTML erstellen",Cancel:D,"Open Style":"Stil öffnen","Open local Style":"Lokalen Stil öffnen","Open a local JSON style from your computer.":"Öffne einen lokalen JSON Stil von deinem Computer.","Load from URL":"Von URL laden","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Von einer URL laden. Beachte, dass die URL <1>CORS aktiviert</1> haben muss.","Style URL":"Stil-URL","Enter URL...":"URL eingeben...","Gallery Styles":"Galerie-Stile","Open one of the publicly available styles to start from.":"Öffne einen der öffentlich verfügbaren Stile, um zu starten.","Loading style":"Stil wird geladen","Loading: {{requestUrl}}":"Lädt: {{requestUrl}}",Name:U,Owner:T,"Owner ID of the style. Used by Mapbox or future style APIs.":"Besitzer-ID des Stils. Wird von Mapbox oder zukünftigen Style-APIs verwendet.","Sprite URL":"Sprite-URL","Glyphs URL":"Glyphen-URL",Center:M,Bearing:z,Pitch:I,"Light anchor":"Lichtanker","Light color":"Lichtfarbe","Light intensity":"LichtintensitäLine truncated
//# sourceMappingURL=translation-CaB-Jdko.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-CaB-Jdko.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
const e="Basis",t="Standard",n="Stopps",o="Zoom",r="Untersuchen",i="Öffnen",s="Speichern",a="Ansicht",l="Hilfe",u="Kommentare",c="Quelle",d="Typ",h="Filter",p="Ebene",f="Löschen",S="Duplizieren",m="Anzeigen",g="Verstecken",y="Ebenen",b="Einklappen",L="Ausklappen",k="Suche",R="Debug",v="Optionen",D="Abbrechen",U="Name",T="Besitzer",M="Mittelpunkt",z="Ausrichtung",I="Neigung",O="Shortcuts",E="Bild",C="Video",A="Quellen",w="GeoJSON",N="Cluster",P="Kodierung",F="Deckkraft",x="Radius",J="Farbe",Z="Sprache",G="Breite",Q="Höhe",V="Feld",K="Größe",B={"Input value":"Eingabewert","Data value":"Datenwert","Output value":"Ausgabewert",Function:"Funktion","Select a type of data scale (default is 'categorical').":"Wähle eine Art Datenskala (Standard ist 'kategorisch').",Base:e,"Input a data property to base styles off of.":"Gib eine Dateneigenschaft ein, um Stile darauf zu basieren.",Default:t,Stops:n,Zoom:o,"Add stop":"Stopp hinzufügen","Convert to expression":"In Ausdruck umwandeln","Remove zoom level from stop":"Zoom-Stufe vom Stopp entfernen","Revert from expression":"Vom Ausdruck zurücksetzen","Delete expression":"Ausdruck löschen","Convert property into a zoom function":"Eigenschaft in eine Zoom-Funktion umwandeln","Convert property to data function":"Eigenschaft in eine Datenfunktion umwandeln","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Ebene <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"zur Ebene wechseln",Map:"Karte",Inspect:r,"Deuteranopia filter":"Deuteranopie-Filter","Protanopia filter":"Protanopie-Filter","Tritanopia filter":"Tritanopie-Filter","Achromatopsia filter":"Achromatopsie-Filter","Layers list":"Ebenenliste","Layer editor":"Ebenen-Editor","Map view":"Kartenansicht","Maputnik on GitHub":"Maputnik auf GitHub",Open:i,Save:s,"Data Sources":"Datenquellen","Style Settings":"Stileinstellungen",View:a,"Color accessibility":"Farbzugänglichkeit",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Kommentare zur aktuellen Ebene. Das ist nicht standardmäßig und nicht in der Spezifikation.",Comments:u,"Comment...":"Dein Kommentar...","Max Zoom":"Max-Zoom","Min Zoom":"Min-Zoom",Source:c,"Source Layer":"Quellenebene",Type:d,"Nested filters are not supported.":"Verschachtelte Filter werden nicht unterstützt.","Upgrade to expression":"Aufrüsten zu Ausdruck",Filter:h,"every filter matches":"alle Filter passen","no filter matches":"kein Filter passt","any filter matches":"irgendein Filter passt","Add filter":"Filter hinzufügen","You've entered an old style filter.":"Du hast einen alten Filter-Stil eingegeben.","Switch to filter editor.":"Zum Filter-Editor wechseln.","Delete filter block":"Filterblock löschen","Add value":"Wert hinzufügen","Remove array item":"Element aus Array entfernen","Press <1>ESC</1> to lose focus":"Drück <1>ESC</1>, um den Fokus zu verlieren","Must provide protocol: <1>https://</1>":"Protokoll erforderlich: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protokoll erforderlich: <1>http://</1> oder <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"Die CORS-Politik erlaubt es nicht, Ressourcen über http von https zu laden, benutze eine <1>https://</1>-Domain","General layout properties":"Allgemeine Layouteigenschaften","Text layout properties":"Text-Layouteigenschaften","Icon layout properties":"Icon-Layouteigenschaften","Text paint properties":"Text-Darstellungseigenschaften","Icon paint properties":"Icon-Darstellungseigenschaften","Paint properties":"Darstellungseigenschaften","Layout properties":"Layouteigenschaften",Layer:p,"JSON Editor":"JSON-Editor",Delete:f,Duplicate:S,Show:m,Hide:g,"Move layer up":"Ebene nach oben verschieben","Move layer down":"Ebene nach unten verschieben","Layer: {{layerId}}":"Ebene: {{layerId}}",Layers:y,Collapse:b,Expand:L,"Add Layer":"Ebene hinzufügen",Search:k,"Zoom:":"Zoom:","Close popup":"Popup schließen","cursor:":"Mauszeiger:","center:":"Zentrum:","rotation:":"Rotation:","Close modal":"Modale Fenster schließen","Layer ID already exists":"Layer-ID existiert bereits",Debug:R,Options:v,"Save Style":"Stil Speichern","Save the JSON style to your computer.":"Speichere den JSON Stil auf deinem Computer.","Save as":"Speichern unter","Create HTML":"HTML erstellen",Cancel:D,"Open Style":"Stil öffnen","Open local Style":"Lokalen Stil öffnen","Open a local JSON style from your computer.":"Öffne einen lokalen JSON Stil von deinem Computer.","Load from URL":"Von URL laden","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Von einer URL laden. Beachte, dass die URL <1>CORS aktiviert</1> haben muss.","Style URL":"Stil-URL","Enter URL...":"URL eingeben...","Gallery Styles":"Galerie-Stile","Open one of the publicly available styles to start from.":"Öffne einen der öffentlich verfügbaren Stile, um zu starten.","Loading style":"Stil wird geladen","Loading:Line truncated
//# sourceMappingURL=translation-D-SdexDk.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-D-SdexDk.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
const e="Base",r="Par défaut",t="Arrêts",o="Zoom",s="Inspecter",a="Ouvrir",i="Enregistrer",n="Vue",l="Aide",u="Commentaires",c="Source",d="Type",p="Filtre",m="Calque",y="Supprimer",h="Dupliquer",S="Afficher",f="Cacher",v="Calques",L="Réduire",g="Développer",R="Recherche",C="Déboguer",b="Options",O="Annuler",T="Nom",U="Propriétaire",D="Centre",A="Orientation",I="Inclinaison",P="Raccourcis",M="Image",x="Vidéo",J="Sources",N="GeoJSON",q="Cluster",z="Encodage",E="Langue",V={"Input value":"Valeur d'entrée","Data value":"Valeur des données","Output value":"Valeur de sortie",Function:"Fonction","Select a type of data scale (default is 'categorical').":"Sélectionnez un type d'échelle de données (par défaut 'categorical').",Base:e,"Input a data property to base styles off of.":"Entrez une propriété de données pour baser les styles.",Default:r,Stops:t,Zoom:o,"Add stop":"Ajouter un arrêt","Convert to expression":"Convertir en expression","Remove zoom level from stop":"Supprimer le niveau de zoom de l'arrêt","Revert from expression":"Annuler l'expression","Delete expression":"Supprimer l'expression","Convert property into a zoom function":"Convertir la propriété en fonction de zoom","Convert property to data function":"Convertir la propriété en fonction de données","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Calque <1>{formatLayerId(layerId)}</1> : {parsed.data.message}","switch to layer":"changer de calque",Map:"Carte",Inspect:s,"Deuteranopia filter":"Filtre Deutéranopie","Protanopia filter":"Filtre Protanopie","Tritanopia filter":"Filtre Tritanopie","Achromatopsia filter":"Filtre Achromatopsie","Layers list":"Liste des calques","Layer editor":"Éditeur de calque","Map view":"Vue de la carte","Maputnik on GitHub":"Maputnik sur GitHub",Open:a,Save:i,"Data Sources":"Sources de données","Style Settings":"Paramètres du style",View:n,"Color accessibility":"Accessibilité des couleurs",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Commentaires pour le calque actuel. Ceci n'est pas standard et n'est pas dans la spécification.",Comments:u,"Comment...":"Votre commentaire...","Max Zoom":"Zoom max","Min Zoom":"Zoom min",Source:c,"Source Layer":"Calque Source",Type:d,"Nested filters are not supported.":"Les filtres imbriqués ne sont pas pris en charge.","Upgrade to expression":"Mettre à niveau vers une expression",Filter:p,"every filter matches":"tous les filtres correspondent","no filter matches":"aucun filtre ne correspond","any filter matches":"l'un des filtres correspond","Add filter":"Ajouter un filtre","You've entered an old style filter.":"Vous avez entré un ancien style de filtre.","Switch to filter editor.":"Passer à l'éditeur de filtre.","Delete filter block":"Supprimer le bloc de filtre","Add value":"Ajouter une valeur","Remove array item":"Supprimer l'élément de tableau","Press <1>ESC</1> to lose focus":"Appuyez sur <1>Échap</1> pour perdre le focus","Must provide protocol: <1>https://</1>":"Protocole requis : <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocole requis : <1>http://</1> ou <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politique CORS ne permet pas de récupérer des ressources servies sur http depuis https, utilisez un protocole <1>https://</1>","General layout properties":"Propriétés générales de mise en page","Text layout properties":"Propriétés de mise en page du texte","Icon layout properties":"Propriétés de mise en page de l'icône","Text paint properties":"Propriétés de peinture du texte","Icon paint properties":"Propriétés de peinture de l'icône","Paint properties":"Propriétés de peinture","Layout properties":"Propriétés de mise en page",Layer:m,"JSON Editor":"Éditeur JSON",Delete:y,Duplicate:h,Show:S,Hide:f,"Move layer up":"Monter le calque","Move layer down":"Descendre le calque","Layer: {{layerId}}":"Calque : {{layerId}}",Layers:v,Collapse:L,Expand:g,"Add Layer":"Ajouter un calque",Search:R,"Zoom:":"Zoom :","Close popup":"Fermer la fenêtre","cursor:":"curseur :","center:":"centre :","rotation:":"rotation :","Close modal":"Fermer la fenêtre modale","Layer ID already exists":"L'identifiant du calque existe déjà",Debug:C,Options:b,"Save Style":"Enregistrer le style","Save the JSON style to your computer.":"Enregistrer le style JSON sur votre ordinateur.","Save as":"Enregistrer sous","Create HTML":"Créer le HTML",Cancel:O,"Open Style":"Ouvrir le style","Open local Style":"Ouvrir un style local","Open a local JSON style from your computer.":"Ouvrir un style JSON local depuis votre ordinateur.","Load from URL":"Charger depuis une URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Charger depuis une URL. Notez que l'URL doit avoir les <1>CORS activés</1>.","Style URL":"URL du style","Enter URL...":"Entrez l'URL...","Gallery Styles":"Styles de la galeriLine truncated
//# sourceMappingURL=translation-DksxRINh.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-DksxRINh.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="ベース",t="デフォルト",o="ストップ",r="ズーム",s="検査",a="開く",n="保存",i="表示",l="ヘルプ",c="コメント",p="ソース",u="タイプ",d="フィルタ",y="レイヤー",h="削除",S="複製",L="表示",f="非表示",m="レイヤー",R="畳む",U="展開",O="検索",T="デバッグ",I="設定",v="キャンセル",g="名前",M="所有者",b="中央",C="方位",D="ピッチ",N="ショートカット",J="画像",P="動画",x="ソース一覧",A="GeoJSON",w="クラスタ",E="エンコーディング",G="言語",k={"Input value":"入力値","Data value":"データ値","Output value":"値",Function:"関数","Select a type of data scale (default is 'categorical').":"データスケールの種類を選択してください(デフォルトは「categorical」です)。",Base:e,"Input a data property to base styles off of.":"スタイルのベースとなるデータプロパティを入力してください。",Default:t,Stops:o,Zoom:r,"Add stop":"ストップを追加","Convert to expression":"フィルタ式に変換","Remove zoom level from stop":"ズームレベルをストップから削除","Revert from expression":"式から戻す","Delete expression":"式を削除","Convert property into a zoom function":"プロパティをズーム関数に変換する","Convert property to data function":"プロパティをデータ関数に変換する","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"レイヤ<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"レイヤへ切替",Map:"地図",Inspect:s,"Deuteranopia filter":"緑色盲フィルタ","Protanopia filter":"赤色盲フィルタ","Tritanopia filter":"青色盲フィルタ","Achromatopsia filter":"全色盲フィルタ","Layers list":"レイヤー一覧","Layer editor":"レイヤーエディタ","Map view":"地図画面","Maputnik on GitHub":"GitHubのMaputnik",Open:a,Save:n,"Data Sources":"データソース","Style Settings":"スタイル設定",View:i,"Color accessibility":"色のアクセシビリティ",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。",Comments:c,"Comment...":"コメントを書く","Max Zoom":"最大ズーム","Min Zoom":"最小ズーム",Source:p,"Source Layer":"ソースレイヤ",Type:u,"Nested filters are not supported.":"ネストされたフィルタはサポートされていません。","Upgrade to expression":"式にアップグレード",Filter:d,"every filter matches":"全てのフィルタが一致","no filter matches":"フィルタが一致しない","any filter matches":"いずれかのフィルタが一致","Add filter":"フィルタを追加","You've entered an old style filter.":"旧型フィルタを使用しております。","Switch to filter editor.":"新型に変換","Delete filter block":"フィルタブロックを削除","Add value":"値を追加する","Remove array item":"配列の項目を削除","Press <1>ESC</1> to lose focus":"<1>ESC</1>を押すとフォーカスが外れます","Must provide protocol: <1>https://</1>":"プロトコルを指定してください: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"プロトコルを指定してください: <1>http://</1> または <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。",Layer:y,"JSON Editor":"JSONエディタ",Delete:h,Duplicate:S,Show:L,Hide:f,"Move layer up":"上に移動","Move layer down":"下に移動","Layer: {{layerId}}":"レイヤー {{layerId}}",Layers:m,Collapse:R,Expand:U,"Add Layer":"レイヤー追加","Layer ID already exists":"レイヤーIDは既に存在します",Search:O,"Zoom:":"ズーム:","Close popup":"ポップアップを閉じる","cursor:":"カーソル","center:":"中央:","rotation:":"回転角度:","Close modal":"モーダルを閉じる",Debug:T,Options:I,"Save Style":"スタイルを保存","Save the JSON style to your computer.":"JSONスタイルをコンピュータに保存します。","Save as":"名前を付けて保存","Create HTML":"HTMLを作成",Cancel:v,"Open Style":"スタイルを開く","Open local Style":"ローカルスタイルを開く","Open a local JSON style from your computer.":"コンピュータからローカルJSONスタイルを開きます。","Load from URL":"URLから読み込む","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"URLから読み込む。注意: URLは <1>CORSを有効にする</1> 必要があります。","Style URL":"スタイルURL","Enter URL...":"URLを入力","Gallery Styles":"ギャラリースタイル","OpenLine truncated
//# sourceMappingURL=translation-J5Mg3mnT.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-J5Mg3mnT.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="בסיס",t="ברירת המחדל",o="עצירות",s="זום",r="בדיקה",a="פתיחה",n="שמור",c="תצוגה",i="עזרה",l="הערות",p="מקור",d="סוג",u="סינון",y="שכבה",h="מחיקה",S="שכפול",f="הצגה",m="הסתרה",L="שכבות",T="הקטנה",O="הגדלה",R="חיפוש",v="דיבאג",g="אפשרויות",b="ביטול",M="שם",U="שייך ל",I="מרכז",C="כיוון",N="זווית",P="קיצורי דרך",D="תמונה",J="וידאו",A="מקורות",k="GeoJSON",w="קיבוץ",x="קידוד",E="שפה",G={"Input value":"ערך קבלה","Data value":"ערך מידע","Output value":"ערך החזרה",Function:"פונקציה","Select a type of data scale (default is 'categorical').":"בחרו סוג מידע לטובת הגדלה (ברירת המחדל היא קטגוריה)",Base:e,"Input a data property to base styles off of.":"הכניסו מידע עליו יש לבסס את הסטייל",Default:t,Stops:o,Zoom:s,"Add stop":"הוספת עצירה","Convert to expression":"המחרה לביטוי","Remove zoom level from stop":"הסרת רמת זום מעצירה","Revert from expression":"החזרה מביטוי","Delete expression":"מחיקת ביטוי","Convert property into a zoom function":"המרה לפונקציית זום","Convert property to data function":"המרה לפונקציית מידע","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"שכבה <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"שינוי לשכבה",Map:"מפה",Inspect:r,"Deuteranopia filter":"Deuteranopia filter","Protanopia filter":"Protanopia filter","Tritanopia filter":"Tritanopia filter","Achromatopsia filter":"Achromatopsia filter","Layers list":"רשימת שכבות","Layer editor":"עורך השכבות","Map view":"תצוגת מפה","Maputnik on GitHub":"מפוטניק בגיטהב",Open:a,Save:n,"Data Sources":"מקורות מידע","Style Settings":"הגדרות הסטייל",View:c,"Color accessibility":"נגישות צבעים",Help:i,"Comments for the current layer. This is non-standard and not in the spec.":"הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות",Comments:l,"Comment...":"הערה...","Max Zoom":"זום מקסימאלי","Min Zoom":"זום מינימאלי",Source:p,"Source Layer":"שכבת מקור",Type:d,"Nested filters are not supported.":"סינונים מקוננים אינם נתמכים","Upgrade to expression":"שדרוג לביטוי",Filter:u,"every filter matches":"כל הסינונים מתאימים","no filter matches":"אף סינון אינו מתאים","any filter matches":"אחד הסינוים מתאימים","Add filter":"הוספת סינון","You've entered an old style filter.":"הכנסתם סינון מסוג ישן,","Switch to filter editor.":"עברו לעורך הסינונים","Delete filter block":"מחיקת גוש מסנן","Add value":"הוספת ערך","Remove array item":"הסרת איבר מערך","Press <1>ESC</1> to lose focus":"לחצו על <1>ESC</1> על מנת לאבד פוקוס","Must provide protocol: <1>https://</1>":"נדרש פרוטוקול: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"נדרשים פרוטוקולים: <1>http://</1> או <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain",Layer:y,"JSON Editor":"עורך JSON",Delete:h,Duplicate:S,Show:f,Hide:m,"Move layer up":"העלה שכבה","Move layer down":"הורד שכבה","Layer: {{layerId}}":"שכבה: {{layerId}}",Layers:L,Collapse:T,Expand:O,"Add Layer":"הוספת שכבה","Layer ID already exists":"מזהה השכבה כבר קיים",Search:R,"Zoom:":"זום:","Close popup":"סגירת החלון","cursor:":"סמן","center:":"מרכז:","rotation:":"סיבוב:","Close modal":"סגירת חלונית",Debug:v,Options:g,"Save Style":"שמירת הסטייל","Save the JSON style to your computer.":"שמירת הסטייל JSON במחשב שלך.","Save as":"שמירה בשם","Create HTML":"צור HTML",Cancel:b,"Open Style":"פתיחת סטייל","Open local Style":"פתיחת סטייל מקומי","Open a local JSON style from your computer.":"פתיחת סטייל JSON מקומי מהמחשב שלך.","Load from URL":"פתיחה מתוך כתובת","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"פתיחה מכתובת, שימו לב: הכתובת צריכה לתמוך ב- CORS","Style URL":"כתוסת סטייל","Enter URL...":"הכנסו כתובת","Gallery Styles":"גלריית סטיילים","Open one of the publicly available styles to start from.":"פתיחת אחד הסטייליםפ הציבוריים על מנת להתחיל מהם.","Loading style":"טוען סטייל","Loading: {{reqLine truncated
//# sourceMappingURL=translation-VlVlGlnr.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-VlVlGlnr.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
const e="基础",t="默认",o="停靠点",s="缩放",r="检查",a="打开",n="保存",i="视图",l="帮助",c="注释",p="源",u="类型",d="过滤器",y="图层",h="删除",S="复制",L="显示",f="隐藏",m="图层",R="折叠",U="展开",T="搜索",O="调试",I="选项",v="取消",g="名称",b="所有者",M="中心",C="方位",N="俯仰角",D="快捷键",J="图像",P="视频",x="源列表",A="GeoJSON",w="聚合",G="编码",k="语言",E={"Input value":"输入值","Data value":"数据值","Output value":"输出值",Function:"函数","Select a type of data scale (default is 'categorical').":"选择数据尺度的类型(默认为“分类”)。",Base:e,"Input a data property to base styles off of.":"输入一个数据属性作为样式的基础。",Default:t,Stops:o,Zoom:s,"Add stop":"添加停靠点","Convert to expression":"转换为表达式","Remove zoom level from stop":"从停靠点移除缩放级别","Revert from expression":"从表达式恢复","Delete expression":"删除表达式","Convert property into a zoom function":"将属性转换为缩放函数","Convert property to data function":"将属性转换为数据函数","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"图层<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"切换到图层",Map:"地图",Inspect:r,"Deuteranopia filter":"绿色盲滤镜","Protanopia filter":"红色盲滤镜","Tritanopia filter":"蓝色盲滤镜","Achromatopsia filter":"全色盲滤镜","Layers list":"图层列表","Layer editor":"图层编辑器","Map view":"地图视图","Maputnik on GitHub":"GitHub上的Maputnik",Open:a,Save:n,"Data Sources":"数据源","Style Settings":"样式设置",View:i,"Color accessibility":"颜色可访问性",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"当前图层的注释。注意:这不是标准功能,可能与其他库不兼容。",Comments:c,"Comment...":"写注释...","Max Zoom":"最大缩放","Min Zoom":"最小缩放",Source:p,"Source Layer":"源图层",Type:u,"Nested filters are not supported.":"不支持嵌套过滤器。","Upgrade to expression":"升级为表达式",Filter:d,"every filter matches":"每个过滤器都匹配","no filter matches":"没有过滤器匹配","any filter matches":"任何过滤器匹配","Add filter":"添加过滤器","You've entered an old style filter.":"您输入了一个旧风格的过滤器。","Switch to filter editor.":"切换到过滤器编辑器。","Delete filter block":"删除过滤器块","Add value":"添加值","Remove array item":"移除数组项目","Press <1>ESC</1> to lose focus":"按 <1>ESC</1> 键退出焦点","Must provide protocol: <1>https://</1>":"必须提供协议:<1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"必须提供协议:<1>http://</1> 或 <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS 策略不允许从 https 访问通过 http 提供的资源,请使用 <1>https://</1> 域名。","General layout properties":"常规布局属性","Text layout properties":"文本布局属性","Icon layout properties":"图标布局属性","Text paint properties":"文本绘制属性","Icon paint properties":"图标绘制属性","Paint properties":"绘制属性","Layout properties":"布局属性",Layer:y,"JSON Editor":"JSON编辑器",Delete:h,Duplicate:S,Show:L,Hide:f,"Move layer up":"向上移动图层","Move layer down":"向下移动图层","Layer: {{layerId}}":"图层: {{layerId}}",Layers:m,Collapse:R,Expand:U,"Add Layer":"添加图层",Search:T,"Zoom:":"缩放:","Close popup":"关闭弹出窗口","cursor:":"光标:","center:":"中心:","rotation:":"旋转:","Close modal":"关闭模态框","Layer ID already exists":"图层ID已存在",Debug:O,Options:I,"Save Style":"保存样式","Save the JSON style to your computer.":"将JSON样式保存到您的计算机。","Save as":"另存为","Create HTML":"创建HTML",Cancel:v,"Open Style":"打开样式","Open local Style":"打开本地样式","Open a local JSON style from your computer.":"从您的计算机打开本地JSON样式。","Load from URL":"从URL加载","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"从URL加载。注意:URL必须启用 <1>CORS</1>。","Style URL":"样式URL","Enter URL...":"输入URL...","Gallery Styles":"画廊样式","Open one of the publicly available styles to start from.":"打开一个公开可用的样式开始。","Loading style":"正在加载样式","Loading: {{requestUrl}}":"正在加载: {{requestUrl}}",Name:g,Owner:b,"Owner ID of the style. Used by Mapbox or future style APIs.":"样式的所有者ID。由Mapbox或未来的样式API使用。","Sprite URL":"精灵URL","Glyphs URL":"字形URL",Center:M,Bearing:C,Pitch:N,"Light anchor":"光源锚点","Light color":"光源颜色","Light intensity":"光源强度","Light position":"光源位置","Terrain source":"地形源","Terrain exaggeration":"Line truncated
//# sourceMappingURL=translation-d6S34pLX.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-d6S34pLX.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
const e="בסיס",t="ברירת המחדל",o="עצירות",r="זום",s="בדיקה",a="פתיחה",n="שמור",i="תצוגה",c="עזרה",l="הערות",p="מקור",u="סוג",d="סינון",y="שכבה",h="מחיקה",S="שכפול",f="הצגה",m="הסתרה",L="שכבות",T="הקטנה",O="הגדלה",R="חיפוש",v="דיבאג",g="אפשרויות",b="ביטול",I="שם",M="שייך ל",U="מרכז",C="כיוון",N="זווית",P="קיצורי דרך",D="תמונה",J="וידאו",A="מקורות",x="GeoJSON",k="קיבוץ",w="קידוד",E="שפה",G={"Input value":"ערך קבלה","Data value":"ערך מידע","Output value":"ערך החזרה",Function:"פונקציה","Select a type of data scale (default is 'categorical').":"בחרו סוג מידע לטובת הגדלה (ברירת המחדל היא קטגוריה)",Base:e,"Input a data property to base styles off of.":"הכניסו מידע עליו יש לבסס את הסטייל",Default:t,Stops:o,Zoom:r,"Add stop":"הוספת עצירה","Convert to expression":"המחרה לביטוי","Remove zoom level from stop":"הסרת רמת זום מעצירה","Revert from expression":"החזרה מביטוי","Delete expression":"מחיקת ביטוי","Convert property into a zoom function":"המרה לפונקציית זום","Convert property to data function":"המרה לפונקציית מידע","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"שכבה <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"שינוי לשכבה",Map:"מפה",Inspect:s,"Deuteranopia filter":"Deuteranopia filter","Protanopia filter":"Protanopia filter","Tritanopia filter":"Tritanopia filter","Achromatopsia filter":"Achromatopsia filter","Layers list":"רשימת שכבות","Layer editor":"עורך השכבות","Map view":"תצוגת מפה","Maputnik on GitHub":"מפוטניק בגיטהב",Open:a,Save:n,"Data Sources":"מקורות מידע","Style Settings":"הגדרות הסטייל",View:i,"Color accessibility":"נגישות צבעים",Help:c,"Comments for the current layer. This is non-standard and not in the spec.":"הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות",Comments:l,"Comment...":"הערה...","Max Zoom":"זום מקסימאלי","Min Zoom":"זום מינימאלי",Source:p,"Source Layer":"שכבת מקור",Type:u,"Nested filters are not supported.":"סינונים מקוננים אינם נתמכים","Upgrade to expression":"שדרוג לביטוי",Filter:d,"every filter matches":"כל הסינונים מתאימים","no filter matches":"אף סינון אינו מתאים","any filter matches":"אחד הסינוים מתאימים","Add filter":"הוספת סינון","You've entered an old style filter.":"הכנסתם סינון מסוג ישן,","Switch to filter editor.":"עברו לעורך הסינונים","Delete filter block":"מחיקת גוש מסנן","Add value":"הוספת ערך","Remove array item":"הסרת איבר מערך","Press <1>ESC</1> to lose focus":"לחצו על <1>ESC</1> על מנת לאבד פוקוס","Must provide protocol: <1>https://</1>":"נדרש פרוטוקול: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"נדרשים פרוטוקולים: <1>http://</1> או <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain","General layout properties":"תכונות פריסה כלליות","Text layout properties":"תכונות פריסה של טקסט","Icon layout properties":"תכונות פריסה של סמליל","Text paint properties":"תכונות ציור של טקסט","Icon paint properties":"תכונות ציור של סמליל","Paint properties":"תכונות ציור","Layout properties":"תכונות פריסה",Layer:y,"JSON Editor":"עורך JSON",Delete:h,Duplicate:S,Show:f,Hide:m,"Move layer up":"העלה שכבה","Move layer down":"הורד שכבה","Layer: {{layerId}}":"שכבה: {{layerId}}",Layers:L,Collapse:T,Expand:O,"Add Layer":"הוספת שכבה",Search:R,"Zoom:":"זום:","Close popup":"סגירת החלון","cursor:":"סמן","center:":"מרכז:","rotation:":"סיבוב:","Close modal":"סגירת חלונית","Layer ID already exists":"מזהה השכבה כבר קיים",Debug:v,Options:g,"Save Style":"שמירת הסטייל","Save the JSON style to your computer.":"שמירת הסטייל JSON במחשב שלך.","Save as":"שמירה בשם","Create HTML":"צור HTML",Cancel:b,"Open Style":"פתיחת סטייל","Open local Style":"פתיחת סטייל מקומי","Open a local JSON style from your computer.":"פתיחת סטייל JSON מקומי מהמחשב שלך.","Load from URL":"פתיחה מתוך כתובת","Load from a URL. Note that the URL must have <1>CORS enabled</1>Line truncated
//# sourceMappingURL=translation-nRlFu3v0.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-nRlFu3v0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="基础",t="默认",o="停靠点",s="缩放",r="检查",a="打开",n="保存",i="视图",l="帮助",c="注释",p="源",u="类型",d="过滤器",y="图层",h="删除",S="复制",L="显示",f="隐藏",m="图层",R="折叠",U="展开",T="搜索",O="调试",I="选项",v="取消",g="名称",b="所有者",M="中心",C="方位",N="俯仰角",D="快捷键",J="图像",P="视频",x="源列表",A="GeoJSON",w="聚合",G="编码",k="语言",E={"Input value":"输入值","Data value":"数据值","Output value":"输出值",Function:"函数","Select a type of data scale (default is 'categorical').":"选择数据尺度的类型(默认为“分类”)。",Base:e,"Input a data property to base styles off of.":"输入一个数据属性作为样式的基础。",Default:t,Stops:o,Zoom:s,"Add stop":"添加停靠点","Convert to expression":"转换为表达式","Remove zoom level from stop":"从停靠点移除缩放级别","Revert from expression":"从表达式恢复","Delete expression":"删除表达式","Convert property into a zoom function":"将属性转换为缩放函数","Convert property to data function":"将属性转换为数据函数","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"图层<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"切换到图层",Map:"地图",Inspect:r,"Deuteranopia filter":"绿色盲滤镜","Protanopia filter":"红色盲滤镜","Tritanopia filter":"蓝色盲滤镜","Achromatopsia filter":"全色盲滤镜","Layers list":"图层列表","Layer editor":"图层编辑器","Map view":"地图视图","Maputnik on GitHub":"GitHub上的Maputnik",Open:a,Save:n,"Data Sources":"数据源","Style Settings":"样式设置",View:i,"Color accessibility":"颜色可访问性",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"当前图层的注释。注意:这不是标准功能,可能与其他库不兼容。",Comments:c,"Comment...":"写注释...","Max Zoom":"最大缩放","Min Zoom":"最小缩放",Source:p,"Source Layer":"源图层",Type:u,"Nested filters are not supported.":"不支持嵌套过滤器。","Upgrade to expression":"升级为表达式",Filter:d,"every filter matches":"每个过滤器都匹配","no filter matches":"没有过滤器匹配","any filter matches":"任何过滤器匹配","Add filter":"添加过滤器","You've entered an old style filter.":"您输入了一个旧风格的过滤器。","Switch to filter editor.":"切换到过滤器编辑器。","Delete filter block":"删除过滤器块","Add value":"添加值","Remove array item":"移除数组项目","Press <1>ESC</1> to lose focus":"按 <1>ESC</1> 键退出焦点","Must provide protocol: <1>https://</1>":"必须提供协议:<1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"必须提供协议:<1>http://</1> 或 <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS 策略不允许从 https 访问通过 http 提供的资源,请使用 <1>https://</1> 域名。",Layer:y,"JSON Editor":"JSON编辑器",Delete:h,Duplicate:S,Show:L,Hide:f,"Move layer up":"向上移动图层","Move layer down":"向下移动图层","Layer: {{layerId}}":"图层: {{layerId}}",Layers:m,Collapse:R,Expand:U,"Add Layer":"添加图层","Layer ID already exists":"图层ID已存在",Search:T,"Zoom:":"缩放:","Close popup":"关闭弹出窗口","cursor:":"光标:","center:":"中心:","rotation:":"旋转:","Close modal":"关闭模态框",Debug:O,Options:I,"Save Style":"保存样式","Save the JSON style to your computer.":"将JSON样式保存到您的计算机。","Save as":"另存为","Create HTML":"创建HTML",Cancel:v,"Open Style":"打开样式","Open local Style":"打开本地样式","Open a local JSON style from your computer.":"从您的计算机打开本地JSON样式。","Load from URL":"从URL加载","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"从URL加载。注意:URL必须启用 <1>CORS</1>。","Style URL":"样式URL","Enter URL...":"输入URL...","Gallery Styles":"画廊样式","Open one of the publicly available styles to start from.":"打开一个公开可用的样式开始。","Loading style":"正在加载样式","Loading: {{requestUrl}}":"正在加载: {{requestUrl}}",Name:g,Owner:b,"Owner ID of the style. Used by Mapbox or future style APIs.":"样式的所有者ID。由Mapbox或未来的样式API使用。","Sprite URL":"精灵URL","Glyphs URL":"字形URL",Center:M,Bearing:C,Pitch:N,"Light anchor":"光源锚点","Light color":"光源颜色","Light intensity":"光源强度","Light position":"光源位置","Terrain source":"地形源","Terrain exaggeration":"地形夸张","Transition delay":"过渡延迟","Transition duration":"过渡持续时间","Open Layers (experimental)":"开放图层(实验性)","Shortcuts menu":"快捷方式菜单","Open modal":"打开模态框","Export modal":"导出模态框","Data Sources modal":"数据源模态框","Style Line truncated
//# sourceMappingURL=translation-xuFaS6_2.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-xuFaS6_2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2 -2
View File
@@ -37,8 +37,8 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-DRoHSTNS.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-Dx15ns3x.css">
<script type="module" crossorigin src="/maputnik/assets/index-uAlRDdVw.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-BGobTJkT.css">
</head>
<body>
<!-- From <https://github.com/hail2u/color-blindness-emulation> -->