This commit is contained in:
HarelM committed 2026-12-04 05:51:53 +00:00
1 parent 8242ff992e
commit 5c47d2a9f9
5 files changed
+99 -99

No files matched your search

+1
View File
@@ -0,0 +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{font-size:100%;font:inherit;vertical-align:baseline;border:0;margin:0;padding:0}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;box-sizing:border-box;font-size:14px}body{overflow:hidden}*,:before,:after{box-sizing:inherit}p{color:#a4a4a4;margin-top:5px;margin-bottom:5px;font-size:12px;line-height:1.3}h1{margin-bottom:10px;font-size:20px;font-weight:700}h2{margin-bottom:10px;font-size:18px;font-weight:700}h3{margin-bottom:10px;font-size:16px;font-weight:700}h4{margin-bottom:10px;font-size:14px}input:focus,textarea:focus,[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:1px auto #8e8e8e}label:hover{color:#f0f0f0}.clearfix:after{content:"";clear:both;display:table}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;width:100%;height:100%;display:flex}.maputnik-map__container--error{justify-content:center;align-items:center}.maputnik-map__container__error-message{text-align:center;margin:16px}.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{box-sizing:border-box;-webkit-user-select:none;user-select:none;vertical-align:top;font-size:12px;line-height:2;display:inline-block;position:relative}.maputnik-doc-popup{color:#a4a4a4;z-index:10;pointer-events:none;background-color:#222429;width:120px;padding:5px;font-size:10px;display:none;position:absolute;top:20px;left:0}.maputnik-doc-button{opacity:0;pointer-events:none;color:#fff;background:#191b20;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;flex:1 0;margin-top:10px;padding:5px;font-size:12px;line-height:1.5}.maputnik-doc-target:hover .maputnik-doc-popup{text-align:left;display:block}.maputnik-button{cursor:pointer;color:#a4a4a4;-webkit-user-select:none;user-select:none;box-sizing:border-box;background-color:#303237;border-width:0;border-radius:2px;padding:5px;font-size:12px;text-decoration:none;display:inline-block}.maputnik-button:hover{color:#f0f0f0;background-color:#4d5058}.maputnik-button:disabled{color:#303237;cursor:not-allowed;background-color:#242629}.maputnik-big-button{margin-top:10px;padding:10px;font-size:14px;display:inline-block}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{color:#191b20;background-color:#53b972}.maputnik-white-button{color:#191b20;background-color:#f0f0f0}.maputnik-icon-button,.maputnik-icon-button:hover:not(:disabled){background-color:#0000}.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{flex-wrap:wrap;margin:10px;display:flex}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;vertical-align:top;width:32%;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;vertical-align:top;text-align:right;width:18%;font-size:12px}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{width:32%;margin-bottom:10px;display:inline-block}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;width:18%;display:inline-block}.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{flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;cursor:pointer;text-decoration:underline}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-state-menu__menu{z-index:999999;background:#191b20;flex-direction:column;align-content:stretch;display:flex;positLine truncated
@@ -1,12 +1,12 @@
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,n)=>{let r=Object.setPrototypeOf({},null);for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&1||t(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ne(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}functionLine truncated
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,n)=>{let r=Object.setPrototypeOf({},null);for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&1||t(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ne(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(te(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}functionLine truncated
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+Pe+e+Fe}var Le=!1;function Re(e,t){if(!e||Le)return``;Le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Le=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ie(n):``}function ze(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie(`Lazy`);case 13:return e.child!==t&&t!==null?Ie(`Suspense Fallback`):Ie(`Suspense`);case 19:return Ie(`SuspenseList`);case 0:case 15:return Re(e.type,!1);case 11:return Re(e.type.render,!1);case 1:return Re(e.type,!0);case 31:return Ie(`Activity`);case 30:return Ie(`ViewTransition`);default:return``}}function Be(e){try{var t=``,n=null;do t+=ze(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var Ve=Object.prototype.hasOwnProperty,He=t.unstable_scheduleCallback,Ue=t.unstable_cancelCallback,We=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Ke=t.unstable_now,qe=t.unstable_getCurrentPriorityLevel,Je=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,Qe=t.unstable_IdlePriority,$e=t.log,et=t.unstable_setDisableYieldValue,tt=null,nt=null;function rt(e){if(typeof $e==`function`&&et(e),nt&&typeof nt.setStrictMode==`function`)try{nt.setStrictMode(tt,e)}catch{}}var it=Math.clz32?Math.clz32:st,at=Math.log,ot=Math.LN2;function st(e){return e>>>=0,e===0?32:31-(at(e)/ot|0)|0}var ct=256,lt=262144,ut=4194304;function dt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 0x8000000:return 0x8000000;case 268435456:return 268435456;case 536870912:return 536870912;case 0x40000000:return 0;default:return e}}function ft(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&0x7ffffff;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=dt(n))):i=dt(o):i=dt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=dt(n))):i=dt(o)):i=dt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function pt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-it(n),i=1<<r;t|=e[r],n&=~i}return t}function ht(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function gt(){var e=ut;return ut<<=1,!(ut&62914560)&&(ut=4194304),e}function _t(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-it(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&bt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function bt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-it(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|0x40000000|n&261930}function xt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function St(e,t){var n=t&-t;return n=n&42?1:Ct(n),(n&(e.suspendedLanes|t))===0?n:0}function Ct(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=0x8000000;break;default:e=0}return e}function wt(e){return e&=-e,2<e?8<e?e&0x7ffffff?32:268435456:8:2}function Tt(){var e=ye.p;return e===0?(e=window.event,e===void 0?32:Oh(e.type)):e}function Et(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var Dt=Math.random().toString(36).slice(2),Ot=`__reactFiber$`+Dt,kt=`__reactProps$`+Dt,At=`__reactContainer$`+Dt,jt=`__reactEvents$`+Dt,Mt=`__reactListeners$`+Dt,Nt=`__reactHandles$`+Dt,Pt=`__reactResources$`+Dt,Ft=`__reactMarker$`+Dt,It=`__reactLoad$`+Dt;function Lt(e){delete e[Ot],delete e[kt],delete e[Mt],delete e[Nt]}function Rt(e){var t;if(t=e[Ot])return t;for(var n=e.parentNode;n;){if(t=n[At]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bm(e);e!==null;){if(n=e[Ot])return n;e=bm(e)}return t}e=n,n=e.parentNode}return null}function zt(e){if(e=e[Ot]||e[At]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Vt(e){var t=e[Pt];return t||=e[Pt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ht(e){e[Ft]=!0}function Ut(e){e[It]=void 0}var Wt=new Set,Gt={};function Kt(e,t){qt(e,t),qt(e+`Capture`,t)}function qt(e,t){for(Gt[e]=t,e=0;e<t.length;e++)Wt.add(t[e])}var Jt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u207Line truncated
`).replace(ree,``)}function mp(e,t){return t=pp(t),pp(e)===t}function hp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&_n(e,``+r);else return;break;case`className`:tn(e,`class`,r);break;case`tabIndex`:tn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:tn(e,n,r);break;case`style`:bn(e,r,o);return;case`data`:if(t!==`object`){tn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&hp(e,t,`name`,a.name,a,null),hp(e,t,`formEncType`,a.formEncType,a,null),hp(e,t,`formMethod`,a.formMethod,a,null),hp(e,t,`formTarget`,a.formTarget,a,null)):(hp(e,t,`encType`,a.encType,a,null),hp(e,t,`method`,a.method,a,null),hp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Tn);return;case`onScroll`:r!=null&&np(`scroll`,e);return;case`onScrollEnd`:r!=null&&np(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=wn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:np(`beforetoggle`,e),np(`toggle`,e),en(e,`popover`,r);break;case`xlinkActuate`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:en(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Sn.get(n)||n,en(e,n,r);else return}Qt=!0}function gp(e,t,n,r,a,o){switch(n){case`style`:bn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)_n(e,``+r);else return;break;case`onScroll`:r!=null&&np(`scroll`,e);return;case`onScrollEnd`:r!=null&&np(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Tn);return;case`suppr Line truncated
`+e.stack}}var Ve=Object.prototype.hasOwnProperty,He=t.unstable_scheduleCallback,Ue=t.unstable_cancelCallback,We=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Ke=t.unstable_now,qe=t.unstable_getCurrentPriorityLevel,Je=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,Qe=t.unstable_IdlePriority,$e=t.log,et=t.unstable_setDisableYieldValue,tt=null,nt=null;function rt(e){if(typeof $e==`function`&&et(e),nt&&typeof nt.setStrictMode==`function`)try{nt.setStrictMode(tt,e)}catch{}}var it=Math.clz32?Math.clz32:st,at=Math.log,ot=Math.LN2;function st(e){return e>>>=0,e===0?32:31-(at(e)/ot|0)|0}var ct=256,lt=262144,ut=4194304;function dt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 0x8000000:return 0x8000000;case 268435456:return 268435456;case 536870912:return 536870912;case 0x40000000:return 0;default:return e}}function ft(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&0x7ffffff;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=dt(n))):i=dt(o):i=dt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=dt(n))):i=dt(o)):i=dt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function pt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-it(n),i=1<<r;t|=e[r],n&=~i}return t}function ht(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function gt(){var e=ut;return ut<<=1,!(ut&62914560)&&(ut=4194304),e}function _t(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-it(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&bt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function bt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-it(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|0x40000000|n&261930}function xt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function St(e,t){var n=t&-t;return n=n&42?1:Ct(n),(n&(e.suspendedLanes|t))===0?n:0}function Ct(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=0x8000000;break;default:e=0}return e}function wt(e){return e&=-e,2<e?8<e?e&0x7ffffff?32:268435456:8:2}function Tt(){var e=ye.p;return e===0?(e=window.event,e===void 0?32:Eh(e.type)):e}function Et(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var Dt=Math.random().toString(36).slice(2),Ot=`__reactFiber$`+Dt,kt=`__reactProps$`+Dt,At=`__reactContainer$`+Dt,jt=`__reactEvents$`+Dt,Mt=`__reactListeners$`+Dt,Nt=`__reactHandles$`+Dt,Pt=`__reactResources$`+Dt,Ft=`__reactMarker$`+Dt,It=`__reactLoad$`+Dt;function Lt(e){delete e[Ot],delete e[kt],delete e[Mt],delete e[Nt]}function Rt(e){var t;if(t=e[Ot])return t;for(var n=e.parentNode;n;){if(t=n[At]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sm(e);e!==null;){if(n=e[Ot])return n;e=Sm(e)}return t}e=n,n=e.parentNode}return null}function zt(e){if(e=e[Ot]||e[At]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Vt(e){var t=e[Pt];return t||=e[Pt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ht(e){e[Ft]=!0}function Ut(e){e[It]=void 0}var Wt=new Set,Gt={};function Kt(e,t){qt(e,t),qt(e+`Capture`,t)}function qt(e,t){for(Gt[e]=t,e=0;e<t.length;e++)Wt.add(t[e])}var Jt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u207Line truncated
`).replace(ree,``)}function mp(e,t){return t=pp(t),pp(e)===t}function hp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&_n(e,``+r);else return;break;case`className`:tn(e,`class`,r);break;case`tabIndex`:tn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:tn(e,n,r);break;case`style`:bn(e,r,o);return;case`data`:if(t!==`object`){tn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&hp(e,t,`name`,a.name,a,null),hp(e,t,`formEncType`,a.formEncType,a,null),hp(e,t,`formMethod`,a.formMethod,a,null),hp(e,t,`formTarget`,a.formTarget,a,null)):(hp(e,t,`encType`,a.encType,a,null),hp(e,t,`method`,a.method,a,null),hp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Tn);return;case`onScroll`:r!=null&&rp(`scroll`,e);return;case`onScrollEnd`:r!=null&&rp(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=wn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:rp(`beforetoggle`,e),rp(`toggle`,e),en(e,`popover`,r);break;case`xlinkActuate`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:en(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Sn.get(n)||n,en(e,n,r);else return}Qt=!0}function gp(e,t,n,r,a,o){switch(n){case`style`:bn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)_n(e,``+r);else return;break;case`onScroll`:r!=null&&rp(`scroll`,e);return;case`onScrollEnd`:r!=null&&rp(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Tn);return;case`suppr Line truncated
/* [wrapped with `+t+`] */
`)}function Io(e){return yc(e)||vc(e)||!!(kt&&e&&e[kt])}function Lo(e,t){var n=typeof e;return t??=_,!!t&&(n==`number`||n!=`symbol`&&$e.test(e))&&e>-1&&e%1==0&&e<t}function Ro(e,t,n){if(!kc(n))return!1;var r=typeof t;return(r==`number`?xc(n)&&Lo(t,n.length):r==`string`&&t in n)?hc(n[t],e):!1}function zo(e,t){if(yc(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Lc(e)?!0:Fe.test(e)||!Pe.test(e)||t!=null&&e in at(t)}function Bo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Vo(e){var t=yo(e),n=N[t];if(typeof n!=`function`||!(t in kr.prototype))return!1;if(e===n)return!0;var r=vo(n);return!!r&&e===r[0]}function Ho(e){return!!gt&&gt in e}var Uo=ft?Ec:Gl;function Wo(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||dt)}function Go(e){return e===e&&!kc(e)}function Ko(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in at(r))}}function qo(e){var t=lc(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function Jo(e,t){var n=e[1],r=t[1],i=n|r,a=i<(s|c|p),u=r==p&&n==l||r==p&&n==m&&e[7].length<=t[8]||r==(p|m)&&t[7].length<=t[8]&&n==l;if(!(a||u))return e;r&s&&(e[2]=t[2],i|=n&s?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?Ma(f,d,t[4]):d,e[4]=f?lr(e[3],o):t[4]}return d=t[5],d&&(f=e[5],e[5]=f?Na(f,d,t[6]):d,e[6]=f?lr(e[5],o):t[6]),d=t[7],d&&(e[7]=d),r&p&&(e[8]=e[8]==null?t[8]:Kt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function Yo(e){var t=[];if(e!=null)for(var n in at(e))t.push(n);return t}function Xo(e){return _t.call(e)}function Zo(e,t,i){return t=Gt(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=Gt(n.length-t,0),s=r(o);++a<o;)s[a]=n[t+a];a=-1;for(var c=r(t+1);++a<t;)c[a]=n[a];return c[t]=i(s),vn(e,this,c)}}function Qo(e,t){return t.length<2?e:di(e,ia(t,0,-1))}function $o(e,t){for(var r=e.length,i=Kt(t.length,r),a=Pa(e);i--;){var o=t[i];e[i]=Lo(o,r)?a[o]:n}return e}function es(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ts=as(ta),ns=Ft||function(e,t){return on.setTimeout(e,t)},rs=as(na);function is(e,t,n){var r=t+``;return rs(e,Fo(r,us(Ao(r),n)))}function as(e){var t=0,r=0;return function(){var i=Zt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function os(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Ji(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ss=qo(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ie,function(e,n,r,i){t.push(r?i.replace(Ke,`$1`):n||e)}),t});function cs(e){if(typeof e==`string`||Lc(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ls(e){if(e!=null){try{return pt.call(e)}catch{}try{return e+``}catch{}}return``}function us(e,t){return bn(C,function(n){var r=`_.`+n[0];t&n[1]&&!wn(e,r)&&e.push(r)}),e.sort()}function ds(e){if(e instanceof kr)return e.clone();var t=new Or(e.__wrapped__,e.__chain__);return t.__actions__=Pa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var fs=Zi(function(e,t){return Sc(e)?Qr(e,ai(t,1,Sc,!0)):[]}),ps=Zi(function(e,t){var r=Ss(t);return Sc(r)&&(r=n),Sc(e)?Qr(e,ai(t,1,Sc,!0),xo(r,2)):[]}),ms=Zi(function(e,t){var r=Ss(t);return Sc(r)&&(r=n),Sc(e)?Qr(e,ai(t,1,Sc,!0),n,r):[]});function hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Uc(n);return i<0&&(i=Gt(r+i,0)),Fn(e,xo(t,3),i)}function gs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Uc(r),a=r<0?Gt(i+a,0):Kt(a,i-1)),Fn(e,xo(t,3),a,!0)}function _s(e){return e!=null&&e.length?ai(e,1):[]}function vs(e){return e&&e.length?e[0]:n}var ys=Zi(function(e){var t=En(e,va);return t.length&&t[0]===e[0]?vi(t):[]}),bs=Zi(function(e){var t=Ss(e),r=En(e,va);return t===Ss(r)?t=n:r.pop(),r.length&&r[0]===e[0]?vi(r,xo(t,2)):[]}),xs=Zi(function(e){var t=Ss(e),r=En(e,va);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?vi(r,n,t):[]});function Ss(e){var t=e==null?0:e.length;return t?e[t-1]:n}var Cs=Zi(ws);function ws(e,t){return e&&e.length&&t&&t.length?Ki(e,t):e}var Ts=ho(function(e,t){var n=e==null?0:e.length,r=Kr(e,t);return qi(e,En(t,function(e){return Lo(e,n)?+e:e}).sort(Aa)),r});function Es(e){return e==null?e:en.call(e)}var Ds=Zi(function(e){return da(ai(e,1,Sc,!0))}),Os=Zi(function(e){var t=Ss(e);return Sc(t)&&(t=n),da(ai(e,1,Sc,!0),xo(t,2))}),ks=Zi(function(e){var t=Ss(e);return t=typeof t==`function`?t:n,da(ai(e,1,Sc,!0),n,t)});function As(e){if(!(e&&e.length))return[];var t=0;return e=Cn(e,function(e){if(Sc(e))return t=Gt(e.length,t),!0}),Gn(t,function(t){return En(e,Bn(t))})}function js(e,t){if(!(e&&e.length))return[];var r=As(e);return t==null?r:En(r,function(e){return vn(t,n,e)})}var Ms=Zi(function(e,t){return Sc(e)?Qr(e,t):[]}),Ns=Zi(function(e){return ga(Cn(e,Sc))}),Ps=Zi(function(e){var t=Ss(e);return Sc(t)&&(t=n),ga(Cn(e,Sc),xo(t,2))}),Fs=Zi(function(e){var t=Ss(e);return t=typeof t==`function`?t:n,ga(Cn(e,Sc),n,t)}),Is=Zi(As),Ls=Zi(function(e Line truncated
`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(nt,nr),n&&(c=!0,f+=`' +
@@ -25,7 +25,7 @@ __p += '`),r&&(f+=`' +
function print() { __p += __j.call(arguments, '') }
`:`;
`)+f+`return __p
}`;var g=Dl(function(){return rt(o,m+`return `+f).apply(n,s)});if(g.source=f,Tc(g))throw g;return g},N.times=function(e,t){if(e=Uc(e),e<1||e>_)return[];var n=b,r=Kt(e,b);t=xo(t),e-=b;for(var i=Gn(r,t);++n<e;)t(n);return i},N.toFinite=Hc,N.toInteger=Uc,N.toLength=Wc,N.toLower=function(e){return qc(e).toLowerCase()},N.toNumber=Gc,N.toSafeInteger=function(e){return e?qr(Uc(e),-_,_):e===0?e:0},N.toString=qc,N.toUpper=function(e){return qc(e).toUpperCase()},N.trim=function(e,t,r){if(e=qc(e),e&&(r||t===n))return qn(e);if(!e||!(t=ua(t)))return e;var i=hr(e),a=hr(t);return Sa(i,Zn(i,a),Qn(i,a)+1).join(``)},N.trimEnd=function(e,t,r){if(e=qc(e),e&&(r||t===n))return e.slice(0,gr(e)+1);if(!e||!(t=ua(t)))return e;var i=hr(e);return Sa(i,0,Qn(i,hr(t))+1).join(``)},N.trimStart=function(e,t,r){if(e=qc(e),e&&(r||t===n))return e.replace(ze,``);if(!e||!(t=ua(t)))return e;var i=hr(e);return Sa(i,Zn(i,hr(t))).join(``)},N.truncate=function(e,t){var r=30,i=`...`;if(kc(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Uc(t.length):r,i=`omission`in t?ua(t.omission):i}e=qc(e);var o=e.length;if(ir(e)){var s=hr(e);o=s.length}if(r>=o)return e;var c=r-mr(i);if(c<1)return i;var l=s?Sa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Pc(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ot(a.source,qc(Je.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(ua(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i},N.unescape=function(e){return e=qc(e),e&&ke.test(e)?e.replace(De,_r):e},N.uniqueId=function(e){var t=++ht;return qc(e)+t},N.upperCase=wl,N.upperFirst=Tl,N.each=Gs,N.eachRight=Ks,N.first=vs,Il(N,function(){var e={};return ci(N,function(t,n){mt.call(N.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),N.VERSION=`4.18.1`,bn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){N[e].placeholder=N}),bn([`drop`,`take`],function(e,t){kr.prototype[e]=function(r){r=r===n?1:Gt(Uc(r),0);var i=this.__filtered__&&!t?new kr(this):this.clone();return i.__filtered__?i.__takeCount__=Kt(r,i.__takeCount__):i.__views__.push({size:Kt(r,b),type:e+(i.__dir__<0?`Right`:``)}),i},kr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),bn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;kr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),bn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);kr.prototype[e]=function(){return this[n](1).value()[0]}}),bn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);kr.prototype[e]=function(){return this.__filtered__?new kr(this):this[n](1)}}),kr.prototype.compact=function(){return this.filter(Ml)},kr.prototype.find=function(e){return this.filter(e).head()},kr.prototype.findLast=function(e){return this.reverse().find(e)},kr.prototype.invokeMap=Zi(function(e,t){return typeof e==`function`?new kr(this):this.map(function(n){return bi(n,e,t)})}),kr.prototype.reject=function(e){return this.filter(uc(xo(e)))},kr.prototype.slice=function(e,t){e=Uc(e);var r=this;return r.__filtered__&&(e>0||t<0)?new kr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Uc(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},kr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},kr.prototype.toArray=function(){return this.take(b)},ci(kr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=N[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(N.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof kr,l=s[0],u=c||yc(t),d=function(e){var t=a.apply(N,Dn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new kr(this);var g=e.apply(t,s);return g.__actions__.push({func:zs,args:[d],thisArg:n}),new Or(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),bn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);N.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(yc(i)?i:[],e)}return this[n](function(n){return t.apply(yc(n)?n:[],e)})}}),ci(kr.prototype,function(e,t){var n=N[t];if(n){var r=n.name+``;mt.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}}),Mn[Ya(n,c).name]=[{name:`wrapper`,func:n}],kr.prototype.clone=function(){var e=new kr(this.__wrapped__);return e.__actions__=Pa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pa(this.__views__),e},kr.prototype.reverse=function(){if(this.__filtered__){var e=new kr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},kr.prototype.value=function(){ Line truncated
}`;var g=Dl(function(){return rt(o,m+`return `+f).apply(n,s)});if(g.source=f,Tc(g))throw g;return g},N.times=function(e,t){if(e=Uc(e),e<1||e>_)return[];var n=b,r=Kt(e,b);t=xo(t),e-=b;for(var i=Gn(r,t);++n<e;)t(n);return i},N.toFinite=Hc,N.toInteger=Uc,N.toLength=Wc,N.toLower=function(e){return qc(e).toLowerCase()},N.toNumber=Gc,N.toSafeInteger=function(e){return e?qr(Uc(e),-_,_):e===0?e:0},N.toString=qc,N.toUpper=function(e){return qc(e).toUpperCase()},N.trim=function(e,t,r){if(e=qc(e),e&&(r||t===n))return qn(e);if(!e||!(t=ua(t)))return e;var i=hr(e),a=hr(t);return Sa(i,Zn(i,a),Qn(i,a)+1).join(``)},N.trimEnd=function(e,t,r){if(e=qc(e),e&&(r||t===n))return e.slice(0,gr(e)+1);if(!e||!(t=ua(t)))return e;var i=hr(e);return Sa(i,0,Qn(i,hr(t))+1).join(``)},N.trimStart=function(e,t,r){if(e=qc(e),e&&(r||t===n))return e.replace(ze,``);if(!e||!(t=ua(t)))return e;var i=hr(e);return Sa(i,Zn(i,hr(t))).join(``)},N.truncate=function(e,t){var r=30,i=`...`;if(kc(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Uc(t.length):r,i=`omission`in t?ua(t.omission):i}e=qc(e);var o=e.length;if(ir(e)){var s=hr(e);o=s.length}if(r>=o)return e;var c=r-mr(i);if(c<1)return i;var l=s?Sa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Pc(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ot(a.source,qc(Je.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(ua(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i},N.unescape=function(e){return e=qc(e),e&&ke.test(e)?e.replace(De,_r):e},N.uniqueId=function(e){var t=++ht;return qc(e)+t},N.upperCase=wl,N.upperFirst=Tl,N.each=Gs,N.eachRight=Ks,N.first=vs,Il(N,function(){var e={};return ci(N,function(t,n){mt.call(N.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),N.VERSION=`4.18.1`,bn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){N[e].placeholder=N}),bn([`drop`,`take`],function(e,t){kr.prototype[e]=function(r){r=r===n?1:Gt(Uc(r),0);var i=this.__filtered__&&!t?new kr(this):this.clone();return i.__filtered__?i.__takeCount__=Kt(r,i.__takeCount__):i.__views__.push({size:Kt(r,b),type:e+(i.__dir__<0?`Right`:``)}),i},kr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),bn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;kr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),bn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);kr.prototype[e]=function(){return this[n](1).value()[0]}}),bn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);kr.prototype[e]=function(){return this.__filtered__?new kr(this):this[n](1)}}),kr.prototype.compact=function(){return this.filter(Ml)},kr.prototype.find=function(e){return this.filter(e).head()},kr.prototype.findLast=function(e){return this.reverse().find(e)},kr.prototype.invokeMap=Zi(function(e,t){return typeof e==`function`?new kr(this):this.map(function(n){return bi(n,e,t)})}),kr.prototype.reject=function(e){return this.filter(uc(xo(e)))},kr.prototype.slice=function(e,t){e=Uc(e);var r=this;return r.__filtered__&&(e>0||t<0)?new kr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Uc(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},kr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},kr.prototype.toArray=function(){return this.take(b)},ci(kr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=N[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(N.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof kr,l=s[0],u=c||yc(t),d=function(e){var t=a.apply(N,Dn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new kr(this);var g=e.apply(t,s);return g.__actions__.push({func:zs,args:[d],thisArg:n}),new Or(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),bn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);N.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(yc(i)?i:[],e)}return this[n](function(n){return t.apply(yc(n)?n:[],e)})}}),ci(kr.prototype,function(e,t){var n=N[t];if(n){var r=n.name+``;mt.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}}),Mn[Ya(n,c).name]=[{name:`wrapper`,func:n}],kr.prototype.clone=function(){var e=new kr(this.__wrapped__);return e.__actions__=Pa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pa(this.__views__),e},kr.prototype.reverse=function(){if(this.__filtered__){var e=new kr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},kr.prototype.value=function(){ Line truncated
* In categorical functions, when the feature value does not match any of the stop domain values.
@@ -42,7 +42,7 @@ If no default is provided, the style property's default is used in these circums
The unit is in pixels only for SDF sprites that were created with a blur radius of 8, multiplied by the display density. I.e., the radius needs to be 16 for \`@2x\` sprites, etc.`,requires:[`icon-image`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-halo-blur":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,doc:`Fade out the halo towards the outside.`,requires:[`icon-image`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,doc:`Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.`,requires:[`icon-image`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"icon-translate-anchor":{type:`enum`,values:{map:{doc:`Icons are translated relative to the map.`},viewport:{doc:`Icons are translated relative to the viewport.`}},doc:"Controls the frame of reference for [`icon-translate`](layers/#icon-translate).",default:`map`,requires:[`icon-image`,`icon-translate`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-opacity":{type:`number`,doc:`The opacity at which the text will be drawn.`,default:1,minimum:0,maximum:1,transition:!0,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-color":{type:`color`,doc:`The color with which the text will be drawn.`,default:`#000000`,transition:!0,overridable:!0,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-color":{type:`color`,default:`rgba(0, 0, 0, 0)`,transition:!0,doc:`The color of the text's halo, which helps it stand out from backgrounds.`,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-width":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,doc:`Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.`,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-blur":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,doc:`The halo's fadeout distance towards the outside.`,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,doc:`Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.`,requLine truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`5.20.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"raster-resampling":{type:`enum`,doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter. It is advised to use the generic `resampling` paint property instead.",values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`0.47.0`,android:`6.3.0`,ios:`4.2.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"raster-fade-duration":{type:`number`,default:300,minimum:0,transition:!1,units:`milliseconds`,doc:`Fade duration when a new tile is added, or when a video is started or its coordinates are updated.`,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},paint_hillshade:{"hillshade-illumination-direction":{type:`numberArray`,default:335,minimum:0,maximum:359,doc:"The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if [`hillshade-illumination-anchor`](layers/#hillshade-illumination-anchor) is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`. Only when [`hillshade-method`](layers/#hillshade-method) is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:`0.43.0`,android:`6.0.0`,ios:`4.0.0`},multidirectional:{js:`5.5.0`,android:`13.0.0`,ios:`6.24.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-illumination-altitude":{type:`numberArray`,default:45,minimum:0,maximum:90,doc:"The altitude of the light source(s) used to generate the hillshading with 0 as sunset and 90 as noon. Only when [`hillshade-method`](layers/#hillshade-method) is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:`5.5.0`,android:`13.0.0`,ios:`6.24.0`},multidirectional:{js:`5.5.0`,android:`13.0.0`,ios:`6.24.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-illumination-anchor":{type:`enum`,values:{map:{doc:`The hillshade illumination is relative to the north direction.`},viewport:{doc:`The hillshade illumination is relative to the top of the viewport.`}},default:`viewport`,doc:`Direction of light source when map is rotated.`,"sdk-support":{"basic functionality":{js:`0.43.0`,android:`6.0.0`,ios:`4.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-exaggeration":{type:`number`,doc:`Intensity of the hillshade`,default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:`0.43.0`,android:`6.0.0`,ios:`4.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-shadow-color":{type:`colorArray`,default:`#000000`,doc:"The shading color of areas that face away from the light source(s). Only when [`hillshade-method`](layers/#hillshade-method) is set to `multidirectional` can you specify multiple light sources.",transition:!0,"sdk-support":{"basic functionality":{js:`0.43.0`,android:`6.0.0`,ios:`4.0.0 Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`5.20.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},"paint_color-relief":{"color-relief-opacity":{type:`number`,default:1,minimum:0,maximum:1,doc:`The opacity at which the color-relief will be drawn.`,transition:!0,"sdk-support":{"basic functionality":{js:`5.6.0`,android:`13.0.0`,ios:`6.24.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"color-relief-color":{type:`color`,doc:"Defines the color of each pixel based on its elevation. Should be an expression that uses the [`elevation`](expressions/#elevation) expression as input.",example:[`interpolate`,[`linear`],[`elevation`],0,`black`,8849,`white`],transition:!1,"sdk-support":{"basic functionality":{js:`5.6.0`,android:`13.0.0`,ios:`6.24.0`},"data-driven styling":{},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`elevation`]},"property-type":`color-ramp`},resampling:{type:`enum`,doc:`The resampling/interpolation method to use for overscaling, also known as texture magnification filter.
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`5.20.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},paint_background:{"background-color":{type:`color`,default:`#000000`,doc:`The color with which the background will be drawn.`,transition:!0,requires:[{"!":`background-pattern`}],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"background-pattern":{type:`resolvedImage`,transition:!0,doc:`Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.`,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`cross-faded`},"background-opacity":{type:`number`,default:1,minimum:0,maximum:1,doc:`The opacity at which the background will be drawn.`,transition:!0,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},transition:{duration:{type:`number`,default:300,minimum:0,units:`milliseconds`,doc:`Time allotted for transitions to complete.`},delay:{type:`number`,default:0,minimum:0,units:`milliseconds`,doc:`Length of time before a transition begins.`}},"property-type":{"data-driven":{type:`property-type`,doc:`Property is interpolable and can be represented using a property expression.`},"cross-faded":{type:`property-type`,doc:`Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms.`},"cross-faded-data-driven":{type:`property-type`,doc:`Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression.`},"color-ramp":{type:`property-type`,doc:`Property should be specified using a color ramp from which the output color can be sampled based on a property calculation.`},"data-constant":{type:`property-type`,doc:`Property is interpolable but cannot be represented using a property expression.`},constant:{type:`property-type`,doc:`Property is constant across all zoom levels and property values.`}},promoteId:{"*":{type:`string`,doc:`A name of a feature property to use as ID for feature state.`}},interpolation:{type:`array`,value:`interpolation_name`,minimum:1,doc:'An interpolation defines how to transition between items. The first element of an interpolation array is a string naming the interpolation operator, e.g. `"linear"` or `"exponential"`. Elements that follow (if any) are the _arguments_ to the interpolation.'},interpolation_name:{doc:`First element in an interpolation array. May be followed by a number of arguments.`,type:`enum`,values:{linear:{doc:`Interpolates linearly between the pair of stops just less than and just greater than the input`,syntax:{overloads:[{parameters:[],"output-type":`interpolation`}],parameters:[]},example:[`linear`],"sdk-support":{interpolate:{js:`0.42.0`,android:`6.0.0`,ios:`4.0.0`},"interpolate-hcl":{js:`0.49.0`,ios:`https://github.com/maplibre/maplibre-native/issues/2784`,android:`https://github.com/maplibre/maplibre-native/issues/2784`},"interpolate-lab":{js:`0.49.0`,ios:`https://github.com/maplibre/maplibre-native/issues/2784`,android:`https://github.com/maplibre/maplibre-native/issues/2784`},"interpolate-oklch":{js:`https://github.com/maplibre/maplibre-gl-js/issues/9011`,android:`https://github.com/maplibre/maplibre-native/issues/4970`,ios:`https://github.com/maplibre/maplibre-native/issues/4970`},"interpolate-oklab":{js:`https://github.com/maplibre/maplibre-gl-js/issues/9051`,android:`https://github.com/maplibre/maplibre-native/i Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`5.20.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},paint_background:{"background-color":{type:`color`,default:`#000000`,doc:`The color with which the background will be drawn.`,transition:!0,requires:[{"!":`background-pattern`}],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"background-pattern":{type:`resolvedImage`,transition:!0,doc:`Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.`,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`cross-faded`},"background-opacity":{type:`number`,default:1,minimum:0,maximum:1,doc:`The opacity at which the background will be drawn.`,transition:!0,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](expressions/#global-state) expression":{js:`5.6.0`,android:`13.7.1`,ios:`7.0.0`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},transition:{duration:{type:`number`,default:300,minimum:0,units:`milliseconds`,doc:`Time allotted for transitions to complete.`},delay:{type:`number`,default:0,minimum:0,units:`milliseconds`,doc:`Length of time before a transition begins.`}},"property-type":{"data-driven":{type:`property-type`,doc:`Property is interpolable and can be represented using a property expression.`},"cross-faded":{type:`property-type`,doc:`Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms.`},"cross-faded-data-driven":{type:`property-type`,doc:`Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression.`},"color-ramp":{type:`property-type`,doc:`Property should be specified using a color ramp from which the output color can be sampled based on a property calculation.`},"data-constant":{type:`property-type`,doc:`Property is interpolable but cannot be represented using a property expression.`},constant:{type:`property-type`,doc:`Property is constant across all zoom levels and property values.`}},promoteId:{"*":{type:`string`,doc:`A name of a feature property to use as ID for feature state.`}},interpolation:{type:`array`,value:`interpolation_name`,minimum:1,doc:'An interpolation defines how to transition between items. The first element of an interpolation array is a string naming the interpolation operator, e.g. `"linear"` or `"exponential"`. Elements that follow (if any) are the _arguments_ to the interpolation.'},interpolation_name:{doc:`First element in an interpolation array. May be followed by a number of arguments.`,type:`enum`,values:{linear:{doc:`Interpolates linearly between the pair of stops just less than and just greater than the input`,syntax:{overloads:[{parameters:[],"output-type":`interpolation`}],parameters:[]},example:[`linear`],"sdk-support":{interpolate:{js:`0.42.0`,android:`6.0.0`,ios:`4.0.0`},"interpolate-hcl":{js:`0.49.0`,ios:`https://github.com/maplibre/maplibre-native/issues/2784`,android:`https://github.com/maplibre/maplibre-native/issues/2784`},"interpolate-lab":{js:`0.49.0`,ios:`https://github.com/maplibre/maplibre-native/issues/2784`,android:`https://github.com/maplibre/maplibre-native/issues/2784`},"interpolate-oklch":{js:`https://github.com/maplibre/maplibre-gl-js/issues/9011`,android:`https://github.com/maplibre/maplibre-native/issues/4970`,ios:`https://github.com/maplibre/maplibre-native/issues/4970`},"interpolate-oklab":{js:`https://github.com/maplibre/maplibre-gl-js/issues/9051`,android:`https://github.com/maplibre/maplibre-native/i Line truncated
precision mediump float;
#else
#if !defined(lowp)
@@ -55,7 +55,7 @@ precision mediump float;
#define highp
#endif
#endif
out highp vec4 fragColor;layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp vec4 u_projection_tile_origin;highp vec2 u_projection_tile_origin_position;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`,lhe=`#ifdef GL_ES
out highp vec4 fragColor;layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp vec4 u_projection_tile_origin;highp vec2 u_projection_tile_origin_position;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`,mhe=`#ifdef GL_ES
precision highp float;
#else
#if !defined(lowp)
@@ -103,15 +103,15 @@ return 0.0;
#endif
}const float PI=3.141592653589793;
#define PROJECTION_UBO
layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp vec4 u_projection_tile_origin;highp vec2 u_projection_tile_origin_position;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`,uhe=`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp vec4 u_projection_tile_origin;highp vec2 u_projection_tile_origin_position;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`,hhe=`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,dhe=`layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos,a_pos);}`,fhe=`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;
}`,ghe=`layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos,a_pos);}`,_he=`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
}`,phe=`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;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos,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);}`,mhe=`in vec3 v_data;in float v_visibility;
}`,vhe=`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;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos,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);}`,yhe=`in vec3 v_data;in float v_visibility;
#pragma maplibre: define highp vec4 color
#pragma maplibre: define mediump float radius
#pragma maplibre: define lowp float blur
@@ -131,7 +131,7 @@ vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_bl
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,hhe=`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 vec2 u_translate;layout(location=0) in ivec2 a_pos;out vec3 v_data;out float v_visibility;
}`,bhe=`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 vec2 u_translate;layout(location=0) in ivec2 a_pos;out vec3 v_data;out float v_visibility;
#pragma maplibre: define highp vec4 color
#pragma maplibre: define mediump float radius
#pragma maplibre: define lowp float blur
@@ -163,15 +163,15 @@ vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVectorOffset(circl
#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);}`,ghe=`void main() {fragColor=vec4(1.0);}`,Ox={prelude:kx(che,lhe),projectionMercator:kx(`
void clipAntimeridian() {}`,`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:kx(`in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}`,`#define GLOBE_RADIUS 6371008.8
} 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);}`,xhe=`void main() {fragColor=vec4(1.0);}`,Cx={prelude:wx(phe,mhe),projectionMercator:wx(`
void clipAntimeridian() {}`,`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:wx(`in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}`,`#define GLOBE_RADIUS 6371008.8
#ifndef PROJECTION_UBO
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp vec4 u_projection_tile_origin;uniform highp vec2 u_projection_tile_origin_position;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;
#endif
out highp float v_projection_tile_x;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 t=exp(PI-(mercator_pos_y*PI*2.0));return (2.0*t)/(t*t+1.0);}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;float spherical_x=mercator_pos.x*PI*2.0+PI;float t=exp(PI-(mercator_pos.y*PI*2.0));float t2=t*t;float denom=t2+1.0;float sin_sy=(t2-1.0)/denom;float cos_sy=(2.0*t)/denom;vec3 pos=vec3(sin(spherical_x)*cos_sy,sin_sy,cos(spherical_x)*cos_sy
);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 globeSinSmall(float x) {float x2=x*x;return x*(1.0-x2/6.0*(1.0-x2/20.0*(1.0-x2/42.0*(1.0-x2/72.0*(1.0-x2/110.0*(1.0-x2/156.0))))));}float globeTanSmall(float x) {if (abs(x) >=0.5) {return tan(x);}float s=globeSinSmall(x);return s/sqrt(1.0-s*s);}float globeExpm1Small(float x) {if (abs(x) >=0.5) {return exp(x)-1.0;}return x*(1.0+x/2.0*(1.0+x/3.0*(1.0+x/4.0*(1.0+x/5.0*(1.0+x/6.0*(1.0+x/7.0*(1.0+x/8.0)))))));}vec3 globeTileOrigin() {if (u_projection_tile_origin.w < 0.5) {return vec3(0.0);}float t=u_projection_tile_origin.z;float denom=t*t+1.0;float cos_sy=2.0*t/denom;return vec3(u_projection_tile_origin.x*cos_sy,(t*t-1.0)/denom,u_projection_tile_origin.y*cos_sy);}vec2 globeAnglesFromTileOrigin(vec2 translatedPos) {return u_projection_tile_mercator_coords.zw*(translatedPos-u_projection_tile_origin_position)*(PI*2.0);}bool globeIsNearTileOrigin(vec2 translatedPos) {if (u_projection_tile_origin.w < 0.5) {return false;}vec2 delta=abs(globeAnglesFromTileOrigin(translatedPos));return delta.x <=PI*0.5 && delta.y <=PI*0.5;}vec3 projectToSphereOffset(vec2 translatedPos,vec2 rawPos) {if (!globeIsNearTileOrigin(translatedPos)) {return projectToSphere(translatedPos,rawPos)-globeTileOrigin();}if (rawPos.y <-32767.5) {return vec3(0.0,1.0,0.0)-globeTileOrigin();}if (rawPos.y > 32766.5) {return vec3(0.0,-1.0,0.0)-globeTileOrigin();}vec2 delta=globeAnglesFromTileOrigin(translatedPos);float sin_x0=u_projection_tile_origin.x;float cos_x0=u_projection_tile_origin.y;float t0=u_projection_tile_origin.z;float t0_2=t0*t0;float e=globeExpm1Small(-delta.y);float t=t0+t0*e;float denom=(t*t+1.0)*(t0_2+1.0);float d_sin_sy=2.0*t0_2*e*(2.0+e)/denom;float d_cos_sy=2.0*t0*e*(1.0-t*t0)/denom;float cos_sy=2.0*t0/(t0_2+1.0)+d_cos_sy;float sin_dx=globeSinSmall(delta.x);float half_sin_dx=globeSinSmall(delta.x*0.5);float cos_dx_minus_one=-2.0*half_sin_dx*half_sin_dx;float d_sin_x=sin_x0*cos_dx_minus_one+cos_x0*sin_dx;float d_cos_x=cos_x0*cos_dx_minus_one-sin_x0*sin_dx;return vec3(sin_x0*d_cos_sy+d_sin_x*cos_sy,d_sin_sy,cos_x0*d_cos_sy+d_cos_x*cos_sy
);}vec3 projectToSphereOffset(vec2 posInTile) {return projectToSphereOffset(posInTile,vec2(0.0,0.0));}vec3 globeRotateVectorOffset(vec2 posInTile,vec3 offset,vec2 angles) {if (!globeIsNearTileOrigin(posInTile)) {return globeRotateVector(projectToSphere(posInTile),angles)-globeTileOrigin();}vec3 vec=globeTileOrigin()+offset;mat3 axes=globeGetRotationMatrix(vec);vec3 d=axes[0]*globeTanSmall(angles.x)+axes[1]*globeTanSmall(angles.y);float len=sqrt(1.0+dot(d,d));return offset+(d-vec*(dot(d,d)/(1.0+len)))/len;}float globeComputeClippingZ(vec3 spherePos) {return (1.0-min(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w,0.5));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 origin=globeTileOrigin();vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS)+origin*(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) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS)+globeTileOrigin()*(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,projectToSphereOffset(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphereOffset(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphereOffset(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphereOffset(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:kx(uhe,dhe),backgroundPattern:kx(fhe,phe),circle:kx(mhe,hhe),clippingMask:kx(ghe,`layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos,a_pos);}`),heatmap:kx(`uniform highp float u_intensity;in vec2 v_extrude;
);}vec3 projectToSphereOffset(vec2 posInTile) {return projectToSphereOffset(posInTile,vec2(0.0,0.0));}vec3 globeRotateVectorOffset(vec2 posInTile,vec3 offset,vec2 angles) {if (!globeIsNearTileOrigin(posInTile)) {return globeRotateVector(projectToSphere(posInTile),angles)-globeTileOrigin();}vec3 vec=globeTileOrigin()+offset;mat3 axes=globeGetRotationMatrix(vec);vec3 d=axes[0]*globeTanSmall(angles.x)+axes[1]*globeTanSmall(angles.y);float len=sqrt(1.0+dot(d,d));return offset+(d-vec*(dot(d,d)/(1.0+len)))/len;}float globeComputeClippingZ(vec3 spherePos) {return (1.0-min(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w,0.5));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 origin=globeTileOrigin();vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS)+origin*(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) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS)+globeTileOrigin()*(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,projectToSphereOffset(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphereOffset(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphereOffset(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphereOffset(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:wx(hhe,ghe),backgroundPattern:wx(_he,vhe),circle:wx(yhe,bhe),clippingMask:wx(xhe,`layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos,a_pos);}`),heatmap:wx(`uniform highp float u_intensity;in vec2 v_extrude;
#pragma maplibre: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
@@ -194,11 +194,11 @@ vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToS
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:kx(`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;
}`),heatmapTexture:wx(`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;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}`),collisionBox:kx(`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;}}`,`layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;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:kx(`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;}`,`layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;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:kx(`#ifdef GL_ES
}`,`uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}`),collisionBox:wx(`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;}}`,`layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;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:wx(`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;}`,`layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;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:wx(`#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) {vec4 data=texelFetch(u_elevation_stops,ivec2(stop,0),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
@@ -206,13 +206,13 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.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:kx(`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);}`,`layout(location=0) 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:kx(ghe,`layout(location=0) in vec2 a_pos;void main() {
}`,`uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.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:wx(`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);}`,`layout(location=0) 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:wx(xhe,`layout(location=0) 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:kx(`#pragma maplibre: define highp vec4 color
}`),fill:wx(`#pragma maplibre: define highp vec4 color
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize highp vec4 color
@@ -227,7 +227,7 @@ fragColor=vec4(1.0);
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize lowp float opacity
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:kx(`in vec2 v_pos;
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:wx(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
@@ -256,7 +256,7 @@ if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=pr
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:kx(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
}`),fillOutlinePattern:wx(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
@@ -297,7 +297,7 @@ if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_t
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:kx(`#ifdef GL_ES
}`),fillPattern:wx(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform bool u_sdf_pattern;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
@@ -328,7 +328,7 @@ void main() {
#pragma maplibre: initialize mediump vec4 pattern_to
#pragma maplibre: initialize lowp float pixel_ratio_from
#pragma maplibre: initialize lowp float pixel_ratio_to
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}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:kx(`in vec4 v_color;void main() {fragColor=v_color;
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}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:wx(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
@@ -362,7 +362,7 @@ float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(globeTileOrigin()+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.z==0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_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*=opacity;}`),fillExtrusionPattern:kx(`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;
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.z==0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_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*=opacity;}`),fillExtrusionPattern:wx(`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 maplibre: define lowp float base
#pragma maplibre: define lowp float height
#pragma maplibre: define lowp vec4 pattern_from
@@ -417,14 +417,14 @@ gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=a_normal_ed.x==1 && a_normal_ed.y==0 && a_normal_ed.z==16384
? 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.z==0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_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*=opacity;}`),hillshadePrepare:kx(`#ifdef GL_ES
: 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.z==0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_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*=opacity;}`),hillshadePrepare:wx(`#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;uniform float u_log2_world_width;float getElevation(ivec2 texel) {vec4 data=texelFetch(u_image,texel,0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {ivec2 pos=ivec2(gl_FragCoord.xy)+ivec2(1);float tileSize=u_dimension.x-4.0;float a=getElevation(pos+ivec2(-1,-1));float b=getElevation(pos+ivec2(0,-1));float c=getElevation(pos+ivec2(1,-1));float d=getElevation(pos+ivec2(-1,0));float e=getElevation(pos);float f=getElevation(pos+ivec2(1,0));float g=getElevation(pos+ivec2(-1,1));float h=getElevation(pos+ivec2(0,1));float i=getElevation(pos+ivec2(1,1));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+(3.0+u_log2_world_width-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+128.0/255.0,deriv.y/8.0+128.0/255.0,1.0,1.0),0.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) 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:kx(`uniform sampler2D u_image;in highp 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];
}`,`uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) 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:wx(`uniform sampler2D u_image;in highp 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
@@ -437,7 +437,7 @@ float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform mat4 u_matrix;layout(location=0) 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:kx(`in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
}`,`uniform mat4 u_matrix;layout(location=0) 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:wx(`in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
@@ -483,7 +483,7 @@ 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:kx(`uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
v_width2=vec2(outset,inset);}`),lineGradient:wx(`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
@@ -525,7 +525,7 @@ 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:kx(`#ifdef GL_ES
v_width2=vec2(outset,inset);}`),linePattern:wx(`#ifdef GL_ES
precision highp float;
#endif
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;
@@ -589,7 +589,7 @@ 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:kx(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;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;
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:wx(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;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
@@ -650,7 +650,7 @@ 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
float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:kx(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv;
float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:wx(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
@@ -707,7 +707,7 @@ 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
float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerComposite:kx(`uniform sampler2D u_image;uniform float u_opacity;
float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerComposite:wx(`uniform sampler2D u_image;uniform float u_opacity;
#ifdef LAYER_BLEND
uniform sampler2D u_backdrop;uniform highp vec2 u_backdrop_offset;
#ifdef LAYER_BLEND_NONSEPARABLE
@@ -784,7 +784,7 @@ vec4 dst=texelFetch(u_backdrop,texel-ivec2(u_backdrop_offset),0);fragColor=compo
fragColor=src;
#endif
#endif
}`,`layout(location=0) in vec2 a_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);}`),raster:kx(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 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.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);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);
}`,`layout(location=0) in vec2 a_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);}`),raster:wx(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 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.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);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
@@ -792,7 +792,7 @@ fragColor=vec4(1.0);
#ifdef GLOBE
if (a_pos.y <-32767.5) {texturePos.y=0.0;}if (a_pos.y > 32766.5) {texturePos.y=1.0;}
#endif
float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:kx(`uniform sampler2D u_texture;in vec2 v_tex;in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;
float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:wx(`uniform sampler2D u_texture;in vec2 v_tex;in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
@@ -806,7 +806,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
#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;}`),symbolSDF:kx(`#define SDF_PX 8.0
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;}`),symbolSDF:wx(`#define SDF_PX 8.0
uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
#pragma maplibre: define highp vec4 fill_color
#pragma maplibre: define highp vec4 halo_color
@@ -839,7 +839,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
#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)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:kx(`#define SDF_PX 8.0
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,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;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:wx(`#define SDF_PX 8.0
#define SDF 1.0
#define ICON 0.0
uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;in vec4 v_data0;in vec3 v_data1;in float v_is_sdf;
@@ -878,11 +878,11 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
#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;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:kx(`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 && u_fog_ground_blend_opacity > 0.0 && 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;}}`,`layout(location=0) 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,ele-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:kx(`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);}`,`layout(location=0) 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;}`),terrainHeight:kx(`in highp float v_elevation;void main() {fragColor=vec4(v_elevation,0.0,0.0,1.0);}`,`layout(location=0) in vec3 a_pos3d;uniform vec4 u_tile_bounds;out highp float v_elevation;void main() {v_elevation=get_elevation(a_pos3d.xy);vec2 position=u_tile_bounds.xy+a_pos3d.xy/8192.0*u_tile_bounds.zw;gl_Position=vec4(position.x*2.0-1.0,1.0-position.y*2.0,0.0,1.0);}`),atmosphere:kx(`#ifdef GL_ES
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;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:wx(`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 && u_fog_ground_blend_opacity > 0.0 && 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;}}`,`layout(location=0) 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,ele-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:wx(`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);}`,`layout(location=0) 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;}`),terrainHeight:wx(`in highp float v_elevation;void main() {fragColor=vec4(v_elevation,0.0,0.0,1.0);}`,`layout(location=0) in vec3 a_pos3d;uniform vec4 u_tile_bounds;out highp float v_elevation;void main() {v_elevation=get_elevation(a_pos3d.xy);vec2 position=u_tile_bounds.xy+a_pos3d.xy/8192.0*u_tile_bounds.zw;gl_Position=vec4(position.x*2.0-1.0,1.0-position.y*2.0,0.0,1.0);}`),atmosphere:wx(`#ifdef GL_ES
precision highp float;
#endif
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;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758
);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;}`,`layout(location=0) 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:kx(`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;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;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;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}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(1.0,opacity,u_sky_blend);}`,`layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}`)};function kx(e,t){let n=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/in ([\w]+) ([\w]+)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(i):i,s=r?r.length:0,c={};return e=e.replace(n,(e,t,n,r,i)=>(c[i]=!0,t===`define`?`
);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;}`,`layout(location=0) 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:wx(`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;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;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;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}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(1.0,opacity,u_sky_blend);}`,`layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}`)};function wx(e,t){let n=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/in ([\w]+) ([\w]+)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(i):i,s=r?r.length:0,c={};return e=e.replace(n,(e,t,n,r,i)=>(c[i]=!0,t===`define`?`
#ifndef HAS_UNIFORM_u_${i}
in ${n} ${r} ${i};
#else
@@ -931,18 +931,18 @@ uniform ${n} ${r} u_${i};
#else
${n} ${r} ${i} = u_${i};
#endif
`}),{fragmentSource:e,vertexSource:t,staticAttributes:r,staticUniforms:o}}var _he=`#define PROJECTION_MERCATOR`,vhe=`mercator`,Ax=class{constructor(e=Cy){this._cachedMesh=null,this._worldCoordinateHelper=e}get name(){return this._worldCoordinateHelper.name}get worldCoordinateHelper(){return this._worldCoordinateHelper}get useSubdivision(){return!1}get shaderVariantName(){return vhe}get shaderDefine(){return _he}get shaderPreludeCode(){return Ox.projectionMercator}get vertexShaderPreludeCode(){return Ox.projectionMercator.vertexSource}get subdivisionGranularity(){return q4.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,n,r,i){if(this._cachedMesh)return this._cachedMesh;let a=new Mv;a.emplaceBack(0,0),a.emplaceBack(F,0),a.emplaceBack(0,F),a.emplaceBack(F,F);let o=e.createVertexBuffer(a,Nb.members),s=Lv.simpleSegment(0,0,4,2),c=new Pv;c.emplaceBack(1,0,2),c.emplaceBack(1,2,3);let l=e.createIndexBuffer(c);return this._cachedMesh=new Mb(o,l,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},yhe,bhe=()=>yhe||=new tv({type:new Z0(I.projection.type,`type`)}),jx=new q4({fill:new K4(128,2),line:new K4(512,0),tile:new K4(128,32),stencil:new K4(128,1),circle:3}),xhe=class{constructor(){this._tileMeshCache={}}get name(){return`vertical-perspective`}get worldCoordinateHelper(){return Cy}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return`globe`}get shaderDefine(){return`#define GLOBE`}get shaderPreludeCode(){return Ox.projectionGlobe}get vertexShaderPreludeCode(){return Ox.projectionMercator.vertexSource}get subdivisionGranularity(){return jx}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?`b`:``}${e.extendToNorthPole?`n`:``}${e.extendToSouthPole?`s`:``}`}getMeshFromTileID(e,t,n,r,i){let a=(i===`stencil`?jx.stencil:jx.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&r,s=t.y===(1<<t.z)-1&&r;return this._getMesh(e,{granularity:a,generateBorders:n,extendToNorthPole:o,extendToSouthPole:s})}_getMesh(e,t){let n=this._getMeshKey(t);if(n in this._tileMeshCache)return this._tileMeshCache[n];let r=Pb(e,t);return this._tileMeshCache[n]=r,r}recalculate(e){}hasTransition(){return!1}},She=class extends hh{constructor(e,t){super(),this._transitionable=new K0(bhe(),`projection`,t),this.setProjection(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new U0(0)),this._mercatorProjection=new Ax,this._verticalPerspectiveProjection=new xhe}get transitionState(){let e=this.properties.get(`type`);if(typeof e==`string`&&e===`mercator`)return 0;if(typeof e==`string`&&e===`vertical-perspective`)return 1;if(e instanceof Vg){if(e.from===e.to)return e.from===`mercator`?0:1;if(e.from===`vertical-perspective`&&e.to===`mercator`)return 1-e.transition;if(e.from===`mercator`&&e.to===`vertical-perspective`)return e.transition}return 1}get useGlobeRendering(){return this.transitionState>0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return`globe`}get worldCoordinateHelper(){return this.currentProjection.worldCoordinateHelper}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,n,r,i){return this.currentProjection.getMeshFromTileID(e,t,n,r,i)}setProjection(e){this._transitionable.setValue(`type`,e?.type||`mercator`)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};function Che(e,t){if(Array.isArray(e)){let n=whe(e);return n&&rm(`Projection expressions cannot use the registered projection "${n}", which only works as a plain name. Falling back to the globe projection.`),{projection:new She({type:e},t),cameraProjection:`globe`}}let n=kb(e);if(n)return{projection:new Ax(new eue(n)),cameraProjection:`mercator`};switch(e){case`mercator`:return{projection:new Ax,cameraProjection:`mercator`};case`globe`:return{projection:new She({type:[`interpolate`,[`linear`],[`zoom`],11,`vertical-perspective`,12,`mercator`]},{}),cameraProjection:`globe`};case`vertical-perspective`:return{projection:new xhe,cameraProjection:`vertical-perspective`};default:return rm(`Unknown projection name: ${e}. Falling back to mercator projection.`),{pro Line truncated
`),b=v.concat(Ox.prelude.vertexSource,o.vertexSource,t.vertexSource).join(`
`),x=l.createShader(l.FRAGMENT_SHADER);if(l.isContextLost()){this.failedToCreate=!0;return}l.shaderSource(x,y),l.compileShader(x),l.attachShader(this.program,x);let S=l.createShader(l.VERTEX_SHADER);if(l.isContextLost()){this.failedToCreate=!0;return}l.shaderSource(S,b),l.compileShader(S),l.attachShader(this.program,S),this.attributes={};let C={};if(this.numAttributes=f.length,l.linkProgram(this.program),!l.getProgramParameter(this.program,l.LINK_STATUS)){if(l.isContextLost()||l.getProgramParameter(this.program,l.ATTACHED_SHADERS)===0){this.failedToCreate=!0;return}throw l.getShaderParameter(x,l.COMPILE_STATUS)?l.getShaderParameter(S,l.COMPILE_STATUS)?Error(`Program failed to link: ${l.getProgramInfoLog(this.program)}`):Error(`Could not compile vertex shader: ${l.getShaderInfoLog(S)}`):Error(`Could not compile fragment shader: ${l.getShaderInfoLog(x)}`)}dge(l,this.program);let w=Fge(l,this.program);for(let e of f){if(!e)continue;let t=l.getAttribLocation(this.program,e);t>=0&&(this.attributes[e]={location:t,isInteger:w.has(e)})}l.deleteShader(S),l.deleteShader(x);for(let e of _)if(e&&!C[e]){let t=l.getUniformLocation(this.program,e);t&&(C[e]=t)}this.fixedUniforms=r(e,C),this.terrainUniforms=Oge(e,C),this.binderUniforms=n?n.getUniforms(e,C):[]}draw(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(a),s){e.activeTexture.set(y.TEXTURE2),y.bindTexture(y.TEXTURE_2D,s.depthTexture),e.activeTexture.set(y.TEXTURE3),y.bindTexture(y.TEXTURE_2D,s.texture);for(let e in this.terrainUniforms)this.terrainUniforms[e].set(s[e]);Tge(e.terrainUniformBuffer,s)}if(gge(e,c),o)for(let e in this.fixedUniforms)this.fixedUniforms[e].set(o[e]);h&&h.setUniforms(e,this.binderUniforms,p,{zoom:m});let b=0;switch(t){case y.LINES:b=2;break;case y.TRIANGLES:b=3;break;case y.LINE_STRIP:b=1}for(let n of f.get())n.vaos||={},n.vaos[l]||=new Dge,n.vaos[l].bind(e,this,u,h?h.getPaintVertexBuffers():[],d,n.vertexOffset,g,_,v),y.drawElements(t,n.primitiveLength*b,y.UNSIGNED_SHORT,n.primitiveOffset*b*2)}};function Lge(e,t,n){let r=1/Cp(n,1,t.tileZoom),i=2**n.tileID.overscaledZ,a=n.tileSize*2**t.tileZoom/i,o=a*(n.tileID.canonical.x+n.tileID.wrap*i),s=a*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function Rge(e,t,n,r,i){let a=n.getPattern(e.from.toString()),o=n.getPattern(e.to.toString()),{width:s,height:c}=n.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.tileZoom/l,d=u*(i.tileID.canonical.x+i.tileID.wrap*l),f=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,c],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Cp(i,1,r.tileZoom),u_pixel_coord_upper:[d>>16,f>>16],u_pixel_coord_lower:[d&65535,f&65535]}}var zge=(e,t)=>({u_lightpos:new Gv(e,t.u_lightpos),u_lightpos_globe:new Gv(e,t.u_lightpos_globe),u_lightintensity:new Uv(e,t.u_lightintensity),u_lightcolor:new Gv(e,t.u_lightcolor),u_vertical_gradient:new Uv(e,t.u_vertical_gradient),u_fill_translate:new Wv(e,t.u_fill_translate)}),Bge=(e,t)=>({u_lightpos:new Gv(e,t.u_lightpos),u_lightpos_globe:new Gv(e,t.u_lightpos_globe),u_lightintensity:new Uv(e,t.u_lightintensity),u_lightcolor:new Gv(e,t.u_lightcolor),u_vertical_gradient:new Uv(e,t.u_vertical_gradient),u_height_factor:new Uv(e,t.u_height_factor),u_fill_translate:new Wv(e,t.u_fill_translate),u_image:new Hv(e,t.u_image),u_texsize:new Wv(e,t.u_texsize),u_pixel_coord_upper:new Wv(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Wv(e,t.u_pixel_coord_lower),u_scale:new Gv(e,t.u_scale),u_fade:new Uv(e,t.u_fade)}),Vge=(e,t,n,r)=>{let i=om(t.position),a=uf();t.anchor===`viewport`&&ff(a,e.bearingInRadians),qf(i,i,a);let o=Y2(e).transformLightDirection(e,i),s=t.color;return{u_lightpos:i,u_lightpos_globe:o,u_lightintensity:t.intensity,u_lightcolor:[s.r,s.g,s.b],u_vertical_gradient:+n,u_fill_translate:r}},Hge=(e,t,n,r,i,a,o)=>({...Vge(e,t,n,r),...Lge(a,e,o),u_height_factor:-(2**i.overscaledZ)/o.tileSize/8}),Uge=(e,t)=>({u_fill_translate:new Wv(e,t.u_fill_translate)}),Wge=(e,t)=>({u_image:new Hv(e,t.u_image),u_texsize:new Wv(e,t.u_texsize),u_pixel_coord_upper:new Wv(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Wv(e,t.u_pixel_coord_lower),u_scale:new Gv(e,t.u_scale),u_fade:new Uv(e,t.u_fade),u_sdf_pattern:new Hv(e,t.u_sdf_pattern),u_fill_translate:new Wv(e,t.u_fill_translate)}),Gge=(e,t)=>({u_fill_translate:new Wv(e,t.u_fill_translate)}),Kge=(e,t)=>({u_image:new Hv(e,t.u_image),u_texsize:new Wv(e,t.u_texsize),u_pixel_coord_upper:new Wv(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Wv(e,t.u_pixel_coord_lower),u_scale:new Gv(e,t.u_scale),u_fade:new Uv( Line truncated
`}),{fragmentSource:e,vertexSource:t,staticAttributes:r,staticUniforms:o}}var She=`#define PROJECTION_MERCATOR`,Che=`mercator`,Tx=class{constructor(e=sy){this._cachedMesh=null,this._worldCoordinateHelper=e}get name(){return this._worldCoordinateHelper.name}get worldCoordinateHelper(){return this._worldCoordinateHelper}get useSubdivision(){return!1}get shaderVariantName(){return Che}get shaderDefine(){return She}get shaderPreludeCode(){return Cx.projectionMercator}get vertexShaderPreludeCode(){return Cx.projectionMercator.vertexSource}get subdivisionGranularity(){return S4.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,n,r,i){if(this._cachedMesh)return this._cachedMesh;let a=new gv;a.emplaceBack(0,0),a.emplaceBack(F,0),a.emplaceBack(0,F),a.emplaceBack(F,F);let o=e.createVertexBuffer(a,U6.members),s=xv.simpleSegment(0,0,4,2),c=new vv;c.emplaceBack(1,0,2),c.emplaceBack(1,2,3);let l=e.createIndexBuffer(c);return this._cachedMesh=new H6(o,l,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},whe,The=()=>whe||=new z0({type:new F0(I.projection.type,`type`)}),Ex=new S4({fill:new x4(128,2),line:new x4(512,0),tile:new x4(128,32),stencil:new x4(128,1),circle:3}),Ehe=class{constructor(){this._tileMeshCache={}}get name(){return`vertical-perspective`}get worldCoordinateHelper(){return sy}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return`globe`}get shaderDefine(){return`#define GLOBE`}get shaderPreludeCode(){return Cx.projectionGlobe}get vertexShaderPreludeCode(){return Cx.projectionMercator.vertexSource}get subdivisionGranularity(){return Ex}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?`b`:``}${e.extendToNorthPole?`n`:``}${e.extendToSouthPole?`s`:``}`}getMeshFromTileID(e,t,n,r,i){let a=(i===`stencil`?Ex.stencil:Ex.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&r,s=t.y===(1<<t.z)-1&&r;return this._getMesh(e,{granularity:a,generateBorders:n,extendToNorthPole:o,extendToSouthPole:s})}_getMesh(e,t){let n=this._getMeshKey(t);if(n in this._tileMeshCache)return this._tileMeshCache[n];let r=W6(e,t);return this._tileMeshCache[n]=r,r}recalculate(e){}hasTransition(){return!1}},Dhe=class extends ph{constructor(e,t){super(),this._transitionable=new M0(The(),`projection`,t),this.setProjection(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new k0(0)),this._mercatorProjection=new Tx,this._verticalPerspectiveProjection=new Ehe}get transitionState(){let e=this.properties.get(`type`);if(typeof e==`string`&&e===`mercator`)return 0;if(typeof e==`string`&&e===`vertical-perspective`)return 1;if(e instanceof Wg){if(e.from===e.to)return e.from===`mercator`?0:1;if(e.from===`vertical-perspective`&&e.to===`mercator`)return 1-e.transition;if(e.from===`mercator`&&e.to===`vertical-perspective`)return e.transition}return 1}get useGlobeRendering(){return this.transitionState>0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return`globe`}get worldCoordinateHelper(){return this.currentProjection.worldCoordinateHelper}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,n,r,i){return this.currentProjection.getMeshFromTileID(e,t,n,r,i)}setProjection(e){this._transitionable.setValue(`type`,e?.type||`mercator`)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};function Ohe(e,t){if(Array.isArray(e)){let n=khe(e);return n&&rm(`Projection expressions cannot use the registered projection "${n}", which only works as a plain name. Falling back to the globe projection.`),{projection:new Dhe({type:e},t),cameraProjection:`globe`}}let n=z6(e);if(n)return{projection:new Tx(new Wue(n)),cameraProjection:`mercator`};switch(e){case`mercator`:return{projection:new Tx,cameraProjection:`mercator`};case`globe`:return{projection:new Dhe({type:[`interpolate`,[`linear`],[`zoom`],11,`vertical-perspective`,12,`mercator`]},{}),cameraProjection:`globe`};case`vertical-perspective`:return{projection:new Ehe,cameraProjection:`vertical-perspective`};default:return rm(`Unknown projection name: ${e}. Falling back to mercator projection.`),{pro Line truncated
`),b=v.concat(Cx.prelude.vertexSource,o.vertexSource,t.vertexSource).join(`
`),x=l.createShader(l.FRAGMENT_SHADER);if(l.isContextLost()){this.failedToCreate=!0;return}l.shaderSource(x,y),l.compileShader(x),l.attachShader(this.program,x);let S=l.createShader(l.VERTEX_SHADER);if(l.isContextLost()){this.failedToCreate=!0;return}l.shaderSource(S,b),l.compileShader(S),l.attachShader(this.program,S),this.attributes={};let C={};if(this.numAttributes=f.length,l.linkProgram(this.program),!l.getProgramParameter(this.program,l.LINK_STATUS)){if(l.isContextLost()||l.getProgramParameter(this.program,l.ATTACHED_SHADERS)===0){this.failedToCreate=!0;return}throw l.getShaderParameter(x,l.COMPILE_STATUS)?l.getShaderParameter(S,l.COMPILE_STATUS)?Error(`Program failed to link: ${l.getProgramInfoLog(this.program)}`):Error(`Could not compile vertex shader: ${l.getShaderInfoLog(S)}`):Error(`Could not compile fragment shader: ${l.getShaderInfoLog(x)}`)}gge(l,this.program);let w=Bge(l,this.program);for(let e of f){if(!e)continue;let t=l.getAttribLocation(this.program,e);t>=0&&(this.attributes[e]={location:t,isInteger:w.has(e)})}l.deleteShader(S),l.deleteShader(x);for(let e of _)if(e&&!C[e]){let t=l.getUniformLocation(this.program,e);t&&(C[e]=t)}this.fixedUniforms=r(e,C),this.terrainUniforms=Nge(e,C),this.binderUniforms=n?n.getUniforms(e,C):[]}draw(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(a),s){e.activeTexture.set(y.TEXTURE2),y.bindTexture(y.TEXTURE_2D,s.depthTexture),e.activeTexture.set(y.TEXTURE3),y.bindTexture(y.TEXTURE_2D,s.texture);for(let e in this.terrainUniforms)this.terrainUniforms[e].set(s[e]);Age(e.terrainUniformBuffer,s)}if(xge(e,c),o)for(let e in this.fixedUniforms)this.fixedUniforms[e].set(o[e]);h&&h.setUniforms(e,this.binderUniforms,p,{zoom:m});let b=0;switch(t){case y.LINES:b=2;break;case y.TRIANGLES:b=3;break;case y.LINE_STRIP:b=1}for(let n of f.get())n.vaos||={},n.vaos[l]||=new Mge,n.vaos[l].bind(e,this,u,h?h.getPaintVertexBuffers():[],d,n.vertexOffset,g,_,v),y.drawElements(t,n.primitiveLength*b,y.UNSIGNED_SHORT,n.primitiveOffset*b*2)}};function Hge(e,t,n){let r=1/Cp(n,1,t.tileZoom),i=2**n.tileID.overscaledZ,a=n.tileSize*2**t.tileZoom/i,o=a*(n.tileID.canonical.x+n.tileID.wrap*i),s=a*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function Uge(e,t,n,r,i){let a=n.getPattern(e.from.toString()),o=n.getPattern(e.to.toString()),{width:s,height:c}=n.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.tileZoom/l,d=u*(i.tileID.canonical.x+i.tileID.wrap*l),f=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,c],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Cp(i,1,r.tileZoom),u_pixel_coord_upper:[d>>16,f>>16],u_pixel_coord_lower:[d&65535,f&65535]}}var Wge=(e,t)=>({u_lightpos:new kv(e,t.u_lightpos),u_lightpos_globe:new kv(e,t.u_lightpos_globe),u_lightintensity:new Dv(e,t.u_lightintensity),u_lightcolor:new kv(e,t.u_lightcolor),u_vertical_gradient:new Dv(e,t.u_vertical_gradient),u_fill_translate:new Ov(e,t.u_fill_translate)}),Gge=(e,t)=>({u_lightpos:new kv(e,t.u_lightpos),u_lightpos_globe:new kv(e,t.u_lightpos_globe),u_lightintensity:new Dv(e,t.u_lightintensity),u_lightcolor:new kv(e,t.u_lightcolor),u_vertical_gradient:new Dv(e,t.u_vertical_gradient),u_height_factor:new Dv(e,t.u_height_factor),u_fill_translate:new Ov(e,t.u_fill_translate),u_image:new Ev(e,t.u_image),u_texsize:new Ov(e,t.u_texsize),u_pixel_coord_upper:new Ov(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Ov(e,t.u_pixel_coord_lower),u_scale:new kv(e,t.u_scale),u_fade:new Dv(e,t.u_fade)}),Kge=(e,t,n,r)=>{let i=om(t.position),a=ff();t.anchor===`viewport`&&mf(a,e.bearingInRadians),tee(i,i,a);let o=D2(e).transformLightDirection(e,i),s=t.color;return{u_lightpos:i,u_lightpos_globe:o,u_lightintensity:t.intensity,u_lightcolor:[s.r,s.g,s.b],u_vertical_gradient:+n,u_fill_translate:r}},qge=(e,t,n,r,i,a,o)=>({...Kge(e,t,n,r),...Hge(a,e,o),u_height_factor:-(2**i.overscaledZ)/o.tileSize/8}),Jge=(e,t)=>({u_fill_translate:new Ov(e,t.u_fill_translate)}),Yge=(e,t)=>({u_image:new Ev(e,t.u_image),u_texsize:new Ov(e,t.u_texsize),u_pixel_coord_upper:new Ov(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Ov(e,t.u_pixel_coord_lower),u_scale:new kv(e,t.u_scale),u_fade:new Dv(e,t.u_fade),u_sdf_pattern:new Ev(e,t.u_sdf_pattern),u_fill_translate:new Ov(e,t.u_fill_translate)}),Xge=(e,t)=>({u_fill_translate:new Ov(e,t.u_fill_translate)}),Zge=(e,t)=>({u_image:new Ev(e,t.u_image),u_texsize:new Ov(e,t.u_texsize),u_pixel_coord_upper:new Ov(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Ov(e,t.u_pixel_coord_lower),u_scale:new kv(e,t.u_scale),u_fade:new Dv Line truncated
${e} <span></span>
`,J7().s[12]++,this._textEl=this._container.querySelector(`span`),J7().s[13]++,this.updateZoomLevel()}addEventListeners(){J7().f[4]++,J7().s[14]++,this._map.on(`render`,()=>(J7().f[5]++,J7().s[15]++,this.updateZoomLevel()))}onRemove(){J7().f[6]++,J7().s[16]++,this._container.parentNode.removeChild(this._container),J7().s[17]++,this._map=void 0}};function Y7(e,t,n){let r={id:[t,n,`circle`].join(`_`),source:t,type:`circle`,paint:{"circle-color":e,"circle-radius":2},filter:[`==`,`$type`,`Point`]};return n&&(r[`source-layer`]=n),r}function X7(e,t,n,r){let i={id:[n,r,`polygon`].join(`_`),source:n,type:`fill`,paint:{"fill-color":e,"fill-antialias":!0,"fill-outline-color":e},filter:[`==`,`$type`,`Polygon`]};return r&&(i[`source-layer`]=r),i}function Z7(e,t,n){let r={id:[t,n,`line`].join(`_`),source:t,layout:{"line-join":`round`,"line-cap":`round`},type:`line`,paint:{"line-color":e},filter:[`==`,`$type`,`LineString`]};return n&&(r[`source-layer`]=n),r}function Q7(e,t){return{circle:t(e,.8),line:t(e,.6),polygon:t(e,.3),polygonOutline:t(e,.6),default:t(e,1)}}function q4e(e,t){let n=[],r=[],i=[];for(let a of Object.keys(e)){let o=e[a];if(!o||o.length===0){let e=Q7(a,t);r.push(Y7(e.circle,a)),i.push(Z7(e.line,a)),n.push(X7(e.polygon,e.polygonOutline,a))}else for(let e of o){let o=Q7(e,t);r.push(Y7(o.circle,a,e)),i.push(Z7(o.line,a,e)),n.push(X7(o.polygon,o.polygonOutline,a,e))}}return n.concat(i).concat(r)}function J4e(e,t,n){n=Object.assign({backgroundColor:`#fff`},n);let r={id:`background`,type:`background`,paint:{"background-color":n.backgroundColor}},i={};for(let t of Object.keys(e.sources)){let n=e.sources[t];(n.type===`vector`||n.type===`geojson`)&&(i[t]=n)}return Object.assign(e,{layers:[r].concat(t),sources:i})}var $7={polygonLayer:X7,lineLayer:Z7,circleLayer:Y7,generateInspectStyle:J4e,generateColoredLayers:q4e};function e9(){var e=`/home/runner/work/maputnik/maputnik/src/libs/highlight.ts`,t=`7421726a7afec07b60dcbf24ab0d23889ebbf613`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/highlight.ts`,statementMap:{0:{start:{line:4,column:1},end:{line:8,column:2}},1:{start:{line:5,column:2},end:{line:5,column:31}},2:{start:{line:6,column:8},end:{line:8,column:2}},3:{start:{line:7,column:2},end:{line:7,column:28}},4:{start:{line:9,column:1},end:{line:13,column:2}},5:{start:{line:10,column:2},end:{line:10,column:26}},6:{start:{line:12,column:2},end:{line:12,column:21}},7:{start:{line:14,column:1},end:{line:14,column:28}},8:{start:{line:15,column:1},end:{line:15,column:10}},9:{start:{line:18,column:1},end:{line:18,column:83}},10:{start:{line:18,column:71},end:{line:18,column:83}},11:{start:{line:19,column:23},end:{line:19,column:50}},12:{start:{line:20,column:15},end:{line:20,column:51}},13:{start:{line:21,column:1},end:{line:23,column:2}},14:{start:{line:22,column:2},end:{line:22,column:102}},15:{start:{line:24,column:1},end:{line:26,column:2}},16:{start:{line:25,column:2},end:{line:25,column:94}},17:{start:{line:27,column:1},end:{line:29,column:2}},18:{start:{line:28,column:2},end:{line:28,column:92}},19:{start:{line:30,column:1},end:{line:30,column:13}}},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:1},end:{line:8,column:2}},type:`if`,locations:[{start:{line:4,column:1},end:{line:8,column:2}},{start:{line:6,column:8},end:{line:8,column:2}}],line:4},1:{loc:{start:{line:6,column:8},end:{line:8,column:2}},type:`if`,locations:[{start:{line:6,column:8},end:{line:8,column:2}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:1},end:{line:13,column:2}},type:`if`,locations:[{start:{line:9,column:1},end:{line:13,column:2}},{start:{line:11,column:8},end:{line:13,column:2}}],line:9},3:{loc:{start:{line:18,column:1},end:{line:18,column:83}},type:`if`,locations:[{start:{line:18,column:1},end:{line:18,column:83}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:5},end:{line:18,column:69}},type:`binary-expr`,locations:[{start:{line:18,column:5},end:{line:18,column:11}},{start:{line:18,column:15},end:{line:18,column:42}},{start:{line:18,column:46},end:{line:18,column:69}}],line:18},5:{loc:{start:{line:19,column:23},end:{line:19,column:50}},type:`binary-expr`,locations:[{start:{line:19,column:23},end:{line:19,column:44}},{start:{line:19,column:48},end:{line:19,column:50}}],line:19},6:{loc:{start:{line:21,column:1},end:{line:23,column:2}},type:`if`,locations:[{start:{line:21,column:1},end:{line:23,column:2}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},7:{loc:{start:{line:21,column:5},end:{line:21,column:61}},type:`binary-expr`,locations:[{start:{line:21,column 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){let t=i3e.language(this.options.language.split(`,`)[0]);return this.options.language&&T9?.[e][t]?T9[e][t]:T9[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;let e=this._typeahead.data.filter(e=>typeof e!=`string`).slice(0,this.options.limit);if(this._clearEl.style.display=`none`,this.options.flyTo&&this._maplibregl&&this._map){let t=x9({},{padding:100},this.options.flyTo),n=new this._maplibregl.LngLatBounds;for(let t of e)`geometry`in t&&t.geometry?.type===`Point`&&n.extend(t.geometry.coordinates);this._map.fitBounds(n,t)}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.options.placeholder=e||this.options.placeholder||this._localize(`placeholder`),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute(`aria-label`,this.options.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();let t=x9({},{color:`#4668F2`},this.options.marker);this.mapMarker=new this._maplibregl.Marker(t);let n=null;if(this.options.popup){let t=x9({},{},this.options.popup);n=new this._maplibregl.Popup(t).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(n)):e.geometry?.type===`Point`&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(n)),this}_removeMarker(){this.mapMarker&&=(this.mapMarker.remove(),null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let t=x9({},{color:`#4668F2`},this.options.showResultMarkers);for(let n of e){let e;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(e=this.options.showResultMarkers.element.cloneNode(!0),t=x9(t,{element:e}));let r=new this._maplibregl.Marker(x9({},t,{element:e})),i;if(this.options.popup){let e=x9({},{},this.options.popup);i=new this._maplibregl.Popup(e).setHTML(this.options.popupRender(n))}n.center?(r.setLngLat(n.center).addTo(this._map),this.options.popup&&r.setPopup(i)):n.geometry&&n.geometry.type&&n.geometry.type===`Point`&&n.geometry.coordinates&&(r.setLngLat(n.geometry.coordinates).addTo(this._map),this.options.popup&&r.setPopup(i)),this.resultMarkers.push(r)}}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 z(){var e=`/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx`,t=`df8aeb2528840ce12aee4bde5e9f9311712e18e5`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx`,statementMap:{0:{start:{line:21,column:25},end:{line:25,column:2}},1:{start:{line:26,column:15},end:{line:26,column:54}},2:{start:{line:27,column:1},end:{line:29,column:2}},3:{start:{line:28,column:2},end:{line:28,column:28}},4:{start:{line:30,column:17},end:{line:30,column:19}},5:{start:{line:31,column:1},end:{line:36,column:4}},6:{start:{line:32,column:17},end:{line:32,column:51}},7:{start:{line:33,column:2},eLine truncated
`).reduce((t,n)=>Math.max(t,cj(e,n)),0);return n[t]=r,r}function U5e(e,t){let n=[],r=[],i=[],a=0,o=0,s=0,c=0;for(let l=0,u=t.length;l<=u;l+=2){let d=t[l];if(d===`
`||l===u){a=Math.max(a,o),i.push(o),o=0,s+=c,c=0;continue}let f=t[l+1]||e.font,p=cj(f,d);n.push(p),o+=p;let m=H5e(f);r.push(m),c=Math.max(c,m)}return{width:a,height:s,widths:n,heights:r,lineWidths:i}}function W5e(e,t,n,r,i,a,o,s,c,l,u){e.save(),n!==1&&(e.globalAlpha===void 0?e.globalAlpha=function(e){return e.globalAlpha*=n}:e.globalAlpha*=n),t&&e.transform.apply(e,t),r.contextInstructions?(e.translate(c,l),e.scale(u[0],u[1]),G5e(r,e)):u[0]<0||u[1]<0?(e.translate(c,l),e.scale(u[0],u[1]),e.drawImage(r,i,a,o,s,0,0,o,s)):e.drawImage(r,i,a,o,s,c,l,o*u[0],s*u[1]),e.restore()}function G5e(e,t){let n=t,r=e.contextInstructions;for(let e=0,t=r.length;e<t;e+=2)if(Array.isArray(r[e+1]))n[r[e]].apply(n,r[e+1]);else{let t=r[e];n[t]=r[e+1]}}var uj=class e{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=cA(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){let t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,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 cT()}getImage(e){return cT()}getHitDetectionImage(){return cT()}getPixelRatio(e){return 1}getImageState(){return cT()}getImageSize(){return cT()}getOrigin(){return cT()}getSize(){return cT()}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_=cA(e)}listenImageChange(e){cT()}load(){cT()}unlistenImageChange(e){cT()}ready(){return Promise.resolve()}},dj=class e extends uj{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0&&e.rotateWithView,rotation:e.rotation===void 0?0:e.rotation,scale:e.scale===void 0?1:e.scale,displacement:e.displacement===void 0?[0,0]:e.displacement,declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill===void 0?null:e.fill,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle===void 0?0:e.angle,this.stroke_=e.stroke===void 0?null:e.stroke,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?HA.LOADING:HA.LOADED,this.imageState_===HA.LOADING&&this.ready().then(()=>this.imageState_=HA.LOADED),this.render()}clone(){let t=this.getScale(),n=new e({fill:this.getFill()?.clone(),points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?.clone(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n}getAnchor(){let e=this.size_,t=this.getDisplacement(),n=this.getScaleArray();return[e[0]/2-t[0]/n[0],e[1]/2+t[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||=this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(e){let t=this.fill_?.getKey(),n=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(`,`),r=GA.get(n,null)?.getImage(1);if(!r){let t=this.renderOptions_,i=Math.ceil(t.size*e),a=nk(i,i);this.draw_(t,a,e),r=a.canvas;let o=new qA(r,void 0,{},HA.LOADED,null);GA.set(n,null,o),createImageBitmap(r).then(e=>{o.setImage(e)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,n){if(t===0||this.points_===1/0||e!==`bevel`&&e!==`miter`)return t;let r=this.radius,i=this.radius2_===void 0?r:this.radius2_;if(r<i){let e=r;r=i,i=e}let a=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/a,s=i*Math.sin(o),c=Math.sqrt(i*i-s*s),l=r-c,u=Math.sqrt(s*s+l*l),d=u/s;if(e===`miter`&&d<=n)return d*t;let f=t/2/d,p=t/2*(l/u),m=Math.sqrt((r+f)*(r+f)+p*p)-r;if(this.radius2_===void 0||e===`bevel`)return m*2;let h=r*Math.sin(o),g=Math.sqrt(r*r-h*h),_=i-g,v=Math.sqrt(h*h+_*_)/h;if(v<=n){let e=v*t/2-i-r;return 2*Math.max(m,e)}return m*2}creat Line truncated
`,``),e.push(t,``),e}function v9e(e,t,n){return n%2==0&&(e+=t),e}var y9e=class{constructor(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=UD(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=i?new HM:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,n,r){let i=e+t+n+r;if(this.labels_[i])return this.labels_[i];let a=r?this.strokeStates[r]:null,o=n?this.fillStates[n]:null,s=this.textStates[t],c=this.pixelRatio,l=[s.scale[0]*c,s.scale[1]*c],u=s.justify?sN[s.justify]:yN(Array.isArray(e)?e[0]:e,s.textAlign||`center`),d=r&&a.lineWidth?a.lineWidth:0,f=Array.isArray(e)?e:String(e).split(`
`).reduce(_9e,[]),{width:p,height:m,widths:h,heights:g,lineWidths:_}=U5e(s,f),v=p+d,y=[],b=(v+2)*l[0],x=(m+d)*l[1],S={width:b<0?Math.floor(b):Math.ceil(b),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:y};(l[0]!=1||l[1]!=1)&&y.push(`scale`,l),r&&a&&(y.push(`strokeStyle`,a.strokeStyle),y.push(`lineWidth`,d),y.push(`lineCap`,a.lineCap),y.push(`lineJoin`,a.lineJoin),y.push(`miterLimit`,a.miterLimit),y.push(`setLineDash`,[a.lineDash]),y.push(`lineDashOffset`,a.lineDashOffset)),n&&o&&y.push(`fillStyle`,o.fillStyle),y.push(`textBaseline`,`middle`),y.push(`textAlign`,`center`);let C=.5-u,w=u*v+C*d,T=[],E=[],D=0,O=0,k=0,A=0,ee;for(let e=0,t=f.length;e<t;e+=2){let t=f[e];if(t===`
`){O+=D,D=0,w=u*v+C*d,++A;continue}let i=f[e+1]||s.font;i!==ee&&(r&&T.push(`font`,i),n&&E.push(`font`,i),ee=i),D=Math.max(D,g[k]);let a=[t,w+C*h[k]+u*(h[k]-_[A]),.5*(d+D)+O];w+=h[k],r&&T.push(`strokeText`,a),n&&E.push(`fillText`,a),++k}return Array.prototype.push.apply(y,T),Array.prototype.push.apply(y,E),this.labels_[i]=S,S}replayTextBackground_(e,t,n,r,i,a,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),a&&(this.alignAndScaleFill_=a[2],e.fillStyle=a[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){o*=d[0],s*=d[1];let g=n-o,_=r-s,v=i+c>e?e-c:i,y=a+l>t?t-l:a,b=p[3]+v*d[0]+p[1],x=p[0]+y*d[1]+p[2],S=g-p[3],C=_-p[0];(m||u!==0)&&(mN[0]=S,_N[0]=S,mN[1]=C,hN[1]=C,hN[0]=S+b,gN[0]=hN[0],gN[1]=C+x,_N[1]=gN[1]);let w;return u===0?sE(Math.min(S,S+b),Math.min(C,C+x),Math.max(S,S+b),Math.max(C,C+x),pN):(w=YD(UD(),n,r,1,1,u,-n,-r),qD(w,mN),qD(w,hN),qD(w,gN),qD(w,_N),sE(Math.min(mN[0],hN[0],gN[0],_N[0]),Math.min(mN[1],hN[1],gN[1],_N[1]),Math.max(mN[0],hN[0],gN[0],_N[0]),Math.max(mN[1],hN[1],gN[1],_N[1]),pN)),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:v,drawImageH:y,originX:c,originY:l,declutterBox:{minX:pN[0],minY:pN[1],maxX:pN[2],maxY:pN[3],value:h},canvasTransform:w,scale:d}}replayImageOrLabelArgs_(e){return this.replayImageOrLabel_(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}replayImageOrLabel_(e,t,n,r,i,a,o){let s=!!(a||o),c=r.declutterBox,l=o?o[2]*r.scale[0]/2:0;return c.minX-l<=t[0]&&c.maxX+l>=0&&c.minY-l<=t[1]&&c.maxY+l>=0&&(s&&this.replayTextBackground_(e,mN,hN,gN,_N,a,o),W5e(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){let t=this.alignAndScaleFill_;if(t){let n=qD(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(n[0]%r,n[1]%r),t!==1&&e.scale(t,t)}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,n,r){let i=this.textStates[t],a=this.createLabel(e,t,r,n),o=this.strokeStates[n],s=this.pixelRatio,c=yN(Array.isArray(e)?e[0]:e,i.textAlign||`center`),l=sN[i.textBaseline||`middle`],u=o&&o.lineWidth?o.lineWidth:0;return{label:a,anchorX:c*(a.width/s-2*i.scale[0])+2*(.5-c)*u,anchorY:l*a.height/s+2*(.5-l)*u}}execute_(e,t,n,r,i,a,o,s){let c=this.zIndexContext_,l;this.pixelCoordinates_&&sT(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||=[],l=QD(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),I8e(this.renderedTransform_,n));let u=0,d=r.length,f=0,p,m=[],h,g,_,v,y,b,x,S,C,w,T,E,D,O=0,k=0,A=this.coordinateCache_,ee=this.viewRotation_,j=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,te={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ee},ne=this.instructions!=r||this.overlaps?0:200,M,re,ie,ae;for(;u<d;){let n=r[u];switch(n[0]){case QM.BEGIN_GEOMETRY:M=n[1],ae=n[3],M.getGeometry()?o!==void 0&&!OE(o,ae.getExtent())?u=n[2]+1:++u:u=n[2],c&&(c.zIndex=n[4]);break;case QM.BEGIN_PATH:O>ne&&(this.fill_(e),O=0),k>ne&&(e.stroke(),k=0),!O&&!k&&(e.beginPath(),y=NaN,b=NaN),++u;break;case QM.CIRCLE:f=n[1],_=n[2]??0;let r=l[f],d=l[f+1],oe=l[f+2]-_,se=l[f+3]-_,ce=oe-r,le=se-d,ue=Math.sqrt(ce*ce+le*le);e.moveTo(r+ue,d),e.arc(r,d,ue,0,2*Math.PI,!0),++u;break;case QM.CLOSE_PATH:e.closePath(),++u;break;case QM.CUSTOM:f=n[1],p=n[2];let de=n[3],fe=n[4],pe=n[5];te.geometry=de,te.feature=M,u in A||(A[u]=[]);let me=A[u];pe?pe(l,f,p,2,me):(me[0]=l[f],me[1]=l[f+1],me.length=2),c&&(c.zIndex=n[6]),fe(me,te),++u;break;case QM.DRAW_IMAGE:f=n[1],p=n[2],C=n[3],h=n[4],g=n[5];let he=n[6],ge=n[7],_e=n[8],ve=n[9],ye=n[10],be=n[11],xe=n[12],Se=n[13];v=n[14]||`declutter`;let Ce=n[15];if(!C&&n.length>=20){w=n[19],T=n[20],E=n[21],D=n[22];let e=this.drawLabelWithPointPlacement_(w,T,E,D);C=e.label,n[3]=C;let t=n[23];h=(e.anchorX-t)*this.pixelRatio,n[4]=h;let r=n[24];g=(e.anchorY-r)*this.pixelRatio,n[5]=g,he=C.height,n[6]=he,Se=C.width,n[13]=Se}let we;n.length>25&&(we=n[25]);let Te,Ee,De;n.length>17?(Te=n[16],Ee=n[17],De=n[18]):(Te=nj,Ee=null,De=null),ye&&j?be+=ee:!ye&&!j&&(be-=ee);let Oe=0;for(;f<p;f+=2){if(we&&we[Oe++]<Se/this.pixelRatio)continue;let n=this.calculateImageOrLabelDimensions_(C.width,C.height,l[f],l[f+1],Se,he,h,g,_e,ve,be,xe,i,Te,!!Ee||!!De,M),r=[e,t,C,n,ge,Ee,De];if(s){let e,t,i;if(Ce){let n=p-f;if(!Ce[n]){Ce[n]={args:r,declutterMode:v};continue}let a=Ce[n];e=a.args,t=a.declutterMode,delete Ce[n],i=vN(e)}let a,o;if(e&&(t!==`declutter`||!s.collides(i))&&(a=!0),v===`declutter`&&s.collides(n.declutterBox)||(o=!0),t===`declutter`&&v===`declutter`){let e=a&&o;a=e,o=e}a&&(t!==`none`&&s.insert(i),this.replayImageOrLabelArgs_(e)),o&&(v!==`none`&&s.insert(n.declutterBox),this.replayImageOrLabelArgs_(r))}else this.replayImageOrLabelArgs_(r)}++u;break;case QM.DRAW_CHARS: Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(qN(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,n){}},X9e=class extends $N{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Z9e,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,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin===void 0?null:e.crossOrigin,this.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass===void 0?wM:e.tileClass,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){let t=this.getProjection();return t&&e&&!AD(t,e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=`:disable-interpolation`),e}getTileGridForProjection(e){let t=this.getProjection();if(this.tileGrid&&(!t||AD(t,e)))return this.tileGrid;let n=lT(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=BN(e)),this.tileGridForProjection[n]}createTile_(e,t,n,r,i,a){let o=[e,t,n],s=this.getTileCoordForTileUrlFunction(o,i),c=s?this.tileUrlFunction(s,r,i):void 0,l=new this.tileClass(o,c===void 0?FT.EMPTY:FT.IDLE,c===void 0?``:c,{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return l.key=a,l.addEventListener(nT.CHANGE,this.handleTileChange.bind(this)),l}getTile(e,t,n,r,i,a){let o=this.getProjection();if(!o||!i||AD(o,i))return this.getTileInternal(e,t,n,r,o||i);let s=[e,t,n],c=this.getKey(),l=new LM(o,this.getTileGridForProjection(o),i,this.getTileGridForProjection(i),s,this.getTileCoordForTileUrlFunction(s,i)||s,this.getTilePixelRatio(r),this.getGutter(),(e,t,n,r)=>this.getTileInternal(e,t,n,r,o,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return l.key=c,l}getTileInternal(e,t,n,r,i,a){let o=this.getKey(),s=BM(this,o,e,t,n);if(a&&a.containsKey(s))return a.get(s);let c=this.createTile_(e,t,n,r,i,o);return a?.set(s,c),c}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){let n=wD(e);if(n){let e=lT(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}};function Z9e(e,t){if(kT){let n=e.getCrossOrigin(),r=`same-origin`,i=`same-origin`;n===`anonymous`||n===``?(r=`cors`,i=`omit`):n===`use-credentials`&&(r=`cors`,i=`include`);let a={mode:r,credentials:i,referrerPolicy:e.getReferrerPolicy()};fetch(t,a).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.blob()}).then(e=>createImageBitmap(e)).then(t=>{let n=e.getImage();if(!n)return;n.width=t.width,n.height=t.height;let r=n.getContext(`2d`);r&&(r.drawImage(t,0,0),t.close?.(),n.dispatchEvent(new Event(`load`)))}).catch(()=>{e.getImage()?.dispatchEvent(new Event(`error`))})}else e.getImage().src=t}var eP=class extends X9e{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:wD(`EPSG:3857`),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:`loading`,tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX===void 0||e.wrapX,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url){if(e.jsonp)B9e(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{let 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 Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){let t=e.target;if(!t.status||t.status>=200&&t.status<300){let e;try{e=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(e)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){let t=wD(`EPSG:4326`),n=this.getProjection();if(!n||!t){this.handleTileJSONError();return}let r;if(e.bounds!==void 0){let i=jD(t,n);if(!i){this.handleTileJSONError();return}r=AE(e.bounds,i)}let i=WN(n),a=e.minzoom||0,o=VN({extent:i,maxZoom:e.maxzoom||22,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=o,this.tileUrlFunction=qN(e.tiles,o),e.attribution&&!this.getAttributions()){let t=r===void 0?i:r;this.setAttributions((function(n){return OE(t,n.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState(`ready`)}handleTileJSONError(){this.setState(`error`)}},Q9e=!1;function tP(e,t,n,r,i,a,o){let s=new XMLHttpRequest;s.open(`GET`,typeof e==`function`?e(n,r,i):e,!0),t.getType()==`arraybuffer`&&(s.responseType=`Line truncated
`,U7().s[12]++,this._textEl=this._container.querySelector(`span`),U7().s[13]++,this.updateZoomLevel()}addEventListeners(){U7().f[4]++,U7().s[14]++,this._map.on(`render`,()=>(U7().f[5]++,U7().s[15]++,this.updateZoomLevel()))}onRemove(){U7().f[6]++,U7().s[16]++,this._container.parentNode.removeChild(this._container),U7().s[17]++,this._map=void 0}};function W7(e,t,n){let r={id:[t,n,`circle`].join(`_`),source:t,type:`circle`,paint:{"circle-color":e,"circle-radius":2},filter:[`==`,`$type`,`Point`]};return n&&(r[`source-layer`]=n),r}function G7(e,t,n,r){let i={id:[n,r,`polygon`].join(`_`),source:n,type:`fill`,paint:{"fill-color":e,"fill-antialias":!0,"fill-outline-color":e},filter:[`==`,`$type`,`Polygon`]};return r&&(i[`source-layer`]=r),i}function K7(e,t,n){let r={id:[t,n,`line`].join(`_`),source:t,layout:{"line-join":`round`,"line-cap":`round`},type:`line`,paint:{"line-color":e},filter:[`==`,`$type`,`LineString`]};return n&&(r[`source-layer`]=n),r}function q7(e,t){return{circle:t(e,.8),line:t(e,.6),polygon:t(e,.3),polygonOutline:t(e,.6),default:t(e,1)}}function Q4e(e,t){let n=[],r=[],i=[];for(let a of Object.keys(e)){let o=e[a];if(!o||o.length===0){let e=q7(a,t);r.push(W7(e.circle,a)),i.push(K7(e.line,a)),n.push(G7(e.polygon,e.polygonOutline,a))}else for(let e of o){let o=q7(e,t);r.push(W7(o.circle,a,e)),i.push(K7(o.line,a,e)),n.push(G7(o.polygon,o.polygonOutline,a,e))}}return n.concat(i).concat(r)}function $4e(e,t,n){n=Object.assign({backgroundColor:`#fff`},n);let r={id:`background`,type:`background`,paint:{"background-color":n.backgroundColor}},i={};for(let t of Object.keys(e.sources)){let n=e.sources[t];(n.type===`vector`||n.type===`geojson`)&&(i[t]=n)}return Object.assign(e,{layers:[r].concat(t),sources:i})}var J7={polygonLayer:G7,lineLayer:K7,circleLayer:W7,generateInspectStyle:$4e,generateColoredLayers:Q4e};function Y7(){var e=`/home/runner/work/maputnik/maputnik/src/libs/highlight.ts`,t=`7421726a7afec07b60dcbf24ab0d23889ebbf613`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/highlight.ts`,statementMap:{0:{start:{line:4,column:1},end:{line:8,column:2}},1:{start:{line:5,column:2},end:{line:5,column:31}},2:{start:{line:6,column:8},end:{line:8,column:2}},3:{start:{line:7,column:2},end:{line:7,column:28}},4:{start:{line:9,column:1},end:{line:13,column:2}},5:{start:{line:10,column:2},end:{line:10,column:26}},6:{start:{line:12,column:2},end:{line:12,column:21}},7:{start:{line:14,column:1},end:{line:14,column:28}},8:{start:{line:15,column:1},end:{line:15,column:10}},9:{start:{line:18,column:1},end:{line:18,column:83}},10:{start:{line:18,column:71},end:{line:18,column:83}},11:{start:{line:19,column:23},end:{line:19,column:50}},12:{start:{line:20,column:15},end:{line:20,column:51}},13:{start:{line:21,column:1},end:{line:23,column:2}},14:{start:{line:22,column:2},end:{line:22,column:102}},15:{start:{line:24,column:1},end:{line:26,column:2}},16:{start:{line:25,column:2},end:{line:25,column:94}},17:{start:{line:27,column:1},end:{line:29,column:2}},18:{start:{line:28,column:2},end:{line:28,column:92}},19:{start:{line:30,column:1},end:{line:30,column:13}}},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:1},end:{line:8,column:2}},type:`if`,locations:[{start:{line:4,column:1},end:{line:8,column:2}},{start:{line:6,column:8},end:{line:8,column:2}}],line:4},1:{loc:{start:{line:6,column:8},end:{line:8,column:2}},type:`if`,locations:[{start:{line:6,column:8},end:{line:8,column:2}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:1},end:{line:13,column:2}},type:`if`,locations:[{start:{line:9,column:1},end:{line:13,column:2}},{start:{line:11,column:8},end:{line:13,column:2}}],line:9},3:{loc:{start:{line:18,column:1},end:{line:18,column:83}},type:`if`,locations:[{start:{line:18,column:1},end:{line:18,column:83}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:5},end:{line:18,column:69}},type:`binary-expr`,locations:[{start:{line:18,column:5},end:{line:18,column:11}},{start:{line:18,column:15},end:{line:18,column:42}},{start:{line:18,column:46},end:{line:18,column:69}}],line:18},5:{loc:{start:{line:19,column:23},end:{line:19,column:50}},type:`binary-expr`,locations:[{start:{line:19,column:23},end:{line:19,column:44}},{start:{line:19,column:48},end:{line:19,column:50}}],line:19},6:{loc:{start:{line:21,column:1},end:{line:23,column:2}},type:`if`,locations:[{start:{line:21,column:1},end:{line:23,column:2}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},7:{loc:{start:{line:21,column:5},end:{line:21,column:61}},type:`binary-expr`,locations:[{start:{line:21,column 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){let t=h3e.default.language(this.options.language.split(`,`)[0]);return this.options.language&&a9?.[e][t]?a9[e][t]:a9[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;let e=this._typeahead.data.filter(e=>typeof e!=`string`).slice(0,this.options.limit);if(this._clearEl.style.display=`none`,this.options.flyTo&&this._maplibregl&&this._map){let t={padding:100,maxZoom:this.options.zoom},n=(0,r9.default)({},t,this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(let t of e)`geometry`in t&&t.geometry?.type===`Point`&&r.extend(t.geometry.coordinates);this._map.fitBounds(r,n)}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.options.placeholder=e||this.options.placeholder||this._localize(`placeholder`),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute(`aria-label`,this.options.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();let t=(0,r9.default)({},{color:`#4668F2`},this.options.marker);this.mapMarker=new this._maplibregl.Marker(t);let n=null;if(this.options.popup){let t=(0,r9.default)({},{},this.options.popup);n=new this._maplibregl.Popup(t).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(n)):e.geometry?.type===`Point`&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(n)),this}_removeMarker(){this.mapMarker&&=(this.mapMarker.remove(),null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let t=(0,r9.default)({},{color:`#4668F2`},this.options.showResultMarkers);for(let n of e){let e;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(e=this.options.showResultMarkers.element.cloneNode(!0),t=(0,r9.default)(t,{element:e}));let r=new this._maplibregl.Marker((0,r9.default)({},t,{element:e})),i;if(this.options.popup){let e=(0,r9.default)({},{},this.options.popup);i=new this._maplibregl.Popup(e).setHTML(this.options.popupRender(n))}n.center?(r.setLngLat(n.center).addTo(this._map),this.options.popup&&r.setPopup(i)):n.geometry&&n.geometry.type&&n.geometry.type===`Point`&&n.geometry.coordinates&&(r.setLngLat(n.geometry.coordinates).addTo(this._map),this.options.popup&&r.setPopup(i)),this.resultMarkers.push(r)}}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 z(){var e=`/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx`,t=`df8aeb2528840ce12aee4bde5e9f9311712e18e5`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx`,statementMap:{0:{start:{line:21,column:25},end:{line:25,column:2}},1:{start:{line:26,column:15},end:{line:26,column:54}},2:{start:{line:27,column:1},end:{line:29,column:2}},3:{start:{line:28,column:2},end:{line:28,column:28}},4:{start:{line:30,column:17},end:{line:30,column:19}},5:{start:{linLine truncated
`).reduce((t,n)=>Math.max(t,HA(e,n)),0);return n[t]=r,r}function Q5e(e,t){let n=[],r=[],i=[],a=0,o=0,s=0,c=0;for(let l=0,u=t.length;l<=u;l+=2){let d=t[l];if(d===`
`||l===u){a=Math.max(a,o),i.push(o),o=0,s+=c,c=0;continue}let f=t[l+1]||e.font,p=HA(f,d);n.push(p),o+=p;let m=Z5e(f);r.push(m),c=Math.max(c,m)}return{width:a,height:s,widths:n,heights:r,lineWidths:i}}function $5e(e,t,n,r,i,a,o,s,c,l,u){e.save(),n!==1&&(e.globalAlpha===void 0?e.globalAlpha=function(e){return e.globalAlpha*=n}:e.globalAlpha*=n),t&&e.transform.apply(e,t),r.contextInstructions?(e.translate(c,l),e.scale(u[0],u[1]),e7e(r,e)):u[0]<0||u[1]<0?(e.translate(c,l),e.scale(u[0],u[1]),e.drawImage(r,i,a,o,s,0,0,o,s)):e.drawImage(r,i,a,o,s,c,l,o*u[0],s*u[1]),e.restore()}function e7e(e,t){let n=t,r=e.contextInstructions;for(let e=0,t=r.length;e<t;e+=2)if(Array.isArray(r[e+1]))n[r[e]].apply(n,r[e+1]);else{let t=r[e];n[t]=r[e+1]}}var WA=class e{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Hk(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){let t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,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 Hw()}getImage(e){return Hw()}getHitDetectionImage(){return Hw()}getPixelRatio(e){return 1}getImageState(){return Hw()}getImageSize(){return Hw()}getOrigin(){return Hw()}getSize(){return Hw()}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_=Hk(e)}listenImageChange(e){Hw()}load(){Hw()}unlistenImageChange(e){Hw()}ready(){return Promise.resolve()}},GA=class e extends WA{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0&&e.rotateWithView,rotation:e.rotation===void 0?0:e.rotation,scale:e.scale===void 0?1:e.scale,displacement:e.displacement===void 0?[0,0]:e.displacement,declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill===void 0?null:e.fill,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle===void 0?0:e.angle,this.stroke_=e.stroke===void 0?null:e.stroke,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?SA.LOADING:SA.LOADED,this.imageState_===SA.LOADING&&this.ready().then(()=>this.imageState_=SA.LOADED),this.render()}clone(){let t=this.getScale(),n=new e({fill:this.getFill()?.clone(),points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?.clone(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n}getAnchor(){let e=this.size_,t=this.getDisplacement(),n=this.getScaleArray();return[e[0]/2-t[0]/n[0],e[1]/2+t[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||=this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(e){let t=this.fill_?.getKey(),n=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(`,`),r=TA.get(n,null)?.getImage(1);if(!r){let t=this.renderOptions_,i=Math.ceil(t.size*e),a=IO(i,i);this.draw_(t,a,e),r=a.canvas;let o=new DA(r,void 0,{},SA.LOADED,null);TA.set(n,null,o),createImageBitmap(r).then(e=>{o.setImage(e)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,n){if(t===0||this.points_===1/0||e!==`bevel`&&e!==`miter`)return t;let r=this.radius,i=this.radius2_===void 0?r:this.radius2_;if(r<i){let e=r;r=i,i=e}let a=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/a,s=i*Math.sin(o),c=Math.sqrt(i*i-s*s),l=r-c,u=Math.sqrt(s*s+l*l),d=u/s;if(e===`miter`&&d<=n)return d*t;let f=t/2/d,p=t/2*(l/u),m=Math.sqrt((r+f)*(r+f)+p*p)-r;if(this.radius2_===void 0||e===`bevel`)return m*2;let h=r*Math.sin(o),g=Math.sqrt(r*r-h*h),_=i-g,v=Math.sqrt(h*h+_*_)/h;if(v<=n){let e=v*t/2-i-r;return 2*Math.max(m,e)}return m*2}creat Line truncated
`,``),e.push(t,``),e}function D9e(e,t,n){return n%2==0&&(e+=t),e}var O9e=class{constructor(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=CD(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=i?new SM:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,n,r){let i=e+t+n+r;if(this.labels_[i])return this.labels_[i];let a=r?this.strokeStates[r]:null,o=n?this.fillStates[n]:null,s=this.textStates[t],c=this.pixelRatio,l=[s.scale[0]*c,s.scale[1]*c],u=s.justify?VM[s.justify]:$M(Array.isArray(e)?e[0]:e,s.textAlign||`center`),d=r&&a.lineWidth?a.lineWidth:0,f=Array.isArray(e)?e:String(e).split(`
`).reduce(E9e,[]),{width:p,height:m,widths:h,heights:g,lineWidths:_}=Q5e(s,f),v=p+d,y=[],b=(v+2)*l[0],x=(m+d)*l[1],S={width:b<0?Math.floor(b):Math.ceil(b),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:y};(l[0]!=1||l[1]!=1)&&y.push(`scale`,l),r&&a&&(y.push(`strokeStyle`,a.strokeStyle),y.push(`lineWidth`,d),y.push(`lineCap`,a.lineCap),y.push(`lineJoin`,a.lineJoin),y.push(`miterLimit`,a.miterLimit),y.push(`setLineDash`,[a.lineDash]),y.push(`lineDashOffset`,a.lineDashOffset)),n&&o&&y.push(`fillStyle`,o.fillStyle),y.push(`textBaseline`,`middle`),y.push(`textAlign`,`center`);let C=.5-u,w=u*v+C*d,T=[],E=[],D=0,O=0,k=0,A=0,ee;for(let e=0,t=f.length;e<t;e+=2){let t=f[e];if(t===`
`){O+=D,D=0,w=u*v+C*d,++A;continue}let i=f[e+1]||s.font;i!==ee&&(r&&T.push(`font`,i),n&&E.push(`font`,i),ee=i),D=Math.max(D,g[k]);let a=[t,w+C*h[k]+u*(h[k]-_[A]),.5*(d+D)+O];w+=h[k],r&&T.push(`strokeText`,a),n&&E.push(`fillText`,a),++k}return Array.prototype.push.apply(y,T),Array.prototype.push.apply(y,E),this.labels_[i]=S,S}replayTextBackground_(e,t,n,r,i,a,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),a&&(this.alignAndScaleFill_=a[2],e.fillStyle=a[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){o*=d[0],s*=d[1];let g=n-o,_=r-s,v=i+c>e?e-c:i,y=a+l>t?t-l:a,b=p[3]+v*d[0]+p[1],x=p[0]+y*d[1]+p[2],S=g-p[3],C=_-p[0];(m||u!==0)&&(JM[0]=S,ZM[0]=S,JM[1]=C,YM[1]=C,YM[0]=S+b,XM[0]=YM[0],XM[1]=C+x,ZM[1]=XM[1]);let w;return u===0?VT(Math.min(S,S+b),Math.min(C,C+x),Math.max(S,S+b),Math.max(C,C+x),qM):(w=kD(CD(),n,r,1,1,u,-n,-r),DD(w,JM),DD(w,YM),DD(w,XM),DD(w,ZM),VT(Math.min(JM[0],YM[0],XM[0],ZM[0]),Math.min(JM[1],YM[1],XM[1],ZM[1]),Math.max(JM[0],YM[0],XM[0],ZM[0]),Math.max(JM[1],YM[1],XM[1],ZM[1]),qM)),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:v,drawImageH:y,originX:c,originY:l,declutterBox:{minX:qM[0],minY:qM[1],maxX:qM[2],maxY:qM[3],value:h},canvasTransform:w,scale:d}}replayImageOrLabelArgs_(e){return this.replayImageOrLabel_(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}replayImageOrLabel_(e,t,n,r,i,a,o){let s=!!(a||o),c=r.declutterBox,l=o?o[2]*r.scale[0]/2:0;return c.minX-l<=t[0]&&c.maxX+l>=0&&c.minY-l<=t[1]&&c.maxY+l>=0&&(s&&this.replayTextBackground_(e,JM,YM,XM,ZM,a,o),$5e(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){let t=this.alignAndScaleFill_;if(t){let n=DD(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(n[0]%r,n[1]%r),t!==1&&e.scale(t,t)}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,n,r){let i=this.textStates[t],a=this.createLabel(e,t,r,n),o=this.strokeStates[n],s=this.pixelRatio,c=$M(Array.isArray(e)?e[0]:e,i.textAlign||`center`),l=VM[i.textBaseline||`middle`],u=o&&o.lineWidth?o.lineWidth:0;return{label:a,anchorX:c*(a.width/s-2*i.scale[0])+2*(.5-c)*u,anchorY:l*a.height/s+2*(.5-l)*u}}execute_(e,t,n,r,i,a,o,s){let c=this.zIndexContext_,l;this.pixelCoordinates_&&Vw(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||=[],l=MD(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),G8e(this.renderedTransform_,n));let u=0,d=r.length,f=0,p,m=[],h,g,_,v,y,b,x,S,C,w,T,E,D,O=0,k=0,A=this.coordinateCache_,ee=this.viewRotation_,j=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,te={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ee},ne=this.instructions!=r||this.overlaps?0:200,M,re,ie,ae;for(;u<d;){let n=r[u];switch(n[0]){case MM.BEGIN_GEOMETRY:M=n[1],ae=n[3],M.getGeometry()?o!==void 0&&!cE(o,ae.getExtent())?u=n[2]+1:++u:u=n[2],c&&(c.zIndex=n[4]);break;case MM.BEGIN_PATH:O>ne&&(this.fill_(e),O=0),k>ne&&(e.stroke(),k=0),!O&&!k&&(e.beginPath(),y=NaN,b=NaN),++u;break;case MM.CIRCLE:f=n[1],_=n[2]??0;let r=l[f],d=l[f+1],oe=l[f+2]-_,se=l[f+3]-_,ce=oe-r,le=se-d,ue=Math.sqrt(ce*ce+le*le);e.moveTo(r+ue,d),e.arc(r,d,ue,0,2*Math.PI,!0),++u;break;case MM.CLOSE_PATH:e.closePath(),++u;break;case MM.CUSTOM:f=n[1],p=n[2];let de=n[3],fe=n[4],pe=n[5];te.geometry=de,te.feature=M,u in A||(A[u]=[]);let me=A[u];pe?pe(l,f,p,2,me):(me[0]=l[f],me[1]=l[f+1],me.length=2),c&&(c.zIndex=n[6]),fe(me,te),++u;break;case MM.DRAW_IMAGE:f=n[1],p=n[2],C=n[3],h=n[4],g=n[5];let he=n[6],ge=n[7],_e=n[8],ve=n[9],ye=n[10],be=n[11],xe=n[12],Se=n[13];v=n[14]||`declutter`;let Ce=n[15];if(!C&&n.length>=20){w=n[19],T=n[20],E=n[21],D=n[22];let e=this.drawLabelWithPointPlacement_(w,T,E,D);C=e.label,n[3]=C;let t=n[23];h=(e.anchorX-t)*this.pixelRatio,n[4]=h;let r=n[24];g=(e.anchorY-r)*this.pixelRatio,n[5]=g,he=C.height,n[6]=he,Se=C.width,n[13]=Se}let we;n.length>25&&(we=n[25]);let Te,Ee,De;n.length>17?(Te=n[16],Ee=n[17],De=n[18]):(Te=IA,Ee=null,De=null),ye&&j?be+=ee:!ye&&!j&&(be-=ee);let Oe=0;for(;f<p;f+=2){if(we&&we[Oe++]<Se/this.pixelRatio)continue;let n=this.calculateImageOrLabelDimensions_(C.width,C.height,l[f],l[f+1],Se,he,h,g,_e,ve,be,xe,i,Te,!!Ee||!!De,M),r=[e,t,C,n,ge,Ee,De];if(s){let e,t,i;if(Ce){let n=p-f;if(!Ce[n]){Ce[n]={args:r,declutterMode:v};continue}let a=Ce[n];e=a.args,t=a.declutterMode,delete Ce[n],i=QM(e)}let a,o;if(e&&(t!==`declutter`||!s.collides(i))&&(a=!0),v===`declutter`&&s.collides(n.declutterBox)||(o=!0),t===`declutter`&&v===`declutter`){let e=a&&o;a=e,o=e}a&&(t!==`none`&&s.insert(i),this.replayImageOrLabelArgs_(e)),o&&(v!==`none`&&s.insert(n.declutterBox),this.replayImageOrLabelArgs_(r))}else this.replayImageOrLabelArgs_(r)}++u;break;case MM.DRAW_CHARS: Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(DN(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,n){}},aSe=class extends NN{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:oSe,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,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin===void 0?null:e.crossOrigin,this.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass===void 0?iM:e.tileClass,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){let t=this.getProjection();return t&&e&&!uD(t,e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=`:disable-interpolation`),e}getTileGridForProjection(e){let t=this.getProjection();if(this.tileGrid&&(!t||uD(t,e)))return this.tileGrid;let n=Uw(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=bN(e)),this.tileGridForProjection[n]}createTile_(e,t,n,r,i,a){let o=[e,t,n],s=this.getTileCoordForTileUrlFunction(o,i),c=s?this.tileUrlFunction(s,r,i):void 0,l=new this.tileClass(o,c===void 0?hT.EMPTY:hT.IDLE,c===void 0?``:c,{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return l.key=a,l.addEventListener(Iw.CHANGE,this.handleTileChange.bind(this)),l}getTile(e,t,n,r,i,a){let o=this.getProjection();if(!o||!i||uD(o,i))return this.getTileInternal(e,t,n,r,o||i);let s=[e,t,n],c=this.getKey(),l=new _M(o,this.getTileGridForProjection(o),i,this.getTileGridForProjection(i),s,this.getTileCoordForTileUrlFunction(s,i)||s,this.getTilePixelRatio(r),this.getGutter(),(e,t,n,r)=>this.getTileInternal(e,t,n,r,o,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return l.key=c,l}getTileInternal(e,t,n,r,i,a){let o=this.getKey(),s=bM(this,o,e,t,n);if(a&&a.containsKey(s))return a.get(s);let c=this.createTile_(e,t,n,r,i,o);return a?.set(s,c),c}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){let n=iD(e);if(n){let e=Uw(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}};function oSe(e,t){if(lT){let n=e.getCrossOrigin(),r=`same-origin`,i=`same-origin`;n===`anonymous`||n===``?(r=`cors`,i=`omit`):n===`use-credentials`&&(r=`cors`,i=`include`);let a={mode:r,credentials:i,referrerPolicy:e.getReferrerPolicy()};fetch(t,a).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.blob()}).then(e=>createImageBitmap(e)).then(t=>{let n=e.getImage();if(!n)return;n.width=t.width,n.height=t.height;let r=n.getContext(`2d`);r&&(r.drawImage(t,0,0),t.close?.(),n.dispatchEvent(new Event(`load`)))}).catch(()=>{e.getImage()?.dispatchEvent(new Event(`error`))})}else e.getImage().src=t}var PN=class extends aSe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:iD(`EPSG:3857`),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:`loading`,tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX===void 0||e.wrapX,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url){if(e.jsonp)Y9e(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{let 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 Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){let t=e.target;if(!t.status||t.status>=200&&t.status<300){let e;try{e=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(e)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){let t=iD(`EPSG:4326`),n=this.getProjection();if(!n||!t){this.handleTileJSONError();return}let r;if(e.bounds!==void 0){let i=dD(t,n);if(!i){this.handleTileJSONError();return}r=uE(e.bounds,i)}let i=wN(n),a=e.minzoom||0,o=xN({extent:i,maxZoom:e.maxzoom||22,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=o,this.tileUrlFunction=DN(e.tiles,o),e.attribution&&!this.getAttributions()){let t=r===void 0?i:r;this.setAttributions((function(n){return cE(t,n.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState(`ready`)}handleTileJSONError(){this.setState(`error`)}},sSe=!1;function FN(e,t,n,r,i,a,o){let s=new XMLHttpRequest;s.open(`GET`,typeof e==`function`?e(n,r,i):e,!0),t.getType()==`arraybuffer`&&(s.responseType=`Line truncated
attribute vec4 a_position;
attribute vec4 a_texcoord;
@@ -956,7 +956,7 @@ uniform ${n} ${r} u_${i};
vec2 texcoord = (u_textureMatrix * a_texcoord).xy;
v_texcoord = texcoord;
}
`,uSe=`
`,ySe=`
precision mediump float;
varying vec2 v_texcoord;
@@ -974,7 +974,7 @@ uniform ${n} ${r} u_${i};
}
gl_FragColor = texture2D(u_texture, v_texcoord);
}
`,dSe=class{constructor(e){this.gl_=e,this.program_=EP(e,uSe,lSe),this.positionLocation=e.getAttribLocation(this.program_,`a_position`),this.texcoordLocation=e.getAttribLocation(this.program_,`a_texcoord`),this.matrixLocation=e.getUniformLocation(this.program_,`u_matrix`),this.textureMatrixLocation=e.getUniformLocation(this.program_,`u_textureMatrix`),this.textureLocation=e.getUniformLocation(this.program_,`u_texture`),this.positionBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),this.positions=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.positions),e.STATIC_DRAW),this.texcoordBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.texcoordBuffer),this.texcoords=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.texcoords),e.STATIC_DRAW)}drawImage(e,t,n,r,i,a,o,s,c,l,u,d,f){let p=this.gl_;s===void 0&&(s=r),c===void 0&&(c=i),a===void 0&&(a=t),o===void 0&&(o=n),l===void 0&&(l=a),u===void 0&&(u=o),d===void 0&&(d=p.canvas.width),f===void 0&&(f=p.canvas.height),p.bindTexture(p.TEXTURE_2D,e),p.useProgram(this.program_),p.bindBuffer(p.ARRAY_BUFFER,this.positionBuffer),p.enableVertexAttribArray(this.positionLocation),p.vertexAttribPointer(this.positionLocation,2,p.FLOAT,!1,0,0),p.bindBuffer(p.ARRAY_BUFFER,this.texcoordBuffer),p.enableVertexAttribArray(this.texcoordLocation),p.vertexAttribPointer(this.texcoordLocation,2,p.FLOAT,!1,0,0);let m=CP(0,d,0,f,-1,1);m=sSe(m,s,c,0),m=wP(m,l,u,1),p.uniformMatrix4fv(this.matrixLocation,!1,m);let h=cSe(r/t,i/n,0);h=wP(h,a/t,o/n,1),p.uniformMatrix4fv(this.textureMatrixLocation,!1,h),p.uniform1i(this.textureLocation,0),p.drawArrays(p.TRIANGLES,0,this.positions.length/2)}};function TP(e,t,n){let r=e.createShader(t);if(r===null)throw Error(`Shader compilation failed`);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){let t=e.getShaderInfoLog(r);throw Error(t===null?`Shader info log creation failed`:t)}return r}function EP(e,t,n){let r=e.createProgram(),i=TP(e,e.VERTEX_SHADER,n),a=TP(e,e.FRAGMENT_SHADER,t);if(r===null)throw Error(`Program creation failed`);if(e.attachShader(r,i),e.attachShader(r,a),e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS))throw e.getProgramInfoLog(r)===null?Error(`Program info log creation failed`):Error();return r}var fSe=`
`,bSe=class{constructor(e){this.gl_=e,this.program_=oP(e,ySe,vSe),this.positionLocation=e.getAttribLocation(this.program_,`a_position`),this.texcoordLocation=e.getAttribLocation(this.program_,`a_texcoord`),this.matrixLocation=e.getUniformLocation(this.program_,`u_matrix`),this.textureMatrixLocation=e.getUniformLocation(this.program_,`u_textureMatrix`),this.textureLocation=e.getUniformLocation(this.program_,`u_texture`),this.positionBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),this.positions=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.positions),e.STATIC_DRAW),this.texcoordBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.texcoordBuffer),this.texcoords=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.texcoords),e.STATIC_DRAW)}drawImage(e,t,n,r,i,a,o,s,c,l,u,d,f){let p=this.gl_;s===void 0&&(s=r),c===void 0&&(c=i),a===void 0&&(a=t),o===void 0&&(o=n),l===void 0&&(l=a),u===void 0&&(u=o),d===void 0&&(d=p.canvas.width),f===void 0&&(f=p.canvas.height),p.bindTexture(p.TEXTURE_2D,e),p.useProgram(this.program_),p.bindBuffer(p.ARRAY_BUFFER,this.positionBuffer),p.enableVertexAttribArray(this.positionLocation),p.vertexAttribPointer(this.positionLocation,2,p.FLOAT,!1,0,0),p.bindBuffer(p.ARRAY_BUFFER,this.texcoordBuffer),p.enableVertexAttribArray(this.texcoordLocation),p.vertexAttribPointer(this.texcoordLocation,2,p.FLOAT,!1,0,0);let m=rP(0,d,0,f,-1,1);m=gSe(m,s,c,0),m=iP(m,l,u,1),p.uniformMatrix4fv(this.matrixLocation,!1,m);let h=_Se(r/t,i/n,0);h=iP(h,a/t,o/n,1),p.uniformMatrix4fv(this.textureMatrixLocation,!1,h),p.uniform1i(this.textureLocation,0),p.drawArrays(p.TRIANGLES,0,this.positions.length/2)}};function aP(e,t,n){let r=e.createShader(t);if(r===null)throw Error(`Shader compilation failed`);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){let t=e.getShaderInfoLog(r);throw Error(t===null?`Shader info log creation failed`:t)}return r}function oP(e,t,n){let r=e.createProgram(),i=aP(e,e.VERTEX_SHADER,n),a=aP(e,e.FRAGMENT_SHADER,t);if(r===null)throw Error(`Program creation failed`);if(e.attachShader(r,i),e.attachShader(r,a),e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS))throw e.getProgramInfoLog(r)===null?Error(`Program info log creation failed`):Error();return r}var xSe=`
attribute vec4 a_position;
uniform mat4 u_matrix;
@@ -982,14 +982,14 @@ uniform ${n} ${r} u_${i};
void main() {
gl_Position = u_matrix * a_position;
}
`,pSe=`
`,SSe=`
precision mediump float;
uniform vec4 u_val;
void main() {
gl_FragColor = u_val;
}
`,mSe=`
`,CSe=`
attribute vec4 a_position;
attribute vec2 a_texcoord;
@@ -1001,7 +1001,7 @@ uniform ${n} ${r} u_${i};
gl_Position = u_matrix * a_position;
v_texcoord = a_texcoord;
}
`,hSe=`
`,wSe=`
precision mediump float;
varying vec2 v_texcoord;
@@ -1014,66 +1014,66 @@ uniform ${n} ${r} u_${i};
}
gl_FragColor = texture2D(u_texture, v_texcoord);
}
`;function gSe(e,t,n,r){let i;return i=n&&n.length?n.shift():kT?new OffscreenCanvas(e||300,t||300):document.createElement(`canvas`),e&&(i.width=e),t&&(i.height=t),i.getContext(`webgl`,r)}function _Se(e){let t=e.canvas;t.width=1,t.height=1,e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)}var DP=[];function vSe(e,t,n,r,i,a,o,s,c,l,u,d,f,p){let m=Math.round(r*t),h=Math.round(r*n);e.canvas.width=m,e.canvas.height=h;let g,_;if(_=e.createTexture(),e.bindTexture(e.TEXTURE_2D,_),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),f?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST)),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,m,h,0,e.RGBA,u,null),g=e.createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,g),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,_,0),g===null)throw Error(`Could not create framebuffer`);if(_===null)throw Error(`Could not create texture`);if(c.length===0)return{width:m,height:h,framebuffer:g,texture:_};let v=oE();c.forEach(function(e,t,n){fE(v,e.extent)});let y,b,x,S=1/i;if(!p||c.length!==1||l!==0){if(y=e.createTexture(),_===null)throw Error(`Could not create texture`);b=Math.round(DE(v)*S),x=Math.round(SE(v)*S);let t=e.getParameter(e.MAX_TEXTURE_SIZE),n=Math.max(b,x),r=n>t?t/n:1,i=Math.round(b*r),a=Math.round(x*r);e.bindTexture(e.TEXTURE_2D,y),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),f?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST)),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,i,a,0,e.RGBA,u,null);let o=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,o),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,y,0);let s=new dSe(e);c.forEach(function(t,n,c){let u=(t.extent[0]-v[0])*S*r,d=-(t.extent[3]-v[3])*S*r,p=DE(t.extent)*S*r,m=SE(t.extent)*S*r;if(e.bindFramebuffer(e.FRAMEBUFFER,o),e.viewport(0,0,i,a),t.clipExtent){let n=(t.clipExtent[0]-v[0])*S*r,i=-(t.clipExtent[3]-v[3])*S*r,a=DE(t.clipExtent)*S*r,o=SE(t.clipExtent)*S*r;e.enable(e.SCISSOR_TEST),e.scissor(f?n:Math.round(n),f?i:Math.round(i),f?a:Math.round(n+a)-Math.round(n),f?o:Math.round(i+o)-Math.round(i))}s.drawImage(t.texture,t.width,t.height,l,l,t.width-2*l,t.height-2*l,f?u:Math.round(u),f?d:Math.round(d),f?p:Math.round(u+p)-Math.round(u),f?m:Math.round(d+m)-Math.round(d),i,a),e.disable(e.SCISSOR_TEST)}),e.deleteFramebuffer(o)}else y=c[0].texture,b=c[0].width,x=c[0].width;let C=TE(o),w=TE(v),T=e=>{let t=(e[0][0]-C[0])/a*r,n=-(e[0][1]-C[1])/a*r;return{u1:(e[1][0]-C[0])/a*r,v1:-(e[1][1]-C[1])/a*r,u0:t,v0:n,u2:(e[2][0]-C[0])/a*r,v2:-(e[2][1]-C[1])/a*r}};e.bindFramebuffer(e.FRAMEBUFFER,g),e.viewport(0,0,m,h);{let t=[],n=[],r=EP(e,hSe,mSe);e.useProgram(r);let a=e.getUniformLocation(r,`u_texture`);e.bindTexture(e.TEXTURE_2D,y),e.uniform1i(a,0),s.getTriangles().forEach(function(e,r,a){let o=e.source,s=e.target,{u1:c,v1:l,u0:u,v0:d,u2:f,v2:p}=T(s),m=(o[0][0]-w[0])/i/b,h=-(o[0][1]-w[1])/i/x,g=(o[1][0]-w[0])/i/b,_=-(o[1][1]-w[1])/i/x,v=(o[2][0]-w[0])/i/b,y=-(o[2][1]-w[1])/i/x;t.push(c,l,u,d,f,p),n.push(g,_,m,h,v,y)});let o=CP(0,m,h,0,-1,1),c=e.getUniformLocation(r,`u_matrix`);e.uniformMatrix4fv(c,!1,o);let l=e.getAttribLocation(r,`a_position`),u=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,new Float32Array(t),e.STATIC_DRAW),e.vertexAttribPointer(l,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(l);let d=e.getAttribLocation(r,`a_texcoord`),f=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,f),e.bufferData(e.ARRAY_BUFFER,new Float32Array(n),e.STATIC_DRAW),e.vertexAttribPointer(d,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(d),e.drawArrays(e.TRIANGLES,0,t.length/2)}if(d){let t=EP(e,pSe,fSe);e.useProgram(t);let n=CP(0,m,h,0,-1,1),r=e.getUniformLocation(t,`u_matrix`);e.uniformMatrix4fv(r,!1,n);let i=Array.isArray(d)?d:[0,0,0,255],a=e.getUniformLocation(t,`u_val`);e.uniform4fv(a,i);let o=e.getAttribLocation(t,`a_position`),c=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,c),e.vertexAttribPointer(o,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(o);let l=s.getTriangles().reduce(function(e,t){let n=t.target,{u1:r,v1:i,u0:a,v0:o,u2:s,v2:c}=T(n);return e.concat([r,i,a,o,a,o,s,c,s,c,r,i])},[]);e.bufferData(e.ARRAY_BUFFER,new Float32Array(l),e.STATIC_DRAW),e.drawArrays(e.LINES,0,l.length/2)}return{width:m,height:h,framebuffer:g,texture:_}}var ySe=[256,256],bSe=class extends CM{constructor(e){super({tileCoord:e.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:e.interpolate,transition:e.transition}),this.renderEdges_=e.renderEdges!==vo Line truncated
`):typeof e==`string`?e:(++FP,`url-function-key-`+FP)}var ESe=class extends OP{constructor(e){e||={};let t=e.loader,n=``;e.url&&(t=PP(e.url),n=IP(e.url));let r=t?e.state??`ready`:`loading`,i=e.wrapX===void 0||e.wrapX;super({loader:t,key:n,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize,gutter:e.gutter,maxResolution:e.maxResolution,projection:e.projection,tileGrid:e.tileGrid,state:r,wrapX:i,transition:e.transition,interpolate:e.interpolate!==!1,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,zDirection:e.zDirection})}setUrl(e){let t=PP(e);this.setLoader(t),this.setKey(IP(e)),this.getState()!==`ready`&&this.setState(`ready`)}};function LP(e){function t(e,t){switch(e){case`Float32Array`:return new Float32Array(t);case`Float64Array`:return new Float64Array(t);case`Int8Array`:return new Int8Array(t);case`Int16Array`:return new Int16Array(t);case`Int32Array`:return new Int32Array(t);case`Uint16Array`:return new Uint16Array(t);case`Uint32Array`:return new Uint32Array(t);case`Uint8Array`:return new Uint8Array(t);default:return new Uint8ClampedArray(t)}}return function(n){let r=n.buffers,i=n.meta,a=n.imageOps,o=n.width,s=n.height,c=n.bandCounts,l=n.dtypes,u=r.length;if(a){let t=Array(u);for(let e=0;e<u;++e)t[e]=new ImageData(new Uint8ClampedArray(r[e]),o,s);return e(t,i).data.buffer}let d=Array(u),f=Array(u);for(let e=0;e<u;++e)d[e]=t(l[e],r[e]),f[e]=Array(c[e]);let p=d[0].length/c[0],m=new Uint8ClampedArray(p*4);for(let t=0;t<p;++t){for(let e=0;e<u;++e){let n=d[e],r=c[e],i=f[e],a=t*r;for(let e=0;e<r;++e)i[e]=n[a+e]}let n=e(f,i),r=t*4;m[r]=n[0],m[r+1]=n[1],m[r+2]=n[2],m[r+3]=n[3]}return m.buffer}}function DSe(e,t){let n=Object.keys(e.lib||{}).map(function(t){return`const `+t+` = `+e.lib?.[t].toString()+`;`}).concat([`const __minion__ = (`+LP.toString()+`)(`,e.operation.toString(),`);`,`self.addEventListener("message", function(event) {`,` const buffer = __minion__(event.data);`,` self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);`,`});`]),r=new Worker(typeof Blob>`u`?`data:text/javascript;base64,`+Buffer.from(n.join(`
`),`binary`).toString(`base64`):URL.createObjectURL(new Blob(n,{type:`text/javascript`})));return r.addEventListener(`message`,t),r}function OSe(e,t){let n=LP(e.operation),r=!1;return{postMessage:function(e){setTimeout(function(){r||t({data:{buffer:n(e),meta:e.meta}})},0)},terminate:function(){r=!0}}}function kSe(e){return`bandCount`in e?e:{data:e.data,width:e.width,height:e.height,bandCount:4}}function ASe(e,t,n,r){let i=e.data.buffer;if(r===1)return i;let a=e.bandCount*e.data.BYTES_PER_ELEMENT,o=Math.min(t*a,i.byteLength),s=Math.min((t+n)*a,i.byteLength);return i.slice(o,s)}var jSe=class extends rT{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;t=e.threads===0?0:this.imageOps_?1:e.threads||1;let n=Array(t);if(t)for(let r=0;r<t;++r)n[r]=DSe(e,this.onWorkerMessage_.bind(this,r));else n[0]=OSe(e,this.onWorkerMessage_.bind(this,0));this.workers_=n,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,n){this.enqueue_({inputs:e.map(kSe),meta:t,callback:n}),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;let e=this.queue_.shift();if(!e)return;this.job_=e;let t=e.inputs,n=t[0].width,r=t[0].height,i=this.workers_.length;this.running_=i;let a={meta:e.meta,imageOps:this.imageOps_,width:n,height:r,bandCounts:t.map(e=>e.bandCount),dtypes:t.map(e=>e.data.constructor.name)},o=Math.ceil(n*r/i);for(let e=0;e<i;++e){let n=t.map(t=>ASe(t,e*o,o,i));this.workers_[e].postMessage(Object.assign({buffers:n},a),n)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){let e=this.job_;if(!e)return;let t=e.inputs[0].width,n=e.inputs[0].height,r=this.workers_.length,i,a;if(r===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),a=this.dataLookup_[0].meta;else{let e=t*n;i=new Uint8ClampedArray(e*4),a=Array(r);let o=4*Math.ceil(e/r);for(let e=0;e<r;++e){let t=this.dataLookup_[e].buffer,n=e*o;i.set(new Uint8ClampedArray(t),n),a[e]=this.dataLookup_[e].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,t,n),a),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}},RP={BEFOREOPERATIONS:`beforeoperations`,AFTEROPERATIONS:`afteroperations`},zP=class extends gT{constructor(e,t,n){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=n}},BP=class extends jP{constructor(e){super({interpolate:e.interpolate,projection:void 0}),this.on,this.once,this.un,this.processor_=void 0,this.operationType_=e.operationType===void 0?`pixel`:e.operationType,this.threads_=e.threads===void 0?1:e.threads,this.layers_=FSe(e.sources),this.sampleArrayData_=e.sources.map(e=>e instanceof JN&&MSe(e));let t=this.changed.bind(this);for(let e=0,n=this.layers_.length;e<n;++e)this.layers_[e].addEventListener(nT.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new LT(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=void 0,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:UD(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:PSe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:UD(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:lT(this),renderTargets:{}},this.setAttributions(function(t){let n=[];for(let r=0,i=e.sources.length;r<i;++r){let i=e.sources[r],a=i instanceof JN?i:i.getSource();if(!a)continue;let o=a.getAttributions()?.(t);typeof o==`string`?n.push(o):o!==void 0&&n.push(...o)}return n}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new jSe({operation:e,imageOps:this.operationType_===`image`,queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,n){let r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);let i=Math.floor(e[0]/t)*t,a=Math.floor(e[1]/t)*t,o=Math.ceil(e[2]/t)*t,s=Math.ceil(e[3]/t)*t;r.size[0]=Math.round((o-i)/t),r.size[1]=Math.round((s-a)/t),r.extent=[i,a,o,s],r.time=Date.now();let c=r.viewState;return c.center=yE(r.extent),c.projection=n,c.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let n=0,r=this.layers_.length;n<r;++n)if(t=this.layers_[n].getSource(),!t||t.getState()!==`ready`){e=!1;break}return e}getImage(e,t,n,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16);let i=this.getResolutions(r);if(i){let e=i[0];t=t>e?e*2**Math.round(Math.log2(t/e)):i[aT(i,t,0)]}let a=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=a,this.renderedImageCanvas_){let e=this.renderedImageCanvas_.getResolution(),n=this.renderedImageCanvas_.getExtent();t= Line truncated
`),i=ZSe.slice(0,Math.round(t/.1));for(let e=0,t=r.length;e<t;++e)e>0&&(n+=`
`),n+=r[e].split(``).join(i);return n}return e}var fF;function pF(){return fF||=tF(1,1).getContext(`2d`),fF}function QSe(e,t){if(/\d+ \d+/.test(e)){let[n,r]=e.split(` `).map(Number);return n<=t&&t<=r}return e==t}function mF(e,t){return pF().measureText(e).width+(e.length-1)*t}var hF={};rj.on(`propertychange`,()=>{for(let e in hF)delete hF[e]});function gF(e,t,n,r){if(e.indexOf(`
`;function TSe(e,t,n,r){let i;return i=n&&n.length?n.shift():lT?new OffscreenCanvas(e||300,t||300):document.createElement(`canvas`),e&&(i.width=e),t&&(i.height=t),i.getContext(`webgl`,r)}function ESe(e){let t=e.canvas;t.width=1,t.height=1,e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)}var sP=[];function DSe(e,t,n,r,i,a,o,s,c,l,u,d,f,p){let m=Math.round(r*t),h=Math.round(r*n);e.canvas.width=m,e.canvas.height=h;let g,_;if(_=e.createTexture(),e.bindTexture(e.TEXTURE_2D,_),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),f?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST)),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,m,h,0,e.RGBA,u,null),g=e.createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,g),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,_,0),g===null)throw Error(`Could not create framebuffer`);if(_===null)throw Error(`Could not create texture`);if(c.length===0)return{width:m,height:h,framebuffer:g,texture:_};let v=BT();c.forEach(function(e,t,n){KT(v,e.extent)});let y,b,x,S=1/i;if(!p||c.length!==1||l!==0){if(y=e.createTexture(),_===null)throw Error(`Could not create texture`);b=Math.round(sE(v)*S),x=Math.round(nE(v)*S);let t=e.getParameter(e.MAX_TEXTURE_SIZE),n=Math.max(b,x),r=n>t?t/n:1,i=Math.round(b*r),a=Math.round(x*r);e.bindTexture(e.TEXTURE_2D,y),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),f?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST)),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,i,a,0,e.RGBA,u,null);let o=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,o),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,y,0);let s=new bSe(e);c.forEach(function(t,n,c){let u=(t.extent[0]-v[0])*S*r,d=-(t.extent[3]-v[3])*S*r,p=sE(t.extent)*S*r,m=nE(t.extent)*S*r;if(e.bindFramebuffer(e.FRAMEBUFFER,o),e.viewport(0,0,i,a),t.clipExtent){let n=(t.clipExtent[0]-v[0])*S*r,i=-(t.clipExtent[3]-v[3])*S*r,a=sE(t.clipExtent)*S*r,o=nE(t.clipExtent)*S*r;e.enable(e.SCISSOR_TEST),e.scissor(f?n:Math.round(n),f?i:Math.round(i),f?a:Math.round(n+a)-Math.round(n),f?o:Math.round(i+o)-Math.round(i))}s.drawImage(t.texture,t.width,t.height,l,l,t.width-2*l,t.height-2*l,f?u:Math.round(u),f?d:Math.round(d),f?p:Math.round(u+p)-Math.round(u),f?m:Math.round(d+m)-Math.round(d),i,a),e.disable(e.SCISSOR_TEST)}),e.deleteFramebuffer(o)}else y=c[0].texture,b=c[0].width,x=c[0].width;let C=aE(o),w=aE(v),T=e=>{let t=(e[0][0]-C[0])/a*r,n=-(e[0][1]-C[1])/a*r;return{u1:(e[1][0]-C[0])/a*r,v1:-(e[1][1]-C[1])/a*r,u0:t,v0:n,u2:(e[2][0]-C[0])/a*r,v2:-(e[2][1]-C[1])/a*r}};e.bindFramebuffer(e.FRAMEBUFFER,g),e.viewport(0,0,m,h);{let t=[],n=[],r=oP(e,wSe,CSe);e.useProgram(r);let a=e.getUniformLocation(r,`u_texture`);e.bindTexture(e.TEXTURE_2D,y),e.uniform1i(a,0),s.getTriangles().forEach(function(e,r,a){let o=e.source,s=e.target,{u1:c,v1:l,u0:u,v0:d,u2:f,v2:p}=T(s),m=(o[0][0]-w[0])/i/b,h=-(o[0][1]-w[1])/i/x,g=(o[1][0]-w[0])/i/b,_=-(o[1][1]-w[1])/i/x,v=(o[2][0]-w[0])/i/b,y=-(o[2][1]-w[1])/i/x;t.push(c,l,u,d,f,p),n.push(g,_,m,h,v,y)});let o=rP(0,m,h,0,-1,1),c=e.getUniformLocation(r,`u_matrix`);e.uniformMatrix4fv(c,!1,o);let l=e.getAttribLocation(r,`a_position`),u=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,new Float32Array(t),e.STATIC_DRAW),e.vertexAttribPointer(l,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(l);let d=e.getAttribLocation(r,`a_texcoord`),f=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,f),e.bufferData(e.ARRAY_BUFFER,new Float32Array(n),e.STATIC_DRAW),e.vertexAttribPointer(d,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(d),e.drawArrays(e.TRIANGLES,0,t.length/2)}if(d){let t=oP(e,SSe,xSe);e.useProgram(t);let n=rP(0,m,h,0,-1,1),r=e.getUniformLocation(t,`u_matrix`);e.uniformMatrix4fv(r,!1,n);let i=Array.isArray(d)?d:[0,0,0,255],a=e.getUniformLocation(t,`u_val`);e.uniform4fv(a,i);let o=e.getAttribLocation(t,`a_position`),c=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,c),e.vertexAttribPointer(o,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(o);let l=s.getTriangles().reduce(function(e,t){let n=t.target,{u1:r,v1:i,u0:a,v0:o,u2:s,v2:c}=T(n);return e.concat([r,i,a,o,a,o,s,c,s,c,r,i])},[]);e.bufferData(e.ARRAY_BUFFER,new Float32Array(l),e.STATIC_DRAW),e.drawArrays(e.LINES,0,l.length/2)}return{width:m,height:h,framebuffer:g,texture:_}}var OSe=[256,256],kSe=class extends rM{constructor(e){super({tileCoord:e.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:e.interpolate,transition:e.transition}),this.renderEdges_=e.renderEdges!==vo Line truncated
`):typeof e==`string`?e:(++hP,`url-function-key-`+hP)}var FSe=class extends cP{constructor(e){e||={};let t=e.loader,n=``;e.url&&(t=mP(e.url),n=gP(e.url));let r=t?e.state??`ready`:`loading`,i=e.wrapX===void 0||e.wrapX;super({loader:t,key:n,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize,gutter:e.gutter,maxResolution:e.maxResolution,projection:e.projection,tileGrid:e.tileGrid,state:r,wrapX:i,transition:e.transition,interpolate:e.interpolate!==!1,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,zDirection:e.zDirection})}setUrl(e){let t=mP(e);this.setLoader(t),this.setKey(gP(e)),this.getState()!==`ready`&&this.setState(`ready`)}};function _P(e){function t(e,t){switch(e){case`Float32Array`:return new Float32Array(t);case`Float64Array`:return new Float64Array(t);case`Int8Array`:return new Int8Array(t);case`Int16Array`:return new Int16Array(t);case`Int32Array`:return new Int32Array(t);case`Uint16Array`:return new Uint16Array(t);case`Uint32Array`:return new Uint32Array(t);case`Uint8Array`:return new Uint8Array(t);default:return new Uint8ClampedArray(t)}}return function(n){let r=n.buffers,i=n.meta,a=n.imageOps,o=n.width,s=n.height,c=n.bandCounts,l=n.dtypes,u=r.length;if(a){let t=Array(u);for(let e=0;e<u;++e)t[e]=new ImageData(new Uint8ClampedArray(r[e]),o,s);return e(t,i).data.buffer}let d=Array(u),f=Array(u);for(let e=0;e<u;++e)d[e]=t(l[e],r[e]),f[e]=Array(c[e]);let p=d[0].length/c[0],m=new Uint8ClampedArray(p*4);for(let t=0;t<p;++t){for(let e=0;e<u;++e){let n=d[e],r=c[e],i=f[e],a=t*r;for(let e=0;e<r;++e)i[e]=n[a+e]}let n=e(f,i),r=t*4;m[r]=n[0],m[r+1]=n[1],m[r+2]=n[2],m[r+3]=n[3]}return m.buffer}}function ISe(e,t){let n=Object.keys(e.lib||{}).map(function(t){return`const `+t+` = `+e.lib?.[t].toString()+`;`}).concat([`const __minion__ = (`+_P.toString()+`)(`,e.operation.toString(),`);`,`self.addEventListener("message", function(event) {`,` const buffer = __minion__(event.data);`,` self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);`,`});`]),r=new Worker(typeof Blob>`u`?`data:text/javascript;base64,`+Buffer.from(n.join(`
`),`binary`).toString(`base64`):URL.createObjectURL(new Blob(n,{type:`text/javascript`})));return r.addEventListener(`message`,t),r}function LSe(e,t){let n=_P(e.operation),r=!1;return{postMessage:function(e){setTimeout(function(){r||t({data:{buffer:n(e),meta:e.meta}})},0)},terminate:function(){r=!0}}}function RSe(e){return`bandCount`in e?e:{data:e.data,width:e.width,height:e.height,bandCount:4}}function zSe(e,t,n,r){let i=e.data.buffer;if(r===1)return i;let a=e.bandCount*e.data.BYTES_PER_ELEMENT,o=Math.min(t*a,i.byteLength),s=Math.min((t+n)*a,i.byteLength);return i.slice(o,s)}var BSe=class extends Lw{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;t=e.threads===0?0:this.imageOps_?1:e.threads||1;let n=Array(t);if(t)for(let r=0;r<t;++r)n[r]=ISe(e,this.onWorkerMessage_.bind(this,r));else n[0]=LSe(e,this.onWorkerMessage_.bind(this,0));this.workers_=n,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,n){this.enqueue_({inputs:e.map(RSe),meta:t,callback:n}),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;let e=this.queue_.shift();if(!e)return;this.job_=e;let t=e.inputs,n=t[0].width,r=t[0].height,i=this.workers_.length;this.running_=i;let a={meta:e.meta,imageOps:this.imageOps_,width:n,height:r,bandCounts:t.map(e=>e.bandCount),dtypes:t.map(e=>e.data.constructor.name)},o=Math.ceil(n*r/i);for(let e=0;e<i;++e){let n=t.map(t=>zSe(t,e*o,o,i));this.workers_[e].postMessage(Object.assign({buffers:n},a),n)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){let e=this.job_;if(!e)return;let t=e.inputs[0].width,n=e.inputs[0].height,r=this.workers_.length,i,a;if(r===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),a=this.dataLookup_[0].meta;else{let e=t*n;i=new Uint8ClampedArray(e*4),a=Array(r);let o=4*Math.ceil(e/r);for(let e=0;e<r;++e){let t=this.dataLookup_[e].buffer,n=e*o;i.set(new Uint8ClampedArray(t),n),a[e]=this.dataLookup_[e].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,t,n),a),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}},vP={BEFOREOPERATIONS:`beforeoperations`,AFTEROPERATIONS:`afteroperations`},yP=class extends Xw{constructor(e,t,n){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=n}},bP=class extends dP{constructor(e){super({interpolate:e.interpolate,projection:void 0}),this.on,this.once,this.un,this.processor_=void 0,this.operationType_=e.operationType===void 0?`pixel`:e.operationType,this.threads_=e.threads===void 0?1:e.threads,this.layers_=WSe(e.sources),this.sampleArrayData_=e.sources.map(e=>e instanceof ON&&VSe(e));let t=this.changed.bind(this);for(let e=0,n=this.layers_.length;e<n;++e)this.layers_[e].addEventListener(Iw.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new _T(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=void 0,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:CD(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:USe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:CD(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Uw(this),renderTargets:{}},this.setAttributions(function(t){let n=[];for(let r=0,i=e.sources.length;r<i;++r){let i=e.sources[r],a=i instanceof ON?i:i.getSource();if(!a)continue;let o=a.getAttributions()?.(t);typeof o==`string`?n.push(o):o!==void 0&&n.push(...o)}return n}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new BSe({operation:e,imageOps:this.operationType_===`image`,queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,n){let r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);let i=Math.floor(e[0]/t)*t,a=Math.floor(e[1]/t)*t,o=Math.ceil(e[2]/t)*t,s=Math.ceil(e[3]/t)*t;r.size[0]=Math.round((o-i)/t),r.size[1]=Math.round((s-a)/t),r.extent=[i,a,o,s],r.time=Date.now();let c=r.viewState;return c.center=$T(r.extent),c.projection=n,c.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let n=0,r=this.layers_.length;n<r;++n)if(t=this.layers_[n].getSource(),!t||t.getState()!==`ready`){e=!1;break}return e}getImage(e,t,n,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16);let i=this.getResolutions(r);if(i){let e=i[0];t=t>e?e*2**Math.round(Math.log2(t/e)):i[zw(i,t,0)]}let a=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=a,this.renderedImageCanvas_){let e=this.renderedImageCanvas_.getResolution(),n=this.renderedImageCanvas_.getExtent();t= Line truncated
`),i=oCe.slice(0,Math.round(t/.1));for(let e=0,t=r.length;e<t;++e)e>0&&(n+=`
`),n+=r[e].split(``).join(i);return n}return e}var KP;function qP(){return KP||=FP(1,1).getContext(`2d`),KP}function sCe(e,t){if(/\d+ \d+/.test(e)){let[n,r]=e.split(` `).map(Number);return n<=t&&t<=r}return e==t}function JP(e,t){return qP().measureText(e).width+(e.length-1)*t}var YP={};LA.on(`propertychange`,()=>{for(let e in YP)delete YP[e]});function XP(e,t,n,r){if(e.indexOf(`
`)!==-1){let i=e.split(`
`),a=[];for(let e=0,o=i.length;e<o;++e)a.push(gF(i[e],t,n,r));return a.join(`
`)}let i=n+`,`+t+`,`+e+`,`+r,a=hF[i];if(!a){let o=e.split(` `);if(o.length>1){let e=pF();e.font=t;let i=e.measureText(`M`).width*n,s=``,c=[];for(let e=0,t=o.length;e<t;++e){let t=o[e],n=s+(s?` `:``)+t;mF(n,r)<=i?s=n:(s&&c.push(s),s=t)}s&&c.push(s);for(let e=0,t=c.length;e<t&&t>1;++e){let n=c[e];if(mF(n,r)<i*.35){let i=e>0?mF(c[e-1],r):1/0,a=e<t-1?mF(c[e+1],r):1/0;c.splice(e,1),--t,i<a?(c[e-1]+=` `+n,--e):c[e]=n+` `+c[e]}}for(let e=0,t=c.length-1;e<t;++e){let n=c[e],a=c[e+1];if(mF(n,r)>i*.7&&mF(a,r)<i*.6){let o=n.split(` `),s=o.pop();mF(s,r)<i*.2&&(c[e]=o.join(` `),c[e+1]=s+` `+a),--t}}a=c.join(`
`)}else a=e;a=dF(a,r),hF[i]=a}return a}var $Se=[`Arial`,`Courier New`,`Times New Roman`,`Verdana`,`sans-serif`,`serif`,`monospace`,`cursive`,`fantasy`],_F={};function eCe(e,t=`https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css`){if(t===!1||kT)return e;let n;for(let t=0,r=e.length;t<r;++t){let r=e[t];if(r in _F)continue;_F[r]=!0;let i=qP(r,16).split(` `);n||=[],n.push([i.slice(3).join(` `).replace(/"/g,``),i[1],i[0]])}return n&&(async()=>{await document.fonts.ready;for(let e=0,r=n.length;e<r;++e){let r=n[e],i=r[0];if($Se.includes(i))continue;let a=r[1],o=r[2];if(!(await document.fonts.load(`${o} ${a} 16px "${i}"`)).some(e=>e.family.replace(/^['"]|['"]$/g,``).toLowerCase()===i.toLowerCase()&&QSe(e.weight,a)&&e.style===o)){let e=t.replace(`{font-family}`,i.replace(/ /g,`-`).toLowerCase()).replace(`{Font+Family}`,i.replace(/ /g,`+`)).replace(`{fontweight}`,a).replace(`{-fontstyle}`,o.replace(`normal`,``).replace(/(.+)/,`-$1`)).replace(`{fontstyle}`,o);if(!document.querySelector(`link[href="`+e+`"]`)){let t=document.createElement(`link`);t.href=e,t.rel=`stylesheet`,document.head.appendChild(t)}}}})(),e}var tCe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},nCe={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]},vF=function(e,t,n){let r=xw(e,t,n);if(r.result===`error`){let i=pP(e);i!==e&&(r=xw(i,t,n))}if(r.result===`error`){let t=r.value[0];return console.error(`Error parsing expression:`,e,t.key,t.message),{evaluate:()=>n.default}}return r.value},yF,bF;function xF(e,t,n,r,i,a){let o=e.id;i||(i={},console.warn(`No functionCache provided to getValue()`)),i[o]||(i[o]={});let s=i[o];if(!s[n]){let r=(e[t]||YP)[n],i=`layers[${o}].${t}.${n}`,a=VSe,c=a[`${t}_${e.type}`]&&a[`${t}_${e.type}`][n];r===void 0&&c&&(r=c.default);let l=_w(r);if(!l&&uw(r)&&(r=Hw(r,c),l=!0),l){n===`raster-color`&&(r=fP(r));let e=vF(r,i,c);s[n]=e.evaluate.bind(e)}else{let e=c?c.type:typeof r;(e===`color`||e===`colorArray`)&&(r=OS.parse(r));let t=!1;if(e===`array`)for(let e=0;e<r.length;++e){let n=r[e];if(_w(n)||uw(n)){t=!0;break}}if(t){let e=Object.assign({},c,{type:c.value}),t=[];for(let n=0;n<r.length;++n){let a=r[n];if(!_w(a)&&uw(a)&&(a=Hw(a,e)),_w(a)){let r=vF(a,`${i}[${n}]`,e);t.push(r.evaluate.bind(r))}else t.push(function(){return a})}s[n]=function(e,n,r){let i=[];for(let a=0;a<t.length;++a)i[a]=t[a](e,n,r);return i}}else s[n]=function(){return r}}}return s[n](hP,r,a)}function SF(e,t,n,r){return xF(e,`layout`,`${n}-allow-overlap`,t,r)?xF(e,`layout`,`${n}-ignore-placement`,t,r)?`none`:`obstacle`:`declutter`}function CF(e,t){if(e){if(e.a===0||t===0)return;let n=e.a;return t=t===void 0?1:t,n===0?`transparent`:`rgba(`+Math.round(e.r*255/n)+`,`+Math.round(e.g*255/n)+`,`+Math.round(e.b*255/n)+`,`+n*t+`)`}return e}var rCe=/\{[^{}}]*\}/g;function wF(e,t){return e.replace(rCe,function(e){return t[e.slice(1,-1)]||``})}function TF(e,t){let n=e.split(`:`)[0];return n===e&&(n=`default`),t[n]}var iCe=new WeakMap,aCe=0;function oCe(e,t,n,r=eF,i=void 0,a=void 0,o=void 0,s=void 0){if(typeof t==`string`&&(t=JSON.parse(t)),t.schema)for(let e in t.schema){let n=t.schema[e];`default`in n&&(mP[e]=n.default)}if(t.version!=8)throw Error(`glStyle version 8 required.`);iCe.set(e,Array.from(arguments));let c={};(typeof a==`string`||a instanceof Request||a instanceof Response||a instanceof Promise)&&(a={default:a});for(let t in a){let n=a[t];hT(()=>n).then(async n=>{let r;if(typeof Image<`u`){let i=new Image;if(typeof n==`string`)i.crossOrigin=`anonymous`,i.src=n;else{let e;n instanceof Request?e=await fetch(n):n instanceof Response&&(e=n);let t=await e.blob();r=URL.createObjectURL(t),i.src=r}i.addEventListener(`load`,function n(){i.removeEventListener(`load`,n),c[t]={image:i,size:[i.width,i.height]},e.changed(),r&&URL.revokeObjectURL(r)}),i.addEventListener(`error`,function e(){URL.revokeObjectURL(r),i.removeEventListener(`error`,e)})}else if(typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope){let e=self;e.postMessage({action:`loadImage`,src:n}),e.addEventListener(`message`,function(e){e.data.action===`imageLoaded`&&e.data.src===n&&(c[t]={image:e.data.image,size:[e.data.image.width,e.data.image.height]})})}})}let l=D9(t.layers),u={},d=[],f={},p={},m=`ol-mapbox-style:${++aCe}:`,h=ZP(t),g=YSe(t),_;for(let e=0,r=l.length;e<r;++e){let r=l[e],i=r.id;if(typeof n==`string`&&r.source==n||Array.isArray(n)&&n.indexOf(i)!==-1){let n=r[`source-layer`];if(!_){_=r.source;let e=t.sources[_];if(!e)throw Error(`Source "${_}" is not defined`);let n=e.type;if(n!==`vector`&&n!==`geojson`)throw Error(`Source "${_}" is not of type "vector" or "geojson", but "${n}"`)}else if(r.source!==_)throw Error(`Layer "${i}" does not use source "${_}`);let a=u[n];a||(a=[],u[n]=a),a.push({layer:r,index:e,condition:zSe(r.filter)}),d.push(i)}}let v=[],y=function(n,a,l){let d=e.getSource?.()?.format_?.layerName_??`mvt:layer`,_=n.getProper Line truncated
`),a=[];for(let e=0,o=i.length;e<o;++e)a.push(XP(i[e],t,n,r));return a.join(`
`)}let i=n+`,`+t+`,`+e+`,`+r,a=YP[i];if(!a){let o=e.split(` `);if(o.length>1){let e=qP();e.font=t;let i=e.measureText(`M`).width*n,s=``,c=[];for(let e=0,t=o.length;e<t;++e){let t=o[e],n=s+(s?` `:``)+t;JP(n,r)<=i?s=n:(s&&c.push(s),s=t)}s&&c.push(s);for(let e=0,t=c.length;e<t&&t>1;++e){let n=c[e];if(JP(n,r)<i*.35){let i=e>0?JP(c[e-1],r):1/0,a=e<t-1?JP(c[e+1],r):1/0;c.splice(e,1),--t,i<a?(c[e-1]+=` `+n,--e):c[e]=n+` `+c[e]}}for(let e=0,t=c.length-1;e<t;++e){let n=c[e],a=c[e+1];if(JP(n,r)>i*.7&&JP(a,r)<i*.6){let o=n.split(` `),s=o.pop();JP(s,r)<i*.2&&(c[e]=o.join(` `),c[e+1]=s+` `+a),--t}}a=c.join(`
`)}else a=e;a=GP(a,r),YP[i]=a}return a}var cCe=[`Arial`,`Courier New`,`Times New Roman`,`Verdana`,`sans-serif`,`serif`,`monospace`,`cursive`,`fantasy`],ZP={};function lCe(e,t=`https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css`){if(t===!1||lT)return e;let n;for(let t=0,r=e.length;t<r;++t){let r=e[t];if(r in ZP)continue;ZP[r]=!0;let i=DP(r,16).split(` `);n||=[],n.push([i.slice(3).join(` `).replace(/"/g,``),i[1],i[0]])}return n&&(async()=>{await document.fonts.ready;for(let e=0,r=n.length;e<r;++e){let r=n[e],i=r[0];if(cCe.includes(i))continue;let a=r[1],o=r[2];if(!(await document.fonts.load(`${o} ${a} 16px "${i}"`)).some(e=>e.family.replace(/^['"]|['"]$/g,``).toLowerCase()===i.toLowerCase()&&sCe(e.weight,a)&&e.style===o)){let e=t.replace(`{font-family}`,i.replace(/ /g,`-`).toLowerCase()).replace(`{Font+Family}`,i.replace(/ /g,`+`)).replace(`{fontweight}`,a).replace(`{-fontstyle}`,o.replace(`normal`,``).replace(/(.+)/,`-$1`)).replace(`{fontstyle}`,o);if(!document.querySelector(`link[href="`+e+`"]`)){let t=document.createElement(`link`);t.href=e,t.rel=`stylesheet`,document.head.appendChild(t)}}}})(),e}var uCe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},dCe={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]},QP=function(e,t,n){let r=tw(e,t,n);if(r.result===`error`){let i=qN(e);i!==e&&(r=tw(i,t,n))}if(r.result===`error`){let t=r.value[0];return console.error(`Error parsing expression:`,e,t.key,t.message),{evaluate:()=>n.default}}return r.value},$P,eF;function tF(e,t,n,r,i,a){let o=e.id;i||(i={},console.warn(`No functionCache provided to getValue()`)),i[o]||(i[o]={});let s=i[o];if(!s[n]){let r=(e[t]||kP)[n],i=`layers[${o}].${t}.${n}`,a=XSe,c=a[`${t}_${e.type}`]&&a[`${t}_${e.type}`][n];r===void 0&&c&&(r=c.default);let l=ZC(r);if(!l&&WC(r)&&(r=Sw(r,c),l=!0),l){n===`raster-color`&&(r=KN(r));let e=QP(r,i,c);s[n]=e.evaluate.bind(e)}else{let e=c?c.type:typeof r;(e===`color`||e===`colorArray`)&&(r=cS.parse(r));let t=!1;if(e===`array`)for(let e=0;e<r.length;++e){let n=r[e];if(ZC(n)||WC(n)){t=!0;break}}if(t){let e=Object.assign({},c,{type:c.value}),t=[];for(let n=0;n<r.length;++n){let a=r[n];if(!ZC(a)&&WC(a)&&(a=Sw(a,e)),ZC(a)){let r=QP(a,`${i}[${n}]`,e);t.push(r.evaluate.bind(r))}else t.push(function(){return a})}s[n]=function(e,n,r){let i=[];for(let a=0;a<t.length;++a)i[a]=t[a](e,n,r);return i}}else s[n]=function(){return r}}}return s[n](YN,r,a)}function nF(e,t,n,r){return tF(e,`layout`,`${n}-allow-overlap`,t,r)?tF(e,`layout`,`${n}-ignore-placement`,t,r)?`none`:`obstacle`:`declutter`}function rF(e,t){if(e){if(e.a===0||t===0)return;let n=e.a;return t=t===void 0?1:t,n===0?`transparent`:`rgba(`+Math.round(e.r*255/n)+`,`+Math.round(e.g*255/n)+`,`+Math.round(e.b*255/n)+`,`+n*t+`)`}return e}var fCe=/\{[^{}}]*\}/g;function iF(e,t){return e.replace(fCe,function(e){return t[e.slice(1,-1)]||``})}function aF(e,t){let n=e.split(`:`)[0];return n===e&&(n=`default`),t[n]}var pCe=new WeakMap,mCe=0;function hCe(e,t,n,r=PP,i=void 0,a=void 0,o=void 0,s=void 0){if(typeof t==`string`&&(t=JSON.parse(t)),t.schema)for(let e in t.schema){let n=t.schema[e];`default`in n&&(JN[e]=n.default)}if(t.version!=8)throw Error(`glStyle version 8 required.`);pCe.set(e,Array.from(arguments));let c={};(typeof a==`string`||a instanceof Request||a instanceof Response||a instanceof Promise)&&(a={default:a});for(let t in a){let n=a[t];Yw(()=>n).then(async n=>{let r;if(typeof Image<`u`){let i=new Image;if(typeof n==`string`)i.crossOrigin=`anonymous`,i.src=n;else{let e;n instanceof Request?e=await fetch(n):n instanceof Response&&(e=n);let t=await e.blob();r=URL.createObjectURL(t),i.src=r}i.addEventListener(`load`,function n(){i.removeEventListener(`load`,n),c[t]={image:i,size:[i.width,i.height]},e.changed(),r&&URL.revokeObjectURL(r)}),i.addEventListener(`error`,function e(){URL.revokeObjectURL(r),i.removeEventListener(`error`,e)})}else if(typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope){let e=self;e.postMessage({action:`loadImage`,src:n}),e.addEventListener(`message`,function(e){e.data.action===`imageLoaded`&&e.data.src===n&&(c[t]={image:e.data.image,size:[e.data.image.width,e.data.image.height]})})}})}let l=s9(t.layers),u={},d=[],f={},p={},m=`ol-mapbox-style:${++mCe}:`,h=jP(t),g=iCe(t),_;for(let e=0,r=l.length;e<r;++e){let r=l[e],i=r.id;if(typeof n==`string`&&r.source==n||Array.isArray(n)&&n.indexOf(i)!==-1){let n=r[`source-layer`];if(!_){_=r.source;let e=t.sources[_];if(!e)throw Error(`Source "${_}" is not defined`);let n=e.type;if(n!==`vector`&&n!==`geojson`)throw Error(`Source "${_}" is not of type "vector" or "geojson", but "${n}"`)}else if(r.source!==_)throw Error(`Layer "${i}" does not use source "${_}`);let a=u[n];a||(a=[],u[n]=a),a.push({layer:r,index:e,condition:JSe(r.filter)}),d.push(i)}}let v=[],y=function(n,a,l){let d=e.getSource?.()?.format_?.layerName_??`mvt:layer`,_=n.getProper Line truncated
`)return t.push(`
`,``),t;if(S==2)return t.push(dF(s,oe),a),t;s=gF(s,a,se,oe).split(`
`,``),t;if(S==2)return t.push(GP(s,oe),a),t;s=XP(s,a,se,oe).split(`
`);for(let e=0,n=s.length;e<n;++e)e>0&&t.push(`
`,``),t.push(s[e],a);return t},[]):wF(n,_).trim(),l=xF(d,`paint`,`text-opacity`,w,h,T)}if(M&&l&&!ne){k||(++E,x=v[E],(!x||!x.getText()||x.getFill()||x.getStroke())&&(x=new _j,v[E]=x),x.setImage(void 0),x.setGeometry(void 0));let e=SF(d,w,`text`,h);x.getText()||x.setText(A),A=x.getText(),(!A||`getDeclutterMode`in A&&A.getDeclutterMode()!==e)&&(A=new xj({padding:[2,2,2,2],declutterMode:e}),x.setText(A));let t=xF(d,`layout`,`text-transform`,w,h,T);t==`uppercase`?M=Array.isArray(M)?M.map((e,t)=>t%2?e:e.toUpperCase()):M.toUpperCase():t==`lowercase`&&(M=Array.isArray(M)?M.map((e,t)=>t%2?e:e.toLowerCase()):M.toLowerCase());let n=Array.isArray(M)?M:S==2?dF(M,oe):gF(M,re,se,oe);if(A.setText(n),A.setFont(re),A.setRotation($P(xF(d,`layout`,`text-rotate`,w,h,T))),typeof A.setKeepUpright==`function`){let e=xF(d,`layout`,`text-keep-upright`,w,h,T);A.setKeepUpright(e)}let r=xF(d,`layout`,`text-anchor`,w,h,T),i=k||S==1?`point`:xF(d,`layout`,`symbol-placement`,w,h,T),a;if(i===`line-center`?(A.setPlacement(`line`),a=`center`):A.setPlacement(i),i===`line`&&typeof A.setRepeat==`function`){let e=xF(d,`layout`,`symbol-spacing`,w,h,T);A.setRepeat(e*2)}A.setOverflow(i===`point`);let o=xF(d,`paint`,`text-halo-width`,w,h,T),s=xF(d,`layout`,`text-offset`,w,h,T),c=xF(d,`paint`,`text-translate`,w,h,T),u=0,f=0;if(i==`point`){a=`center`,r.indexOf(`left`)===-1?r.indexOf(`right`)!==-1&&(a=`right`,f=-o):(a=`left`,f=o);let e=xF(d,`layout`,`text-rotation-alignment`,w,h,T);A.setRotateWithView(e==`map`)}else A.setMaxAngle($P(xF(d,`layout`,`text-max-angle`,w,h,T))*M.length/n.length),A.setRotateWithView(!1);A.setTextAlign(a);let p=`middle`;r.indexOf(`bottom`)==0?(p=`bottom`,u=-o-.5*(ie-1)*ae):r.indexOf(`top`)==0&&(p=`top`,u=o+.5*(ie-1)*ae),A.setTextBaseline(p);let m=xF(d,`layout`,`text-justify`,w,h,T);A.setJustify(m===`auto`?void 0:m),A.setOffsetX(s[0]*ae+f+c[0]),A.setOffsetY(s[1]*ae+u+c[1]);let g=A.getFill()||new pj;g.setColor(CF(xF(d,`paint`,`text-color`,w,h,T),l)),A.setFill(g);let _=CF(xF(d,`paint`,`text-halo-color`,w,h,T),l);if(_&&o>0){let e=A.getStroke()||new gj;e.setColor(_),o*=2;let t=.5*ae;e.setWidth(o<=t?o:t),A.setStroke(e)}else A.setStroke(void 0);let y=xF(d,`layout`,`text-padding`,w,h,T),b=A.getPadding();y!==b[0]&&(b[0]=y,b[1]=y,b[2]=y,b[3]=y),`setOptional`in A&&typeof A.setOptional==`function`&&A.setOptional(xF(d,`layout`,`text-optional`,w,h,T)),x.setZIndex(C)}}}if(E>-1)return v.length=E+1,v};return e.setStyle(y),e.set(`mapbox-layers`,d),e.set(`mapbox-source`,_),e.set(`mapbox-featurestate`,e.get(`mapbox-featurestate`)||{}),y}var EF=1024;function sCe(e,t){if(!e.paint||e.paint[`raster-color`]===void 0)return()=>void 0;let n={properties:{"raster-value":0}},r=r=>xF(e,`paint`,r,n,t),i;return e=>{hP.zoom=e;let t=r(`raster-color-mix`),a=r(`raster-color-range`);if(i&&i.range[0]===a[0]&&i.range[1]===a[1])return i={mix:t,range:a,ramp:i.ramp},i;let o=new Uint8ClampedArray(EF*4),[s,c]=a;for(let e=0;e<EF;++e){n.properties[`raster-value`]=s+(c-s)*e/1023;let t=r(`raster-color`).rgb;o[e*4]=t[0]*255,o[e*4+1]=t[1]*255,o[e*4+2]=t[2]*255,o[e*4+3]=t[3]*255}return i={mix:t,range:a,ramp:o},i}}function cCe(e,t){let n=e[0],r=n.width,i=n.height,a=n.data,o=new Uint8ClampedArray(a.length),s=t.resolution*2,c=r-1,l=i-1,u=[0,0,0,0],d=Math.PI,f=t.encoding,p=t.exaggeration,m=t.zoom,h=t.method||`standard`,g=t.accentColor,_=t.shadowColors||[t.shadowColor],v=t.highlightColors||[t.highlightColor],y=(t.azimuths||[t.sunAz]).map(e=>e*d/180),b=(t.altitudes||[45]).map(e=>e*d/180),x=Math.min(y.length,b.length,_.length,v.length,4),S=m<2?.4:m<4.5?.35:.3,C=m<15?2**((15-m)*S):1;function w(e,t=`mapbox`){return t===`mapbox`?(e[0]*256*256+e[1]*256+e[2])*.1-1e4:t===`terrarium`?e[0]*256+e[1]+e[2]/256-32768:0}function T(e,t){return e===0?d/2*(t>0?1:-1):Math.atan2(t,-e)}function E(e,t){let n=y[0]+d,r=Math.atan(.625*Math.sqrt(e*e+t*t)),i=T(e,t),a=1.875-p*1.75,o=.5*d,s=p===.5?r:(a**+r-1)/(a**+o-1)*o,c=Math.cos(s),l=Math.min(Math.max(p*2,0),1),u=(1-c)*l,f=g,m=f.r*u,h=f.g*u,b=f.b*u,x=f.a*u,S=(i+n)/d+.5;S%=2,S<0&&(S+=2);let C=Math.abs(S-1),w=Math.sin(s)*l,E=_[0],D=v[0],O=(E.r*(1-C)+D.r*C)*w,k=(E.g*(1-C)+D.g*C)*w,A=(E.b*(1-C)+D.b*C)*w,ee=(E.a*(1-C)+D.a*C)*w;return[m*(1-ee)+O,h*(1-ee)+k,b*(1-ee)+A,x*(1-ee)+ee]}function D(e,t){e*=p*2,t*=p*2;let n=T(e,t),r=y[0]+d,i=Math.atan(Math.sqrt(e*e+t*t))*(2/d),a=(n+r)/d+.5;a%=2,a<0&&(a+=2);let o=1-Math.abs(a-1),s=i*o,c=i*(1-o),l=_[0],u=v[0];return[l.r*s+u.r*c,l.g*s+u.g*c,l.b*s+u.b*c,l.a*s+u.a*c]}function O(e,t){e*=p*2,t*=p*2;let n=y[0]+d,r=Math.cos(n),i=Math.sin(n),a=Math.cos(b[0]),o=(Math.sin(b[0])-(t*r*a-e*i*a))/Math.sqrt(1+e*e+t*t),s=Math.max(0,Math.min(1,o));if(s>.5){let e=2*s-1,t=v[0];return[t.r*e,t.g*e,t.b*e,t.a*e]}let c=1-2*s,l=_[0];return[l.r*c,l.g*c,l.b*c,l.a*c]}function k(e,t){e*=p*2,t*=p*2;let n=y[0]+d,r=Math.cos(n),i=Math.sin(n),a=Math.cos(b[0]),o=Math.sin(b[0]),s=Math.acos((o-(t*r*a-e*i*a))/Math.sqrt(1+e*e+t*t));s=Math.max(0,Math.min(d/2,s));let c=Math.atan(Math.sqrt(e*e+t*t))*(4/d/d),l=s*c,u=(d/2-s)*c,f=_[0],m=v[0];return[f.r*l+m.r*u,f.g*l+m. Line truncated
`){[e,t]=nI(this,e,t);let r=``;for(let i=0,a=0;i<=t&&a<this.text.length;a++){let o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},XF=class e extends JF{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e<=s&&t>=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(t,n,r){if([t,n]=nI(this,t,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(t>=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines<l>>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n=`
`){[e,t]=nI(this,e,t);let r=``;for(let i=0,a=0;i<this.children.length&&a<=t;i++){let o=this.children[i],s=a+o.length;a>e&&i&&(r+=n),e<s&&t>a&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new YF(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof YF&&c&&(n=u[u.length-1])instanceof YF&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new YF(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t))}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0)}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};JF.empty=new YF([``],0);function BCe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function ZF(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a<e.length&&i<=r;a++){let s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function QF(e,t,n){return ZF(e,[``],t,n)}var $F=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value=``,this.nodes=[e],this.offsets=[t>0?1:(e instanceof YF?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof YF?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=!0,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof YF){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof YF?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},eI=class{constructor(e,t,n){this.value=``,this.done=!1,this.cursor=new $F(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},tI=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value=``,this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=!1):t?(this.done=!0,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<`u`&&(JF.prototype[Symbol.iterator]=function(){return this.iter()},$F.prototype[Symbol.iterator]=eI.prototype[Symbol.iterator]=tI.prototype[Symbol.iterator]=function(){return this});var VCe=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function nI(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function rI(e,t,n=!0,r=!0){return RCe(e,t,n,r)}function HCe(e){return e>=56320&&e<57344}function UCe(e){return e>=55296&&e<56320}function iI(e,t){let n=e.charCodeAt(t);if(!UCe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return HCe(r)?(n-55296<<10)+(r-56320)+65536:n}function aI(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function oI(e){return e<65536?1:2}var sI=/\r\n?|\n/,cI=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(cI||={}),lI=class e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){pI(this,e,t)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new e(t)}composeDesc(e){return this.empty?e:e.empty?this:hI(this,e)}mapDesc(e,t=!1){return e.empty?this:mI(this,e,t)}mapPos(e,t=-1,n=cI.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=cI.Simple&&c>=e&&(n==cI.TrackDel&&r<e&&c>e||n==cI.TrackBefore&&r<e||n==cI.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return r<e&&o>t?`cover`:!0;r=o}return!1}toString(){let e=``;for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?` `:``)+n+(r>=0?`:`+r:``)}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},uI=class e extends lI{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return pI(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return mI(this,e,t,!0)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e<n.length;e+=2){let a=n[e],o=n[e+1];if(o>=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length<s;)r.push(JF.empty);r.push(a?t.slice(i,i+a):JF.empty)}i+=a}return new e(n,r)}compose(e){return this.empty?e:e.empty?this:hI(this,e,!0)}map(e,t=!1){return e.empty?this:mI(this,e,t,!0)}iterChanges(e,t=!1){pI(this,e,t)}get desc(){return lI.create Line truncated
`}get readOnly(){return this.facet(UI)}phrase(t,...n){for(let n of this.facet(e.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(e,t)=>{if(t==`$`)return`$`;let r=+(t||1);return!r||r>n.length?e:n[r-1]})),t}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(LI))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){let t=this.languageDataAt(`wordChars`,e);return ewe(t.length?t[0]:``)}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,o=e-n;for(;a>0;){let e=rI(t,a,!1);if(i(t.slice(e,a))!=ZI.Word)break;a=e}for(;o<r;){let e=rI(t,o);if(i(t.slice(o,e))!=ZI.Word)break;o=e}return a==o?null:vI.range(a+n,o+n)}};$I.allowMultipleSelections=RI,$I.tabSize=xI.define({combine:e=>e.length?e[0]:4}),$I.lineSeparator=zI,$I.readOnly=UI,$I.phrases=xI.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),$I.languageData=LI,$I.changeFilter=BI,$I.transactionFilter=VI,$I.transactionExtender=HI,MI.reconfigure=GI.define();function eL(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],a=r[e];if(a===void 0)r[e]=i;else if(a!==i&&i!==void 0){if(Object.hasOwnProperty.call(n,e))r[e]=n[e](a,i);else throw Error(`Config merge conflict for field `+e)}}for(let e in t)r[e]===void 0&&(r[e]=t[e]);return r}var tL=class{eq(e){return this==e}range(e,t=e){return rL.create(e,t,this)}};tL.prototype.startSide=tL.prototype.endSide=0,tL.prototype.point=!1,tL.prototype.mapMode=cI.TrackDel;function nL(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}var rL=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,r){return new e(t,n,r)}};function iL(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var twe=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return oL(this.to)}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,o=i.length;;){if(a==o)return a;let r=a+o>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return s>=0?a:o;s>=0?o=r:a=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,i);i<a;i++)if(r(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(t,n,r,i,a){let o=[],s=[],c=[],l=-1,u=-1;e:for(let e=0;e<this.value.length;e++){let d=this.value[e],f=this.from[e]+t,p=this.to[e]+t,m,h;if(f==p){let e=n.mapPos(f,d.startSide,d.mapMode);if(e==null||(m=h=e,d.startSide!=d.endSide&&(h=n.mapPos(f,d.endSide),h<m)))continue}else if(m=n.mapPos(f,d.startSide),h=n.mapPos(p,d.endSide),m>h||m==h&&d.startSide>0&&d.endSide<=0)continue;if(!((h-m||d.endSide-d.startSide)<0)){if(l<0&&(l=m),d.point&&(u=Math.max(u,h-m)),(m-r||d.startSide-i)>=0)o.push(d),s.push(m-l),c.push(h-l),r=h,i=d.endSide;else{if(m==h)for(let e=o.length;e>0;e--){if((m-(c[e-1]+l)||d.startSide-o[e-1].endSide)>=0){o.splice(e,0,d),s.splice(e,0,m-l),c.splice(e,0,h-l);continue e}if((m-(s[e-1]+l)||d.endSide-o[e-1].startSide)>0)break}a(m,h,d)}}}return{mapped:o.length?new e(s,c,o,u):null,pos:l}}},aL=class e{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(t,n,r,i){return new e(t,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,o=t.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(iL)),this.isEmpty)return n.length?e.of(n):this;let s=new lL(this,null,-1).goto(0),c=0,l=[],u=new sL;for(;s.value||c<n.length;)if(c<n.length&&(s.from-n[c].from||s.startSide-n[c].value.startSide)>=0){let e=n[c++];u.addInner(e.from,e.to,e.value,!1)||l.push(e)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(c==n.length||this.chunkEnd(s.chunkIndex)<n[c].from)&&(!o||i>this.chunkEnd(s.chunkIndex)||a<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||i>s.to||a<s.from||o(s.from,s.to,s.value))&&(u.addInner(s.from,s.to,s.value,!1)||l.push(rL.create(s.from,s.to,s.value))),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?e.empty:this.nextLayer.update({add:l,filter:o,filterFrom:i,filterTo:a}))}map(t){if(t.empty||this.isEmpty)return this;let n=[],r=[],i=-1,a,o=(e,t,n)=>{a||=new sL,a.addRange(e,t,n,!1)};for(let e=0;e<this.chunk.length;e++){let a=this.chunkPos[e],s=this.chunk[e],c=t.touchesRange(a,a+s.length);if(c===!1)i=Math.max(i,s.maxPoint),n.push(s),r.push(t.mapPos(a));else if(c===!0){let[e,c]=n.length?[oL(r)+oL(n).length,oL(oL(n).value).endSide]:[-1,-1],{mapped:l,pos:u}=s.map(a,t,e,c,o);l&&(i=Math.max(i,l.maxPoint),n.push(l),r.push(u))}}let s=this.nextLayer.map(t);return a&&(s=a.finishInner(s)),n.length==0?s:new e(r, Line truncated
`)}static newName(){let e=CL[xL]||1;return CL[xL]=e+1,bL+e.toString(36)}static mount(e,t,n){let r=e[SL],i=n&&n.nonce;r?i&&r.setNonce(i):r=new rwe(e,i),r.mount(Array.isArray(t)?t:[t],e)}},TL=new Map,rwe=class{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=TL.get(n);if(t)return e[SL]=t;this.sheet=new r.CSSStyleSheet,TL.set(n,this)}else this.styleTag=n.createElement(`style`),t&&this.styleTag.setAttribute(`nonce`,t);this.modules=[],e[SL]=this}mount(e,t){let n=this.sheet,r=0,i=0,a=!1;for(let t=0;t<e.length;t++){let o=e[t],s=this.modules.indexOf(o);if(s<i&&s>-1&&(this.modules.splice(s,1),a=!0,i--,s=-1),s==-1){if(this.modules.splice(i++,0,o),a=!0,n)for(let e=0;e<o.rules.length;e++)n.insertRule(o.rules[e],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{if(a){let e=``;for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+`
`;this.styleTag.textContent=e}let e=t.head||t;this.styleTag.parentNode!=e&&e.insertBefore(this.styleTag,e.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute(`nonce`)!=e&&this.styleTag.setAttribute(`nonce`,e)}},EL={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},DL={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},iwe=typeof navigator<`u`&&/Mac/.test(navigator.platform),awe=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),OL=0;OL<10;OL++)EL[48+OL]=EL[96+OL]=String(OL);for(var OL=1;OL<=24;OL++)EL[OL+111]=`F`+OL;for(var OL=65;OL<=90;OL++)EL[OL]=String.fromCharCode(OL+32),DL[OL]=String.fromCharCode(OL);for(var kL in EL)DL.hasOwnProperty(kL)||(DL[kL]=EL[kL]);function owe(e){var t=!(iwe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||awe&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?DL:EL)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}function AL(){var e=arguments[0];typeof e==`string`&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n==`object`&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i==`string`?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;t<arguments.length;t++)jL(e,arguments[t]);return e}function jL(e,t){if(typeof t==`string`)e.appendChild(document.createTextNode(t));else if(t!=null){if(t.nodeType!=null)e.appendChild(t);else if(Array.isArray(t))for(var n=0;n<t.length;n++)jL(e,t[n]);else throw RangeError(`Unsupported child node: `+t)}}var ML=typeof navigator<`u`?navigator:{userAgent:``,vendor:``,platform:``},NL=typeof document<`u`?document:{documentElement:{style:{}}},PL=/Edge\/(\d+)/.exec(ML.userAgent),FL=/MSIE \d/.test(ML.userAgent),IL=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ML.userAgent),LL=!!(FL||IL||PL),RL=!LL&&/gecko\/(\d+)/i.test(ML.userAgent),zL=!LL&&/Chrome\/(\d+)/.exec(ML.userAgent),BL=`webkitFontSmoothing`in NL.documentElement.style,VL=!LL&&/Apple Computer/.test(ML.vendor),HL=VL&&(/Mobile\/\w+/.test(ML.userAgent)||ML.maxTouchPoints>2),UL={mac:HL||/Mac/.test(ML.platform),windows:/Win/.test(ML.platform),linux:/Linux|X11/.test(ML.platform),ie:LL,ie_version:FL?NL.documentMode||6:IL?+IL[1]:PL?+PL[1]:0,gecko:RL,gecko_version:RL?+(/Firefox\/(\d+)/.exec(ML.userAgent)||[0,0])[1]:0,chrome:!!zL,chrome_version:zL?+zL[1]:0,ios:HL,android:/Android\b/.test(ML.userAgent),webkit:BL,webkit_version:BL?+(/\bAppleWebKit\/(\d+)/.exec(ML.userAgent)||[0,0])[1]:0,safari:VL,safari_version:VL?+(/\bVersion\/(\d+(\.\d+)?)/.exec(ML.userAgent)||[0,0])[1]:0,tabSize:NL.documentElement.style.tabSize==null?`-moz-tab-size`:`tab-size`};function WL(e,t){for(let n in e)n==`class`&&t.class?t.class+=` `+e.class:n==`style`&&t.style?t.style+=`;`+e.style:t[n]=e[n];return t}var GL=Object.create(null);function KL(e,t,n){if(e==t)return!0;e||=GL,t||=GL;let r=Object.keys(e),i=Object.keys(t);if(+r.length!=+i.length)return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function swe(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;t[r]??e.removeAttribute(r)}for(let n in t){let r=t[n];n==`style`?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}function qL(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i==`style`?e.style.cssText=``:e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i==`style`?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function cwe(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}var JL=class{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},YL=(function(e){return e[e.Text=0]=`Text`,e[e.WidgetBefore=1]=`WidgetBefore`,e[e.WidgetAfter=2]=`WidgetAfter`,e[e.WidgetRange=3]=`WidgetRange`,e})(YL||={}),XL=class extends tL{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new ZL(e)}static widget(e){let t=Ma Line truncated
`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),t=n?vI.cursor(i.from,-1):vI.cursor(i.to,1)}if(!c){if(!r)return t;c=r(l)}else if(!c(l))return s;s=t}}function xTe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==ZI.Space&&(i=t),i==t}}function STe(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return vI.cursor(i,t.assoc);let o=t.goalColumn,s,c=e.contentDOM.getBoundingClientRect(),l=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(l)o??=l.left-c.left,s=a<0?l.top:l.bottom;else{let t=e.viewState.lineBlockAt(i);o??=Math.min(c.right-c.left,e.defaultCharacterWidth*(i-t.from)),s=(a<0?t.top:t.bottom)+u}let d=c.left+o,f=e.viewState.heightOracle.textHeight>>1,p=r??f;for(let t=0;;t+=f){let r=s+(p+t)*a,i=Cz(e,{x:d,y:r},!1,a);if(n?r>c.bottom:r<c.top)return vI.cursor(i.pos,i.assoc);let l=e.coordsAtPos(i.pos,i.assoc),u=l?(l.top+l.bottom)/2:0;if(!l||(n?u>s:u<s))return vI.cursor(i.pos,i.assoc,void 0,o)}}function bz(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,a)=>{if(t>e&&t<i){let a=r||n||(t-e<i-t?-1:1);t=a<0?e:i,r=a}});if(!r)return t}}function CTe(e,t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],a=null;if(i.empty){let t=bz(e,i.from,0);t!=i.from&&(a=vI.cursor(t,-1))}else{let t=bz(e,i.from,-1),n=bz(e,i.to,1);(t!=i.from||n!=i.to)&&(a=i.undirectional?vI.undirectionalRange(i.from,i.to):vI.range(i.from==i.anchor?t:n,i.from==i.head?t:n))}a&&(n||=t.ranges.slice(),n[r]=a)}return n?vI.create(n,t.mainIndex):t}function xz(e,t,n){let r=bz(e.state.facet(ez).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:vI.cursor(r,r<n.from?1:-1)}var Sz=class{constructor(e,t){this.pos=e,this.assoc=t}};function Cz(e,t,n,r){let i=e.contentDOM.getBoundingClientRect(),a=i.top+e.viewState.paddingTop,{x:o,y:s}=t,c=s-a,l;for(;;){if(c<0)return new Sz(0,1);if(c>e.viewState.docHeight)return new Sz(e.state.doc.length,-1);if(l=e.elementAtHeight(c),r==null)break;if(l.type==YL.Text){if(r<0?l.to<e.viewport.from:l.from>e.viewport.to)break;let t=e.docView.coordsAt(r<0?l.from:l.to,r>0?-1:1);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?l.bottom+t:l.top-t}if(e.viewport.from>=l.to||e.viewport.to<=l.from){if(n)return null;if(l.type==YL.Text){let t=vTe(e,i,l,o,s);return new Sz(t,t==l.from?1:-1)}}if(l.type!=YL.Text)return c<(l.top+l.bottom)/2?new Sz(l.from,1):new Sz(l.to,-1);let u=e.docView.lineAt(l.from,2);return u&&u.length==l.length||(u=e.docView.lineAt(l.from,-2)),new wTe(e,o,s,e.textDirectionAt(l.from)).scanTile(u,l.from)}var wTe=class{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[FR.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[FR.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t,n=!1){let r=0,i=e.length-1,a=new Set,o=this.bidiIn(e[0],e[i]),s,c,l=-1,u=1e9,d;for(;r<i;){let n=i-r,f=r+i>>1;e:if(a.has(f)){for(let e=1;e<n;e++){let t=f+e;if(t>=i&&(t-=n),!a.has(t)){f=t;break e}}break}a.add(f);let p=t(f),m=0;if(p)for(let e=0;e<p.length;e++){let t=p[e];if(!(t.width==0&&p.length>1)){if(t.bottom<this.y)(!s||s.bottom<t.bottom)&&(s=t),m=1;else if(t.top>this.y)(!c||c.top>t.top)&&(c=t),m=-1;else{let e=t.left>this.x?this.x-t.left:t.right<this.x?this.x-t.right:0,n=Math.abs(e);n<u&&(l=f,u=n,d=t),e&&(m=e<0==(this.baseDir==OR.LTR)?-1:1)}}}m==-1&&(!o||this.baseDirAt(e[f],1))?i=f:m==1&&(!o||this.baseDirAt(e[f+1],-1))&&(r=f+1)}if(!d){if(!c&&!s)return{i:0,after:!1};let n=s&&(!c||this.y-s.bottom<c.top-this.y)?s:c;return this.y=(n.top+n.bottom)/2,this.scan(e,t,!0)}if(u&&!n){let{top:n,bottom:r}=d;if(s&&s.bottom>(n+n+r)/3)return this.y=s.bottom-1,this.scan(e,t,!0);if(c&&c.top<(n+r+r)/3)return this.y=c.top+1,this.scan(e,t,!0)}let f=(o?this.dirAt(e[l],1):this.baseDir)==OR.LTR;return{i:l,after:this.x>(d.left+d.right)/2==f}}scanText(e,t){let n=[];for(let r=0;r<e.length;r=rI(e.text,r))n.push(t+r);n.push(t+e.length);let r=this.scan(n,r=>{let i=n[r]-t,a=n[r+1]-t;return SR(e.dom,i,a).getClientRects()});return r.after?new Sz(n[r.i+1],-1):new Sz(n[r.i],1)}scanTile(e,t){if(!e.length)return new Sz(t,1);if(e.children.length==1){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r<e.children.length;r++)n.push(i+=e.children[r].length);let r=this.scan(n,t=>{let n=e.children[t];return n.flags&48?null:(rR(n.dom)?n.dom:SR(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],a=n[r.i];return i.isText()?this.scanText(i,a):i.isComposite()?this.scanTile(i,a):r.after?new Sz(n[r.i+1],-1):new Sz(a,1)}},wz=`￿`,TTe=class{constructor(e, Line truncated
`&&e.lineWrapping&&(r&&=vI.single(r.main.anchor-1,r.main.head-1),n={from:a.from,to:a.to,insert:JF.of([` `])}),n)return Tz(e,n,r,o);if(r&&!Ez(r,a)){let t=!1,n=`select`;return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin==`select`&&(t=!0),n=e.inputState.lastSelectionOrigin,n==`select.pointer`&&(r=CTe(i.facet(ez).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function Tz(e,t,n,r=-1){if(UL.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(UL.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&e.state.sliceDoc(t.from,i.from)==` `)&&t.insert.length==1&&t.insert.lines==2&&CR(e.contentDOM,`Enter`,13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.length<t.to-t.from&&t.to>i.head)&&CR(e.contentDOM,`Backspace`,8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&CR(e.contentDOM,`Delete`,46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,s=()=>o||=MTe(e,t,n);return e.state.facet(Awe).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),!0}function MTe(e,t,n){let r,i=e.state,a=i.selection.main,o=-1;if(t.from==t.to&&t.from<a.from||t.from>a.to){let n=t.from<a.from?-1:1,r=n<0?a.from:a.to,s=bz(i.facet(ez).map(t=>t(e)),r,n);t.from==s&&(o=s)}if(o>-1)r={changes:t,selection:vI.cursor(t.from+t.insert.length,-1)};else if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.from<t.from?i.sliceDoc(a.from,t.from):``,o=a.to>t.to?i.sliceDoc(t.to,a.to):``;r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let o=i.changes(t),s=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=a.to+10&&t.to>=a.to-10){let c=e.state.sliceDoc(t.from,t.to),l,u=n&&cTe(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}}else l=e.state.doc.lineAt(a.head);let d=a.to-t.to;r=i.changeByRange(n=>{if(n.from==a.from&&n.to==a.to)return{changes:o,range:s||n.map(o)};let r=n.to-d,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=l.from&&u<=l.to)return{range:n};let f=i.changes({from:u,to:r,insert:t.insert}),p=n.to-a.to;return{changes:f,range:s?vI.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):n.map(f)}})}else r={changes:o,selection:s&&i.selection.replaceRange(s)}}let s=`input.type`;return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=`.compose`,e.inputState.compositionFirstChange&&(s+=`.start`,e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function NTe(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a<i&&e.charCodeAt(a)==t.charCodeAt(a);)a++;if(a==i&&e.length==t.length)return null;let o=e.length,s=t.length;for(;o>0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if(r==`end`){let e=Math.max(0,a-Math.min(o,s));n-=o+e-a}if(o<a&&e.length<t.length){let e=n<=a&&n>=o?a-n:0;a-=e,s=a+(s-o),o=a}else if(s<a){let e=n<=a&&n>=s?a-n:0;a-=e,o=a+(o-s),s=a}return{from:a,toA:o,toB:s}}function PTe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new OTe(n,r)),(i!=n||a!=r)&&t.push(new OTe(i,a))),t}function FTe(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n<0||r<0?null:n==r?vI.create([vI.cursor(r+t,-1)]):vI.single(n+t,r+t)}function Ez(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}var ITe=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText=``,this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.androidSelection=-1,this.androidSelectionNeedsFlush=!1,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,UL.safari&&e.contentDOM.addEventListener(`input`,()=>null),UL.gecko&&pEe(e.contentDOM.ownerDocument)}handleEvent(e){qTe(this.view,e)&&!this.ignoreDuringComposition(e)&&(e.type==`keydown`&&this.keydown(e)||(this.view.updateState==0?this.runHandlers(e.type,e):Promise.resolve().then(()=>this.runHandlers(e.type,e))))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e Line truncated
`))};if((UL.mac||UL.android)&&u.from==a-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute(`autocorrect`)==`off`&&(u={from:o,to:s,insert:JF.of([n.text.replace(`.`,` `)])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);Tz(e,u,vI.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);t<a;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),a=this.toEditorPos(e.rangeEnd);if(i<a){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+` `:t==`Dashed`?`dashed `:t==`Squiggle`?`wavy `:``}${/thin/i.test(r)?1:2}px`;n.push(XL.mark({attributes:{style:e}}).range(i,a))}}}e.dispatch({effects:Fwe.of(XL.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{let t=aR(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,a,o,s,c)=>{if(n)return;let l=c.length-(a-i);if(r&&a>=r.to){if(r.from==i&&r.to==a&&r.insert.eq(c)){r=this.pendingContextChange=null,t+=l,this.to+=l;return}r=null,this.revertPending(e.state)}if(i+=t,a+=t,a<=this.from)this.from+=l,this.to+=l;else if(i<this.to){if(i<this.from||a>this.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(a),c.toString()),this.to+=l}t+=l}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent(`input.type`)&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},$z=class e{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.clearAnnouncement=-1,this.contentDOM=document.createElement(`divLine truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩-]`,lB),wDe={0:`null`,7:`bell`,8:`backspace`,10:`newline`,11:`vertical tab`,13:`carriage return`,27:`escape`,8203:`zero width space`,8204:`zero width non-joiner`,8205:`zero width joiner`,8206:`left-to-right mark`,8207:`right-to-left mark`,8232:`line separator`,8237:`left-to-right override`,8238:`right-to-left override`,8294:`left-to-right isolate`,8295:`right-to-left isolate`,8297:`pop directional isolate`,8233:`paragraph separator`,65279:`zero width no-break space`,65532:`object replacement`},uB=null;function TDe(){if(uB==null&&typeof document<`u`&&document.body){let e=document.body.style;uB=(e.tabSize??e.MozTabSize)!=null}return uB||!1}var dB=xI.define({combine(e){let t=eL(e,{render:null,specialChars:CDe,addSpecialChars:null});return(t.replaceTabs=!TDe())&&(t.specialChars=RegExp(` |`+t.specialChars.source,lB)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+`|`+t.addSpecialChars.source,lB)),t}});function EDe(e={}){return[dB.of(e),ODe()]}var DDe=null;function ODe(){return DDe||=YR.fromClass(class{constructor(e){this.view=e,this.decorations=XL.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(dB)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new SDe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=iI(t[0],0);if(a==9){let e=i.lineAt(r),t=n.state.tabSize,a=vL(e.text,t,r-e.from);return XL.replace({widget:new MDe((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=XL.replace({widget:new jDe(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(dB);e.startState.facet(dB)==t?this.decorations=this.decorator.updateDeco(e,this.decorations):(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view))}},{decorations:e=>e.decorations})}var kDe=`•`;function ADe(e){return e>=32?kDe:e==10?`␤`:String.fromCharCode(9216+e)}var jDe=class extends JL{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=ADe(this.code),n=e.state.phrase(`Control character`)+` `+(wDe[this.code]||`0x`+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement(`span`);return i.textContent=t,i.title=n,i.setAttribute(`aria-label`,n),i.className=`cm-specialChar`,i}ignoreEvent(){return!1}},MDe=class extends JL{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement(`span`);return e.textContent=` `,e.className=`cm-tab`,e.style.width=this.width+`px`,e}ignoreEvent(){return!1}};function NDe(){return FDe}var PDe=XL.line({class:`cm-activeLine`}),FDe=YR.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(PDe.range(i.from)),t=i.from)}return XL.set(n)}},{decorations:e=>e.decorations}),fB=2e3;function IDe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>fB||n.off>fB||t.col<0||n.col<0){let o=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=s&&a.push(vI.range(n.from+o,n.to+s))}}else{let o=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=yL(n.text,o,e.tabSize,!0);if(r<0)a.push(vI.cursor(n.to));else{let t=yL(n.text,s,e.tabSize);a.push(vI.range(n.from+r,n.from+t))}}}return a}function LDe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function RDe(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>fB?-1:i==r.length?LDe(e,t.clientX):vL(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function zDe(e,t){let n=RDe(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes)}},get(t,i,a){let o=RDe(e,t);if(!o)return r;let s=IDe(e.state,n,o);return s.length?a?vI.create(s.concat(r.ranges)):vI.create(s):r}}:null}function BDe(e){let t=e?.eventFilter||(e=>e.altKey&&e.button==0);return $z.mouseSelectionStyle.of((e,n)=>t(n)?zDe(e,n):null)}var VDe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},HDe={style:`cursor: crosshair`};function UDe(e={}){let[t,n]=VDe[e.key||`Alt`],r=YR.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,$z.contentAttributes.of(e=>e.plugin(r)?.isDown?HDe:null)]}var pB=`-100Line truncated
`:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new ZMe(this):new JMe(this)}getCursor(e,t=0,n){let r=e.doc?e:$I.create({doc:e});return n??=r.doc.length,this.regexp?fH(this,r,t,n):dH(this,r,t,n)}},GMe=class{constructor(e){this.spec=e}};function KMe(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function dH(e,t,n,r){let i;return e.wholeWord&&(i=qMe(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=KMe(e.test,t,i)),new oH(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function qMe(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(pH(i,n-a))!=ZI.Word||t(mH(i,n-a))!=ZI.Word)&&(t(mH(i,r-a))!=ZI.Word||t(pH(i,r-a))!=ZI.Word))}var JMe=class extends GMe{constructor(e){super(e)}nextMatch(e,t,n){let r=dH(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=dH(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=dH(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=dH(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=dH(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function YMe(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function fH(e,t,n,r){let i;return e.wholeWord&&(i=XMe(t.charCategorizer(t.selection.main.head))),e.test&&(i=YMe(e.test,t,i)),new DMe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function pH(e,t){return e.slice(rI(e,t,!1),t)}function mH(e,t){return e.slice(t,rI(e,t))}function XMe(e){return(t,n,r)=>!r[0].length||(e(pH(r.input,r.index))!=ZI.Word||e(mH(r.input,r.index))!=ZI.Word)&&(e(mH(r.input,r.index+r[0].length))!=ZI.Word||e(pH(r.input,r.index+r[0].length))!=ZI.Word)}var ZMe=class extends GMe{nextMatch(e,t,n){let r=fH(this.spec,e,n,e.doc.length).next();return r.done&&(r=fH(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=fH(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=fH(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=fH(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},hH=GI.define(),gH=GI.define(),_H=DI.define({create(e){return new vH(CH(e).create(),null)},update(e,t){for(let n of t.effects)n.is(hH)?e=new vH(n.value.create(),e.panel):n.is(gH)&&(e=new vH(e.query,n.value?SH:null));return e},provide:e=>xB.from(e,e=>e.panel)}),vH=class{constructor(e,t){this.query=e,this.panel=t}},QMe=XL.mark({class:`cm-searchMatch`}),$Me=XL.mark({class:`cm-searchMatch cm-searchMatch-selected`}),eNe=YR.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(_H))}update(e){let t=e.state.field(_H);(t!=e.startState.field(_H)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return XL.none;let{view:n}=this,r=new sL;for(let t=0,i=n.visibleRanges,a=i.length;t<a;t++){let{from:o,to:s}=i[t];for(;t<a-1&&s>i[t+1].from-500;)s=i[++t].to;e.highlight(n.state,o,s,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?$Me:QMe)})}return r.finish()}},{decorations:e=>e.decorations});function yH(e){return t=>{let n=t.state.field(_H,!1);return n&&n.query.spec.valid?e(t,n):sNe(t)}}var bH=yH((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=vI.single(r.from,r.to),a=e.state.facet(uH);return e.dispatch({selection:i,effects:[DH(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),oNe(e),!0}),xH=yH((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a= Line truncated
`,``),t.push(s[e],a);return t},[]):iF(n,_).trim(),l=tF(d,`paint`,`text-opacity`,w,h,T)}if(M&&l&&!ne){k||(++E,x=v[E],(!x||!x.getText()||x.getFill()||x.getStroke())&&(x=new ZA,v[E]=x),x.setImage(void 0),x.setGeometry(void 0));let e=nF(d,w,`text`,h);x.getText()||x.setText(A),A=x.getText(),(!A||`getDeclutterMode`in A&&A.getDeclutterMode()!==e)&&(A=new tj({padding:[2,2,2,2],declutterMode:e}),x.setText(A));let t=tF(d,`layout`,`text-transform`,w,h,T);t==`uppercase`?M=Array.isArray(M)?M.map((e,t)=>t%2?e:e.toUpperCase()):M.toUpperCase():t==`lowercase`&&(M=Array.isArray(M)?M.map((e,t)=>t%2?e:e.toLowerCase()):M.toLowerCase());let n=Array.isArray(M)?M:S==2?GP(M,oe):XP(M,re,se,oe);if(A.setText(n),A.setFont(re),A.setRotation(NP(tF(d,`layout`,`text-rotate`,w,h,T))),typeof A.setKeepUpright==`function`){let e=tF(d,`layout`,`text-keep-upright`,w,h,T);A.setKeepUpright(e)}let r=tF(d,`layout`,`text-anchor`,w,h,T),i=k||S==1?`point`:tF(d,`layout`,`symbol-placement`,w,h,T),a;if(i===`line-center`?(A.setPlacement(`line`),a=`center`):A.setPlacement(i),i===`line`&&typeof A.setRepeat==`function`){let e=tF(d,`layout`,`symbol-spacing`,w,h,T);A.setRepeat(e*2)}A.setOverflow(i===`point`);let o=tF(d,`paint`,`text-halo-width`,w,h,T),s=tF(d,`layout`,`text-offset`,w,h,T),c=tF(d,`paint`,`text-translate`,w,h,T),u=0,f=0;if(i==`point`){a=`center`,r.indexOf(`left`)===-1?r.indexOf(`right`)!==-1&&(a=`right`,f=-o):(a=`left`,f=o);let e=tF(d,`layout`,`text-rotation-alignment`,w,h,T);A.setRotateWithView(e==`map`)}else A.setMaxAngle(NP(tF(d,`layout`,`text-max-angle`,w,h,T))*M.length/n.length),A.setRotateWithView(!1);A.setTextAlign(a);let p=`middle`;r.indexOf(`bottom`)==0?(p=`bottom`,u=-o-.5*(ie-1)*ae):r.indexOf(`top`)==0&&(p=`top`,u=o+.5*(ie-1)*ae),A.setTextBaseline(p);let m=tF(d,`layout`,`text-justify`,w,h,T);A.setJustify(m===`auto`?void 0:m),A.setOffsetX(s[0]*ae+f+c[0]),A.setOffsetY(s[1]*ae+u+c[1]);let g=A.getFill()||new qA;g.setColor(rF(tF(d,`paint`,`text-color`,w,h,T),l)),A.setFill(g);let _=rF(tF(d,`paint`,`text-halo-color`,w,h,T),l);if(_&&o>0){let e=A.getStroke()||new XA;e.setColor(_),o*=2;let t=.5*ae;e.setWidth(o<=t?o:t),A.setStroke(e)}else A.setStroke(void 0);let y=tF(d,`layout`,`text-padding`,w,h,T),b=A.getPadding();y!==b[0]&&(b[0]=y,b[1]=y,b[2]=y,b[3]=y),`setOptional`in A&&typeof A.setOptional==`function`&&A.setOptional(tF(d,`layout`,`text-optional`,w,h,T)),x.setZIndex(C)}}}if(E>-1)return v.length=E+1,v};return e.setStyle(y),e.set(`mapbox-layers`,d),e.set(`mapbox-source`,_),e.set(`mapbox-featurestate`,e.get(`mapbox-featurestate`)||{}),y}var oF=1024;function gCe(e,t){if(!e.paint||e.paint[`raster-color`]===void 0)return()=>void 0;let n={properties:{"raster-value":0}},r=r=>tF(e,`paint`,r,n,t),i;return e=>{YN.zoom=e;let t=r(`raster-color-mix`),a=r(`raster-color-range`);if(i&&i.range[0]===a[0]&&i.range[1]===a[1])return i={mix:t,range:a,ramp:i.ramp},i;let o=new Uint8ClampedArray(oF*4),[s,c]=a;for(let e=0;e<oF;++e){n.properties[`raster-value`]=s+(c-s)*e/1023;let t=r(`raster-color`).rgb;o[e*4]=t[0]*255,o[e*4+1]=t[1]*255,o[e*4+2]=t[2]*255,o[e*4+3]=t[3]*255}return i={mix:t,range:a,ramp:o},i}}function _Ce(e,t){let n=e[0],r=n.width,i=n.height,a=n.data,o=new Uint8ClampedArray(a.length),s=t.resolution*2,c=r-1,l=i-1,u=[0,0,0,0],d=Math.PI,f=t.encoding,p=t.exaggeration,m=t.zoom,h=t.method||`standard`,g=t.accentColor,_=t.shadowColors||[t.shadowColor],v=t.highlightColors||[t.highlightColor],y=(t.azimuths||[t.sunAz]).map(e=>e*d/180),b=(t.altitudes||[45]).map(e=>e*d/180),x=Math.min(y.length,b.length,_.length,v.length,4),S=m<2?.4:m<4.5?.35:.3,C=m<15?2**((15-m)*S):1;function w(e,t=`mapbox`){return t===`mapbox`?(e[0]*256*256+e[1]*256+e[2])*.1-1e4:t===`terrarium`?e[0]*256+e[1]+e[2]/256-32768:0}function T(e,t){return e===0?d/2*(t>0?1:-1):Math.atan2(t,-e)}function E(e,t){let n=y[0]+d,r=Math.atan(.625*Math.sqrt(e*e+t*t)),i=T(e,t),a=1.875-p*1.75,o=.5*d,s=p===.5?r:(a**+r-1)/(a**+o-1)*o,c=Math.cos(s),l=Math.min(Math.max(p*2,0),1),u=(1-c)*l,f=g,m=f.r*u,h=f.g*u,b=f.b*u,x=f.a*u,S=(i+n)/d+.5;S%=2,S<0&&(S+=2);let C=Math.abs(S-1),w=Math.sin(s)*l,E=_[0],D=v[0],O=(E.r*(1-C)+D.r*C)*w,k=(E.g*(1-C)+D.g*C)*w,A=(E.b*(1-C)+D.b*C)*w,ee=(E.a*(1-C)+D.a*C)*w;return[m*(1-ee)+O,h*(1-ee)+k,b*(1-ee)+A,x*(1-ee)+ee]}function D(e,t){e*=p*2,t*=p*2;let n=T(e,t),r=y[0]+d,i=Math.atan(Math.sqrt(e*e+t*t))*(2/d),a=(n+r)/d+.5;a%=2,a<0&&(a+=2);let o=1-Math.abs(a-1),s=i*o,c=i*(1-o),l=_[0],u=v[0];return[l.r*s+u.r*c,l.g*s+u.g*c,l.b*s+u.b*c,l.a*s+u.a*c]}function O(e,t){e*=p*2,t*=p*2;let n=y[0]+d,r=Math.cos(n),i=Math.sin(n),a=Math.cos(b[0]),o=(Math.sin(b[0])-(t*r*a-e*i*a))/Math.sqrt(1+e*e+t*t),s=Math.max(0,Math.min(1,o));if(s>.5){let e=2*s-1,t=v[0];return[t.r*e,t.g*e,t.b*e,t.a*e]}let c=1-2*s,l=_[0];return[l.r*c,l.g*c,l.b*c,l.a*c]}function k(e,t){e*=p*2,t*=p*2;let n=y[0]+d,r=Math.cos(n),i=Math.sin(n),a=Math.cos(b[0]),o=Math.sin(b[0]),s=Math.acos((o-(t*r*a-e*i*a))/Math.sqrt(1+e*e+t*t));s=Math.max(0,Math.min(d/2,s));let c=Math.atan(Math.sqrt(e*e+t*t))*(4/d/d),l=s*c,u=(d/2-s)*c,f=_[0],m=v[0];return[f.r*l+m.r*u,f.g*l+m. Line truncated
`){[e,t]=IF(this,e,t);let r=``;for(let i=0,a=0;i<=t&&a<this.text.length;a++){let o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},AF=class e extends OF{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e<=s&&t>=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(t,n,r){if([t,n]=IF(this,t,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(t>=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines<l>>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n=`
`){[e,t]=IF(this,e,t);let r=``;for(let i=0,a=0;i<this.children.length&&a<=t;i++){let o=this.children[i],s=a+o.length;a>e&&i&&(r+=n),e<s&&t>a&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new kF(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof kF&&c&&(n=u[u.length-1])instanceof kF&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new kF(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t))}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0)}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};OF.empty=new kF([``],0);function YCe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function jF(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a<e.length&&i<=r;a++){let s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function MF(e,t,n){return jF(e,[``],t,n)}var NF=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value=``,this.nodes=[e],this.offsets=[t>0?1:(e instanceof kF?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof kF?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=!0,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof kF){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof kF?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},PF=class{constructor(e,t,n){this.value=``,this.done=!1,this.cursor=new NF(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},FF=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value=``,this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=!1):t?(this.done=!0,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<`u`&&(OF.prototype[Symbol.iterator]=function(){return this.iter()},NF.prototype[Symbol.iterator]=PF.prototype[Symbol.iterator]=FF.prototype[Symbol.iterator]=function(){return this});var XCe=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function IF(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function LF(e,t,n=!0,r=!0){return qCe(e,t,n,r)}function ZCe(e){return e>=56320&&e<57344}function QCe(e){return e>=55296&&e<56320}function RF(e,t){let n=e.charCodeAt(t);if(!QCe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return ZCe(r)?(n-55296<<10)+(r-56320)+65536:n}function zF(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function BF(e){return e<65536?1:2}var VF=/\r\n?|\n/,HF=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(HF||={}),UF=class e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){qF(this,e,t)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new e(t)}composeDesc(e){return this.empty?e:e.empty?this:YF(this,e)}mapDesc(e,t=!1){return e.empty?this:JF(this,e,t)}mapPos(e,t=-1,n=HF.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=HF.Simple&&c>=e&&(n==HF.TrackDel&&r<e&&c>e||n==HF.TrackBefore&&r<e||n==HF.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return r<e&&o>t?`cover`:!0;r=o}return!1}toString(){let e=``;for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?` `:``)+n+(r>=0?`:`+r:``)}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},WF=class e extends UF{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return qF(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return JF(this,e,t,!0)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e<n.length;e+=2){let a=n[e],o=n[e+1];if(o>=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length<s;)r.push(OF.empty);r.push(a?t.slice(i,i+a):OF.empty)}i+=a}return new e(n,r)}compose(e){return this.empty?e:e.empty?this:YF(this,e,!0)}map(e,t=!1){return e.empty?this:JF(this,e,t,!0)}iterChanges(e,t=!1){qF(this,e,t)}get desc(){return UF.create Line truncated
`}get readOnly(){return this.facet(CI)}phrase(t,...n){for(let n of this.facet(e.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(e,t)=>{if(t==`$`)return`$`;let r=+(t||1);return!r||r>n.length?e:n[r-1]})),t}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(_I))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){let t=this.languageDataAt(`wordChars`,e);return lwe(t.length?t[0]:``)}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,o=e-n;for(;a>0;){let e=LF(t,a,!1);if(i(t.slice(e,a))!=jI.Word)break;a=e}for(;o<r;){let e=LF(t,o);if(i(t.slice(o,e))!=jI.Word)break;o=e}return a==o?null:QF.range(a+n,o+n)}};NI.allowMultipleSelections=vI,NI.tabSize=tI.define({combine:e=>e.length?e[0]:4}),NI.lineSeparator=yI,NI.readOnly=CI,NI.phrases=tI.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),NI.languageData=_I,NI.changeFilter=bI,NI.transactionFilter=xI,NI.transactionExtender=SI,fI.reconfigure=TI.define();function PI(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],a=r[e];if(a===void 0)r[e]=i;else if(a!==i&&i!==void 0){if(Object.hasOwnProperty.call(n,e))r[e]=n[e](a,i);else throw Error(`Config merge conflict for field `+e)}}for(let e in t)r[e]===void 0&&(r[e]=t[e]);return r}var FI=class{eq(e){return this==e}range(e,t=e){return LI.create(e,t,this)}};FI.prototype.startSide=FI.prototype.endSide=0,FI.prototype.point=!1,FI.prototype.mapMode=HF.TrackDel;function II(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}var LI=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,r){return new e(t,n,r)}};function RI(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var uwe=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return BI(this.to)}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,o=i.length;;){if(a==o)return a;let r=a+o>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return s>=0?a:o;s>=0?o=r:a=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,i);i<a;i++)if(r(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(t,n,r,i,a){let o=[],s=[],c=[],l=-1,u=-1;e:for(let e=0;e<this.value.length;e++){let d=this.value[e],f=this.from[e]+t,p=this.to[e]+t,m,h;if(f==p){let e=n.mapPos(f,d.startSide,d.mapMode);if(e==null||(m=h=e,d.startSide!=d.endSide&&(h=n.mapPos(f,d.endSide),h<m)))continue}else if(m=n.mapPos(f,d.startSide),h=n.mapPos(p,d.endSide),m>h||m==h&&d.startSide>0&&d.endSide<=0)continue;if(!((h-m||d.endSide-d.startSide)<0)){if(l<0&&(l=m),d.point&&(u=Math.max(u,h-m)),(m-r||d.startSide-i)>=0)o.push(d),s.push(m-l),c.push(h-l),r=h,i=d.endSide;else{if(m==h)for(let e=o.length;e>0;e--){if((m-(c[e-1]+l)||d.startSide-o[e-1].endSide)>=0){o.splice(e,0,d),s.splice(e,0,m-l),c.splice(e,0,h-l);continue e}if((m-(s[e-1]+l)||d.endSide-o[e-1].startSide)>0)break}a(m,h,d)}}}return{mapped:o.length?new e(s,c,o,u):null,pos:l}}},zI=class e{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(t,n,r,i){return new e(t,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,o=t.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(RI)),this.isEmpty)return n.length?e.of(n):this;let s=new UI(this,null,-1).goto(0),c=0,l=[],u=new VI;for(;s.value||c<n.length;)if(c<n.length&&(s.from-n[c].from||s.startSide-n[c].value.startSide)>=0){let e=n[c++];u.addInner(e.from,e.to,e.value,!1)||l.push(e)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(c==n.length||this.chunkEnd(s.chunkIndex)<n[c].from)&&(!o||i>this.chunkEnd(s.chunkIndex)||a<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||i>s.to||a<s.from||o(s.from,s.to,s.value))&&(u.addInner(s.from,s.to,s.value,!1)||l.push(LI.create(s.from,s.to,s.value))),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?e.empty:this.nextLayer.update({add:l,filter:o,filterFrom:i,filterTo:a}))}map(t){if(t.empty||this.isEmpty)return this;let n=[],r=[],i=-1,a,o=(e,t,n)=>{a||=new VI,a.addRange(e,t,n,!1)};for(let e=0;e<this.chunk.length;e++){let a=this.chunkPos[e],s=this.chunk[e],c=t.touchesRange(a,a+s.length);if(c===!1)i=Math.max(i,s.maxPoint),n.push(s),r.push(t.mapPos(a));else if(c===!0){let[e,c]=n.length?[BI(r)+BI(n).length,BI(BI(n).value).endSide]:[-1,-1],{mapped:l,pos:u}=s.map(a,t,e,c,o);l&&(i=Math.max(i,l.maxPoint),n.push(l),r.push(u))}}let s=this.nextLayer.map(t);return a&&(s=a.finishInner(s)),n.length==0?s:new e(r, Line truncated
`)}static newName(){let e=rL[tL]||1;return rL[tL]=e+1,eL+e.toString(36)}static mount(e,t,n){let r=e[nL],i=n&&n.nonce;r?i&&r.setNonce(i):r=new fwe(e,i),r.mount(Array.isArray(t)?t:[t],e)}},aL=new Map,fwe=class{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=aL.get(n);if(t)return e[nL]=t;this.sheet=new r.CSSStyleSheet,aL.set(n,this)}else this.styleTag=n.createElement(`style`),t&&this.styleTag.setAttribute(`nonce`,t);this.modules=[],e[nL]=this}mount(e,t){let n=this.sheet,r=0,i=0,a=!1;for(let t=0;t<e.length;t++){let o=e[t],s=this.modules.indexOf(o);if(s<i&&s>-1&&(this.modules.splice(s,1),a=!0,i--,s=-1),s==-1){if(this.modules.splice(i++,0,o),a=!0,n)for(let e=0;e<o.rules.length;e++)n.insertRule(o.rules[e],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{if(a){let e=``;for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+`
`;this.styleTag.textContent=e}let e=t.head||t;this.styleTag.parentNode!=e&&e.insertBefore(this.styleTag,e.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute(`nonce`)!=e&&this.styleTag.setAttribute(`nonce`,e)}},oL={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},sL={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},pwe=typeof navigator<`u`&&/Mac/.test(navigator.platform),mwe=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),cL=0;cL<10;cL++)oL[48+cL]=oL[96+cL]=String(cL);for(var cL=1;cL<=24;cL++)oL[cL+111]=`F`+cL;for(var cL=65;cL<=90;cL++)oL[cL]=String.fromCharCode(cL+32),sL[cL]=String.fromCharCode(cL);for(var lL in oL)sL.hasOwnProperty(lL)||(sL[lL]=oL[lL]);function hwe(e){var t=!(pwe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||mwe&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?sL:oL)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}function uL(){var e=arguments[0];typeof e==`string`&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n==`object`&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i==`string`?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;t<arguments.length;t++)dL(e,arguments[t]);return e}function dL(e,t){if(typeof t==`string`)e.appendChild(document.createTextNode(t));else if(t!=null){if(t.nodeType!=null)e.appendChild(t);else if(Array.isArray(t))for(var n=0;n<t.length;n++)dL(e,t[n]);else throw RangeError(`Unsupported child node: `+t)}}var fL=typeof navigator<`u`?navigator:{userAgent:``,vendor:``,platform:``},pL=typeof document<`u`?document:{documentElement:{style:{}}},mL=/Edge\/(\d+)/.exec(fL.userAgent),hL=/MSIE \d/.test(fL.userAgent),gL=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fL.userAgent),_L=!!(hL||gL||mL),vL=!_L&&/gecko\/(\d+)/i.test(fL.userAgent),yL=!_L&&/Chrome\/(\d+)/.exec(fL.userAgent),bL=`webkitFontSmoothing`in pL.documentElement.style,xL=!_L&&/Apple Computer/.test(fL.vendor),SL=xL&&(/Mobile\/\w+/.test(fL.userAgent)||fL.maxTouchPoints>2),CL={mac:SL||/Mac/.test(fL.platform),windows:/Win/.test(fL.platform),linux:/Linux|X11/.test(fL.platform),ie:_L,ie_version:hL?pL.documentMode||6:gL?+gL[1]:mL?+mL[1]:0,gecko:vL,gecko_version:vL?+(/Firefox\/(\d+)/.exec(fL.userAgent)||[0,0])[1]:0,chrome:!!yL,chrome_version:yL?+yL[1]:0,ios:SL,android:/Android\b/.test(fL.userAgent),webkit:bL,webkit_version:bL?+(/\bAppleWebKit\/(\d+)/.exec(fL.userAgent)||[0,0])[1]:0,safari:xL,safari_version:xL?+(/\bVersion\/(\d+(\.\d+)?)/.exec(fL.userAgent)||[0,0])[1]:0,tabSize:pL.documentElement.style.tabSize==null?`-moz-tab-size`:`tab-size`};function wL(e,t){for(let n in e)n==`class`&&t.class?t.class+=` `+e.class:n==`style`&&t.style?t.style+=`;`+e.style:t[n]=e[n];return t}var TL=Object.create(null);function EL(e,t,n){if(e==t)return!0;e||=TL,t||=TL;let r=Object.keys(e),i=Object.keys(t);if(+r.length!=+i.length)return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function gwe(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;t[r]??e.removeAttribute(r)}for(let n in t){let r=t[n];n==`style`?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}function DL(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i==`style`?e.style.cssText=``:e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i==`style`?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function _we(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}var OL=class{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},kL=(function(e){return e[e.Text=0]=`Text`,e[e.WidgetBefore=1]=`WidgetBefore`,e[e.WidgetAfter=2]=`WidgetAfter`,e[e.WidgetRange=3]=`WidgetRange`,e})(kL||={}),AL=class extends FI{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new jL(e)}static widget(e){let t=Ma Line truncated
`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),t=n?QF.cursor(i.from,-1):QF.cursor(i.to,1)}if(!c){if(!r)return t;c=r(l)}else if(!c(l))return s;s=t}}function uTe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==jI.Space&&(i=t),i==t}}function dTe(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return QF.cursor(i,t.assoc);let o=t.goalColumn,s,c=e.contentDOM.getBoundingClientRect(),l=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(l)o??=l.left-c.left,s=a<0?l.top:l.bottom;else{let t=e.viewState.lineBlockAt(i);o??=Math.min(c.right-c.left,e.defaultCharacterWidth*(i-t.from)),s=(a<0?t.top:t.bottom)+u}let d=c.left+o,f=e.viewState.heightOracle.textHeight>>1,p=r??f;for(let t=0;;t+=f){let r=s+(p+t)*a,i=Cz(e,{x:d,y:r},!1,a);if(n?r>c.bottom:r<c.top)return QF.cursor(i.pos,i.assoc);let l=e.coordsAtPos(i.pos,i.assoc),u=l?(l.top+l.bottom)/2:0;if(!l||(n?u>s:u<s))return QF.cursor(i.pos,i.assoc,void 0,o)}}function bz(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,a)=>{if(t>e&&t<i){let a=r||n||(t-e<i-t?-1:1);t=a<0?e:i,r=a}});if(!r)return t}}function fTe(e,t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],a=null;if(i.empty){let t=bz(e,i.from,0);t!=i.from&&(a=QF.cursor(t,-1))}else{let t=bz(e,i.from,-1),n=bz(e,i.to,1);(t!=i.from||n!=i.to)&&(a=i.undirectional?QF.undirectionalRange(i.from,i.to):QF.range(i.from==i.anchor?t:n,i.from==i.head?t:n))}a&&(n||=t.ranges.slice(),n[r]=a)}return n?QF.create(n,t.mainIndex):t}function xz(e,t,n){let r=bz(e.state.facet(qR).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:QF.cursor(r,r<n.from?1:-1)}var Sz=class{constructor(e,t){this.pos=e,this.assoc=t}};function Cz(e,t,n,r){let i=e.contentDOM.getBoundingClientRect(),a=i.top+e.viewState.paddingTop,{x:o,y:s}=t,c=s-a,l;for(;;){if(c<0)return new Sz(0,1);if(c>e.viewState.docHeight)return new Sz(e.state.doc.length,-1);if(l=e.elementAtHeight(c),r==null)break;if(l.type==kL.Text){if(r<0?l.to<e.viewport.from:l.from>e.viewport.to)break;let t=e.docView.coordsAt(r<0?l.from:l.to,r>0?-1:1);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?l.bottom+t:l.top-t}if(e.viewport.from>=l.to||e.viewport.to<=l.from){if(n)return null;if(l.type==kL.Text){let t=sTe(e,i,l,o,s);return new Sz(t,t==l.from?1:-1)}}if(l.type!=kL.Text)return c<(l.top+l.bottom)/2?new Sz(l.from,1):new Sz(l.to,-1);let u=e.docView.lineAt(l.from,2);return u&&u.length==l.length||(u=e.docView.lineAt(l.from,-2)),new pTe(e,o,s,e.textDirectionAt(l.from)).scanTile(u,l.from)}var pTe=class{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[hR.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[hR.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t,n=!1){let r=0,i=e.length-1,a=new Set,o=this.bidiIn(e[0],e[i]),s,c,l=-1,u=1e9,d;for(;r<i;){let n=i-r,f=r+i>>1;e:if(a.has(f)){for(let e=1;e<n;e++){let t=f+e;if(t>=i&&(t-=n),!a.has(t)){f=t;break e}}break}a.add(f);let p=t(f),m=0;if(p)for(let e=0;e<p.length;e++){let t=p[e];if(!(t.width==0&&p.length>1)){if(t.bottom<this.y)(!s||s.bottom<t.bottom)&&(s=t),m=1;else if(t.top>this.y)(!c||c.top>t.top)&&(c=t),m=-1;else{let e=t.left>this.x?this.x-t.left:t.right<this.x?this.x-t.right:0,n=Math.abs(e);n<u&&(l=f,u=n,d=t),e&&(m=e<0==(this.baseDir==cR.LTR)?-1:1)}}}m==-1&&(!o||this.baseDirAt(e[f],1))?i=f:m==1&&(!o||this.baseDirAt(e[f+1],-1))&&(r=f+1)}if(!d){if(!c&&!s)return{i:0,after:!1};let n=s&&(!c||this.y-s.bottom<c.top-this.y)?s:c;return this.y=(n.top+n.bottom)/2,this.scan(e,t,!0)}if(u&&!n){let{top:n,bottom:r}=d;if(s&&s.bottom>(n+n+r)/3)return this.y=s.bottom-1,this.scan(e,t,!0);if(c&&c.top<(n+r+r)/3)return this.y=c.top+1,this.scan(e,t,!0)}let f=(o?this.dirAt(e[l],1):this.baseDir)==cR.LTR;return{i:l,after:this.x>(d.left+d.right)/2==f}}scanText(e,t){let n=[];for(let r=0;r<e.length;r=LF(e.text,r))n.push(t+r);n.push(t+e.length);let r=this.scan(n,r=>{let i=n[r]-t,a=n[r+1]-t;return nR(e.dom,i,a).getClientRects()});return r.after?new Sz(n[r.i+1],-1):new Sz(n[r.i],1)}scanTile(e,t){if(!e.length)return new Sz(t,1);if(e.children.length==1){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r<e.children.length;r++)n.push(i+=e.children[r].length);let r=this.scan(n,t=>{let n=e.children[t];return n.flags&48?null:(LL(n.dom)?n.dom:nR(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],a=n[r.i];return i.isText()?this.scanText(i,a):i.isComposite()?this.scanTile(i,a):r.after?new Sz(n[r.i+1],-1):new Sz(a,1)}},wz=`￿`,mTe=class{constructor(e, Line truncated
`&&e.lineWrapping&&(r&&=QF.single(r.main.anchor-1,r.main.head-1),n={from:a.from,to:a.to,insert:OF.of([` `])}),n)return Tz(e,n,r,o);if(r&&!Ez(r,a)){let t=!1,n=`select`;return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin==`select`&&(t=!0),n=e.inputState.lastSelectionOrigin,n==`select.pointer`&&(r=fTe(i.facet(qR).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function Tz(e,t,n,r=-1){if(CL.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(CL.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&e.state.sliceDoc(t.from,i.from)==` `)&&t.insert.length==1&&t.insert.lines==2&&rR(e.contentDOM,`Enter`,13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.length<t.to-t.from&&t.to>i.head)&&rR(e.contentDOM,`Backspace`,8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&rR(e.contentDOM,`Delete`,46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,s=()=>o||=xTe(e,t,n);return e.state.facet(DR).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),!0}function xTe(e,t,n){let r,i=e.state,a=i.selection.main,o=-1;if(t.from==t.to&&t.from<a.from||t.from>a.to){let n=t.from<a.from?-1:1,r=n<0?a.from:a.to,s=bz(i.facet(qR).map(t=>t(e)),r,n);t.from==s&&(o=s)}if(o>-1)r={changes:t,selection:QF.cursor(t.from+t.insert.length,-1)};else if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.from<t.from?i.sliceDoc(a.from,t.from):``,o=a.to>t.to?i.sliceDoc(t.to,a.to):``;r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let o=i.changes(t),s=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=a.to+10&&t.to>=a.to-10){let c=e.state.sliceDoc(t.from,t.to),l,u=n&&Zwe(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}}else l=e.state.doc.lineAt(a.head);let d=a.to-t.to;r=i.changeByRange(n=>{if(n.from==a.from&&n.to==a.to)return{changes:o,range:s||n.map(o)};let r=n.to-d,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=l.from&&u<=l.to)return{range:n};let f=i.changes({from:u,to:r,insert:t.insert}),p=n.to-a.to;return{changes:f,range:s?QF.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):n.map(f)}})}else r={changes:o,selection:s&&i.selection.replaceRange(s)}}let s=`input.type`;return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=`.compose`,e.inputState.compositionFirstChange&&(s+=`.start`,e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function STe(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a<i&&e.charCodeAt(a)==t.charCodeAt(a);)a++;if(a==i&&e.length==t.length)return null;let o=e.length,s=t.length;for(;o>0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if(r==`end`){let e=Math.max(0,a-Math.min(o,s));n-=o+e-a}if(o<a&&e.length<t.length){let e=n<=a&&n>=o?a-n:0;a-=e,s=a+(s-o),o=a}else if(s<a){let e=n<=a&&n>=s?a-n:0;a-=e,o=a+(o-s),s=a}return{from:a,toA:o,toB:s}}function CTe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new _Te(n,r)),(i!=n||a!=r)&&t.push(new _Te(i,a))),t}function wTe(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n<0||r<0?null:n==r?QF.create([QF.cursor(r+t,-1)]):QF.single(n+t,r+t)}function Ez(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}var TTe=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText=``,this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.androidSelection=-1,this.androidSelectionNeedsFlush=!1,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,CL.safari&&e.contentDOM.addEventListener(`input`,()=>null),CL.gecko&&rEe(e.contentDOM.ownerDocument)}handleEvent(e){LTe(this.view,e)&&!this.ignoreDuringComposition(e)&&(e.type==`keydown`&&this.keydown(e)||(this.view.updateState==0?this.runHandlers(e.type,e):Promise.resolve().then(()=>this.runHandlers(e.type,e))))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e Line truncated
`))};if((CL.mac||CL.android)&&u.from==a-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute(`autocorrect`)==`off`&&(u={from:o,to:s,insert:OF.of([n.text.replace(`.`,` `)])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);Tz(e,u,QF.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);t<a;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),a=this.toEditorPos(e.rangeEnd);if(i<a){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+` `:t==`Dashed`?`dashed `:t==`Squiggle`?`wavy `:``}${/thin/i.test(r)?1:2}px`;n.push(AL.mark({attributes:{style:e}}).range(i,a))}}}e.dispatch({effects:IR.of(AL.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{let t=zL(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,a,o,s,c)=>{if(n)return;let l=c.length-(a-i);if(r&&a>=r.to){if(r.from==i&&r.to==a&&r.insert.eq(c)){r=this.pendingContextChange=null,t+=l,this.to+=l;return}r=null,this.revertPending(e.state)}if(i+=t,a+=t,a<=this.from)this.from+=l,this.to+=l;else if(i<this.to){if(i<this.from||a>this.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(a),c.toString()),this.to+=l}t+=l}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent(`input.type`)&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},Qz=class e{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.clearAnnouncement=-1,this.contentDOM=document.createElement(`div`Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩-]`,cB),mDe={0:`null`,7:`bell`,8:`backspace`,10:`newline`,11:`vertical tab`,13:`carriage return`,27:`escape`,8203:`zero width space`,8204:`zero width non-joiner`,8205:`zero width joiner`,8206:`left-to-right mark`,8207:`right-to-left mark`,8232:`line separator`,8237:`left-to-right override`,8238:`right-to-left override`,8294:`left-to-right isolate`,8295:`right-to-left isolate`,8297:`pop directional isolate`,8233:`paragraph separator`,65279:`zero width no-break space`,65532:`object replacement`},lB=null;function hDe(){if(lB==null&&typeof document<`u`&&document.body){let e=document.body.style;lB=(e.tabSize??e.MozTabSize)!=null}return lB||!1}var uB=tI.define({combine(e){let t=PI(e,{render:null,specialChars:pDe,addSpecialChars:null});return(t.replaceTabs=!hDe())&&(t.specialChars=RegExp(` |`+t.specialChars.source,cB)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+`|`+t.addSpecialChars.source,cB)),t}});function gDe(e={}){return[uB.of(e),vDe()]}var _De=null;function vDe(){return _De||=BR.fromClass(class{constructor(e){this.view=e,this.decorations=AL.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(uB)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new fDe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=RF(t[0],0);if(a==9){let e=i.lineAt(r),t=n.state.tabSize,a=QI(e.text,t,r-e.from);return AL.replace({widget:new SDe((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=AL.replace({widget:new xDe(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(uB);e.startState.facet(uB)==t?this.decorations=this.decorator.updateDeco(e,this.decorations):(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view))}},{decorations:e=>e.decorations})}var yDe=`•`;function bDe(e){return e>=32?yDe:e==10?`␤`:String.fromCharCode(9216+e)}var xDe=class extends OL{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=bDe(this.code),n=e.state.phrase(`Control character`)+` `+(mDe[this.code]||`0x`+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement(`span`);return i.textContent=t,i.title=n,i.setAttribute(`aria-label`,n),i.className=`cm-specialChar`,i}ignoreEvent(){return!1}},SDe=class extends OL{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement(`span`);return e.textContent=` `,e.className=`cm-tab`,e.style.width=this.width+`px`,e}ignoreEvent(){return!1}};function CDe(){return TDe}var wDe=AL.line({class:`cm-activeLine`}),TDe=BR.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(wDe.range(i.from)),t=i.from)}return AL.set(n)}},{decorations:e=>e.decorations}),dB=2e3;function EDe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>dB||n.off>dB||t.col<0||n.col<0){let o=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=s&&a.push(QF.range(n.from+o,n.to+s))}}else{let o=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=$I(n.text,o,e.tabSize,!0);if(r<0)a.push(QF.cursor(n.to));else{let t=$I(n.text,s,e.tabSize);a.push(QF.range(n.from+r,n.from+t))}}}return a}function DDe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function ODe(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>dB?-1:i==r.length?DDe(e,t.clientX):QI(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function kDe(e,t){let n=ODe(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes)}},get(t,i,a){let o=ODe(e,t);if(!o)return r;let s=EDe(e.state,n,o);return s.length?a?QF.create(s.concat(r.ranges)):QF.create(s):r}}:null}function ADe(e){let t=e?.eventFilter||(e=>e.altKey&&e.button==0);return Qz.mouseSelectionStyle.of((e,n)=>t(n)?kDe(e,n):null)}var jDe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},MDe={style:`cursor: crosshair`};function NDe(e={}){let[t,n]=jDe[e.key||`Alt`],r=BR.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,Qz.contentAttributes.of(e=>e.plugin(r)?.isDown?MDe:null)]}var fB=`-100Line truncated
`:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new VMe(this):new RMe(this)}getCursor(e,t=0,n){let r=e.doc?e:NI.create({doc:e});return n??=r.doc.length,this.regexp?dH(this,r,t,n):uH(this,r,t,n)}},FMe=class{constructor(e){this.spec=e}};function IMe(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function uH(e,t,n,r){let i;return e.wholeWord&&(i=LMe(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=IMe(e.test,t,i)),new aH(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function LMe(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(fH(i,n-a))!=jI.Word||t(pH(i,n-a))!=jI.Word)&&(t(pH(i,r-a))!=jI.Word||t(fH(i,r-a))!=jI.Word))}var RMe=class extends FMe{constructor(e){super(e)}nextMatch(e,t,n){let r=uH(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=uH(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=uH(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=uH(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=uH(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function zMe(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function dH(e,t,n,r){let i;return e.wholeWord&&(i=BMe(t.charCategorizer(t.selection.main.head))),e.test&&(i=zMe(e.test,t,i)),new _Me(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function fH(e,t){return e.slice(LF(e,t,!1),t)}function pH(e,t){return e.slice(t,LF(e,t))}function BMe(e){return(t,n,r)=>!r[0].length||(e(fH(r.input,r.index))!=jI.Word||e(pH(r.input,r.index))!=jI.Word)&&(e(pH(r.input,r.index+r[0].length))!=jI.Word||e(fH(r.input,r.index+r[0].length))!=jI.Word)}var VMe=class extends FMe{nextMatch(e,t,n){let r=dH(this.spec,e,n,e.doc.length).next();return r.done&&(r=dH(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=dH(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=dH(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=dH(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},mH=TI.define(),hH=TI.define(),gH=sI.define({create(e){return new _H(SH(e).create(),null)},update(e,t){for(let n of t.effects)n.is(mH)?e=new _H(n.value.create(),e.panel):n.is(hH)&&(e=new _H(e.query,n.value?xH:null));return e},provide:e=>bB.from(e,e=>e.panel)}),_H=class{constructor(e,t){this.query=e,this.panel=t}},HMe=AL.mark({class:`cm-searchMatch`}),UMe=AL.mark({class:`cm-searchMatch cm-searchMatch-selected`}),WMe=BR.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(gH))}update(e){let t=e.state.field(gH);(t!=e.startState.field(gH)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return AL.none;let{view:n}=this,r=new VI;for(let t=0,i=n.visibleRanges,a=i.length;t<a;t++){let{from:o,to:s}=i[t];for(;t<a-1&&s>i[t+1].from-500;)s=i[++t].to;e.highlight(n.state,o,s,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?UMe:HMe)})}return r.finish()}},{decorations:e=>e.decorations});function vH(e){return t=>{let n=t.state.field(gH,!1);return n&&n.query.spec.valid?e(t,n):ZMe(t)}}var yH=vH((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=QF.single(r.from,r.to),a=e.state.facet(lH);return e.dispatch({selection:i,effects:[EH(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),XMe(e),!0}),bH=vH((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a= Line truncated
`)}var c={extraLines:2,tabSize:4};return function(e,t,r,i){i=a({},c,i);var l=e.split(/\r\n?|\n|\f/),u=Math.max(1,t-i.extraLines)-1,d=Math.min(t+i.extraLines,l.length),f=String(d).length;return[s(l,u,t,f,i),n(` `,o(l[t-1].substring(0,r-1),t,f,i).length)+`^`,s(l,t,d,f,i)].filter(Boolean).join(`
`)}})}),o=Error().stack,s=(function(e){var t=Object.create(SyntaxError.prototype);return Object.assign(t,e,{name:`SyntaxError`}),Object.defineProperty(t,"stack",{get:function(){return o?o.replace(/^(.+\n){1,3}/,String(t)+`
`):``}}),t}),c=(function(e,t,n,r,i){throw s({message:r?e+`
`+a(t,r,i):e,rawMessage:e,source:n,line:r,column:i})}),l={unexpectedEnd:function(){return`Unexpected end of input`},unexpectedToken:function(e){var t=[...arguments].slice(1);return`Unexpected token <`+e+`> at `+t.filter(Boolean).join(`:`)}},u={unexpectedSymbol:function(e){var t=[...arguments].slice(1);return`Unexpected symbol <`+e+`> at `+t.filter(Boolean).join(`:`)}},d={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},f={"{":d.LEFT_BRACE,"}":d.RIGHT_BRACE,"[":d.LEFT_BRACKET,"]":d.RIGHT_BRACKET,":":d.COLON,",":d.COMMA},p={true:d.TRUE,false:d.FALSE,null:d.NULL},m={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},h={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},g={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function _(e){return e>=`1`&&e<=`9`}function v(e){return e>=`0`&&e<=`9`}function y(e){return v(e)||e>=`a`&&e<=`f`||e>=`A`&&e<=`F`}function b(e){return e===`e`||e===`E`}function x(e,t,n,r){var i=e.charAt(t);if(i===`\r`)t++,n++,r=1,e.charAt(t)===`
`&&t++;else if(i===`
`)t++,n++,r=1;else if(i===` `||i===` `)t++,r++;else return null;return{index:t,line:n,column:r}}function S(e,t,n,r){var i=e.charAt(t);return i in f?{type:f[i],line:n,column:r+1,index:t+1,value:null}:null}function C(e,t,n,r){for(var i in p)if(p.hasOwnProperty(i)&&e.substr(t,i.length)===i)return{type:p[i],line:n,column:r+i.length,index:t+i.length,value:i};return null}function w(e,t,n,r){for(var i=t,a=m._START_;t<e.length;){var o=e.charAt(t);switch(a){case m._START_:if(o===`"`)t++,a=m.START_QUOTE_OR_CHAR;else return null;break;case m.START_QUOTE_OR_CHAR:if(o===`\\`)t++,a=m.ESCAPE;else if(o===`"`)return t++,{type:d.STRING,line:n,column:r+t-i,index:t,value:e.slice(i,t)};else t++;break;case m.ESCAPE:if(o in h){if(t++,o===`u`)for(var s=0;s<4;s++){var c=e.charAt(t);if(c&&y(c))t++;else return null}a=m.START_QUOTE_OR_CHAR}else return null}}}function T(e,t,n,r){var i=t,a=t,o=g._START_;e:for(;t<e.length;){var s=e.charAt(t);switch(o){case g._START_:if(s===`-`)o=g.MINUS;else if(s===`0`)a=t+1,o=g.ZERO;else if(_(s))a=t+1,o=g.DIGIT;else return null;break;case g.MINUS:if(s===`0`)a=t+1,o=g.ZERO;else if(_(s))a=t+1,o=g.DIGIT;else return null;break;case g.ZERO:if(s===`.`)o=g.POINT;else if(b(s))o=g.EXP;else break e;break;case g.DIGIT:if(v(s))a=t+1;else if(s===`.`)o=g.POINT;else if(b(s))o=g.EXP;else break e;break;case g.POINT:if(v(s))a=t+1,o=g.DIGIT_FRACTION;else break e;break;case g.DIGIT_FRACTION:if(v(s))a=t+1;else if(b(s))o=g.EXP;else break e;break;case g.EXP:if(s===`+`||s===`-`)o=g.EXP_DIGIT_OR_SIGN;else if(v(s))a=t+1,o=g.EXP_DIGIT_OR_SIGN;else break e;break;case g.EXP_DIGIT_OR_SIGN:if(v(s))a=t+1;else break e}t++}return a>0?{type:d.NUMBER,line:n,column:r+a-i,index:a,value:e.slice(i,a)}:null}var E=function(e,t){for(var n=1,a=1,o=0,s=[];o<e.length;){var l=[e,o,n,a],d=x.apply(void 0,l);if(d)o=d.index,n=d.line,a=d.column;else{var f=S.apply(void 0,l)||C.apply(void 0,l)||w.apply(void 0,l)||T.apply(void 0,l);if(f){var p={type:f.type,value:f.value,loc:i(n,a,o,f.line,f.column,f.index,t.source)};s.push(p),o=f.index,n=f.line,a=f.column}else c(u.unexpectedSymbol(r(e,o,o+1),t.source,n,a),e,t.source,n,a)}}return s},D={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},O={_START_:0,KEY:1,COLON:2},k={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},A={loc:!0,source:null};function ee(e,t,n){var r=t.length>0?t[t.length-1].loc.end:{line:1,column:1};c(l.unexpectedEnd(),e,n.source,r.line,r.column)}function j(e){for(var t=0,n=0;n<4;n++)t=t*16+parseInt(e[n],16);return String.fromCharCode(t)}var te={b:`\b`,f:`\f`,n:`
`,r:`\r`,t:` `},ne=[`"`,`\\`,`/`];function M(e){for(var t=``,n=0;n<e.length;n++){var r=e.charAt(n);if(r===`\\`){n++;var i=e.charAt(n);if(i===`u`)t+=j(e.substr(n+1,4)),n+=4;else if(ne.indexOf(i)!==-1)t+=i;else if(i in te)t+=te[i];else break}else t+=r}return t}function re(e,t,n,a){for(var o=void 0,s={type:`Object`,children:[]},u=D._START_;n<t.length;){var f=t[n];switch(u){case D._START_:if(f.type===d.LEFT_BRACE)o=f,u=D.OPEN_OBJECT,n++;else return null;break;case D.OPEN_OBJECT:if(f.type===d.RIGHT_BRACE)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};var p=ie(e,t,n,a);s.children.push(p.value),u=D.PROPERTY,n=p.index;break;case D.PROPERTY:if(f.type===d.RIGHT_BRACE)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};f.type===d.COMMA?(u=D.COMMA,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case D.COMMA:var m=ie(e,t,n,a);m?(n=m.index,s.children.push(m.value),u=D.PROPERTY):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column)}}ee(e,t,a)}function ie(e,t,n,a){for(var o=void 0,s={type:`Property`,key:null,value:null},u=O._START_;n<t.length;){var f=t[n];switch(u){case O._START_:if(f.type===d.STRING){var p={type:`Identifier`,value:M(e.slice(f.loc.start.offset+1,f.loc.end.offset-1)),raw:f.value};a.loc&&(p.loc=f.loc),o=f,s.key=p,u=O.KEY,n++}else return null;break;case O.KEY:f.type===d.COLON?(u=O.COLON,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case O.COLON:var m=se(e,t,n,a);return s.value=m.value,a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,m.value.loc.end.line,m.value.loc.end.column,m.value.loc.end.offset,a.source)),{value:s,index:m.index}}}}function ae(e,t,n,a){for(var o=void 0,s={type:`Array`,children:[]},u=k._START_,f=void 0;n<t.length;)switch(f=t[n],u){case k._START_:if(f.type===d.LEFT_BRACKET)o=f,u=k.OPEN_ARRAY,n++;else return null;break;case k.OPEN_ARRAY:if(f.type===d.RIGHT_BRACKET)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};var p=se(e,t,n,a);n=p.index,s.children.push(p.value),u=k.VALUE;break;case k.VALUE:if(f.type===d.RIGHT_BRACKET)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};f.type===d.COMMA?(u=k.COMMA,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case k.COMMA:var m=se(e,t,n,a);n=m.index,s.children.push(m.value),u=k.VALUE}ee(e,t,a)}function oe(e,t,n,r){var i=t[n],a=null;switch(i.type){case d.STRING:a=M(e.slice(i.loc.start.offset+1,i.loc.end.offset-1));break;case d.NUMBER:a=Number(i.value);break;case d.TRUE:a=!0;break;case d.FALSE:a=!1;break;case d.NULL:a=null;break;default:return null}var o={type:`Literal`,value:a,raw:i.value};return r.loc&&(o.loc=i.loc),{value:o,index:n+1}}function se(e,t,n,i){var a=t[n],o=oe.apply(void 0,arguments)||re.apply(void 0,arguments)||ae.apply(void 0,arguments);if(o)return o;c(l.unexpectedToken(r(e,a.loc.start.offset,a.loc.end.offset),i.source,a.loc.start.line,a.loc.start.column),e,i.source,a.loc.start.line,a.loc.start.column)}return(function(e,t){t=Object.assign({},A,t);var n=E(e,t);n.length===0&&ee(e,n,t);var i=se(e,n,0,t);if(i.index===n.length)return i.value;var a=n[i.index];c(l.unexpectedToken(r(e,a.loc.start.offset,a.loc.end.offset),t.source,a.loc.start.line,a.loc.start.column),e,t.source,a.loc.start.line,a.loc.start.column)})}))}))(),1);function dU(){var e=`/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts`,t=`ea54e84c59655b08b790cad163b45126d1fe9ab0`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts`,statementMap:{0:{start:{line:2,column:1},end:{line:4,column:2}},1:{start:{line:3,column:2},end:{line:3,column:19}},2:{start:{line:5,column:1},end:{line:7,column:2}},3:{start:{line:6,column:2},end:{line:6,column:14}},4:{start:{line:8,column:1},end:{line:10,column:2}},5:{start:{line:9,column:2},end:{line:9,column:19}},6:{start:{line:11,column:13},end:{line:11,column:20}},7:{start:{line:12,column:1},end:{line:14,column:2}},8:{start:{line:13,column:2},end:{line:13,column:68}},9:{start:{line:15,column:17},end:{line:17,column:3}},10:{start:{line:16,column:2},end:{line:16,column:98}},11:{start:{line:18,column:1},end:{line:18,column:58}}},fnMap:{0:{name:`jsonPathToPosition`,decl:{start:{line:1,column Line truncated
`,r:`\r`,t:` `},ne=[`"`,`\\`,`/`];function M(e){for(var t=``,n=0;n<e.length;n++){var r=e.charAt(n);if(r===`\\`){n++;var i=e.charAt(n);if(i===`u`)t+=j(e.substr(n+1,4)),n+=4;else if(ne.indexOf(i)!==-1)t+=i;else if(i in te)t+=te[i];else break}else t+=r}return t}function re(e,t,n,a){for(var o=void 0,s={type:`Object`,children:[]},u=D._START_;n<t.length;){var f=t[n];switch(u){case D._START_:if(f.type===d.LEFT_BRACE)o=f,u=D.OPEN_OBJECT,n++;else return null;break;case D.OPEN_OBJECT:if(f.type===d.RIGHT_BRACE)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};var p=ie(e,t,n,a);s.children.push(p.value),u=D.PROPERTY,n=p.index;break;case D.PROPERTY:if(f.type===d.RIGHT_BRACE)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};f.type===d.COMMA?(u=D.COMMA,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case D.COMMA:var m=ie(e,t,n,a);m?(n=m.index,s.children.push(m.value),u=D.PROPERTY):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column)}}ee(e,t,a)}function ie(e,t,n,a){for(var o=void 0,s={type:`Property`,key:null,value:null},u=O._START_;n<t.length;){var f=t[n];switch(u){case O._START_:if(f.type===d.STRING){var p={type:`Identifier`,value:M(e.slice(f.loc.start.offset+1,f.loc.end.offset-1)),raw:f.value};a.loc&&(p.loc=f.loc),o=f,s.key=p,u=O.KEY,n++}else return null;break;case O.KEY:f.type===d.COLON?(u=O.COLON,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case O.COLON:var m=se(e,t,n,a);return s.value=m.value,a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,m.value.loc.end.line,m.value.loc.end.column,m.value.loc.end.offset,a.source)),{value:s,index:m.index}}}}function ae(e,t,n,a){for(var o=void 0,s={type:`Array`,children:[]},u=k._START_,f=void 0;n<t.length;)switch(f=t[n],u){case k._START_:if(f.type===d.LEFT_BRACKET)o=f,u=k.OPEN_ARRAY,n++;else return null;break;case k.OPEN_ARRAY:if(f.type===d.RIGHT_BRACKET)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};var p=se(e,t,n,a);n=p.index,s.children.push(p.value),u=k.VALUE;break;case k.VALUE:if(f.type===d.RIGHT_BRACKET)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};f.type===d.COMMA?(u=k.COMMA,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case k.COMMA:var m=se(e,t,n,a);n=m.index,s.children.push(m.value),u=k.VALUE}ee(e,t,a)}function oe(e,t,n,r){var i=t[n],a=null;switch(i.type){case d.STRING:a=M(e.slice(i.loc.start.offset+1,i.loc.end.offset-1));break;case d.NUMBER:a=Number(i.value);break;case d.TRUE:a=!0;break;case d.FALSE:a=!1;break;case d.NULL:a=null;break;default:return null}var o={type:`Literal`,value:a,raw:i.value};return r.loc&&(o.loc=i.loc),{value:o,index:n+1}}function se(e,t,n,i){var a=t[n],o=oe.apply(void 0,arguments)||re.apply(void 0,arguments)||ae.apply(void 0,arguments);if(o)return o;c(l.unexpectedToken(r(e,a.loc.start.offset,a.loc.end.offset),i.source,a.loc.start.line,a.loc.start.column),e,i.source,a.loc.start.line,a.loc.start.column)}return(function(e,t){t=Object.assign({},A,t);var n=E(e,t);n.length===0&&ee(e,n,t);var i=se(e,n,0,t);if(i.index===n.length)return i.value;var a=n[i.index];c(l.unexpectedToken(r(e,a.loc.start.offset,a.loc.end.offset),t.source,a.loc.start.line,a.loc.start.column),e,t.source,a.loc.start.line,a.loc.start.column)})}))}))(),1);function uU(){var e=`/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts`,t=`ea54e84c59655b08b790cad163b45126d1fe9ab0`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts`,statementMap:{0:{start:{line:2,column:1},end:{line:4,column:2}},1:{start:{line:3,column:2},end:{line:3,column:19}},2:{start:{line:5,column:1},end:{line:7,column:2}},3:{start:{line:6,column:2},end:{line:6,column:14}},4:{start:{line:8,column:1},end:{line:10,column:2}},5:{start:{line:9,column:2},end:{line:9,column:19}},6:{start:{line:11,column:13},end:{line:11,column:20}},7:{start:{line:12,column:1},end:{line:14,column:2}},8:{start:{line:13,column:2},end:{line:13,column:68}},9:{start:{line:15,column:17},end:{line:17,column:3}},10:{start:{line:16,column:2},end:{line:16,column:98}},11:{start:{line:18,column:1},end:{line:18,column:58}}},fnMap:{0:{name:`jsonPathToPosition`,decl:{start:{line:1,column Line truncated
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},sIe={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function cIe(e){let{announcements:t=sIe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=oIe}=e,{announce:a,announcement:o}=nIe(),s=MU(`DndLiveRegion`),[c,l]=(0,m.useState)(!1);if((0,m.useEffect)(()=>{l(!0)},[]),iIe((0,m.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=m.createElement(m.Fragment,null,m.createElement(eIe,{id:r,value:i.draggable}),m.createElement(tIe,{id:s,announcement:o}));return n?(0,_U.createPortal)(u,n):u}var RU;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(RU||={});function zU(){}function lIe(e,t){return(0,m.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function uIe(){var e=[...arguments];return(0,m.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var BU=Object.freeze({x:0,y:0});function dIe(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function fIe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function pIe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function mIe(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function hIe(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var gIe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=hIe(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=dIe(hIe(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(fIe)};function _Ie(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var vIe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=_Ie(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(pIe)};function yIe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function bIe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:BU}function xIe(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var SIe=xIe(1);function CIe(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function wIe(e,t,n){let r=CIe(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var TIe={ignoreTransform:!1};function VU(e,t){t===void 0&&(t=TIe);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=xU(e).getComputedStyle(e);t&&(n=wIe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function EIe(e){return VU(e,{ignoreTransform:!0})}function DIe(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function OIe(e,t){return t===void 0&&(t=xU(e).getComputedStyle(e)),t.position===`fixed`}function kIe(e,t){t===void 0&&(t=xU(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function HU(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(SU(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!CU(i)||KFe(i)||n.includes(i))return n;let a=xU(e).getComputedStyle(i);return i!==e&&kIe(i,a)&&n.push(i),OIe(i,a)?n:r(i.parentNode)}return e?r(e):n}function AIe(e){let[t]=HU(e,1);return t??null}function UU(e){return!vU||!e?null:yU(e)?e:bU(e)?SU(e)||e===wU(e).scrollingElem Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function zRe(e,t,n){return(t=KRe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BRe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function VRe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function URe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HRe(Object(n),!0).forEach(function(t){zRe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HRe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WRe(e){return LRe(e)||BRe(e)||qRe(e)||VRe()}function GRe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function KRe(e){var t=GRe(e,`string`);return typeof t==`symbol`?t:t+``}function qRe(e,t){if(e){if(typeof e==`string`)return FW(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FW(e,t):void 0}}var IW,JRe,YRe,LW,XRe,ZRe,RW,zW,BW,QRe,$Re,eze=o((()=>{FRe(),IW={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==IW.getActiveTrap(e)&&IW.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),IW.unpauseTrap(e)},pauseTrap:function(e){IW.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=IW.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},JRe=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},YRe=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},LW=function(e){return e?.key===`Tab`||e?.keyCode===9},XRe=function(e){return LW(e)&&!e.shiftKey},ZRe=function(e){return LW(e)&&e.shiftKey},RW=function(e){return setTimeout(e,0)},zW=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},BW=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},QRe=[],$Re=function(e,t){var n=t?.document||document,r=t?.trapStack||QRe,i=URe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:XRe,isKeyBackward:ZRe},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,WRe(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!PW(e,i.tabbableOptions)){if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=jW(e,i.tabbableOptions),n=MW(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return NW(e)}),s=n.slice().reverse().find(function(e){return NW(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return TW(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return NW(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return NW(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable Line truncated
`,Vze=`/`,Hze=`*`,sG=``,Uze=`comment`,Wze=`declaration`;function Gze(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(Pze);t&&(n+=t.length);var i=e.lastIndexOf(Bze);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Fze)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(Vze==e.charAt(0)&&Hze==e.charAt(1)){for(var n=2;sG!=e.charAt(n)&&(Hze!=e.charAt(n)||Vze!=e.charAt(n+1));)++n;if(n+=2,sG===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Uze,comment:o})}}function f(){var e=a(),t=c(Ize);if(t){if(d(),!c(Lze))return s(`property missing ':'`);var n=c(Rze),r=e({type:Wze,property:t[0].replace(Nze,sG).trim(),value:n?n[0].replace(Nze,sG).trim():sG});return c(zze),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function Kze(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=Gze(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var qze=Jze(`end`),cG=Jze(`start`);function Jze(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Yze(e){let t=cG(e),n=qze(e);if(t&&n)return{start:t,end:n}}function lG(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Xze(e.position):`start`in e||`end`in e?Xze(e):`line`in e||`column`in e?uG(e):``}function uG(e){return Zze(e&&e.line)+`:`+Zze(e&&e.column)}function Xze(e){return uG(e&&e.start)+`-`+uG(e&&e.end)}function Zze(e){return e&&typeof e==`number`?e:1}var dG=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=lG(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};dG.prototype.file=``,dG.prototype.name=``,dG.prototype.reason=``,dG.prototype.message=``,dG.prototype.stack=``,dG.prototype.column=void 0,dG.prototype.line=void 0,dG.prototype.ancestors=void 0,dG.prototype.cause=void 0,dG.prototype.fatal=void 0,dG.prototype.place=void 0,dG.prototype.ruleId=void 0,dG.prototype.source=void 0;var fG={}.hasOwnProperty,Qze=new Map,$ze=/[A-Z]/g,eBe=/-([a-z])/g,tBe=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),nBe=new Set([`td`,`th`]),rBe=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function iBe(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=mBe(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=pBe(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?oG:jze,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=aBe(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function aBe(e,t,n){if(t.type===`element`)return oBe(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return sBe(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return lBe(e,t,n);if(t.type===`mdxjsE Line truncated
`},ZFe={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function QFe(e){let{announcements:t=ZFe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=XFe}=e,{announce:a,announcement:o}=KFe(),s=jU(`DndLiveRegion`),[c,l]=(0,m.useState)(!1);if((0,m.useEffect)(()=>{l(!0)},[]),JFe((0,m.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=m.createElement(m.Fragment,null,m.createElement(WFe,{id:r,value:i.draggable}),m.createElement(GFe,{id:s,announcement:o}));return n?(0,gU.createPortal)(u,n):u}var LU;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(LU||={});function RU(){}function $Fe(e,t){return(0,m.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function eIe(){var e=[...arguments];return(0,m.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var zU=Object.freeze({x:0,y:0});function tIe(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function nIe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function rIe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function iIe(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function aIe(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var oIe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=aIe(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=tIe(aIe(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(nIe)};function sIe(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var cIe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=sIe(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(rIe)};function lIe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function uIe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:zU}function dIe(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var fIe=dIe(1);function pIe(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function mIe(e,t,n){let r=pIe(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var hIe={ignoreTransform:!1};function BU(e,t){t===void 0&&(t=hIe);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=bU(e).getComputedStyle(e);t&&(n=mIe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function gIe(e){return BU(e,{ignoreTransform:!0})}function _Ie(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function vIe(e,t){return t===void 0&&(t=bU(e).getComputedStyle(e)),t.position===`fixed`}function yIe(e,t){t===void 0&&(t=bU(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function VU(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(xU(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!SU(i)||IFe(i)||n.includes(i))return n;let a=bU(e).getComputedStyle(i);return i!==e&&yIe(i,a)&&n.push(i),vIe(i,a)?n:r(i.parentNode)}return e?r(e):n}function bIe(e){let[t]=VU(e,1);return t??null}function HU(e){return!_U||!e?null:vU(e)?e:yU(e)?xU(e)||e===CU(e).scrollingElem Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function kRe(e,t,n){return(t=IRe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ARe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function jRe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NRe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?MRe(Object(n),!0).forEach(function(t){kRe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MRe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PRe(e){return DRe(e)||ARe(e)||LRe(e)||jRe()}function FRe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IRe(e){var t=FRe(e,`string`);return typeof t==`symbol`?t:t+``}function LRe(e,t){if(e){if(typeof e==`string`)return PW(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PW(e,t):void 0}}var FW,RRe,zRe,IW,BRe,VRe,LW,RW,zW,HRe,URe,WRe=o((()=>{TRe(),FW={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==FW.getActiveTrap(e)&&FW.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),FW.unpauseTrap(e)},pauseTrap:function(e){FW.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=FW.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},RRe=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},zRe=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},IW=function(e){return e?.key===`Tab`||e?.keyCode===9},BRe=function(e){return IW(e)&&!e.shiftKey},VRe=function(e){return IW(e)&&e.shiftKey},LW=function(e){return setTimeout(e,0)},RW=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},zW=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},HRe=[],URe=function(e,t){var n=t?.document||document,r=t?.trapStack||HRe,i=NRe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:BRe,isKeyBackward:VRe},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,PRe(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!NW(e,i.tabbableOptions)){if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=AW(e,i.tabbableOptions),n=jW(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return MW(e)}),s=n.slice().reverse().find(function(e){return MW(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return wW(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return MW(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return MW(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable Line truncated
`,jze=`/`,Mze=`*`,oG=``,Nze=`comment`,Pze=`declaration`;function Fze(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(wze);t&&(n+=t.length);var i=e.lastIndexOf(Aze);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Tze)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(jze==e.charAt(0)&&Mze==e.charAt(1)){for(var n=2;oG!=e.charAt(n)&&(Mze!=e.charAt(n)||jze!=e.charAt(n+1));)++n;if(n+=2,oG===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Nze,comment:o})}}function f(){var e=a(),t=c(Eze);if(t){if(d(),!c(Dze))return s(`property missing ':'`);var n=c(Oze),r=e({type:Pze,property:t[0].replace(Cze,oG).trim(),value:n?n[0].replace(Cze,oG).trim():oG});return c(kze),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function Ize(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=Fze(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var Lze=Rze(`end`),sG=Rze(`start`);function Rze(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function zze(e){let t=sG(e),n=Lze(e);if(t&&n)return{start:t,end:n}}function cG(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Bze(e.position):`start`in e||`end`in e?Bze(e):`line`in e||`column`in e?lG(e):``}function lG(e){return Vze(e&&e.line)+`:`+Vze(e&&e.column)}function Bze(e){return lG(e&&e.start)+`-`+lG(e&&e.end)}function Vze(e){return e&&typeof e==`number`?e:1}var uG=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=cG(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};uG.prototype.file=``,uG.prototype.name=``,uG.prototype.reason=``,uG.prototype.message=``,uG.prototype.stack=``,uG.prototype.column=void 0,uG.prototype.line=void 0,uG.prototype.ancestors=void 0,uG.prototype.cause=void 0,uG.prototype.fatal=void 0,uG.prototype.place=void 0,uG.prototype.ruleId=void 0,uG.prototype.source=void 0;var dG={}.hasOwnProperty,Hze=new Map,Uze=/[A-Z]/g,Wze=/-([a-z])/g,Gze=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Kze=new Set([`td`,`th`]),qze=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Jze(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=iBe(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=rBe(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?aG:xze,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Yze(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Yze(e,t,n){if(t.type===`element`)return Xze(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Zze(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return $ze(e,t,n);if(t.type===`mdxjsE Line truncated
`;break;case-3:o=`\r
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function BHe(e){let t={constructs:jBe([DHe,...(e||{}).extensions||[]]),content:n(VBe),defined:[],document:n(WBe),flow:n(yHe),lazy:{},string:n(SHe),text:n(CHe)};return t;function n(e){return n;function n(n){return LHe(t,e,n)}}}function VHe(e){for(;!bVe(e););return e}var HHe=/[\0\t\n\r]/g;function UHe(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){HHe.lastIndex=c;let n=HHe.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var WHe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function GHe(e){return e.replace(WHe,KHe)}function KHe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return PBe(n.slice(t?2:1),t?16:10)}return _G(n)||e}var qHe={}.hasOwnProperty;function JHe(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),YHe(n)(VHe(BHe(n).document().write(UHe()(e,t,!0))))}function YHe(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(Ce),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(ye),blockQuote:o(me),characterEscape:E,characterReference:E,codeFenced:o(he),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(he,s),codeText:o(ge,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(_e),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ve),hardBreakEscape:o(be),hardBreakTrailing:o(be),htmlFlow:o(xe,s),htmlFlowData:E,htmlText:o(xe,s),htmlTextData:E,image:o(Se),label:s,link:o(Ce),listItem:o(Te),listItemValue:p,listOrdered:o(we,f),listUnordered:o(we),paragraph:o(Ee),reference:se,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ye),strong:o(De),thematicBreak:o(ke)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:pe,autolinkProtocol:fe,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:ue,characterReference:de,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(j),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(ee),htmlTextData:D,image:l(ne),label:re,labelText:M,lineEnding:O,link:l(te),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ce,resourceDestinationString:ie,resourceTitleString:ae,resource:oe,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};XHe(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),qHe.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||QHe).call(o,void 0,e[0])}for(r.position={start:UG(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:UG(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineLine truncated
`}]}function nUe(e,t){let n=t.value?t.value+`
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function rUe(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iUe(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aUe(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=kG(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function oUe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sUe(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function cUe(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function lUe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cUe(e,t);let i={src:kG(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function uUe(e,t){let n={src:kG(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function dUe(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function fUe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cUe(e,t);let i={href:kG(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function pUe(e,t){let n={href:kG(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mUe(e,t,n){let r=e.all(t),i=n?hUe(n):gUe(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function AHe(e){let t={constructs:xBe([_He,...(e||{}).extensions||[]]),content:n(jBe),defined:[],document:n(PBe),flow:n(lHe),lazy:{},string:n(fHe),text:n(pHe)};return t;function n(e){return n;function n(n){return DHe(t,e,n)}}}function jHe(e){for(;!uVe(e););return e}var MHe=/[\0\t\n\r]/g;function NHe(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){MHe.lastIndex=c;let n=MHe.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var PHe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function FHe(e){return e.replace(PHe,IHe)}function IHe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return wBe(n.slice(t?2:1),t?16:10)}return gG(n)||e}var LHe={}.hasOwnProperty;function RHe(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),zHe(n)(jHe(AHe(n).document().write(NHe()(e,t,!0))))}function zHe(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(Ce),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(ye),blockQuote:o(me),characterEscape:E,characterReference:E,codeFenced:o(he),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(he,s),codeText:o(ge,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(_e),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ve),hardBreakEscape:o(be),hardBreakTrailing:o(be),htmlFlow:o(xe,s),htmlFlowData:E,htmlText:o(xe,s),htmlTextData:E,image:o(Se),label:s,link:o(Ce),listItem:o(Te),listItemValue:p,listOrdered:o(we,f),listUnordered:o(we),paragraph:o(Ee),reference:se,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ye),strong:o(De),thematicBreak:o(ke)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:pe,autolinkProtocol:fe,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:ue,characterReference:de,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(j),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(ee),htmlTextData:D,image:l(ne),label:re,labelText:M,lineEnding:O,link:l(te),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ce,resourceDestinationString:ie,resourceTitleString:ae,resource:oe,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};BHe(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),LHe.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||HHe).call(o,void 0,e[0])}for(r.position={start:HG(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:HG(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineLine truncated
`}]}function KHe(e,t){let n=t.value?t.value+`
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function qHe(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JHe(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YHe(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=OG(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function XHe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ZHe(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function QHe(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function $He(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return QHe(e,t);let i={src:OG(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function eUe(e,t){let n={src:OG(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function tUe(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function nUe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return QHe(e,t);let i={href:OG(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function rUe(e,t){let n={href:OG(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function iUe(e,t,n){let r=e.all(t),i=n?aUe(n):oUe(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function hUe(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=gUe(n[r])}return t}function gUe(e){return e.spread??e.children.length>1}function _Ue(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function vUe(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yUe(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function bUe(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xUe(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=cG(t.children[1]),o=qze(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function SUe(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function CUe(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var wUe=9,TUe=32;function EUe(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(DUe(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(DUe(t.slice(i),i>0,!1)),a.join(``)}function DUe(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===wUe||t===TUe;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===wUe||t===TUe;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function OUe(e,t){let n={type:`text`,value:EUe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function kUe(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var AUe={blockquote:eUe,break:tUe,code:nUe,delete:rUe,emphasis:iUe,footnoteReference:aUe,heading:oUe,html:sUe,imageReference:lUe,image:uUe,inlineCode:dUe,linkReference:fUe,link:pUe,listItem:mUe,list:_Ue,paragraph:vUe,root:yUe,strong:bUe,table:xUe,tableCell:CUe,tableRow:SUe,text:OUe,thematicBreak:kUe,toml:WG,yaml:WG,definition:WG,footnoteDefinition:WG};function WG(){}var{defineProperty:jUe}=Object,MUe=typeof self==`object`?self:globalThis,NUe=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new MUe[e](t)},PUe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?jUe(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof MUe[e]==`function`?NUe(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(NUe(a,o),i)};return r},FUe=e=>PUe(new Map,e)(0),GG=``,{toString:IUe}={},{keys:LUe,is:RUe}=Object,KG=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=IUe.call(e).slice(8,-1);switch(n){case`Array`:return[1,GG];case`Object`:return[2,GG];case`Date`:return[3,GG];case`RegExp`:return[4,GG];case`Map`:return[5,GG];case`Set`:return[6,GG];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},qG=([e,t])=>e===0&&(t===`function`||t===`symbol`),zUe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=KG(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&RUe(o Line truncated
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function aUe(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=oUe(n[r])}return t}function oUe(e){return e.spread??e.children.length>1}function sUe(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function cUe(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lUe(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function uUe(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dUe(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=sG(t.children[1]),o=Lze(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function fUe(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function pUe(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var mUe=9,hUe=32;function gUe(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(_Ue(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(_Ue(t.slice(i),i>0,!1)),a.join(``)}function _Ue(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===mUe||t===hUe;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===mUe||t===hUe;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function vUe(e,t){let n={type:`text`,value:gUe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function yUe(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var bUe={blockquote:WHe,break:GHe,code:KHe,delete:qHe,emphasis:JHe,footnoteReference:YHe,heading:XHe,html:ZHe,imageReference:$He,image:eUe,inlineCode:tUe,linkReference:nUe,link:rUe,listItem:iUe,list:sUe,paragraph:cUe,root:lUe,strong:uUe,table:dUe,tableCell:pUe,tableRow:fUe,text:vUe,thematicBreak:yUe,toml:UG,yaml:UG,definition:UG,footnoteDefinition:UG};function UG(){}var{defineProperty:xUe}=Object,SUe=typeof self==`object`?self:globalThis,CUe=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new SUe[e](t)},wUe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?xUe(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof SUe[e]==`function`?CUe(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(CUe(a,o),i)};return r},TUe=e=>wUe(new Map,e)(0),WG=``,{toString:EUe}={},{keys:DUe,is:OUe}=Object,GG=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=EUe.call(e).slice(8,-1);switch(n){case`Array`:return[1,WG];case`Object`:return[2,WG];case`Date`:return[3,WG];case`RegExp`:return[4,WG];case`Map`:return[5,WG];case`Set`:return[6,WG];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},KG=([e,t])=>e===0&&(t===`function`||t===`symbol`),kUe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=GG(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&OUe(o Line truncated
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
`}]}}var WUe=(function(e){if(e==null)return JUe;if(typeof e==`function`)return YG(e);if(typeof e==`object`)return Array.isArray(e)?GUe(e):KUe(e);if(typeof e==`string`)return qUe(e);throw Error(`Expected function, string, or object as test`)});function GUe(e){let t=[],n=-1;for(;++n<e.length;)t[n]=WUe(e[n]);return YG(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function KUe(e){let t=e;return YG(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function qUe(e){return YG(t);function t(t){return t&&t.type===e}}function YG(e){return t;function t(t,n,r){return!!(YUe(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function JUe(){return!0}function YUe(e){return typeof e==`object`&&!!e&&`type`in e}function XUe(e){return e}var ZUe=[];function QUe(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=WUe(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+XUe(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=ZUe;if(s&&r&&(o=$Ue(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=d(t.children[e],e,r)();if(n[0]===!1)return n;e=typeof n[1]==`number`?n[1]:e+u}}}if(c&&r){let r=$Ue(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function $Ue(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?ZUe:[e]}function eWe(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?QUe(e,i,XG(a),o):QUe(e,i,tWe(a),o)}function tWe(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?XG(e.enter):e.enter,exit:typeof e.exit==`function`?XG(e.exit):e.exit}}function XG(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var ZG={}.hasOwnProperty,nWe={};function rWe(e,t){let n=t||nWe,r=new Map,i=new Map,a={all:s,applyData:aWe,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...AUe,...n.handlers},one:o,options:n,patch:iWe,wrap:sWe};return eWe(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(ZG.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=JG(n);return r.children=a.all(e),r}return JG(e)}return(a.options.unknownHandler||oWe)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=cWe(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=cWe(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function iWe(e,t){e.position&&(t.position=Yze(e))}function aWe(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,JG(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function oWe(e,t){let n=t.data||{},r=`value`in t&&!(ZG.call(n,`hProperties`)||ZG.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sWe(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
`}]}}var PUe=(function(e){if(e==null)return RUe;if(typeof e==`function`)return JG(e);if(typeof e==`object`)return Array.isArray(e)?FUe(e):IUe(e);if(typeof e==`string`)return LUe(e);throw Error(`Expected function, string, or object as test`)});function FUe(e){let t=[],n=-1;for(;++n<e.length;)t[n]=PUe(e[n]);return JG(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function IUe(e){let t=e;return JG(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function LUe(e){return JG(t);function t(t){return t&&t.type===e}}function JG(e){return t;function t(t,n,r){return!!(zUe(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function RUe(){return!0}function zUe(e){return typeof e==`object`&&!!e&&`type`in e}function BUe(e){return e}var VUe=[];function HUe(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=PUe(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+BUe(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=VUe;if(s&&r&&(o=UUe(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=d(t.children[e],e,r)();if(n[0]===!1)return n;e=typeof n[1]==`number`?n[1]:e+u}}}if(c&&r){let r=UUe(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function UUe(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?VUe:[e]}function WUe(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?HUe(e,i,YG(a),o):HUe(e,i,GUe(a),o)}function GUe(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?YG(e.enter):e.enter,exit:typeof e.exit==`function`?YG(e.exit):e.exit}}function YG(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var XG={}.hasOwnProperty,KUe={};function qUe(e,t){let n=t||KUe,r=new Map,i=new Map,a={all:s,applyData:YUe,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...bUe,...n.handlers},one:o,options:n,patch:JUe,wrap:ZUe};return WUe(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(XG.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=qG(n);return r.children=a.all(e),r}return qG(e)}return(a.options.unknownHandler||XUe)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=QUe(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=QUe(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function JUe(e,t){e.position&&(t.position=zze(e))}function YUe(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,qG(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function XUe(e,t){let n=t.data||{},r=`value`in t&&!(XG.call(n,`hProperties`)||XG.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZUe(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
`});++r<e.length;)r&&n.push({type:`text`,value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
`}),n}function cWe(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function lWe(e,t){let n=rWe(e,t),r=n.one(e,void 0),i=UUe(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
`},i)),a}function uWe(e,t){return e&&`run`in e?async function(n,r){let i=lWe(n,{file:r,...t});await e.run(i,r)}:function(n,r){return lWe(n,{file:r,...e||t})}}function dWe(e){if(e)throw e}var fWe=s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function QG(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pWe(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?mWe(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function mWe(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var $G={basename:hWe,dirname:gWe,extname:_We,join:vWe,sep:`/`};function hWe(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);eK(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function gWe(e){if(eK(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function _We(e){eK(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function vWe(...e){let t=-1,n;for(;++t<e.length;)eK(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:yWe(n)}function yWe(e){eK(e);let t=e.codePointAt(0)===47,n=bWe(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function bWe(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function eK(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var xWe={cwd:SWe};function SWe(){return`/`}function tK(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function CWe(e){if(typeof e==`string`)e=new URL(e);else if(!tK(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return wWe(e)}function wWe(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pat Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pqe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Fqe=sJ(function e(t){var n=this,r=t.expanded,i=r===void 0?[]:r,a=t.allowMultipleExpanded,o=a!==void 0&&a,s=t.allowZeroExpanded,c=s!==void 0&&s;oJ(this,e),cJ(this,`expanded`,void 0),cJ(this,`allowMultipleExpanded`,void 0),cJ(this,`allowZeroExpanded`,void 0),cJ(this,`toggleExpanded`,function(e){return n.isItemDisabled(e)?n:n.isItemExpanded(e)?n.augment({expanded:n.expanded.filter(function(t){return t!==e})}):n.augment({expanded:n.allowMultipleExpanded?[].concat(Dqe(n.expanded),[e]):[e]})}),cJ(this,`isItemDisabled`,function(e){var t=n.isItemExpanded(e),r=n.expanded.length===1;return!!(t&&!n.allowZeroExpanded&&r)}),cJ(this,`isItemExpanded`,function(e){return n.expanded.indexOf(e)!==-1}),cJ(this,`getPanelAttributes`,function(e,t){var r=t??n.isItemExpanded(e);return{role:n.allowMultipleExpanded?void 0:`region`,"aria-hidden":n.allowMultipleExpanded?!r:void 0,"aria-labelledby":n.getButtonId(e),id:n.getPanelId(e),hidden:!r||void 0}}),cJ(this,`getHeadingAttributes`,function(){return{role:`heading`}}),cJ(this,`getButtonAttributes`,function(e,t){var r=t??n.isItemExpanded(e),i=n.isItemDisabled(e);return{id:n.getButtonId(e),"aria-disabled":i,"aria-expanded":r,"aria-controls":n.getPanelId(e),role:`button`,tabIndex:0}}),cJ(this,`getPanelId`,function(e){return`accordion__panel-${e}`}),cJ(this,`getButtonId`,function(e){return`accordion__heading-${e}`}),cJ(this,`augment`,function(t){return new e(aJ({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},t))}),this.expanded=i,this.allowMultipleExpanded=o,this.allowZeroExpanded=c}),Iqe=(0,m.createContext)(null),Lqe=function(e){uJ(n,e);var t=hJ(n);function n(){var e;oJ(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),cJ(mJ(e),`state`,new Fqe({expanded:e.props.preExpanded,allowMultipleExpanded:e.props.allowMultipleExpanded,allowZeroExpanded:e.props.allowZeroExpanded})),cJ(mJ(e),`toggleExpanded`,function(t){e.setState(function(e){return e.toggleExpanded(t)},function(){e.props.onChange&&e.props.onChange(e.state.expanded)})}),cJ(mJ(e),`isItemDisabled`,function(t){return e.state.isItemDisabled(t)}),cJ(mJ(e),`isItemExpanded`,function(t){return e.state.isItemExpanded(t)}),cJ(mJ(e),`getPanelAttributes`,function(t,n){return e.state.getPanelAttributes(t,n)}),cJ(mJ(e),`getHeadingAttributes`,function(){return e.state.getHeadingAttributes()}),cJ(mJ(e),`getButtonAttributes`,function(t,n){return e.state.getButtonAttributes(t,n)}),e}return sJ(n,[{key:`render`,value:function(){var e=this.state,t=e.allowZeroExpanded,n=e.allowMultipleExpanded;return(0,m.createElement)(Iqe.Provider,{value:{allowMultipleExpanded:n,allowZeroExpanded:t,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),n}(m.PureComponent);cJ(Lqe,`defaultProps`,{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Rqe=function(e){uJ(n,e);var t=hJ(n);function n(){var e;oJ(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),cJ(mJ(e),`renderChildren`,function(t){return t?e.props.children(t):null}),e}return sJ(n,[{key:`render`,value:function(){return(0,m.createElement)(Iqe.Consumer,null,this.renderChildren)}}]),n}(m.PureComponent),zqe=[`className`,`allowMultipleExpanded`,`allowZeroExpanded`,`onChange`,`preExpanded`],Bqe=function(e){var t=e.className,n=t===void 0?`accordion`:t,r=e.allowMultipleExpanded,i=e.allowZeroExpanded,a=e.onChange,o=e.preExpanded,s=pJ(e,zqe);return(0,m.createElement)(Lqe,{preExpanded:o,allowMultipleExpanded:r,allowZeroExpanded:i,onChange:a},(0,m.createElement)(`div`,lJ({"data-accordion-component":`Accordion`,className:n},s)))},Vqe;(function(e){e.Accordion=`Accordion`,e.AccordionItem=`AccordionItem`,e.AccordionItemButton=`AccordionItemButton`,e.AccordionItemHeading=`AccordionItemHeading`,e.AccordionItemPanel=`AccordionItemPanel`})(Vqe||={});var Hqe=Vqe,Uqe=0;function Wqe(){var e=Uqe;return Uqe+=1,`raa-${e}`}var Gqe=m.useId||Wqe,Kqe=/[\u0009\u000a\u000c\u000d\u0020]/g;function _J(e){return e===``||Kqe.test(e)?(console.error(`uuid must be a valid HTML5 id but was given "${e}", ASCII whitespaces are forbidden`),!1):!0}var qqe=(0,m.createContext)(null),Jqe=function(e){var t=e.children,n=e.uuid,r=e.accordionContext,i=e.dangerouslySetExpanded,a=function(){r.toggleExpanded(n)};return(0,m.createElement)(Rqe,null,function(e){var r=i??e.isItemExpanded(n),o=e.isItemDisabled(n),s=e.getPanelAttributes(n,i),c=e.getHeadingAttributes(n),l=e.getButtonAttributes(n,i);return(0,m.createElement)(qqe.Provider,{value:{uuid:n,expanded:r,disabled:o,toggleExpanded:a,panelAttributes:s,headingAttributes:c,buttonAttributes:l}},t)})},Yqe=function(e){return(0,m.createElement)(Rqe,null,function(t){return(0,m.createElement)(Jqe,lJ({},e,{accordionContext:t}) Line truncated
`}),n}function QUe(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $Ue(e,t){let n=qUe(e,t),r=n.one(e,void 0),i=NUe(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
`},i)),a}function eWe(e,t){return e&&`run`in e?async function(n,r){let i=$Ue(n,{file:r,...t});await e.run(i,r)}:function(n,r){return $Ue(n,{file:r,...e||t})}}function tWe(e){if(e)throw e}var nWe=s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function ZG(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rWe(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?iWe(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function iWe(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var QG={basename:aWe,dirname:oWe,extname:sWe,join:cWe,sep:`/`};function aWe(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);$G(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function oWe(e){if($G(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function sWe(e){$G(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function cWe(...e){let t=-1,n;for(;++t<e.length;)$G(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:lWe(n)}function lWe(e){$G(e);let t=e.codePointAt(0)===47,n=uWe(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function uWe(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function $G(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var dWe={cwd:fWe};function fWe(){return`/`}function eK(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function pWe(e){if(typeof e==`string`)e=new URL(e);else if(!eK(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return mWe(e)}function mWe(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pat Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wqe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Tqe=oJ(function e(t){var n=this,r=t.expanded,i=r===void 0?[]:r,a=t.allowMultipleExpanded,o=a!==void 0&&a,s=t.allowZeroExpanded,c=s!==void 0&&s;aJ(this,e),sJ(this,`expanded`,void 0),sJ(this,`allowMultipleExpanded`,void 0),sJ(this,`allowZeroExpanded`,void 0),sJ(this,`toggleExpanded`,function(e){return n.isItemDisabled(e)?n:n.isItemExpanded(e)?n.augment({expanded:n.expanded.filter(function(t){return t!==e})}):n.augment({expanded:n.allowMultipleExpanded?[].concat(_qe(n.expanded),[e]):[e]})}),sJ(this,`isItemDisabled`,function(e){var t=n.isItemExpanded(e),r=n.expanded.length===1;return!!(t&&!n.allowZeroExpanded&&r)}),sJ(this,`isItemExpanded`,function(e){return n.expanded.indexOf(e)!==-1}),sJ(this,`getPanelAttributes`,function(e,t){var r=t??n.isItemExpanded(e);return{role:n.allowMultipleExpanded?void 0:`region`,"aria-hidden":n.allowMultipleExpanded?!r:void 0,"aria-labelledby":n.getButtonId(e),id:n.getPanelId(e),hidden:!r||void 0}}),sJ(this,`getHeadingAttributes`,function(){return{role:`heading`}}),sJ(this,`getButtonAttributes`,function(e,t){var r=t??n.isItemExpanded(e),i=n.isItemDisabled(e);return{id:n.getButtonId(e),"aria-disabled":i,"aria-expanded":r,"aria-controls":n.getPanelId(e),role:`button`,tabIndex:0}}),sJ(this,`getPanelId`,function(e){return`accordion__panel-${e}`}),sJ(this,`getButtonId`,function(e){return`accordion__heading-${e}`}),sJ(this,`augment`,function(t){return new e(iJ({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},t))}),this.expanded=i,this.allowMultipleExpanded=o,this.allowZeroExpanded=c}),Eqe=(0,m.createContext)(null),Dqe=function(e){lJ(n,e);var t=mJ(n);function n(){var e;aJ(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),sJ(pJ(e),`state`,new Tqe({expanded:e.props.preExpanded,allowMultipleExpanded:e.props.allowMultipleExpanded,allowZeroExpanded:e.props.allowZeroExpanded})),sJ(pJ(e),`toggleExpanded`,function(t){e.setState(function(e){return e.toggleExpanded(t)},function(){e.props.onChange&&e.props.onChange(e.state.expanded)})}),sJ(pJ(e),`isItemDisabled`,function(t){return e.state.isItemDisabled(t)}),sJ(pJ(e),`isItemExpanded`,function(t){return e.state.isItemExpanded(t)}),sJ(pJ(e),`getPanelAttributes`,function(t,n){return e.state.getPanelAttributes(t,n)}),sJ(pJ(e),`getHeadingAttributes`,function(){return e.state.getHeadingAttributes()}),sJ(pJ(e),`getButtonAttributes`,function(t,n){return e.state.getButtonAttributes(t,n)}),e}return oJ(n,[{key:`render`,value:function(){var e=this.state,t=e.allowZeroExpanded,n=e.allowMultipleExpanded;return(0,m.createElement)(Eqe.Provider,{value:{allowMultipleExpanded:n,allowZeroExpanded:t,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),n}(m.PureComponent);sJ(Dqe,`defaultProps`,{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Oqe=function(e){lJ(n,e);var t=mJ(n);function n(){var e;aJ(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),sJ(pJ(e),`renderChildren`,function(t){return t?e.props.children(t):null}),e}return oJ(n,[{key:`render`,value:function(){return(0,m.createElement)(Eqe.Consumer,null,this.renderChildren)}}]),n}(m.PureComponent),kqe=[`className`,`allowMultipleExpanded`,`allowZeroExpanded`,`onChange`,`preExpanded`],Aqe=function(e){var t=e.className,n=t===void 0?`accordion`:t,r=e.allowMultipleExpanded,i=e.allowZeroExpanded,a=e.onChange,o=e.preExpanded,s=fJ(e,kqe);return(0,m.createElement)(Dqe,{preExpanded:o,allowMultipleExpanded:r,allowZeroExpanded:i,onChange:a},(0,m.createElement)(`div`,cJ({"data-accordion-component":`Accordion`,className:n},s)))},jqe;(function(e){e.Accordion=`Accordion`,e.AccordionItem=`AccordionItem`,e.AccordionItemButton=`AccordionItemButton`,e.AccordionItemHeading=`AccordionItemHeading`,e.AccordionItemPanel=`AccordionItemPanel`})(jqe||={});var Mqe=jqe,Nqe=0;function Pqe(){var e=Nqe;return Nqe+=1,`raa-${e}`}var Fqe=m.useId||Pqe,Iqe=/[\u0009\u000a\u000c\u000d\u0020]/g;function gJ(e){return e===``||Iqe.test(e)?(console.error(`uuid must be a valid HTML5 id but was given "${e}", ASCII whitespaces are forbidden`),!1):!0}var Lqe=(0,m.createContext)(null),Rqe=function(e){var t=e.children,n=e.uuid,r=e.accordionContext,i=e.dangerouslySetExpanded,a=function(){r.toggleExpanded(n)};return(0,m.createElement)(Oqe,null,function(e){var r=i??e.isItemExpanded(n),o=e.isItemDisabled(n),s=e.getPanelAttributes(n,i),c=e.getHeadingAttributes(n),l=e.getButtonAttributes(n,i);return(0,m.createElement)(Lqe.Provider,{value:{uuid:n,expanded:r,disabled:o,toggleExpanded:a,panelAttributes:s,headingAttributes:c,buttonAttributes:l}},t)})},zqe=function(e){return(0,m.createElement)(Oqe,null,function(t){return(0,m.createElement)(Rqe,cJ({},e,{accordionContext:t}) 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.”
`,cJe=function(e){uJ(n,e);var t=hJ(n);function n(){var e;oJ(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),cJ(mJ(e),`ref`,void 0),cJ(mJ(e),`setRef`,function(t){e.ref=t}),e}return sJ(n,[{key:`componentDidUpdate`,value:function(){n.VALIDATE(this.ref)}},{key:`componentDidMount`,value:function(){n.VALIDATE(this.ref)}},{key:`render`,value:function(){return(0,m.createElement)(`div`,lJ({"data-accordion-component":`AccordionItemHeading`},this.props,{ref:this.setRef}))}}],[{key:`VALIDATE`,value:function(e){if(e===void 0)throw Error(`ref is undefined`);if(!(e.childElementCount===1&&e.firstElementChild&&e.firstElementChild.getAttribute(`data-accordion-component`)===`AccordionItemButton`))throw Error(sJe)}}]),n}(m.PureComponent);cJ(cJe,`defaultProps`,oJe);var lJe=function(e){return(0,m.createElement)(vJ,null,function(t){var n=t.headingAttributes;return e.id&&_J(e.id),(0,m.createElement)(cJe,lJ({},e,n))})};lJe.displayName=Hqe.AccordionItemHeading;var uJe=[`className`,`region`,`id`],dJe=function(e){var t=e.className,n=t===void 0?`accordion__panel`:t,r=e.region,i=e.id,a=pJ(e,uJe);return(0,m.createElement)(vJ,null,function(e){var t=e.panelAttributes;i&&_J(i);var o=aJ(aJ({},t),{},{"aria-labelledby":r?t[`aria-labelledby`]:void 0});return(0,m.createElement)(`div`,lJ({"data-accordion-component":`AccordionItemPanel`,className:n},a,o,{role:r?`region`:void 0}))})};function xJ(){var e=`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`,t=`9520c084d5753d03b2f885ad8d41cc433bbd21b7`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`,statementMap:{0:{start:{line:3,column:25},end:{line:5,column:1}},1:{start:{line:4,column:1},end:{line:4,column:54}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:3,column:25},end:{line:3,column:26}},loc:{start:{line:3,column:36},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`],mappings:`AAAA,SAAS,iBAAsC;;AAM/C,OAAO,MAAM,aAAuC,UAAU;CAC5D,OAAO,qBAAC,WAAD,EAAW,GAAI,MAAQ;AAChC`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`9520c084d5753d03b2f885ad8d41cc433bbd21b7`},a=n[r]||(n[r]={});a[e]&&a[e].hash===t||(a[e]=i);var o=a[e];return xJ=function(){return o},o}xJ(),xJ().s[0]++;var SJ=e=>(xJ().f[0]++,xJ().s[1]++,(0,R.jsx)(UFe,{...e}));function CJ(e){return D({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2`},child:[]},{tag:`path`,attr:{d:`M5 12h6`},child:[]},{tag:`path`,attr:{d:`M15 12l6 6`},child:[]},{tag:`path`,attr:{d:`M15 18l6 -6`},child:[]}]})(e)}function wJ(e){return D({tag:`svg`,attr:{viewBox:`0 0 256 256`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm104,40H40a12,12,0,0,0,0,24H144a12,12,0,0,0,0-24Zm88,0H220V168a12,12,0,0,0-24,0v12H184a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V204h12a12,12,0,0,0,0-24Z`},child:[]}]})(e)}function TJ(){var e=`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`,t=`c4e03b67a8467b62eedab8255a87090dbcdba4b4`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`,statementMap:{0:{start:{line:2,column:34},end:{line:6,column:1}},1:{start:{line:7,column:28},end:{line:7,column:41}},2:{start:{line:8,column:30},end:{line:8,column:123}},3:{start:{line:8,column:88},end:{line:8,column:122}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:8,column:80},end:{line:8,column:81}},loc:{start:{line:8,column:88},end:{line:8,column:122}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`],mappings:`AAAA,OAAO,YAAY;AAEnB,OAAO,MAAM,qBAAqB;CAAC;CAAO;CAAO;AAAM;AACvD,OAAO,MAAM,eAAe,CAAC,MAAM,KAAK;AACxC,OAAO,MAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,CAAC,CACnC,QAAO,OAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`c4e03b67a8467b62eedab8255a87090dbcdba4b4`},a=n[r]||(n[r]={});a[e]&&a[e].hash===t||(a[e]=i);var o=a[e];return TJ=function(){return o},o}TJ();var EJ=(TJ().s[0]++,[`all`,`any`,`none`]);TJ().s[1]++;var fJe=(TJ().s[2]++,Object.keys(Wd.filter_operator.values).filter(e=>(TJ().f[0]++,TJ().s[3]++,EJ.indexOf(e)<0)));function DJ(){var e=`/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx`,t=`23f646748e4094cbb94c13fb75ac4c9dc0c41bd5`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx`,statementMap:{0:{start:{line:8,column:1},end:{line:8,column:24}},1:{start:{line:8,column:15},end:{line:8,column:24}},2:{start:{line:9,column:1},end:{line:9,column:24}},3:{start:{line:9,column:15},end:{line:9,column: Line truncated
`,Qqe=function(e){lJ(n,e);var t=mJ(n);function n(){var e;aJ(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),sJ(pJ(e),`ref`,void 0),sJ(pJ(e),`setRef`,function(t){e.ref=t}),e}return oJ(n,[{key:`componentDidUpdate`,value:function(){n.VALIDATE(this.ref)}},{key:`componentDidMount`,value:function(){n.VALIDATE(this.ref)}},{key:`render`,value:function(){return(0,m.createElement)(`div`,cJ({"data-accordion-component":`AccordionItemHeading`},this.props,{ref:this.setRef}))}}],[{key:`VALIDATE`,value:function(e){if(e===void 0)throw Error(`ref is undefined`);if(!(e.childElementCount===1&&e.firstElementChild&&e.firstElementChild.getAttribute(`data-accordion-component`)===`AccordionItemButton`))throw Error(Zqe)}}]),n}(m.PureComponent);sJ(Qqe,`defaultProps`,Xqe);var $qe=function(e){return(0,m.createElement)(_J,null,function(t){var n=t.headingAttributes;return e.id&&gJ(e.id),(0,m.createElement)(Qqe,cJ({},e,n))})};$qe.displayName=Mqe.AccordionItemHeading;var eJe=[`className`,`region`,`id`],tJe=function(e){var t=e.className,n=t===void 0?`accordion__panel`:t,r=e.region,i=e.id,a=fJ(e,eJe);return(0,m.createElement)(_J,null,function(e){var t=e.panelAttributes;i&&gJ(i);var o=iJ(iJ({},t),{},{"aria-labelledby":r?t[`aria-labelledby`]:void 0});return(0,m.createElement)(`div`,cJ({"data-accordion-component":`AccordionItemPanel`,className:n},a,o,{role:r?`region`:void 0}))})};function bJ(){var e=`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`,t=`9520c084d5753d03b2f885ad8d41cc433bbd21b7`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`,statementMap:{0:{start:{line:3,column:25},end:{line:5,column:1}},1:{start:{line:4,column:1},end:{line:4,column:54}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:3,column:25},end:{line:3,column:26}},loc:{start:{line:3,column:36},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`],mappings:`AAAA,SAAS,iBAAsC;;AAM/C,OAAO,MAAM,aAAuC,UAAU;CAC5D,OAAO,qBAAC,WAAD,EAAW,GAAI,MAAQ;AAChC`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`9520c084d5753d03b2f885ad8d41cc433bbd21b7`},a=n[r]||(n[r]={});a[e]&&a[e].hash===t||(a[e]=i);var o=a[e];return bJ=function(){return o},o}bJ(),bJ().s[0]++;var xJ=e=>(bJ().f[0]++,bJ().s[1]++,(0,R.jsx)(NFe,{...e}));function SJ(e){return D({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2`},child:[]},{tag:`path`,attr:{d:`M5 12h6`},child:[]},{tag:`path`,attr:{d:`M15 12l6 6`},child:[]},{tag:`path`,attr:{d:`M15 18l6 -6`},child:[]}]})(e)}function CJ(e){return D({tag:`svg`,attr:{viewBox:`0 0 256 256`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm104,40H40a12,12,0,0,0,0,24H144a12,12,0,0,0,0-24Zm88,0H220V168a12,12,0,0,0-24,0v12H184a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V204h12a12,12,0,0,0,0-24Z`},child:[]}]})(e)}function wJ(){var e=`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`,t=`c4e03b67a8467b62eedab8255a87090dbcdba4b4`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`,statementMap:{0:{start:{line:2,column:34},end:{line:6,column:1}},1:{start:{line:7,column:28},end:{line:7,column:41}},2:{start:{line:8,column:30},end:{line:8,column:123}},3:{start:{line:8,column:88},end:{line:8,column:122}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:8,column:80},end:{line:8,column:81}},loc:{start:{line:8,column:88},end:{line:8,column:122}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`],mappings:`AAAA,OAAO,YAAY;AAEnB,OAAO,MAAM,qBAAqB;CAAC;CAAO;CAAO;AAAM;AACvD,OAAO,MAAM,eAAe,CAAC,MAAM,KAAK;AACxC,OAAO,MAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,CAAC,CACnC,QAAO,OAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`c4e03b67a8467b62eedab8255a87090dbcdba4b4`},a=n[r]||(n[r]={});a[e]&&a[e].hash===t||(a[e]=i);var o=a[e];return wJ=function(){return o},o}wJ();var TJ=(wJ().s[0]++,[`all`,`any`,`none`]);wJ().s[1]++;var nJe=(wJ().s[2]++,Object.keys(Ud.filter_operator.values).filter(e=>(wJ().f[0]++,wJ().s[3]++,TJ.indexOf(e)<0)));function EJ(){var e=`/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx`,t=`23f646748e4094cbb94c13fb75ac4c9dc0c41bd5`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx`,statementMap:{0:{start:{line:8,column:1},end:{line:8,column:24}},1:{start:{line:8,column:15},end:{line:8,column:24}},2:{start:{line:9,column:1},end:{line:9,column:24}},3:{start:{line:9,column:15},end:{line:9,column: Line truncated
rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`,boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:`relative`,height:`100%`,margin:`0 3px`},pointer:{position:`absolute`,left:t.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(`+t.r+`,`+t.g+`,`+t.b+`, 0) 0%,
rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`},pointer:{left:0,top:t.a*100+`%`}},overwrite:nZe({},this.props.style)},{vertical:this.props.direction===`vertical`,overwrite:!0});return m.createElement(`div`,{style:n.alpha},m.createElement(`div`,{style:n.checkboard},m.createElement(mY,{renderers:this.props.renderers})),m.createElement(`div`,{style:n.gradient}),m.createElement(`div`,{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement(`div`,{style:n.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:n.slider}))))}}]),t}(m.PureComponent||m.Component),sZe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function cZe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lZe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function uZe(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function dZe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var fZe=1,pZe=38,mZe=[pZe,40],hZe=function(e){return mZe.indexOf(e)>-1},gZe=function(e){return Number(String(e).replace(/%/g,``))},_Ze=1,gY=function(e){dZe(t,e);function t(e){lZe(this,t);var n=uZe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=gZe(e.target.value);if(!isNaN(t)&&hZe(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===pZe?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener(`mousemove`,n.handleDrag),window.addEventListener(`mouseup`,n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener(`mousemove`,n.handleDrag),window.removeEventListener(`mouseup`,n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId=`rc-editable-input-`+_Ze++,n}return sZe(t,[{key:`componentDidUpdate`,value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.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(e){return cZe({},this.props.label,e)}},{key:`getArrowOffset`,value:function(){return this.props.arrowOffset||fZe}},{key:`setUpdatedValue`,value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:`render`,value:function(){var e=this,t=(0,fY.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 m.createElement(`div`,{style:t.wrap},m.createElement(`input`,{id:this.inputId,style:t.input,ref:function(t){return e.input=t},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?m.createElement(`label`,{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(m.PureComponent||m.Component),vZe=function(e,t,n,r){var i=r.clientWidth,a=r.clientHeight,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if(t===`vertical`){var u=void 0;if(u=l<0?359:l>a?0:360*(-(l*100/a)+100)/100,n.h!== Line truncated
rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`},pointer:{left:0,top:t.a*100+`%`}},overwrite:KXe({},this.props.style)},{vertical:this.props.direction===`vertical`,overwrite:!0});return m.createElement(`div`,{style:n.alpha},m.createElement(`div`,{style:n.checkboard},m.createElement(pY,{renderers:this.props.renderers})),m.createElement(`div`,{style:n.gradient}),m.createElement(`div`,{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement(`div`,{style:n.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:n.slider}))))}}]),t}(m.PureComponent||m.Component),ZXe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function QXe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Xe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function eZe(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function tZe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var nZe=1,rZe=38,iZe=[rZe,40],aZe=function(e){return iZe.indexOf(e)>-1},oZe=function(e){return Number(String(e).replace(/%/g,``))},sZe=1,hY=function(e){tZe(t,e);function t(e){$Xe(this,t);var n=eZe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=oZe(e.target.value);if(!isNaN(t)&&aZe(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===rZe?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener(`mousemove`,n.handleDrag),window.addEventListener(`mouseup`,n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener(`mousemove`,n.handleDrag),window.removeEventListener(`mouseup`,n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId=`rc-editable-input-`+sZe++,n}return ZXe(t,[{key:`componentDidUpdate`,value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.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(e){return QXe({},this.props.label,e)}},{key:`getArrowOffset`,value:function(){return this.props.arrowOffset||nZe}},{key:`setUpdatedValue`,value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:`render`,value:function(){var e=this,t=(0,dY.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 m.createElement(`div`,{style:t.wrap},m.createElement(`input`,{id:this.inputId,style:t.input,ref:function(t){return e.input=t},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?m.createElement(`label`,{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(m.PureComponent||m.Component),cZe=function(e,t,n,r){var i=r.clientWidth,a=r.clientHeight,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if(t===`vertical`){var u=void 0;if(u=l<0?359:l>a?0:360*(-(l*100/a)+100)/100,n.h!== Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -1087,7 +1087,7 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),m.createElement(`div`,{style:r.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:r.slider}))))}}]),t}(m.PureComponent||m.Component);function vY(e,t){return e===t||e!==e&&t!==t}function yY(e,t){for(var n=e.length;n--;)if(vY(e[n][0],t))return n;return-1}var CZe=Array.prototype.splice;function bY(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bY.prototype.clear=function(){this.__data__=[],this.size=0},bY.prototype.delete=function(e){var t=this.__data__,n=yY(t,e);return n<0?!1:(n==t.length-1?t.pop():CZe.call(t,n,1),--this.size,!0)},bY.prototype.get=function(e){var t=this.__data__,n=yY(t,e);return n<0?void 0:t[n][1]},bY.prototype.has=function(e){return yY(this.__data__,e)>-1},bY.prototype.set=function(e,t){var n=this.__data__,r=yY(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var wZe=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis,TZe=typeof self==`object`&&self&&self.Object===Object&&self,xY=wZe||TZe||Function(`return this`)(),SY=xY.Symbol,EZe=Object.prototype,DZe=EZe.hasOwnProperty,OZe=EZe.toString,CY=SY?SY.toStringTag:void 0;function kZe(e){var t=DZe.call(e,CY),n=e[CY];try{e[CY]=void 0;var r=!0}catch{}var i=OZe.call(e);return r&&(t?e[CY]=n:delete e[CY]),i}var AZe=Object.prototype.toString;function jZe(e){return AZe.call(e)}var MZe=`[object Null]`,NZe=`[object Undefined]`,PZe=SY?SY.toStringTag:void 0;function wY(e){return e==null?e===void 0?NZe:MZe:PZe&&PZe in Object(e)?kZe(e):jZe(e)}function TY(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var FZe=`[object AsyncFunction]`,IZe=`[object Function]`,LZe=`[object GeneratorFunction]`,RZe=`[object Proxy]`;function EY(e){if(!TY(e))return!1;var t=wY(e);return t==IZe||t==LZe||t==FZe||t==RZe}var DY=xY[`__core-js_shared__`],zZe=function(){var e=/[^.]+$/.exec(DY&&DY.keys&&DY.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function BZe(e){return!!zZe&&zZe in e}var VZe=Function.prototype.toString;function OY(e){if(e!=null){try{return VZe.call(e)}catch{}try{return e+``}catch{}}return``}var HZe=/[\\^$.*+?()[\]{}|]/g,UZe=/^\[object .+?Constructor\]$/,WZe=Function.prototype,GZe=Object.prototype,KZe=WZe.toString,qZe=GZe.hasOwnProperty,JZe=RegExp(`^`+KZe.call(qZe).replace(HZe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function YZe(e){return!TY(e)||BZe(e)?!1:(EY(e)?JZe:UZe).test(OY(e))}function XZe(e,t){return e?.[t]}function kY(e,t){var n=XZe(e,t);return YZe(n)?n:void 0}var AY=kY(xY,`Map`),jY=kY(Object,`create`),ZZe=`__lodash_hash_undefined__`,QZe=Object.prototype.hasOwnProperty,$Ze=Object.prototype.hasOwnProperty,eQe=`__lodash_hash_undefined__`;function MY(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}MY.prototype.clear=function(){this.__data__=jY?jY(null):{},this.size=0},MY.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},MY.prototype.get=function(e){var t=this.__data__;if(jY){var n=t[e];return n===ZZe?void 0:n}return QZe.call(t,e)?t[e]:void 0},MY.prototype.has=function(e){var t=this.__data__;return jY?t[e]!==void 0:$Ze.call(t,e)},MY.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=jY&&t===void 0?eQe:t,this};function tQe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function NY(e,t){var n=e.__data__;return tQe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function PY(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}PY.prototype.clear=function(){this.size=0,this.__data__={hash:new MY,map:new(AY||bY),string:new MY}},PY.prototype.delete=function(e){var t=NY(this,e).delete(e);return this.size-=+!!t,t},PY.prototype.get=function(e){return NY(this,e).get(e)},PY.prototype.has=function(e){return NY(this,e).has(e)},PY.prototype.set=function(e,t){var n=NY(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var nQe=200;function FY(e){var t=this.__data__=new bY(e);this.size=t.size}FY.prototype.clear=function(){this.__data__=new bY,this.size=0},FY.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},FY.prototype.get=function(e){return this.__data__.get(e)},FY.prototype.has=function(e){return this.__data__.has(e)},FY.prototype.set=function(e,t){var n=this.__data__;if(n instanceof bY){var r=n.__data__;if(!AY||r.length<nQe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new PY(r)}return n.set(e,t),this.size=n.size,this};var IY=function(){try{var e=kY(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function LY(e,t,n){t==`__proto__`&&IY?IY(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function RY(e,t,n){(n!==void 0&&!vY(e[t],n)||n===void 0&&!(t in e))&&LY(e,t,n)}function rQe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i Line truncated
`),m.createElement(`div`,{style:r.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:r.slider}))))}}]),t}(m.PureComponent||m.Component);function _Y(e,t){return e===t||e!==e&&t!==t}function vY(e,t){for(var n=e.length;n--;)if(_Y(e[n][0],t))return n;return-1}var pZe=Array.prototype.splice;function yY(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yY.prototype.clear=function(){this.__data__=[],this.size=0},yY.prototype.delete=function(e){var t=this.__data__,n=vY(t,e);return n<0?!1:(n==t.length-1?t.pop():pZe.call(t,n,1),--this.size,!0)},yY.prototype.get=function(e){var t=this.__data__,n=vY(t,e);return n<0?void 0:t[n][1]},yY.prototype.has=function(e){return vY(this.__data__,e)>-1},yY.prototype.set=function(e,t){var n=this.__data__,r=vY(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var mZe=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis,hZe=typeof self==`object`&&self&&self.Object===Object&&self,bY=mZe||hZe||Function(`return this`)(),xY=bY.Symbol,gZe=Object.prototype,_Ze=gZe.hasOwnProperty,vZe=gZe.toString,SY=xY?xY.toStringTag:void 0;function yZe(e){var t=_Ze.call(e,SY),n=e[SY];try{e[SY]=void 0;var r=!0}catch{}var i=vZe.call(e);return r&&(t?e[SY]=n:delete e[SY]),i}var bZe=Object.prototype.toString;function xZe(e){return bZe.call(e)}var SZe=`[object Null]`,CZe=`[object Undefined]`,wZe=xY?xY.toStringTag:void 0;function CY(e){return e==null?e===void 0?CZe:SZe:wZe&&wZe in Object(e)?yZe(e):xZe(e)}function wY(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var TZe=`[object AsyncFunction]`,EZe=`[object Function]`,DZe=`[object GeneratorFunction]`,OZe=`[object Proxy]`;function TY(e){if(!wY(e))return!1;var t=CY(e);return t==EZe||t==DZe||t==TZe||t==OZe}var EY=bY[`__core-js_shared__`],kZe=function(){var e=/[^.]+$/.exec(EY&&EY.keys&&EY.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function AZe(e){return!!kZe&&kZe in e}var jZe=Function.prototype.toString;function DY(e){if(e!=null){try{return jZe.call(e)}catch{}try{return e+``}catch{}}return``}var MZe=/[\\^$.*+?()[\]{}|]/g,NZe=/^\[object .+?Constructor\]$/,PZe=Function.prototype,FZe=Object.prototype,IZe=PZe.toString,LZe=FZe.hasOwnProperty,RZe=RegExp(`^`+IZe.call(LZe).replace(MZe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function zZe(e){return!wY(e)||AZe(e)?!1:(TY(e)?RZe:NZe).test(DY(e))}function BZe(e,t){return e?.[t]}function OY(e,t){var n=BZe(e,t);return zZe(n)?n:void 0}var kY=OY(bY,`Map`),AY=OY(Object,`create`),VZe=`__lodash_hash_undefined__`,HZe=Object.prototype.hasOwnProperty,UZe=Object.prototype.hasOwnProperty,WZe=`__lodash_hash_undefined__`;function jY(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jY.prototype.clear=function(){this.__data__=AY?AY(null):{},this.size=0},jY.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},jY.prototype.get=function(e){var t=this.__data__;if(AY){var n=t[e];return n===VZe?void 0:n}return HZe.call(t,e)?t[e]:void 0},jY.prototype.has=function(e){var t=this.__data__;return AY?t[e]!==void 0:UZe.call(t,e)},jY.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=AY&&t===void 0?WZe:t,this};function GZe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function MY(e,t){var n=e.__data__;return GZe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function NY(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}NY.prototype.clear=function(){this.size=0,this.__data__={hash:new jY,map:new(kY||yY),string:new jY}},NY.prototype.delete=function(e){var t=MY(this,e).delete(e);return this.size-=+!!t,t},NY.prototype.get=function(e){return MY(this,e).get(e)},NY.prototype.has=function(e){return MY(this,e).has(e)},NY.prototype.set=function(e,t){var n=MY(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var KZe=200;function PY(e){var t=this.__data__=new yY(e);this.size=t.size}PY.prototype.clear=function(){this.__data__=new yY,this.size=0},PY.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},PY.prototype.get=function(e){return this.__data__.get(e)},PY.prototype.has=function(e){return this.__data__.has(e)},PY.prototype.set=function(e,t){var n=this.__data__;if(n instanceof yY){var r=n.__data__;if(!kY||r.length<KZe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new NY(r)}return n.set(e,t),this.size=n.size,this};var FY=function(){try{var e=OY(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function IY(e,t,n){t==`__proto__`&&FY?FY(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function LY(e,t,n){(n!==void 0&&!_Y(e[t],n)||n===void 0&&!(t in e))&&IY(e,t,n)}function qZe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:`50%`,cursor:`hand`,transform:`translate(-2px, -2px)`}},custom:{color:n,white:r,black:i,pointer:a,circle:o}},{custom:!!this.props.style});return m.createElement(`div`,{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement(`style`,null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -1097,13 +1097,13 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),m.createElement(`div`,{style:s.white,className:`saturation-white`},m.createElement(`div`,{style:s.black,className:`saturation-black`}),m.createElement(`div`,{style:s.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:s.circle}))))}}]),t}(m.PureComponent||m.Component);function cet(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var uet=hQe(Object.keys,Object),det=Object.prototype.hasOwnProperty;function fet(e){if(!BY(e))return uet(e);var t=[];for(var n in Object(e))det.call(e,n)&&n!=`constructor`&&t.push(n);return t}function aX(e){return GY(e)?y$e(e):fet(e)}function pet(e,t){return e&&iQe(e,t,aX)}function met(e,t){return function(n,r){if(n==null)return n;if(!GY(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var het=met(pet);function get(e){return typeof e==`function`?e:$Y}function _et(e,t){return(UY(e)?cet:het)(e,get(t))}function oX(e){"@babel/helpers - typeof";return oX=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},oX(e)}var vet=/^\s+/,yet=/\s+$/;function sX(e,t){if(e||=``,t||={},e instanceof sX)return e;if(!(this instanceof sX))return new sX(e,t);var n=bet(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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=n.ok}sX.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 e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255,i=t<=.03928?t/12.92:((t+.055)/1.055)**2.4,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4;return .2126*i+.7152*a+.0722*o},setAlpha:function(e){return this._a=Wet(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Tet(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Tet(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=Cet(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Cet(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return Det(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return Oet(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},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(lX(this._r,255)*100)+`%`,g:Math.round(lX(this._g,255)*100)+`%`,b:Math.round(lX(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+Math.round(lX(this._r,255)*100)+`%, `+Math.round(lX(this._g,255)*100)+`%, `+Math.round(lX(this._b,255)*100)+`%)`:`rgba(`+Math.round(lX(this._r,255)*100)+`%, `+Math.round(lX(this._g,255)*100)+`%, `+Math.round(lX(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:Het[Det(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+ket(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=sX(e);n=`#`+ket(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return sX(this.t Line truncated
`),m.createElement(`div`,{style:s.white,className:`saturation-white`},m.createElement(`div`,{style:s.black,className:`saturation-black`}),m.createElement(`div`,{style:s.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:s.circle}))))}}]),t}(m.PureComponent||m.Component);function Q$e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var $$e=aQe(Object.keys,Object),eet=Object.prototype.hasOwnProperty;function tet(e){if(!zY(e))return $$e(e);var t=[];for(var n in Object(e))eet.call(e,n)&&n!=`constructor`&&t.push(n);return t}function iX(e){return WY(e)?l$e(e):tet(e)}function net(e,t){return e&&JZe(e,t,iX)}function ret(e,t){return function(n,r){if(n==null)return n;if(!WY(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var iet=ret(net);function aet(e){return typeof e==`function`?e:QY}function oet(e,t){return(HY(e)?Q$e:iet)(e,aet(t))}function aX(e){"@babel/helpers - typeof";return aX=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},aX(e)}var set=/^\s+/,cet=/\s+$/;function oX(e,t){if(e||=``,t||={},e instanceof oX)return e;if(!(this instanceof oX))return new oX(e,t);var n=uet(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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=n.ok}oX.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 e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255,i=t<=.03928?t/12.92:((t+.055)/1.055)**2.4,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4;return .2126*i+.7152*a+.0722*o},setAlpha:function(e){return this._a=Pet(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=met(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=met(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=fet(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=fet(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return get(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _et(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},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(cX(this._r,255)*100)+`%`,g:Math.round(cX(this._g,255)*100)+`%`,b:Math.round(cX(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+Math.round(cX(this._r,255)*100)+`%, `+Math.round(cX(this._g,255)*100)+`%, `+Math.round(cX(this._b,255)*100)+`%)`:`rgba(`+Math.round(cX(this._r,255)*100)+`%, `+Math.round(cX(this._g,255)*100)+`%, `+Math.round(cX(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:Met[get(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+vet(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=oX(e);n=`#`+vet(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return oX(this.t Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${t}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<link href="https://unpkg.com/maplibre-gl@${ect}/dist/maplibre-gl.css" rel="stylesheet" />
<link href="https://unpkg.com/maplibre-gl@${Jst}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
@@ -1112,7 +1112,7 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
<body>
<div id="map"></div>
<script type="module">
import {Map} from 'https://unpkg.com/maplibre-gl@${ect}/dist/maplibre-gl.mjs';
import {Map} from 'https://unpkg.com/maplibre-gl@${Jst}/dist/maplibre-gl.mjs';
const map = new Map({
container: 'map',
style: ${e},
@@ -1121,5 +1121,5 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
<\/script>
</body>
</html>
`),r=(j$().s[9]++,new Blob([n],{type:`text/html;charset=utf-8`})),i=(j$().s[10]++,this.exportName());j$().s[11]++,(0,Qst.saveAs)(r,i+`.html`)}async saveStyle(){j$().f[3]++;let e=(j$().s[12]++,this.tokenizedStyle());if(j$().s[13]++,tct)j$().b[2][1]++;else{j$().b[2][0]++;let t=(j$().s[14]++,new Blob([e],{type:`application/json;charset=utf-8`})),n=(j$().s[15]++,this.exportName());j$().s[16]++,(0,Qst.saveAs)(t,n+`.json`),j$().s[17]++;return}let t=(j$().s[18]++,this.props.fileHandle);if(j$().s[19]++,t==null){if(j$().b[3][0]++,j$().s[20]++,t=await this.createFileHandle(),j$().s[21]++,this.props.onSetFileHandle(t),j$().s[22]++,t==null){j$().b[4][0]++,j$().s[23]++;return}j$().b[4][1]++}else j$().b[3][1]++;let n=(j$().s[24]++,await t.createWritable());j$().s[25]++,await n.write(e),j$().s[26]++,await n.close(),j$().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){j$().f[4]++;let e=(j$().s[28]++,this.tokenizedStyle()),t=(j$().s[29]++,await this.createFileHandle());if(j$().s[30]++,this.props.onSetFileHandle(t),j$().s[31]++,t==null){j$().b[5][0]++,j$().s[32]++;return}j$().b[5][1]++;let n=(j$().s[33]++,await t.createWritable());j$().s[34]++,await n.write(e),j$().s[35]++,await n.close(),j$().s[36]++,this.props.onOpenToggle()}async createFileHandle(){j$().f[5]++;let e=(j$().s[37]++,{types:[{description:`json`,accept:{"application/json":[`.json`]}}],suggestedName:this.exportName()}),t=(j$().s[38]++,await window.showSaveFilePicker(e));return j$().s[39]++,this.props.onSetFileHandle(t),j$().s[40]++,t}changeMetadataProperty(e,t){j$().f[6]++;let n=(j$().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});j$().s[42]++,this.props.onStyleChanged(n)}render(){j$().f[7]++;let e=(j$().s[43]++,this.props.t),t=(j$().s[44]++,Kst(e));return j$().s[45]++,(0,R.jsx)(HW,{"data-wd-key":`modal:export`,isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e(`Save Style`),className:`maputnik-export-modal`,children:(0,R.jsxs)(`section`,{className:`maputnik-modal-section`,children:[(0,R.jsx)(`h1`,{children:e(`Save Style`)}),(0,R.jsx)(`p`,{children:e(`Save the JSON style to your computer.`)}),(0,R.jsxs)(`div`,{children:[(0,R.jsx)(S$,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(j$().b[6][0]++,this.props.mapStyle.metadata||(j$().b[6][1]++,{}))[`maputnik:openmaptiles_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:openmaptiles_access_token`)}),(0,R.jsx)(S$,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(j$().b[7][0]++,this.props.mapStyle.metadata||(j$().b[7][1]++,{}))[`maputnik:thunderforest_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:thunderforest_access_token`)}),(0,R.jsx)(S$,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(j$().b[8][0]++,this.props.mapStyle.metadata||(j$().b[8][1]++,{}))[`maputnik:stadia_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:stadia_access_token`)}),(0,R.jsx)(S$,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(j$().b[9][0]++,this.props.mapStyle.metadata||(j$().b[9][1]++,{}))[`maputnik:locationiq_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:locationiq_access_token`)})]}),(0,R.jsxs)(`div`,{className:`maputnik-modal-export-buttons`,children:[(0,R.jsxs)(hW,{onClick:this.saveStyle.bind(this),children:[(0,R.jsx)(b7,{}),e(`Save`)]}),(j$().b[10][0]++,tct&&(j$().b[10][1]++,(0,R.jsxs)(hW,{onClick:this.saveStyleAs.bind(this),children:[(0,R.jsx)(b7,{}),e(`Save as`)]}))),(0,R.jsxs)(hW,{onClick:this.createHtml.bind(this),children:[(0,R.jsx)(i4e,{}),e(`Create HTML`)]})]})]})})}},rct=(j$().s[46]++,er()(nct));function M$(){var e=`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`,t=`615893f63b00bf2bdf08d7f34d665947b5e31694`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`,statementMap:{0:{start:{line:4,column:33},end:{line:9,column:1}},1:{start:{line:5,column:1},end:{line:8,column:4}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:4,column:33},end:{line:4,column:34}},loc:{start:{line:4,column:44},end:{line:9,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`],mappings:`AAAA,SAAS,yBAAsD;AAC/D,SAAS,gBAAgB;;AASzB,OAAO,MAAM,qBAAuD,UAAU;CAC5E,OACE,qBAAC,UAAD;EAAU,OAAO,MAAM;YACrB,qBAAC,mBAAD,EAAmB,GAAI,MAAQ;CACvB;AAEd`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`615893f63b00bf2bdf08d7f34d665947b5e31694`},a=n[r]||(n[r]={});a[e]&&a[e].hash===t||(a[e]=i);var o=a[e];return M$=function(){return o},o}M$(),M$().s[0]++;var ict=e=>(M$().f[0]++,M$().s[1]++,(0,R.jsx)(VZ,{label:e.label,children:(0,R.jsx)(PZ,{...e})}));function N$(){var e=`/home/runner/work/maputnik/maputnik/sLine truncated
//# sourceMappingURL=index-B6yx30c8.js.map
`),r=(j$().s[9]++,new Blob([n],{type:`text/html;charset=utf-8`})),i=(j$().s[10]++,this.exportName());j$().s[11]++,(0,Kst.saveAs)(r,i+`.html`)}async saveStyle(){j$().f[3]++;let e=(j$().s[12]++,this.tokenizedStyle());if(j$().s[13]++,Yst)j$().b[2][1]++;else{j$().b[2][0]++;let t=(j$().s[14]++,new Blob([e],{type:`application/json;charset=utf-8`})),n=(j$().s[15]++,this.exportName());j$().s[16]++,(0,Kst.saveAs)(t,n+`.json`),j$().s[17]++;return}let t=(j$().s[18]++,this.props.fileHandle);if(j$().s[19]++,t==null){if(j$().b[3][0]++,j$().s[20]++,t=await this.createFileHandle(),j$().s[21]++,this.props.onSetFileHandle(t),j$().s[22]++,t==null){j$().b[4][0]++,j$().s[23]++;return}j$().b[4][1]++}else j$().b[3][1]++;let n=(j$().s[24]++,await t.createWritable());j$().s[25]++,await n.write(e),j$().s[26]++,await n.close(),j$().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){j$().f[4]++;let e=(j$().s[28]++,this.tokenizedStyle()),t=(j$().s[29]++,await this.createFileHandle());if(j$().s[30]++,this.props.onSetFileHandle(t),j$().s[31]++,t==null){j$().b[5][0]++,j$().s[32]++;return}j$().b[5][1]++;let n=(j$().s[33]++,await t.createWritable());j$().s[34]++,await n.write(e),j$().s[35]++,await n.close(),j$().s[36]++,this.props.onOpenToggle()}async createFileHandle(){j$().f[5]++;let e=(j$().s[37]++,{types:[{description:`json`,accept:{"application/json":[`.json`]}}],suggestedName:this.exportName()}),t=(j$().s[38]++,await window.showSaveFilePicker(e));return j$().s[39]++,this.props.onSetFileHandle(t),j$().s[40]++,t}changeMetadataProperty(e,t){j$().f[6]++;let n=(j$().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});j$().s[42]++,this.props.onStyleChanged(n)}render(){j$().f[7]++;let e=(j$().s[43]++,this.props.t),t=(j$().s[44]++,Bst(e));return j$().s[45]++,(0,R.jsx)(VW,{"data-wd-key":`modal:export`,isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e(`Save Style`),className:`maputnik-export-modal`,children:(0,R.jsxs)(`section`,{className:`maputnik-modal-section`,children:[(0,R.jsx)(`h1`,{children:e(`Save Style`)}),(0,R.jsx)(`p`,{children:e(`Save the JSON style to your computer.`)}),(0,R.jsxs)(`div`,{children:[(0,R.jsx)(S$,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(j$().b[6][0]++,this.props.mapStyle.metadata||(j$().b[6][1]++,{}))[`maputnik:openmaptiles_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:openmaptiles_access_token`)}),(0,R.jsx)(S$,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(j$().b[7][0]++,this.props.mapStyle.metadata||(j$().b[7][1]++,{}))[`maputnik:thunderforest_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:thunderforest_access_token`)}),(0,R.jsx)(S$,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(j$().b[8][0]++,this.props.mapStyle.metadata||(j$().b[8][1]++,{}))[`maputnik:stadia_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:stadia_access_token`)}),(0,R.jsx)(S$,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(j$().b[9][0]++,this.props.mapStyle.metadata||(j$().b[9][1]++,{}))[`maputnik:locationiq_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:locationiq_access_token`)})]}),(0,R.jsxs)(`div`,{className:`maputnik-modal-export-buttons`,children:[(0,R.jsxs)(mW,{onClick:this.saveStyle.bind(this),children:[(0,R.jsx)(h7,{}),e(`Save`)]}),(j$().b[10][0]++,Yst&&(j$().b[10][1]++,(0,R.jsxs)(mW,{onClick:this.saveStyleAs.bind(this),children:[(0,R.jsx)(h7,{}),e(`Save as`)]}))),(0,R.jsxs)(mW,{onClick:this.createHtml.bind(this),children:[(0,R.jsx)(l4e,{}),e(`Create HTML`)]})]})]})})}},Zst=(j$().s[46]++,er()(Xst));function M$(){var e=`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`,t=`615893f63b00bf2bdf08d7f34d665947b5e31694`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`,statementMap:{0:{start:{line:4,column:33},end:{line:9,column:1}},1:{start:{line:5,column:1},end:{line:8,column:4}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:4,column:33},end:{line:4,column:34}},loc:{start:{line:4,column:44},end:{line:9,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`],mappings:`AAAA,SAAS,yBAAsD;AAC/D,SAAS,gBAAgB;;AASzB,OAAO,MAAM,qBAAuD,UAAU;CAC5E,OACE,qBAAC,UAAD;EAAU,OAAO,MAAM;YACrB,qBAAC,mBAAD,EAAmB,GAAI,MAAQ;CACvB;AAEd`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`615893f63b00bf2bdf08d7f34d665947b5e31694`},a=n[r]||(n[r]={});a[e]&&a[e].hash===t||(a[e]=i);var o=a[e];return M$=function(){return o},o}M$(),M$().s[0]++;var Qst=e=>(M$().f[0]++,M$().s[1]++,(0,R.jsx)(VZ,{label:e.label,children:(0,R.jsx)(NZ,{...e})}));function N$(){var e=`/home/runner/work/maputnik/maputnik/sLine truncated
//# sourceMappingURL=index-DwO4Vxl0.js.map
@@ -1 +1 @@
{"version":3,"file":"index-B6yx30c8.js","names":["REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_CONSUMER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_ACTIVITY_TYPE","REACT_VIEW_TRANSITION_TYPE","MAYBE_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","ReactNoopUpdateQueue","assign","emptyObject","Component","props","context","updater","partialState","callback","ComponentDummy","PureComponent","pureComponentPrototype","isArrayImpl","noop","ReactSharedInternals","hasOwnProperty","ReactElement","type","key","refProp","cloneAndReplaceKey","oldElement","newKey","isValidElement","object","escape","escaperLookup","match","userProvidedKeyEscapeRegex","getElementKey","element","index","resolveThenable","thenable","fulfilledValue","error","mapIntoArray","children","array","escapedPrefix","nameSoFar","invokeCallback","c","nextNamePrefix","i","mapChildren","func","result","count","child","lazyInitializer","payload","moduleObject","reportGlobalError","event","startTransition","scope","prevTransition","currentTransition","returnValue","onStartTransitionFinish","addTransitionType","transition","transitionTypes","Children","forEachFunc","forEachContext","n","exports","size","fn","config","propName","childArray","defaultValue","childrenLength","render","ctor","compare","usable","action","initialState","permalink","deps","Context","value","initialValue","create","ref","passthrough","reducer","initialArg","init","subscribe","getSnapshot","getServerSnapshot","module","require_react_production","DefaultContext","IconContext","import_react","_excluded","_objectWithoutProperties","o","_objectWithoutPropertiesLoose","r","e","t","_extends","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","Tree2Element","tree","node","GenIcon","data","IconBase","elem","conf","attr","title","svgProps","computedSize","className","push","heap","parentIndex","parent","peek","pop","first","last","length","halfLength","leftIndex","left","rightIndex","right","a","b","diff","localPerformance","localDate","initialTime","taskQueue","timerQueue","taskIdCounter","currentTask","currentPriorityLevel","isPerformingWork","isHostCallbackScheduled","isHostTimeoutScheduled","needsPaint","localSetTimeout","localClearTimeout","localSetImmediate","advanceTimers","currentTime","timer","handleTimeout","isMessageLoopRunning","schedulePerformWorkUntilDeadline","firstTimer","requestHostTimeout","taskTimeoutID","frameInterval","startTime","shouldYieldToHost","performWorkUntilDeadline","hasMoreWork","previousPriorityLevel","continuationCallback","channel","port","ms","task","fps","eventHandler","priorityLevel","options","timeout","parentPriorityLevel","require_scheduler_production","React","require_react","formatProdErrorMessage","code","url","Internals","REACT_RECOVERABLE_TYPE","REACT_OPTIMISTIC_KEY","createPortal$1","containerInfo","implementation","getCrossOriginStringAs","as","input","reason","container","previousTransition","previousUpdatePriority","href","crossOrigin","integrity","fetchPriority","form","checkDCE","err","require_react_dom_production","Scheduler","require_scheduler","ReactDOM","require_react_dom","isValidContainer","getNearestMountedFiber","fiber","nextNode","getSuspenseInstanceFromFiber","suspenseState","getActivityInstanceFromFiber","activityState","assertIsMounted","findCurrentFiberUsingSlowPath","alternate","parentA","parentB","didFindChild","child$0","findCurrentHostFiberImpl","tag","traverseVisibleInstancesAndTextInstances","searchWithinHosts","getFragmentParentInstanceOrContainerFiber","fiberIsPortaledIntoHost","foundPortalParent","getFragmentInstanceOrTextInstanceSiblings","parentHostFiber","findFragmentInstanceOrTextInstanceSiblings","self","state","getInstanceFromHostFiber","searchTarget","searchBoundary","isFiberPrecedingCheck","target","boundary","isFiberFollowingCheck","getParentForFragmentAncestors","inst","getLowestCommonAncestor","instA","instB","getParent","depthA","tempA","tempB","REACT_LEGACY_ELEMENT_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_LEGACY_HIDDEN_TYPE","REACT_MEMO_CACHE_SENTINEL","REACT_CLIENT_REFERENCE","getComponentNameFromType","innerType","ReactDOMSharedInternals","sharedNotPendingObject","valueStack","createCursor","cursor","contextStackCursor","contextFiberStackCursor","rootInstanceStackCursor","hostTransitionProviderCursor","pushHostContainer","nextRootInstance","getOwnHostContext","getChildHostContextProd","popHostContainer","pushHostContext","stateHook","HostTransitionContext","JSCompiler_inline_result","popHostContext","prefix","suffix","describeBuiltInComponentFrame","name","x","reentry","describeNativeComponentFrame","construct","previousPrepareStackTrace","RunInRootFrame","Fake","control","x$1","prevProps","x$2","sample","namePropDescriptor","_RunInRootFrame$Deter","sampleStack","controlStack","sampleLines","controlLines","frame","describeFiber","childFLine truncated
{"version":3,"file":"index-DwO4Vxl0.js","names":["REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_CONSUMER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_ACTIVITY_TYPE","REACT_VIEW_TRANSITION_TYPE","MAYBE_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","ReactNoopUpdateQueue","assign","emptyObject","Component","props","context","updater","partialState","callback","ComponentDummy","PureComponent","pureComponentPrototype","isArrayImpl","noop","ReactSharedInternals","hasOwnProperty","ReactElement","type","key","refProp","cloneAndReplaceKey","oldElement","newKey","isValidElement","object","escape","escaperLookup","match","userProvidedKeyEscapeRegex","getElementKey","element","index","resolveThenable","thenable","fulfilledValue","error","mapIntoArray","children","array","escapedPrefix","nameSoFar","invokeCallback","c","nextNamePrefix","i","mapChildren","func","result","count","child","lazyInitializer","payload","moduleObject","reportGlobalError","event","startTransition","scope","prevTransition","currentTransition","returnValue","onStartTransitionFinish","addTransitionType","transition","transitionTypes","Children","forEachFunc","forEachContext","n","exports","size","fn","config","propName","childArray","defaultValue","childrenLength","render","ctor","compare","usable","action","initialState","permalink","deps","Context","value","initialValue","create","ref","passthrough","reducer","initialArg","init","subscribe","getSnapshot","getServerSnapshot","module","require_react_production","DefaultContext","IconContext","import_react","_excluded","_objectWithoutProperties","o","_objectWithoutPropertiesLoose","r","e","t","_extends","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","Tree2Element","tree","node","GenIcon","data","IconBase","elem","conf","attr","title","svgProps","computedSize","className","push","heap","parentIndex","parent","peek","pop","first","last","length","halfLength","leftIndex","left","rightIndex","right","a","b","diff","localPerformance","localDate","initialTime","taskQueue","timerQueue","taskIdCounter","currentTask","currentPriorityLevel","isPerformingWork","isHostCallbackScheduled","isHostTimeoutScheduled","needsPaint","localSetTimeout","localClearTimeout","localSetImmediate","advanceTimers","currentTime","timer","handleTimeout","isMessageLoopRunning","schedulePerformWorkUntilDeadline","firstTimer","requestHostTimeout","taskTimeoutID","frameInterval","startTime","shouldYieldToHost","performWorkUntilDeadline","hasMoreWork","previousPriorityLevel","continuationCallback","channel","port","ms","task","fps","eventHandler","priorityLevel","options","timeout","parentPriorityLevel","require_scheduler_production","React","require_react","formatProdErrorMessage","code","url","Internals","REACT_RECOVERABLE_TYPE","REACT_OPTIMISTIC_KEY","createPortal$1","containerInfo","implementation","getCrossOriginStringAs","as","input","reason","container","previousTransition","previousUpdatePriority","href","crossOrigin","integrity","fetchPriority","form","checkDCE","err","require_react_dom_production","Scheduler","require_scheduler","ReactDOM","require_react_dom","isValidContainer","getNearestMountedFiber","fiber","nextNode","getSuspenseInstanceFromFiber","suspenseState","getActivityInstanceFromFiber","activityState","assertIsMounted","findCurrentFiberUsingSlowPath","alternate","parentA","parentB","didFindChild","child$0","findCurrentHostFiberImpl","tag","traverseVisibleInstancesAndTextInstances","searchWithinHosts","getFragmentParentInstanceOrContainerFiber","fiberIsPortaledIntoHost","foundPortalParent","getFragmentInstanceOrTextInstanceSiblings","parentHostFiber","findFragmentInstanceOrTextInstanceSiblings","self","state","getInstanceFromHostFiber","searchTarget","searchBoundary","isFiberPrecedingCheck","target","boundary","isFiberFollowingCheck","getParentForFragmentAncestors","inst","getLowestCommonAncestor","instA","instB","getParent","depthA","tempA","tempB","REACT_LEGACY_ELEMENT_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_LEGACY_HIDDEN_TYPE","REACT_MEMO_CACHE_SENTINEL","REACT_CLIENT_REFERENCE","getComponentNameFromType","innerType","ReactDOMSharedInternals","sharedNotPendingObject","valueStack","createCursor","cursor","contextStackCursor","contextFiberStackCursor","rootInstanceStackCursor","hostTransitionProviderCursor","pushHostContainer","nextRootInstance","getOwnHostContext","getChildHostContextProd","popHostContainer","pushHostContext","stateHook","HostTransitionContext","JSCompiler_inline_result","popHostContext","prefix","suffix","describeBuiltInComponentFrame","name","x","reentry","describeNativeComponentFrame","construct","previousPrepareStackTrace","RunInRootFrame","Fake","control","x$1","prevProps","x$2","sample","namePropDescriptor","_RunInRootFrame$Deter","sampleStack","controlStack","sampleLines","controlLines","frame","describeFiber","childFLine truncated
-1
View File
@@ -1 +0,0 @@
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{font-size:100%;font:inherit;vertical-align:baseline;border:0;margin:0;padding:0}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;box-sizing:border-box;font-size:14px}body{overflow:hidden}*,:before,:after{box-sizing:inherit}p{color:#a4a4a4;margin-top:5px;margin-bottom:5px;font-size:12px;line-height:1.3}h1{margin-bottom:10px;font-size:20px;font-weight:700}h2{margin-bottom:10px;font-size:18px;font-weight:700}h3{margin-bottom:10px;font-size:16px;font-weight:700}h4{margin-bottom:10px;font-size:14px}input:focus,textarea:focus,[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:1px auto #8e8e8e}label:hover{color:#f0f0f0}.clearfix:after{content:"";clear:both;display:table}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;width:100%;height:100%;display:flex}.maputnik-map__container--error{justify-content:center;align-items:center}.maputnik-map__container__error-message{text-align:center;margin:16px}.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{box-sizing:border-box;-webkit-user-select:none;user-select:none;vertical-align:top;font-size:12px;line-height:2;display:inline-block;position:relative}.maputnik-doc-popup{color:#a4a4a4;z-index:10;pointer-events:none;background-color:#222429;width:120px;padding:5px;font-size:10px;display:none;position:absolute;top:20px;left:0}.maputnik-doc-button{opacity:0;pointer-events:none;color:#fff;background:#191b20;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;flex:1 0;margin-top:10px;padding:5px;font-size:12px;line-height:1.5}.maputnik-doc-target:hover .maputnik-doc-popup{text-align:left;display:block}.maputnik-button{cursor:pointer;color:#a4a4a4;-webkit-user-select:none;user-select:none;box-sizing:border-box;background-color:#303237;border-width:0;border-radius:2px;padding:5px;font-size:12px;text-decoration:none;display:inline-block}.maputnik-button:hover{color:#f0f0f0;background-color:#4d5058}.maputnik-button:disabled{color:#303237;cursor:not-allowed;background-color:#242629}.maputnik-big-button{margin-top:10px;padding:10px;font-size:14px;display:inline-block}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{color:#191b20;background-color:#53b972}.maputnik-white-button{color:#191b20;background-color:#f0f0f0}.maputnik-icon-button,.maputnik-icon-button:hover:not(:disabled){background-color:#0000}.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{flex-wrap:wrap;margin:10px;display:flex}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;vertical-align:top;width:32%;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;vertical-align:top;text-align:right;width:18%;font-size:12px}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{width:32%;margin-bottom:10px;display:inline-block}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;width:18%;display:inline-block}.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{flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;cursor:pointer;text-decoration:underline}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-state-menu__menu{z-index:999999;background:#191b20;flex-direction:column;align-content:stretch;display:flex;positLine truncated
+2 -2
View File
@@ -7,8 +7,8 @@
<link rel="manifest" href="/maputnik/assets/manifest-BrZzkYP9.json">
<link rel="icon" href="/maputnik/assets/favicon-DBn6BKLx.ico" type="image/x-icon" />
<style>html{background-color:#1c1f24}.loading{text-align:center;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex;position:absolute;top:0;left:0}.loading__logo img{width:200px;height:200px}.loading__text{color:#fff;padding-bottom:2em;font-family:sans-serif;font-size:1.2em}</style>
<script type="module" crossorigin src="/maputnik/assets/index-B6yx30c8.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-hriR7F7_.css">
<script type="module" crossorigin src="/maputnik/assets/index-DwO4Vxl0.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-CLXnA9Qy.css">
</head>
<body>
<!-- From <https://github.com/hail2u/color-blindness-emulation> -->