This commit is contained in:
HarelM committed 2026-01-20 05:46:30 +00:00
1 parent 7943252400
commit 6010c6810a
3 files changed
+99 -99

No files matched your search

@@ -1,15 +1,15 @@
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();function bu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function UH(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var fO={exports:{}},h3={};var uF;function bae(){if(uF)return h3;uF=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return h3.Fragment=e,h3.jsx=t,h3.jsxs=t,h3}var cF;function Cae(){return cF||(cF=1,fO.exports=bae()),fO.exports}var oe=Cae(),pO={exports:{}},Lr={};var AF;function _ae(){if(AF)return Lr;AF=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function B(De){return De===null||typeof De!="object"?null:(De=w&&De[w]||De["@@iterator"],typeof De=="function"?De:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,z={};function Y(De,Ge,Re){this.props=De,this.context=Ge,this.refs=z,this.updater=Re||P}Y.prototype.isReactComponent={},Y.prototype.setState=function(De,Ge){if(typeof De!="object"&&typeof De!="function"&&De!=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,De,Ge,"setState")},Y.prototype.forceUpdate=function(De){this.updater.enqueueForceUpdate(this,De,"forceUpdate")};function Z(){}Z.prototype=Y.prototype;function X(De,Ge,Re){this.props=De,this.context=Ge,this.refs=z,this.updater=Re||P}var te=X.prototype=new Z;te.constructor=X,U(te,Y.prototype),te.isPureReactComponent=!0;var re=Array.isArray;function ne(){}var q={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function ce(De,Ge,Re){var St=Re.ref;return{$$typeof:n,type:De,key:Ge,ref:St!==void 0?St:null,props:Re}}function ve(De,Ge){return ce(De.type,Ge,De.props)}function ge(De){return typeof De=="object"&&De!==null&&De.$$typeof===n}function Ee(De){var Ge={"=":"=0",":":"=2"};return"$"+De.replace(/[=:]/g,function(Re){return Ge[Re]})}var we=/\/+/g;function Te(De,Ge){return typeof De=="object"&&De!==null&&De.key!=null?Ee(""+De.key):Ge.toString(36)}function ze(De){switch(De.status){case"fulfilled":return De.value;case"rejected":throw De.reason;default:switch(typeof De.status=="string"?De.then(ne,ne):(De.status="pending",De.then(function(Ge){De.status==="pending"&&(De.status="fulfilled",De.value=Ge)},function(Ge){De.status==="pending"&&(De.status="rejected",De.reason=Ge)})),De.status){case"fulfilled":return De.value;case"rejected":throw De.reason}}throw De}function Ie(De,Ge,Re,St,ut){var kt=typeof De;(kt==="undefined"||kt==="boolean")&&(De=null);var Ut=!1;if(De===null)Ut=!0;else switch(kt){case"bigint":case"string":case"number":Ut=!0;break;case"object":switch(De.$$typeof){case n:case e:Ut=!0;break;case m:return Ut=De._init,Ie(Ut(De._payload),Ge,Re,St,ut)}}if(Ut)return ut=ut(De),Ut=St===""?"."+Te(De,0):St,re(ut)?(Re="",Ut!=null&&(Re=Ut.replace(we,"$&/")+"/"),Ie(ut,Ge,Re,"",function(Oe){return Oe})):ut!=null&&(ge(ut)&&(ut=ve(ut,Re+(ut.key==null||De&&De.key===ut.key?"":(""+ut.key).replace(we,"$&/")+"/")+Ut)),Ge.push(ut)),1;Ut=0;var Le=St===""?".":St+":";if(re(De))for(var ke=0;ke<De.length;ke++)St=De[ke],kt=Le+Te(St,ke),Ut+=Ie(St,Ge,Re,kt,ut);else if(ke=B(De),typeof ke=="function")for(De=ke.call(De),ke=0;!(St=De.next()).done;)St=St.value,kt=Le+Te(St,ke+Line truncated
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();function vu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function GH(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var yO={exports:{}},h3={};var yF;function gae(){if(yF)return h3;yF=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return h3.Fragment=e,h3.jsx=t,h3.jsxs=t,h3}var vF;function yae(){return vF||(vF=1,yO.exports=gae()),yO.exports}var oe=yae(),vO={exports:{}},Lr={};var bF;function vae(){if(bF)return Lr;bF=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),M=Symbol.iterator;function B(De){return De===null||typeof De!="object"?null:(De=M&&De[M]||De["@@iterator"],typeof De=="function"?De:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,z={};function V(De,Ge,Re){this.props=De,this.context=Ge,this.refs=z,this.updater=Re||P}V.prototype.isReactComponent={},V.prototype.setState=function(De,Ge){if(typeof De!="object"&&typeof De!="function"&&De!=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,De,Ge,"setState")},V.prototype.forceUpdate=function(De){this.updater.enqueueForceUpdate(this,De,"forceUpdate")};function Z(){}Z.prototype=V.prototype;function X(De,Ge,Re){this.props=De,this.context=Ge,this.refs=z,this.updater=Re||P}var re=X.prototype=new Z;re.constructor=X,U(re,V.prototype),re.isPureReactComponent=!0;var ie=Array.isArray;function te(){}var q={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function ce(De,Ge,Re){var St=Re.ref;return{$$typeof:n,type:De,key:Ge,ref:St!==void 0?St:null,props:Re}}function ve(De,Ge){return ce(De.type,Ge,De.props)}function ge(De){return typeof De=="object"&&De!==null&&De.$$typeof===n}function Ee(De){var Ge={"=":"=0",":":"=2"};return"$"+De.replace(/[=:]/g,function(Re){return Ge[Re]})}var xe=/\/+/g;function Te(De,Ge){return typeof De=="object"&&De!==null&&De.key!=null?Ee(""+De.key):Ge.toString(36)}function Fe(De){switch(De.status){case"fulfilled":return De.value;case"rejected":throw De.reason;default:switch(typeof De.status=="string"?De.then(te,te):(De.status="pending",De.then(function(Ge){De.status==="pending"&&(De.status="fulfilled",De.value=Ge)},function(Ge){De.status==="pending"&&(De.status="rejected",De.reason=Ge)})),De.status){case"fulfilled":return De.value;case"rejected":throw De.reason}}throw De}function Ie(De,Ge,Re,St,ut){var kt=typeof De;(kt==="undefined"||kt==="boolean")&&(De=null);var Ut=!1;if(De===null)Ut=!0;else switch(kt){case"bigint":case"string":case"number":Ut=!0;break;case"object":switch(De.$$typeof){case n:case e:Ut=!0;break;case m:return Ut=De._init,Ie(Ut(De._payload),Ge,Re,St,ut)}}if(Ut)return ut=ut(De),Ut=St===""?"."+Te(De,0):St,ie(ut)?(Re="",Ut!=null&&(Re=Ut.replace(xe,"$&/")+"/"),Ie(ut,Ge,Re,"",function(Oe){return Oe})):ut!=null&&(ge(ut)&&(ut=ve(ut,Re+(ut.key==null||De&&De.key===ut.key?"":(""+ut.key).replace(xe,"$&/")+"/")+Ut)),Ge.push(ut)),1;Ut=0;var Le=St===""?".":St+":";if(ie(De))for(var ke=0;ke<De.length;ke++)St=De[ke],kt=Le+Te(St,ke),Ut+=Ie(St,Ge,Re,kt,ut);else if(ke=B(De),typeof ke=="function")for(De=ke.call(De),ke=0;!(St=De.next()).done;)St=St.value,kt=Le+Te(St,ke+Line truncated
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
`+bt+d+yt}var Kt=!1;function Dt(d,g){if(!d||Kt)return"";Kt=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var T={DetermineComponentFrameRoot:function(){try{if(g){var gn=function(){throw Error()};if(Object.defineProperty(gn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(gn,[])}catch(rn){var Zt=rn}Reflect.construct(d,[],gn)}else{try{gn.call()}catch(rn){Zt=rn}d.call(gn.prototype)}}else{try{throw Error()}catch(rn){Zt=rn}(gn=d())&&typeof gn.catch=="function"&&gn.catch(function(){})}}catch(rn){if(rn&&Zt&&typeof rn.stack=="string")return[rn.stack,Zt.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var G=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");G&&G.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var J=T.DetermineComponentFrameRoot(),_e=J[0],Ve=J[1];if(_e&&Ve){var _t=_e.split(`
`+bt+f+yt}var Kt=!1;function Dt(f,g){if(!f||Kt)return"";Kt=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var T={DetermineComponentFrameRoot:function(){try{if(g){var gn=function(){throw Error()};if(Object.defineProperty(gn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(gn,[])}catch(rn){var Zt=rn}Reflect.construct(f,[],gn)}else{try{gn.call()}catch(rn){Zt=rn}f.call(gn.prototype)}}else{try{throw Error()}catch(rn){Zt=rn}(gn=f())&&typeof gn.catch=="function"&&gn.catch(function(){})}}catch(rn){if(rn&&Zt&&typeof rn.stack=="string")return[rn.stack,Zt.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var G=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");G&&G.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var J=T.DetermineComponentFrameRoot(),_e=J[0],Ve=J[1];if(_e&&Ve){var _t=_e.split(`
`),$t=Ve.split(`
`);for(G=T=0;T<_t.length&&!_t[T].includes("DetermineComponentFrameRoot");)T++;for(;G<$t.length&&!$t[G].includes("DetermineComponentFrameRoot");)G++;if(T===_t.length||G===$t.length)for(T=_t.length-1,G=$t.length-1;1<=T&&0<=G&&_t[T]!==$t[G];)G--;for(;1<=T&&0<=G;T--,G--)if(_t[T]!==$t[G]){if(T!==1||G!==1)do if(T--,G--,0>G||_t[T]!==$t[G]){var ln=`
`+_t[T].replace(" at new "," at ");return d.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",d.displayName)),ln}while(1<=T&&0<=G);break}}}finally{Kt=!1,Error.prepareStackTrace=x}return(x=d?d.displayName||d.name:"")?Mt(x):""}function en(d,g){switch(d.tag){case 26:case 27:case 5:return Mt(d.type);case 16:return Mt("Lazy");case 13:return d.child!==g&&g!==null?Mt("Suspense Fallback"):Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 15:return Dt(d.type,!1);case 11:return Dt(d.type.render,!1);case 1:return Dt(d.type,!0);case 31:return Mt("Activity");default:return""}}function Gn(d){try{var g="",x=null;do g+=en(d,x),x=d,d=d.return;while(d);return g}catch(T){return`
`+_t[T].replace(" at new "," at ");return f.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",f.displayName)),ln}while(1<=T&&0<=G);break}}}finally{Kt=!1,Error.prepareStackTrace=x}return(x=f?f.displayName||f.name:"")?Mt(x):""}function en(f,g){switch(f.tag){case 26:case 27:case 5:return Mt(f.type);case 16:return Mt("Lazy");case 13:return f.child!==g&&g!==null?Mt("Suspense Fallback"):Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 15:return Dt(f.type,!1);case 11:return Dt(f.type.render,!1);case 1:return Dt(f.type,!0);case 31:return Mt("Activity");default:return""}}function Gn(f){try{var g="",x=null;do g+=en(f,x),x=f,f=f.return;while(f);return g}catch(T){return`
Error generating stack: `+T.message+`
`+T.stack}}var Nn=Object.prototype.hasOwnProperty,Si=n.unstable_scheduleCallback,Un=n.unstable_cancelCallback,Ln=n.unstable_shouldYield,Tn=n.unstable_requestPaint,ti=n.unstable_now,Bn=n.unstable_getCurrentPriorityLevel,je=n.unstable_ImmediatePriority,H=n.unstable_UserBlockingPriority,j=n.unstable_NormalPriority,Q=n.unstable_LowPriority,he=n.unstable_IdlePriority,xe=n.log,Ne=n.unstable_setDisableYieldValue,Qe=null,it=null;function vt(d){if(typeof xe=="function"&&Ne(d),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Qe,d)}catch{}}var $e=Math.clz32?Math.clz32:Rt,ot=Math.log,b=Math.LN2;function Rt(d){return d>>>=0,d===0?32:31-(ot(d)/b|0)|0}var mn=256,bn=262144,Cn=4194304;function xt(d){var g=d&42;if(g!==0)return g;switch(d&-d){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 d&261888;case 262144:case 524288:case 1048576:case 2097152:return d&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return d&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return d}}function _i(d,g,x){var T=d.pendingLanes;if(T===0)return 0;var G=0,J=d.suspendedLanes,_e=d.pingedLanes;d=d.warmLanes;var Ve=T&134217727;return Ve!==0?(T=Ve&~J,T!==0?G=xt(T):(_e&=Ve,_e!==0?G=xt(_e):x||(x=Ve&~d,x!==0&&(G=xt(x))))):(Ve=T&~J,Ve!==0?G=xt(Ve):_e!==0?G=xt(_e):x||(x=T&~d,x!==0&&(G=xt(x)))),G===0?0:g!==0&&g!==G&&(g&J)===0&&(J=G&-G,x=g&-g,J>=x||J===32&&(x&4194048)!==0)?g:G}function Ki(d,g){return(d.pendingLanes&~(d.suspendedLanes&~d.pingedLanes)&g)===0}function Wn(d,g){switch(d){case 1:case 2:case 4:case 8:case 64:return g+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 g+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hn(){var d=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),d}function Wi(d){for(var g=[],x=0;31>x;x++)g.push(d);return g}function Gi(d,g){d.pendingLanes|=g,g!==268435456&&(d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0)}function Ri(d,g,x,T,G,J){var _e=d.pendingLanes;d.pendingLanes=x,d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0,d.expiredLanes&=x,d.entangledLanes&=x,d.errorRecoveryDisabledLanes&=x,d.shellSuspendCounter=0;var Ve=d.entanglements,_t=d.expirationTimes,$t=d.hiddenUpdates;for(x=_e&~x;0<x;){var ln=31-$e(x),gn=1<<ln;Ve[ln]=0,_t[ln]=-1;var Zt=$t[ln];if(Zt!==null)for($t[ln]=null,ln=0;ln<Zt.length;ln++){var rn=Zt[ln];rn!==null&&(rn.lane&=-536870913)}x&=~gn}T!==0&&Qi(d,T,0),J!==0&&G===0&&d.tag!==0&&(d.suspendedLanes|=J&~(_e&~g))}function Qi(d,g,x){d.pendingLanes|=g,d.suspendedLanes&=~g;var T=31-$e(g);d.entangledLanes|=g,d.entanglements[T]=d.entanglements[T]|1073741824|x&261930}function Li(d,g){var x=d.entangledLanes|=g;for(d=d.entanglements;x;){var T=31-$e(x),G=1<<T;G&g|d[T]&g&&(d[T]|=g),x&=~G}}function Er(d,g){var x=g&-g;return x=(x&42)!==0?1:_o(x),(x&(d.suspendedLanes|g))!==0?0:x}function _o(d){switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=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:d=128;break;case 268435456:d=134217728;break;default:d=0}return d}function un(d){return d&=-d,2<d?8<d?(d&134217727)!==0?32:268435456:8:2}function tr(){var d=Ye.p;return d!==0?d:(d=window.event,d===void 0?32:w_(d.type))}function Wo(d,g){var x=Ye.p;try{return Ye.p=d,g()}finally{Ye.p=x}}var oa=Math.random().toString(36).slice(2),oo="__reactFiber$"+oa,kn="__reactProps$"+oa,Xi="__reactContainer$"+oa,ui="__reactEvents$"+oa,Ua="__reactListeners$"+oa,yA="__reactHandles$"+oa,Ml="__reactResources$"+oa,Yi="__reactMarker$"+oa;function qu(d){delete d[oo],delete d[kn],delete d[ui],delete d[Ua],delete d[yA]}function co(d){var g=d[oo];if(g)return g;for(var x=d.parentNode;x;){if(g=x[Xi]||x[oo]){if(x=g.alternate,g.child!==null||x!==null&&x.child!==null)for(d=om(d);d!==null;){if(x=d[oo])return x;d=om(d)}return g}d=x,x=d.parentNode}return null}function Ha(d){if(d=d[oo]||d[Xi]){var g=d.tag;if(g===5||g===6||g===13||g===31||g===26||g===27||g===3)return d}return null}function wl(d){var g=d.tag;if(g===5||g===26||g===27||g===6)return d.stateNode;throw Error(i(33))}function Ka(d){var g=d[Ml];return g||(g=d[Ml]={hoistableStyles:new Map,hoistableScripts:new Map}),g}function Do(d){d[Yi]=!0}var gc=new Set,Qo={};function mr(d,g){Fa(d,g),Fa(d+"Capture",g)}function Fa(d,g){for(Qo[d]=g,d=0;d<g.length;d++)gc.add(g[d])}var Zo=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\ Line truncated
`).replace(kg,"")}function Ey(d,g){return g=vb(g),vb(d)===g}function rs(d,g,x,T,G,J){switch(x){case"children":typeof T=="string"?g==="body"||g==="textarea"&&T===""||xo(d,T):(typeof T=="number"||typeof T=="bigint")&&g!=="body"&&xo(d,""+T);break;case"className":Al(d,"class",T);break;case"tabIndex":Al(d,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":Al(d,x,T);break;case"style":Es(d,T,J);break;case"data":if(g!=="object"){Al(d,"data",T);break}case"src":case"href":if(T===""&&(g!=="a"||x!=="href")){d.removeAttribute(x);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){d.removeAttribute(x);break}T=Ji(""+T),d.setAttribute(x,T);break;case"action":case"formAction":if(typeof T=="function"){d.setAttribute(x,"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}else typeof J=="function"&&(x==="formAction"?(g!=="input"&&rs(d,g,"name",G.name,G,null),rs(d,g,"formEncType",G.formEncType,G,null),rs(d,g,"formMethod",G.formMethod,G,null),rs(d,g,"formTarget",G.formTarget,G,null)):(rs(d,g,"encType",G.encType,G,null),rs(d,g,"method",G.method,G,null),rs(d,g,"target",G.target,G,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){d.removeAttribute(x);break}T=Ji(""+T),d.setAttribute(x,T);break;case"onClick":T!=null&&(d.onclick=Za);break;case"onScroll":T!=null&&no("scroll",d);break;case"onScrollEnd":T!=null&&no("scrollend",d);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(x=T.__html,x!=null){if(G.children!=null)throw Error(i(60));d.innerHTML=x}}break;case"multiple":d.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":d.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){d.removeAttribute("xlink:href");break}x=Ji(""+T),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?d.setAttribute(x,""+T):d.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":T&&typeof T!="function"&&typeof T!="symbol"?d.setAttribute(x,""):d.removeAttribute(x);break;case"capture":case"download":T===!0?d.setAttribute(x,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?d.setAttribute(x,T):d.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?d.setAttribute(x,T):d.removeAttribute(x);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?d.removeAttribute(x):d.setAttribute(x,T);break;case"popover":no("beforetoggle",d),no("toggle",d),Vc(d,"popover",T);break;case"xlinkActuate":za(d,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":za(d,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":za(d,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":za(d,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":za(d,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":za(d,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":za(d,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":za(d,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":za(d,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":Vc(d,"is",T);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=Xl.get(x)||x,Vc(d,x,T))}}function lc(d,g,x,T,G,J){switch(x){case"style":Es(d,T,J);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(x=T.__html,x!=null){if(G.children!=null)throw Error(i(60));d.innerHTML=x}}break;case"children":typeof T=="string"?xo(d,T):(typeof T=="number"||typeof T=="bigint")&&xo(d,""+T);break;case"onScroll":T!=null&&no("scroll",d);break;case"onScrollEnd":T!=null&&no("scrollend",d);break;case"onClick":T!=null&&(d.onclick=Za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
`+T.stack}}var Nn=Object.prototype.hasOwnProperty,Si=n.unstable_scheduleCallback,Un=n.unstable_cancelCallback,Ln=n.unstable_shouldYield,Tn=n.unstable_requestPaint,ti=n.unstable_now,Bn=n.unstable_getCurrentPriorityLevel,je=n.unstable_ImmediatePriority,H=n.unstable_UserBlockingPriority,j=n.unstable_NormalPriority,Q=n.unstable_LowPriority,he=n.unstable_IdlePriority,Me=n.log,Ne=n.unstable_setDisableYieldValue,Qe=null,it=null;function vt(f){if(typeof Me=="function"&&Ne(f),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Qe,f)}catch{}}var $e=Math.clz32?Math.clz32:Rt,ot=Math.log,b=Math.LN2;function Rt(f){return f>>>=0,f===0?32:31-(ot(f)/b|0)|0}var mn=256,bn=262144,Cn=4194304;function xt(f){var g=f&42;if(g!==0)return g;switch(f&-f){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 f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function Ci(f,g,x){var T=f.pendingLanes;if(T===0)return 0;var G=0,J=f.suspendedLanes,_e=f.pingedLanes;f=f.warmLanes;var Ve=T&134217727;return Ve!==0?(T=Ve&~J,T!==0?G=xt(T):(_e&=Ve,_e!==0?G=xt(_e):x||(x=Ve&~f,x!==0&&(G=xt(x))))):(Ve=T&~J,Ve!==0?G=xt(Ve):_e!==0?G=xt(_e):x||(x=T&~f,x!==0&&(G=xt(x)))),G===0?0:g!==0&&g!==G&&(g&J)===0&&(J=G&-G,x=g&-g,J>=x||J===32&&(x&4194048)!==0)?g:G}function Ki(f,g){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&g)===0}function Wn(f,g){switch(f){case 1:case 2:case 4:case 8:case 64:return g+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 g+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hn(){var f=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),f}function Qi(f){for(var g=[],x=0;31>x;x++)g.push(f);return g}function Wi(f,g){f.pendingLanes|=g,g!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Ri(f,g,x,T,G,J){var _e=f.pendingLanes;f.pendingLanes=x,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=x,f.entangledLanes&=x,f.errorRecoveryDisabledLanes&=x,f.shellSuspendCounter=0;var Ve=f.entanglements,_t=f.expirationTimes,$t=f.hiddenUpdates;for(x=_e&~x;0<x;){var ln=31-$e(x),gn=1<<ln;Ve[ln]=0,_t[ln]=-1;var Zt=$t[ln];if(Zt!==null)for($t[ln]=null,ln=0;ln<Zt.length;ln++){var rn=Zt[ln];rn!==null&&(rn.lane&=-536870913)}x&=~gn}T!==0&&qi(f,T,0),J!==0&&G===0&&f.tag!==0&&(f.suspendedLanes|=J&~(_e&~g))}function qi(f,g,x){f.pendingLanes|=g,f.suspendedLanes&=~g;var T=31-$e(g);f.entangledLanes|=g,f.entanglements[T]=f.entanglements[T]|1073741824|x&261930}function Li(f,g){var x=f.entangledLanes|=g;for(f=f.entanglements;x;){var T=31-$e(x),G=1<<T;G&g|f[T]&g&&(f[T]|=g),x&=~G}}function Er(f,g){var x=g&-g;return x=(x&42)!==0?1:xo(x),(x&(f.suspendedLanes|g))!==0?0:x}function xo(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=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:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function un(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function tr(){var f=Ye.p;return f!==0?f:(f=window.event,f===void 0?32:M_(f.type))}function Wo(f,g){var x=Ye.p;try{return Ye.p=f,g()}finally{Ye.p=x}}var ra=Math.random().toString(36).slice(2),oo="__reactFiber$"+ra,kn="__reactProps$"+ra,Xi="__reactContainer$"+ra,ui="__reactEvents$"+ra,Ka="__reactListeners$"+ra,yA="__reactHandles$"+ra,xl="__reactResources$"+ra,Vi="__reactMarker$"+ra;function Qu(f){delete f[oo],delete f[kn],delete f[ui],delete f[Ka],delete f[yA]}function co(f){var g=f[oo];if(g)return g;for(var x=f.parentNode;x;){if(g=x[Xi]||x[oo]){if(x=g.alternate,g.child!==null||x!==null&&x.child!==null)for(f=om(f);f!==null;){if(x=f[oo])return x;f=om(f)}return g}f=x,x=f.parentNode}return null}function $a(f){if(f=f[oo]||f[Xi]){var g=f.tag;if(g===5||g===6||g===13||g===31||g===26||g===27||g===3)return f}return null}function Ml(f){var g=f.tag;if(g===5||g===26||g===27||g===6)return f.stateNode;throw Error(i(33))}function Fa(f){var g=f[xl];return g||(g=f[xl]={hoistableStyles:new Map,hoistableScripts:new Map}),g}function Ro(f){f[Vi]=!0}var gc=new Set,Qo={};function mr(f,g){za(f,g),za(f+"Capture",g)}function za(f,g){for(Qo[f]=g,f=0;f<g.length;f++)gc.add(g[f])}var Zo=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\ Line truncated
`).replace(D0,"")}function Sy(f,g){return g=yb(g),yb(f)===g}function rs(f,g,x,T,G,J){switch(x){case"children":typeof T=="string"?g==="body"||g==="textarea"&&T===""||Mo(f,T):(typeof T=="number"||typeof T=="bigint")&&g!=="body"&&Mo(f,""+T);break;case"className":cl(f,"class",T);break;case"tabIndex":cl(f,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":cl(f,x,T);break;case"style":Es(f,T,J);break;case"data":if(g!=="object"){cl(f,"data",T);break}case"src":case"href":if(T===""&&(g!=="a"||x!=="href")){f.removeAttribute(x);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){f.removeAttribute(x);break}T=Ji(""+T),f.setAttribute(x,T);break;case"action":case"formAction":if(typeof T=="function"){f.setAttribute(x,"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}else typeof J=="function"&&(x==="formAction"?(g!=="input"&&rs(f,g,"name",G.name,G,null),rs(f,g,"formEncType",G.formEncType,G,null),rs(f,g,"formMethod",G.formMethod,G,null),rs(f,g,"formTarget",G.formTarget,G,null)):(rs(f,g,"encType",G.encType,G,null),rs(f,g,"method",G.method,G,null),rs(f,g,"target",G.target,G,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){f.removeAttribute(x);break}T=Ji(""+T),f.setAttribute(x,T);break;case"onClick":T!=null&&(f.onclick=Ha);break;case"onScroll":T!=null&&no("scroll",f);break;case"onScrollEnd":T!=null&&no("scrollend",f);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(x=T.__html,x!=null){if(G.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"multiple":f.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":f.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){f.removeAttribute("xlink:href");break}x=Ji(""+T),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?f.setAttribute(x,""+T):f.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":T&&typeof T!="function"&&typeof T!="symbol"?f.setAttribute(x,""):f.removeAttribute(x);break;case"capture":case"download":T===!0?f.setAttribute(x,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?f.setAttribute(x,T):f.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?f.setAttribute(x,T):f.removeAttribute(x);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?f.removeAttribute(x):f.setAttribute(x,T);break;case"popover":no("beforetoggle",f),no("toggle",f),Vc(f,"popover",T);break;case"xlinkActuate":ja(f,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":ja(f,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":ja(f,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":ja(f,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":ja(f,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":ja(f,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":ja(f,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":ja(f,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":ja(f,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":Vc(f,"is",T);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=Zl.get(x)||x,Vc(f,x,T))}}function ac(f,g,x,T,G,J){switch(x){case"style":Es(f,T,J);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(x=T.__html,x!=null){if(G.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"children":typeof T=="string"?Mo(f,T):(typeof T=="number"||typeof T=="bigint")&&Mo(f,""+T);break;case"onScroll":T!=null&&no("scroll",f);break;case"onScrollEnd":T!=null&&no("scrollend",f);break;case"onClick":T!=null&&(f.onclick=Ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
/* [wrapped with `+R+`] */
`)}function Yv(M){return gr(M)||ef(M)||!!(Fp&&M&&M[Fp])}function gh(M,R){var V=typeof M;return R=R??At,!!R&&(V=="number"||V!="symbol"&&qu.test(M))&&M>-1&&M%1==0&&M<R}function cu(M,R,V){if(!vs(V))return!1;var de=typeof R;return(de=="number"?ac(V)&&gh(R,V.length):de=="string"&&R in V)?zl(V[R],M):!1}function mg(M,R){if(gr(M))return!1;var V=typeof M;return V=="number"||V=="symbol"||V=="boolean"||M==null||Tu(M)?!0:Gi.test(M)||!Wi.test(M)||R!=null&&M in Po(R)}function sy(M){var R=typeof M;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?M!=="__proto__":M===null}function Hp(M){var R=Ws(M),V=qe[R];if(typeof V!="function"||!(R in ur.prototype))return!1;if(M===V)return!0;var de=z0(V);return!!de&&M===de[0]}function Vv(M){return!!Kp&&Kp in M}var G0=Gh?Kc:Zt;function ad(M){var R=M&&M.constructor,V=typeof R=="function"&&R.prototype||_c;return M===V}function Xs(M){return M===M&&!vs(M)}function W0(M,R){return function(V){return V==null?!1:V[M]===R&&(R!==t||M in Po(V))}}function $v(M){var R=Bg(M,function(de){return V.size===f&&V.clear(),de}),V=R.cache;return R}function e_(M,R){var V=M[1],de=R[1],Pe=V|de,et=Pe<(z|Y|q),mt=de==q&&V==X||de==q&&V==le&&M[7].length<=R[8]||de==(q|le)&&R[7].length<=R[8]&&V==X;if(!(et||mt))return M;de&z&&(M[2]=R[2],Pe|=V&z?0:Z);var Bt=R[3];if(Bt){var Lt=M[3];M[3]=Lt?Eo(Lt,Bt,R[4]):Bt,M[4]=Lt?th(M[3],m):R[4]}return Bt=R[5],Bt&&(Lt=M[5],M[5]=Lt?po(Lt,Bt,R[6]):Bt,M[6]=Lt?th(M[5],m):R[6]),Bt=R[7],Bt&&(M[7]=Bt),de&q&&(M[8]=M[8]==null?R[8]:js(M[8],R[8])),M[9]==null&&(M[9]=R[9]),M[0]=R[0],M[1]=Pe,M}function ld(M){var R=[];if(M!=null)for(var V in Po(M))R.push(V);return R}function Hv(M){return Tl.call(M)}function Zv(M,R,V){return R=ms(R===t?M.length-1:R,0),function(){for(var de=arguments,Pe=-1,et=ms(de.length-R,0),mt=tn(et);++Pe<et;)mt[Pe]=de[R+Pe];Pe=-1;for(var Bt=tn(R+1);++Pe<R;)Bt[Pe]=de[Pe];return Bt[R]=V(mt),fs(M,this,Bt)}}function gg(M,R){return R.length<2?M:nc(M,N(R,0,-1))}function Q0(M,R){for(var V=M.length,de=js(R.length,V),Pe=kr(M);de--;){var et=R[de];M[de]=gh(et,V)?Pe[et]:t}return M}function ns(M,R){if(!(R==="constructor"&&typeof M[R]=="function")&&R!="__proto__")return M[R]}var Xv=Yd(S),yg=Qh||function(M,R){return qn.setTimeout(M,R)},ay=Yd(k);function vg(M,R,V){var de=R+"";return ay(M,oy(de,bg(iy(de),V)))}function Yd(M){var R=0,V=0;return function(){var de=Ja(),Pe=we-(de-V);if(V=de,Pe>0){if(++R>=Ee)return arguments[0]}else R=0;return M.apply(t,arguments)}}function Gf(M,R){var V=-1,de=M.length,Pe=de-1;for(R=R===t?de:R;++V<R;){var et=nd(V,Pe),mt=M[et];M[et]=M[V],M[V]=mt}return M.length=R,M}var q0=$v(function(M){var R=[];return M.charCodeAt(0)===46&&R.push(""),M.replace(Ri,function(V,de,Pe,et){R.push(Pe?et.replace(kn,"$1"):de||V)}),R});function oc(M){if(typeof M=="string"||Tu(M))return M;var R=M+"";return R=="0"&&1/M==-Ye?"-0":R}function Ea(M){if(M!=null){try{return rh.call(M)}catch{}try{return M+""}catch{}}return""}function bg(M,R){return Su(St,function(V){var de="_."+V[0];R&V[1]&&!vA(M,de)&&M.push(de)}),M.sort()}function ly(M){if(M instanceof ur)return M.clone();var R=new xa(M.__wrapped__,M.__chain__);return R.__actions__=kr(M.__actions__),R.__index__=M.__index__,R.__values__=M.__values__,R}function t_(M,R,V){(V?cu(M,R,V):R===t)?R=1:R=ms(Di(R),0);var de=M==null?0:M.length;if(!de||R<1)return[];for(var Pe=0,et=0,mt=tn(kf(de/R));Pe<de;)mt[et++]=N(M,Pe,Pe+=R);return mt}function Jv(M){for(var R=-1,V=M==null?0:M.length,de=0,Pe=[];++R<V;){var et=M[R];et&&(Pe[de++]=et)}return Pe}function eb(){var M=arguments.length;if(!M)return[];for(var R=tn(M-1),V=arguments[0],de=M;de--;)R[de-1]=arguments[de];return So(gr(V)?kr(V):[V],ua(R,1))}var uy=I(function(M,R){return Na(M)?ec(M,ua(R,1,Na,!0)):[]}),n_=I(function(M,R){var V=is(R);return Na(V)&&(V=t),Na(M)?ec(M,ua(R,1,Na,!0),ir(V,2)):[]}),Vd=I(function(M,R){var V=is(R);return Na(V)&&(V=t),Na(M)?ec(M,ua(R,1,Na,!0),t,V):[]});function Ba(M,R,V){var de=M==null?0:M.length;return de?(R=V||R===t?1:Di(R),N(M,R<0?0:R,de)):[]}function tb(M,R,V){var de=M==null?0:M.length;return de?(R=V||R===t?1:Di(R),R=de-R,N(M,0,R<0?0:R)):[]}function nb(M,R){return M&&M.length?tt(M,ir(R,3),!0,!0):[]}function Oa(M,R){return M&&M.length?tt(M,ir(R,3),!0):[]}function H2(M,R,V,de){var Pe=M==null?0:M.length;return Pe?(V&&typeof V!="number"&&cu(M,R,V)&&(V=0,de=Pe),Zh(M,R,V,de)):[]}function Qs(M,R,V){var de=M==null?0:M.length;if(!de)return-1;var Pe=V==null?0:Di(V);return Pe<0&&(Pe=ms(de+Pe,0)),Ef(M,ir(R,3),Pe)}function Wf(M,R,V){var de=M==null?0:M.length;if(!de)return-1;var Pe=de-1;return V!==t&&(Pe=Di(V),Pe=V<0?ms(de+Pe,0):js(Pe,de-1)),Ef(M,ir(R,3),Pe,!0)}function Ds(M){var R=M==null?0:M.length;return R?ua(M,1):[]}function Au(M){var R=M==null?0:M.length;return R?ua(M,Ye):[]}function UA(M,R){var V=M==null?0:M.length;return V?(R=R===t?1:Di(R),ua(M,R)):[]}function Cg(M){for(var R=-1,V=M==null?0:M.length,de={};++R<V;){var Pe=M[R];de[Pe[0]]=Pe[1]}return de}function cy(M){return M&&M.length?M[0]:t}function ib(M,R,V){var de=M==null?0:M.length;if(!de)return-1;var Pe=V==null?0:Di(V);return Pe<0&&(Pe Line truncated
`;M.replace(A,function(O,D,F,W,ee,ae){return F||(F=W),l+=M.slice(wn,ae).replace(wl,kp),D&&(Bt=!0,l+=`' +
`)}function qv(w){return gr(w)||tf(w)||!!(Fp&&w&&w[Fp])}function gh(w,R){var Y=typeof w;return R=R??At,!!R&&(Y=="number"||Y!="symbol"&&Qu.test(w))&&w>-1&&w%1==0&&w<R}function uu(w,R,Y){if(!vs(Y))return!1;var de=typeof R;return(de=="number"?sc(Y)&&gh(R,Y.length):de=="string"&&R in Y)?Fl(Y[R],w):!1}function g0(w,R){if(gr(w))return!1;var Y=typeof w;return Y=="number"||Y=="symbol"||Y=="boolean"||w==null||Iu(w)?!0:Wi.test(w)||!Qi.test(w)||R!=null&&w in Lo(R)}function oy(w){var R=typeof w;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?w!=="__proto__":w===null}function Hp(w){var R=Ws(w),Y=qe[R];if(typeof Y!="function"||!(R in ur.prototype))return!1;if(w===Y)return!0;var de=Fg(Y);return!!de&&w===de[0]}function Yv(w){return!!Kp&&Kp in w}var Ng=Gh?Kc:Zt;function ad(w){var R=w&&w.constructor,Y=typeof R=="function"&&R.prototype||_c;return w===Y}function Xs(w){return w===w&&!vs(w)}function Gg(w,R){return function(Y){return Y==null?!1:Y[w]===R&&(R!==t||w in Lo(Y))}}function Vv(w){var R=O0(w,function(de){return Y.size===d&&Y.clear(),de}),Y=R.cache;return R}function JC(w,R){var Y=w[1],de=R[1],Pe=Y|de,et=Pe<(z|V|q),gt=de==q&&Y==X||de==q&&Y==le&&w[7].length<=R[8]||de==(q|le)&&R[7].length<=R[8]&&Y==X;if(!(et||gt))return w;de&z&&(w[2]=R[2],Pe|=Y&z?0:Z);var Bt=R[3];if(Bt){var Lt=w[3];w[3]=Lt?Bo(Lt,Bt,R[4]):Bt,w[4]=Lt?th(w[3],m):R[4]}return Bt=R[5],Bt&&(Lt=w[5],w[5]=Lt?po(Lt,Bt,R[6]):Bt,w[6]=Lt?th(w[5],m):R[6]),Bt=R[7],Bt&&(w[7]=Bt),de&q&&(w[8]=w[8]==null?R[8]:js(w[8],R[8])),w[9]==null&&(w[9]=R[9]),w[0]=R[0],w[1]=Pe,w}function ld(w){var R=[];if(w!=null)for(var Y in Lo(w))R.push(Y);return R}function $v(w){return Il.call(w)}function Hv(w,R,Y){return R=ms(R===t?w.length-1:R,0),function(){for(var de=arguments,Pe=-1,et=ms(de.length-R,0),gt=tn(et);++Pe<et;)gt[Pe]=de[R+Pe];Pe=-1;for(var Bt=tn(R+1);++Pe<R;)Bt[Pe]=de[Pe];return Bt[R]=Y(gt),fs(w,this,Bt)}}function y0(w,R){return R.length<2?w:tc(w,N(R,0,-1))}function Wg(w,R){for(var Y=w.length,de=js(R.length,Y),Pe=kr(w);de--;){var et=R[de];w[de]=gh(et,Y)?Pe[et]:t}return w}function ns(w,R){if(!(R==="constructor"&&typeof w[R]=="function")&&R!="__proto__")return w[R]}var Zv=Vd(S),v0=Qh||function(w,R){return qn.setTimeout(w,R)},sy=Vd(k);function b0(w,R,Y){var de=R+"";return sy(w,ry(de,C0(ny(de),Y)))}function Vd(w){var R=0,Y=0;return function(){var de=Xa(),Pe=xe-(de-Y);if(Y=de,Pe>0){if(++R>=Ee)return arguments[0]}else R=0;return w.apply(t,arguments)}}function Gf(w,R){var Y=-1,de=w.length,Pe=de-1;for(R=R===t?de:R;++Y<R;){var et=nd(Y,Pe),gt=w[et];w[et]=w[Y],w[Y]=gt}return w.length=R,w}var Qg=Vv(function(w){var R=[];return w.charCodeAt(0)===46&&R.push(""),w.replace(Ri,function(Y,de,Pe,et){R.push(Pe?et.replace(kn,"$1"):de||Y)}),R});function rc(w){if(typeof w=="string"||Iu(w))return w;var R=w+"";return R=="0"&&1/w==-Ye?"-0":R}function Ea(w){if(w!=null){try{return rh.call(w)}catch{}try{return w+""}catch{}}return""}function C0(w,R){return wu(St,function(Y){var de="_."+Y[0];R&Y[1]&&!vA(w,de)&&w.push(de)}),w.sort()}function ay(w){if(w instanceof ur)return w.clone();var R=new xa(w.__wrapped__,w.__chain__);return R.__actions__=kr(w.__actions__),R.__index__=w.__index__,R.__values__=w.__values__,R}function e_(w,R,Y){(Y?uu(w,R,Y):R===t)?R=1:R=ms(Di(R),0);var de=w==null?0:w.length;if(!de||R<1)return[];for(var Pe=0,et=0,gt=tn(kf(de/R));Pe<de;)gt[et++]=N(w,Pe,Pe+=R);return gt}function Xv(w){for(var R=-1,Y=w==null?0:w.length,de=0,Pe=[];++R<Y;){var et=w[R];et&&(Pe[de++]=et)}return Pe}function Jv(){var w=arguments.length;if(!w)return[];for(var R=tn(w-1),Y=arguments[0],de=w;de--;)R[de-1]=arguments[de];return Eo(gr(Y)?kr(Y):[Y],la(R,1))}var ly=I(function(w,R){return Ga(w)?Ju(w,la(R,1,Ga,!0)):[]}),t_=I(function(w,R){var Y=is(R);return Ga(Y)&&(Y=t),Ga(w)?Ju(w,la(R,1,Ga,!0),ir(Y,2)):[]}),$d=I(function(w,R){var Y=is(R);return Ga(Y)&&(Y=t),Ga(w)?Ju(w,la(R,1,Ga,!0),t,Y):[]});function Ba(w,R,Y){var de=w==null?0:w.length;return de?(R=Y||R===t?1:Di(R),N(w,R<0?0:R,de)):[]}function eb(w,R,Y){var de=w==null?0:w.length;return de?(R=Y||R===t?1:Di(R),R=de-R,N(w,0,R<0?0:R)):[]}function tb(w,R){return w&&w.length?tt(w,ir(R,3),!0,!0):[]}function Oa(w,R){return w&&w.length?tt(w,ir(R,3),!0):[]}function H2(w,R,Y,de){var Pe=w==null?0:w.length;return Pe?(Y&&typeof Y!="number"&&uu(w,R,Y)&&(Y=0,de=Pe),Zh(w,R,Y,de)):[]}function Qs(w,R,Y){var de=w==null?0:w.length;if(!de)return-1;var Pe=Y==null?0:Di(Y);return Pe<0&&(Pe=ms(de+Pe,0)),Ef(w,ir(R,3),Pe)}function Wf(w,R,Y){var de=w==null?0:w.length;if(!de)return-1;var Pe=de-1;return Y!==t&&(Pe=Di(Y),Pe=Y<0?ms(de+Pe,0):js(Pe,de-1)),Ef(w,ir(R,3),Pe,!0)}function Ds(w){var R=w==null?0:w.length;return R?la(w,1):[]}function cu(w){var R=w==null?0:w.length;return R?la(w,Ye):[]}function UA(w,R){var Y=w==null?0:w.length;return Y?(R=R===t?1:Di(R),la(w,R)):[]}function _0(w){for(var R=-1,Y=w==null?0:w.length,de={};++R<Y;){var Pe=w[R];de[Pe[0]]=Pe[1]}return de}function uy(w){return w&&w.length?w[0]:t}function nb(w,R,Y){var de=w==null?0:w.length;if(!de)return-1;var Pe=Y==null?0:Di(Y);return Pe<0&&(Pe Line truncated
`;w.replace(A,function(O,D,F,W,ee,ae){return F||(F=W),l+=w.slice(wn,ae).replace(Ml,kp),D&&(Bt=!0,l+=`' +
__e(`+D+`) +
'`),ee&&(Lt=!0,l+=`';
`+ee+`;
@@ -25,10 +25,10 @@ __p += '`),F&&(l+=`' +
function print() { __p += __j.call(arguments, '') }
`:`;
`)+l+`return __p
}`;var E=hm(function(){return Fr(et,y+"return "+l).apply(t,mt)});if(E.source=l,l1(E))throw E;return E}function nf(M){return cr(M).toLowerCase()}function rf(M){return cr(M).toUpperCase()}function np(M,R,V){if(M=cr(M),M&&(V||R===t))return bc(M);if(!M||!(R=Se(R)))return M;var de=Bs(M),Pe=Bs(R),et=Ip(de,Pe),mt=Tp(de,Pe)+1;return Ft(de,et,mt).join("")}function f1(M,R,V){if(M=cr(M),M&&(V||R===t))return M.slice(0,nh(M)+1);if(!M||!(R=Se(R)))return M;var de=Bs(M),Pe=Tp(de,Bs(R))+1;return Ft(de,0,Pe).join("")}function p1(M,R,V){if(M=cr(M),M&&(V||R===t))return M.replace(Er,"");if(!M||!(R=Se(R)))return M;var de=Bs(M),Pe=Ip(de,Bs(R));return Ft(de,Pe).join("")}function ip(M,R){var V=ve,de=ge;if(vs(R)){var Pe="separator"in R?R.separator:Pe;V="length"in R?Di(R.length):V,de="omission"in R?Se(R.omission):de}M=cr(M);var et=M.length;if(Fh(M)){var mt=Bs(M);et=mt.length}if(V>=et)return M;var Bt=V-jh(de);if(Bt<1)return de;var Lt=mt?Ft(mt,0,Bt).join(""):M.slice(0,Bt);if(Pe===t)return Lt+de;if(mt&&(Bt+=Lt.length-Bt),Rg(Pe)){if(M.slice(Bt).search(Pe)){var wn,h=Lt;for(Pe.global||(Pe=Vr(Pe.source,cr(ui.exec(Pe))+"g")),Pe.lastIndex=0;wn=Pe.exec(h);)var l=wn.index;Lt=Lt.slice(0,l===t?Bt:l)}}else if(M.indexOf(Se(Pe),Bt)!=Bt){var A=Lt.lastIndexOf(Pe);A>-1&&(Lt=Lt.slice(0,A))}return Lt+de}function a3(M){return M=cr(M),M&&xt.test(M)?M.replace(bn,Cc):M}var Pb=Iu(function(M,R,V){return M+(V?" ":"")+R.toUpperCase()}),AA=Dc("toUpperCase");function S_(M,R,V){return M=cr(M),R=V?t:R,R===t?Dp(M)?ng(M):Zm(M):M.match(R)||[]}var hm=I(function(M,R){try{return fs(M,t,R)}catch(V){return l1(V)?V:new pr(V)}}),jy=Rc(function(M,R){return Su(R,function(V){V=oc(V),Ju(M,V,yy(M[V],M))}),M});function E_(M){var R=M==null?0:M.length,V=ir();return M=R?qo(M,function(de){if(typeof de[1]!="function")throw new Il(s);return[V(de[0]),de[1]]}):[],I(function(de){for(var Pe=-1;++Pe<R;){var et=M[Pe];if(fs(et[0],this,de))return fs(et[1],this,de)}})}function l3(M){return Qp(ru(M,v))}function rp(M){return function(){return M}}function m1(M,R){return M==null||M!==M?R:M}var B_=au(),jg=au(!0);function Ru(M){return M}function Ng(M){return RA(typeof M=="function"?M:ru(M,v))}function Ny(M){return Qd(ru(M,v))}function Lb(M,R){return qd(M,ru(R,v))}var O_=I(function(M,R){return function(V){return Ic(V,M,R)}}),Gy=I(function(M,R){return function(V){return Ic(M,V,R)}});function d(M,R,V){var de=yl(R),Pe=tl(R,de);V==null&&!(vs(R)&&(Pe.length||!de.length))&&(V=R,R=M,M=this,Pe=tl(R,yl(R)));var et=!(vs(V)&&"chain"in V)||!!V.chain,mt=Kc(M);return Su(Pe,function(Bt){var Lt=R[Bt];M[Bt]=Lt,mt&&(M.prototype[Bt]=function(){var wn=this.__chain__;if(et||wn){var h=M(this.__wrapped__),l=h.__actions__=kr(this.__actions__);return l.push({func:Lt,args:arguments,thisArg:M}),h.__chain__=wn,h}return Lt.apply(M,So([this.value()],arguments))})}),M}function g(){return qn._===this&&(qn._=eu),this}function x(){}function T(M){return M=Di(M),I(function(R){return Kf(R,M)})}var G=lu(qo),J=lu(Hc),_e=lu(Hm);function Ve(M){return mg(M)?Ph(oc(M)):gs(M)}function _t(M){return function(R){return M==null?t:nc(M,R)}}var $t=Fl(),ln=Fl(!0);function gn(){return[]}function Zt(){return!1}function rn(){return{}}function Mi(){return""}function er(){return!0}function Fo(M,R){if(M=Di(M),M<1||M>At)return[];var V=De,de=js(M,De);R=ir(R),M-=De;for(var Pe=Kd(de,R);++V<M;)R(V);return Pe}function Pt(M){return gr(M)?qo(M,oc):Tu(M)?[M]:kr(q0(cr(M)))}function It(M){var R=++D0;return cr(M)+R}var qt=ca(function(M,R){return M+R},0),hn=zf("ceil"),gi=ca(function(M,R){return M/R},1),yo=zf("floor");function zi(M){return M&&M.length?Oc(M,Ru,DA):t}function Br(M,R){return M&&M.length?Oc(M,ir(R,2),DA):t}function Hr(M){return zs(M,Ru)}function To(M,R){return zs(M,ir(R,2))}function of(M){return M&&M.length?Oc(M,Ru,cs):t}function I_(M,R){return M&&M.length?Oc(M,ir(R,2),cs):t}var AO=ca(function(M,R){return M*R},1),N5=zf("round"),u3=ca(function(M,R){return M-R},0);function c3(M){return M&&M.length?Xm(M,Ru):0}function G5(M,R){return M&&M.length?Xm(M,ir(R,2)):0}return qe.after=A_,qe.ary=fb,qe.assign=_b,qe.assignIn=ku,qe.assignInWith=Js,qe.assignWith=Ty,qe.at=FA,qe.before=pb,qe.bind=yy,qe.bindAll=jy,qe.bindKey=vy,qe.castArray=o3,qe.chain=em,qe.chunk=t_,qe.compact=Jv,qe.concat=eb,qe.cond=E_,qe.conforms=l3,qe.constant=rp,qe.countBy=ub,qe.create=ky,qe.curry=nm,qe.curryRight=by,qe.debounce=Ad,qe.defaults=Xf,qe.defaultsDeep=om,qe.defer=Io,qe.delay=i1,qe.difference=uy,qe.differenceBy=n_,qe.differenceWith=Vd,qe.drop=Ba,qe.dropRight=tb,qe.dropRightWhile=nb,qe.dropWhile=Oa,qe.fill=H2,qe.filter=cb,qe.flatMap=Uc,qe.flatMapDeep=l_,qe.flatMapDepth=Ab,qe.flatten=Ds,qe.flattenDeep=Au,qe.flattenDepth=UA,qe.flip=n3,qe.flow=B_,qe.flowRight=jg,qe.fromPairs=Cg,qe.functions=Mb,qe.functionsIn=Du,qe.groupBy=e1,qe.initial=Y0,qe.intersection=_g,qe.intersectionBy=ml,qe.intersectionWith=Pc,qe.invert=Dy,qe.invertBy=wb,qe.invokeMap=vh,qe.iteratee=Ng,qe.keyBy=py,qe.keys=yl,qe.keysIn=uc,qe.map=Sg,qe.mapKeys=g_,qe.mapValues=Ry,qe.matches=Ny,qe.matchesProperty=Lb,qe.memoize=Bg,qe.merge=tf,qe.merge Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(v[1])} }\`.`)];const w=[];return n.layerType==="symbol"&&a==="text-font"&&e5(EC(s))&&ql(s.type)==="identity"&&w.push(new jn(t,s,'"text-font" does not support identity functions')),w.concat(i({key:n.key,value:s,valueSpec:m,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function yX(n){return gX(n,"paint")}function vX(n){return gX(n,"layout")}function bX(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(uo(t)!=="object")return[new jn(i,t,`object expected, ${uo(t)} found`)];!t.type&&!t.ref&&e.push(new jn(i,t,'either "type" or "ref" is required'));let s=ql(t.type);const a=ql(t.ref);if(t.id){const c=ql(t.id);for(let f=0;f<n.arrayIndex;f++){const m=r.layers[f];ql(m.id)===c&&e.push(new jn(i,t.id,`duplicate layer id "${t.id}", previously used at line ${m.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(f=>{f in t&&e.push(new jn(i,t[f],`"${f}" is prohibited for ref layers`))});let c;r.layers.forEach(f=>{ql(f.id)===a&&(c=f)}),c?c.ref?e.push(new jn(i,t.ref,"ref cannot reference another ref layer")):s=ql(c.type):e.push(new jn(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new jn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],f=c&&ql(c.type);c?f==="vector"&&s==="raster"?e.push(new jn(i,t.source,`layer "${t.id}" requires a raster source`)):f!=="raster-dem"&&s==="hillshade"?e.push(new jn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):f!=="raster-dem"&&s==="color-relief"?e.push(new jn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):f==="raster"&&s!=="raster"?e.push(new jn(i,t.source,`layer "${t.id}" requires a vector source`)):f==="vector"&&!t["source-layer"]?e.push(new jn(i,t,`layer "${t.id}" must specify a "source-layer"`)):f==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new jn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(f!=="geojson"||!c.lineMetrics)&&e.push(new jn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new jn(i,t.source,`source "${t.source}" not found`))}return e=e.concat(mp({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:GP,layout(c){return mp({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(f){return vX(s2({layerType:s},f))}}})},paint(c){return mp({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(f){return yX(s2({layerType:s},f))}}})}}})),e}function BC(n){const e=n.value,t=n.key,i=uo(e);return i!=="string"?[new jn(t,e,`string expected, ${i} found`)]:[]}function Ohe(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const c=uo(i);if(i===void 0)return a;if(c!=="object")return a.push(new jn("source_raster_dem",i,`object expected, ${c} found`)),a;const m=ql(i.encoding)==="custom",v=["redFactor","greenFactor","blueFactor","baseShift"],w=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const B in i)!m&&v.includes(B)?a.push(new jn(B,i[B],`In "${t}": "${B}" is only valid when "encoding" is set to "custom". ${w} encoding found`)):o[B]?a=a.concat(n.validateSpec({key:B,value:i[B],valueSpec:o[B],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new jn(B,i[B],`unknown property "${B}"`));return a}const xz={promoteId:Ihe};function CX(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new jn(t,e,'"type" is required')];const s=ql(e.type);let a;switch(s){case"vector":case"raster":return a=mp({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:xz,validateSpec:o}),a;case"raster-dem":return a=Ohe({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=mp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:xz}),e.cluster)for(const c in e.clusterProperties){const[f,m]=e.clusterProperties[c],v=typeof f=="string"?[f,["accumulated"],["get",c]]:f;a.push(...u2({key:`${t}.${c}.map`,value:m,expressionContext:"cluster-map"})),a.push(...u2({key:`${t}.${c}.reduce`,value:v,expressionContext:"cluster-reduce"}))}return a;case"video":return mp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:o,styleSpec:i});case"image":return mp({key:t,value:e,valueSpec:i.source_image,style:r,validateSpec:o,styleSpec:Line truncated
}`;var E=hm(function(){return Fr(et,y+"return "+l).apply(t,gt)});if(E.source=l,a1(E))throw E;return E}function rf(w){return cr(w).toLowerCase()}function of(w){return cr(w).toUpperCase()}function np(w,R,Y){if(w=cr(w),w&&(Y||R===t))return bc(w);if(!w||!(R=Se(R)))return w;var de=Bs(w),Pe=Bs(R),et=Ip(de,Pe),gt=Tp(de,Pe)+1;return Ft(de,et,gt).join("")}function d1(w,R,Y){if(w=cr(w),w&&(Y||R===t))return w.slice(0,nh(w)+1);if(!w||!(R=Se(R)))return w;var de=Bs(w),Pe=Tp(de,Bs(R))+1;return Ft(de,0,Pe).join("")}function f1(w,R,Y){if(w=cr(w),w&&(Y||R===t))return w.replace(Er,"");if(!w||!(R=Se(R)))return w;var de=Bs(w),Pe=Ip(de,Bs(R));return Ft(de,Pe).join("")}function ip(w,R){var Y=ve,de=ge;if(vs(R)){var Pe="separator"in R?R.separator:Pe;Y="length"in R?Di(R.length):Y,de="omission"in R?Se(R.omission):de}w=cr(w);var et=w.length;if(Fh(w)){var gt=Bs(w);et=gt.length}if(Y>=et)return w;var Bt=Y-jh(de);if(Bt<1)return de;var Lt=gt?Ft(gt,0,Bt).join(""):w.slice(0,Bt);if(Pe===t)return Lt+de;if(gt&&(Bt+=Lt.length-Bt),P0(Pe)){if(w.slice(Bt).search(Pe)){var wn,h=Lt;for(Pe.global||(Pe=Vr(Pe.source,cr(ui.exec(Pe))+"g")),Pe.lastIndex=0;wn=Pe.exec(h);)var l=wn.index;Lt=Lt.slice(0,l===t?Bt:l)}}else if(w.indexOf(Se(Pe),Bt)!=Bt){var A=Lt.lastIndexOf(Pe);A>-1&&(Lt=Lt.slice(0,A))}return Lt+de}function a3(w){return w=cr(w),w&&xt.test(w)?w.replace(bn,Cc):w}var Rb=Ou(function(w,R,Y){return w+(Y?" ":"")+R.toUpperCase()}),AA=Dc("toUpperCase");function w_(w,R,Y){return w=cr(w),R=Y?t:R,R===t?Dp(w)?i0(w):Xm(w):w.match(R)||[]}var hm=I(function(w,R){try{return fs(w,t,R)}catch(Y){return a1(Y)?Y:new pr(Y)}}),zy=Rc(function(w,R){return wu(R,function(Y){Y=rc(Y),Xu(w,Y,gy(w[Y],w))}),w});function S_(w){var R=w==null?0:w.length,Y=ir();return w=R?qo(w,function(de){if(typeof de[1]!="function")throw new Ol(s);return[Y(de[0]),de[1]]}):[],I(function(de){for(var Pe=-1;++Pe<R;){var et=w[Pe];if(fs(et[0],this,de))return fs(et[1],this,de)}})}function l3(w){return Qp(iu(w,v))}function rp(w){return function(){return w}}function p1(w,R){return w==null||w!==w?R:w}var E_=su(),N0=su(!0);function Du(w){return w}function G0(w){return RA(typeof w=="function"?w:iu(w,v))}function jy(w){return qd(iu(w,v))}function Pb(w,R){return Yd(w,iu(R,v))}var B_=I(function(w,R){return function(Y){return Ic(Y,w,R)}}),Ny=I(function(w,R){return function(Y){return Ic(w,Y,R)}});function f(w,R,Y){var de=gl(R),Pe=el(R,de);Y==null&&!(vs(R)&&(Pe.length||!de.length))&&(Y=R,R=w,w=this,Pe=el(R,gl(R)));var et=!(vs(Y)&&"chain"in Y)||!!Y.chain,gt=Kc(w);return wu(Pe,function(Bt){var Lt=R[Bt];w[Bt]=Lt,gt&&(w.prototype[Bt]=function(){var wn=this.__chain__;if(et||wn){var h=w(this.__wrapped__),l=h.__actions__=kr(this.__actions__);return l.push({func:Lt,args:arguments,thisArg:w}),h.__chain__=wn,h}return Lt.apply(w,Eo([this.value()],arguments))})}),w}function g(){return qn._===this&&(qn._=Jl),this}function x(){}function T(w){return w=Di(w),I(function(R){return Kf(R,w)})}var G=au(qo),J=au(Hc),_e=au(Zm);function Ve(w){return g0(w)?Ph(rc(w)):gs(w)}function _t(w){return function(R){return w==null?t:tc(w,R)}}var $t=Kl(),ln=Kl(!0);function gn(){return[]}function Zt(){return!1}function rn(){return{}}function xi(){return""}function er(){return!0}function zo(w,R){if(w=Di(w),w<1||w>At)return[];var Y=De,de=js(w,De);R=ir(R),w-=De;for(var Pe=Fd(de,R);++Y<w;)R(Y);return Pe}function Pt(w){return gr(w)?qo(w,rc):Iu(w)?[w]:kr(Qg(cr(w)))}function It(w){var R=++kg;return cr(w)+R}var qt=ua(function(w,R){return w+R},0),hn=zf("ceil"),gi=ua(function(w,R){return w/R},1),vo=zf("floor");function zi(w){return w&&w.length?Oc(w,Du,DA):t}function Br(w,R){return w&&w.length?Oc(w,ir(R,2),DA):t}function Hr(w){return zs(w,Du)}function ko(w,R){return zs(w,ir(R,2))}function sf(w){return w&&w.length?Oc(w,Du,us):t}function O_(w,R){return w&&w.length?Oc(w,ir(R,2),us):t}var pO=ua(function(w,R){return w*R},1),jM=zf("round"),u3=ua(function(w,R){return w-R},0);function c3(w){return w&&w.length?Jm(w,Du):0}function NM(w,R){return w&&w.length?Jm(w,ir(R,2)):0}return qe.after=c_,qe.ary=db,qe.assign=Cb,qe.assignIn=Tu,qe.assignInWith=Js,qe.assignWith=Iy,qe.at=FA,qe.before=fb,qe.bind=gy,qe.bindAll=zy,qe.bindKey=yy,qe.castArray=o3,qe.chain=em,qe.chunk=e_,qe.compact=Xv,qe.concat=Jv,qe.cond=S_,qe.conforms=l3,qe.constant=rp,qe.countBy=lb,qe.create=Ty,qe.curry=nm,qe.curryRight=vy,qe.debounce=Ad,qe.defaults=Xf,qe.defaultsDeep=om,qe.defer=To,qe.delay=n1,qe.difference=ly,qe.differenceBy=t_,qe.differenceWith=$d,qe.drop=Ba,qe.dropRight=eb,qe.dropRightWhile=tb,qe.dropWhile=Oa,qe.fill=H2,qe.filter=ub,qe.flatMap=Uc,qe.flatMapDeep=a_,qe.flatMapDepth=cb,qe.flatten=Ds,qe.flattenDeep=cu,qe.flattenDepth=UA,qe.flip=n3,qe.flow=E_,qe.flowRight=N0,qe.fromPairs=_0,qe.functions=xb,qe.functionsIn=ku,qe.groupBy=Jg,qe.initial=qg,qe.intersection=x0,qe.intersectionBy=pl,qe.intersectionWith=Pc,qe.invert=ky,qe.invertBy=Mb,qe.invokeMap=vh,qe.iteratee=G0,qe.keyBy=fy,qe.keys=gl,qe.keysIn=lc,qe.map=E0,qe.mapKeys=m_,qe.mapValues=Dy,qe.matches=jy,qe.matchesProperty=Pb,qe.memoize=O0,qe.merge=nf,qe.merge Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(v[1])} }\`.`)];const M=[];return n.layerType==="symbol"&&a==="text-font"&&J5(EC(s))&&Ql(s.type)==="identity"&&M.push(new jn(t,s,'"text-font" does not support identity functions')),M.concat(i({key:n.key,value:s,valueSpec:m,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function MX(n){return xX(n,"paint")}function wX(n){return xX(n,"layout")}function SX(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(uo(t)!=="object")return[new jn(i,t,`object expected, ${uo(t)} found`)];!t.type&&!t.ref&&e.push(new jn(i,t,'either "type" or "ref" is required'));let s=Ql(t.type);const a=Ql(t.ref);if(t.id){const c=Ql(t.id);for(let d=0;d<n.arrayIndex;d++){const m=r.layers[d];Ql(m.id)===c&&e.push(new jn(i,t.id,`duplicate layer id "${t.id}", previously used at line ${m.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(d=>{d in t&&e.push(new jn(i,t[d],`"${d}" is prohibited for ref layers`))});let c;r.layers.forEach(d=>{Ql(d.id)===a&&(c=d)}),c?c.ref?e.push(new jn(i,t.ref,"ref cannot reference another ref layer")):s=Ql(c.type):e.push(new jn(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new jn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],d=c&&Ql(c.type);c?d==="vector"&&s==="raster"?e.push(new jn(i,t.source,`layer "${t.id}" requires a raster source`)):d!=="raster-dem"&&s==="hillshade"?e.push(new jn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d!=="raster-dem"&&s==="color-relief"?e.push(new jn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d==="raster"&&s!=="raster"?e.push(new jn(i,t.source,`layer "${t.id}" requires a vector source`)):d==="vector"&&!t["source-layer"]?e.push(new jn(i,t,`layer "${t.id}" must specify a "source-layer"`)):d==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new jn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(d!=="geojson"||!c.lineMetrics)&&e.push(new jn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new jn(i,t.source,`source "${t.source}" not found`))}return e=e.concat(mp({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:YP,layout(c){return mp({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return wX(s2({layerType:s},d))}}})},paint(c){return mp({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return MX(s2({layerType:s},d))}}})}}})),e}function BC(n){const e=n.value,t=n.key,i=uo(e);return i!=="string"?[new jn(t,e,`string expected, ${i} found`)]:[]}function She(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const c=uo(i);if(i===void 0)return a;if(c!=="object")return a.push(new jn("source_raster_dem",i,`object expected, ${c} found`)),a;const m=Ql(i.encoding)==="custom",v=["redFactor","greenFactor","blueFactor","baseShift"],M=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const B in i)!m&&v.includes(B)?a.push(new jn(B,i[B],`In "${t}": "${B}" is only valid when "encoding" is set to "custom". ${M} encoding found`)):o[B]?a=a.concat(n.validateSpec({key:B,value:i[B],valueSpec:o[B],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new jn(B,i[B],`unknown property "${B}"`));return a}const kz={promoteId:Ehe};function EX(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new jn(t,e,'"type" is required')];const s=Ql(e.type);let a;switch(s){case"vector":case"raster":return a=mp({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:kz,validateSpec:o}),a;case"raster-dem":return a=She({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=mp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:kz}),e.cluster)for(const c in e.clusterProperties){const[d,m]=e.clusterProperties[c],v=typeof d=="string"?[d,["accumulated"],["get",c]]:d;a.push(...u2({key:`${t}.${c}.map`,value:m,expressionContext:"cluster-map"})),a.push(...u2({key:`${t}.${c}.reduce`,value:v,expressionContext:"cluster-reduce"}))}return a;case"video":return mp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:o,styleSpec:i});case"image":return mp({key:t,value:e,valueSpec:i.source_image,style:r,validateSpec:o,styleSpec:Line truncated
${v}`),U].join(`
${a}`)}return f})(n,"",0)}function wz(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function Whe(n,e=2){return n=wz(n,$o.$root),n.layers&&(n.layers=n.layers.map(t=>wz(t,$o.layer))),Ghe(n,{indent:e})}function jO(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function Sz(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function q9(n,e){return typeof e=="string"&&e[0]==="@"?q9(n,n.constants[e]):e}function Qhe(n){return Array.isArray(n.stops)}function m3(n,e,t){n[t]=n[e],delete n[e]}function qhe(n){n.version=8,Ehe(n,r=>{r.type==="video"&&r.url!==void 0&&m3(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),p4(n,r=>{jO(r,o=>{o["symbol-min-distance"]!==void 0&&m3(o,"symbol-min-distance","symbol-spacing")}),Sz(r,o=>{o["background-image"]!==void 0&&m3(o,"background-image","background-pattern"),o["line-image"]!==void 0&&m3(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&m3(o,"fill-image","fill-pattern")})}),jP(n,{paint:!0,layout:!0},r=>{const o=q9(n,r.value);Qhe(o)&&o.stops.forEach(s=>{s[1]=q9(n,s[1])}),r.set(o)}),delete n.constants,p4(n,r=>{jO(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),Sz(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}p4(n,r=>{jO(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function Yhe(n){const e=[];return p4(n,t=>{t.filter&&(t.filter=f4(t.filter))}),jP(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:o,set:s})=>{n5(r)||i.endsWith("-transition")||o===null||(typeof r=="object"&&!Array.isArray(r)?(s(hX(r,o)),e.push(t.join("."))):o.tokens&&typeof r=="string"&&s(dX(r)))}),n}function Vhe(n){return JSON.parse($he(JSON.stringify(n)))}function $he(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function Hhe(n){let e=!1;if(n.version===7&&(n=qhe(n),e=!0),n.version===8&&(e=!!Yhe(n),e=!0),jP(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(Vhe(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const pp=$o,Zhe={StyleExpression:AX,StylePropertyFunction:D6,ZoomConstantExpression:N9,ZoomDependentExpression:G9,createExpression:PP,createPropertyExpression:LP,isExpression:n5,isExpressionFilter:R6,isZoomExpression:mhe,normalizePropertyExpression:ghe},Xhe={convertFunction:hX,createFunction:RP,isFunction:e5},Jhe=8,ede=JSON.parse('{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'maplibre:\'.","example":{"styleeditor:slimmode":true,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{"String":"one","Number":2,"Boolean":false}}},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"centerAltitude":{"type":"number","doc":"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":123.4,"sdk-support":{"basic functionality":{"js":"5.0.0","android":"https://github.com/maplibre/maplibre-native/issues/2980","ios":"https://github.com/maplibre/maplibre-native/issues/2980"}}},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by o Line truncated
${a}`)}return d})(n,"",0)}function Rz(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function jhe(n,e=2){return n=Rz(n,$o.$root),n.layers&&(n.layers=n.layers.map(t=>Rz(t,$o.layer))),zhe(n,{indent:e})}function QO(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function Pz(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function X9(n,e){return typeof e=="string"&&e[0]==="@"?X9(n,n.constants[e]):e}function Nhe(n){return Array.isArray(n.stops)}function m3(n,e,t){n[t]=n[e],delete n[e]}function Ghe(n){n.version=8,Mhe(n,r=>{r.type==="video"&&r.url!==void 0&&m3(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),p4(n,r=>{QO(r,o=>{o["symbol-min-distance"]!==void 0&&m3(o,"symbol-min-distance","symbol-spacing")}),Pz(r,o=>{o["background-image"]!==void 0&&m3(o,"background-image","background-pattern"),o["line-image"]!==void 0&&m3(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&m3(o,"fill-image","fill-pattern")})}),QP(n,{paint:!0,layout:!0},r=>{const o=X9(n,r.value);Nhe(o)&&o.stops.forEach(s=>{s[1]=X9(n,s[1])}),r.set(o)}),delete n.constants,p4(n,r=>{QO(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),Pz(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}p4(n,r=>{QO(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function Whe(n){const e=[];return p4(n,t=>{t.filter&&(t.filter=f4(t.filter))}),QP(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:o,set:s})=>{tM(r)||i.endsWith("-transition")||o===null||(typeof r=="object"&&!Array.isArray(r)?(s(yX(r,o)),e.push(t.join("."))):o.tokens&&typeof r=="string"&&s(vX(r)))}),n}function Qhe(n){return JSON.parse(qhe(JSON.stringify(n)))}function qhe(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function Yhe(n){let e=!1;if(n.version===7&&(n=Ghe(n),e=!0),n.version===8&&(e=!!Whe(n),e=!0),QP(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(Qhe(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const pp=$o,Vhe={StyleExpression:gX,StylePropertyFunction:P6,ZoomConstantExpression:V9,ZoomDependentExpression:$9,createExpression:FP,createPropertyExpression:zP,isExpression:tM,isExpressionFilter:L6,isZoomExpression:dhe,normalizePropertyExpression:fhe},$he={convertFunction:yX,createFunction:KP,isFunction:J5},Hhe=8,Zhe=JSON.parse('{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'maplibre:\'.","example":{"styleeditor:slimmode":true,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{"String":"one","Number":2,"Boolean":false}}},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"centerAltitude":{"type":"number","doc":"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":123.4,"sdk-support":{"basic functionality":{"js":"5.0.0","android":"https://github.com/maplibre/maplibre-native/issues/2980","ios":"https://github.com/maplibre/maplibre-native/issues/2980"}}},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by o Line truncated
* In categorical functions, when the feature value does not match any of the stop domain values.
@@ -38,8 +38,8 @@ ${a}`)}return f})(n,"",0)}function wz(n,e){const t={};for(const i in e)n[i]!==vo
* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:_de,expression:xde,expression_name:Mde,light:wde,sky:Sde,terrain:Ede,projection:Bde,paint:Ode,paint_fill:Ide,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. 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.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Tde,paint_circle:kde,paint_heatmap:Dde,paint_symbol:Rde,paint_raster:Pde,paint_hillshade:Lde,"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:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},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 `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"},"data-driven styling":{}},expression:{interpolated:!Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ae[1])} }\`.`)];const Ae=[];return h.layerType==="symbol"&&D==="text-font"&&Fp(Bu(O))&&Os(O.type)==="identity"&&Ae.push(new un(A,O,'"text-font" does not support identity functions')),Ae.concat(y({key:h.key,value:O,valueSpec:ee,style:_,styleSpec:E,expressionContext:"property",propertyType:l,propertyKey:D}))}function OA(h){return uh(h,"paint")}function IA(h){return uh(h,"layout")}function sg(h){let l=[];const A=h.value,y=h.key,_=h.style,E=h.styleSpec;if(or(A)!=="object")return[new un(y,A,`object expected, ${or(A)} found`)];A.type||A.ref||l.push(new un(y,A,'either "type" or "ref" is required'));let O=Os(A.type);const D=Os(A.ref);if(A.id){const F=Os(A.id);for(let W=0;W<h.arrayIndex;W++){const ee=_.layers[W];Os(ee.id)===F&&l.push(new un(y,A.id,`duplicate layer id "${A.id}", previously used at line ${ee.id.__line__}`))}}if("ref"in A){let F;["type","source","source-layer","filter","layout"].forEach((W=>{W in A&&l.push(new un(y,A[W],`"${W}" is prohibited for ref layers`))})),_.layers.forEach((W=>{Os(W.id)===D&&(F=W)})),F?F.ref?l.push(new un(y,A.ref,"ref cannot reference another ref layer")):O=Os(F.type):l.push(new un(y,A.ref,`ref layer "${D}" not found`))}else if(O!=="background")if(A.source){const F=_.sources&&_.sources[A.source],W=F&&Os(F.type);F?W==="vector"&&O==="raster"?l.push(new un(y,A.source,`layer "${A.id}" requires a raster source`)):W!=="raster-dem"&&O==="hillshade"||W!=="raster-dem"&&O==="color-relief"?l.push(new un(y,A.source,`layer "${A.id}" requires a raster-dem source`)):W==="raster"&&O!=="raster"?l.push(new un(y,A.source,`layer "${A.id}" requires a vector source`)):W!=="vector"||A["source-layer"]?W==="raster-dem"&&O!=="hillshade"&&O!=="color-relief"?l.push(new un(y,A.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):O!=="line"||!A.paint||!A.paint["line-gradient"]||W==="geojson"&&F.lineMetrics||l.push(new un(y,A,`layer "${A.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new un(y,A,`layer "${A.id}" must specify a "source-layer"`)):l.push(new un(y,A.source,`source "${A.source}" not found`))}else l.push(new un(y,A,'missing required property "source"'));return l=l.concat(Pl({key:y,value:A,valueSpec:E.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${y}.type`,value:A.type,valueSpec:E.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:A,objectKey:"type"}),filter:ur,layout:F=>Pl({layer:A,key:F.key,value:F.value,style:F.style,styleSpec:F.styleSpec,validateSpec:F.validateSpec,objectElementValidators:{"*":W=>IA(tr({layerType:O},W))}}),paint:F=>Pl({layer:A,key:F.key,value:F.value,style:F.style,styleSpec:F.styleSpec,validateSpec:F.validateSpec,objectElementValidators:{"*":W=>OA(tr({layerType:O},W))}})}})),l}function wc(h){const l=h.value,A=h.key,y=or(l);return y!=="string"?[new un(A,l,`string expected, ${y} found`)]:[]}const Df={promoteId:function({key:h,value:l}){if(or(l)==="string")return wc({key:h,value:l});{const A=[];for(const y in l)A.push(...wc({key:`${h}.${y}`,value:l[y]}));return A}}};function ch(h){const l=h.value,A=h.key,y=h.styleSpec,_=h.style,E=h.validateSpec;if(!l.type)return[new un(A,l,'"type" is required')];const O=Os(l.type);let D;switch(O){case"vector":case"raster":return D=Pl({key:A,value:l,valueSpec:y[`source_${O.replace("-","_")}`],style:h.style,styleSpec:y,objectElementValidators:Df,validateSpec:E}),D;case"raster-dem":return D=(function(F){var W;const ee=(W=F.sourceName)!==null&&W!==void 0?W:"",ae=F.value,Ae=F.styleSpec,fe=Ae.source_raster_dem,be=F.style;let Me=[];const Be=or(ae);if(ae===void 0)return Me;if(Be!=="object")return Me.push(new un("source_raster_dem",ae,`object expected, ${Be} found`)),Me;const Fe=Os(ae.encoding)==="custom",at=["redFactor","greenFactor","blueFactor","baseShift"],We=F.value.encoding?`"${F.value.encoding}"`:"Default";for(const Xe in ae)!Fe&&at.includes(Xe)?Me.push(new un(Xe,ae[Xe],`In "${ee}": "${Xe}" is only valid when "encoding" is set to "custom". ${We} encoding found`)):fe[Xe]?Me=Me.concat(F.validateSpec({key:Xe,value:ae[Xe],valueSpec:fe[Xe],validateSpec:F.validateSpec,style:be,styleSpec:Ae})):Me.push(new un(Xe,ae[Xe],`unknown property "${Xe}"`));return Me})({sourceName:A,value:l,style:h.style,styleSpec:y,validateSpec:E}),D;case"geojson":if(D=Pl({key:A,value:l,valueSpec:y.source_geojson,style:_,styleSpec:y,validateSpec:E,objectElementValidators:Df}),l.cluster)for(const F in l.clusterProperties){const[W,ee]=l.clusterProperties[F],ae=typeof W=="string"?[W,["accumulated"],["get",F]]:W;D.push(...nu({key:`${A}.${F}.map`,value:ee,expressionContext:"cluster-map"})),D.push(...nu({key:`${A}.${F}.reduce`,value:ae,expressionContext:"cluster-reduce"}))}return D;case"video":return Pl({key:A,value:l,valueSpec:y.source_video,style:_,validateSpec:E,styleSpec:y});caLine truncated
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:vde,expression:bde,expression_name:Cde,light:_de,sky:xde,terrain:Mde,projection:wde,paint:Sde,paint_fill:Ede,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. 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.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Bde,paint_circle:Ode,paint_heatmap:Ide,paint_symbol:Tde,paint_raster:kde,paint_hillshade:Dde,"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:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},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 `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"},"data-driven styling":{}},expression:{interpolated:!Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ae[1])} }\`.`)];const Ae=[];return h.layerType==="symbol"&&D==="text-font"&&Fp(Eu(O))&&Os(O.type)==="identity"&&Ae.push(new un(A,O,'"text-font" does not support identity functions')),Ae.concat(y({key:h.key,value:O,valueSpec:ee,style:_,styleSpec:E,expressionContext:"property",propertyType:l,propertyKey:D}))}function OA(h){return uh(h,"paint")}function IA(h){return uh(h,"layout")}function a0(h){let l=[];const A=h.value,y=h.key,_=h.style,E=h.styleSpec;if(or(A)!=="object")return[new un(y,A,`object expected, ${or(A)} found`)];A.type||A.ref||l.push(new un(y,A,'either "type" or "ref" is required'));let O=Os(A.type);const D=Os(A.ref);if(A.id){const F=Os(A.id);for(let W=0;W<h.arrayIndex;W++){const ee=_.layers[W];Os(ee.id)===F&&l.push(new un(y,A.id,`duplicate layer id "${A.id}", previously used at line ${ee.id.__line__}`))}}if("ref"in A){let F;["type","source","source-layer","filter","layout"].forEach((W=>{W in A&&l.push(new un(y,A[W],`"${W}" is prohibited for ref layers`))})),_.layers.forEach((W=>{Os(W.id)===D&&(F=W)})),F?F.ref?l.push(new un(y,A.ref,"ref cannot reference another ref layer")):O=Os(F.type):l.push(new un(y,A.ref,`ref layer "${D}" not found`))}else if(O!=="background")if(A.source){const F=_.sources&&_.sources[A.source],W=F&&Os(F.type);F?W==="vector"&&O==="raster"?l.push(new un(y,A.source,`layer "${A.id}" requires a raster source`)):W!=="raster-dem"&&O==="hillshade"||W!=="raster-dem"&&O==="color-relief"?l.push(new un(y,A.source,`layer "${A.id}" requires a raster-dem source`)):W==="raster"&&O!=="raster"?l.push(new un(y,A.source,`layer "${A.id}" requires a vector source`)):W!=="vector"||A["source-layer"]?W==="raster-dem"&&O!=="hillshade"&&O!=="color-relief"?l.push(new un(y,A.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):O!=="line"||!A.paint||!A.paint["line-gradient"]||W==="geojson"&&F.lineMetrics||l.push(new un(y,A,`layer "${A.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new un(y,A,`layer "${A.id}" must specify a "source-layer"`)):l.push(new un(y,A.source,`source "${A.source}" not found`))}else l.push(new un(y,A,'missing required property "source"'));return l=l.concat(Rl({key:y,value:A,valueSpec:E.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${y}.type`,value:A.type,valueSpec:E.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:A,objectKey:"type"}),filter:ur,layout:F=>Rl({layer:A,key:F.key,value:F.value,style:F.style,styleSpec:F.styleSpec,validateSpec:F.validateSpec,objectElementValidators:{"*":W=>IA(tr({layerType:O},W))}}),paint:F=>Rl({layer:A,key:F.key,value:F.value,style:F.style,styleSpec:F.styleSpec,validateSpec:F.validateSpec,objectElementValidators:{"*":W=>OA(tr({layerType:O},W))}})}})),l}function wc(h){const l=h.value,A=h.key,y=or(l);return y!=="string"?[new un(A,l,`string expected, ${y} found`)]:[]}const Df={promoteId:function({key:h,value:l}){if(or(l)==="string")return wc({key:h,value:l});{const A=[];for(const y in l)A.push(...wc({key:`${h}.${y}`,value:l[y]}));return A}}};function ch(h){const l=h.value,A=h.key,y=h.styleSpec,_=h.style,E=h.validateSpec;if(!l.type)return[new un(A,l,'"type" is required')];const O=Os(l.type);let D;switch(O){case"vector":case"raster":return D=Rl({key:A,value:l,valueSpec:y[`source_${O.replace("-","_")}`],style:h.style,styleSpec:y,objectElementValidators:Df,validateSpec:E}),D;case"raster-dem":return D=(function(F){var W;const ee=(W=F.sourceName)!==null&&W!==void 0?W:"",ae=F.value,Ae=F.styleSpec,fe=Ae.source_raster_dem,be=F.style;let we=[];const Be=or(ae);if(ae===void 0)return we;if(Be!=="object")return we.push(new un("source_raster_dem",ae,`object expected, ${Be} found`)),we;const ze=Os(ae.encoding)==="custom",at=["redFactor","greenFactor","blueFactor","baseShift"],We=F.value.encoding?`"${F.value.encoding}"`:"Default";for(const Xe in ae)!ze&&at.includes(Xe)?we.push(new un(Xe,ae[Xe],`In "${ee}": "${Xe}" is only valid when "encoding" is set to "custom". ${We} encoding found`)):fe[Xe]?we=we.concat(F.validateSpec({key:Xe,value:ae[Xe],valueSpec:fe[Xe],validateSpec:F.validateSpec,style:be,styleSpec:Ae})):we.push(new un(Xe,ae[Xe],`unknown property "${Xe}"`));return we})({sourceName:A,value:l,style:h.style,styleSpec:y,validateSpec:E}),D;case"geojson":if(D=Rl({key:A,value:l,valueSpec:y.source_geojson,style:_,styleSpec:y,validateSpec:E,objectElementValidators:Df}),l.cluster)for(const F in l.clusterProperties){const[W,ee]=l.clusterProperties[F],ae=typeof W=="string"?[W,["accumulated"],["get",F]]:W;D.push(...tu({key:`${A}.${F}.map`,value:ee,expressionContext:"cluster-map"})),D.push(...tu({key:`${A}.${F}.reduce`,value:ae,expressionContext:"cluster-reduce"}))}return D;case"video":return Rl({key:A,value:l,valueSpec:y.source_video,style:_,validateSpec:E,styleSpec:y});caLine truncated
precision mediump float;
#else
#if !defined(lowp)
@@ -98,19 +98,19 @@ vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=frac
#else
return 0.0;
#endif
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:xi("","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:xi("",`#define GLOBE_RADIUS 6371008.8
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:_i("","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:_i("",`#define GLOBE_RADIUS 6371008.8
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);
if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:xi(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:_i(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:xi(`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;
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:_i(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:xi(`in vec3 v_data;in float v_visibility;
}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:_i(`in vec3 v_data;in float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
@@ -162,7 +162,7 @@ vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vect
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:xi(Ao,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:xi(`uniform highp float u_intensity;in vec2 v_extrude;
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:_i(Ao,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:_i(`uniform highp float u_intensity;in vec2 v_extrude;
#pragma mapbox: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
@@ -185,11 +185,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:xi(`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:_i(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(0.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:xi("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:xi("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:xi(`#ifdef GL_ES
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:_i("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:_i("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:_i(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
@@ -197,13 +197,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;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:xi("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:xi(Ao,`in vec2 a_pos;void main() {
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:_i("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:_i(Ao,`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:xi(`#pragma mapbox: define highp vec4 color
}`),fill:_i(`#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
@@ -218,7 +218,7 @@ fragColor=vec4(1.0);
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:xi(`in vec2 v_pos;
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:_i(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
@@ -247,7 +247,7 @@ gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_P
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:xi(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
}`),fillOutlinePattern:_i(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
@@ -284,7 +284,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:xi(`#ifdef GL_ES
}`),fillPattern:_i(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
@@ -311,7 +311,7 @@ void main() {
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:xi(`in vec4 v_color;void main() {fragColor=v_color;
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:_i(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
@@ -343,7 +343,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(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:xi(`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.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:_i(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
@@ -396,14 +396,14 @@ gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:xi(`#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.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:_i(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:xi(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:_i(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
@@ -416,7 +416,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;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:xi(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:_i(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
@@ -462,7 +462,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:xi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
v_width2=vec2(outset,inset);}`),lineGradient:_i(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
@@ -504,7 +504,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:xi(`#ifdef GL_ES
v_width2=vec2(outset,inset);}`),linePattern:_i(`#ifdef GL_ES
precision highp float;
#endif
uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
@@ -568,7 +568,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:xi(`uniform lowp float u_device_pixel_ratio;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:_i(`uniform lowp float u_device_pixel_ratio;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
@@ -629,7 +629,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(a_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(a_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:xi(`uniform lowp float u_device_pixel_ratio;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(a_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(a_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:_i(`uniform lowp float u_device_pixel_ratio;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
@@ -686,7 +686,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(a_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(a_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);}`),raster:xi(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
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(a_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(a_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);}`),raster:_i(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
@@ -694,7 +694,7 @@ fragColor=vec4(1.0);
#ifdef GLOBE
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
#endif
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:xi(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:_i(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
@@ -712,7 +712,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;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:xi(`#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;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:_i(`#define SDF_PX 8.0
uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
@@ -747,7 +747,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*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:xi(`#define SDF_PX 8.0
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:_i(`#define SDF_PX 8.0
#define SDF 1.0
#define ICON 0.0
uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;
@@ -788,8 +788,8 @@ 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;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:xi("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:xi("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:xi("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:xi("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:xi(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:xi("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function xi(I,u){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=u.match(/in ([\w]+) ([\w]+)/g),S=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),k=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),K=k?k.concat(S):S,N={};return{fragmentSource:I=I.replace(p,(($,se,ue,ye,me)=>(N[me]=!0,se==="define"?`
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:_i("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:_i("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:_i("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:_i("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:_i(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:_i("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function _i(I,u){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=u.match(/in ([\w]+) ([\w]+)/g),S=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),k=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),K=k?k.concat(S):S,N={};return{fragmentSource:I=I.replace(p,(($,se,ue,ye,me)=>(N[me]=!0,se==="define"?`
#ifndef HAS_UNIFORM_u_${me}
in ${ue} ${ye} ${me};
#else
@@ -838,79 +838,79 @@ uniform ${ue} ${ye} u_${me};
#else
${ue} ${ye} ${me} = u_${me};
#endif
`})),staticAttributes:C,staticUniforms:K}}class to{constructor(u,p,C){this.vertexBuffer=u,this.indexBuffer=p,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var $s=a.aV([{name:"a_pos",type:"Int16",components:2}]);const mo="#define PROJECTION_MERCATOR",Fs="mercator";class Yr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Fs}get shaderDefine(){return mo}get shaderPreludeCode(){return ho.projectionMercator}get vertexShaderPreludeCode(){return ho.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aW.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,p,C,S,k){if(this._cachedMesh)return this._cachedMesh;const K=new a.aX;K.emplaceBack(0,0),K.emplaceBack(a.a5,0),K.emplaceBack(0,a.a5),K.emplaceBack(a.a5,a.a5);const N=u.createVertexBuffer(K,$s.members),$=a.aY.simpleSegment(0,0,4,2),se=new a.aZ;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ue=u.createIndexBuffer(se);return this._cachedMesh=new to(N,ue,$),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class sa{constructor(u=0,p=0,C=0,S=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(C)||C<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=p,this.left=C,this.right=S}interpolate(u,p,C){return p.top!=null&&u.top!=null&&(this.top=a.G.number(u.top,p.top,C)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.G.number(u.bottom,p.bottom,C)),p.left!=null&&u.left!=null&&(this.left=a.G.number(u.left,p.left,C)),p.right!=null&&u.right!=null&&(this.right=a.G.number(u.right,p.right,C)),this}getCenter(u,p){const C=a.ao((this.left+u-this.right)/2,0,u),S=a.ao((this.top+p-this.bottom)/2,0,p);return new a.P(C,S)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new sa(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Xa(I,u){if(!I.renderWorldCopies||I.lngRange)return;const p=u.lng-I.center.lng;u.lng+=p>180?-360:p<-180?360:0}function Vi(I){return Math.max(0,Math.floor(I))}class Tr{constructor(u,p){var C;this.applyConstrain=(S,k)=>this._constrainOverride!==null?this._constrainOverride(S,k):this._callbacks.defaultConstrain(S,k),this._callbacks=u,this._tileSize=512,this._renderWorldCopies=p?.renderWorldCopies===void 0||!!p?.renderWorldCopies,this._minZoom=p?.minZoom||0,this._maxZoom=p?.maxZoom||22,this._minPitch=p?.minPitch==null?0:p?.minPitch,this._maxPitch=p?.maxPitch==null?60:p?.maxPitch,this._constrainOverride=(C=p?.constrainOverride)!==null&&C!==void 0?C:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.V(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Vi(this._zoom),this._scale=a.ar(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new sa,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,p,C){this._constrainOverride=u.constrainOverride,this._latRange=u.latRange,this._lngRange=u.lngRange,this._width=u.width,this._height=u.height,this._center=u.center,this._elevation=u.elevation,this._minElevationForCurrentTile=u.minElevationForCurrentTile,this._zoom=u.zoom,this._tileZoom=Vi(this._zoom),this._scale=a.ar(this._zoom),this._bearingInRadians=u.bearingInRadians,this._fovInRadians=u.fovInRadians,this._pitchInRadians=u.pitchInRadians,this._rollInRadians=u.rollInRadians,this._unmodified=u.unmodified,this._edgeInsets=new sa(u.padding.top,u.padding.bottom,u.padding.left,u.padding.right),this._minZoom=u.minZoom,this._maxZoom=u.maxZoom,this._minPitch=u.minPitch,this._maxPitch=u.maxPitch,this._renderWorldCopies=u.renderWorldCopies,this._cameraToCenterDistance=u.cameraToCenterDistance,this._nearZ=u.nearZ,this._farZ=u.farZ,this._autoCalculateNearFarZ=!C&&u.autoCalculateNearFarZ,p&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(u){this._minElevationForCurrentTile=u}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(u){this._minZoom!==u&&(this._minZoom=u,this.setZoom(this.apply Line truncated
`})),staticAttributes:C,staticUniforms:K}}class to{constructor(u,p,C){this.vertexBuffer=u,this.indexBuffer=p,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var $s=a.aV([{name:"a_pos",type:"Int16",components:2}]);const go="#define PROJECTION_MERCATOR",Fs="mercator";class Yr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Fs}get shaderDefine(){return go}get shaderPreludeCode(){return ho.projectionMercator}get vertexShaderPreludeCode(){return ho.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aW.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,p,C,S,k){if(this._cachedMesh)return this._cachedMesh;const K=new a.aX;K.emplaceBack(0,0),K.emplaceBack(a.a5,0),K.emplaceBack(0,a.a5),K.emplaceBack(a.a5,a.a5);const N=u.createVertexBuffer(K,$s.members),$=a.aY.simpleSegment(0,0,4,2),se=new a.aZ;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ue=u.createIndexBuffer(se);return this._cachedMesh=new to(N,ue,$),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class oa{constructor(u=0,p=0,C=0,S=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(C)||C<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=p,this.left=C,this.right=S}interpolate(u,p,C){return p.top!=null&&u.top!=null&&(this.top=a.G.number(u.top,p.top,C)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.G.number(u.bottom,p.bottom,C)),p.left!=null&&u.left!=null&&(this.left=a.G.number(u.left,p.left,C)),p.right!=null&&u.right!=null&&(this.right=a.G.number(u.right,p.right,C)),this}getCenter(u,p){const C=a.ao((this.left+u-this.right)/2,0,u),S=a.ao((this.top+p-this.bottom)/2,0,p);return new a.P(C,S)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new oa(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Za(I,u){if(!I.renderWorldCopies||I.lngRange)return;const p=u.lng-I.center.lng;u.lng+=p>180?-360:p<-180?360:0}function $i(I){return Math.max(0,Math.floor(I))}class Tr{constructor(u,p){var C;this.applyConstrain=(S,k)=>this._constrainOverride!==null?this._constrainOverride(S,k):this._callbacks.defaultConstrain(S,k),this._callbacks=u,this._tileSize=512,this._renderWorldCopies=p?.renderWorldCopies===void 0||!!p?.renderWorldCopies,this._minZoom=p?.minZoom||0,this._maxZoom=p?.maxZoom||22,this._minPitch=p?.minPitch==null?0:p?.minPitch,this._maxPitch=p?.maxPitch==null?60:p?.maxPitch,this._constrainOverride=(C=p?.constrainOverride)!==null&&C!==void 0?C:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.V(0,0),this._elevation=0,this._zoom=0,this._tileZoom=$i(this._zoom),this._scale=a.ar(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new oa,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,p,C){this._constrainOverride=u.constrainOverride,this._latRange=u.latRange,this._lngRange=u.lngRange,this._width=u.width,this._height=u.height,this._center=u.center,this._elevation=u.elevation,this._minElevationForCurrentTile=u.minElevationForCurrentTile,this._zoom=u.zoom,this._tileZoom=$i(this._zoom),this._scale=a.ar(this._zoom),this._bearingInRadians=u.bearingInRadians,this._fovInRadians=u.fovInRadians,this._pitchInRadians=u.pitchInRadians,this._rollInRadians=u.rollInRadians,this._unmodified=u.unmodified,this._edgeInsets=new oa(u.padding.top,u.padding.bottom,u.padding.left,u.padding.right),this._minZoom=u.minZoom,this._maxZoom=u.maxZoom,this._minPitch=u.minPitch,this._maxPitch=u.maxPitch,this._renderWorldCopies=u.renderWorldCopies,this._cameraToCenterDistance=u.cameraToCenterDistance,this._nearZ=u.nearZ,this._farZ=u.farZ,this._autoCalculateNearFarZ=!C&&u.autoCalculateNearFarZ,p&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(u){this._minElevationForCurrentTile=u}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(u){this._minZoom!==u&&(this._minZoom=u,this.setZoom(this.apply Line truncated
`),Ct=st.concat(ho.prelude.vertexSource,N.vertexSource,p.vertexSource).join(`
`);Mo(ue)||(ft=(function(zt){return zt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(ft),Ct=(function(zt){return zt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(Ct));const lt=ue.createShader(ue.FRAGMENT_SHADER);if(ue.isContextLost())return void(this.failedToCreate=!0);if(ue.shaderSource(lt,ft),ue.compileShader(lt),!ue.getShaderParameter(lt,ue.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ue.getShaderInfoLog(lt)}`);ue.attachShader(this.program,lt);const Ot=ue.createShader(ue.VERTEX_SHADER);if(ue.isContextLost())return void(this.failedToCreate=!0);if(ue.shaderSource(Ot,Ct),ue.compileShader(Ot),!ue.getShaderParameter(Ot,ue.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ue.getShaderInfoLog(Ot)}`);ue.attachShader(this.program,Ot),this.attributes={};const Ft={};this.numAttributes=Se.length;for(let zt=0;zt<this.numAttributes;zt++)Se[zt]&&(ue.bindAttribLocation(this.program,zt,Se[zt]),this.attributes[Se[zt]]=zt);if(ue.linkProgram(this.program),!ue.getProgramParameter(this.program,ue.LINK_STATUS))throw new Error(`Program failed to link: ${ue.getProgramInfoLog(this.program)}`);ue.deleteShader(Ot),ue.deleteShader(lt);for(let zt=0;zt<dt.length;zt++){const Gt=dt[zt];if(Gt&&!Ft[Gt]){const Qt=ue.getUniformLocation(this.program,Gt);Qt&&(Ft[Gt]=Qt)}}this.fixedUniforms=S(u,Ft),this.terrainUniforms=((zt,Gt)=>({u_depth:new a.b$(zt,Gt.u_depth),u_terrain:new a.b$(zt,Gt.u_terrain),u_terrain_dim:new a.br(zt,Gt.u_terrain_dim),u_terrain_matrix:new a.c1(zt,Gt.u_terrain_matrix),u_terrain_unpack:new a.c2(zt,Gt.u_terrain_unpack),u_terrain_exaggeration:new a.br(zt,Gt.u_terrain_exaggeration)}))(u,Ft),this.projectionUniforms=((zt,Gt)=>({u_projection_matrix:new a.c1(zt,Gt.u_projection_matrix),u_projection_tile_mercator_coords:new a.c2(zt,Gt.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.c2(zt,Gt.u_projection_clipping_plane),u_projection_transition:new a.br(zt,Gt.u_projection_transition),u_projection_fallback_matrix:new a.c1(zt,Gt.u_projection_fallback_matrix)}))(u,Ft),this.binderUniforms=C?C.getUniforms(u,Ft):[]}draw(u,p,C,S,k,K,N,$,se,ue,ye,me,Se,Ke,Je,nt,tt,rt,dt){const st=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(C),u.setStencilMode(S),u.setColorMode(k),u.setCullFace(K),$){u.activeTexture.set(st.TEXTURE2),st.bindTexture(st.TEXTURE_2D,$.depthTexture),u.activeTexture.set(st.TEXTURE3),st.bindTexture(st.TEXTURE_2D,$.texture);for(const Ct in this.terrainUniforms)this.terrainUniforms[Ct].set($[Ct])}if(se)for(const Ct in se)this.projectionUniforms[bc[Ct]].set(se[Ct]);if(N)for(const Ct in this.fixedUniforms)this.fixedUniforms[Ct].set(N[Ct]);nt&&nt.setUniforms(u,this.binderUniforms,Ke,{zoom:Je});let ft=0;switch(p){case st.LINES:ft=2;break;case st.TRIANGLES:ft=3;break;case st.LINE_STRIP:ft=1}for(const Ct of Se.get()){const lt=Ct.vaos||(Ct.vaos={});(lt[ue]||(lt[ue]=new Kd)).bind(u,this,ye,nt?nt.getPaintVertexBuffers():[],me,Ct.vertexOffset,tt,rt,dt),st.drawElements(p,Ct.primitiveLength*ft,st.UNSIGNED_SHORT,Ct.primitiveOffset*ft*2)}}}function Of(I,u,p){const C=1/a.aO(p,1,u.transform.tileZoom),S=Math.pow(2,p.tileID.overscaledZ),k=p.tileSize*Math.pow(2,u.transform.tileZoom)/S,K=k*(p.tileID.canonical.x+p.tileID.wrap*S),N=k*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[C,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[K>>16,N>>16],u_pixel_coord_lower:[65535&K,65535&N]}}const Ip=(I,u,p,C)=>{const S=I.style.light,k=S.properties.get("position"),K=[k.x,k.y,k.z],N=a.c5();S.properties.get("anchor")==="viewport"&&a.c6(N,I.transform.bearingInRadians),a.c7(K,K,N);const $=I.transform.transformLightDirection(K),se=S.properties.get("color");return{u_lightpos:K,u_lightpos_globe:$,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+u,u_opacity:p,u_fill_translate:C}},Tp=(I,u,p,C,S,k,K)=>a.e(Ip(I,u,p,C),Of(k,I,K),{u_height_factor:-Math.pow(2,S.overscaledZ)/K.tileSize/8}),Fd=(I,u,p,C)=>a.e(Of(u,I,p),{u_fill_translate:C}),If=(I,u)=>({u_world:I,u_fill_translate:u}),Z1=(I,u,p,C,S)=>a.e(Fd(I,u,p,S),{u_world:C}),kp=(I,u,p,C,S)=>{const k=I.transform;let K,N,$=0;if(p.paint.get("circle-pitch-alignment")==="map"){const se=a.aO(u,1,k.zoom);K=!0,N=[se,se],$=se/(a.a5*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*S}else K=!1,N=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+K,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:N,u_globe_extrude_scale:$,u_translate:C}},Kh=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),Fh=I=>({u_viewport_size:[I.width,I.height]}),Dp=(I,u=1)=>({u_color:I,u_overlay:0,u_overlay_scale:u}),zh=(I,u,p,C)=>{const S=a.aO(I,1,u)/(a.a5*Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:a.aO(I, Line truncated
`);wo(ue)||(ft=(function(zt){return zt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(ft),Ct=(function(zt){return zt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(Ct));const lt=ue.createShader(ue.FRAGMENT_SHADER);if(ue.isContextLost())return void(this.failedToCreate=!0);if(ue.shaderSource(lt,ft),ue.compileShader(lt),!ue.getShaderParameter(lt,ue.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ue.getShaderInfoLog(lt)}`);ue.attachShader(this.program,lt);const Ot=ue.createShader(ue.VERTEX_SHADER);if(ue.isContextLost())return void(this.failedToCreate=!0);if(ue.shaderSource(Ot,Ct),ue.compileShader(Ot),!ue.getShaderParameter(Ot,ue.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ue.getShaderInfoLog(Ot)}`);ue.attachShader(this.program,Ot),this.attributes={};const Ft={};this.numAttributes=Se.length;for(let zt=0;zt<this.numAttributes;zt++)Se[zt]&&(ue.bindAttribLocation(this.program,zt,Se[zt]),this.attributes[Se[zt]]=zt);if(ue.linkProgram(this.program),!ue.getProgramParameter(this.program,ue.LINK_STATUS))throw new Error(`Program failed to link: ${ue.getProgramInfoLog(this.program)}`);ue.deleteShader(Ot),ue.deleteShader(lt);for(let zt=0;zt<dt.length;zt++){const Gt=dt[zt];if(Gt&&!Ft[Gt]){const Qt=ue.getUniformLocation(this.program,Gt);Qt&&(Ft[Gt]=Qt)}}this.fixedUniforms=S(u,Ft),this.terrainUniforms=((zt,Gt)=>({u_depth:new a.b$(zt,Gt.u_depth),u_terrain:new a.b$(zt,Gt.u_terrain),u_terrain_dim:new a.br(zt,Gt.u_terrain_dim),u_terrain_matrix:new a.c1(zt,Gt.u_terrain_matrix),u_terrain_unpack:new a.c2(zt,Gt.u_terrain_unpack),u_terrain_exaggeration:new a.br(zt,Gt.u_terrain_exaggeration)}))(u,Ft),this.projectionUniforms=((zt,Gt)=>({u_projection_matrix:new a.c1(zt,Gt.u_projection_matrix),u_projection_tile_mercator_coords:new a.c2(zt,Gt.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.c2(zt,Gt.u_projection_clipping_plane),u_projection_transition:new a.br(zt,Gt.u_projection_transition),u_projection_fallback_matrix:new a.c1(zt,Gt.u_projection_fallback_matrix)}))(u,Ft),this.binderUniforms=C?C.getUniforms(u,Ft):[]}draw(u,p,C,S,k,K,N,$,se,ue,ye,me,Se,Ke,Je,nt,tt,rt,dt){const st=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(C),u.setStencilMode(S),u.setColorMode(k),u.setCullFace(K),$){u.activeTexture.set(st.TEXTURE2),st.bindTexture(st.TEXTURE_2D,$.depthTexture),u.activeTexture.set(st.TEXTURE3),st.bindTexture(st.TEXTURE_2D,$.texture);for(const Ct in this.terrainUniforms)this.terrainUniforms[Ct].set($[Ct])}if(se)for(const Ct in se)this.projectionUniforms[bc[Ct]].set(se[Ct]);if(N)for(const Ct in this.fixedUniforms)this.fixedUniforms[Ct].set(N[Ct]);nt&&nt.setUniforms(u,this.binderUniforms,Ke,{zoom:Je});let ft=0;switch(p){case st.LINES:ft=2;break;case st.TRIANGLES:ft=3;break;case st.LINE_STRIP:ft=1}for(const Ct of Se.get()){const lt=Ct.vaos||(Ct.vaos={});(lt[ue]||(lt[ue]=new Fd)).bind(u,this,ye,nt?nt.getPaintVertexBuffers():[],me,Ct.vertexOffset,tt,rt,dt),st.drawElements(p,Ct.primitiveLength*ft,st.UNSIGNED_SHORT,Ct.primitiveOffset*ft*2)}}}function Of(I,u,p){const C=1/a.aO(p,1,u.transform.tileZoom),S=Math.pow(2,p.tileID.overscaledZ),k=p.tileSize*Math.pow(2,u.transform.tileZoom)/S,K=k*(p.tileID.canonical.x+p.tileID.wrap*S),N=k*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[C,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[K>>16,N>>16],u_pixel_coord_lower:[65535&K,65535&N]}}const Ip=(I,u,p,C)=>{const S=I.style.light,k=S.properties.get("position"),K=[k.x,k.y,k.z],N=a.c5();S.properties.get("anchor")==="viewport"&&a.c6(N,I.transform.bearingInRadians),a.c7(K,K,N);const $=I.transform.transformLightDirection(K),se=S.properties.get("color");return{u_lightpos:K,u_lightpos_globe:$,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+u,u_opacity:p,u_fill_translate:C}},Tp=(I,u,p,C,S,k,K)=>a.e(Ip(I,u,p,C),Of(k,I,K),{u_height_factor:-Math.pow(2,S.overscaledZ)/K.tileSize/8}),zd=(I,u,p,C)=>a.e(Of(u,I,p),{u_fill_translate:C}),If=(I,u)=>({u_world:I,u_fill_translate:u}),H1=(I,u,p,C,S)=>a.e(zd(I,u,p,S),{u_world:C}),kp=(I,u,p,C,S)=>{const k=I.transform;let K,N,$=0;if(p.paint.get("circle-pitch-alignment")==="map"){const se=a.aO(u,1,k.zoom);K=!0,N=[se,se],$=se/(a.a5*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*S}else K=!1,N=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+K,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:N,u_globe_extrude_scale:$,u_translate:C}},Kh=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),Fh=I=>({u_viewport_size:[I.width,I.height]}),Dp=(I,u=1)=>({u_color:I,u_overlay:0,u_overlay_scale:u}),zh=(I,u,p,C)=>{const S=a.aO(I,1,u)/(a.a5*Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:a.aO(I, Line truncated
uniform mat4 u_projection_matrix;
${Se.shaderPreludeCode.vertexSource}`,define:Se.shaderDefine},defaultProjectionData:Je},tt=me.renderingMode?me.renderingMode:"2d";if(K.renderPass==="offscreen"){const rt=me.prerender;rt&&(K.setCustomLayerDefaults(),ye.setColorMode(K.colorModeForRenderPass()),rt.call(me,ye.gl,nt),ye.setDirty(),K.setBaseState())}else if(K.renderPass==="translucent"){K.setCustomLayerDefaults(),ye.setColorMode(K.colorModeForRenderPass()),ye.setStencilMode(ni.disabled);const rt=tt==="3d"?K.getDepthModeFor3D():K.getDepthModeForSublayer(0,ri.ReadOnly);ye.setDepthMode(rt),me.render(ye.gl,nt),ye.setDirty(),K.setBaseState(),ye.bindFramebuffer.set(null)}})(u,0,C,k))}saveTileTexture(u){const p=this._tileTextures[u.size[0]];p?p.push(u):this._tileTextures[u.size[0]]=[u]}getTileTexture(u){const p=this._tileTextures[u];return p&&p.length>0?p.pop():null}isPatternMissing(u){if(!u)return!1;if(!u.from||!u.to)return!0;const p=this.imageManager.getPattern(u.from.toString()),C=this.imageManager.getPattern(u.to.toString());return!p||!C}useProgram(u,p,C=!1,S=[]){this.cache=this.cache||{};const k=!!this.style.map.terrain,K=this.style.projection,N=C?ho.projectionMercator:K.shaderPreludeCode,$=C?mo:K.shaderDefine,se=u+(p?p.cacheKey:"")+`/${C?Fs:K.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(k?"/terrain":"")+(S?`/${S.join("/")}`:"");return this.cache[se]||(this.cache[se]=new Jm(this.context,ho[u],p,pr[u],this._showOverdrawInspector,k,N,$,S)),this.cache[se]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const u=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(u.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){var u,p;if(this._tileTextures){for(const C in this._tileTextures){const S=this._tileTextures[C];if(S)for(const k of S)k.destroy()}this._tileTextures={}}if(this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((u=this.tileExtentMesh.vertexBuffer)===null||u===void 0||u.destroy()),this.tileExtentMesh&&((p=this.tileExtentMesh.indexBuffer)===null||p===void 0||p.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.cache){for(const C in this.cache){const S=this.cache[C];S&&S.program&&this.context.gl.deleteProgram(S.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){const{drawingBufferWidth:u,drawingBufferHeight:p}=this.context.gl;return this.width!==u||this.height!==p}}function P0(I,u){let p,C=!1,S=null,k=null;const K=()=>{S=null,C&&(I.apply(k,p),S=setTimeout(K,u),C=!1)};return(...N)=>(C=!0,k=this,p=N,S||K(),S)}class Is{constructor(u){this._getCurrentHash=()=>{const p=window.location.hash.replace("#","");if(this._hashName){let C;return p.split("&").map((S=>S.split("="))).forEach((S=>{S[0]===this._hashName&&(C=S)})),(C&&C[1]||"").split("/")}return p.split("/")},this._onHashChange=()=>{const p=this._getCurrentHash();if(!this._isValidHash(p))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(p[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+p[2],+p[1]],zoom:+p[0],bearing:C,pitch:+(p[4]||0)}),!0},this._updateHashUnthrottled=()=>{const p=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,p)},this._removeHash=()=>{const p=this._getCurrentHash();if(p.length===0)return;const C=p.join("/");let S=C;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${C}`);let k=window.location.hash.replace(S,"");k.startsWith("#&")?k=k.slice(0,1)+k.slice(2):k==="#"&&(k="");let K=window.location.href.replace(/(#.+)?$/,k);K=K.replace("&&","&"),window.history.replaceState(window.history.state,null,K)},this._updateHash=P0(this._updateHashUnthrottled,300),this._hashName=u&&encodeURIComponent(u)}addTo(u){return this._map=u,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(u){const p=thi Line truncated
${Se.shaderPreludeCode.vertexSource}`,define:Se.shaderDefine},defaultProjectionData:Je},tt=me.renderingMode?me.renderingMode:"2d";if(K.renderPass==="offscreen"){const rt=me.prerender;rt&&(K.setCustomLayerDefaults(),ye.setColorMode(K.colorModeForRenderPass()),rt.call(me,ye.gl,nt),ye.setDirty(),K.setBaseState())}else if(K.renderPass==="translucent"){K.setCustomLayerDefaults(),ye.setColorMode(K.colorModeForRenderPass()),ye.setStencilMode(ni.disabled);const rt=tt==="3d"?K.getDepthModeFor3D():K.getDepthModeForSublayer(0,ri.ReadOnly);ye.setDepthMode(rt),me.render(ye.gl,nt),ye.setDirty(),K.setBaseState(),ye.bindFramebuffer.set(null)}})(u,0,C,k))}saveTileTexture(u){const p=this._tileTextures[u.size[0]];p?p.push(u):this._tileTextures[u.size[0]]=[u]}getTileTexture(u){const p=this._tileTextures[u];return p&&p.length>0?p.pop():null}isPatternMissing(u){if(!u)return!1;if(!u.from||!u.to)return!0;const p=this.imageManager.getPattern(u.from.toString()),C=this.imageManager.getPattern(u.to.toString());return!p||!C}useProgram(u,p,C=!1,S=[]){this.cache=this.cache||{};const k=!!this.style.map.terrain,K=this.style.projection,N=C?ho.projectionMercator:K.shaderPreludeCode,$=C?go:K.shaderDefine,se=u+(p?p.cacheKey:"")+`/${C?Fs:K.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(k?"/terrain":"")+(S?`/${S.join("/")}`:"");return this.cache[se]||(this.cache[se]=new e0(this.context,ho[u],p,pr[u],this._showOverdrawInspector,k,N,$,S)),this.cache[se]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const u=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(u.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){var u,p;if(this._tileTextures){for(const C in this._tileTextures){const S=this._tileTextures[C];if(S)for(const k of S)k.destroy()}this._tileTextures={}}if(this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((u=this.tileExtentMesh.vertexBuffer)===null||u===void 0||u.destroy()),this.tileExtentMesh&&((p=this.tileExtentMesh.indexBuffer)===null||p===void 0||p.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.cache){for(const C in this.cache){const S=this.cache[C];S&&S.program&&this.context.gl.deleteProgram(S.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){const{drawingBufferWidth:u,drawingBufferHeight:p}=this.context.gl;return this.width!==u||this.height!==p}}function Rg(I,u){let p,C=!1,S=null,k=null;const K=()=>{S=null,C&&(I.apply(k,p),S=setTimeout(K,u),C=!1)};return(...N)=>(C=!0,k=this,p=N,S||K(),S)}class Is{constructor(u){this._getCurrentHash=()=>{const p=window.location.hash.replace("#","");if(this._hashName){let C;return p.split("&").map((S=>S.split("="))).forEach((S=>{S[0]===this._hashName&&(C=S)})),(C&&C[1]||"").split("/")}return p.split("/")},this._onHashChange=()=>{const p=this._getCurrentHash();if(!this._isValidHash(p))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(p[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+p[2],+p[1]],zoom:+p[0],bearing:C,pitch:+(p[4]||0)}),!0},this._updateHashUnthrottled=()=>{const p=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,p)},this._removeHash=()=>{const p=this._getCurrentHash();if(p.length===0)return;const C=p.join("/");let S=C;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${C}`);let k=window.location.hash.replace(S,"");k.startsWith("#&")?k=k.slice(0,1)+k.slice(2):k==="#"&&(k="");let K=window.location.href.replace(/(#.+)?$/,k);K=K.replace("&&","&"),window.history.replaceState(window.history.state,null,K)},this._updateHash=Rg(this._updateHashUnthrottled,300),this._hashName=u&&encodeURIComponent(u)}addTo(u){return this._map=u,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(u){const p=thi Line truncated
${e} <span></span>
`,os().s[12]++,this._textEl=this._container.querySelector("span"),os().s[13]++,this.updateZoomLevel()}addEventListeners(){os().f[4]++,os().s[14]++,this._map.on("render",()=>(os().f[5]++,os().s[15]++,this.updateZoomLevel())),os().s[16]++,this._map.on("zoomIn",()=>(os().f[6]++,os().s[17]++,this.updateZoomLevel())),os().s[18]++,this._map.on("zoomOut",()=>(os().f[7]++,os().s[19]++,this.updateZoomLevel()))}onRemove(){os().f[8]++,os().s[20]++,this._container.parentNode.removeChild(this._container),os().s[21]++,this._map=void 0}}function nD(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function iD(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function rD(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function Uz(n,e){return{circle:e(n,.8),line:e(n,.6),polygon:e(n,.3),polygonOutline:e(n,.6),default:e(n,1)}}function ope(n,e){const t=[],i=[],r=[];for(const o of Object.keys(n)){const s=n[o];if(!s||s.length===0){const a=Uz(o,e);i.push(nD(a.circle,o)),r.push(rD(a.line,o)),t.push(iD(a.polygon,a.polygonOutline,o))}else for(const a of s){const c=Uz(a,e);i.push(nD(c.circle,o,a)),r.push(rD(c.line,o,a)),t.push(iD(c.polygon,c.polygonOutline,o,a))}}return t.concat(r).concat(i)}function spe(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};for(const o of Object.keys(n.sources)){const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}return Object.assign(n,{layers:[i].concat(e),sources:r})}const WO={polygonLayer:iD,lineLayer:rD,circleLayer:nD,generateInspectStyle:spe,generateColoredLayers:ope};function Mr(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{l Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=gpe.language(this.options.language.split(",")[0]);return this.options.language&&g3?.[e][t]?g3[e][t]:g3[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const i=gm({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const o of e)r.extend(o.geometry.coordinates);this._map.fitBounds(r,i)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const i=gm({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const s=gm({},{},this.options.popup);r=new this._maplibregl.Popup(s).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=gm({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=gm(i,{element:o}));const s=new this._maplibregl.Marker(gm({},i,{element:o}));let a;if(this.options.popup){const f=gm({},{},this.options.popup);a=new this._maplibregl.Popup(f).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}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 Jt(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:Line truncated
`).reduce((r,o)=>Math.max(r,cee(n,o)),0);return t[e]=i,i}function eve(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,c=0;for(let f=0,m=e.length;f<=m;f+=2){const v=e[f];if(v===`
`||f===m){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const w=e[f+1]||n.font,B=cee(w,v);t.push(B),s+=B;const P=Jye(w);i.push(P),c=Math.max(c,P)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function tve(n,e,t,i,r,o,s,a,c,f,m){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=v=>v.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,f),n.scale(m[0],m[1]),nve(i,n)):m[0]<0||m[1]<0?(n.translate(c,f),n.scale(m[0],m[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,f,s*m[0],a*m[1]),n.restore()}function nve(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class hB{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=$A(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new hB({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return wr()}getImage(e){return wr()}getHitDetectionImage(){return wr()}getPixelRatio(e){return 1}getImageState(){return wr()}getImageSize(){return wr()}getOrigin(){return wr()}getSize(){return wr()}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_=$A(e)}listenImageChange(e){wr()}load(){wr()}unlistenImageChange(e){wr()}ready(){return Promise.resolve()}}class dB extends hB{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?ji.LOADING:ji.LOADED,this.imageState_===ji.LOADING&&this.ready().then(()=>this.imageState_=ji.LOADED),this.render()}clone(){const e=this.getScale(),t=new dB({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=vp.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=xl(s,s);this.draw_(o,a,e),r=a.canvas,vp.set(i,null,null,new aee(r,void 0,null,ji.LOADED,null))}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}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const ne=r;r=o,o=ne}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),f=Math.sqrt(o*o-c*c),m=r-f,v=Math.sqrt(c*c+m*m),w=v/c;if(e==="miter"&&w<=i)return w*t;const B=t/2/w,P=t/2*(m/v),z=Math.sqrt((r+B)*(r+B)+P*P)-r;if(this.radius2_===void 0||e==="bevel")return z*2;const Y=r*Math.sin(a),Z=Math.sqrt(r*r-Y*Y),X=o-Z,re=Math.sqrt(Y*Y+X*X)/Y;if(re<=i){const ne=re*t/2-o-r;return 2*Math.max(z,ne)}return z*2}createRenderOptions(){let e=p2,t=m2,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=l0(this.stroke_.getColor()??sM), Line truncated
`,""),n.push(e,""),n}function $ve(n,e,t){return t%2===0&&(n+=e),n}class Hve{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Ed(),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_=o?new ZL:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],f=this.pixelRatio,m=[c.scale[0]*f,c.scale[1]*f],v=c.justify?SE[c.justify]:O8(Array.isArray(e)?e[0]:e,c.textAlign||aM),w=r&&s.lineWidth?s.lineWidth:0,B=Array.isArray(e)?e:String(e).split(`
`).reduce(Vve,[]),{width:P,height:U,widths:z,heights:Y,lineWidths:Z}=eve(c,B),X=P+w,te=[],re=(X+2)*m[0],ne=(U+w)*m[1],q={width:re<0?Math.floor(re):Math.ceil(re),height:ne<0?Math.floor(ne):Math.ceil(ne),contextInstructions:te};(m[0]!=1||m[1]!=1)&&te.push("scale",m),r&&(te.push("strokeStyle",s.strokeStyle),te.push("lineWidth",w),te.push("lineCap",s.lineCap),te.push("lineJoin",s.lineJoin),te.push("miterLimit",s.miterLimit),te.push("setLineDash",[s.lineDash]),te.push("lineDashOffset",s.lineDashOffset)),i&&te.push("fillStyle",a.fillStyle),te.push("textBaseline","middle"),te.push("textAlign","center");const le=.5-v;let ce=v*X+le*w;const ve=[],ge=[];let Ee=0,we=0,Te=0,ze=0,Ie;for(let Ye=0,At=B.length;Ye<At;Ye+=2){const gt=B[Ye];if(gt===`
`){we+=Ee,Ee=0,ce=v*X+le*w,++ze;continue}const Ue=B[Ye+1]||c.font;Ue!==Ie&&(r&&ve.push("font",Ue),i&&ge.push("font",Ue),Ie=Ue),Ee=Math.max(Ee,Y[Te]);const De=[gt,ce+le*z[Te]+v*(z[Te]-Z[ze]),.5*(w+Ee)+we];ce+=z[Te],r&&ve.push("strokeText",De),i&&ge.push("fillText",De),++Te}return Array.prototype.push.apply(te,ve),Array.prototype.push.apply(te,ge),this.labels_[o]=q,q}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,f,m,v,w,B,P,U,z){a*=w[0],c*=w[1];let Y=i-a,Z=r-c;const X=o+f>e?e-f:o,te=s+m>t?t-m:s,re=P[3]+X*w[0]+P[1],ne=P[0]+te*w[1]+P[2],q=Y-P[3],le=Z-P[0];(U||v!==0)&&(Zy[0]=q,Xy[0]=q,Zy[1]=le,v1[1]=le,v1[0]=q+re,b1[0]=v1[0],b1[1]=le+ne,Xy[1]=b1[1]);let ce;return v!==0?(ce=x0(Ed(),i,r,1,1,v,-i,-r),ju(ce,Zy),ju(ce,v1),ju(ce,b1),ju(ce,Xy),F1(Math.min(Zy[0],v1[0],b1[0],Xy[0]),Math.min(Zy[1],v1[1],b1[1],Xy[1]),Math.max(Zy[0],v1[0],b1[0],Xy[0]),Math.max(Zy[1],v1[1],b1[1],Xy[1]),j_)):F1(Math.min(q,q+re),Math.min(le,le+ne),Math.max(q,q+re),Math.max(le,le+ne),j_),B&&(Y=Math.round(Y),Z=Math.round(Z)),{drawImageX:Y,drawImageY:Z,drawImageW:X,drawImageH:te,originX:f,originY:m,declutterBox:{minX:j_[0],minY:j_[1],maxX:j_[2],maxY:j_[3],value:z},canvasTransform:ce,scale:w}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),f=r.declutterBox,m=a?a[2]*r.scale[0]/2:0;return f.minX-m<=t[0]&&f.maxX+m>=0&&f.minY-m<=t[1]&&f.maxY+m>=0&&(c&&this.replayTextBackground_(e,Zy,v1,b1,Xy,s,a),tve(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=ju(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,f=O8(Array.isArray(e)?e[0]:e,o.textAlign||aM),m=SE[o.textBaseline||bE],v=a&&a.lineWidth?a.lineWidth:0,w=s.width/c-2*o.scale[0],B=f*w+2*(.5-f)*v,P=m*s.height/c+2*(.5-m)*v;return{label:s,anchorX:B,anchorY:P}}execute_(e,t,i,r,o,s,a,c){const f=this.zIndexContext_;let m;this.pixelCoordinates_&&Fv(i,this.renderedTransform_)?m=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),m=Ev(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),J0e(this.renderedTransform_,i));let v=0;const w=r.length;let B=0,P,U,z,Y,Z,X,te,re,ne,q,le,ce,ve,ge=0,Ee=0;const we=this.coordinateCache_,Te=this.viewRotation_,ze=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Ie={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Te},Ye=this.instructions!=r||this.overlaps?0:200;let At,gt,Ue,De;for(;v<w;){const Ge=r[v];switch(Ge[0]){case Ar.BEGIN_GEOMETRY:At=Ge[1],De=Ge[3],At.getGeometry()?a!==void 0&&!Yl(a,De.getExtent())?v=Ge[2]+1:++v:v=Ge[2],f&&(f.zIndex=Ge[4]);break;case Ar.BEGIN_PATH:ge>Ye&&(this.fill_(e),ge=0),Ee>Ye&&(e.stroke(),Ee=0),!ge&&!Ee&&(e.beginPath(),Z=NaN,X=NaN),++v;break;case Ar.CIRCLE:B=Ge[1];const St=m[B],ut=m[B+1],kt=m[B+2],Ut=m[B+3],Le=kt-St,ke=Ut-ut,Oe=Math.sqrt(Le*Le+ke*ke);e.moveTo(St+Oe,ut),e.arc(St,ut,Oe,0,2*Math.PI,!0),++v;break;case Ar.CLOSE_PATH:e.closePath(),++v;break;case Ar.CUSTOM:B=Ge[1],P=Ge[2];const Ze=Ge[3],bt=Ge[4],yt=Ge[5];Ie.geometry=Ze,Ie.feature=At,v in we||(we[v]=[]);const Mt=we[v];yt?yt(m,B,P,2,Mt):(Mt[0]=m[B],Mt[1]=m[B+1],Mt.length=2),f&&(f.zIndex=Ge[6]),bt(Mt,Ie),++v;break;case Ar.DRAW_IMAGE:B=Ge[1],P=Ge[2],ne=Ge[3],U=Ge[4],z=Ge[5];let Kt=Ge[6];const Dt=Ge[7],en=Ge[8],Gn=Ge[9],Nn=Ge[10];let Si=Ge[11];const Un=Ge[12];let Ln=Ge[13];Y=Ge[14]||"declutter";const Tn=Ge[15];if(!ne&&Ge.length>=20){q=Ge[19],le=Ge[20],ce=Ge[21],ve=Ge[22];const Ki=this.drawLabelWithPointPlacement_(q,le,ce,ve);ne=Ki.label,Ge[3]=ne;const Wn=Ge[23];U=(Ki.anchorX-Wn)*this.pixelRatio,Ge[4]=U;const Hn=Ge[24];z=(Ki.anchorY-Hn)*this.pixelRatio,Ge[5]=z,Kt=ne.height,Ge[6]=Kt,Ln=ne.width,Ge[13]=Ln}let ti;Ge.length>25&&(ti=Ge[25]);let Bn,je,H;Ge.length>17?(Bn=Ge[16],je=Ge[17],H=Ge[18]):(Bn=aC,je=null,H=null),Nn&&ze?Si+=Te:!Nn&&!ze&&(Si-=Te);let j=0;for(;B<P;B+=2){if(ti&&ti[j++]<Ln/this.pixelRatio)continue;const Ki=this.calculateImageOrLabelDimensions_(ne.width,ne.height,m[B],m[B+1],Ln,Kt,U,z,en,Gn,Si,Un,o,Bn,!!je||!!H,At),Wn=[e,t,ne,Ki,Dt,je,H];if(c){let Hn,Wi,Gi;if(Tn){const Li=P-B;if(!Tn[Li]){Tn[Li]={args:Wn,declutterMode:Y};continue}const Er=Tn[Li];Hn=Er.args,Wi=Er.declutterMode,delete Tn[Li],Gi=lN(Hn)}let Ri,Qi;if(Hn&&(Wi!=="declutter"||!c.collides(Gi))&&(Ri=!0),(Y!=="declutter"||!c.collides(Ki.declutterBox))&&(Qi=!0),Wi==="declutter"&&Y==="declutter"){const Li Line truncated
`),r=dbe.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
`),t+=i[o].split("").join(r);return t}return n}let k8;function Uee(){return k8||(k8=gB(1,1).getContext("2d")),k8}function Qb(n,e){return Uee().measureText(n).width+(n.length-1)*e}const OE={};Xb.on("propertychange",()=>{for(const n in OE)delete OE[n]});function UD(n,e,t,i){if(n.indexOf(`
`,os().s[12]++,this._textEl=this._container.querySelector("span"),os().s[13]++,this.updateZoomLevel()}addEventListeners(){os().f[4]++,os().s[14]++,this._map.on("render",()=>(os().f[5]++,os().s[15]++,this.updateZoomLevel())),os().s[16]++,this._map.on("zoomIn",()=>(os().f[6]++,os().s[17]++,this.updateZoomLevel())),os().s[18]++,this._map.on("zoomOut",()=>(os().f[7]++,os().s[19]++,this.updateZoomLevel()))}onRemove(){os().f[8]++,os().s[20]++,this._container.parentNode.removeChild(this._container),os().s[21]++,this._map=void 0}}function lD(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function uD(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function cD(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function qz(n,e){return{circle:e(n,.8),line:e(n,.6),polygon:e(n,.3),polygonOutline:e(n,.6),default:e(n,1)}}function npe(n,e){const t=[],i=[],r=[];for(const o of Object.keys(n)){const s=n[o];if(!s||s.length===0){const a=qz(o,e);i.push(lD(a.circle,o)),r.push(cD(a.line,o)),t.push(uD(a.polygon,a.polygonOutline,o))}else for(const a of s){const c=qz(a,e);i.push(lD(c.circle,o,a)),r.push(cD(c.line,o,a)),t.push(uD(c.polygon,c.polygonOutline,o,a))}}return t.concat(r).concat(i)}function ipe(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};for(const o of Object.keys(n.sources)){const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}return Object.assign(n,{layers:[i].concat(e),sources:r})}const VO={polygonLayer:uD,lineLayer:cD,circleLayer:lD,generateInspectStyle:ipe,generateColoredLayers:npe};function Mr(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{l Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=fpe.language(this.options.language.split(",")[0]);return this.options.language&&g3?.[e][t]?g3[e][t]:g3[e].en}_fitBoundsForMarkers(){var e;if(this._typeahead.data.length<1)return;const t=this._typeahead.data.filter(i=>typeof i!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=gm({},{padding:100},this.options.flyTo),o=new this._maplibregl.LngLatBounds;for(const s of t)"geometry"in s&&((e=s.geometry)===null||e===void 0?void 0:e.type)==="Point"&&o.extend(s.geometry.coordinates);this._map.fitBounds(o,r)}return t.length>0&&this._maplibregl&&this._handleResultMarkers(t),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){var t;if(!this._map)return;this._removeMarker();const r=gm({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let o=null;if(this.options.popup){const a=gm({},{},this.options.popup);o=new this._maplibregl.Popup(a).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)):((t=e.geometry)===null||t===void 0?void 0:t.type)==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=gm({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=gm(i,{element:o}));const s=new this._maplibregl.Marker(gm({},i,{element:o}));let a;if(this.options.popup){const d=gm({},{},this.options.popup);a=new this._maplibregl.Popup(d).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}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 Jt(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="aea9d83a607391782a40e2ae1c9baf372f7aa7d5",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,colLine truncated
`).reduce((r,o)=>Math.max(r,mee(n,o)),0);return t[e]=i,i}function Zye(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,c=0;for(let d=0,m=e.length;d<=m;d+=2){const v=e[d];if(v===`
`||d===m){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const M=e[d+1]||n.font,B=mee(M,v);t.push(B),s+=B;const P=Hye(M);i.push(P),c=Math.max(c,P)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function Xye(n,e,t,i,r,o,s,a,c,d,m){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=v=>v.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,d),n.scale(m[0],m[1]),Jye(i,n)):m[0]<0||m[1]<0?(n.translate(c,d),n.scale(m[0],m[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,d,s*m[0],a*m[1]),n.restore()}function Jye(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class fB{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=$A(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new fB({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return wr()}getImage(e){return wr()}getHitDetectionImage(){return wr()}getPixelRatio(e){return 1}getImageState(){return wr()}getImageSize(){return wr()}getOrigin(){return wr()}getSize(){return wr()}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_=$A(e)}listenImageChange(e){wr()}load(){wr()}unlistenImageChange(e){wr()}ready(){return Promise.resolve()}}class pB extends fB{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?Ni.LOADING:Ni.LOADED,this.imageState_===Ni.LOADING&&this.ready().then(()=>this.imageState_=Ni.LOADED),this.render()}clone(){const e=this.getScale(),t=new pB({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=vp.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=_l(s,s);this.draw_(o,a,e),r=a.canvas,vp.set(i,null,null,new dee(r,void 0,null,Ni.LOADED,null))}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}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const te=r;r=o,o=te}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),d=Math.sqrt(o*o-c*c),m=r-d,v=Math.sqrt(c*c+m*m),M=v/c;if(e==="miter"&&M<=i)return M*t;const B=t/2/M,P=t/2*(m/v),z=Math.sqrt((r+B)*(r+B)+P*P)-r;if(this.radius2_===void 0||e==="bevel")return z*2;const V=r*Math.sin(a),Z=Math.sqrt(r*r-V*V),X=o-Z,ie=Math.sqrt(V*V+X*X)/V;if(ie<=i){const te=ie*t/2-o-r;return 2*Math.max(z,te)}return z*2}createRenderOptions(){let e=p2,t=m2,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=ug(this.stroke_.getColor()??o5), Line truncated
`,""),n.push(e,""),n}function qve(n,e,t){return t%2===0&&(n+=e),n}class Yve{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Bd(),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_=o?new tU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],d=this.pixelRatio,m=[c.scale[0]*d,c.scale[1]*d],v=c.justify?ME[c.justify]:D8(Array.isArray(e)?e[0]:e,c.textAlign||s5),M=r&&s.lineWidth?s.lineWidth:0,B=Array.isArray(e)?e:String(e).split(`
`).reduce(Qve,[]),{width:P,height:U,widths:z,heights:V,lineWidths:Z}=Zye(c,B),X=P+M,re=[],ie=(X+2)*m[0],te=(U+M)*m[1],q={width:ie<0?Math.floor(ie):Math.ceil(ie),height:te<0?Math.floor(te):Math.ceil(te),contextInstructions:re};(m[0]!=1||m[1]!=1)&&re.push("scale",m),r&&(re.push("strokeStyle",s.strokeStyle),re.push("lineWidth",M),re.push("lineCap",s.lineCap),re.push("lineJoin",s.lineJoin),re.push("miterLimit",s.miterLimit),re.push("setLineDash",[s.lineDash]),re.push("lineDashOffset",s.lineDashOffset)),i&&re.push("fillStyle",a.fillStyle),re.push("textBaseline","middle"),re.push("textAlign","center");const le=.5-v;let ce=v*X+le*M;const ve=[],ge=[];let Ee=0,xe=0,Te=0,Fe=0,Ie;for(let Ye=0,At=B.length;Ye<At;Ye+=2){const mt=B[Ye];if(mt===`
`){xe+=Ee,Ee=0,ce=v*X+le*M,++Fe;continue}const Ue=B[Ye+1]||c.font;Ue!==Ie&&(r&&ve.push("font",Ue),i&&ge.push("font",Ue),Ie=Ue),Ee=Math.max(Ee,V[Te]);const De=[mt,ce+le*z[Te]+v*(z[Te]-Z[Fe]),.5*(M+Ee)+xe];ce+=z[Te],r&&ve.push("strokeText",De),i&&ge.push("fillText",De),++Te}return Array.prototype.push.apply(re,ve),Array.prototype.push.apply(re,ge),this.labels_[o]=q,q}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,d,m,v,M,B,P,U,z){a*=M[0],c*=M[1];let V=i-a,Z=r-c;const X=o+d>e?e-d:o,re=s+m>t?t-m:s,ie=P[3]+X*M[0]+P[1],te=P[0]+re*M[1]+P[2],q=V-P[3],le=Z-P[0];(U||v!==0)&&(Hy[0]=q,Zy[0]=q,Hy[1]=le,y1[1]=le,y1[0]=q+ie,v1[0]=y1[0],v1[1]=le+te,Zy[1]=v1[1]);let ce;return v!==0?(ce=xg(Bd(),i,r,1,1,v,-i,-r),Fu(ce,Hy),Fu(ce,y1),Fu(ce,v1),Fu(ce,Zy),U1(Math.min(Hy[0],y1[0],v1[0],Zy[0]),Math.min(Hy[1],y1[1],v1[1],Zy[1]),Math.max(Hy[0],y1[0],v1[0],Zy[0]),Math.max(Hy[1],y1[1],v1[1],Zy[1]),z_)):U1(Math.min(q,q+ie),Math.min(le,le+te),Math.max(q,q+ie),Math.max(le,le+te),z_),B&&(V=Math.round(V),Z=Math.round(Z)),{drawImageX:V,drawImageY:Z,drawImageW:X,drawImageH:re,originX:d,originY:m,declutterBox:{minX:z_[0],minY:z_[1],maxX:z_[2],maxY:z_[3],value:z},canvasTransform:ce,scale:M}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),d=r.declutterBox,m=a?a[2]*r.scale[0]/2:0;return d.minX-m<=t[0]&&d.maxX+m>=0&&d.minY-m<=t[1]&&d.maxY+m>=0&&(c&&this.replayTextBackground_(e,Hy,y1,v1,Zy,s,a),Xye(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=Fu(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,d=D8(Array.isArray(e)?e[0]:e,o.textAlign||s5),m=ME[o.textBaseline||yE],v=a&&a.lineWidth?a.lineWidth:0,M=s.width/c-2*o.scale[0],B=d*M+2*(.5-d)*v,P=m*s.height/c+2*(.5-m)*v;return{label:s,anchorX:B,anchorY:P}}execute_(e,t,i,r,o,s,a,c){const d=this.zIndexContext_;let m;this.pixelCoordinates_&&Fv(i,this.renderedTransform_)?m=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),m=wv(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Hge(this.renderedTransform_,i));let v=0;const M=r.length;let B=0,P,U,z,V,Z,X,re,ie,te,q,le,ce,ve,ge=0,Ee=0;const xe=this.coordinateCache_,Te=this.viewRotation_,Fe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Ie={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Te},Ye=this.instructions!=r||this.overlaps?0:200;let At,mt,Ue,De;for(;v<M;){const Ge=r[v];switch(Ge[0]){case Ar.BEGIN_GEOMETRY:At=Ge[1],De=Ge[3],At.getGeometry()?a!==void 0&&!ql(a,De.getExtent())?v=Ge[2]+1:++v:v=Ge[2],d&&(d.zIndex=Ge[4]);break;case Ar.BEGIN_PATH:ge>Ye&&(this.fill_(e),ge=0),Ee>Ye&&(e.stroke(),Ee=0),!ge&&!Ee&&(e.beginPath(),Z=NaN,X=NaN),++v;break;case Ar.CIRCLE:B=Ge[1];const St=m[B],ut=m[B+1],kt=m[B+2],Ut=m[B+3],Le=kt-St,ke=Ut-ut,Oe=Math.sqrt(Le*Le+ke*ke);e.moveTo(St+Oe,ut),e.arc(St,ut,Oe,0,2*Math.PI,!0),++v;break;case Ar.CLOSE_PATH:e.closePath(),++v;break;case Ar.CUSTOM:B=Ge[1],P=Ge[2];const Ze=Ge[3],bt=Ge[4],yt=Ge[5];Ie.geometry=Ze,Ie.feature=At,v in xe||(xe[v]=[]);const Mt=xe[v];yt?yt(m,B,P,2,Mt):(Mt[0]=m[B],Mt[1]=m[B+1],Mt.length=2),d&&(d.zIndex=Ge[6]),bt(Mt,Ie),++v;break;case Ar.DRAW_IMAGE:B=Ge[1],P=Ge[2],te=Ge[3],U=Ge[4],z=Ge[5];let Kt=Ge[6];const Dt=Ge[7],en=Ge[8],Gn=Ge[9],Nn=Ge[10];let Si=Ge[11];const Un=Ge[12];let Ln=Ge[13];V=Ge[14]||"declutter";const Tn=Ge[15];if(!te&&Ge.length>=20){q=Ge[19],le=Ge[20],ce=Ge[21],ve=Ge[22];const Ki=this.drawLabelWithPointPlacement_(q,le,ce,ve);te=Ki.label,Ge[3]=te;const Wn=Ge[23];U=(Ki.anchorX-Wn)*this.pixelRatio,Ge[4]=U;const Hn=Ge[24];z=(Ki.anchorY-Hn)*this.pixelRatio,Ge[5]=z,Kt=te.height,Ge[6]=Kt,Ln=te.width,Ge[13]=Ln}let ti;Ge.length>25&&(ti=Ge[25]);let Bn,je,H;Ge.length>17?(Bn=Ge[16],je=Ge[17],H=Ge[18]):(Bn=sC,je=null,H=null),Nn&&Fe?Si+=Te:!Nn&&!Fe&&(Si-=Te);let j=0;for(;B<P;B+=2){if(ti&&ti[j++]<Ln/this.pixelRatio)continue;const Ki=this.calculateImageOrLabelDimensions_(te.width,te.height,m[B],m[B+1],Ln,Kt,U,z,en,Gn,Si,Un,o,Bn,!!je||!!H,At),Wn=[e,t,te,Ki,Dt,je,H];if(c){let Hn,Qi,Wi;if(Tn){const Li=P-B;if(!Tn[Li]){Tn[Li]={args:Wn,declutterMode:V};continue}const Er=Tn[Li];Hn=Er.args,Qi=Er.declutterMode,delete Tn[Li],Wi=gN(Hn)}let Ri,qi;if(Hn&&(Qi!=="declutter"||!c.collides(Wi))&&(Ri=!0),(V!=="declutter"||!c.collides(Ki.declutterBox))&&(qi=!0),Qi==="declutter"&&V==="declutter"){const Li Line truncated
`),r=cbe.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
`),t+=i[o].split("").join(r);return t}return n}let L8;function Gee(){return L8||(L8=vB(1,1).getContext("2d")),L8}function Wb(n,e){return Gee().measureText(n).width+(n.length-1)*e}const BE={};Zb.on("propertychange",()=>{for(const n in BE)delete BE[n]});function GD(n,e,t,i){if(n.indexOf(`
`)!==-1){const s=n.split(`
`),a=[];for(let c=0,f=s.length;c<f;++c)a.push(UD(s[c],e,t,i));return a.join(`
`)}const r=t+","+e+","+n+","+i;let o=OE[r];if(!o){const s=n.split(" ");if(s.length>1){const a=Uee();a.font=e;const f=a.measureText("M").width*t;let m="";const v=[];for(let w=0,B=s.length;w<B;++w){const P=s[w],U=m+(m?" ":"")+P;Qb(U,i)<=f?m=U:(m&&v.push(m),m=P)}m&&v.push(m);for(let w=0,B=v.length;w<B&&B>1;++w){const P=v[w];if(Qb(P,i)<f*.35){const U=w>0?Qb(v[w-1],i):1/0,z=w<B-1?Qb(v[w+1],i):1/0;v.splice(w,1),B-=1,U<z?(v[w-1]+=" "+P,w-=1):v[w]=P+" "+v[w]}}for(let w=0,B=v.length-1;w<B;++w){const P=v[w],U=v[w+1];if(Qb(P,i)>f*.7&&Qb(U,i)<f*.6){const z=P.split(" "),Y=z.pop();Qb(Y,i)<f*.2&&(v[w]=z.join(" "),v[w+1]=Y+" "+U),B-=1}}o=v.join(`
`)}else o=n;o=LD(o,i),OE[r]=o}return o}const fbe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],yN={};function pbe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){if(VA)return n;let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in yN)continue;yN[o]=!0;const a=dD(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(fbe.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(m=>m.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&m.weight==a&&m.style===c)){const m=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+m+'"]')){const v=document.createElement("link");v.href=m,v.rel="stylesheet",document.head.appendChild(v)}}}})(),n}const mbe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},gbe={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]},ybe=function(n,e){const t=Rge(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},_f={zoom:0,distanceFromCenter:0};vf.register(H6,{...vf.definitions,pitch:[{kind:"number"},[],n=>_f.pitch||90],"distance-from-center":[{kind:"number"},[],n=>_f.distanceFromCenter||0]});let pw,D8;function Hi(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||Bm)[t];const f=Yge[`${e}_${n.type}`][t];c===void 0&&(c=f.default);let m=Dge(c);if(!m&&aJ(c)&&(c=jge(c,f),m=!0),m){const v=ybe(c,f);a[t]=v.evaluate.bind(v)}else f.type=="color"&&(c=Ls.parse(c)),a[t]=function(){return c}}return a[t](_f,i,o)}function vN(n,e,t,i){return Hi(n,"layout",`${t}-allow-overlap`,e,i)?Hi(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function vbe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=Kge(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](_f,t)}function iv(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const bbe=/\{[^{}}]*\}/g;function R8(n,e){return n.replace(bbe,function(t){return e[t.slice(1,-1)]||""})}function bN(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const Cbe={};function _be(n,e,t,i=C0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");Cbe[cbe(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const re in o){const ne=o[re];h2(()=>ne).then(async q=>{let le;if(typeof Image<"u"){const ce=new Image;if(typeof q=="string")ce.crossOrigin="anonymous",ce.src=q;else{let ve;q instanceof Request?ve=await fetch(q):q instanceof Response&&(ve=q);const ge=await ve.blob();le=URL.createObjectURL(ge),ce.src=le}ce.addEventListener("load",function ve(){ce.removeEventListener("load",ve),c[re]={image:ce,size:[ce.width,ce.height]},n.changed(),le&&URL.revokeObjectURL(le)}),ce.addEventListener("error",function ve(){URL.revokeObjectURL(le),ce.removeEventListener("error",ve)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ce=self;ce.postMessage({action:"loadImage",src:q}),ce.addEventListener("message",function(ge){ge.data.action==="imageLoaded"&&ge.data.src===q&&(c[re]={image:ge.data.image,size:[ge.data.image.width,ge.data.image.height]})})}})}const f=jX(e.layers),m={},v=[],w={},B={},P=Ree(e),U=Abe(e);let z;for(let re=0,ne=f.length;re<ne;++re){const q=f[re],le=q.id;if(typeof t=="string"&&q.source==t||Array.isArray(t)&&t.indexOf(le)!==-1){const ce=q["source-layer"];if(z){if(q.source!==z)throw new Error(`Layer "${le}" does not use source "${z}`)}else{z=q.source;const ge=e.sources[z];if(!ge)throw new Error(`Source "${z}" is not defined`);const Ee=ge.type;if(Ee!=="vector"&&Ee!=="geojson")throw new Error(`Source "${z}" is not of type "vector" or "geojson", but "${Ee}"`)}let ve=m[ce];ve||(ve=[],m[ce]=ve),ve.push({layer:q,index:re}),v.push(le)}}const Y=new mv,Z=new u0,X=[],te=function(re,ne,q){const le=n.getSource?.()?.format_?.layerName_??"mvt:layer",ce=re.getProperties(),ve=m[ce[le]];if(!ve)return;let ge=i.indexOf(ne);ge==-1&&(ge=iU(ne,i)),_f.zoom=ge,_f.distanceFromCenter=0;const Ee=re.getGeometry(),we=mbe[Ee.getType()],Te=n.get("map");if(Te&&Te instLine truncated
`),a=[];for(let c=0,d=s.length;c<d;++c)a.push(GD(s[c],e,t,i));return a.join(`
`)}const r=t+","+e+","+n+","+i;let o=BE[r];if(!o){const s=n.split(" ");if(s.length>1){const a=Gee();a.font=e;const d=a.measureText("M").width*t;let m="";const v=[];for(let M=0,B=s.length;M<B;++M){const P=s[M],U=m+(m?" ":"")+P;Wb(U,i)<=d?m=U:(m&&v.push(m),m=P)}m&&v.push(m);for(let M=0,B=v.length;M<B&&B>1;++M){const P=v[M];if(Wb(P,i)<d*.35){const U=M>0?Wb(v[M-1],i):1/0,z=M<B-1?Wb(v[M+1],i):1/0;v.splice(M,1),B-=1,U<z?(v[M-1]+=" "+P,M-=1):v[M]=P+" "+v[M]}}for(let M=0,B=v.length-1;M<B;++M){const P=v[M],U=v[M+1];if(Wb(P,i)>d*.7&&Wb(U,i)<d*.6){const z=P.split(" "),V=z.pop();Wb(V,i)<d*.2&&(v[M]=z.join(" "),v[M+1]=V+" "+U),B-=1}}o=v.join(`
`)}else o=n;o=ND(o,i),BE[r]=o}return o}const Abe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],EN={};function hbe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){if(VA)return n;let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in EN)continue;EN[o]=!0;const a=vD(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(Abe.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(m=>m.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&m.weight==a&&m.style===c)){const m=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+m+'"]')){const v=document.createElement("link");v.href=m,v.rel="stylesheet",document.head.appendChild(v)}}}})(),n}const dbe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},fbe={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]},pbe=function(n,e){const t=T0e(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Th={zoom:0,distanceFromCenter:0};bf.register(X6,{...bf.definitions,pitch:[{kind:"number"},[],n=>Th.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Th.distanceFromCenter||0]});let fw,U8;function ji(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||WA)[t];const d=W0e[`${e}_${n.type}`][t];c===void 0&&(c=d.default);let m=I0e(c);if(!m&&dJ(c)&&(c=K0e(c,d),m=!0),m){const v=pbe(c,d);a[t]=v.evaluate.bind(v)}else{const v=d.type;(v==="color"||v==="colorArray")&&(c=Ls.parse(c)),a[t]=function(){return c}}}return a[t](Th,i,o)}function BN(n,e,t,i){return ji(n,"layout",`${t}-allow-overlap`,e,i)?ji(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function mbe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=P0e(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Th,t)}function nv(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const gbe=/\{[^{}}]*\}/g;function K8(n,e){return n.replace(gbe,function(t){return e[t.slice(1,-1)]||""})}function ON(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const ybe={};function vbe(n,e,t,i=Pm,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");ybe[abe(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const ie in o){const te=o[ie];h2(()=>te).then(async q=>{let le;if(typeof Image<"u"){const ce=new Image;if(typeof q=="string")ce.crossOrigin="anonymous",ce.src=q;else{let ve;q instanceof Request?ve=await fetch(q):q instanceof Response&&(ve=q);const ge=await ve.blob();le=URL.createObjectURL(ge),ce.src=le}ce.addEventListener("load",function ve(){ce.removeEventListener("load",ve),c[ie]={image:ce,size:[ce.width,ce.height]},n.changed(),le&&URL.revokeObjectURL(le)}),ce.addEventListener("error",function ve(){URL.revokeObjectURL(le),ce.removeEventListener("error",ve)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ce=self;ce.postMessage({action:"loadImage",src:q}),ce.addEventListener("message",function(ge){ge.data.action==="imageLoaded"&&ge.data.src===q&&(c[ie]={image:ge.data.image,size:[ge.data.image.width,ge.data.image.height]})})}})}const d=YX(e.layers),m={},v=[],M={},B={},P=zee(e),U=lbe(e);let z;for(let ie=0,te=d.length;ie<te;++ie){const q=d[ie],le=q.id;if(typeof t=="string"&&q.source==t||Array.isArray(t)&&t.indexOf(le)!==-1){const ce=q["source-layer"];if(z){if(q.source!==z)throw new Error(`Layer "${le}" does not use source "${z}`)}else{z=q.source;const ge=e.sources[z];if(!ge)throw new Error(`Source "${z}" is not defined`);const Ee=ge.type;if(Ee!=="vector"&&Ee!=="geojson")throw new Error(`Source "${z}" is not of type "vector" or "geojson", but "${Ee}"`)}let ve=m[ce];ve||(ve=[],m[ce]=ve),ve.push({layer:q,index:ie}),v.push(le)}}const V=new pv,Z=new cg,X=[],re=function(ie,te,q){const le=n.getSource?.()?.format_?.layerName_??"mvt:layer",ce=ie.getProperties(),ve=m[ce[le]];if(!ve)return;let ge=i.indexOf(te);ge==-1&&(ge=EE(te,i)),Th.zoom=ge,Th.distanceFromCenter=0;const Ee=ie.getGeometry(),xe=dbe[Ee.getType()Line truncated
`)return H.push(`
`,""),H;if(we==2)return H.push(LD(Ne,Tn),xe),H;Ne=UD(Ne,xe,ti,Tn).split(`
`,""),H;if(xe==2)return H.push(ND(Ne,Tn),Me),H;Ne=GD(Ne,Me,ti,Tn).split(`
`);for(let Qe=0,it=Ne.length;Qe<it;++Qe)Qe>0&&H.push(`
`,""),H.push(Ne[Qe],xe);return H},[]):Nn=R8(je,ce).trim(),Ut=Hi(De,"paint","text-opacity",ze,P,Ie)}if(Nn&&Ut&&!Gn){yt||(++Ye,Ze=X[Ye],(!Ze||!Ze.getText()||Ze.getFill()||Ze.getStroke())&&(Ze=new df,X[Ye]=Ze),Ze.setImage(void 0),Ze.setGeometry(void 0));const Bn=vN(De,ze,"text",P);Ze.getText()||Ze.setText(Mt),Mt=Ze.getText(),(!Mt||"getDeclutterMode"in Mt&&Mt.getDeclutterMode()!==Bn)&&(Mt=new hee({padding:[2,2,2,2],declutterMode:Bn}),Ze.setText(Mt));const je=Hi(De,"layout","text-transform",ze,P,Ie);je=="uppercase"?Nn=Array.isArray(Nn)?Nn.map((bn,Cn)=>Cn%2?bn:bn.toUpperCase()):Nn.toUpperCase():je=="lowercase"&&(Nn=Array.isArray(Nn)?Nn.map((bn,Cn)=>Cn%2?bn:bn.toLowerCase()):Nn.toLowerCase());const H=Array.isArray(Nn)?Nn:we==2?LD(Nn,Tn):UD(Nn,Si,ti,Tn);if(Mt.setText(H),Mt.setFont(Si),Mt.setRotation(T8(Hi(De,"layout","text-rotate",ze,P,Ie))),typeof Mt.setKeepUpright=="function"){const bn=Hi(De,"layout","text-keep-upright",ze,P,Ie);Mt.setKeepUpright(bn)}const j=Hi(De,"layout","text-anchor",ze,P,Ie),Q=yt||we==1?"point":Hi(De,"layout","symbol-placement",ze,P,Ie);let he;if(Q==="line-center"?(Mt.setPlacement("line"),he="center"):Mt.setPlacement(Q),Q==="line"&&typeof Mt.setRepeat=="function"){const bn=Hi(De,"layout","symbol-spacing",ze,P,Ie);Mt.setRepeat(bn*2)}Mt.setOverflow(Q==="point");let xe=Hi(De,"paint","text-halo-width",ze,P,Ie);const Ne=Hi(De,"layout","text-offset",ze,P,Ie),Qe=Hi(De,"paint","text-translate",ze,P,Ie);let it=0,vt=0;if(Q=="point"){he="center",j.indexOf("left")!==-1?(he="left",vt=xe):j.indexOf("right")!==-1&&(he="right",vt=-xe);const bn=Hi(De,"layout","text-rotation-alignment",ze,P,Ie);Mt.setRotateWithView(bn=="map")}else Mt.setMaxAngle(T8(Hi(De,"layout","text-max-angle",ze,P,Ie))*Nn.length/H.length),Mt.setRotateWithView(!1);Mt.setTextAlign(he);let $e="middle";j.indexOf("bottom")==0?($e="bottom",it=-xe-.5*(Un-1)*Ln):j.indexOf("top")==0&&($e="top",it=xe+.5*(Un-1)*Ln),Mt.setTextBaseline($e);const ot=Hi(De,"layout","text-justify",ze,P,Ie);Mt.setJustify(ot==="auto"?void 0:ot),Mt.setOffsetX(Ne[0]*Ln+vt+Qe[0]),Mt.setOffsetY(Ne[1]*Ln+it+Qe[1]),Z.setColor(iv(Hi(De,"paint","text-color",ze,P,Ie),Ut)),Mt.setFill(Z);const b=iv(Hi(De,"paint","text-halo-color",ze,P,Ie),Ut);if(b&&xe>0){Y.setColor(b),xe*=2;const bn=.5*Ln;Y.setWidth(xe<=bn?xe:bn),Mt.setStroke(Y)}else Mt.setStroke(void 0);const Rt=Hi(De,"layout","text-padding",ze,P,Ie),mn=Mt.getPadding();Rt!==mn[0]&&(mn[0]=Rt,mn[1]=Rt,mn[2]=Rt,mn[3]=Rt),Ze.setZIndex(bt)}}}if(Ye>-1)return X.length=Ye+1,X};return n.setStyle(te),n.set("mapbox-layers",v),n.set("mapbox-source",z),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),te}class Kee{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=mB,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Us(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Us(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return wr()}readFeature(e,t){return wr()}readFeatures(e,t){return wr()}readGeometry(e,t){return wr()}readProjection(e){return wr()}writeFeature(e,t){return wr()}writeFeatures(e,t){return wr()}writeGeometry(e,t){return wr()}}function yB(n,e,t){const i=t?Us(t.featureProjection):null,r=t?Us(t.dataProjection):null;let o=n;if(i&&r&&!QA(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(TC(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(c){for(let f=0,m=c.length;f<m;++f)c[f]=Math.round(c[f]*s)/s;return c};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const xbe={Point:kC,LineString:RC,Polygon:j1,MultiPoint:y5,MultiLineString:hM,MultiPolygon:dM};function Mbe(n,e,t){return Array.isArray(e[0])?(QJ(n,0,e,t)||(n=n.slice(),ED(n,0,e,t)),n):(DL(n,0,e,t)||(n=n.slice(),gE(n,0,e,t)),n)}function Fee(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>Fee({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return yB(new qA(i,i==="Polygon"?Mbe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function rU(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>rU(r,e));return new ME(i)}const t=xbe[n.type];return yB(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class wbe extends Kee{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(mw(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(mw(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return wr()}readFeaturesFromObject(e,t){return wr()}rea Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function kCe(n,e){const t=Zee(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let DCe=class extends s5{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=TCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=kCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const f=c*a,m=[];for(let v=0,w=r.length;v<w;++v)m.push(r[v].slice(f,f+a));this.workers_[c].postMessage({buffers:m,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},m)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,f=a*s;i.set(new Uint8ClampedArray(c),f),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const TN={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class kN extends jm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class Xee extends Vee{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=LCe(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(br.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new pJ(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:Ed(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:PCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:Ed(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Ur(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof F2?a:a.getSource();if(!c)continue;const f=c.getAttributions()?.(i);typeof f=="string"?r.push(f):f!==void 0&&r.push(...f)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new DCe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Mf(e);r.size[0]=Math.ceil(Ho(e)/t),r.size[1]=Math.ceil(Wu(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!z1(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameSta Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Jee(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class YCe extends CB{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:VCe,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:Tee,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!QA(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||QA(t,e)))return this.tileGrid;const i=Ur(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=sU(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),f=c?this.tileUrlFunction(c,r,o):void 0,m=new this.tileClass(a,f!==void 0?oi.IDLE:oi.EMPTY,f!==void 0?f:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return m.key=s,m.addEventListener(br.CHANGE,this.handleTileChange.bind(this)),m}getTile(e,t,i,r,o,s){const a=this.getProjection();if(!a||!o||QA(a,o))return this.getTileInternal(e,t,i,r,a||o);const c=[e,t,i],f=this.getKey(),m=this.getTileGridForProjection(a),v=this.getTileGridForProjection(o),w=this.getTileCoordForTileUrlFunction(c,o),B=new Qee(a,m,o,v,c,w,this.getTilePixelRatio(r),this.getGutter(),(P,U,z,Y)=>this.getTileInternal(P,U,z,Y,a,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return B.key=f,B}getTileInternal(e,t,i,r,o,s){const a=this.getKey(),c=_S(this,a,e,t,i);if(s&&s.containsKey(c))return s.get(c);const f=this.createTile_(e,t,i,r,o,a);return s?.set(c,f),f}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Us(e);if(i){const r=Ur(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function VCe(n,e){if(VA){const t=n.getCrossOrigin();let i="same-origin",r="same-origin";t==="anonymous"||t===""?(i="cors",r="omit"):t==="use-credentials"&&(i="cors",r="include"),fetch(e,{mode:i,credentials:r}).then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}`);return o.blob()}).then(o=>createImageBitmap(o)).then(o=>{const s=n.getImage();s.width=o.width,s.height=o.height,s.getContext("2d").drawImage(o,0,0),o.close?.(),s.dispatchEvent(new Event("load"))}).catch(()=>{n.getImage().dispatchEvent(new Event("error"))});return}n.getImage().src=e}class ete extends YCe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Us("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)KCe(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Us("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const f=A5(t,i);r=_J(e.bounds,f)}const o=bB(i),s=e.minzoom||0,a=e.maxzoom||22,c=aU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=Jee(e.tiles,c),e.attribution&&!this.getAttributions()){const f=r!==void 0?r:o;this.setAttributions(function(m){return Yl(f,m.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class lU extends CB{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||bB(t),r=e.tileGrid||aU({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.c Line truncated
`,""),H.push(Ne[Qe],Me);return H},[]):Nn=K8(je,ce).trim(),Ut=ji(De,"paint","text-opacity",Fe,P,Ie)}if(Nn&&Ut&&!Gn){yt||(++Ye,Ze=X[Ye],(!Ze||!Ze.getText()||Ze.getFill()||Ze.getStroke())&&(Ze=new ff,X[Ye]=Ze),Ze.setImage(void 0),Ze.setGeometry(void 0));const Bn=BN(De,Fe,"text",P);Ze.getText()||Ze.setText(Mt),Mt=Ze.getText(),(!Mt||"getDeclutterMode"in Mt&&Mt.getDeclutterMode()!==Bn)&&(Mt=new yee({padding:[2,2,2,2],declutterMode:Bn}),Ze.setText(Mt));const je=ji(De,"layout","text-transform",Fe,P,Ie);je=="uppercase"?Nn=Array.isArray(Nn)?Nn.map((bn,Cn)=>Cn%2?bn:bn.toUpperCase()):Nn.toUpperCase():je=="lowercase"&&(Nn=Array.isArray(Nn)?Nn.map((bn,Cn)=>Cn%2?bn:bn.toLowerCase()):Nn.toLowerCase());const H=Array.isArray(Nn)?Nn:xe==2?ND(Nn,Tn):GD(Nn,Si,ti,Tn);if(Mt.setText(H),Mt.setFont(Si),Mt.setRotation(P8(ji(De,"layout","text-rotate",Fe,P,Ie))),typeof Mt.setKeepUpright=="function"){const bn=ji(De,"layout","text-keep-upright",Fe,P,Ie);Mt.setKeepUpright(bn)}const j=ji(De,"layout","text-anchor",Fe,P,Ie),Q=yt||xe==1?"point":ji(De,"layout","symbol-placement",Fe,P,Ie);let he;if(Q==="line-center"?(Mt.setPlacement("line"),he="center"):Mt.setPlacement(Q),Q==="line"&&typeof Mt.setRepeat=="function"){const bn=ji(De,"layout","symbol-spacing",Fe,P,Ie);Mt.setRepeat(bn*2)}Mt.setOverflow(Q==="point");let Me=ji(De,"paint","text-halo-width",Fe,P,Ie);const Ne=ji(De,"layout","text-offset",Fe,P,Ie),Qe=ji(De,"paint","text-translate",Fe,P,Ie);let it=0,vt=0;if(Q=="point"){he="center",j.indexOf("left")!==-1?(he="left",vt=Me):j.indexOf("right")!==-1&&(he="right",vt=-Me);const bn=ji(De,"layout","text-rotation-alignment",Fe,P,Ie);Mt.setRotateWithView(bn=="map")}else Mt.setMaxAngle(P8(ji(De,"layout","text-max-angle",Fe,P,Ie))*Nn.length/H.length),Mt.setRotateWithView(!1);Mt.setTextAlign(he);let $e="middle";j.indexOf("bottom")==0?($e="bottom",it=-Me-.5*(Un-1)*Ln):j.indexOf("top")==0&&($e="top",it=Me+.5*(Un-1)*Ln),Mt.setTextBaseline($e);const ot=ji(De,"layout","text-justify",Fe,P,Ie);Mt.setJustify(ot==="auto"?void 0:ot),Mt.setOffsetX(Ne[0]*Ln+vt+Qe[0]),Mt.setOffsetY(Ne[1]*Ln+it+Qe[1]),Z.setColor(nv(ji(De,"paint","text-color",Fe,P,Ie),Ut)),Mt.setFill(Z);const b=nv(ji(De,"paint","text-halo-color",Fe,P,Ie),Ut);if(b&&Me>0){V.setColor(b),Me*=2;const bn=.5*Ln;V.setWidth(Me<=bn?Me:bn),Mt.setStroke(V)}else Mt.setStroke(void 0);const Rt=ji(De,"layout","text-padding",Fe,P,Ie),mn=Mt.getPadding();Rt!==mn[0]&&(mn[0]=Rt,mn[1]=Rt,mn[2]=Rt,mn[3]=Rt),Ze.setZIndex(bt)}}}if(Ye>-1)return X.length=Ye+1,X};return n.setStyle(re),n.set("mapbox-layers",v),n.set("mapbox-source",z),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),re}class Wee{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=yB,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Us(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Us(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return wr()}readFeature(e,t){return wr()}readFeatures(e,t){return wr()}readGeometry(e,t){return wr()}readProjection(e){return wr()}writeFeature(e,t){return wr()}writeFeatures(e,t){return wr()}writeGeometry(e,t){return wr()}}function bB(n,e,t){const i=t?Us(t.featureProjection):null,r=t?Us(t.dataProjection):null;let o=n;if(i&&r&&!qA(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(TC(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(c){for(let d=0,m=c.length;d<m;++d)c[d]=Math.round(c[d]*s)/s;return c};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const bbe={Point:kC,LineString:RC,Polygon:F1,MultiPoint:gM,MultiLineString:A5,MultiPolygon:h5};function Cbe(n,e,t){return Array.isArray(e[0])?(ZJ(n,0,e,t)||(n=n.slice(),DD(n,0,e,t)),n):(UL(n,0,e,t)||(n=n.slice(),pE(n,0,e,t)),n)}function Qee(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>Qee({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return bB(new YA(i,i==="Polygon"?Cbe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function aU(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>aU(r,e));return new _E(i)}const t=bbe[n.type];return bB(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class _be extends Wee{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(pw(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(pw(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return wr()}readFeaturesFromObject(e,t){return wr()}rea Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function OCe(n,e){const t=nte(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let ICe=class extends oM{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=BCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=OCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const d=c*a,m=[];for(let v=0,M=r.length;v<M;++v)m.push(r[v].slice(d,d+a));this.workers_[c].postMessage({buffers:m,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},m)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,d=a*s;i.set(new Uint8ClampedArray(c),d),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const zN={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class jN extends Nm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class hU extends Jee{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=DCe(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(br.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new CJ(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:Bd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:kCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:Bd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Ur(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof F2?a:a.getSource();if(!c)continue;const d=c.getAttributions()?.(i);typeof d=="string"?r.push(d):d!==void 0&&r.push(...d)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new ICe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Mf(e);r.size[0]=Math.ceil(Ho(e)/t),r.size[1]=Math.ceil(Nu(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!K1(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameStat Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(ite(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class WCe extends xB{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:QCe,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:Uee,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!qA(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||qA(t,e)))return this.tileGrid;const i=Ur(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=cU(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),d=c?this.tileUrlFunction(c,r,o):void 0,m=new this.tileClass(a,d!==void 0?oi.IDLE:oi.EMPTY,d!==void 0?d:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return m.key=s,m.addEventListener(br.CHANGE,this.handleTileChange.bind(this)),m}getTile(e,t,i,r,o,s){const a=this.getProjection();if(!a||!o||qA(a,o))return this.getTileInternal(e,t,i,r,a||o);const c=[e,t,i],d=this.getKey(),m=this.getTileGridForProjection(a),v=this.getTileGridForProjection(o),M=this.getTileCoordForTileUrlFunction(c,o),B=new Hee(a,m,o,v,c,M,this.getTilePixelRatio(r),this.getGutter(),(P,U,z,V)=>this.getTileInternal(P,U,z,V,a,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return B.key=d,B}getTileInternal(e,t,i,r,o,s){const a=this.getKey(),c=bS(this,a,e,t,i);if(s&&s.containsKey(c))return s.get(c);const d=this.createTile_(e,t,i,r,o,a);return s?.set(c,d),d}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Us(e);if(i){const r=Ur(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function QCe(n,e){if(VA){const t=n.getCrossOrigin();let i="same-origin",r="same-origin";t==="anonymous"||t===""?(i="cors",r="omit"):t==="use-credentials"&&(i="cors",r="include"),fetch(e,{mode:i,credentials:r}).then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}`);return o.blob()}).then(o=>createImageBitmap(o)).then(o=>{const s=n.getImage();s.width=o.width,s.height=o.height,s.getContext("2d").drawImage(o,0,0),o.close?.(),s.dispatchEvent(new Event("load"))}).catch(()=>{n.getImage().dispatchEvent(new Event("error"))});return}n.getImage().src=e}class rte extends WCe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Us("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)PCe(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Us("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const d=cM(t,i);r=BJ(e.bounds,d)}const o=_B(i),s=e.minzoom||0,a=e.maxzoom||22,c=AU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=ite(e.tiles,c),e.attribution&&!this.getAttributions()){const d=r!==void 0?r:o;this.setAttributions(function(m){return ql(d,m.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class dU extends xB{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||_B(t),r=e.tileGrid||AU({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.c Line truncated
${v}`),U].join(`
${a}`)}return f})(n,"",0)}let GD=[],ute=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?ute:GD).push(t=t+n[e])})();function m_e(n){if(n<768)return!1;for(let e=0,t=GD.length;;){let i=e+t>>1;if(n<GD[i])t=i;else if(n>=ute[i])e=i+1;else return!0;if(e==t)return!1}}function UN(n){return n>=127462&&n<=127487}const KN=8205;function g_e(n,e,t=!0,i=!0){return(t?cte:y_e)(n,e,i)}function cte(n,e,t){if(e==n.length)return e;e&&Ate(n.charCodeAt(e))&&hte(n.charCodeAt(e-1))&&e--;let i=N8(n,e);for(e+=FN(i);e<n.length;){let r=N8(n,e);if(i==KN||r==KN||t&&m_e(r))e+=FN(r),i=r;else if(UN(r)){let o=0,s=e-2;for(;s>=0&&UN(N8(n,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function y_e(n,e,t){for(;e>0;){let i=cte(n,e-2,t);if(i<e)return i;e--}return 0}function N8(n,e){let t=n.charCodeAt(e);if(!hte(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Ate(i)?(t-55296<<10)+(i-56320)+65536:t}function Ate(n){return n>=56320&&n<57344}function hte(n){return n>=55296&&n<56320}function FN(n){return n<65536?1:2}class ls{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=v2(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),t0.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=v2(this,e,t);let i=[];return this.decompose(e,t,i,0),t0.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new C4(this),o=new C4(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new C4(this,e)}iterRange(e,t=this.length){return new dte(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new fte(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ls.empty:e.length<=32?new yu(e):t0.from(yu.split(e,[]))}}class yu extends ls{constructor(e,t=v_e(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?i:a)>=e)return new b_e(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let o=e<=0&&t>=this.length?this:new yu(zN(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=xS(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new yu(a,s.length+o.length));else{let c=a.length>>1;i.push(new yu(a.slice(0,c)),new yu(a.slice(c)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof yu))return super.replace(e,t,i);[e,t]=v2(this,e,t);let r=xS(this.text,xS(i.text,zN(this.text,0,e)),t),o=this.length+i.length-(t-e);return r.length<=32?new yu(r,o):t0.from(yu.split(r,[]),o)}sliceString(e,t=this.length,i=`
`){[e,t]=v2(this,e,t);let r="";for(let o=0,s=0;o<=t&&s<this.text.length;s++){let a=this.text[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(t.push(new yu(i,r)),i=[],r=-1);return r>-1&&t.push(new yu(i,r)),t}}class t0 extends ls{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,c=i+s.lines-1;if((t?c:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let o=0,s=0;s<=t&&o<this.children.length;o++){let a=this.children[o],c=s+a.length;if(e<=c&&t>=s){let f=r&((s<=e?1:0)|(c>=t?2:0));s>=e&&c<=t&&!f?i.push(a):a.decompose(e-s,t-s,i,f)}s=c+1}}replace(e,t,i){if([e,t]=v2(this,e,t),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&t<=a){let c=s.replace(e-o,t-o,i),f=this.lines-s.lines+c.lines;if(c.lines<f>>4&&c.lines>f>>6){let m=this.children.slice();return m[r]=c,new t0(m,this.length-(t-e)+i.length)}return super.replace(o,a,c)}o=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=v2(this,e,t);let r="";for(let o=0,s=0;o<this.children.length&&s<=t;o++){let a=this.children[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof t0))return 0;let i=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return i;let c=this.children[r],f=e.children[o];if(c!=f)return i+c.scanIdentical(f,t);i+=c.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let B of e)i+=B.lines;if(i<32){let B=[];for(let P of e)P.flatten(B);return new yu(B,t)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],c=0,f=-1,m=[];function v(B){let P;if(B.lines>o&&B instanceof t0)for(let U of B.children)v(U);else B.lines>s&&(c>s||!c)?(w(),a.push(B)):B instanceof yu&&c&&(P=m[m.length-1])instanceof yu&&B.lines+P.lines<=32?(c+=B.lines,f+=B.length+1,m[m.length-1]=new yu(P.text.concat(B.text),P.length+1+B.length)):(c+B.lines>r&&w(),c+=B.lines,f+=B.length+1,m.push(B))}function w(){c!=0&&(a.push(m.length==1?m[0]:t0.from(m,f)),f=-1,c=m.length=0)}for(let B of e)v(B);return w(),a.length==1?a[0]:new t0(a,t)}}ls.empty=new yu([""],0);function v_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function xS(n,e,t=0,i=1e9){for(let r=0,o=0,s=!0;o<n.length&&r<=i;o++){let a=n[o],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=c+1}return e}function zN(n,e,t){return xS(n,[""],e,t)}class C4{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 yu?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof yu?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof yu){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof yu?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class dte{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new C4(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}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 i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),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!=""}}class fte{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ls.prototype[Symbol.iterator]=function(){return this.iter()},C4.prototype[Symbol.iterator]=dte.prototype[Symbol.iterator]=fte.prototype[Symbol.iterator]=function(){return this});class b_e{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}}function v2(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function gA(n,e,t=!0,i=!0){return g_e(n,e,t,i)}function C_e(n){return n>=56320&&n<57344}function __e(n){return n>=55296&&n<56320}function xd(n,e){let t=n.charCodeAt(e);if(!__e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return C_e(i)?(t-55296<<10)+(i-56320)+65536:t}function uU(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function n0(n){return n<65536?1:2}const WD=/\r\n?|\n/;var Oh=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Oh||(Oh={}));class _0{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 i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){QD(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new _0(e)}composeDesc(e){return this.empty?e:e.empty?this:pte(this,e)}mapDesc(e,t=!1){return e.empty?this:qD(this,e,t)}mapPos(e,t=-1,i=Oh.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],f=r+a;if(c<0){if(f>e)return o+(e-r);o+=a}else{if(i!=Oh.Simple&&f>=e&&(i==Oh.TrackDel&&r<e&&f>e||i==Oh.TrackBefore&&r<e||i==Oh.TrackAfter&&f>e))return null;if(f>e||f==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=f}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new _0(e)}static create(e){return new _0(e)}}class hc extends _0{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return QD(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return qD(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(ls.empty);i.push(s?e.slice(o,o+s):ls.empty)}o+=s}return new hc(t,i)}compose(e){return this.empty?e:e.empty?this:pte(this,e,!0)}map(e,t=!1){return e.empty?this:qD(this,e,t,!0)}iterChanges(e,t=!1){QD(this,e,t)}get desc Line truncated
`}get readOnly(){return this.facet(xte)}phrase(e,...t){for(let i of this.facet(as.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(yte))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return D_e(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=gA(t,s,!1);if(o(t.slice(c,s))!=ul.Word)break;s=c}for(;a<r;){let c=gA(t,a);if(o(t.slice(a,c))!=ul.Word)break;a=c}return s==a?null:Sn.range(s+i,a+i)}}as.allowMultipleSelections=$D;as.tabSize=Ti.define({combine:n=>n.length?n[0]:4});as.lineSeparator=vte;as.readOnly=xte;as.phrases=Ti.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});as.languageData=yte;as.changeFilter=bte;as.transactionFilter=Cte;as.transactionExtender=_te;C5.reconfigure=eo.define();function Gm(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class PC{eq(e){return this==e}range(e,t=e){return XD.create(e,t,this)}}PC.prototype.startSide=PC.prototype.endSide=0;PC.prototype.point=!1;PC.prototype.mapMode=Oh.TrackDel;let XD=class Ste{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Ste(e,t,i)}};function JD(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class hU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,f=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return f>=0?s:a;f>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let f=this.value[c],m=this.from[c]+e,v=this.to[c]+e,w,B;if(m==v){let P=t.mapPos(m,f.startSide,f.mapMode);if(P==null||(w=B=P,f.startSide!=f.endSide&&(B=t.mapPos(m,f.endSide),B<w)))continue}else if(w=t.mapPos(m,f.startSide),B=t.mapPos(v,f.endSide),w>B||w==B&&f.startSide>0&&f.endSide<=0)continue;(B-w||f.endSide-f.startSide)<0||(s<0&&(s=w),f.point&&(a=Math.max(a,B-w)),i.push(f),r.push(w-s),o.push(B-s))}return{mapped:i.length?new hU(r,o,i,a):null,pos:s}}}class Go{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new Go(e,t,i,r)}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(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(JD)),this.isEmpty)return t.length?Go.of(t):this;let a=new Ete(this,null,-1).goto(0),c=0,f=[],m=new N1;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let v=t[c++];m.addInner(v.from,v.to,v.value)||f.push(v)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&m.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(m.addInner(a.from,a.to,a.value)||f.push(XD.create(a.from,a.to,a.value))),a.next());return m.finishInner(this.nextLayer.isEmpty&&!f.length?Go.empty:this.nextLayer.update({add:f,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],f=e.touchesRange(a,a+c.length);if(f===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(f===!0){let{mapped:m,pos:v}=c.map(a,e);m&&(r=Math.max(r,m.maxPoint),t.push(m),i.push(v))}}let o=this.nextLayer.map(e);return t.length==0?o:new Go(i,t,o||Go.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return pM.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return pM.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(v=>v.maxPoint>0||!v.isEmpty&&v.maxPoint>=o),a=t.filter(v=>v.maxPoint>0||!v.isEmpty&&v.maxPoint>=o Line truncated
`)}static newName(){let e=qN[QN]||1;return qN[QN]=e+1,nR+e.toString(36)}static mount(e,t,i){let r=e[iR],o=i&&i.nonce;r?o&&r.setNonce(o):r=new P_e(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let YN=new Map;class P_e{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=YN.get(i);if(o)return e[iR]=o;this.sheet=new r.CSSStyleSheet,YN.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[iR]=this}mount(e,t){let i=this.sheet,r=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],c=this.modules.indexOf(a);if(c<o&&c>-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,a),i)for(let f=0;f<a.rules.length;f++)i.insertRule(a.rules[f],r++)}else{for(;o<c;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Dv={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:"'"},mM={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},L_e=typeof navigator<"u"&&/Mac/.test(navigator.platform),U_e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var pA=0;pA<10;pA++)Dv[48+pA]=Dv[96+pA]=String(pA);for(var pA=1;pA<=24;pA++)Dv[pA+111]="F"+pA;for(var pA=65;pA<=90;pA++)Dv[pA]=String.fromCharCode(pA+32),mM[pA]=String.fromCharCode(pA);for(var W8 in Dv)mM.hasOwnProperty(W8)||(mM[W8]=Dv[W8]);function K_e(n){var e=L_e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||U_e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?mM:Dv)[n.keyCode]||n.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 va(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}e++}for(;e<arguments.length;e++)Bte(n,arguments[e]);return n}function Bte(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)Bte(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let Eh=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},rR=typeof document<"u"?document:{documentElement:{style:{}}};const oR=/Edge\/(\d+)/.exec(Eh.userAgent),Ote=/MSIE \d/.test(Eh.userAgent),sR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Eh.userAgent),_B=!!(Ote||sR||oR),VN=!_B&&/gecko\/(\d+)/i.test(Eh.userAgent),Q8=!_B&&/Chrome\/(\d+)/.exec(Eh.userAgent),F_e="webkitFontSmoothing"in rR.documentElement.style,aR=!_B&&/Apple Computer/.test(Eh.vendor),$N=aR&&(/Mobile\/\w+/.test(Eh.userAgent)||Eh.maxTouchPoints>2);var Ci={mac:$N||/Mac/.test(Eh.platform),windows:/Win/.test(Eh.platform),linux:/Linux|X11/.test(Eh.platform),ie:_B,ie_version:Ote?rR.documentMode||6:sR?+sR[1]:oR?+oR[1]:0,gecko:VN,gecko_version:VN?+(/Firefox\/(\d+)/.exec(Eh.userAgent)||[0,0])[1]:0,chrome:!!Q8,chrome_version:Q8?+Q8[1]:0,ios:$N,android:/Android\b/.test(Eh.userAgent),webkit_version:F_e?+(/\bAppleWebKit\/(\d+)/.exec(Eh.userAgent)||[0,0])[1]:0,safari:aR,safari_version:aR?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Eh.userAgent)||[0,0])[1]:0,tabSize:rR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function gM(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function lR(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function wS(n,e){if(!e.anchorNode)return!1;try{return lR(n,e.anchorNode)}catch{return!1}}function yM(n){return n.nodeType==3?UC(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function x4(n,e,t,i){return t?HN(n,e,t,i,-1)||HN(n,e,t,i,1):!1}function LC(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function DE(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function HN(n,e,t,i,r){for(;;){if(n==t&&e==i)return!0;if(e==(r<0?0:M0(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;e=LC(n)+(r<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(r<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=r<0?M0(n):0}else return!1}}function M0(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function xB(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function z_e(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Ite(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function j_e(n,e,t,i,r,o,s,a){let c=n.ownerDocument,f=cLine truncated
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),f=n.visualLineSide(r,!t)}if(c){if(!c(m))return a}else{if(!i)return f;c=i(m)}a=f}}function Cxe(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==ul.Space&&(r=s),r==s}}function _xe(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return Sn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),f=n.coordsAtPos(r,e.assoc||-1),m=n.documentTop;if(f)s==null&&(s=f.left-c.left),a=o<0?f.top:f.bottom;else{let B=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-B.from))),a=(o<0?B.top:B.bottom)+m}let v=c.left+s,w=i??n.viewState.heightOracle.textHeight>>1;for(let B=0;;B+=10){let P=a+(w+B)*o,U=une(n,{x:v,y:P},!1,o);if(P<c.top||P>c.bottom||(o<0?U<r:U>r)){let z=n.docView.coordsForChar(U),Y=!z||P<z.top?-1:1;return Sn.cursor(U,Y,void 0,s)}}}function w4(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function Ane(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=w4(n,r.from,0);s!=r.from&&(o=Sn.cursor(s,-1))}else{let s=w4(n,r.from,-1),a=w4(n,r.to,1);(s!=r.from||a!=r.to)&&(o=Sn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?Sn.create(t,e.mainIndex):e}function V8(n,e,t){let i=w4(n.state.facet(M5).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:Sn.cursor(i,i<t.from?1:-1)}const e4="￿";class xxe{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(as.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=e4}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let o=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==t)break;let a=na.get(r),c=na.get(s);(a&&c?a.breakAfter:(a?a.breakAfter:DE(r))||DE(s)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>o)&&!wxe(s,t)&&this.lineBreak(),r=s}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(t))&&(o=a.index,s=a[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=s-1);i=o+s}}readNode(e){if(e.cmIgnore)return;let t=na.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Mxe(e,i.node,i.offset)?t:0))}}function Mxe(n,e,t){for(;;){if(!e||t<M0(e))return!1;if(e==n)return!0;t=LC(e)+1,e=e.parentNode}}function wxe(n,e){let t;for(;!(n==e||!n);n=n.nextSibling){let i=na.get(n);if(!(i?.isWidget||n.cmIgnore))return!1;i&&(t||(t=[])).push(i)}if(t)for(let i of t){let r=i.overrideDOMText;if(r?.length)return!1}return!0}class aG{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Sxe{constructor(e,t,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=o||s?[]:Bxe(e),c=new xxe(a,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=Oxe(a,this.bounds.from)}else{let a=e.observer.selectionRange,c=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!lR(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),f=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!lR(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),m=e.viewport;if((Ci.ios||Ci.chrome)&&e.state.selection.main.empty&&c!=f&&(m.from>0||m.to<e.state.doc.length)){let v=Math.min(c,f),w=Math.max(c,f),B=m.from-v,P=m.to-w;(B==0||B==1||v==0)&&(P==0||P==-1||w==e.state.doc.length)&&(c=0,f=e.state.doc.length)}e.inputState.composing>-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(Sn.range(f,c)):this.newSel=Sn.single(f,c)}}}function hne(n,e){let t,{newSel:i}=e,r=n.state.selection.main,o=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,c=r.from,f=null;(o===8||Ci.android&&e.text.length<a-s)&&(c=r.to,f="end");let m=dne(n.state.doc.sliceString(s,a,e4),e.text,c-s,f);m&&(Ci.chrome&&o==13&&m.toB==m.from+2&&e.text.slice( Line truncated
`&&n.lineWrapping&&(i&&(i=Sn.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:ls.of([" "])}),t)return vU(n,t,i,o);if(i&&!i.main.eq(r)){let s=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(s=!0),a=n.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=Ane(n.state.facet(M5).map(c=>c(n)),i))),n.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function vU(n,e,t,i=-1){if(Ci.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(Ci.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Yx(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&Yx(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Yx(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=Exe(n,e,t));return n.state.facet(Xte).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function Exe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,f=c<0?o.from:o.to,m=w4(r.facet(M5).map(v=>v(n)),f,c);e.from==m&&(s=m)}if(s>-1)i={changes:e,selection:Sn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",f=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+f))}else{let c=r.changes(e),f=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=o.to+10&&e.to>=o.to-10){let m=n.state.sliceDoc(e.from,e.to),v,w=t&&lne(n,t.main.head);if(w){let P=e.insert.length-(e.to-e.from);v={from:w.from,to:w.to-P}}else v=n.state.doc.lineAt(o.head);let B=o.to-e.to;i=r.changeByRange(P=>{if(P.from==o.from&&P.to==o.to)return{changes:c,range:f||P.map(c)};let U=P.to-B,z=U-m.length;if(n.state.sliceDoc(z,U)!=m||U>=v.from&&z<=v.to)return{range:P};let Y=r.changes({from:z,to:U,insert:e.insert}),Z=P.to-o.to;return{changes:Y,range:f?Sn.range(Math.max(0,f.anchor+Z),Math.max(0,f.head+Z)):P.map(Y)}})}else i={changes:c,selection:f&&r.selection.replaceRange(f)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function dne(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function Bxe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new aG(t,i)),(r!=t||o!=i)&&e.push(new aG(r,o))),e}function Oxe(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?Sn.single(t+e,i+e):null}class Ixe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 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.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Ci.safari&&e.contentDOM.addEventListener("input",()=>null),Ci.gecko&&qxe(e.contentDOM.ownerDocument)}handleEvent(e){!Kxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Txe(e),i=this.handlers,r=this.view.contentDOM;for(let o in t)if(o!="scroll"){let s=!t[o].handlers.length,a=i[o];a&&s!=!a.handlers.length&&(r. Line truncated
`))};if((Ci.mac||Ci.android)&&v.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(v={from:a,to:c,insert:ls.of([i.text.replace("."," ")])}),this.pendingContextChange=v,!e.state.readOnly){let w=this.to-this.from+(v.to-v.from+v.insert.length);vU(e,v,Sn.single(this.toEditorPos(i.selectionStart,w),this.toEditorPos(i.selectionEnd,w)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),v.from<v.to&&!v.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),f=this.toEditorPos(o.rangeEnd);if(c<f){let m=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(vr.mark({attributes:{style:m}}).range(c,f))}}}e.dispatch({effects:ine.of(vr.set(r))})},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:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=gM(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,f)=>{if(i)return;let m=f.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(f)){r=this.pendingContextChange=null,t+=m,this.to+=m;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=m,this.to+=m;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+f.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),f.toString()),this.to+=m}t+=m}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.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,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,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>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.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])}}class Bi{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={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.meas Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,xR),O2e={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"};let Z8=null;function I2e(){var n;if(Z8==null&&typeof document<"u"&&document.body){let e=document.body.style;Z8=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Z8||!1}const OS=Ti.define({combine(n){let e=Gm(n,{render:null,specialChars:B2e,addSpecialChars:null});return(e.replaceTabs=!I2e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,xR)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,xR)),e}});function T2e(n={}){return[OS.of(n),k2e()]}let IG=null;function k2e(){return IG||(IG=vu.fromClass(class{constructor(n){this.view=n,this.decorations=vr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(OS)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new E2e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=xd(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=z2(s.text,a,i-s.from);return vr.replace({widget:new L2e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=vr.replace({widget:new P2e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(OS);n.startState.facet(OS)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const D2e="•";function R2e(n){return n>=32?D2e:n==10?"␤":String.fromCharCode(9216+n)}class P2e extends zv{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=R2e(this.code),i=e.state.phrase("Control character")+" "+(O2e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class L2e extends zv{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 U2e(){return F2e}const K2e=vr.line({class:"cm-activeLine"}),F2e=vu.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>e&&(t.push(K2e.range(r.from)),e=r.from)}return vr.set(t)}},{decorations:n=>n.decorations}),MR=2e3;function z2e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>MR||t.off>MR||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let f=n.doc.line(c);f.length<=a&&o.push(Sn.range(f.from+s,f.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let f=n.doc.line(c),m=tR(f.text,s,n.tabSize,!0);if(m<0)o.push(Sn.cursor(f.to));else{let v=tR(f.text,a,n.tabSize);o.push(Sn.range(f.from+m,f.from+v))}}}return o}function j2e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function TG(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>MR?-1:r==i.length?j2e(n,e.clientX):z2(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function N2e(n,e){let t=TG(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=TG(n,r);if(!a)return i;let c=z2e(n.state,t,a);return c.length?s?Sn.create(c.concat(i.ranges)):Sn.create(c):i}}:null}function G2e(n){let e=(t=>t.altKey&&t.button==0);return Bi.mouseSelectionStyle.of((t,i)=>e(i)?N2e(t,i):null)}const W2e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},Q2e={style:"cursor: crosshair"};function q2e(n={}){let[e,t]=W2e[n.key||"Alt"],i=vu.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,Bi.contentAttributes.of(r=>{var o;ret Line truncated
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new XMe(this):new HMe(this)}getCursor(e,t=0,i){let r=e.doc?e:as.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?Mx(this,r,t,i):xx(this,r,t,i)}}class Gie{constructor(e){this.spec=e}}function xx(n,e,t,i){return new M2(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?$Me(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function $Me(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(VE(r,t-o))!=ul.Word||e($E(r,t-o))!=ul.Word)&&(e($E(r,i-o))!=ul.Word||e(VE(r,i-o))!=ul.Word))}class HMe extends Gie{constructor(e){super(e)}nextMatch(e,t,i){let r=xx(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=xx(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=xx(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=xx(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=xx(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function Mx(n,e,t,i){return new zie(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?ZMe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function VE(n,e){return n.slice(gA(n,e,!1),e)}function $E(n,e){return n.slice(e,gA(n,e))}function ZMe(n){return(e,t,i)=>!i[0].length||(n(VE(i.input,i.index))!=ul.Word||n($E(i.input,i.index))!=ul.Word)&&(n($E(i.input,i.index+i[0].length))!=ul.Word||n(VE(i.input,i.index+i[0].length))!=ul.Word)}class XMe extends Gie{nextMatch(e,t,i){let r=Mx(this.spec,e,i,e.doc.length).next();return r.done&&(r=Mx(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=Mx(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=Mx(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=Mx(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const SM=eo.define(),PU=eo.define(),Bv=mc.define({create(n){return new cI(UR(n).create(),null)},update(n,e){for(let t of e.effects)t.is(SM)?n=new cI(t.value.create(),n.panel):t.is(PU)&&(n=new cI(n.query,t.value?LU:null));return n},provide:n=>_M.from(n,e=>e.panel)});class cI{constructor(e,t){this.query=e,this.panel=t}}const JMe=vr.mark({class:"cm-searchMatch"}),e5e=vr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),t5e=vu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Bv))}update(n){let e=n.state.field(Bv);(e!=n.startState.field(Bv)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return vr.none;let{view:t}=this,i=new N1;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(f,m)=>{let v=t.state.selection.ranges.some(w=>w.from==f&&w.to==m);i.add(f,m,v?e5e:JMe)})}return i.finish()}},{decorations:n=>n.decorations});function O5(n){return e=>{let t=e.state.field(Bv,!1);return t&&t.query.spec.valid?n(e,t):qie(e)}}const HE=O5((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=Sn.single(i.from,i.to),o=n.state.facet(N2);return n.dispatch({selection:r,effects:[UU(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),Qie(n),!0}),ZE=O5((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=Sn.single(r.from,r.to),s=n.state.facet(N2);return n.dispatch({selection:o,effects:[UU(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),Qie(n),!0}),n5e=O5((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:Sn.cre Line truncated
`)}var Nn={extraLines:2,tabSize:4},Si=function(Ln,Tn,ti,Bn){Bn=Dt({},Nn,Bn);var je=Ln.split(/\r\n?|\n|\f/),H=Math.max(1,Tn-Bn.extraLines)-1,j=Math.min(Tn+Bn.extraLines,je.length),Q=String(j).length,he=Gn(je,H,Tn,Q,Bn),xe=en(je[Tn-1].substring(0,ti-1),Tn,Q,Bn),Ne=yt(" ",xe.length)+"^",Qe=Gn(je,Tn,j,Q,Bn);return[he,Ne,Qe].filter(Boolean).join(`
`)};return Si})}),f=new Error().stack,m=(function(ke){var Oe=Object.create(SyntaxError.prototype);return Object.assign(Oe,ke,{name:"SyntaxError"}),Object.defineProperty(Oe,"stack",{get:function(){return f?f.replace(/^(.+\n){1,3}/,String(Oe)+`
${a}`)}return d})(n,"",0)}let $D=[],hte=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?hte:$D).push(t=t+n[e])})();function p_e(n){if(n<768)return!1;for(let e=0,t=$D.length;;){let i=e+t>>1;if(n<$D[i])t=i;else if(n>=hte[i])e=i+1;else return!0;if(e==t)return!1}}function qN(n){return n>=127462&&n<=127487}const YN=8205;function m_e(n,e,t=!0,i=!0){return(t?dte:g_e)(n,e,i)}function dte(n,e,t){if(e==n.length)return e;e&&fte(n.charCodeAt(e))&&pte(n.charCodeAt(e-1))&&e--;let i=q8(n,e);for(e+=VN(i);e<n.length;){let r=q8(n,e);if(i==YN||r==YN||t&&p_e(r))e+=VN(r),i=r;else if(qN(r)){let o=0,s=e-2;for(;s>=0&&qN(q8(n,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function g_e(n,e,t){for(;e>0;){let i=dte(n,e-2,t);if(i<e)return i;e--}return 0}function q8(n,e){let t=n.charCodeAt(e);if(!pte(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return fte(i)?(t-55296<<10)+(i-56320)+65536:t}function fte(n){return n>=56320&&n<57344}function pte(n){return n>=55296&&n<56320}function VN(n){return n<65536?1:2}class As{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=v2(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ng.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=v2(this,e,t);let i=[];return this.decompose(e,t,i,0),ng.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new C4(this),o=new C4(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new C4(this,e)}iterRange(e,t=this.length){return new mte(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new gte(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?As.empty:e.length<=32?new gu(e):ng.from(gu.split(e,[]))}}class gu extends As{constructor(e,t=y_e(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?i:a)>=e)return new v_e(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let o=e<=0&&t>=this.length?this:new gu($N(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=CS(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new gu(a,s.length+o.length));else{let c=a.length>>1;i.push(new gu(a.slice(0,c)),new gu(a.slice(c)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof gu))return super.replace(e,t,i);[e,t]=v2(this,e,t);let r=CS(this.text,CS(i.text,$N(this.text,0,e)),t),o=this.length+i.length-(t-e);return r.length<=32?new gu(r,o):ng.from(gu.split(r,[]),o)}sliceString(e,t=this.length,i=`
`){[e,t]=v2(this,e,t);let r="";for(let o=0,s=0;o<=t&&s<this.text.length;s++){let a=this.text[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(t.push(new gu(i,r)),i=[],r=-1);return r>-1&&t.push(new gu(i,r)),t}}class ng extends As{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,c=i+s.lines-1;if((t?c:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let o=0,s=0;s<=t&&o<this.children.length;o++){let a=this.children[o],c=s+a.length;if(e<=c&&t>=s){let d=r&((s<=e?1:0)|(c>=t?2:0));s>=e&&c<=t&&!d?i.push(a):a.decompose(e-s,t-s,i,d)}s=c+1}}replace(e,t,i){if([e,t]=v2(this,e,t),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&t<=a){let c=s.replace(e-o,t-o,i),d=this.lines-s.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let m=this.children.slice();return m[r]=c,new ng(m,this.length-(t-e)+i.length)}return super.replace(o,a,c)}o=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=v2(this,e,t);let r="";for(let o=0,s=0;o<this.children.length&&s<=t;o++){let a=this.children[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ng))return 0;let i=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return i;let c=this.children[r],d=e.children[o];if(c!=d)return i+c.scanIdentical(d,t);i+=c.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let B of e)i+=B.lines;if(i<32){let B=[];for(let P of e)P.flatten(B);return new gu(B,t)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],c=0,d=-1,m=[];function v(B){let P;if(B.lines>o&&B instanceof ng)for(let U of B.children)v(U);else B.lines>s&&(c>s||!c)?(M(),a.push(B)):B instanceof gu&&c&&(P=m[m.length-1])instanceof gu&&B.lines+P.lines<=32?(c+=B.lines,d+=B.length+1,m[m.length-1]=new gu(P.text.concat(B.text),P.length+1+B.length)):(c+B.lines>r&&M(),c+=B.lines,d+=B.length+1,m.push(B))}function M(){c!=0&&(a.push(m.length==1?m[0]:ng.from(m,d)),d=-1,c=m.length=0)}for(let B of e)v(B);return M(),a.length==1?a[0]:new ng(a,t)}}As.empty=new gu([""],0);function y_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function CS(n,e,t=0,i=1e9){for(let r=0,o=0,s=!0;o<n.length&&r<=i;o++){let a=n[o],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=c+1}return e}function $N(n,e,t){return CS(n,[""],e,t)}class C4{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 gu?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof gu?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof gu){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof gu?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class mte{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new C4(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}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 i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),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!=""}}class gte{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(As.prototype[Symbol.iterator]=function(){return this.iter()},C4.prototype[Symbol.iterator]=mte.prototype[Symbol.iterator]=gte.prototype[Symbol.iterator]=function(){return this});class v_e{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}}function v2(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function fc(n,e,t=!0,i=!0){return m_e(n,e,t,i)}function b_e(n){return n>=56320&&n<57344}function C_e(n){return n>=55296&&n<56320}function xd(n,e){let t=n.charCodeAt(e);if(!C_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return b_e(i)?(t-55296<<10)+(i-56320)+65536:t}function pU(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function ig(n){return n<65536?1:2}const HD=/\r\n?|\n/;var Oh=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Oh||(Oh={}));class _g{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 i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){ZD(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new _g(e)}composeDesc(e){return this.empty?e:e.empty?this:yte(this,e)}mapDesc(e,t=!1){return e.empty?this:XD(this,e,t)}mapPos(e,t=-1,i=Oh.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],d=r+a;if(c<0){if(d>e)return o+(e-r);o+=a}else{if(i!=Oh.Simple&&d>=e&&(i==Oh.TrackDel&&r<e&&d>e||i==Oh.TrackBefore&&r<e||i==Oh.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=d}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new _g(e)}static create(e){return new _g(e)}}class Ac extends _g{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ZD(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return XD(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(As.empty);i.push(s?e.slice(o,o+s):As.empty)}o+=s}return new Ac(t,i)}compose(e){return this.empty?e:e.empty?this:yte(this,e,!0)}map(e,t=!1){return e.empty?this:XD(this,e,t,!0)}iterChanges(e,t=!1){ZD(this,e,t)}get desc Line truncated
`}get readOnly(){return this.facet(Ste)}phrase(e,...t){for(let i of this.facet(as.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(Cte))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return k_e(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=fc(t,s,!1);if(o(t.slice(c,s))!=ll.Word)break;s=c}for(;a<r;){let c=fc(t,a);if(o(t.slice(a,c))!=ll.Word)break;a=c}return s==a?null:Sn.range(s+i,a+i)}}as.allowMultipleSelections=tR;as.tabSize=Bi.define({combine:n=>n.length?n[0]:4});as.lineSeparator=_te;as.readOnly=Ste;as.phrases=Bi.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});as.languageData=Cte;as.changeFilter=xte;as.transactionFilter=Mte;as.transactionExtender=wte;bM.reconfigure=eo.define();function Wm(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Tv{eq(e){return this==e}range(e,t=e){return rR.create(e,t,this)}}Tv.prototype.startSide=Tv.prototype.endSide=0;Tv.prototype.point=!1;Tv.prototype.mapMode=Oh.TrackDel;function yU(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let rR=class Ote{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Ote(e,t,i)}};function oR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class vU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,d=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return d>=0?s:a;d>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],m=this.from[c]+e,v=this.to[c]+e,M,B;if(m==v){let P=t.mapPos(m,d.startSide,d.mapMode);if(P==null||(M=B=P,d.startSide!=d.endSide&&(B=t.mapPos(m,d.endSide),B<M)))continue}else if(M=t.mapPos(m,d.startSide),B=t.mapPos(v,d.endSide),M>B||M==B&&d.startSide>0&&d.endSide<=0)continue;(B-M||d.endSide-d.startSide)<0||(s<0&&(s=M),d.point&&(a=Math.max(a,B-M)),i.push(d),r.push(M-s),o.push(B-s))}return{mapped:i.length?new vU(r,o,i,a):null,pos:s}}}class mo{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new mo(e,t,i,r)}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(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(oR)),this.isEmpty)return t.length?mo.of(t):this;let a=new Ite(this,null,-1).goto(0),c=0,d=[],m=new z1;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let v=t[c++];m.addInner(v.from,v.to,v.value)||d.push(v)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&m.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(m.addInner(a.from,a.to,a.value)||d.push(rR.create(a.from,a.to,a.value))),a.next());return m.finishInner(this.nextLayer.isEmpty&&!d.length?mo.empty:this.nextLayer.update({add:d,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],d=e.touchesRange(a,a+c.length);if(d===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(d===!0){let{mapped:m,pos:v}=c.map(a,e);m&&(r=Math.max(r,m.maxPoint),t.push(m),i.push(v))}}let o=this.nextLayer.map(e);return t.length==0?o:new mo(i,t,o||mo.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return f5.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return f5.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(v=>v.maxPoint>0 Line truncated
`)}static newName(){let e=tG[eG]||1;return tG[eG]=e+1,lR+e.toString(36)}static mount(e,t,i){let r=e[uR],o=i&&i.nonce;r?o&&r.setNonce(o):r=new R_e(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let nG=new Map;class R_e{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=nG.get(i);if(o)return e[uR]=o;this.sheet=new r.CSSStyleSheet,nG.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[uR]=this}mount(e,t){let i=this.sheet,r=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],c=this.modules.indexOf(a);if(c<o&&c>-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,a),i)for(let d=0;d<a.rules.length;d++)i.insertRule(a.rules[d],r++)}else{for(;o<c;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Dv={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:"'"},p5={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},P_e=typeof navigator<"u"&&/Mac/.test(navigator.platform),L_e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var pA=0;pA<10;pA++)Dv[48+pA]=Dv[96+pA]=String(pA);for(var pA=1;pA<=24;pA++)Dv[pA+111]="F"+pA;for(var pA=65;pA<=90;pA++)Dv[pA]=String.fromCharCode(pA+32),p5[pA]=String.fromCharCode(pA);for(var V8 in Dv)p5.hasOwnProperty(V8)||(p5[V8]=Dv[V8]);function U_e(n){var e=P_e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||L_e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?p5:Dv)[n.keyCode]||n.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 ya(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}e++}for(;e<arguments.length;e++)Tte(n,arguments[e]);return n}function Tte(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)Tte(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let Eh=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},cR=typeof document<"u"?document:{documentElement:{style:{}}};const AR=/Edge\/(\d+)/.exec(Eh.userAgent),kte=/MSIE \d/.test(Eh.userAgent),hR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Eh.userAgent),MB=!!(kte||hR||AR),iG=!MB&&/gecko\/(\d+)/i.test(Eh.userAgent),$8=!MB&&/Chrome\/(\d+)/.exec(Eh.userAgent),K_e="webkitFontSmoothing"in cR.documentElement.style,dR=!MB&&/Apple Computer/.test(Eh.vendor),rG=dR&&(/Mobile\/\w+/.test(Eh.userAgent)||Eh.maxTouchPoints>2);var Ti={mac:rG||/Mac/.test(Eh.platform),windows:/Win/.test(Eh.platform),linux:/Linux|X11/.test(Eh.platform),ie:MB,ie_version:kte?cR.documentMode||6:hR?+hR[1]:AR?+AR[1]:0,gecko:iG,gecko_version:iG?+(/Firefox\/(\d+)/.exec(Eh.userAgent)||[0,0])[1]:0,chrome:!!$8,chrome_version:$8?+$8[1]:0,ios:rG,android:/Android\b/.test(Eh.userAgent),webkit_version:K_e?+(/\bAppleWebKit\/(\d+)/.exec(Eh.userAgent)||[0,0])[1]:0,safari:dR,safari_version:dR?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Eh.userAgent)||[0,0])[1]:0,tabSize:cR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function bU(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const kE=Object.create(null);function CU(n,e,t){if(n==e)return!0;n||(n=kE),e||(e=kE);let i=Object.keys(n),r=Object.keys(e);if(i.length-0!=r.length-0)return!1;for(let o of i)if(o!=t&&(r.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function F_e(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function oG(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function z_e(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class q1{eq(e){return!1}updateDOM(e,t){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,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var gA=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(gA||(gA={}));class vr extends Tv{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){reLine truncated
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),d=n.visualLineSide(r,!t)}if(c){if(!c(m))return a}else{if(!i)return d;c=i(m)}a=d}}function Bxe(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==ll.Space&&(r=s),r==s}}function Oxe(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return Sn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),d=n.coordsAtPos(r,e.assoc||-1),m=n.documentTop;if(d)s==null&&(s=d.left-c.left),a=o<0?d.top:d.bottom;else{let B=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-B.from))),a=(o<0?B.top:B.bottom)+m}let v=c.left+s,M=i??n.viewState.heightOracle.textHeight>>1;for(let B=0;;B+=10){let P=a+(M+B)*o,U=CR(n,{x:v,y:P},!1,o);return Sn.cursor(U.pos,U.assoc,void 0,s)}}function M4(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function sne(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=M4(n,r.from,0);s!=r.from&&(o=Sn.cursor(s,-1))}else{let s=M4(n,r.from,-1),a=M4(n,r.to,1);(s!=r.from||a!=r.to)&&(o=Sn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?Sn.create(t,e.mainIndex):e}function eI(n,e,t){let i=M4(n.state.facet(xM).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:Sn.cursor(i,i<t.from?1:-1)}class rg{constructor(e,t){this.pos=e,this.assoc=t}}function CR(n,e,t,i){let r=n.contentDOM.getBoundingClientRect(),o=r.top+n.viewState.paddingTop,{x:s,y:a}=e,c=a-o,d;for(;;){if(c<0)return new rg(0,1);if(c>n.viewState.docHeight)return new rg(n.state.doc.length,-1);if(d=n.elementAtHeight(c),i==null)break;if(d.type==gA.Text){let M=n.docView.coordsAt(i<0?d.from:d.to,i);if(M&&(i<0?M.top<=c+o:M.bottom>=c+o))break}let v=n.viewState.heightOracle.textHeight/2;c=i>0?d.bottom+v:d.top-v}if(n.viewport.from>=d.to||n.viewport.to<=d.from){if(t)return null;if(d.type==gA.Text){let v=Sxe(n,r,d,s,a);return new rg(v,v==d.from?1:-1)}}if(d.type!=gA.Text)return c<(d.top+d.bottom)/2?new rg(d.from,1):new rg(d.to,-1);let m=n.docView.lineAt(d.from,2);return(!m||m.length!=d.length)&&(m=n.docView.lineAt(d.from,-2)),ane(n,m,d.from,s,a)}function ane(n,e,t,i,r){let o=-1,s=null,a=1e9,c=1e9,d=r,m=r,v=(M,B)=>{for(let P=0;P<M.length;P++){let U=M[P];if(U.top==U.bottom)continue;let z=U.left>i?U.left-i:U.right<i?i-U.right:0,V=U.top>r?U.top-r:U.bottom<r?r-U.bottom:0;U.top<=m&&U.bottom>=d&&(d=Math.min(U.top,d),m=Math.max(U.bottom,m),V=0),(o<0||(V-c||z-a)<0)&&(o>=0&&c&&a<z&&s.top<=m-2&&s.bottom>=d+2?c=0:(o=B,a=z,c=V,s=U))}};if(e.isText()){for(let B=0;B<e.length;){let P=fc(e.text,B);if(v(y5(e.dom,B,P).getClientRects(),B),!a&&!c)break;B=P}return i>(s.left+s.right)/2==(dG(n,o+t)==Ca.LTR)?new rg(t+fc(e.text,o),-1):new rg(t+o,1)}else{if(!e.length)return new rg(t,1);for(let U=0;U<e.children.length;U++){let z=e.children[U];if(z.flags&48)continue;let V=(z.dom.nodeType==1?z.dom:y5(z.dom,0,z.length)).getClientRects();if(v(V,U),!a&&!c)break}let M=e.children[o],B=e.posBefore(M,t);return M.isComposite()||M.isText()?ane(n,M,B,Math.max(s.left,Math.min(s.right,i)),r):i>(s.left+s.right)/2==(dG(n,o+t)==Ca.LTR)?new rg(B+M.length,-1):new rg(B,1)}}function dG(n,e){let t=n.state.doc.lineAt(e);return n.bidiSpans(t)[O1.find(n.bidiSpans(t),e-t.from,-1,1)].dir}const e4="￿";class Ixe{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(as.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=e4}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let o=this.text.length;this.readNode(r);let s=Wu.get(r),a=r.nextSibling;if(a==t){s?.breakAfter&&!a&&i!=this.view.contentDOM&&this.lineBreak();break}let c=Wu.get(a);(s&&c?s.breakAfter:(s?s.breakAfter:DE(r))||DE(a)&&(r.nodeName!="BR"||s?.isWidget())&&this.text.length>o)&&!kxe(a,t)&&this.lineBreak(),r=a}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(t))&&(o=a.index,s=a[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=s-1);i=o+s}}readNode(e){let t=Wu.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Txe(e, Line truncated
`&&n.lineWrapping&&(i&&(i=Sn.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:As.of([" "])}),t)return BU(n,t,i,o);if(i&&!i.main.eq(r)){let s=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(s=!0),a=n.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=sne(n.state.facet(xM).map(c=>c(n)),i))),n.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function BU(n,e,t,i=-1){if(Ti.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(Ti.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Yx(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&Yx(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Yx(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=Rxe(n,e,t));return n.state.facet(Vte).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function Rxe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,d=c<0?o.from:o.to,m=M4(r.facet(xM).map(v=>v(n)),d,c);e.from==m&&(s=m)}if(s>-1)i={changes:e,selection:Sn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",d=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+d))}else{let c=r.changes(e),d=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=o.to+10&&e.to>=o.to-10){let m=n.state.sliceDoc(e.from,e.to),v,M=t&&one(n,t.main.head);if(M){let P=e.insert.length-(e.to-e.from);v={from:M.from,to:M.to-P}}else v=n.state.doc.lineAt(o.head);let B=o.to-e.to;i=r.changeByRange(P=>{if(P.from==o.from&&P.to==o.to)return{changes:c,range:d||P.map(c)};let U=P.to-B,z=U-m.length;if(n.state.sliceDoc(z,U)!=m||U>=v.from&&z<=v.to)return{range:P};let V=r.changes({from:z,to:U,insert:e.insert}),Z=P.to-o.to;return{changes:V,range:d?Sn.range(Math.max(0,d.anchor+Z),Math.max(0,d.head+Z)):P.map(V)}})}else i={changes:c,selection:d&&r.selection.replaceRange(d)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function cne(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function Pxe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new fG(t,i)),(r!=t||o!=i)&&e.push(new fG(r,o))),e}function Lxe(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?Sn.single(t+e,i+e):null}class Uxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 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.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Ti.safari&&e.contentDOM.addEventListener("input",()=>null),Ti.gecko&&Xxe(e.contentDOM.ownerDocument)}handleEvent(e){!Qxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Kxe(e),i=this.handlers,r=this.view.contentDOM;for(let o in t)if(o!="scroll"){let s=!t[o].handlers.length,a=i[o];a&&s!=!a.handlers.length&&(r. Line truncated
`))};if((Ti.mac||Ti.android)&&v.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(v={from:a,to:c,insert:As.of([i.text.replace("."," ")])}),this.pendingContextChange=v,!e.state.readOnly){let M=this.to-this.from+(v.to-v.from+v.insert.length);BU(e,v,Sn.single(this.toEditorPos(i.selectionStart,M),this.toEditorPos(i.selectionEnd,M)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),v.from<v.to&&!v.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),d=this.toEditorPos(o.rangeEnd);if(c<d){let m=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(vr.mark({attributes:{style:m}}).range(c,d))}}}e.dispatch({effects:Jte.of(vr.set(r))})},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:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=g5(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,d)=>{if(i)return;let m=d.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(d)){r=this.pendingContextChange=null,t+=m,this.to+=m;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=m,this.to+=m;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+d.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),d.toString()),this.to+=m}t+=m}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.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,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,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>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.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])}}class wi{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={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.meas Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,ER),L2e={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"};let iI=null;function U2e(){var n;if(iI==null&&typeof document<"u"&&document.body){let e=document.body.style;iI=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return iI||!1}const ES=Bi.define({combine(n){let e=Wm(n,{render:null,specialChars:P2e,addSpecialChars:null});return(e.replaceTabs=!U2e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,ER)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,ER)),e}});function K2e(n={}){return[ES.of(n),F2e()]}let LG=null;function F2e(){return LG||(LG=yu.fromClass(class{constructor(n){this.view=n,this.decorations=vr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(ES)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new R2e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=xd(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=z2(s.text,a,i-s.from);return vr.replace({widget:new G2e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=vr.replace({widget:new N2e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(ES);n.startState.facet(ES)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const z2e="•";function j2e(n){return n>=32?z2e:n==10?"␤":String.fromCharCode(9216+n)}class N2e extends q1{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=j2e(this.code),i=e.state.phrase("Control character")+" "+(L2e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class G2e extends q1{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 W2e(){return q2e}const Q2e=vr.line({class:"cm-activeLine"}),q2e=yu.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>e&&(t.push(Q2e.range(r.from)),e=r.from)}return vr.set(t)}},{decorations:n=>n.decorations}),BR=2e3;function Y2e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>BR||t.off>BR||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let d=n.doc.line(c);d.length<=a&&o.push(Sn.range(d.from+s,d.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let d=n.doc.line(c),m=aR(d.text,s,n.tabSize,!0);if(m<0)o.push(Sn.cursor(d.to));else{let v=aR(d.text,a,n.tabSize);o.push(Sn.range(d.from+m,d.from+v))}}}return o}function V2e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function UG(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>BR?-1:r==i.length?V2e(n,e.clientX):z2(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function $2e(n,e){let t=UG(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=UG(n,r);if(!a)return i;let c=Y2e(n.state,t,a);return c.length?s?Sn.create(c.concat(i.ranges)):Sn.create(c):i}}:null}function H2e(n){let e=(t=>t.altKey&&t.button==0);return wi.mouseSelectionStyle.of((t,i)=>e(i)?$2e(t,i):null)}const Z2e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},X2e={style:"cursor: crosshair"};function J2e(n={}){let[e,t]=Z2e[n.key||"Alt"],i=yu.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,wi.contentAttributes.of(r=>{var o;ret Line truncated
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new oMe(this):new iMe(this)}getCursor(e,t=0,i){let r=e.doc?e:as.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?xx(this,r,t,i):_x(this,r,t,i)}}class zie{constructor(e){this.spec=e}}function _x(n,e,t,i){return new M2(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?nMe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function nMe(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(HE(r,t-o))!=ll.Word||e(ZE(r,t-o))!=ll.Word)&&(e(ZE(r,i-o))!=ll.Word||e(HE(r,i-o))!=ll.Word))}class iMe extends zie{constructor(e){super(e)}nextMatch(e,t,i){let r=_x(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=_x(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=_x(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=_x(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=_x(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function xx(n,e,t,i){return new Uie(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?rMe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function HE(n,e){return n.slice(fc(n,e,!1),e)}function ZE(n,e){return n.slice(e,fc(n,e))}function rMe(n){return(e,t,i)=>!i[0].length||(n(HE(i.input,i.index))!=ll.Word||n(ZE(i.input,i.index))!=ll.Word)&&(n(ZE(i.input,i.index+i[0].length))!=ll.Word||n(HE(i.input,i.index+i[0].length))!=ll.Word)}class oMe extends zie{nextMatch(e,t,i){let r=xx(this.spec,e,i,e.doc.length).next();return r.done&&(r=xx(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=xx(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=xx(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=xx(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const w5=eo.define(),WU=eo.define(),Ev=mc.define({create(n){return new mI(jR(n).create(),null)},update(n,e){for(let t of e.effects)t.is(w5)?n=new mI(t.value.create(),n.panel):t.is(WU)&&(n=new mI(n.query,t.value?QU:null));return n},provide:n=>C5.from(n,e=>e.panel)});class mI{constructor(e,t){this.query=e,this.panel=t}}const sMe=vr.mark({class:"cm-searchMatch"}),aMe=vr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),lMe=yu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Ev))}update(n){let e=n.state.field(Ev);(e!=n.startState.field(Ev)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return vr.none;let{view:t}=this,i=new z1;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(d,m)=>{let v=t.state.selection.ranges.some(M=>M.from==d&&M.to==m);i.add(d,m,v?aMe:sMe)})}return i.finish()}},{decorations:n=>n.decorations});function BM(n){return e=>{let t=e.state.field(Ev,!1);return t&&t.query.spec.valid?n(e,t):Gie(e)}}const XE=BM((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=Sn.single(i.from,i.to),o=n.state.facet(N2);return n.dispatch({selection:r,effects:[qU(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),Nie(n),!0}),JE=BM((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=Sn.single(r.from,r.to),s=n.state.facet(N2);return n.dispatch({selection:o,effects:[qU(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),Nie(n),!0}),uMe=BM((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:Sn.cre Line truncated
`)}var Nn={extraLines:2,tabSize:4},Si=function(Ln,Tn,ti,Bn){Bn=Dt({},Nn,Bn);var je=Ln.split(/\r\n?|\n|\f/),H=Math.max(1,Tn-Bn.extraLines)-1,j=Math.min(Tn+Bn.extraLines,je.length),Q=String(j).length,he=Gn(je,H,Tn,Q,Bn),Me=en(je[Tn-1].substring(0,ti-1),Tn,Q,Bn),Ne=yt(" ",Me.length)+"^",Qe=Gn(je,Tn,j,Q,Bn);return[he,Ne,Qe].filter(Boolean).join(`
`)};return Si})}),d=new Error().stack,m=(function(ke){var Oe=Object.create(SyntaxError.prototype);return Object.assign(Oe,ke,{name:"SyntaxError"}),Object.defineProperty(Oe,"stack",{get:function(){return d?d.replace(/^(.+\n){1,3}/,String(Oe)+`
`):""}}),Oe}),v=(function(ke,Oe,Ze,bt,yt){throw m({message:bt?ke+`
`+c(Oe,bt,yt):ke,rawMessage:ke,source:Ze,line:bt,column:yt})}),w={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Oe){for(var Ze=arguments.length,bt=Array(Ze>1?Ze-1:0),yt=1;yt<Ze;yt++)bt[yt-1]=arguments[yt];return"Unexpected token <"+Oe+"> at "+bt.filter(Boolean).join(":")}},B={unexpectedSymbol:function(Oe){for(var Ze=arguments.length,bt=Array(Ze>1?Ze-1:0),yt=1;yt<Ze;yt++)bt[yt-1]=arguments[yt];return"Unexpected symbol <"+Oe+"> at "+bt.filter(Boolean).join(":")}},P={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},U={"{":P.LEFT_BRACE,"}":P.RIGHT_BRACE,"[":P.LEFT_BRACKET,"]":P.RIGHT_BRACKET,":":P.COLON,",":P.COMMA},z={true:P.TRUE,false:P.FALSE,null:P.NULL},Y={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},Z={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},X={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function te(ke){return ke>="1"&&ke<="9"}function re(ke){return ke>="0"&&ke<="9"}function ne(ke){return re(ke)||ke>="a"&&ke<="f"||ke>="A"&&ke<="F"}function q(ke){return ke==="e"||ke==="E"}function le(ke,Oe,Ze,bt){var yt=ke.charAt(Oe);if(yt==="\r")Oe++,Ze++,bt=1,ke.charAt(Oe)===`
`+c(Oe,bt,yt):ke,rawMessage:ke,source:Ze,line:bt,column:yt})}),M={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Oe){for(var Ze=arguments.length,bt=Array(Ze>1?Ze-1:0),yt=1;yt<Ze;yt++)bt[yt-1]=arguments[yt];return"Unexpected token <"+Oe+"> at "+bt.filter(Boolean).join(":")}},B={unexpectedSymbol:function(Oe){for(var Ze=arguments.length,bt=Array(Ze>1?Ze-1:0),yt=1;yt<Ze;yt++)bt[yt-1]=arguments[yt];return"Unexpected symbol <"+Oe+"> at "+bt.filter(Boolean).join(":")}},P={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},U={"{":P.LEFT_BRACE,"}":P.RIGHT_BRACE,"[":P.LEFT_BRACKET,"]":P.RIGHT_BRACKET,":":P.COLON,",":P.COMMA},z={true:P.TRUE,false:P.FALSE,null:P.NULL},V={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},Z={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},X={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function re(ke){return ke>="1"&&ke<="9"}function ie(ke){return ke>="0"&&ke<="9"}function te(ke){return ie(ke)||ke>="a"&&ke<="f"||ke>="A"&&ke<="F"}function q(ke){return ke==="e"||ke==="E"}function le(ke,Oe,Ze,bt){var yt=ke.charAt(Oe);if(yt==="\r")Oe++,Ze++,bt=1,ke.charAt(Oe)===`
`&&Oe++;else if(yt===`
`)Oe++,Ze++,bt=1;else if(yt===" "||yt===" ")Oe++,bt++;else return null;return{index:Oe,line:Ze,column:bt}}function ce(ke,Oe,Ze,bt){var yt=ke.charAt(Oe);return yt in U?{type:U[yt],line:Ze,column:bt+1,index:Oe+1,value:null}:null}function ve(ke,Oe,Ze,bt){for(var yt in z)if(z.hasOwnProperty(yt)&&ke.substr(Oe,yt.length)===yt)return{type:z[yt],line:Ze,column:bt+yt.length,index:Oe+yt.length,value:yt};return null}function ge(ke,Oe,Ze,bt){for(var yt=Oe,Mt=Y._START_;Oe<ke.length;){var Kt=ke.charAt(Oe);switch(Mt){case Y._START_:{if(Kt==='"')Oe++,Mt=Y.START_QUOTE_OR_CHAR;else return null;break}case Y.START_QUOTE_OR_CHAR:{if(Kt==="\\")Oe++,Mt=Y.ESCAPE;else{if(Kt==='"')return Oe++,{type:P.STRING,line:Ze,column:bt+Oe-yt,index:Oe,value:ke.slice(yt,Oe)};Oe++}break}case Y.ESCAPE:{if(Kt in Z){if(Oe++,Kt==="u")for(var Dt=0;Dt<4;Dt++){var en=ke.charAt(Oe);if(en&&ne(en))Oe++;else return null}Mt=Y.START_QUOTE_OR_CHAR}else return null;break}}}}function Ee(ke,Oe,Ze,bt){var yt=Oe,Mt=Oe,Kt=X._START_;e:for(;Oe<ke.length;){var Dt=ke.charAt(Oe);switch(Kt){case X._START_:{if(Dt==="-")Kt=X.MINUS;else if(Dt==="0")Mt=Oe+1,Kt=X.ZERO;else if(te(Dt))Mt=Oe+1,Kt=X.DIGIT;else return null;break}case X.MINUS:{if(Dt==="0")Mt=Oe+1,Kt=X.ZERO;else if(te(Dt))Mt=Oe+1,Kt=X.DIGIT;else return null;break}case X.ZERO:{if(Dt===".")Kt=X.POINT;else if(q(Dt))Kt=X.EXP;else break e;break}case X.DIGIT:{if(re(Dt))Mt=Oe+1;else if(Dt===".")Kt=X.POINT;else if(q(Dt))Kt=X.EXP;else break e;break}case X.POINT:{if(re(Dt))Mt=Oe+1,Kt=X.DIGIT_FRACTION;else break e;break}case X.DIGIT_FRACTION:{if(re(Dt))Mt=Oe+1;else if(q(Dt))Kt=X.EXP;else break e;break}case X.EXP:{if(Dt==="+"||Dt==="-")Kt=X.EXP_DIGIT_OR_SIGN;else if(re(Dt))Mt=Oe+1,Kt=X.EXP_DIGIT_OR_SIGN;else break e;break}case X.EXP_DIGIT_OR_SIGN:{if(re(Dt))Mt=Oe+1;else break e;break}}Oe++}return Mt>0?{type:P.NUMBER,line:Ze,column:bt+Mt-yt,index:Mt,value:ke.slice(yt,Mt)}:null}var we=function(Oe,Ze){for(var bt=1,yt=1,Mt=0,Kt=[];Mt<Oe.length;){var Dt=[Oe,Mt,bt,yt],en=le.apply(void 0,Dt);if(en){Mt=en.index,bt=en.line,yt=en.column;continue}var Gn=ce.apply(void 0,Dt)||ve.apply(void 0,Dt)||ge.apply(void 0,Dt)||Ee.apply(void 0,Dt);if(Gn){var Nn={type:Gn.type,value:Gn.value,loc:a(bt,yt,Mt,Gn.line,Gn.column,Gn.index,Ze.source)};Kt.push(Nn),Mt=Gn.index,bt=Gn.line,yt=Gn.column}else v(B.unexpectedSymbol(s(Oe,Mt,Mt+1),Ze.source,bt,yt),Oe,Ze.source,bt,yt)}return Kt},Te={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},ze={_START_:0,KEY:1,COLON:2},Ie={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Ye={loc:!0,source:null};function At(ke,Oe,Ze){var bt=Oe.length>0?Oe[Oe.length-1].loc.end:{line:1,column:1};v(w.unexpectedEnd(),ke,Ze.source,bt.line,bt.column)}function gt(ke){for(var Oe=0,Ze=0;Ze<4;Ze++)Oe=Oe*16+parseInt(ke[Ze],16);return String.fromCharCode(Oe)}var Ue={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},De=['"',"\\","/"];function Ge(ke){for(var Oe="",Ze=0;Ze<ke.length;Ze++){var bt=ke.charAt(Ze);if(bt==="\\"){Ze++;var yt=ke.charAt(Ze);if(yt==="u")Oe+=gt(ke.substr(Ze+1,4)),Ze+=4;else if(De.indexOf(yt)!==-1)Oe+=yt;else if(yt in Ue)Oe+=Ue[yt];else break}else Oe+=bt}return Oe}function Re(ke,Oe,Ze,bt){for(var yt=void 0,Mt={type:"Object",children:[]},Kt=Te._START_;Ze<Oe.length;){var Dt=Oe[Ze];switch(Kt){case Te._START_:{if(Dt.type===P.LEFT_BRACE)yt=Dt,Kt=Te.OPEN_OBJECT,Ze++;else return null;break}case Te.OPEN_OBJECT:{if(Dt.type===P.RIGHT_BRACE)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};var en=St(ke,Oe,Ze,bt);Mt.children.push(en.value),Kt=Te.PROPERTY,Ze=en.index;break}case Te.PROPERTY:{if(Dt.type===P.RIGHT_BRACE)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};Dt.type===P.COMMA?(Kt=Te.COMMA,Ze++):v(w.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}case Te.COMMA:{var Gn=St(ke,Oe,Ze,bt);Gn?(Ze=Gn.index,Mt.children.push(Gn.value),Kt=Te.PROPERTY):v(w.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}}}At(ke,Oe,bt)}function St(ke,Oe,Ze,bt){for(var yt=void 0,Mt={type:"Property",key:null,value:null},Kt=ze._START_;Ze<Oe.length;){var Dt=Oe[Ze];switch(Kt){case ze._START_:{if(Dt.type===P.STRING){var en={type:"Identifier",value:Ge(ke.slice(Dt.loc.start.offset+1,Dt.loc.end.offset-1)),raw:Dt.value};bt.loc&&(en.loc=Dt.loc),yt=Dt,Mt.key=en,Kt=ze.KEY,Ze++}else return null;break}case ze.KEY:{Dt.type===P.COLON?(Kt=ze.COLON,Ze++):v(w.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}case ze.COLON:{var Gn=Ut(ke,Oe,Ze,bt);return Mt.value=Gn.value,bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Gn.value.loc.end.line,Gn.value.loc.end.column,Gn.value.loc.end.offset,bt.source)),{value:Mt,index:Gn.index}}}}}function ut(ke,Oe,Ze,bt){for(var yt=void 0,Mt={type:"Array",children:[]},Kt=Ie._START_,Dt=void 0;Ze<Oe.length;)switch(Dt=Oe[Ze],Kt){case Ie._START_:{if(Dt.type===P.LEFT_BRACKET)yt=Dt,Kt=Ie.OPEN_ARRAY,Ze++;else return null;break}case Ie.OPEN_ARRAY:{if(Dt.type===P.RIGHT_BRACKET)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};var en=Ut(ke,Oe,Ze,bt);Ze=en.index,Mt.children.push(en.value),Kt=Ie.VALUE;break}case Ie.VALUE:{if(Dt.type===P.RIGHT_BRACKET)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};Dt.type===P.COMMA?(Kt=Ie.COMMA,Ze++):v(w.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}case Ie.COMMA:{var Gn=Ut(ke,Oe,Ze,bt);Ze=Gn.index,Mt.children.push(Gn.value),Kt=Ie.VALUE;break}}At(ke,Oe,bt)}function kt(ke,Oe,Ze,bt){var yt=Oe[Ze],Mt=null;switch(yt.type){case P.STRING:{Mt=Ge(ke.slice(yt.loc.start.offset+1,yt.loc.end.offset-1));break}case P.NUMBER:{Mt=Number(yt.value);break}case P.TRUE:{Mt=!0;break}case P.FALSE:{Mt=!1;break}case P.NULL:{Mt=null;break}default:return null}var Kt={type:"Literal",value:Mt,raw:yt.value};return bt.loc&&(Kt.loc=yt.loc),{value:Kt,index:Ze+1}}function Ut(ke,Oe,Ze,bt){var yt=Oe[Ze],Mt=kt.apply(void 0,arguments)||Re.apply(void 0,arguments)||ut.apply(void 0,arguments);if(Mt)return Mt;v(w.unexpectedToken(s(ke,yt.loc.start.offset,yt.loc.end.offset),bt.source,yt.loc.start.line,yt.loc.start.column),ke,bt.source,yt.loc.start.line,yt.loc.start.column)}var Le=(function(ke,Oe){Oe=Object.assign({},Ye,Oe);var Ze=we(ke,Oe);Ze.length===0&&At(ke,Ze,Oe);var bt=Ut(ke,Ze,0,Oe);if(bt.index===Ze.length)return bt.value;var yt=Ze[bt.index];v(w.unexpectedToken(s(ke,yt.loc.start.offset,yt.loc.end.offset),Oe.source,yt.loc.start.line,yt.loc.start.column),ke,Oe.source,yt.loc.start.line,yt.loc.start.column)});return Le}))})(PS)),PS.exports}var Nwe=jwe();const GU=bu(Nwe);function ga(){var n="/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",e="68bf9a3bcb07bd54be36702e0c3494ce552968d6",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",statementMap:{0:{start:{line:2,column:2},end:{line:4,column:3}},1:{start:{line:3,column:4},end:{line:3,column:18}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:16}},4:{start:{line:8,column:2},end:{line:10, Line truncated
`)Oe++,Ze++,bt=1;else if(yt===" "||yt===" ")Oe++,bt++;else return null;return{index:Oe,line:Ze,column:bt}}function ce(ke,Oe,Ze,bt){var yt=ke.charAt(Oe);return yt in U?{type:U[yt],line:Ze,column:bt+1,index:Oe+1,value:null}:null}function ve(ke,Oe,Ze,bt){for(var yt in z)if(z.hasOwnProperty(yt)&&ke.substr(Oe,yt.length)===yt)return{type:z[yt],line:Ze,column:bt+yt.length,index:Oe+yt.length,value:yt};return null}function ge(ke,Oe,Ze,bt){for(var yt=Oe,Mt=V._START_;Oe<ke.length;){var Kt=ke.charAt(Oe);switch(Mt){case V._START_:{if(Kt==='"')Oe++,Mt=V.START_QUOTE_OR_CHAR;else return null;break}case V.START_QUOTE_OR_CHAR:{if(Kt==="\\")Oe++,Mt=V.ESCAPE;else{if(Kt==='"')return Oe++,{type:P.STRING,line:Ze,column:bt+Oe-yt,index:Oe,value:ke.slice(yt,Oe)};Oe++}break}case V.ESCAPE:{if(Kt in Z){if(Oe++,Kt==="u")for(var Dt=0;Dt<4;Dt++){var en=ke.charAt(Oe);if(en&&te(en))Oe++;else return null}Mt=V.START_QUOTE_OR_CHAR}else return null;break}}}}function Ee(ke,Oe,Ze,bt){var yt=Oe,Mt=Oe,Kt=X._START_;e:for(;Oe<ke.length;){var Dt=ke.charAt(Oe);switch(Kt){case X._START_:{if(Dt==="-")Kt=X.MINUS;else if(Dt==="0")Mt=Oe+1,Kt=X.ZERO;else if(re(Dt))Mt=Oe+1,Kt=X.DIGIT;else return null;break}case X.MINUS:{if(Dt==="0")Mt=Oe+1,Kt=X.ZERO;else if(re(Dt))Mt=Oe+1,Kt=X.DIGIT;else return null;break}case X.ZERO:{if(Dt===".")Kt=X.POINT;else if(q(Dt))Kt=X.EXP;else break e;break}case X.DIGIT:{if(ie(Dt))Mt=Oe+1;else if(Dt===".")Kt=X.POINT;else if(q(Dt))Kt=X.EXP;else break e;break}case X.POINT:{if(ie(Dt))Mt=Oe+1,Kt=X.DIGIT_FRACTION;else break e;break}case X.DIGIT_FRACTION:{if(ie(Dt))Mt=Oe+1;else if(q(Dt))Kt=X.EXP;else break e;break}case X.EXP:{if(Dt==="+"||Dt==="-")Kt=X.EXP_DIGIT_OR_SIGN;else if(ie(Dt))Mt=Oe+1,Kt=X.EXP_DIGIT_OR_SIGN;else break e;break}case X.EXP_DIGIT_OR_SIGN:{if(ie(Dt))Mt=Oe+1;else break e;break}}Oe++}return Mt>0?{type:P.NUMBER,line:Ze,column:bt+Mt-yt,index:Mt,value:ke.slice(yt,Mt)}:null}var xe=function(Oe,Ze){for(var bt=1,yt=1,Mt=0,Kt=[];Mt<Oe.length;){var Dt=[Oe,Mt,bt,yt],en=le.apply(void 0,Dt);if(en){Mt=en.index,bt=en.line,yt=en.column;continue}var Gn=ce.apply(void 0,Dt)||ve.apply(void 0,Dt)||ge.apply(void 0,Dt)||Ee.apply(void 0,Dt);if(Gn){var Nn={type:Gn.type,value:Gn.value,loc:a(bt,yt,Mt,Gn.line,Gn.column,Gn.index,Ze.source)};Kt.push(Nn),Mt=Gn.index,bt=Gn.line,yt=Gn.column}else v(B.unexpectedSymbol(s(Oe,Mt,Mt+1),Ze.source,bt,yt),Oe,Ze.source,bt,yt)}return Kt},Te={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Fe={_START_:0,KEY:1,COLON:2},Ie={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Ye={loc:!0,source:null};function At(ke,Oe,Ze){var bt=Oe.length>0?Oe[Oe.length-1].loc.end:{line:1,column:1};v(M.unexpectedEnd(),ke,Ze.source,bt.line,bt.column)}function mt(ke){for(var Oe=0,Ze=0;Ze<4;Ze++)Oe=Oe*16+parseInt(ke[Ze],16);return String.fromCharCode(Oe)}var Ue={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},De=['"',"\\","/"];function Ge(ke){for(var Oe="",Ze=0;Ze<ke.length;Ze++){var bt=ke.charAt(Ze);if(bt==="\\"){Ze++;var yt=ke.charAt(Ze);if(yt==="u")Oe+=mt(ke.substr(Ze+1,4)),Ze+=4;else if(De.indexOf(yt)!==-1)Oe+=yt;else if(yt in Ue)Oe+=Ue[yt];else break}else Oe+=bt}return Oe}function Re(ke,Oe,Ze,bt){for(var yt=void 0,Mt={type:"Object",children:[]},Kt=Te._START_;Ze<Oe.length;){var Dt=Oe[Ze];switch(Kt){case Te._START_:{if(Dt.type===P.LEFT_BRACE)yt=Dt,Kt=Te.OPEN_OBJECT,Ze++;else return null;break}case Te.OPEN_OBJECT:{if(Dt.type===P.RIGHT_BRACE)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};var en=St(ke,Oe,Ze,bt);Mt.children.push(en.value),Kt=Te.PROPERTY,Ze=en.index;break}case Te.PROPERTY:{if(Dt.type===P.RIGHT_BRACE)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};Dt.type===P.COMMA?(Kt=Te.COMMA,Ze++):v(M.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}case Te.COMMA:{var Gn=St(ke,Oe,Ze,bt);Gn?(Ze=Gn.index,Mt.children.push(Gn.value),Kt=Te.PROPERTY):v(M.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}}}At(ke,Oe,bt)}function St(ke,Oe,Ze,bt){for(var yt=void 0,Mt={type:"Property",key:null,value:null},Kt=Fe._START_;Ze<Oe.length;){var Dt=Oe[Ze];switch(Kt){case Fe._START_:{if(Dt.type===P.STRING){var en={type:"Identifier",value:Ge(ke.slice(Dt.loc.start.offset+1,Dt.loc.end.offset-1)),raw:Dt.value};bt.loc&&(en.loc=Dt.loc),yt=Dt,Mt.key=en,Kt=Fe.KEY,Ze++}else return null;break}case Fe.KEY:{Dt.type===P.COLON?(Kt=Fe.COLON,Ze++):v(M.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}case Fe.COLON:{var Gn=Ut(ke,Oe,Ze,bt);return Mt.value=Gn.value,bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Gn.value.loc.end.line,Gn.value.loc.end.column,Gn.value.loc.end.offset,bt.source)),{value:Mt,index:Gn.index}}}}}function ut(ke,Oe,Ze,bt){for(var yt=void 0,Mt={type:"Array",children:[]},Kt=Ie._START_,Dt=void 0;Ze<Oe.length;)switch(Dt=Oe[Ze],Kt){case Ie._START_:{if(Dt.type===P.LEFT_BRACKET)yt=Dt,Kt=Ie.OPEN_ARRAY,Ze++;else return null;break}case Ie.OPEN_ARRAY:{if(Dt.type===P.RIGHT_BRACKET)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};var en=Ut(ke,Oe,Ze,bt);Ze=en.index,Mt.children.push(en.value),Kt=Ie.VALUE;break}case Ie.VALUE:{if(Dt.type===P.RIGHT_BRACKET)return bt.loc&&(Mt.loc=a(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,bt.source)),{value:Mt,index:Ze+1};Dt.type===P.COMMA?(Kt=Ie.COMMA,Ze++):v(M.unexpectedToken(s(ke,Dt.loc.start.offset,Dt.loc.end.offset),bt.source,Dt.loc.start.line,Dt.loc.start.column),ke,bt.source,Dt.loc.start.line,Dt.loc.start.column);break}case Ie.COMMA:{var Gn=Ut(ke,Oe,Ze,bt);Ze=Gn.index,Mt.children.push(Gn.value),Kt=Ie.VALUE;break}}At(ke,Oe,bt)}function kt(ke,Oe,Ze,bt){var yt=Oe[Ze],Mt=null;switch(yt.type){case P.STRING:{Mt=Ge(ke.slice(yt.loc.start.offset+1,yt.loc.end.offset-1));break}case P.NUMBER:{Mt=Number(yt.value);break}case P.TRUE:{Mt=!0;break}case P.FALSE:{Mt=!1;break}case P.NULL:{Mt=null;break}default:return null}var Kt={type:"Literal",value:Mt,raw:yt.value};return bt.loc&&(Kt.loc=yt.loc),{value:Kt,index:Ze+1}}function Ut(ke,Oe,Ze,bt){var yt=Oe[Ze],Mt=kt.apply(void 0,arguments)||Re.apply(void 0,arguments)||ut.apply(void 0,arguments);if(Mt)return Mt;v(M.unexpectedToken(s(ke,yt.loc.start.offset,yt.loc.end.offset),bt.source,yt.loc.start.line,yt.loc.start.column),ke,bt.source,yt.loc.start.line,yt.loc.start.column)}var Le=(function(ke,Oe){Oe=Object.assign({},Ye,Oe);var Ze=xe(ke,Oe);Ze.length===0&&At(ke,Ze,Oe);var bt=Ut(ke,Ze,0,Oe);if(bt.index===Ze.length)return bt.value;var yt=Ze[bt.index];v(M.unexpectedToken(s(ke,yt.loc.start.offset,yt.loc.end.offset),Oe.source,yt.loc.start.line,yt.loc.start.column),ke,Oe.source,yt.loc.start.line,yt.loc.start.column)});return Le}))})(DS)),DS.exports}var $we=Vwe();const XU=vu($we);function ma(){var n="/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",e="68bf9a3bcb07bd54be36702e0c3494ce552968d6",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",statementMap:{0:{start:{line:2,column:2},end:{line:4,column:3}},1:{start:{line:3,column:4},end:{line:3,column:18}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:16}},4:{start:{line:8,column:2},end:{line:10, 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.
`},lSe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function uSe(n){let{announcements:e=lSe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=aSe}=n;const{announce:o,announcement:s}=rSe(),a=k5("DndLiveRegion"),[c,f]=wt.useState(!1);if(wt.useEffect(()=>{f(!0)},[]),oSe(wt.useMemo(()=>({onDragStart(v){let{active:w}=v;o(e.onDragStart({active:w}))},onDragMove(v){let{active:w,over:B}=v;e.onDragMove&&o(e.onDragMove({active:w,over:B}))},onDragOver(v){let{active:w,over:B}=v;o(e.onDragOver({active:w,over:B}))},onDragEnd(v){let{active:w,over:B}=v;o(e.onDragEnd({active:w,over:B}))},onDragCancel(v){let{active:w,over:B}=v;o(e.onDragCancel({active:w,over:B}))}}),[o,e])),!c)return null;const m=In.createElement(In.Fragment,null,In.createElement(nSe,{id:i,value:r.draggable}),In.createElement(iSe,{id:a,announcement:s}));return t?i4.createPortal(m,t):m}var dc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(dc||(dc={}));function o6(){}function cSe(n,e){return wt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function ASe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return wt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const Um=Object.freeze({x:0,y:0});function hSe(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function dSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function fSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function pSe(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function UW(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const mSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=UW(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const f=hSe(UW(c),r);o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(dSe)};function gSe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,f=n.width*n.height,m=s*a,v=m/(c+f-m);return Number(v.toFixed(4))}return 0}const ySe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=gSe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort(fSe)};function vSe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function yre(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Um}function bSe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const CSe=bSe(1);function _Se(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function xSe(n,e,t){const i=_Se(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),f=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),m=r?n.width/r:n.width,v=o?n.height/o:n.height;return{width:m,height:v,top:f,right:c+m,bottom:f+v,left:c}}const MSe={ignoreTransform:!1};function Q2(n,e){e===void 0&&(e=MSe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:f,transformOrigin:m}=kd(n).getComputedStyle(n);f&&(t=xSe(t,f,m))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function KW(n){return Q2(n,{ignoreTransform:!0})}function wSe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function SSe(n,e){return e===void 0&&(e=kd(n).getComputedStyle(n)),e.position==="fixed"}function ESe(n,e){e===void 0&&(e=kd(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function $U(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(qU(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!I5(r)||pre(r)||t.includes(r))return t;const o=kd(n).getComputedStyle(r);return r!==n&&ES Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XW(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function JW(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?XW(Object(t),!0).forEach(function(i){o6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):XW(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function l6e(n){return r6e(n)||s6e(n)||A6e(n)||a6e()}function u6e(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function c6e(n){var e=u6e(n,"string");return typeof e=="symbol"?e:e+""}function A6e(n,e){if(n){if(typeof n=="string")return YR(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?YR(n,e):void 0}}var eQ={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i._setPausedState(!0)}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},h6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},d6e=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},T4=function(e){return e?.key==="Tab"||e?.keyCode===9},f6e=function(e){return T4(e)&&!e.shiftKey},p6e=function(e){return T4(e)&&e.shiftKey},tQ=function(e){return setTimeout(e,0)},I3=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},Yw=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},m6e=[],g6e=function(e,t){var i=t?.document||document,r=t?.trapStack||m6e,o=JW({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:f6e,isKeyBackward:p6e},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(we,Te,ze){return we&&we[Te]!==void 0?we[Te]:o[ze||Te]},f=function(we,Te){var ze=typeof Te?.composedPath=="function"?Te.composedPath():void 0;return s.containerGroups.findIndex(function(Ie){var Ye=Ie.container,At=Ie.tabbableNodes;return Ye.contains(we)||ze?.includes(Ye)||At.find(function(gt){return gt===we})})},m=function(we){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ze=Te.hasFallback,Ie=ze===void 0?!1:ze,Ye=Te.params,At=Ye===void 0?[]:Ye,gt=o[we];if(typeof gt=="function"&&(gt=gt.apply(void 0,l6e(At))),gt===!0&&(gt=void 0),!gt){if(gt===void 0||gt===!1)return gt;throw new Error("`".concat(we,"` was specified but was not a node, or did not return a node"))}var Ue=gt;if(typeof gt=="string"){try{Ue=i.querySelector(gt)}catch(De){throw new Error("`".concat(we,'` appears to be an invalid selector; error="').concat(De.message,'"'))}if(!Ue&&!Ie)throw new Error("`".concat(we,"` as selector refers to no known node"))}return Ue},v=function(){var we=m("initialFocus",{hasFallback:!0});if(we===!1)return!1;if(we===void 0||we&&!US(we,o.tabbableOptions))if(f(i.activeElement)>=0)we=i.activeElement;else{var Te=s.tabbableGroups[0],ze=Te&&Te.firstTabbableNode;we=ze||m("fallbackFocus")}else we===null&&(we=m("fallbackFocus"));if(!we)throw new Error("Your focus-trap needs to have at least one focusable element");return we},w=function(){if(s.containerGroups=s.containers.map(function(we){var Te=Nre(we,o.tabbableOptions),ze=Gre(we,o.tabbableOptions),Ie=Te.length>0?Te[0]:void 0,Ye=Te.length>0?Te[Te.length-1]:void 0,At=ze.find(function(De){return Zb(De)}),gt=ze.slice().reverse().find(function(De){return Zb(De)}),Ue=!!Te.find(function(De){return uv(De)>0});return{container:we,tabbableNodes:Te,focusableNodes:ze,posTabIndexesFound:Ue,firstTabbableNode:Ie,lastTabbableNode:Ye,firstDomTabbableNode:At,lastDomTabbableNode:gt,nextTabbableNode:function(Ge){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,St=Te.indexOf(Ge);return St<0?Re?ze.slice(ze.indexOf(Ge)+1).find(function(ut){return Zb(ut)}):ze.slice(0,ze.indexOf(Ge)).reverse().find(function(ut){return Zb(ut)}):Te[St+(Re?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(we){return we.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all Line truncated
`,f="/",m="*",v="",w="comment",B="declaration";BI=function(U,z){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];z=z||{};var Y=1,Z=1;function X(we){var Te=we.match(e);Te&&(Y+=Te.length);var ze=we.lastIndexOf(c);Z=~ze?we.length-ze:Z+we.length}function te(){var we={line:Y,column:Z};return function(Te){return Te.position=new re(we),le(),Te}}function re(we){this.start=we,this.end={line:Y,column:Z},this.source=z.source}re.prototype.content=U;function ne(we){var Te=new Error(z.source+":"+Y+":"+Z+": "+we);if(Te.reason=we,Te.filename=z.source,Te.line=Y,Te.column=Z,Te.source=U,!z.silent)throw Te}function q(we){var Te=we.exec(U);if(Te){var ze=Te[0];return X(ze),U=U.slice(ze.length),Te}}function le(){q(t)}function ce(we){var Te;for(we=we||[];Te=ve();)Te!==!1&&we.push(Te);return we}function ve(){var we=te();if(!(f!=U.charAt(0)||m!=U.charAt(1))){for(var Te=2;v!=U.charAt(Te)&&(m!=U.charAt(Te)||f!=U.charAt(Te+1));)++Te;if(Te+=2,v===U.charAt(Te-1))return ne("End of comment missing");var ze=U.slice(2,Te-2);return Z+=2,X(ze),U=U.slice(Te),Z+=2,we({type:w,comment:ze})}}function ge(){var we=te(),Te=q(i);if(Te){if(ve(),!q(r))return ne("property missing ':'");var ze=q(o),Ie=we({type:B,property:P(Te[0].replace(n,v)),value:ze?P(ze[0].replace(n,v)):v});return q(s),Ie}}function Ee(){var we=[];ce(we);for(var Te;Te=ge();)Te!==!1&&(we.push(Te),ce(we));return we}return le(),Ee()};function P(U){return U?U.replace(a,v):v}return BI}var cQ;function Q6e(){if(cQ)return q_;cQ=1;var n=q_&&q_.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(q_,"__esModule",{value:!0}),q_.default=t;const e=n(W6e());function t(i,r){let o=null;if(!i||typeof i!="string")return o;const s=(0,e.default)(i),a=typeof r=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:f,value:m}=c;a?r(f,m,c):m&&(o=o||{},o[f]=m)}),o}return q_}var T3={},AQ;function q6e(){if(AQ)return T3;AQ=1,Object.defineProperty(T3,"__esModule",{value:!0}),T3.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(f){return!f||t.test(f)||n.test(f)},s=function(f,m){return m.toUpperCase()},a=function(f,m){return"".concat(m,"-")},c=function(f,m){return m===void 0&&(m={}),o(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(r,a):f=f.replace(i,a),f.replace(e,s))};return T3.camelCase=c,T3}var k3,hQ;function Y6e(){if(hQ)return k3;hQ=1;var n=k3&&k3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(Q6e()),t=q6e();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,k3=i,k3}var V6e=Y6e();const $6e=bu(V6e),Zre=Xre("end"),nK=Xre("start");function Xre(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function H6e(n){const e=nK(n),t=Zre(n);if(e&&t)return{start:e,end:t}}function k4(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?dQ(n.position):"start"in n||"end"in n?dQ(n):"line"in n||"column"in n?ZR(n):""}function ZR(n){return fQ(n&&n.line)+":"+fQ(n&&n.column)}function dQ(n){return ZR(n&&n.start)+"-"+ZR(n&&n.end)}function fQ(n){return n&&typeof n=="number"?n:1}class JA extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=k4(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}JA.prototype.file="";JA.prototype.name="";JA.prototype.reason="";JA.prototype.message="";JA.prototype.stack="";JA.prototype.column=void 0;JA.prototype.line=void 0;JA.prototype.ancestors=void 0;JA.prototype.cause=void 0;JA.prototype.fatal=void 0;JA.prototype.place=void 0;JA.prototype.ruleId=void 0;JA.prototype.source=void 0;const iK={}.hasOwnProperty,Z6e=new Map,X6e=/[A-Z]/g,J6e=new Set(["table","tbody","thead","tfoot","tr"]),eBe=new Set(["td","th"]),Jre="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tBe(n,e){if(!e||e.Fragment===void Line truncated
`},pSe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function mSe(n){let{announcements:e=pSe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=fSe}=n;const{announce:o,announcement:s}=ASe(),a=TM("DndLiveRegion"),[c,d]=wt.useState(!1);if(wt.useEffect(()=>{d(!0)},[]),hSe(wt.useMemo(()=>({onDragStart(v){let{active:M}=v;o(e.onDragStart({active:M}))},onDragMove(v){let{active:M,over:B}=v;e.onDragMove&&o(e.onDragMove({active:M,over:B}))},onDragOver(v){let{active:M,over:B}=v;o(e.onDragOver({active:M,over:B}))},onDragEnd(v){let{active:M,over:B}=v;o(e.onDragEnd({active:M,over:B}))},onDragCancel(v){let{active:M,over:B}=v;o(e.onDragCancel({active:M,over:B}))}}),[o,e])),!c)return null;const m=In.createElement(In.Fragment,null,In.createElement(uSe,{id:i,value:r.draggable}),In.createElement(cSe,{id:a,announcement:s}));return t?i4.createPortal(m,t):m}var hc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(hc||(hc={}));function a6(){}function gSe(n,e){return wt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function ySe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return wt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const Km=Object.freeze({x:0,y:0});function vSe(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function bSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function CSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function _Se(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function GW(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const xSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=GW(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const d=vSe(GW(c),r);o.push({id:a,data:{droppableContainer:s,value:d}})}}return o.sort(bSe)};function MSe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,d=n.width*n.height,m=s*a,v=m/(c+d-m);return Number(v.toFixed(4))}return 0}const wSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=MSe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort(CSe)};function SSe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pre(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Km}function ESe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const BSe=ESe(1);function OSe(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function ISe(n,e,t){const i=OSe(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),d=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),m=r?n.width/r:n.width,v=o?n.height/o:n.height;return{width:m,height:v,top:d,right:c+m,bottom:d+v,left:c}}const TSe={ignoreTransform:!1};function Q2(n,e){e===void 0&&(e=TSe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:m}=Dd(n).getComputedStyle(n);d&&(t=ISe(t,d,m))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function WW(n){return Q2(n,{ignoreTransform:!0})}function kSe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function DSe(n,e){return e===void 0&&(e=Dd(n).getComputedStyle(n)),e.position==="fixed"}function RSe(n,e){e===void 0&&(e=Dd(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function rK(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(tK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!OM(r)||hre(r)||t.includes(r))return t;const o=Dd(n).getComputedStyle(r);return r!==n&&RS Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rQ(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function oQ(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rQ(Object(t),!0).forEach(function(i){h6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):rQ(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function p6e(n){return A6e(n)||d6e(n)||y6e(n)||f6e()}function m6e(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function g6e(n){var e=m6e(n,"string");return typeof e=="symbol"?e:e+""}function y6e(n,e){if(n){if(typeof n=="string")return ZR(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ZR(n,e):void 0}}var sQ={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i._setPausedState(!0)}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},v6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},b6e=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},I4=function(e){return e?.key==="Tab"||e?.keyCode===9},C6e=function(e){return I4(e)&&!e.shiftKey},_6e=function(e){return I4(e)&&e.shiftKey},aQ=function(e){return setTimeout(e,0)},I3=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},Qw=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},x6e=[],M6e=function(e,t){var i=t?.document||document,r=t?.trapStack||x6e,o=oQ({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:C6e,isKeyBackward:_6e},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(xe,Te,Fe){return xe&&xe[Te]!==void 0?xe[Te]:o[Fe||Te]},d=function(xe,Te){var Fe=typeof Te?.composedPath=="function"?Te.composedPath():void 0;return s.containerGroups.findIndex(function(Ie){var Ye=Ie.container,At=Ie.tabbableNodes;return Ye.contains(xe)||Fe?.includes(Ye)||At.find(function(mt){return mt===xe})})},m=function(xe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=Te.hasFallback,Ie=Fe===void 0?!1:Fe,Ye=Te.params,At=Ye===void 0?[]:Ye,mt=o[xe];if(typeof mt=="function"&&(mt=mt.apply(void 0,p6e(At))),mt===!0&&(mt=void 0),!mt){if(mt===void 0||mt===!1)return mt;throw new Error("`".concat(xe,"` was specified but was not a node, or did not return a node"))}var Ue=mt;if(typeof mt=="string"){try{Ue=i.querySelector(mt)}catch(De){throw new Error("`".concat(xe,'` appears to be an invalid selector; error="').concat(De.message,'"'))}if(!Ue&&!Ie)throw new Error("`".concat(xe,"` as selector refers to no known node"))}return Ue},v=function(){var xe=m("initialFocus",{hasFallback:!0});if(xe===!1)return!1;if(xe===void 0||xe&&!PS(xe,o.tabbableOptions))if(d(i.activeElement)>=0)xe=i.activeElement;else{var Te=s.tabbableGroups[0],Fe=Te&&Te.firstTabbableNode;xe=Fe||m("fallbackFocus")}else xe===null&&(xe=m("fallbackFocus"));if(!xe)throw new Error("Your focus-trap needs to have at least one focusable element");return xe},M=function(){if(s.containerGroups=s.containers.map(function(xe){var Te=Fre(xe,o.tabbableOptions),Fe=zre(xe,o.tabbableOptions),Ie=Te.length>0?Te[0]:void 0,Ye=Te.length>0?Te[Te.length-1]:void 0,At=Fe.find(function(De){return Hb(De)}),mt=Fe.slice().reverse().find(function(De){return Hb(De)}),Ue=!!Te.find(function(De){return lv(De)>0});return{container:xe,tabbableNodes:Te,focusableNodes:Fe,posTabIndexesFound:Ue,firstTabbableNode:Ie,lastTabbableNode:Ye,firstDomTabbableNode:At,lastDomTabbableNode:mt,nextTabbableNode:function(Ge){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,St=Te.indexOf(Ge);return St<0?Re?Fe.slice(Fe.indexOf(Ge)+1).find(function(ut){return Hb(ut)}):Fe.slice(0,Fe.indexOf(Ge)).reverse().find(function(ut){return Hb(ut)}):Te[St+(Re?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(xe){return xe.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all Line truncated
`,d="/",m="*",v="",M="comment",B="declaration";RI=function(U,z){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];z=z||{};var V=1,Z=1;function X(xe){var Te=xe.match(e);Te&&(V+=Te.length);var Fe=xe.lastIndexOf(c);Z=~Fe?xe.length-Fe:Z+xe.length}function re(){var xe={line:V,column:Z};return function(Te){return Te.position=new ie(xe),le(),Te}}function ie(xe){this.start=xe,this.end={line:V,column:Z},this.source=z.source}ie.prototype.content=U;function te(xe){var Te=new Error(z.source+":"+V+":"+Z+": "+xe);if(Te.reason=xe,Te.filename=z.source,Te.line=V,Te.column=Z,Te.source=U,!z.silent)throw Te}function q(xe){var Te=xe.exec(U);if(Te){var Fe=Te[0];return X(Fe),U=U.slice(Fe.length),Te}}function le(){q(t)}function ce(xe){var Te;for(xe=xe||[];Te=ve();)Te!==!1&&xe.push(Te);return xe}function ve(){var xe=re();if(!(d!=U.charAt(0)||m!=U.charAt(1))){for(var Te=2;v!=U.charAt(Te)&&(m!=U.charAt(Te)||d!=U.charAt(Te+1));)++Te;if(Te+=2,v===U.charAt(Te-1))return te("End of comment missing");var Fe=U.slice(2,Te-2);return Z+=2,X(Fe),U=U.slice(Te),Z+=2,xe({type:M,comment:Fe})}}function ge(){var xe=re(),Te=q(i);if(Te){if(ve(),!q(r))return te("property missing ':'");var Fe=q(o),Ie=xe({type:B,property:P(Te[0].replace(n,v)),value:Fe?P(Fe[0].replace(n,v)):v});return q(s),Ie}}function Ee(){var xe=[];ce(xe);for(var Te;Te=ge();)Te!==!1&&(xe.push(Te),ce(xe));return xe}return le(),Ee()};function P(U){return U?U.replace(a,v):v}return RI}var mQ;function X6e(){if(mQ)return Q_;mQ=1;var n=Q_&&Q_.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Q_,"__esModule",{value:!0}),Q_.default=t;const e=n(Z6e());function t(i,r){let o=null;if(!i||typeof i!="string")return o;const s=(0,e.default)(i),a=typeof r=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:m}=c;a?r(d,m,c):m&&(o=o||{},o[d]=m)}),o}return Q_}var T3={},gQ;function J6e(){if(gQ)return T3;gQ=1,Object.defineProperty(T3,"__esModule",{value:!0}),T3.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(d){return!d||t.test(d)||n.test(d)},s=function(d,m){return m.toUpperCase()},a=function(d,m){return"".concat(m,"-")},c=function(d,m){return m===void 0&&(m={}),o(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(r,a):d=d.replace(i,a),d.replace(e,s))};return T3.camelCase=c,T3}var k3,yQ;function eBe(){if(yQ)return k3;yQ=1;var n=k3&&k3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(X6e()),t=J6e();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,k3=i,k3}var tBe=eBe();const nBe=vu(tBe),Vre=$re("end"),AK=$re("start");function $re(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function iBe(n){const e=AK(n),t=Vre(n);if(e&&t)return{start:e,end:t}}function T4(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?vQ(n.position):"start"in n||"end"in n?vQ(n):"line"in n||"column"in n?tP(n):""}function tP(n){return bQ(n&&n.line)+":"+bQ(n&&n.column)}function vQ(n){return tP(n&&n.start)+"-"+tP(n&&n.end)}function bQ(n){return n&&typeof n=="number"?n:1}class JA extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=T4(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}JA.prototype.file="";JA.prototype.name="";JA.prototype.reason="";JA.prototype.message="";JA.prototype.stack="";JA.prototype.column=void 0;JA.prototype.line=void 0;JA.prototype.ancestors=void 0;JA.prototype.cause=void 0;JA.prototype.fatal=void 0;JA.prototype.place=void 0;JA.prototype.ruleId=void 0;JA.prototype.source=void 0;const hK={}.hasOwnProperty,rBe=new Map,oBe=/[A-Z]/g,sBe=new Set(["table","tbody","thead","tfoot","tr"]),aBe=new Set(["td","th"]),Hre="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lBe(n,e){if(!e||e.Fragment===void Line truncated
`;break}case-3:{s=`\r
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function d8e(n){const i={constructs:bBe([u8e,...(n||{}).extensions||[]]),content:r(BBe),defined:[],document:r(IBe),flow:r(VOe),lazy:{},string:r(ZOe),text:r(XOe)};return i;function r(o){return s;function s(a){return c8e(i,o,a)}}}function f8e(n){for(;!loe(n););return n}const wQ=/[\0\t\n\r]/g;function p8e(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const c=[];let f,m,v,w,B;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),v=0,e="",t&&(o.charCodeAt(0)===65279&&v++,t=void 0);v<o.length;){if(wQ.lastIndex=v,f=wQ.exec(o),w=f&&f.index!==void 0?f.index:o.length,B=o.charCodeAt(w),!f){e=o.slice(v);break}if(B===10&&v===w&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),v<w&&(c.push(o.slice(v,w)),n+=w-v),B){case 0:{c.push(65533),n++;break}case 9:{for(m=Math.ceil(n/4)*4,c.push(-2);n++<m;)c.push(-1);break}case 10:{c.push(-4),n=1;break}default:i=!0,n=1}v=w+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const m8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function g8e(n){return n.replace(m8e,y8e)}function y8e(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return roe(t.slice(o?2:1),o?16:10)}return sK(t)||n}const foe={}.hasOwnProperty;function v8e(n,e,t){return typeof e!="string"&&(t=e,e=void 0),b8e(t)(f8e(d8e(t).document().write(p8e()(n,e,!0))))}function b8e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Nn),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:o(Kt),blockQuote:o(Oe),characterEscape:ce,characterReference:ce,codeFenced:o(Ze),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ze,s),codeText:o(bt,s),codeTextData:ce,data:ce,codeFlowValue:ce,definition:o(yt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Mt),hardBreakEscape:o(Dt),hardBreakTrailing:o(Dt),htmlFlow:o(en,s),htmlFlowData:ce,htmlText:o(en,s),htmlTextData:ce,image:o(Gn),label:s,link:o(Nn),listItem:o(Un),listItemValue:w,listOrdered:o(Si,v),listUnordered:o(Si),paragraph:o(Ln),reference:Re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Kt),strong:o(Tn),thematicBreak:o(Bn)},exit:{atxHeading:c(),atxHeadingSequence:re,autolink:c(),autolinkEmail:ke,autolinkProtocol:Le,blockQuote:c(),characterEscapeValue:ve,characterReferenceMarkerHexadecimal:ut,characterReferenceMarkerNumeric:ut,characterReferenceValue:kt,characterReference:Ut,codeFenced:c(z),codeFencedFence:U,codeFencedFenceInfo:B,codeFencedFenceMeta:P,codeFlowValue:ve,codeIndented:c(Y),codeText:c(ze),codeTextData:ve,data:ve,definition:c(),definitionDestinationString:te,definitionLabelString:Z,definitionTitleString:X,emphasis:c(),hardBreakEscape:c(Ee),hardBreakTrailing:c(Ee),htmlFlow:c(we),htmlFlowData:ve,htmlText:c(Te),htmlTextData:ve,image:c(Ye),label:gt,labelText:At,lineEnding:ge,link:c(Ie),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:St,resourceDestinationString:Ue,resourceTitleString:De,resource:Ge,setextHeading:c(le),setextHeadingLineSequence:q,setextHeadingText:ne,strong:c(),thematicBreak:c()}};poe(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(je){let H={type:"root",children:[]};const j={stack:[H],tokenStack:[],config:e,enter:a,exit:f,buffer:s,resume:m,data:t},Q=[];let he=-1;for(;++he<je.length;)if(je[he][1].type==="listOrdered"||je[he][1].type==="listUnordered")if(je[he][0]==="enter")Q.push(he);else{const xe=Q.pop();he=r(je,xe,he)}for(he=-1;++he<je.length;){const xe=e[je[he][0]];foe.call(xe,je[he][1].type)&&xe[je[he][1].type].call(Object.assign({sliceSerialize:je[he][2].sliceSerialize},j),je[he][1])}if(j.tokenStack.length>0){const xe=j.tokenStack[j.tokenStack.length-1];(xe[1]||SQ).call(j,void 0,xe[0])}for(H.position={start:ev(je.length>0?je[0][1].start:{line:1,column:1,offset:0}),end:ev(je.length>0?je[je.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<e.transforms.length;)H=e.transforms[he](H)||H;return H}function r(je,H,j){let Q=H-1,he=-1,xe=!1,Ne,Qe,it,vt;for(;++Q<=j;){const $e=je[Q];switch($e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{$e[0]==="enter"?he++:he--,vt=void 0;break}case"lineEndingBlank":{$e[0]==="enter"&&(Ne&&!vt&&!he&&!it&&(it=Q),vt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vt=void 0}if(!he&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||he===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(Ne){let ot=Q;for(Qe=void 0;ot--;){const b=je[ot];if(b[1].type==="lineEnding"||b[1].type==="lineEndingBlank"){if(b[0]==="exit")continue;Qe&&(je[Qe][1].type="lineEndingBlank",xe=!0),b[1].type="lineEnding",Qe=ot}else if(!(b[1].type==="linePrefix"||b[1].type==="blockQuotePrefix"||b[1].type==="blLine truncated
`}]}function w8e(n,e){const t=e.value?e.value+`
`:"",i={},r=e.lang?e.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(o.data={meta:e.meta}),n.patch(e,o),o=n.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},n.patch(e,o),o}function S8e(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function E8e(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function B8e(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=Y2(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,c);const f={type:"element",tagName:"sup",properties:{},children:[c]};return n.patch(e,f),n.applyData(e,f)}function O8e(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function I8e(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function moe(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function T8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return moe(n,e);const r={src:Y2(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function k8e(n,e){const t={src:Y2(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,i),n.applyData(e,i)}function D8e(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,i),n.applyData(e,i)}function R8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return moe(n,e);const r={href:Y2(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function P8e(n,e){const t={href:Y2(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function L8e(n,e,t){const i=n.all(e),r=t?U8e(t):goe(e),o={},s=[];if(typeof e.checked=="boolean"){const m=i[0];let v;m&&m.type==="element"&&m.tagName==="p"?v=m:(v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const m=i[a];(r||a!==0||m.type!=="element"||m.tagName!=="p")&&s.push({type:"text",value:`
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function b8e(n){const i={constructs:EBe([m8e,...(n||{}).extensions||[]]),content:r(PBe),defined:[],document:r(UBe),flow:r(t8e),lazy:{},string:r(r8e),text:r(o8e)};return i;function r(o){return s;function s(a){return g8e(i,o,a)}}}function C8e(n){for(;!ooe(n););return n}const TQ=/[\0\t\n\r]/g;function _8e(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const c=[];let d,m,v,M,B;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),v=0,e="",t&&(o.charCodeAt(0)===65279&&v++,t=void 0);v<o.length;){if(TQ.lastIndex=v,d=TQ.exec(o),M=d&&d.index!==void 0?d.index:o.length,B=o.charCodeAt(M),!d){e=o.slice(v);break}if(B===10&&v===M&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),v<M&&(c.push(o.slice(v,M)),n+=M-v),B){case 0:{c.push(65533),n++;break}case 9:{for(m=Math.ceil(n/4)*4,c.push(-2);n++<m;)c.push(-1);break}case 10:{c.push(-4),n=1;break}default:i=!0,n=1}v=M+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const x8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function M8e(n){return n.replace(x8e,w8e)}function w8e(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return toe(t.slice(o?2:1),o?16:10)}return pK(t)||n}const Aoe={}.hasOwnProperty;function S8e(n,e,t){return typeof e!="string"&&(t=e,e=void 0),E8e(t)(C8e(b8e(t).document().write(_8e()(n,e,!0))))}function E8e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Nn),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:o(Kt),blockQuote:o(Oe),characterEscape:ce,characterReference:ce,codeFenced:o(Ze),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ze,s),codeText:o(bt,s),codeTextData:ce,data:ce,codeFlowValue:ce,definition:o(yt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Mt),hardBreakEscape:o(Dt),hardBreakTrailing:o(Dt),htmlFlow:o(en,s),htmlFlowData:ce,htmlText:o(en,s),htmlTextData:ce,image:o(Gn),label:s,link:o(Nn),listItem:o(Un),listItemValue:M,listOrdered:o(Si,v),listUnordered:o(Si),paragraph:o(Ln),reference:Re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Kt),strong:o(Tn),thematicBreak:o(Bn)},exit:{atxHeading:c(),atxHeadingSequence:ie,autolink:c(),autolinkEmail:ke,autolinkProtocol:Le,blockQuote:c(),characterEscapeValue:ve,characterReferenceMarkerHexadecimal:ut,characterReferenceMarkerNumeric:ut,characterReferenceValue:kt,characterReference:Ut,codeFenced:c(z),codeFencedFence:U,codeFencedFenceInfo:B,codeFencedFenceMeta:P,codeFlowValue:ve,codeIndented:c(V),codeText:c(Fe),codeTextData:ve,data:ve,definition:c(),definitionDestinationString:re,definitionLabelString:Z,definitionTitleString:X,emphasis:c(),hardBreakEscape:c(Ee),hardBreakTrailing:c(Ee),htmlFlow:c(xe),htmlFlowData:ve,htmlText:c(Te),htmlTextData:ve,image:c(Ye),label:mt,labelText:At,lineEnding:ge,link:c(Ie),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:St,resourceDestinationString:Ue,resourceTitleString:De,resource:Ge,setextHeading:c(le),setextHeadingLineSequence:q,setextHeadingText:te,strong:c(),thematicBreak:c()}};hoe(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(je){let H={type:"root",children:[]};const j={stack:[H],tokenStack:[],config:e,enter:a,exit:d,buffer:s,resume:m,data:t},Q=[];let he=-1;for(;++he<je.length;)if(je[he][1].type==="listOrdered"||je[he][1].type==="listUnordered")if(je[he][0]==="enter")Q.push(he);else{const Me=Q.pop();he=r(je,Me,he)}for(he=-1;++he<je.length;){const Me=e[je[he][0]];Aoe.call(Me,je[he][1].type)&&Me[je[he][1].type].call(Object.assign({sliceSerialize:je[he][2].sliceSerialize},j),je[he][1])}if(j.tokenStack.length>0){const Me=j.tokenStack[j.tokenStack.length-1];(Me[1]||kQ).call(j,void 0,Me[0])}for(H.position={start:Jy(je.length>0?je[0][1].start:{line:1,column:1,offset:0}),end:Jy(je.length>0?je[je.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<e.transforms.length;)H=e.transforms[he](H)||H;return H}function r(je,H,j){let Q=H-1,he=-1,Me=!1,Ne,Qe,it,vt;for(;++Q<=j;){const $e=je[Q];switch($e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{$e[0]==="enter"?he++:he--,vt=void 0;break}case"lineEndingBlank":{$e[0]==="enter"&&(Ne&&!vt&&!he&&!it&&(it=Q),vt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vt=void 0}if(!he&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||he===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(Ne){let ot=Q;for(Qe=void 0;ot--;){const b=je[ot];if(b[1].type==="lineEnding"||b[1].type==="lineEndingBlank"){if(b[0]==="exit")continue;Qe&&(je[Qe][1].type="lineEndingBlank",Me=!0),b[1].type="lineEnding",Qe=ot}else if(!(b[1].type==="linePrefix"||b[1].type==="blockQuotePrefix"||b[1].type==="blLine truncated
`}]}function k8e(n,e){const t=e.value?e.value+`
`:"",i={},r=e.lang?e.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(o.data={meta:e.meta}),n.patch(e,o),o=n.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},n.patch(e,o),o}function D8e(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function R8e(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function P8e(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=Y2(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return n.patch(e,d),n.applyData(e,d)}function L8e(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function U8e(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function doe(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function K8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return doe(n,e);const r={src:Y2(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function F8e(n,e){const t={src:Y2(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,i),n.applyData(e,i)}function z8e(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,i),n.applyData(e,i)}function j8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return doe(n,e);const r={href:Y2(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function N8e(n,e){const t={href:Y2(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function G8e(n,e,t){const i=n.all(e),r=t?W8e(t):foe(e),o={},s=[];if(typeof e.checked=="boolean"){const m=i[0];let v;m&&m.type==="element"&&m.tagName==="p"?v=m:(v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const m=i[a];(r||a!==0||m.type!=="element"||m.tagName!=="p")&&s.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!r?s.push(...m.children):s.push(m)}const c=i[i.length-1];c&&(r||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
`});const f={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,f),n.applyData(e,f)}function U8e(n){let e=!1;if(n.type==="list"){e=n.spread||!1;const t=n.children;let i=-1;for(;!e&&++i<t.length;)e=goe(t[i])}return e}function goe(n){const e=n.spread;return e??n.children.length>1}function K8e(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function F8e(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function z8e(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function j8e(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function N8e(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=nK(e.children[1]),c=Zre(e.children[e.children.length-1]);a&&c&&(s.position={start:a,end:c}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function G8e(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let c=-1;const f=[];for(;++c<a;){const v=e.children[c],w={},B=s?s[c]:void 0;B&&(w.align=B);let P={type:"element",tagName:o,properties:w,children:[]};v&&(P.children=n.all(v),n.patch(v,P),P=n.applyData(v,P)),f.push(P)}const m={type:"element",tagName:"tr",properties:{},children:n.wrap(f,!0)};return n.patch(e,m),n.applyData(e,m)}function W8e(n,e){const t={type:"element",tagName:"td",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}const EQ=9,BQ=32;function Q8e(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push(OQ(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push(OQ(e.slice(r),r>0,!1)),o.join("")}function OQ(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===EQ||o===BQ;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===EQ||o===BQ;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function q8e(n,e){const t={type:"text",value:Q8e(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function Y8e(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const V8e={blockquote:x8e,break:M8e,code:w8e,delete:S8e,emphasis:E8e,footnoteReference:B8e,heading:O8e,html:I8e,imageReference:T8e,image:k8e,inlineCode:D8e,linkReference:R8e,link:P8e,listItem:L8e,list:K8e,paragraph:F8e,root:z8e,strong:j8e,table:N8e,tableCell:W8e,tableRow:G8e,text:q8e,thematicBreak:Y8e,toml:Vw,yaml:Vw,definition:Vw,footnoteDefinition:Vw};function Vw(){}const yoe=-1,zB=0,R4=1,h6=2,uK=3,cK=4,AK=5,hK=6,voe=7,boe=8,IQ=typeof self=="object"?self:globalThis,$8e=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case zB:case yoe:return t(s,r);case R4:{const a=t([],r);for(const c of s)a.push(i(c));return a}case h6:{const a=t({},r);for(const[c,f]of s)a[i(c)]=i(f);return a}case uK:return t(new Date(s),r);case cK:{const{source:a,flags:c}=s;return t(new RegExp(a,c),r)}case AK:{const a=t(new Map,r);for(const[c,f]of s)a.set(i(c),i(f));return a}case hK:{const a=t(new Set,r);for(const c of s)a.add(i(c));return a}case voe:{const{name:a,message:c}=s;return t(new IQ[a](c),r)}case boe:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new IQ[o](s),r)};return i},TQ=n=>$8e(new Map,n)(0),Y_="",{toString:H8e}={},{keys:Z8e}=Object,R3=n=>{const e=typeof n;if(e!=="object"||!n)return[zB,e];const t=H8e.call(n).slice(8,-1);switch(t){case"Array":return[R4,Y_];case"Object":return[h6,Y_];case"Date":return[uK,Y_];case"RegExp":return[cK,Y_];case"Map":return[AK,Y_];case"Set":return[hK,Y_];case"DataView":return[R4,t]}return t.includes("Array")?[R4,t]:t.includes("Error")?[voe,t]:[h6,t]},$w=([n,e])=>n===zB&&(e==="function"||e==="symbol"),X8e=(n,e,t,i)=>{const r=(s,a)=>{const c=i.push(s)-1;return t.set(a,c),c},o=s=>{if(t.has(s))return t.get(s);let[a,c]=R3(s);switch(a){case zB:{let m=s;switch(c){case"bigint":a=boe,m=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);m=null;break;case"undefined":return r([yoe],s)}return r([a,m],s)}case R4:{if(c){let w=s;return c==="DataView"?w=new Uint Line truncated
`});const d={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,d),n.applyData(e,d)}function W8e(n){let e=!1;if(n.type==="list"){e=n.spread||!1;const t=n.children;let i=-1;for(;!e&&++i<t.length;)e=foe(t[i])}return e}function foe(n){const e=n.spread;return e??n.children.length>1}function Q8e(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function q8e(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Y8e(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function V8e(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function $8e(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=AK(e.children[1]),c=Vre(e.children[e.children.length-1]);a&&c&&(s.position={start:a,end:c}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function H8e(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let c=-1;const d=[];for(;++c<a;){const v=e.children[c],M={},B=s?s[c]:void 0;B&&(M.align=B);let P={type:"element",tagName:o,properties:M,children:[]};v&&(P.children=n.all(v),n.patch(v,P),P=n.applyData(v,P)),d.push(P)}const m={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(e,m),n.applyData(e,m)}function Z8e(n,e){const t={type:"element",tagName:"td",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}const DQ=9,RQ=32;function X8e(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push(PQ(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push(PQ(e.slice(r),r>0,!1)),o.join("")}function PQ(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===DQ||o===RQ;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===DQ||o===RQ;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function J8e(n,e){const t={type:"text",value:X8e(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function eIe(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const tIe={blockquote:I8e,break:T8e,code:k8e,delete:D8e,emphasis:R8e,footnoteReference:P8e,heading:L8e,html:U8e,imageReference:K8e,image:F8e,inlineCode:z8e,linkReference:j8e,link:N8e,listItem:G8e,list:Q8e,paragraph:q8e,root:Y8e,strong:V8e,table:$8e,tableCell:Z8e,tableRow:H8e,text:J8e,thematicBreak:eIe,toml:qw,yaml:qw,definition:qw,footnoteDefinition:qw};function qw(){}const poe=-1,WB=0,D4=1,f6=2,yK=3,vK=4,bK=5,CK=6,moe=7,goe=8,LQ=typeof self=="object"?self:globalThis,nIe=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case WB:case poe:return t(s,r);case D4:{const a=t([],r);for(const c of s)a.push(i(c));return a}case f6:{const a=t({},r);for(const[c,d]of s)a[i(c)]=i(d);return a}case yK:return t(new Date(s),r);case vK:{const{source:a,flags:c}=s;return t(new RegExp(a,c),r)}case bK:{const a=t(new Map,r);for(const[c,d]of s)a.set(i(c),i(d));return a}case CK:{const a=t(new Set,r);for(const c of s)a.add(i(c));return a}case moe:{const{name:a,message:c}=s;return t(new LQ[a](c),r)}case goe:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new LQ[o](s),r)};return i},UQ=n=>nIe(new Map,n)(0),q_="",{toString:iIe}={},{keys:rIe}=Object,R3=n=>{const e=typeof n;if(e!=="object"||!n)return[WB,e];const t=iIe.call(n).slice(8,-1);switch(t){case"Array":return[D4,q_];case"Object":return[f6,q_];case"Date":return[yK,q_];case"RegExp":return[vK,q_];case"Map":return[bK,q_];case"Set":return[CK,q_];case"DataView":return[D4,t]}return t.includes("Array")?[D4,t]:t.includes("Error")?[moe,t]:[f6,t]},Yw=([n,e])=>n===WB&&(e==="function"||e==="symbol"),oIe=(n,e,t,i)=>{const r=(s,a)=>{const c=i.push(s)-1;return t.set(a,c),c},o=s=>{if(t.has(s))return t.get(s);let[a,c]=R3(s);switch(a){case WB:{let m=s;switch(c){case"bigint":a=goe,m=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);m=null;break;case"undefined":return r([poe],s)}return r([a,m],s)}case D4:{if(c){let M=s;return c==="DataView"?M=new Uint Line truncated
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:`
`}]}}const Coe=(function(n){if(n==null)return oIe;if(typeof n=="function")return jB(n);if(typeof n=="object")return Array.isArray(n)?nIe(n):iIe(n);if(typeof n=="string")return rIe(n);throw new Error("Expected function, string, or object as test")});function nIe(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=Coe(n[t]);return jB(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function iIe(n){const e=n;return jB(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function rIe(n){return jB(e);function e(t){return t&&t.type===n}}function jB(n){return e;function e(t,i,r){return!!(sIe(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function oIe(){return!0}function sIe(n){return n!==null&&typeof n=="object"&&"type"in n}const _oe=[],aIe=!0,DQ=!1,lIe="skip";function uIe(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=Coe(r),s=i?-1:1;a(n,void 0,[])();function a(c,f,m){const v=c&&typeof c=="object"?c:{};if(typeof v.type=="string"){const B=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(c.type+(B?"<"+B+">":""))+")"})}return w;function w(){let B=_oe,P,U,z;if((!e||o(c,f,m[m.length-1]||void 0))&&(B=cIe(t(c,m)),B[0]===DQ))return B;if("children"in c&&c.children){const Y=c;if(Y.children&&B[0]!==lIe)for(U=(i?Y.children.length:-1)+s,z=m.concat(Y);U>-1&&U<Y.children.length;){const Z=Y.children[U];if(P=a(Z,U,z)(),P[0]===DQ)return P;U=typeof P[1]=="number"?P[1]:U+s}}return B}}}function cIe(n){return Array.isArray(n)?n:typeof n=="number"?[aIe,n]:n==null?_oe:[n]}function xoe(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),uIe(n,o,a,r);function a(c,f){const m=f[f.length-1],v=m?m.children.indexOf(c):void 0;return s(c,v,m)}}const tP={}.hasOwnProperty,AIe={};function hIe(n,e){const t=e||AIe,i=new Map,r=new Map,o=new Map,s={...V8e,...t.handlers},a={all:f,applyData:fIe,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:c,options:t,patch:dIe,wrap:mIe};return xoe(n,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const v=m.type==="definition"?i:r,w=String(m.identifier).toUpperCase();v.has(w)||v.set(w,m)}}),a;function c(m,v){const w=m.type,B=a.handlers[w];if(tP.call(a.handlers,w)&&B)return B(a,m,v);if(a.options.passThrough&&a.options.passThrough.includes(w)){if("children"in m){const{children:U,...z}=m,Y=d6(z);return Y.children=a.all(m),Y}return d6(m)}return(a.options.unknownHandler||pIe)(a,m,v)}function f(m){const v=[];if("children"in m){const w=m.children;let B=-1;for(;++B<w.length;){const P=a.one(w[B],m);if(P){if(B&&w[B-1].type==="break"&&(!Array.isArray(P)&&P.type==="text"&&(P.value=RQ(P.value)),!Array.isArray(P)&&P.type==="element")){const U=P.children[0];U&&U.type==="text"&&(U.value=RQ(U.value))}Array.isArray(P)?v.push(...P):v.push(P)}}}return v}}function dIe(n,e){n.position&&(e.position=H6e(n))}function fIe(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,d6(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function pIe(n,e){const t=e.data||{},i="value"in e&&!(tP.call(t,"hProperties")||tP.call(t,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function mIe(n,e){const t=[];let i=-1;for(e&&t.push({type:"text",value:`
`}]}}const yoe=(function(n){if(n==null)return hIe;if(typeof n=="function")return QB(n);if(typeof n=="object")return Array.isArray(n)?uIe(n):cIe(n);if(typeof n=="string")return AIe(n);throw new Error("Expected function, string, or object as test")});function uIe(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=yoe(n[t]);return QB(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function cIe(n){const e=n;return QB(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function AIe(n){return QB(e);function e(t){return t&&t.type===n}}function QB(n){return e;function e(t,i,r){return!!(dIe(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function hIe(){return!0}function dIe(n){return n!==null&&typeof n=="object"&&"type"in n}const voe=[],fIe=!0,FQ=!1,pIe="skip";function mIe(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=yoe(r),s=i?-1:1;a(n,void 0,[])();function a(c,d,m){const v=c&&typeof c=="object"?c:{};if(typeof v.type=="string"){const B=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(M,"name",{value:"node ("+(c.type+(B?"<"+B+">":""))+")"})}return M;function M(){let B=voe,P,U,z;if((!e||o(c,d,m[m.length-1]||void 0))&&(B=gIe(t(c,m)),B[0]===FQ))return B;if("children"in c&&c.children){const V=c;if(V.children&&B[0]!==pIe)for(U=(i?V.children.length:-1)+s,z=m.concat(V);U>-1&&U<V.children.length;){const Z=V.children[U];if(P=a(Z,U,z)(),P[0]===FQ)return P;U=typeof P[1]=="number"?P[1]:U+s}}return B}}}function gIe(n){return Array.isArray(n)?n:typeof n=="number"?[fIe,n]:n==null?voe:[n]}function boe(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),mIe(n,o,a,r);function a(c,d){const m=d[d.length-1],v=m?m.children.indexOf(c):void 0;return s(c,v,m)}}const oP={}.hasOwnProperty,yIe={};function vIe(n,e){const t=e||yIe,i=new Map,r=new Map,o=new Map,s={...tIe,...t.handlers},a={all:d,applyData:CIe,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:c,options:t,patch:bIe,wrap:xIe};return boe(n,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const v=m.type==="definition"?i:r,M=String(m.identifier).toUpperCase();v.has(M)||v.set(M,m)}}),a;function c(m,v){const M=m.type,B=a.handlers[M];if(oP.call(a.handlers,M)&&B)return B(a,m,v);if(a.options.passThrough&&a.options.passThrough.includes(M)){if("children"in m){const{children:U,...z}=m,V=p6(z);return V.children=a.all(m),V}return p6(m)}return(a.options.unknownHandler||_Ie)(a,m,v)}function d(m){const v=[];if("children"in m){const M=m.children;let B=-1;for(;++B<M.length;){const P=a.one(M[B],m);if(P){if(B&&M[B-1].type==="break"&&(!Array.isArray(P)&&P.type==="text"&&(P.value=zQ(P.value)),!Array.isArray(P)&&P.type==="element")){const U=P.children[0];U&&U.type==="text"&&(U.value=zQ(U.value))}Array.isArray(P)?v.push(...P):v.push(P)}}}return v}}function bIe(n,e){n.position&&(e.position=iBe(n))}function CIe(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,p6(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function _Ie(n,e){const t=e.data||{},i="value"in e&&!(oP.call(t,"hProperties")||oP.call(t,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function xIe(n,e){const t=[];let i=-1;for(e&&t.push({type:"text",value:`
`});++i<n.length;)i&&t.push({type:"text",value:`
`}),t.push(n[i]);return e&&n.length>0&&t.push({type:"text",value:`
`}),t}function RQ(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function PQ(n,e){const t=hIe(n,e),i=t.one(n,void 0),r=tIe(t),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
`},r),o}function gIe(n,e){return n&&"run"in n?async function(t,i){const r=PQ(t,{file:i,...e});await n.run(r,i)}:function(t,i){return PQ(t,{file:i,...n||e})}}function LQ(n){if(n)throw n}var kI,UQ;function yIe(){if(UQ)return kI;UQ=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(f){return typeof Array.isArray=="function"?Array.isArray(f):e.call(f)==="[object Array]"},o=function(f){if(!f||e.call(f)!=="[object Object]")return!1;var m=n.call(f,"constructor"),v=f.constructor&&f.constructor.prototype&&n.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!v)return!1;var w;for(w in f);return typeof w>"u"||n.call(f,w)},s=function(f,m){t&&m.name==="__proto__"?t(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},a=function(f,m){if(m==="__proto__")if(n.call(f,m)){if(i)return i(f,m).value}else return;return f[m]};return kI=function c(){var f,m,v,w,B,P,U=arguments[0],z=1,Y=arguments.length,Z=!1;for(typeof U=="boolean"&&(Z=U,U=arguments[1]||{},z=2),(U==null||typeof U!="object"&&typeof U!="function")&&(U={});z<Y;++z)if(f=arguments[z],f!=null)for(m in f)v=a(U,m),w=a(f,m),U!==w&&(Z&&w&&(o(w)||(B=r(w)))?(B?(B=!1,P=v&&r(v)?v:[]):P=v&&o(v)?v:{},s(U,{name:m,newValue:c(Z,P,w)})):typeof w<"u"&&s(U,{name:m,newValue:w}));return U},kI}var vIe=yIe();const DI=bu(vIe);function nP(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function bIe(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(c,...f){const m=n[++o];let v=-1;if(c){s(c);return}for(;++v<r.length;)(f[v]===null||f[v]===void 0)&&(f[v]=r[v]);r=f,m?CIe(m,a)(...f):s(null,...f)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function CIe(n,e){let t;return i;function i(...s){const a=n.length>s.length;let c;a&&s.push(r);try{c=n.apply(this,s)}catch(f){const m=f;if(a&&t)throw m;return r(m)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,r):c instanceof Error?r(c):o(c))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const Vg={basename:_Ie,dirname:xIe,extname:MIe,join:wIe,sep:"/"};function _Ie(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');R5(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function xIe(n){if(R5(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function MIe(n){R5(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function wIe(...n){let e=-1,t;for(;++e<n.length;)R5(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":SIe(t)}function SIe(n){R5(n);const e=n.codePointAt(0)===47;let t=EIe(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function EIe(n,e){let t="",i=0,r=-1,o=0,s=-1,a,c;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function R5(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const BIe={cwd:OIe};function OIe(){return"/"}function iP(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function IIe(n){if(typeof n=="string")n=new URL(n);else if(!iP(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return TIe(n)}function TIe(nLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i7e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r7e=YB(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,c=a===void 0?!1:a;qB(this,n),qa(this,"expanded",void 0),qa(this,"allowMultipleExpanded",void 0),qa(this,"allowZeroExpanded",void 0),qa(this,"toggleExpanded",function(f){if(t.isItemDisabled(f))return t;var m=t.isItemExpanded(f);return m?t.augment({expanded:t.expanded.filter(function(v){return v!==f})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(ZTe(t.expanded),[f]):[f]})}),qa(this,"isItemDisabled",function(f){var m=t.isItemExpanded(f),v=t.expanded.length===1;return!!(m&&!t.allowZeroExpanded&&v)}),qa(this,"isItemExpanded",function(f){return t.expanded.indexOf(f)!==-1}),qa(this,"getPanelAttributes",function(f,m){var v=m??t.isItemExpanded(f);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!v:void 0,"aria-labelledby":t.getButtonId(f),id:t.getPanelId(f),hidden:v?void 0:!0}}),qa(this,"getHeadingAttributes",function(){return{role:"heading"}}),qa(this,"getButtonAttributes",function(f,m){var v=m??t.isItemExpanded(f),w=t.isItemDisabled(f);return{id:t.getButtonId(f),"aria-disabled":w,"aria-expanded":v,"aria-controls":t.getPanelId(f),role:"button",tabIndex:0}}),qa(this,"getPanelId",function(f){return"accordion__panel-".concat(f)}),qa(this,"getButtonId",function(f){return"accordion__heading-".concat(f)}),qa(this,"augment",function(f){return new n(lP({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},f))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=c}),Voe=wt.createContext(null),$oe=(function(n){IK(t,n);var e=TK(t);function t(){var i;qB(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),qa(_m(i),"state",new r7e({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),qa(_m(i),"toggleExpanded",function(a){i.setState(function(c){return c.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),qa(_m(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),qa(_m(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),qa(_m(i),"getPanelAttributes",function(a,c){return i.state.getPanelAttributes(a,c)}),qa(_m(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),qa(_m(i),"getButtonAttributes",function(a,c){return i.state.getButtonAttributes(a,c)}),i}return YB(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return wt.createElement(Voe.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t})(wt.PureComponent);qa($oe,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Hoe=(function(n){IK(t,n);var e=TK(t);function t(){var i;qB(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),qa(_m(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return YB(t,[{key:"render",value:function(){return wt.createElement(Voe.Consumer,null,this.renderChildren)}}]),t})(wt.PureComponent),o7e=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],s7e=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,c=VB(e,o7e);return wt.createElement($oe,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},wt.createElement("div",B0({"data-accordion-component":"Accordion",className:i},c)))},AP;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(AP||(AP={}));var Zoe=AP,JI=0;function a7e(){var n=JI;return JI=JI+1,"raa-".concat(n)}var l7e=wt.useId||a7e,u7e=/[\u0009\u000a\u000c\u000d\u0020]/g;function LM(n){return n===""||u7e.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var Xoe=wt.createContext(null),c7e=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(f){var m=o??f.isItemExpanded(i),v=f.isItemDisabled(i),w=f.getPanelAttributes(i,o),B=f.getHeadingAttributes(i),P=f.getButtonAttributes(i,o);return wt.createElement(Xoe.Provider,{value:{uuid:i,expanded:m,disabled:v,toggleExpanded:s,panelAttributes:w,headingAttributes:B,buttonAttributes:P}},t)};return wt.creat Line truncated
`}),t}function zQ(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function jQ(n,e){const t=vIe(n,e),i=t.one(n,void 0),r=lIe(t),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
`},r),o}function MIe(n,e){return n&&"run"in n?async function(t,i){const r=jQ(t,{file:i,...e});await n.run(r,i)}:function(t,i){return jQ(t,{file:i,...n||e})}}function NQ(n){if(n)throw n}var KI,GQ;function wIe(){if(GQ)return KI;GQ=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(d){return typeof Array.isArray=="function"?Array.isArray(d):e.call(d)==="[object Array]"},o=function(d){if(!d||e.call(d)!=="[object Object]")return!1;var m=n.call(d,"constructor"),v=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!v)return!1;var M;for(M in d);return typeof M>"u"||n.call(d,M)},s=function(d,m){t&&m.name==="__proto__"?t(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},a=function(d,m){if(m==="__proto__")if(n.call(d,m)){if(i)return i(d,m).value}else return;return d[m]};return KI=function c(){var d,m,v,M,B,P,U=arguments[0],z=1,V=arguments.length,Z=!1;for(typeof U=="boolean"&&(Z=U,U=arguments[1]||{},z=2),(U==null||typeof U!="object"&&typeof U!="function")&&(U={});z<V;++z)if(d=arguments[z],d!=null)for(m in d)v=a(U,m),M=a(d,m),U!==M&&(Z&&M&&(o(M)||(B=r(M)))?(B?(B=!1,P=v&&r(v)?v:[]):P=v&&o(v)?v:{},s(U,{name:m,newValue:c(Z,P,M)})):typeof M<"u"&&s(U,{name:m,newValue:M}));return U},KI}var SIe=wIe();const FI=vu(SIe);function sP(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function EIe(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(c,...d){const m=n[++o];let v=-1;if(c){s(c);return}for(;++v<r.length;)(d[v]===null||d[v]===void 0)&&(d[v]=r[v]);r=d,m?BIe(m,a)(...d):s(null,...d)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function BIe(n,e){let t;return i;function i(...s){const a=n.length>s.length;let c;a&&s.push(r);try{c=n.apply(this,s)}catch(d){const m=d;if(a&&t)throw m;return r(m)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,r):c instanceof Error?r(c):o(c))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const $0={basename:OIe,dirname:IIe,extname:TIe,join:kIe,sep:"/"};function OIe(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');DM(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function IIe(n){if(DM(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function TIe(n){DM(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function kIe(...n){let e=-1,t;for(;++e<n.length;)DM(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":DIe(t)}function DIe(n){DM(n);const e=n.codePointAt(0)===47;let t=RIe(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function RIe(n,e){let t="",i=0,r=-1,o=0,s=-1,a,c;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function DM(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const PIe={cwd:LIe};function LIe(){return"/"}function aP(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function UIe(n){if(typeof n=="string")n=new URL(n);else if(!aP(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return KIe(n)}function KIe(nLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c7e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A7e=ZB(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,c=a===void 0?!1:a;HB(this,n),Ya(this,"expanded",void 0),Ya(this,"allowMultipleExpanded",void 0),Ya(this,"allowZeroExpanded",void 0),Ya(this,"toggleExpanded",function(d){if(t.isItemDisabled(d))return t;var m=t.isItemExpanded(d);return m?t.augment({expanded:t.expanded.filter(function(v){return v!==d})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(r7e(t.expanded),[d]):[d]})}),Ya(this,"isItemDisabled",function(d){var m=t.isItemExpanded(d),v=t.expanded.length===1;return!!(m&&!t.allowZeroExpanded&&v)}),Ya(this,"isItemExpanded",function(d){return t.expanded.indexOf(d)!==-1}),Ya(this,"getPanelAttributes",function(d,m){var v=m??t.isItemExpanded(d);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!v:void 0,"aria-labelledby":t.getButtonId(d),id:t.getPanelId(d),hidden:v?void 0:!0}}),Ya(this,"getHeadingAttributes",function(){return{role:"heading"}}),Ya(this,"getButtonAttributes",function(d,m){var v=m??t.isItemExpanded(d),M=t.isItemDisabled(d);return{id:t.getButtonId(d),"aria-disabled":M,"aria-expanded":v,"aria-controls":t.getPanelId(d),role:"button",tabIndex:0}}),Ya(this,"getPanelId",function(d){return"accordion__panel-".concat(d)}),Ya(this,"getButtonId",function(d){return"accordion__heading-".concat(d)}),Ya(this,"augment",function(d){return new n(hP({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},d))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=c}),Qoe=wt.createContext(null),qoe=(function(n){FK(t,n);var e=zK(t);function t(){var i;HB(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Ya(_m(i),"state",new A7e({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),Ya(_m(i),"toggleExpanded",function(a){i.setState(function(c){return c.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),Ya(_m(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),Ya(_m(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),Ya(_m(i),"getPanelAttributes",function(a,c){return i.state.getPanelAttributes(a,c)}),Ya(_m(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),Ya(_m(i),"getButtonAttributes",function(a,c){return i.state.getButtonAttributes(a,c)}),i}return ZB(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return wt.createElement(Qoe.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t})(wt.PureComponent);Ya(qoe,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Yoe=(function(n){FK(t,n);var e=zK(t);function t(){var i;HB(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Ya(_m(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return ZB(t,[{key:"render",value:function(){return wt.createElement(Qoe.Consumer,null,this.renderChildren)}}]),t})(wt.PureComponent),h7e=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],d7e=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,c=XB(e,h7e);return wt.createElement(qoe,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},wt.createElement("div",Eg({"data-accordion-component":"Accordion",className:i},c)))},pP;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(pP||(pP={}));var Voe=pP,oT=0;function f7e(){var n=oT;return oT=oT+1,"raa-".concat(n)}var p7e=wt.useId||f7e,m7e=/[\u0009\u000a\u000c\u000d\u0020]/g;function P5(n){return n===""||m7e.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var $oe=wt.createContext(null),g7e=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(d){var m=o??d.isItemExpanded(i),v=d.isItemDisabled(i),M=d.getPanelAttributes(i,o),B=d.getHeadingAttributes(i),P=d.getButtonAttributes(i,o);return wt.createElement($oe.Provider,{value:{uuid:i,expanded:m,disabled:v,toggleExpanded:s,panelAttributes:M,headingAttributes:B,buttonAttributes:P}},t)};return wt.creat 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.”
`,tse=(function(n){IK(t,n);var e=TK(t);function t(){var i;qB(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),qa(_m(i),"ref",void 0),qa(_m(i),"setRef",function(a){i.ref=a}),i}return YB(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return wt.createElement("div",B0({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(C7e)}}]),t})(wt.PureComponent);qa(tse,"defaultProps",b7e);var nse=function(e){return wt.createElement($B,null,function(t){var i=t.headingAttributes;return e.id&&LM(e.id),wt.createElement(tse,B0({},e,i))})};nse.displayName=Zoe.AccordionItemHeading;var _7e=["className","region","id"],x7e=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=VB(e,_7e),a=function(f){var m=f.panelAttributes;o&&LM(o);var v=lP(lP({},m),{},{"aria-labelledby":r?m["aria-labelledby"]:void 0});return wt.createElement("div",B0({"data-accordion-component":"AccordionItemPanel",className:i},s,v,{role:r?"region":void 0}))};return wt.createElement($B,null,a)};function UM(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="ee4be309accf3b6f15b0a988cbdadd67c7132608",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:18},end:{line:3,column:19}},loc:{start:{line:3,column:29},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,OAAO,eAAsC;AAM7C,MAAM,YAAsC,CAAC,UAAU;AACrD,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee4be309accf3b6f15b0a988cbdadd67c7132608"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return UM=function(){return s},s}UM();UM().s[0]++;const ZB=n=>(UM().f[0]++,UM().s[1]++,oe.jsx(fre,{...n}));function KM(n){return Co({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:[]}]})(n)}function XB(n){return Co({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:[]}]})(n)}function MC(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return MC=function(){return s},s}MC();const kK=(MC().s[0]++,["all","any","none"]);MC().s[1]++;const M7e=(MC().s[2]++,Object.keys(Wr.filter_operator.values).filter(n=>(MC().f[0]++,MC().s[3]++,kK.indexOf(n)<0)));function Zi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="d18e3b448d830733ac17bcacd45f7c08e364baa2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,col Line truncated
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:te.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+te.r+","+te.g+","+te.b+`, 0) 0%,
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)"},pointer:{left:0,top:te.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:re.alpha},i.default.createElement("div",{style:re.checkboard},i.default.createElement(f.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:re.gradient}),i.default.createElement("div",{style:re.container,ref:function(q){return X.container=q},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:re.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:re.slider}))))}}]),Y})(t.PureComponent||t.Component);return ex.default=U,ex}var nx={},F$;function W9e(){if(F$)return nx;F$=1,Object.defineProperty(nx,"__esModule",{value:!0}),nx.EditableInput=void 0;var n=(function(){function Z(X,te){for(var re=0;re<te.length;re++){var ne=te[re];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(X,ne.key,ne)}}return function(X,te,re){return te&&Z(X.prototype,te),re&&Z(X,re),X}})(),e=_a(),t=o(e),i=Ym(),r=o(i);function o(Z){return Z&&Z.__esModule?Z:{default:Z}}function s(Z,X,te){return X in Z?Object.defineProperty(Z,X,{value:te,enumerable:!0,configurable:!0,writable:!0}):Z[X]=te,Z}function a(Z,X){if(!(Z instanceof X))throw new TypeError("Cannot call a class as a function")}function c(Z,X){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:Z}function f(Z,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);Z.prototype=Object.create(X&&X.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,X):Z.__proto__=X)}var m=1,v=38,w=40,B=[v,w],P=function(X){return B.indexOf(X)>-1},U=function(X){return Number(String(X).replace(/%/g,""))},z=1,Y=nx.EditableInput=(function(Z){f(X,Z);function X(te){a(this,X);var re=c(this,(X.__proto__||Object.getPrototypeOf(X)).call(this));return re.handleBlur=function(){re.state.blurValue&&re.setState({value:re.state.blurValue,blurValue:null})},re.handleChange=function(ne){re.setUpdatedValue(ne.target.value,ne)},re.handleKeyDown=function(ne){var q=U(ne.target.value);if(!isNaN(q)&&P(ne.keyCode)){var le=re.getArrowOffset(),ce=ne.keyCode===v?q+le:q-le;re.setUpdatedValue(ce,ne)}},re.handleDrag=function(ne){if(re.props.dragLabel){var q=Math.round(re.props.value+ne.movementX);q>=0&&q<=re.props.dragMax&&re.props.onChange&&re.props.onChange(re.getValueObjectWithLabel(q),ne)}},re.handleMouseDown=function(ne){re.props.dragLabel&&(ne.preventDefault(),re.handleDrag(ne),window.addEventListener("mousemove",re.handleDrag),window.addEventListener("mouseup",re.handleMouseUp))},re.handleMouseUp=function(){re.unbindEventListeners()},re.unbindEventListeners=function(){window.removeEventListener("mousemove",re.handleDrag),window.removeEventListener("mouseup",re.handleMouseUp)},re.state={value:String(te.value).toUpperCase(),blurValue:String(te.value).toUpperCase()},re.inputId="rc-editable-input-"+z++,re}return n(X,[{key:"componentDidUpdate",value:function(re,ne){this.props.value!==this.state.value&&(re.value!==this.props.value||ne.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(re){return s({},this.props.label,re)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||m}},{key:"setUpdatedValue",value:function(re,ne){var q=this.props.label?this.getValueObjectWithLabel(re):re;this.props.onChange&&this.props.onChange(q,ne),this.setState({value:re})}},{key:"render",value:function(){var re=this,ne=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ne.wrap},t.default.createElement("input",{id:this.inputId,style:ne.input,ref:function(le){return re.input=le},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:ne.label,onMouseDown:this.handleMouseDown},this Line truncated
`,Xoe=(function(n){FK(t,n);var e=zK(t);function t(){var i;HB(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Ya(_m(i),"ref",void 0),Ya(_m(i),"setRef",function(a){i.ref=a}),i}return ZB(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return wt.createElement("div",Eg({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(B7e)}}]),t})(wt.PureComponent);Ya(Xoe,"defaultProps",E7e);var Joe=function(e){return wt.createElement(JB,null,function(t){var i=t.headingAttributes;return e.id&&P5(e.id),wt.createElement(Xoe,Eg({},e,i))})};Joe.displayName=Voe.AccordionItemHeading;var O7e=["className","region","id"],I7e=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=XB(e,O7e),a=function(d){var m=d.panelAttributes;o&&P5(o);var v=hP(hP({},m),{},{"aria-labelledby":r?m["aria-labelledby"]:void 0});return wt.createElement("div",Eg({"data-accordion-component":"AccordionItemPanel",className:i},s,v,{role:r?"region":void 0}))};return wt.createElement(JB,null,a)};function L5(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="ee4be309accf3b6f15b0a988cbdadd67c7132608",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:18},end:{line:3,column:19}},loc:{start:{line:3,column:29},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,OAAO,eAAsC;AAM7C,MAAM,YAAsC,CAAC,UAAU;AACrD,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee4be309accf3b6f15b0a988cbdadd67c7132608"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return L5=function(){return s},s}L5();L5().s[0]++;const tO=n=>(L5().f[0]++,L5().s[1]++,oe.jsx(Are,{...n}));function U5(n){return _o({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:[]}]})(n)}function nO(n){return _o({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:[]}]})(n)}function MC(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return MC=function(){return s},s}MC();const jK=(MC().s[0]++,["all","any","none"]);MC().s[1]++;const T7e=(MC().s[2]++,Object.keys(Wr.filter_operator.values).filter(n=>(MC().f[0]++,MC().s[3]++,jK.indexOf(n)<0)));function Zi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="d18e3b448d830733ac17bcacd45f7c08e364baa2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,col Line truncated
rgba(`+re.r+","+re.g+","+re.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:re.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("+re.r+","+re.g+","+re.b+`, 0) 0%,
rgba(`+re.r+","+re.g+","+re.b+", 1) 100%)"},pointer:{left:0,top:re.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:ie.alpha},i.default.createElement("div",{style:ie.checkboard},i.default.createElement(d.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:ie.gradient}),i.default.createElement("div",{style:ie.container,ref:function(q){return X.container=q},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:ie.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:ie.slider}))))}}]),V})(t.PureComponent||t.Component);return J_.default=U,J_}var tx={},Q$;function Z9e(){if(Q$)return tx;Q$=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.EditableInput=void 0;var n=(function(){function Z(X,re){for(var ie=0;ie<re.length;ie++){var te=re[ie];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(X,te.key,te)}}return function(X,re,ie){return re&&Z(X.prototype,re),ie&&Z(X,ie),X}})(),e=_a(),t=o(e),i=Vm(),r=o(i);function o(Z){return Z&&Z.__esModule?Z:{default:Z}}function s(Z,X,re){return X in Z?Object.defineProperty(Z,X,{value:re,enumerable:!0,configurable:!0,writable:!0}):Z[X]=re,Z}function a(Z,X){if(!(Z instanceof X))throw new TypeError("Cannot call a class as a function")}function c(Z,X){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:Z}function d(Z,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);Z.prototype=Object.create(X&&X.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,X):Z.__proto__=X)}var m=1,v=38,M=40,B=[v,M],P=function(X){return B.indexOf(X)>-1},U=function(X){return Number(String(X).replace(/%/g,""))},z=1,V=tx.EditableInput=(function(Z){d(X,Z);function X(re){a(this,X);var ie=c(this,(X.__proto__||Object.getPrototypeOf(X)).call(this));return ie.handleBlur=function(){ie.state.blurValue&&ie.setState({value:ie.state.blurValue,blurValue:null})},ie.handleChange=function(te){ie.setUpdatedValue(te.target.value,te)},ie.handleKeyDown=function(te){var q=U(te.target.value);if(!isNaN(q)&&P(te.keyCode)){var le=ie.getArrowOffset(),ce=te.keyCode===v?q+le:q-le;ie.setUpdatedValue(ce,te)}},ie.handleDrag=function(te){if(ie.props.dragLabel){var q=Math.round(ie.props.value+te.movementX);q>=0&&q<=ie.props.dragMax&&ie.props.onChange&&ie.props.onChange(ie.getValueObjectWithLabel(q),te)}},ie.handleMouseDown=function(te){ie.props.dragLabel&&(te.preventDefault(),ie.handleDrag(te),window.addEventListener("mousemove",ie.handleDrag),window.addEventListener("mouseup",ie.handleMouseUp))},ie.handleMouseUp=function(){ie.unbindEventListeners()},ie.unbindEventListeners=function(){window.removeEventListener("mousemove",ie.handleDrag),window.removeEventListener("mouseup",ie.handleMouseUp)},ie.state={value:String(re.value).toUpperCase(),blurValue:String(re.value).toUpperCase()},ie.inputId="rc-editable-input-"+z++,ie}return n(X,[{key:"componentDidUpdate",value:function(ie,te){this.props.value!==this.state.value&&(ie.value!==this.props.value||te.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(ie){return s({},this.props.label,ie)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||m}},{key:"setUpdatedValue",value:function(ie,te){var q=this.props.label?this.getValueObjectWithLabel(ie):ie;this.props.onChange&&this.props.onChange(q,te),this.setState({value:ie})}},{key:"render",value:function(){var ie=this,te=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:te.wrap},t.default.createElement("input",{id:this.inputId,style:te.input,ref:function(le){return ie.input=le},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:te.label,onMouseDown:this.handleMouseDown},this Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -924,8 +924,8 @@ 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%);
}
`),t.default.createElement("div",{style:X.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:X.slider}))))}}]),P})(e.PureComponent||e.Component);return ix.default=w,ix}var rx={},N$;function Y9e(){if(N$)return rx;N$=1,Object.defineProperty(rx,"__esModule",{value:!0}),rx.Raised=void 0;var n=_a(),e=c(n),t=V1(),i=c(t),r=Ym(),o=c(r),s=Pse(),a=c(s);function c(m){return m&&m.__esModule?m:{default:m}}var f=rx.Raised=function(v){var w=v.zDepth,B=v.radius,P=v.background,U=v.children,z=v.styles,Y=z===void 0?{}:z,Z=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+w+"px "+w*4+"px rgba(0,0,0,.24)",borderRadius:B,background:P}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},Y),{"zDepth-1":w===1});return e.default.createElement("div",{style:Z.wrap},e.default.createElement("div",{style:Z.bg}),e.default.createElement("div",{style:Z.content},U))};return f.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},f.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},rx.default=f,rx}var ox={},c9,G$;function V9e(){if(G$)return c9;G$=1;var n=qm(),e=function(){return n.Date.now()};return c9=e,c9}var A9,W$;function $9e(){if(W$)return A9;W$=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return A9=e,A9}var h9,Q$;function H9e(){if(Q$)return h9;Q$=1;var n=$9e(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return h9=t,h9}var d9,q$;function Z9e(){if(q$)return d9;q$=1;var n=H9e(),e=Op(),t=lO(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(f){if(typeof f=="number")return f;if(t(f))return i;if(e(f)){var m=typeof f.valueOf=="function"?f.valueOf():f;f=e(m)?m+"":m}if(typeof f!="string")return f===0?f:+f;f=n(f);var v=o.test(f);return v||s.test(f)?a(f.slice(2),v?2:8):r.test(f)?i:+f}return d9=c,d9}var f9,Y$;function Lse(){if(Y$)return f9;Y$=1;var n=Op(),e=V9e(),t=Z9e(),i="Expected a function",r=Math.max,o=Math.min;function s(a,c,f){var m,v,w,B,P,U,z=0,Y=!1,Z=!1,X=!0;if(typeof a!="function")throw new TypeError(i);c=t(c)||0,n(f)&&(Y=!!f.leading,Z="maxWait"in f,w=Z?r(t(f.maxWait)||0,c):w,X="trailing"in f?!!f.trailing:X);function te(we){var Te=m,ze=v;return m=v=void 0,z=we,B=a.apply(ze,Te),B}function re(we){return z=we,P=setTimeout(le,c),Y?te(we):B}function ne(we){var Te=we-U,ze=we-z,Ie=c-Te;return Z?o(Ie,w-ze):Ie}function q(we){var Te=we-U,ze=we-z;return U===void 0||Te>=c||Te<0||Z&&ze>=w}function le(){var we=e();if(q(we))return ce(we);P=setTimeout(le,ne(we))}function ce(we){return P=void 0,X&&m?te(we):(m=v=void 0,B)}function ve(){P!==void 0&&clearTimeout(P),z=0,m=U=v=P=void 0}function ge(){return P===void 0?B:ce(e())}function Ee(){var we=e(),Te=q(we);if(m=arguments,v=this,U=we,Te){if(P===void 0)return re(U);if(Z)return clearTimeout(P),P=setTimeout(le,c),te(U)}return P===void 0&&(P=setTimeout(le,c)),B}return Ee.cancel=ve,Ee.flush=ge,Ee}return f9=s,f9}var p9,V$;function X9e(){if(V$)return p9;V$=1;var n=Lse(),e=Op(),t="Expected a function";function i(r,o,s){var a=!0,c=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),n(r,o,{leading:a,maxWait:o,trailing:c})}return p9=i,p9}var sS={},$$;function J9e(){return $$||($$=1,Object.defineProperty(sS,"__esModule",{value:!0}),sS.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=a-(i.getBoundingClientRect().left+window.pageXOffset),m=c-(i.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>o&&(f=o),m<0?m=0:m>s&&(m=s);var v=f/o,w=1-m/s;return{h:t.h,s:v,v:w,a:t.a,source:"hsv"}}),sS}var H$;function eDe(){if(H$)return ox;H$=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.Saturation=void 0;var n=(function(){function U(z,Y){for(var Z=0;Z<Y.length;Z++){var X=Y[Z];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(z,X.key,X)}}return function(z,Y,Z){return Y&&U(z.prototype,Y),Z&&U(z,Z),z}})(),e=_a(),t=m(e),i=Ym(),r=m(i),o=X9e(),s=m(o),a=J9e(),c=f(a);function f(U){if(U&&U.__esModule)return U;var z={};if(U!=null)for(var Y in U)Object.prototype.hasOwnProperty.call(U,Y)&&(z[Y]=U[Y]);return z.default=U,z}function m(U){retur Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:te,white:re,black:ne,pointer:q,circle:le}},{custom:!!this.props.style});return t.default.createElement("div",{style:ce.color,ref:function(ge){return Z.container=ge},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
`),t.default.createElement("div",{style:X.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:X.slider}))))}}]),P})(e.PureComponent||e.Component);return nx.default=M,nx}var ix={},V$;function eDe(){if(V$)return ix;V$=1,Object.defineProperty(ix,"__esModule",{value:!0}),ix.Raised=void 0;var n=_a(),e=c(n),t=Y1(),i=c(t),r=Vm(),o=c(r),s=kse(),a=c(s);function c(m){return m&&m.__esModule?m:{default:m}}var d=ix.Raised=function(v){var M=v.zDepth,B=v.radius,P=v.background,U=v.children,z=v.styles,V=z===void 0?{}:z,Z=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+M+"px "+M*4+"px rgba(0,0,0,.24)",borderRadius:B,background:P}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},V),{"zDepth-1":M===1});return e.default.createElement("div",{style:Z.wrap},e.default.createElement("div",{style:Z.bg}),e.default.createElement("div",{style:Z.content},U))};return d.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},d.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},ix.default=d,ix}var rx={},m9,$$;function tDe(){if($$)return m9;$$=1;var n=Ym(),e=function(){return n.Date.now()};return m9=e,m9}var g9,H$;function nDe(){if(H$)return g9;H$=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return g9=e,g9}var y9,Z$;function iDe(){if(Z$)return y9;Z$=1;var n=nDe(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return y9=t,y9}var v9,X$;function rDe(){if(X$)return v9;X$=1;var n=iDe(),e=Op(),t=hO(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(d){if(typeof d=="number")return d;if(t(d))return i;if(e(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=e(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=n(d);var v=o.test(d);return v||s.test(d)?a(d.slice(2),v?2:8):r.test(d)?i:+d}return v9=c,v9}var b9,J$;function Dse(){if(J$)return b9;J$=1;var n=Op(),e=tDe(),t=rDe(),i="Expected a function",r=Math.max,o=Math.min;function s(a,c,d){var m,v,M,B,P,U,z=0,V=!1,Z=!1,X=!0;if(typeof a!="function")throw new TypeError(i);c=t(c)||0,n(d)&&(V=!!d.leading,Z="maxWait"in d,M=Z?r(t(d.maxWait)||0,c):M,X="trailing"in d?!!d.trailing:X);function re(xe){var Te=m,Fe=v;return m=v=void 0,z=xe,B=a.apply(Fe,Te),B}function ie(xe){return z=xe,P=setTimeout(le,c),V?re(xe):B}function te(xe){var Te=xe-U,Fe=xe-z,Ie=c-Te;return Z?o(Ie,M-Fe):Ie}function q(xe){var Te=xe-U,Fe=xe-z;return U===void 0||Te>=c||Te<0||Z&&Fe>=M}function le(){var xe=e();if(q(xe))return ce(xe);P=setTimeout(le,te(xe))}function ce(xe){return P=void 0,X&&m?re(xe):(m=v=void 0,B)}function ve(){P!==void 0&&clearTimeout(P),z=0,m=U=v=P=void 0}function ge(){return P===void 0?B:ce(e())}function Ee(){var xe=e(),Te=q(xe);if(m=arguments,v=this,U=xe,Te){if(P===void 0)return ie(U);if(Z)return clearTimeout(P),P=setTimeout(le,c),re(U)}return P===void 0&&(P=setTimeout(le,c)),B}return Ee.cancel=ve,Ee.flush=ge,Ee}return b9=s,b9}var C9,eH;function oDe(){if(eH)return C9;eH=1;var n=Dse(),e=Op(),t="Expected a function";function i(r,o,s){var a=!0,c=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),n(r,o,{leading:a,maxWait:o,trailing:c})}return C9=i,C9}var rS={},tH;function sDe(){return tH||(tH=1,Object.defineProperty(rS,"__esModule",{value:!0}),rS.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,d=a-(i.getBoundingClientRect().left+window.pageXOffset),m=c-(i.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>o&&(d=o),m<0?m=0:m>s&&(m=s);var v=d/o,M=1-m/s;return{h:t.h,s:v,v:M,a:t.a,source:"hsv"}}),rS}var nH;function aDe(){if(nH)return rx;nH=1,Object.defineProperty(rx,"__esModule",{value:!0}),rx.Saturation=void 0;var n=(function(){function U(z,V){for(var Z=0;Z<V.length;Z++){var X=V[Z];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(z,X.key,X)}}return function(z,V,Z){return V&&U(z.prototype,V),Z&&U(z,Z),z}})(),e=_a(),t=m(e),i=Vm(),r=m(i),o=oDe(),s=m(o),a=sDe(),c=d(a);function d(U){if(U&&U.__esModule)return U;var z={};if(U!=null)for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&(z[V]=U[V]);return z.default=U,z}function m(U){retur Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:re,white:ie,black:te,pointer:q,circle:le}},{custom:!!this.props.style});return t.default.createElement("div",{style:ce.color,ref:function(ge){return Z.container=ge},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -934,14 +934,14 @@ 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));
}
`),t.default.createElement("div",{style:ce.white,className:"saturation-white"},t.default.createElement("div",{style:ce.black,className:"saturation-black"}),t.default.createElement("div",{style:ce.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ce.circle}))))}}]),z})(e.PureComponent||e.Component);return ox.default=P,ox}var sx={},wh={},m9,Z$;function tDe(){if(Z$)return m9;Z$=1;var n=wse(),e=Mse(),t=use(),i=wf();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return m9=r,m9}var g9,X$;function nDe(){return X$||(X$=1,g9=tDe()),g9}var zS={exports:{}},iDe=zS.exports,J$;function rDe(){return J$||(J$=1,(function(n,e){(function(t,i){n.exports=i()})(iDe,(function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},t(Le)}var i=/^\s+/,r=/\s+$/;function o(Le,ke){if(Le=Le||"",ke=ke||{},Le instanceof o)return Le;if(!(this instanceof o))return new o(Le,ke);var Oe=s(Le);this._originalInput=Le,this._r=Oe.r,this._g=Oe.g,this._b=Oe.b,this._a=Oe.a,this._roundA=Math.round(100*this._a)/100,this._format=ke.format||Oe.format,this._gradientType=ke.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=Oe.ok}o.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 ke=this.toRgb();return(ke.r*299+ke.g*587+ke.b*114)/1e3},getLuminance:function(){var ke=this.toRgb(),Oe,Ze,bt,yt,Mt,Kt;return Oe=ke.r/255,Ze=ke.g/255,bt=ke.b/255,Oe<=.03928?yt=Oe/12.92:yt=Math.pow((Oe+.055)/1.055,2.4),Ze<=.03928?Mt=Ze/12.92:Mt=Math.pow((Ze+.055)/1.055,2.4),bt<=.03928?Kt=bt/12.92:Kt=Math.pow((bt+.055)/1.055,2.4),.2126*yt+.7152*Mt+.0722*Kt},setAlpha:function(ke){return this._a=Te(ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var ke=m(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,v:ke.v,a:this._a}},toHsvString:function(){var ke=m(this._r,this._g,this._b),Oe=Math.round(ke.h*360),Ze=Math.round(ke.s*100),bt=Math.round(ke.v*100);return this._a==1?"hsv("+Oe+", "+Ze+"%, "+bt+"%)":"hsva("+Oe+", "+Ze+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var ke=c(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,l:ke.l,a:this._a}},toHslString:function(){var ke=c(this._r,this._g,this._b),Oe=Math.round(ke.h*360),Ze=Math.round(ke.s*100),bt=Math.round(ke.l*100);return this._a==1?"hsl("+Oe+", "+Ze+"%, "+bt+"%)":"hsla("+Oe+", "+Ze+"%, "+bt+"%, "+this._roundA+")"},toHex:function(ke){return w(this._r,this._g,this._b,ke)},toHexString:function(ke){return"#"+this.toHex(ke)},toHex8:function(ke){return B(this._r,this._g,this._b,this._a,ke)},toHex8String:function(ke){return"#"+this.toHex8(ke)},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(ze(this._r,255)*100)+"%",g:Math.round(ze(this._g,255)*100)+"%",b:Math.round(ze(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ze(this._r,255)*100)+"%, "+Math.round(ze(this._g,255)*100)+"%, "+Math.round(ze(this._b,255)*100)+"%)":"rgba("+Math.round(ze(this._r,255)*100)+"%, "+Math.round(ze(this._g,255)*100)+"%, "+Math.round(ze(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ee[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(ke){var Oe="#"+P(this._r,this._g,this._b,this._a),Ze=Oe,bt=this._gradientType?"GradientType = 1, ":"";if(ke){var yt=o(ke);Ze="#"+P(yt._r,yt._g,yt._b,yt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Oe+",endColorstr="+Ze+")"},toString:function(ke){var Oe=!!ke;ke=ke||this._format;var Ze=!1,bt=this._a<1&&this._a>=0,yt=!Oe&&bt&&(ke==="hex"||ke==="hex6"||ke==="hex3"||ke==="hex4"||ke==="hex8"||ke==="name");return yt?ke==="name"&&this._a===0?this.toName():this.toRgbString():(ke==="rgb"&&(Ze=this.toRgbString()),ke==="prgb"&&(Ze=this.toPercentageRgbString()),(ke==="hex"||ke==="hex6")&&(Ze=this.toHexString()),ke==="hex3"&&(Ze=this.toHexString(!0)),ke==="hex4"&&(Ze=this.toHex8String(!0)),ke==="hex8"&&(Ze=this.toHex8String()),ke==="name"&&(Ze=this.toName()),ke==="hsl"&&(Ze=this.toHslString()),ke==="hsv"&&(Ze=this.toHsvString()),Ze||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(ke,Oe){var Ze=ke.ap Line truncated
`),t.default.createElement("div",{style:ce.white,className:"saturation-white"},t.default.createElement("div",{style:ce.black,className:"saturation-black"}),t.default.createElement("div",{style:ce.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ce.circle}))))}}]),z})(e.PureComponent||e.Component);return rx.default=P,rx}var ox={},wh={},_9,iH;function lDe(){if(iH)return _9;iH=1;var n=_se(),e=Cse(),t=sse(),i=wf();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return _9=r,_9}var x9,rH;function uDe(){return rH||(rH=1,x9=lDe()),x9}var KS={exports:{}},cDe=KS.exports,oH;function ADe(){return oH||(oH=1,(function(n,e){(function(t,i){n.exports=i()})(cDe,(function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},t(Le)}var i=/^\s+/,r=/\s+$/;function o(Le,ke){if(Le=Le||"",ke=ke||{},Le instanceof o)return Le;if(!(this instanceof o))return new o(Le,ke);var Oe=s(Le);this._originalInput=Le,this._r=Oe.r,this._g=Oe.g,this._b=Oe.b,this._a=Oe.a,this._roundA=Math.round(100*this._a)/100,this._format=ke.format||Oe.format,this._gradientType=ke.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=Oe.ok}o.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 ke=this.toRgb();return(ke.r*299+ke.g*587+ke.b*114)/1e3},getLuminance:function(){var ke=this.toRgb(),Oe,Ze,bt,yt,Mt,Kt;return Oe=ke.r/255,Ze=ke.g/255,bt=ke.b/255,Oe<=.03928?yt=Oe/12.92:yt=Math.pow((Oe+.055)/1.055,2.4),Ze<=.03928?Mt=Ze/12.92:Mt=Math.pow((Ze+.055)/1.055,2.4),bt<=.03928?Kt=bt/12.92:Kt=Math.pow((bt+.055)/1.055,2.4),.2126*yt+.7152*Mt+.0722*Kt},setAlpha:function(ke){return this._a=Te(ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var ke=m(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,v:ke.v,a:this._a}},toHsvString:function(){var ke=m(this._r,this._g,this._b),Oe=Math.round(ke.h*360),Ze=Math.round(ke.s*100),bt=Math.round(ke.v*100);return this._a==1?"hsv("+Oe+", "+Ze+"%, "+bt+"%)":"hsva("+Oe+", "+Ze+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var ke=c(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,l:ke.l,a:this._a}},toHslString:function(){var ke=c(this._r,this._g,this._b),Oe=Math.round(ke.h*360),Ze=Math.round(ke.s*100),bt=Math.round(ke.l*100);return this._a==1?"hsl("+Oe+", "+Ze+"%, "+bt+"%)":"hsla("+Oe+", "+Ze+"%, "+bt+"%, "+this._roundA+")"},toHex:function(ke){return M(this._r,this._g,this._b,ke)},toHexString:function(ke){return"#"+this.toHex(ke)},toHex8:function(ke){return B(this._r,this._g,this._b,this._a,ke)},toHex8String:function(ke){return"#"+this.toHex8(ke)},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(Fe(this._r,255)*100)+"%",g:Math.round(Fe(this._g,255)*100)+"%",b:Math.round(Fe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Fe(this._r,255)*100)+"%, "+Math.round(Fe(this._g,255)*100)+"%, "+Math.round(Fe(this._b,255)*100)+"%)":"rgba("+Math.round(Fe(this._r,255)*100)+"%, "+Math.round(Fe(this._g,255)*100)+"%, "+Math.round(Fe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ee[M(this._r,this._g,this._b,!0)]||!1},toFilter:function(ke){var Oe="#"+P(this._r,this._g,this._b,this._a),Ze=Oe,bt=this._gradientType?"GradientType = 1, ":"";if(ke){var yt=o(ke);Ze="#"+P(yt._r,yt._g,yt._b,yt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Oe+",endColorstr="+Ze+")"},toString:function(ke){var Oe=!!ke;ke=ke||this._format;var Ze=!1,bt=this._a<1&&this._a>=0,yt=!Oe&&bt&&(ke==="hex"||ke==="hex6"||ke==="hex3"||ke==="hex4"||ke==="hex8"||ke==="name");return yt?ke==="name"&&this._a===0?this.toName():this.toRgbString():(ke==="rgb"&&(Ze=this.toRgbString()),ke==="prgb"&&(Ze=this.toPercentageRgbString()),(ke==="hex"||ke==="hex6")&&(Ze=this.toHexString()),ke==="hex3"&&(Ze=this.toHexString(!0)),ke==="hex4"&&(Ze=this.toHex8String(!0)),ke==="hex8"&&(Ze=this.toHex8String()),ke==="name"&&(Ze=this.toName()),ke==="hsl"&&(Ze=this.toHslString()),ke==="hsv"&&(Ze=this.toHsvString()),Ze||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(ke,Oe){var Ze=ke.ap Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${t}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://unpkg.com/maplibre-gl@${EH}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${EH}/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@${DH}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${DH}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
@@ -958,5 +958,5 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
<\/script>
</body>
</html>
`),r=(Ai().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(Ai().s[10]++,this.exportName());Ai().s[11]++,SH.saveAs(r,o+".html")}async saveStyle(){Ai().f[3]++;const e=(Ai().s[12]++,this.tokenizedStyle());if(Ai().s[13]++,BH)Ai().b[2][1]++;else{Ai().b[2][0]++;const r=(Ai().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(Ai().s[15]++,this.exportName());Ai().s[16]++,SH.saveAs(r,o+".json"),Ai().s[17]++;return}let t=(Ai().s[18]++,this.props.fileHandle);if(Ai().s[19]++,t==null)if(Ai().b[3][0]++,Ai().s[20]++,t=await this.createFileHandle(),Ai().s[21]++,this.props.onSetFileHandle(t),Ai().s[22]++,t==null){Ai().b[4][0]++,Ai().s[23]++;return}else Ai().b[4][1]++;else Ai().b[3][1]++;const i=(Ai().s[24]++,await t.createWritable());Ai().s[25]++,await i.write(e),Ai().s[26]++,await i.close(),Ai().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Ai().f[4]++;const e=(Ai().s[28]++,this.tokenizedStyle()),t=(Ai().s[29]++,await this.createFileHandle());if(Ai().s[30]++,this.props.onSetFileHandle(t),Ai().s[31]++,t==null){Ai().b[5][0]++,Ai().s[32]++;return}else Ai().b[5][1]++;const i=(Ai().s[33]++,await t.createWritable());Ai().s[34]++,await i.write(e),Ai().s[35]++,await i.close(),Ai().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Ai().f[5]++;const e=(Ai().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Ai().s[38]++,await window.showSaveFilePicker(e));return Ai().s[39]++,this.props.onSetFileHandle(t),Ai().s[40]++,t}changeMetadataProperty(e,t){Ai().f[6]++;const i=(Ai().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Ai().s[42]++,this.props.onStyleChanged(i)}render(){Ai().f[7]++;const e=(Ai().s[43]++,this.props.t),t=(Ai().s[44]++,Hse(e));return Ai().s[45]++,oe.jsx($1,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:oe.jsxs("section",{className:"maputnik-modal-section",children:[oe.jsx("h1",{children:e("Save Style")}),oe.jsx("p",{children:e("Save the JSON style to your computer.")}),oe.jsxs("div",{children:[oe.jsx(vd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Ai().b[6][0]++,this.props.mapStyle.metadata||(Ai().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),oe.jsx(vd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Ai().b[7][0]++,this.props.mapStyle.metadata||(Ai().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),oe.jsx(vd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Ai().b[8][0]++,this.props.mapStyle.metadata||(Ai().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),oe.jsx(vd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Ai().b[9][0]++,this.props.mapStyle.metadata||(Ai().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),oe.jsxs("div",{className:"maputnik-modal-export-buttons",children:[oe.jsxs(Ks,{onClick:this.saveStyle.bind(this),children:[oe.jsx(H9,{}),e("Save")]}),(Ai().b[10][0]++,BH&&(Ai().b[10][1]++,oe.jsxs(Ks,{onClick:this.saveStyleAs.bind(this),children:[oe.jsx(H9,{}),e("Save as")]}))),oe.jsxs(Ks,{onClick:this.createHtml.bind(this),children:[oe.jsx(Rfe,{}),e("Create HTML")]})]})]})})}}const $Re=(Ai().s[46]++,ko()(VRe));function VM(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return VM=function(){return s},s}VM();VM().s[0]++;const Zse=n=>(VM().f[0]++,VM().s[1]++,oe.jsx(cv,{label:n.label,children:oe.jsx(NS,{...n})}));function $M(){var n="/home/runner/work/maputnik/maputnik/src/components/Fi Line truncated
//# sourceMappingURL=index-S_bu68PO.js.map
`),r=(Ai().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(Ai().s[10]++,this.exportName());Ai().s[11]++,kH.saveAs(r,o+".html")}async saveStyle(){Ai().f[3]++;const e=(Ai().s[12]++,this.tokenizedStyle());if(Ai().s[13]++,RH)Ai().b[2][1]++;else{Ai().b[2][0]++;const r=(Ai().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(Ai().s[15]++,this.exportName());Ai().s[16]++,kH.saveAs(r,o+".json"),Ai().s[17]++;return}let t=(Ai().s[18]++,this.props.fileHandle);if(Ai().s[19]++,t==null)if(Ai().b[3][0]++,Ai().s[20]++,t=await this.createFileHandle(),Ai().s[21]++,this.props.onSetFileHandle(t),Ai().s[22]++,t==null){Ai().b[4][0]++,Ai().s[23]++;return}else Ai().b[4][1]++;else Ai().b[3][1]++;const i=(Ai().s[24]++,await t.createWritable());Ai().s[25]++,await i.write(e),Ai().s[26]++,await i.close(),Ai().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Ai().f[4]++;const e=(Ai().s[28]++,this.tokenizedStyle()),t=(Ai().s[29]++,await this.createFileHandle());if(Ai().s[30]++,this.props.onSetFileHandle(t),Ai().s[31]++,t==null){Ai().b[5][0]++,Ai().s[32]++;return}else Ai().b[5][1]++;const i=(Ai().s[33]++,await t.createWritable());Ai().s[34]++,await i.write(e),Ai().s[35]++,await i.close(),Ai().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Ai().f[5]++;const e=(Ai().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Ai().s[38]++,await window.showSaveFilePicker(e));return Ai().s[39]++,this.props.onSetFileHandle(t),Ai().s[40]++,t}changeMetadataProperty(e,t){Ai().f[6]++;const i=(Ai().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Ai().s[42]++,this.props.onStyleChanged(i)}render(){Ai().f[7]++;const e=(Ai().s[43]++,this.props.t),t=(Ai().s[44]++,Yse(e));return Ai().s[45]++,oe.jsx(V1,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:oe.jsxs("section",{className:"maputnik-modal-section",children:[oe.jsx("h1",{children:e("Save Style")}),oe.jsx("p",{children:e("Save the JSON style to your computer.")}),oe.jsxs("div",{children:[oe.jsx(vd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Ai().b[6][0]++,this.props.mapStyle.metadata||(Ai().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),oe.jsx(vd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Ai().b[7][0]++,this.props.mapStyle.metadata||(Ai().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),oe.jsx(vd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Ai().b[8][0]++,this.props.mapStyle.metadata||(Ai().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),oe.jsx(vd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Ai().b[9][0]++,this.props.mapStyle.metadata||(Ai().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),oe.jsxs("div",{className:"maputnik-modal-export-buttons",children:[oe.jsxs(Ks,{onClick:this.saveStyle.bind(this),children:[oe.jsx(nD,{}),e("Save")]}),(Ai().b[10][0]++,RH&&(Ai().b[10][1]++,oe.jsxs(Ks,{onClick:this.saveStyleAs.bind(this),children:[oe.jsx(nD,{}),e("Save as")]}))),oe.jsxs(Ks,{onClick:this.createHtml.bind(this),children:[oe.jsx(Tfe,{}),e("Create HTML")]})]})]})})}}const nPe=(Ai().s[46]++,Do()(tPe));function Y5(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return Y5=function(){return s},s}Y5();Y5().s[0]++;const Vse=n=>(Y5().f[0]++,Y5().s[1]++,oe.jsx(uv,{label:n.label,children:oe.jsx(zS,{...n})}));function V5(){var n="/home/runner/work/maputnik/maputnik/src/components/Fi Line truncated
//# sourceMappingURL=index-BvteS-mA.js.map
@@ -1 +1 @@
{"version":3,"mappings":"i3CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,4CC9BbO,GAAA,QAAiBC,IAAA,4FCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACxB,SAASC,IAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,GAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,GAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,GAAMA,EAAI,GACtBkB,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAW9B,GAAU,CACzE,IAAI7B,GAAO,OAAOwD,IACExD,KAAhB,aAAsCA,KAAd,aAAoBwD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ5D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH4D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK3D,EACL,KAAKW,EACHoD,GAAiB,GACjB,MACF,KAAK5C,EACH,OACG4C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACA9B,EAChB,CAEA,CACA,CACE,GAAI+B,GACF,OACG/B,GAAWA,GAAS2B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMX,GAAcQ,GAAU,CAAC,EAAIG,GACxD1B,GAAYJ,EAAQ,GACd6B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQb,GAA4B,KAAK,EAAI,KAChEQ,GAAa1B,GAAU4B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOhC,IAAR,OACCa,GAAeb,EAAQ,IACrBA,GAAWU,GACVV,GACA6B,IACW7B,GAAS,KAAjB,MACA2B,IAAYA,GAAS,MAAQ3B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBkB,GACA,OACE,KACRa,EAChB,GACUH,GAAM,KAAK5B,EAAQ,GACvB,EAEJ+B,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI1B,GAAYuB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpB/D,GAAO8D,GAAiBd,GAAcW,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACakC,GAAI5C,EAAcqC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB3D,GAAO8D,GAAiBd,GAAcW,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACwB7B,KAAb,SAAmB,CAC1B,GAAmB,OAAOwD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACA9B,IAEJ,MAAA4B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMvC,GAAS,CAC5C,GAAY8B,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKvC,GAAS0C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKLine truncated
{"version":3,"mappings":"i3CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,4CC9BbO,GAAA,QAAiBC,IAAA,4FCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACxB,SAASC,IAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,GAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,GAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,GAAMA,EAAI,GACtBkB,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAW9B,GAAU,CACzE,IAAI7B,GAAO,OAAOwD,IACExD,KAAhB,aAAsCA,KAAd,aAAoBwD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ5D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH4D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK3D,EACL,KAAKW,EACHoD,GAAiB,GACjB,MACF,KAAK5C,EACH,OACG4C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACA9B,EAChB,CAEA,CACA,CACE,GAAI+B,GACF,OACG/B,GAAWA,GAAS2B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMX,GAAcQ,GAAU,CAAC,EAAIG,GACxD1B,GAAYJ,EAAQ,GACd6B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQb,GAA4B,KAAK,EAAI,KAChEQ,GAAa1B,GAAU4B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOhC,IAAR,OACCa,GAAeb,EAAQ,IACrBA,GAAWU,GACVV,GACA6B,IACW7B,GAAS,KAAjB,MACA2B,IAAYA,GAAS,MAAQ3B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBkB,GACA,OACE,KACRa,EAChB,GACUH,GAAM,KAAK5B,EAAQ,GACvB,EAEJ+B,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI1B,GAAYuB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpB/D,GAAO8D,GAAiBd,GAAcW,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACakC,GAAI5C,EAAcqC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB3D,GAAO8D,GAAiBd,GAAcW,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACwB7B,KAAb,SAAmB,CAC1B,GAAmB,OAAOwD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACA9B,IAEJ,MAAA4B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMvC,GAAS,CAC5C,GAAY8B,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKvC,GAAS0C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKLine truncated
+1 -1
View File
@@ -37,7 +37,7 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-S_bu68PO.js"></script>
<script type="module" crossorigin src="/maputnik/assets/index-BvteS-mA.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-CuVViU0P.css">
</head>
<body>