This commit is contained in:
HarelM committed 2026-08-19 22:09:54 +00:00
1 parent daa992f6f9
commit ff50972c0d
45 files changed
+1003 -991

No files matched your search

-960
View File
@@ -1,960 +0,0 @@
function tue(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in n)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(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 s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=t(r);fetch(r.href,s)}})();function Bu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function _Z(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 V8={exports:{}},R3={};var nz;function nue(){if(nz)return R3;nz=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,s){var o=null;if(s!==void 0&&(o=""+s),r.key!==void 0&&(o=""+r.key),"key"in r){s={};for(var a in r)a!=="key"&&(s[a]=r[a])}else s=r;return r=s.ref,{$$typeof:n,type:i,key:o,ref:r!==void 0?r:null,props:s}}return R3.Fragment=e,R3.jsx=t,R3.jsxs=t,R3}var iz;function iue(){return iz||(iz=1,V8.exports=nue()),V8.exports}var le=iue(),$8={exports:{}},Qr={};var rz;function rue(){if(rz)return Qr;rz=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"),s=Symbol.for("react.consumer"),o=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"),b=Symbol.for("react.activity"),S=Symbol.iterator;function O(Ne){return Ne===null||typeof Ne!="object"?null:(Ne=S&&Ne[S]||Ne["@@iterator"],typeof Ne=="function"?Ne:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,W={};function q(Ne,rt,Ke){this.props=Ne,this.context=rt,this.refs=W,this.updater=Ke||U}q.prototype.isReactComponent={},q.prototype.setState=function(Ne,rt){if(typeof Ne!="object"&&typeof Ne!="function"&&Ne!=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,Ne,rt,"setState")},q.prototype.forceUpdate=function(Ne){this.updater.enqueueForceUpdate(this,Ne,"forceUpdate")};function V(){}V.prototype=q.prototype;function J(Ne,rt,Ke){this.props=Ne,this.context=rt,this.refs=W,this.updater=Ke||U}var se=J.prototype=new V;se.constructor=J,F(se,q.prototype),se.isPureReactComponent=!0;var re=Array.isArray;function ie(){}var X={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function $(Ne,rt,Ke){var Xe=Ke.ref;return{$$typeof:n,type:Ne,key:rt,ref:Xe!==void 0?Xe:null,props:Ke}}function ue(Ne,rt){return $(Ne.type,rt,Ne.props)}function de(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===n}function _e(Ne){var rt={"=":"=0",":":"=2"};return"$"+Ne.replace(/[=:]/g,function(Ke){return rt[Ke]})}var me=/\/+/g;function xe(Ne,rt){return typeof Ne=="object"&&Ne!==null&&Ne.key!=null?_e(""+Ne.key):rt.toString(36)}function Pe(Ne){switch(Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason;default:switch(typeof Ne.status=="string"?Ne.then(ie,ie):(Ne.status="pending",Ne.then(function(rt){Ne.status==="pending"&&(Ne.status="fulfilled",Ne.value=rt)},function(rt){Ne.status==="pending"&&(Ne.status="rejected",Ne.reason=rt)})),Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason}}throw Ne}function ke(Ne,rt,Ke,Xe,lt){var Ct=typeof Ne;(Ct==="undefined"||Ct==="boolean")&&(Ne=null);var Mt=!1;if(Ne===null)Mt=!0;else switch(Ct){case"bigint":case"string":case"number":Mt=!0;break;case"object":switch(Ne.$$typeof){case n:case e:Mt=!0;break;case m:return Mt=Ne._init,ke(Mt(Ne._payload),rt,Ke,Xe,lt)}}if(Mt)return lt=lt(Ne),Mt=Xe===""?"."+xe(Ne,0):Xe,re(lt)?(Ke="",Mt!=null&&(Ke=Mt.replace(me,"$&/")+"/"),ke(lt,rt,Ke,"",function(ve){return ve})):lt!=null&&(de(ltLine truncated
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
`+pt+f+qe}var It=!1;function xt(f,y){if(!f||It)return"";It=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var D={DetermineComponentFrameRoot:function(){try{if(y){var An=function(){throw Error()};if(Object.defineProperty(An.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(An,[])}catch(nn){var Yt=nn}Reflect.construct(f,[],An)}else{try{An.call()}catch(nn){Yt=nn}f.call(An.prototype)}}else{try{throw Error()}catch(nn){Yt=nn}(An=f())&&typeof An.catch=="function"&&An.catch(function(){})}}catch(nn){if(nn&&Yt&&typeof nn.stack=="string")return[nn.stack,Yt.stack]}return[null,null]}};D.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Y=Object.getOwnPropertyDescriptor(D.DetermineComponentFrameRoot,"name");Y&&Y.configurable&&Object.defineProperty(D.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ne=D.DetermineComponentFrameRoot(),we=ne[0],We=ne[1];if(we&&We){var gt=we.split(`
`),Gt=We.split(`
`);for(Y=D=0;D<gt.length&&!gt[D].includes("DetermineComponentFrameRoot");)D++;for(;Y<Gt.length&&!Gt[Y].includes("DetermineComponentFrameRoot");)Y++;if(D===gt.length||Y===Gt.length)for(D=gt.length-1,Y=Gt.length-1;1<=D&&0<=Y&&gt[D]!==Gt[Y];)Y--;for(;1<=D&&0<=Y;D--,Y--)if(gt[D]!==Gt[Y]){if(D!==1||Y!==1)do if(D--,Y--,0>Y||gt[D]!==Gt[Y]){var on=`
`+gt[D].replace(" at new "," at ");return f.displayName&&on.includes("<anonymous>")&&(on=on.replace("<anonymous>",f.displayName)),on}while(1<=D&&0<=Y);break}}}finally{It=!1,Error.prepareStackTrace=x}return(x=f?f.displayName||f.name:"")?Bt(x):""}function tn(f,y){switch(f.tag){case 26:case 27:case 5:return Bt(f.type);case 16:return Bt("Lazy");case 13:return f.child!==y&&y!==null?Bt("Suspense Fallback"):Bt("Suspense");case 19:return Bt("SuspenseList");case 0:case 15:return xt(f.type,!1);case 11:return xt(f.type.render,!1);case 1:return xt(f.type,!0);case 31:return Bt("Activity");default:return""}}function ln(f){try{var y="",x=null;do y+=tn(f,x),x=f,f=f.return;while(f);return y}catch(D){return`
Error generating stack: `+D.message+`
`+D.stack}}var Ln=Object.prototype.hasOwnProperty,ni=n.unstable_scheduleCallback,Dn=n.unstable_cancelCallback,Pn=n.unstable_shouldYield,Qn=n.unstable_requestPaint,En=n.unstable_now,bn=n.unstable_getCurrentPriorityLevel,bt=n.unstable_ImmediatePriority,Se=n.unstable_UserBlockingPriority,Ae=n.unstable_NormalPriority,fe=n.unstable_LowPriority,ze=n.unstable_IdlePriority,At=n.log,Ot=n.unstable_setDisableYieldValue,Dt=null,On=null;function Gn(f){if(typeof At=="function"&&Ot(f),On&&typeof On.setStrictMode=="function")try{On.setStrictMode(Dt,f)}catch{}}var yt=Math.clz32?Math.clz32:vn,Ft=Math.log,C=Math.LN2;function vn(f){return f>>>=0,f===0?32:31-(Ft(f)/C|0)|0}var pi=256,qn=262144,Zn=4194304;function Si(f){var y=f&42;if(y!==0)return y;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 rr(f,y,x){var D=f.pendingLanes;if(D===0)return 0;var Y=0,ne=f.suspendedLanes,we=f.pingedLanes;f=f.warmLanes;var We=D&134217727;return We!==0?(D=We&~ne,D!==0?Y=Si(D):(we&=We,we!==0?Y=Si(we):x||(x=We&~f,x!==0&&(Y=Si(x))))):(We=D&~ne,We!==0?Y=Si(We):we!==0?Y=Si(we):x||(x=D&~f,x!==0&&(Y=Si(x)))),Y===0?0:y!==0&&y!==Y&&(y&ne)===0&&(ne=Y&-Y,x=y&-y,ne>=x||ne===32&&(x&4194048)!==0)?y:Y}function Lt(f,y){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&y)===0}function As(f,y){switch(f){case 1:case 2:case 4:case 8:case 64:return y+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 y+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 Or(){var f=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),f}function xi(f){for(var y=[],x=0;31>x;x++)y.push(f);return y}function Nr(f,y){f.pendingLanes|=y,y!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function wr(f,y,x,D,Y,ne){var we=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 We=f.entanglements,gt=f.expirationTimes,Gt=f.hiddenUpdates;for(x=we&~x;0<x;){var on=31-yt(x),An=1<<on;We[on]=0,gt[on]=-1;var Yt=Gt[on];if(Yt!==null)for(Gt[on]=null,on=0;on<Yt.length;on++){var nn=Yt[on];nn!==null&&(nn.lane&=-536870913)}x&=~An}D!==0&&Gr(f,D,0),ne!==0&&Y===0&&f.tag!==0&&(f.suspendedLanes|=ne&~(we&~y))}function Gr(f,y,x){f.pendingLanes|=y,f.suspendedLanes&=~y;var D=31-yt(y);f.entangledLanes|=y,f.entanglements[D]=f.entanglements[D]|1073741824|x&261930}function ps(f,y){var x=f.entangledLanes|=y;for(f=f.entanglements;x;){var D=31-yt(x),Y=1<<D;Y&y|f[D]&y&&(f[D]|=y),x&=~Y}}function Ms(f,y){var x=y&-y;return x=(x&42)!==0?1:ms(x),(x&(f.suspendedLanes|y))!==0?0:x}function ms(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 hs(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function sr(){var f=Ye.p;return f!==0?f:(f=window.event,f===void 0?32:Yd(f.type))}function hn(f,y){var x=Ye.p;try{return Ye.p=f,y()}finally{Ye.p=x}}var hr=Math.random().toString(36).slice(2),Gi="__reactFiber$"+hr,gs="__reactProps$"+hr,ua="__reactContainer$"+hr,mn="__reactEvents$"+hr,$i="__reactListeners$"+hr,or="__reactHandles$"+hr,Sa="__reactResources$"+hr,Ou="__reactMarker$"+hr;function ml(f){delete f[Gi],delete f[gs],delete f[mn],delete f[$i],delete f[or]}function li(f){var y=f[Gi];if(y)return y;for(var x=f.parentNode;x;){if(y=x[ua]||x[Gi]){if(x=y.alternate,y.child!==null||x!==null&&x.child!==null)for(f=L_(f);f!==null;){if(x=f[Gi])return x;f=L_(f)}return y}f=x,x=f.parentNode}return null}function Dl(f){if(f=f[Gi]||f[ua]){var y=f.tag;if(y===5||y===6||y===13||y===31||y===26||y===27||y===3)return f}return null}function Za(f){var y=f.tag;if(y===5||y===26||y===27||y===6)return f.stateNode;throw Error(i(33))}function Jl(f){var y=f[Sa];return y||(y=f[Sa]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function vs(f){f[Ou]=!0}var Rc=new Set,Ua={};function Xa(f,y){Cs(f,y),Cs(f+"Capture",y)}function Cs(f,y){for(Ua[f]=y,f=0;f<y.length;f++)Rc.add(y[f])}var Zi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u Line truncated
`).replace(ya,"")}function Lv(f,y){return y=Pv(y),Pv(f)===y}function io(f,y,x,D,Y,ne){switch(x){case"children":typeof D=="string"?y==="body"||y==="textarea"&&D===""||fo(f,D):(typeof D=="number"||typeof D=="bigint")&&y!=="body"&&fo(f,""+D);break;case"className":Ea(f,"class",D);break;case"tabIndex":Ea(f,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Ea(f,x,D);break;case"style":Io(f,D,ne);break;case"data":if(y!=="object"){Ea(f,"data",D);break}case"src":case"href":if(D===""&&(y!=="a"||x!=="href")){f.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Ja(""+D),f.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="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 ne=="function"&&(x==="formAction"?(y!=="input"&&io(f,y,"name",Y.name,Y,null),io(f,y,"formEncType",Y.formEncType,Y,null),io(f,y,"formMethod",Y.formMethod,Y,null),io(f,y,"formTarget",Y.formTarget,Y,null)):(io(f,y,"encType",Y.encType,Y,null),io(f,y,"method",Y.method,Y,null),io(f,y,"target",Y.target,Y,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Ja(""+D),f.setAttribute(x,D);break;case"onClick":D!=null&&(f.onclick=Xo);break;case"onScroll":D!=null&&ls("scroll",f);break;case"onScrollEnd":D!=null&&ls("scrollend",f);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"multiple":f.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":f.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){f.removeAttribute("xlink:href");break}x=Ja(""+D),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":D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""+D):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":D&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""):f.removeAttribute(x);break;case"capture":case"download":D===!0?f.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,D):f.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?f.setAttribute(x,D):f.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?f.removeAttribute(x):f.setAttribute(x,D);break;case"popover":ls("beforetoggle",f),ls("toggle",f),Rl(f,"popover",D);break;case"xlinkActuate":gl(f,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":gl(f,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":gl(f,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":gl(f,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":gl(f,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":gl(f,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":gl(f,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":gl(f,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":gl(f,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Rl(f,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=jA.get(x)||x,Rl(f,x,D))}}function Mp(f,y,x,D,Y,ne){switch(x){case"style":Io(f,D,ne);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"children":typeof D=="string"?fo(f,D):(typeof D=="number"||typeof D=="bigint")&&fo(f,""+D);break;case"onScroll":D!=null&&ls("scroll",f);break;case"onScrollEnd":D!=null&&ls("scrollend",f);break;case"onClick":D!=null&&(f.onclick=Xo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case Line truncated
/* [wrapped with `+R+`] */
`)}function hv(E){return vr(E)||Wd(E)||!!(Qi&&E&&E[Qi])}function Ud(E,R){var Z=typeof E;return R=R??je,!!R&&(Z=="number"||Z!="symbol"&&li.test(E))&&E>-1&&E%1==0&&E<R}function Gl(E,R,Z){if(!sa(Z))return!1;var ge=typeof R;return(ge=="number"?gu(Z)&&Ud(R,Z.length):ge=="string"&&R in Z)?TA(Z[R],E):!1}function gp(E,R){if(vr(E))return!1;var Z=typeof E;return Z=="number"||Z=="symbol"||Z=="boolean"||E==null||xc(E)?!0:wr.test(E)||!Nr.test(E)||R!=null&&E in Gs(R)}function Iy(E){var R=typeof E;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?E!=="__proto__":E===null}function e1(E){var R=Qo(E),Z=Qe[R];if(typeof Z!="function"||!(R in er.prototype))return!1;if(E===Z)return!0;var ge=_o(Z);return!!ge&&E===ge[0]}function dv(E){return!!cc&&cc in E}var A_=GA?Qu:nn;function Vc(E){var R=E&&E.constructor,Z=typeof R=="function"&&R.prototype||wd;return E===Z}function t1(E){return E===E&&!sa(E)}function h_(E,R){return function(Z){return Z==null?!1:Z[E]===R&&(R!==t||E in Gs(Z))}}function Ty(E){var R=Fg(E,function(ge){return Z.size===m&&Z.clear(),ge}),Z=R.cache;return R}function Kd(E,R){var Z=E[1],ge=R[1],Re=Z|ge,He=Re<(q|V|ce),mt=ge==ce&&Z==se||ge==ce&&Z==$&&E[7].length<=R[8]||ge==(ce|$)&&R[7].length<=R[8]&&Z==se;if(!(He||mt))return E;ge&q&&(E[2]=R[2],Re|=Z&q?0:J);var St=R[3];if(St){var Pt=E[3];E[3]=Pt?Yn(Pt,St,R[4]):St,E[4]=Pt?mA(E[3],b):R[4]}return St=R[5],St&&(Pt=E[5],E[5]=Pt?Ei(Pt,St,R[6]):St,E[6]=Pt?mA(E[5],b):R[6]),St=R[7],St&&(E[7]=St),ge&ce&&(E[8]=E[8]==null?R[8]:Ls(E[8],R[8])),E[9]==null&&(E[9]=R[9]),E[0]=R[0],E[1]=Re,E}function n1(E){var R=[];if(E!=null)for(var Z in Gs(E))R.push(Z);return R}function Ig(E){return Md.call(E)}function wl(E,R,Z){return R=To(R===t?E.length-1:R,0),function(){for(var ge=arguments,Re=-1,He=To(ge.length-R,0),mt=Xt(He);++Re<He;)mt[Re]=ge[R+Re];Re=-1;for(var St=Xt(R+1);++Re<R;)St[Re]=ge[Re];return St[R]=Z(mt),Ll(E,this,St)}}function bm(E,R){return R.length<2?E:oh(E,M(R,0,-1))}function Do(E,R){for(var Z=E.length,ge=Ls(R.length,Z),Re=fr(E);ge--;){var He=R[ge];E[ge]=Ud(He,Z)?Re[He]:t}return E}function i1(E,R){if(!(R==="constructor"&&typeof E[R]=="function")&&R!="__proto__")return E[R]}var d_=ky(u),vm=q0||function(E,R){return Jn.setTimeout(E,R)},Cm=ky(p);function If(E,R,Z){var ge=R+"";return Cm(E,Av(ge,Dy(mp(ge),Z)))}function ky(E){var R=0,Z=0;return function(){var ge=il(),Re=xe-(ge-Z);if(Z=ge,Re>0){if(++R>=me)return arguments[0]}else R=0;return E.apply(t,arguments)}}function r1(E,R){var Z=-1,ge=E.length,Re=ge-1;for(R=R===t?ge:R;++Z<R;){var He=Nh(Z,Re),mt=E[He];E[He]=E[Z],E[Z]=mt}return E.length=R,E}var _m=Ty(function(E){var R=[];return E.charCodeAt(0)===46&&R.push(""),E.replace(Gr,function(Z,ge,Re,He){R.push(Re?He.replace(ua,"$1"):ge||Z)}),R});function Ia(E){if(typeof E=="string"||xc(E))return E;var R=E+"";return R=="0"&&1/E==-Je?"-0":R}function Tf(E){if(E!=null){try{return kh.call(E)}catch{}try{return E+""}catch{}}return""}function Dy(E,R){return Lu(lt,function(Z){var ge="_."+Z[0];R&Z[1]&&!tl(E,ge)&&E.push(ge)}),E.sort()}function fv(E){if(E instanceof er)return E.clone();var R=new ea(E.__wrapped__,E.__chain__);return R.__actions__=fr(E.__actions__),R.__index__=E.__index__,R.__values__=E.__values__,R}function pv(E,R,Z){(Z?Gl(E,R,Z):R===t)?R=1:R=To(Ir(R),0);var ge=E==null?0:E.length;if(!ge||R<1)return[];for(var Re=0,He=0,mt=Xt(op(ge/R));Re<ge;)mt[He++]=M(E,Re,Re+=R);return mt}function mv(E){for(var R=-1,Z=E==null?0:E.length,ge=0,Re=[];++R<Z;){var He=E[R];He&&(Re[ge++]=He)}return Re}function xm(){var E=arguments.length;if(!E)return[];for(var R=Xt(E-1),Z=arguments[0],ge=E;ge--;)R[ge-1]=arguments[ge];return co(vr(Z)?fr(Z):[Z],lr(R,1))}var Ry=br(function(E,R){return qo(E)?nh(E,lr(R,1,qo,!0)):[]}),Fd=br(function(E,R){var Z=fu(R);return qo(Z)&&(Z=t),qo(E)?nh(E,lr(R,1,qo,!0),Ji(Z,2)):[]}),Ro=br(function(E,R){var Z=fu(R);return qo(Z)&&(Z=t),qo(E)?nh(E,lr(R,1,qo,!0),t,Z):[]});function wm(E,R,Z){var ge=E==null?0:E.length;return ge?(R=Z||R===t?1:Ir(R),M(E,R<0?0:R,ge)):[]}function f_(E,R,Z){var ge=E==null?0:E.length;return ge?(R=Z||R===t?1:Ir(R),R=ge-R,M(E,0,R<0?0:R)):[]}function Wl(E,R){return E&&E.length?Ge(E,Ji(R,3),!0,!0):[]}function f3(E,R){return E&&E.length?Ge(E,Ji(R,3),!0):[]}function p_(E,R,Z,ge){var Re=E==null?0:E.length;return Re?(Z&&typeof Z!="number"&&Gl(E,R,Z)&&(Z=0,ge=Re),cm(E,R,Z,ge)):[]}function gv(E,R,Z){var ge=E==null?0:E.length;if(!ge)return-1;var Re=Z==null?0:Ir(Z);return Re<0&&(Re=To(ge+Re,0)),hf(E,Ji(R,3),Re)}function Yo(E,R,Z){var ge=E==null?0:E.length;if(!ge)return-1;var Re=ge-1;return Z!==t&&(Re=Ir(Z),Re=Z<0?To(ge+Re,0):Ls(Re,ge-1)),hf(E,Ji(R,3),Re,!0)}function Cc(E){var R=E==null?0:E.length;return R?lr(E,1):[]}function Yh(E){var R=E==null?0:E.length;return R?lr(E,Je):[]}function m_(E,R){var Z=E==null?0:E.length;return Z?(R=R===t?1:Ir(R),lr(E,R)):[]}function yv(E){for(var R=-1,Z=E==null?0:E.length,ge={};++R<Z;){var Re=E[R];mc(ge,Re[0],Re[1])}return ge}function Mm(E){return E&&E.length?E[0]:t}function p3(E,R,Z){var ge=E==null?0:E.length;if(!ge)return-1;var Re=Z==null?0:Ir(Z);retur Line truncated
`;E.replace(oi,function(ur,ys,ks,kA,eA,td){return ks||(ks=kA),Rn+=E.slice(gn,td).replace(Jl,G0),ys&&(St=!0,Rn+=`' +
__e(`+ys+`) +
'`),eA&&(Pt=!0,Rn+=`';
`+eA+`;
__p += '`),ks&&(Rn+=`' +
((__t = (`+ks+`)) == null ? '' : __t) +
'`),gn=td+ur.length,ur}),Rn+=`';
`;var pr=es.call(R,"variable")&&R.variable;if(!pr)Rn=`with (obj) {
`+Rn+`
}
`;else if(gs.test(pr))throw new Xi(a);Rn=(Pt?Rn.replace(vn,""):Rn).replace(pi,"$1").replace(qn,"$1;"),Rn="function("+(pr||"obj")+`) {
`+(pr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(St?", __e = _.escape":"")+(Pt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Rn+`return __p
}`;var qr=U1(function(){return Jr(He,zi+"return "+Rn).apply(t,mt)});if(qr.source=Rn,g1(qr))throw qr;return qr}function qd(E){return Os(E).toLowerCase()}function Op(E){return Os(E).toUpperCase()}function Zg(E,R,Z){if(E=Os(E),E&&(Z||R===t))return Cy(E);if(!E||!(R=ae(R)))return E;var ge=vl(E),Re=vl(R),He=yg(ge,Re),mt=pf(ge,Re)+1;return dt(ge,He,mt).join("")}function P1(E,R,Z){if(E=Os(E),E&&(Z||R===t))return E.slice(0,Cg(E)+1);if(!E||!(R=ae(R)))return E;var ge=vl(E),Re=pf(ge,vl(R))+1;return dt(ge,0,Re).join("")}function Ip(E,R,Z){if(E=Os(E),E&&(Z||R===t))return E.replace(ms,"");if(!E||!(R=ae(R)))return E;var ge=vl(E),Re=yg(ge,vl(R));return dt(ge,Re).join("")}function I3(E,R){var Z=de,ge=_e;if(sa(R)){var Re="separator"in R?R.separator:Re;Z="length"in R?Ir(R.length):Z,ge="omission"in R?ae(R.omission):ge}E=Os(E);var He=E.length;if(Uu(E)){var mt=vl(E);He=mt.length}if(Z>=He)return E;var St=Z-Fa(ge);if(St<1)return ge;var Pt=mt?dt(mt,0,St).join(""):E.slice(0,St);if(Re===t)return Pt+ge;if(mt&&(St+=Pt.length-St),Ng(Re)){if(E.slice(St).search(Re)){var gn,Mn=Pt;for(Re.global||(Re=Ur(Re.source,Os($i.exec(Re))+"g")),Re.lastIndex=0;gn=Re.exec(Mn);)var Rn=gn.index;Pt=Pt.slice(0,Rn===t?St:Rn)}}else if(E.indexOf(ae(Re),St)!=St){var oi=Pt.lastIndexOf(Re);oi>-1&&(Pt=Pt.slice(0,oi))}return Pt+ge}function G_(E){return E=Os(E),E&&rr.test(E)?E.replace(Zn,mf):E}var L1=ma(function(E,R,Z){return E+(Z?" ":"")+R.toUpperCase()}),El=Oa("toUpperCase");function Tp(E,R,Z){return E=Os(E),R=Z?t:R,R===t?sm(E)?am(E):pg(E):E.match(R)||[]}var U1=br(function(E,R){try{return Ll(E,t,R)}catch(Z){return g1(Z)?Z:new Xi(Z)}}),W_=xl(function(E,R){return Lu(R,function(Z){Z=Ia(Z),mc(E,Z,Ny(E[Z],E))}),E});function Vs(E){var R=E==null?0:E.length,Z=Ji();return E=R?Js(E,function(ge){if(typeof ge[1]!="function")throw new Ul(o);return[Z(ge[0]),ge[1]]}):[],br(function(ge){for(var Re=-1;++Re<R;){var He=E[Re];if(Ll(He[0],this,ge))return Ll(He[1],this,ge)}})}function Bl(E){return th(lu(E,S))}function ed(E){return function(){return E}}function tb(E,R){return E==null||E!==E?R:E}var kp=Na(),Vv=Na(!0);function bu(E){return E}function Rm(E){return Td(typeof E=="function"?E:lu(E,S))}function nb(E){return dm(lu(E,S))}function Yl(E,R){return Sf(E,lu(R,S))}var Jc=br(function(E,R){return function(Z){return ta(Z,E,R)}}),f=br(function(E,R){return function(Z){return ta(E,Z,R)}});function y(E,R,Z){var ge=ll(R),Re=Fh(R,ge);Z==null&&!(sa(R)&&(Re.length||!ge.length))&&(Z=R,R=E,E=this,Re=Fh(R,ll(R)));var He=!(sa(Z)&&"chain"in Z)||!!Z.chain,mt=Qu(E);return Lu(Re,function(St){var Pt=R[St];E[St]=Pt,mt&&(E.prototype[St]=function(){var gn=this.__chain__;if(He||gn){var Mn=E(this.__wrapped__),Rn=Mn.__actions__=fr(this.__actions__);return Rn.push({func:Pt,args:arguments,thisArg:E}),Mn.__chain__=gn,Mn}return Pt.apply(E,co([this.value()],arguments))})}),E}function x(){return Jn._===this&&(Jn._=Fc),this}function D(){}function Y(E){return E=Ir(E),br(function(R){return Dd(R,E)})}var ne=Nl(Js),we=Nl(Jo),We=Nl(fg);function gt(E){return gp(E)?lc(Ia(E)):jh(E)}function Gt(E){return function(R){return E==null?t:oh(E,R)}}var on=Gu(),An=Gu(!0);function Yt(){return[]}function nn(){return!1}function ki(){return{}}function tr(){return""}function ro(){return!0}function Rt(E,R){if(E=Ir(E),E<1||E>je)return[];var Z=rt,ge=Ls(E,rt);R=Ji(R),E-=rt;for(var Re=gg(ge,R);++Z<E;)R(Z);return Re}function Et(E){return vr(E)?Js(E,Ia):xc(E)?[E]:fr(_m(Os(E)))}function Wt(E){var R=++Ku;return Os(E)+R}var fn=Pd(function(E,R){return E+R},0),Yi=Wo("ceil"),Is=Pd(function(E,R){return E/R},1),Di=Wo("floor");function Cr(E){return E&&E.length?Kh(E,bu,go):t}function us(E,R){return E&&E.length?Kh(E,Ji(R,2),go):t}function Ts(E){return nl(E,bu)}function Kf(E,R){return nl(E,Ji(R,2))}function Q_(E){return E&&E.length?Kh(E,bu,kd):t}function hM(E,R){return E&&E.length?Kh(E,Ji(R,2),kd):t}var z8=Pd(function(E,R){return E*R},1),dM=Wo("round"),j8=Pd(function(E,R){return E-R},0);function N8(E){return E&&E.length?vd(E,bu):0}function T3(E,R){return E&&E.length?vd(E,Ji(R,2)):0}return Qe.after=v_,Qe.ary=h1,Qe.assign=Fv,Qe.assignIn=_1,Qe.assignInWith=R_,Qe.assignWith=Xc,Qe.at=zv,Qe.before=jy,Qe.bind=Ny,Qe.bindAll=W_,Qe.bindKey=Tm,Qe.castArray=__,Qe.chain=Bm,Qe.chunk=pv,Qe.compact=mv,Qe.concat=xm,Qe.cond=Vs,Qe.conforms=Bl,Qe.constant=ed,Qe.countBy=ga,Qe.create=P_,Qe.curry=Bv,Qe.curryRight=Gy,Qe.debounce=Fs,Qe.defaults=L_,Qe.defaultsDeep=jv,Qe.defer=Ov,Qe.delay=C3,Qe.difference=Ry,Qe.differenceBy=Fd,Qe.differenceWith=Ro,Qe.drop=wm,Qe.dropRight=f_,Qe.dropRightWhile=Wl,Qe.dropWhile=f3,Qe.fill=p_,Qe.filter=pu,Qe.flatMap=Fy,Qe.flatMapDeep=zy,Qe.flatMapDepth=Lg,Qe.flatten=Cc,Qe.flattenDeep=Yh,Qe.flattenDepth=m_,Qe.flip=C_,Qe.flow=kp,Qe.flowRight=Vv,Qe.fromPairs=yv,Qe.functions=Vy,Qe.functionsIn=Ep,Qe.groupBy=xv,Qe.initial=Po,Qe.intersection=Ml,Qe.intersectionBy=uh,Qe.intersectionWith=s1,Qe.invert=Wg,Qe.invertBy=U_,Qe.invokeMap=wv,Qe.iteratee=Rm,Qe.keyBy=Mv,Qe.keys=ll,Qe.keysIn=Mc,Qe.map=Ug,Qe.mapKeys=M1,Qe.mapValues=km,Qe.matches=nb,Qe.matchesProperty=Yl,Qe.mem Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(b[1])} }\`.`)];const S=[];return n.layerType==="symbol"&&a==="text-font"&&xw(zC(o))&&Hl(o.type)==="identity"&&S.push(new Nn(t,o,'"text-font" does not support identity functions')),S.concat(i({key:n.key,value:o,valueSpec:m,style:r,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:a}))}function cJ(n){return uJ(n,"paint")}function AJ(n){return uJ(n,"layout")}function hJ(n){let e=[];const t=n.value,i=n.key,r=n.style,s=n.styleSpec;if(ss(t)!=="object")return[new Nn(i,t,`object expected, ${ss(t)} found`)];!t.type&&!t.ref&&e.push(new Nn(i,t,'either "type" or "ref" is required'));let o=Hl(t.type);const a=Hl(t.ref);if(t.id){const c=Hl(t.id);for(let d=0;d<n.arrayIndex;d++){const m=r.layers[d];Hl(m.id)===c&&e.push(new Nn(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 Nn(i,t[d],`"${d}" is prohibited for ref layers`))});let c;r.layers.forEach(d=>{Hl(d.id)===a&&(c=d)}),c?c.ref?e.push(new Nn(i,t.ref,"ref cannot reference another ref layer")):o=Hl(c.type):e.push(new Nn(i,t.ref,`ref layer "${a}" not found`))}else if(o!=="background")if(!t.source)e.push(new Nn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],d=c&&Hl(c.type);c?d==="vector"&&o==="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster source`)):d!=="raster-dem"&&o==="hillshade"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d!=="raster-dem"&&o==="color-relief"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d==="raster"&&o!=="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a vector source`)):d==="vector"&&!t["source-layer"]?e.push(new Nn(i,t,`layer "${t.id}" must specify a "source-layer"`)):d==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?e.push(new Nn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&t.paint&&t.paint["line-gradient"]&&(d!=="geojson"||!c.lineMetrics)&&e.push(new Nn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Nn(i,t.source,`source "${t.source}" not found`))}return o==="raster"&&t.paint?.resampling&&t.paint?.["raster-resampling"]&&e.push(new Nn(i,t.paint,`layer "${t.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(Zf({key:i,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:yL,layout(c){return Zf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return AJ(p5({layerType:o},d))}}})},paint(c){return Zf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return cJ(p5({layerType:o},d))}}})}}})),e}function Nb(n){const e=n.value,t=n.key,i=ss(e);return i!=="string"?[new Nn(t,e,`string expected, ${i} found`)]:[]}function Bde(n){const e=n.sourceName??"",t=n.value,i=n.styleSpec,r=i.source_raster_dem,s=n.style;let o=[];const a=ss(t);if(t===void 0)return o;if(a!=="object")return o.push(new Nn("source_raster_dem",t,`object expected, ${a} found`)),o;const c=Hl(t.encoding)==="custom",d=["redFactor","greenFactor","blueFactor","baseShift"],m=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const b in t)!c&&d.includes(b)?o.push(new Nn(b,t[b],`In "${e}": "${b}" is only valid when "encoding" is set to "custom". ${m} encoding found`)):r[b]?o=o.concat(n.validateSpec({key:b,value:t[b],valueSpec:r[b],validateSpec:n.validateSpec,style:s,styleSpec:i})):o.push(new Nn(b,t[b],`unknown property "${b}"`));return o}const pj={promoteId:Ode};function dJ(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,s=n.validateSpec;if(!e.type)return[new Nn(t,e,'"type" is required')];const o=Hl(e.type);let a;switch(o){case"vector":case"raster":return a=Zf({key:t,value:e,valueSpec:i[`source_${o.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:pj,validateSpec:s}),a;case"raster-dem":return a=Bde({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:s}),a;case"geojson":if(a=Zf({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:s,objectElementValidators:pj}),e.cluster)for(const c in e.clusterProperties){const[d,m]=e.clusterProperties[c],b=typeof d=="string"?[d,["accumulated"],["get",c]]:d;a.push(...Ex({key:`${t}.${c}.map`,value:m,expressionContext:"cluster-map"})),a.push(...Ex({key:`${t}.${c}.reduce`,value:b,expressionContext:"clusLine truncated
${b}`),F].join(`
${a}`)}return d})(n,"",0)}function gj(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 Gde(n,e=2){return n=gj(n,Zs.$root),n.layers&&(n.layers=n.layers.map(t=>gj(t,Zs.layer))),Nde(n,{indent:e})}function bO(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function yj(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function mD(n,e){return typeof e=="string"&&e[0]==="@"?mD(n,n.constants[e]):e}function Wde(n){return Array.isArray(n.stops)}function K3(n,e,t){n[t]=n[e],delete n[e]}function Qde(n){n.version=8,wde(n,r=>{r.type==="video"&&r.url!==void 0&&K3(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(s=>s.reverse())}),U4(n,r=>{bO(r,s=>{s["symbol-min-distance"]!==void 0&&K3(s,"symbol-min-distance","symbol-spacing")}),yj(r,s=>{s["background-image"]!==void 0&&K3(s,"background-image","background-pattern"),s["line-image"]!==void 0&&K3(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&K3(s,"fill-image","fill-pattern")})}),mL(n,{paint:!0,layout:!0},r=>{const s=mD(n,r.value);Wde(s)&&s.stops.forEach(o=>{o[1]=mD(n,o[1])}),r.set(s)}),delete n.constants,U4(n,r=>{bO(r,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),yj(r,s=>{s["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(r){function s(o){return o.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return s(r);if(typeof r=="object")return r.stops.forEach(o=>{o[1]=s(o[1])}),r;throw new Error("unexpected font value")}U4(n,r=>{bO(r,s=>{s["text-font"]&&(s["text-font"]=e(s["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 Yde(n){const e=[];return U4(n,t=>{t.filter&&(t.filter=L4(t.filter))}),mL(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:s,set:o})=>{Mw(r)||i.endsWith("-transition")||s===null||(typeof r=="object"&&!Array.isArray(r)?(o(rJ(r,s)),e.push(t.join("."))):s.tokens&&typeof r=="string"&&o(sJ(r)))}),n}function qde(n){return JSON.parse(Vde(JSON.stringify(n)))}function Vde(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,s,o,a]=i.slice(1);return[s,o]=[s,o].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,s,o,a].filter(Boolean).join(",")})"`}return e})}function $de(n){let e=!1;if(n.version===7&&(n=Qde(n),e=!0),n.version===8&&(e=!!Yde(n),e=!0),mL(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(qde(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Hde={StyleExpression:HX,StylePropertyFunction:JX,ZoomConstantExpression:hD,ZoomDependentExpression:dD,createExpression:cL,createPropertyExpression:AL,isExpression:Mw,isExpressionFilter:AB,isZoomExpression:Ade,normalizePropertyExpression:hde},Zde={convertFunction:rJ,createFunction:uL,isFunction:xw},Xde=8,Jde=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","length":2,"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 Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter. It is advised to use the generic `resampling` paint property instead.",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added, or when a video is started or its coordinates are updated.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Pfe={"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,doc:"The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,doc:"The altitude of the light source(s) used to generate the hillshading with 0 as sunset and 90 as noon. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:"5.5.0",android:"13.0.0",ios:"6.24.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maxim Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},Lfe={"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"},"data-driven styling":{},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Ufe={duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},Kfe={"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}},Ffe={type:"array",value:"interpolation_name",minimum:1,doc:'An interpolation defines how to transition between items. The first element of an interpolation array is a string naming the interpolation operator, e.g. `"linear"` or `"exponential"`. Elements that follow (if any) are the _arguments_ to the interpolation.'},zfe={doc:"First element in an interpolation array. May be followed by a number of arguments.",type:"enum",values:{linear:{doc:"Interpolates linearly between the pair of stops just less than and just greater than the input",syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]},example:["linear"],"sdk-support":{interpolate:{js:"0.42.0",android:"6.0.0",ios:"4.0.0"},"interpolate-hcl":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"},"interpolate-lab":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"}}},exponential:{doc:"Interpolates exponentially between the stops just less than and just greater than the input.",syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal",doc:"rate at which the output increases in `f(x) = x^r`. Values higher than 1 increase, close to one behaves linearly, and below one decrease."}]},example:["exponential",2],"sdk-support":{interpolate:{js:"0.42.0",android:"6.0.0",ios:"4.0.0"},"interpolate-hcl":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"},"interpolate-lab":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"}}},"cubic-bezier":{doc:"Interpolates using the cubic Line truncated
* In categorical functions, when the feature value does not match any of the stop domain values.
* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.
* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a \`circle-color\` property but the feature property value is not a string or not a valid color).
* 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:Cfe,expression:_fe,expression_name:xfe,light:wfe,sky:Mfe,terrain:Sfe,projection:Efe,paint:Bfe,paint_fill:Ofe,"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"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},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"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},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"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},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"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},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"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},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"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},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"},"[`global-state`](https://maplibre.org/maplibre-style- Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3302",ios:"https://github.com/maplibre/maplibre-native/issues/3302"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:Lfe,transition:Ufe,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:Kfe,interpolation:Ffe,interpolation_name:zfe};var GS={exports:{}};var jfe=GS.exports,bj;function Nfe(){return bj||(bj=1,(function(n,e){(function(t,i){n.exports=i()})(jfe,(function(){var t={},i={};function r(o,a,c){if(i[o]=c,o==="index"){var d="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",m={};return i.shared(m),i.index(t,m),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([d],{type:"text/javascript"}))),t}}r("shared",["exports"],(function(o){function a(h,l,A,g){return new(A||(A=Promise))((function(v,w){function B(P){try{K(g.next(P))}catch(N){w(N)}}function T(P){try{K(g.throw(P))}catch(N){w(N)}}function K(P){var N;P.done?v(P.value):(N=P.value,N instanceof A?N:new A((function(z){z(N)}))).then(B,T)}K((g=g.apply(h,l||[])).next())}))}function c(h,l){this.x=h,this.y=l}function d(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var m,b;typeof SuppressedError=="function"&&SuppressedError,c.prototype={clone(){return new c(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,l){return this.clone()._rotateAround(h,l)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const l=h.x-this.x,A=h.y-this.y;return l*l+A*A},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,l){return Math.atan2(this.x*l-this.y*h,this.x*h+this.y*l)},_matMult(h){const l=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=l,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const l=Math.cos(h),A=Math.sin(h),g=A*this.x+l*this.y;return this.x=l*this.x-A*this.y,this.y=g,this},_rotateAround(h,l){const A=Math.cos(h),g=Math.sin(h),v=l.y+g*(this.x-l.x)+A*(this.y-l.y);return this.x=l.x+A*(this.x-l.x)-g*(this.y-l.y),this.y=v,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:c},c.convert=function(h){if(h instanceof c)return h;if(Array.isArray(h))return new c(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new c(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var S=(function(){if(b)return m;function h(l,A,g,v){this.cx=3*l,this.bx=3*(g-l Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(z[1])} }\`.`)];const te=[];return h.layerType==="symbol"&&T==="text-font"&&qA(vA(B))&&No(B.type)==="identity"&&te.push(new hn(A,B,'"text-font" does not support identity functions')),te.concat(g({key:h.key,value:B,valueSpec:N,style:v,styleSpec:w,expressionContext:"property",propertyType:l,propertyKey:T}))}function XA(h){return Mg(h,"paint")}function bf(h){return Mg(h,"layout")}function um(h){var l,A;let g=[];const v=h.value,w=h.key,B=h.style,T=h.styleSpec;if(Qi(v)!=="object")return[new hn(w,v,`object expected, ${Qi(v)} found`)];v.type||v.ref||g.push(new hn(w,v,'either "type" or "ref" is required'));let K=No(v.type);const P=No(v.ref);if(v.id){const N=No(v.id);for(let z=0;z<h.arrayIndex;z++){const te=B.layers[z];No(te.id)===N&&g.push(new hn(w,v.id,`duplicate layer id "${v.id}", previously used at line ${te.id.__line__}`))}}if("ref"in v){let N;["type","source","source-layer","filter","layout"].forEach((z=>{z in v&&g.push(new hn(w,v[z],`"${z}" is prohibited for ref layers`))})),B.layers.forEach((z=>{No(z.id)===P&&(N=z)})),N?N.ref?g.push(new hn(w,v.ref,"ref cannot reference another ref layer")):K=No(N.type):g.push(new hn(w,v.ref,`ref layer "${P}" not found`))}else if(K!=="background")if(v.source){const N=B.sources&&B.sources[v.source],z=N&&No(N.type);N?z==="vector"&&K==="raster"?g.push(new hn(w,v.source,`layer "${v.id}" requires a raster source`)):z!=="raster-dem"&&K==="hillshade"||z!=="raster-dem"&&K==="color-relief"?g.push(new hn(w,v.source,`layer "${v.id}" requires a raster-dem source`)):z==="raster"&&K!=="raster"?g.push(new hn(w,v.source,`layer "${v.id}" requires a vector source`)):z!=="vector"||v["source-layer"]?z==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?g.push(new hn(w,v.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!v.paint||!v.paint["line-gradient"]||z==="geojson"&&N.lineMetrics||g.push(new hn(w,v,`layer "${v.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):g.push(new hn(w,v,`layer "${v.id}" must specify a "source-layer"`)):g.push(new hn(w,v.source,`source "${v.source}" not found`))}else g.push(new hn(w,v,'missing required property "source"'));return K==="raster"&&(!((l=v.paint)===null||l===void 0)&&l.resampling)&&(!((A=v.paint)===null||A===void 0)&&A["raster-resampling"])&&g.push(new hn(w,v.paint,`layer "${v.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),g=g.concat(Go({key:w,value:v,valueSpec:T.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${w}.type`,value:v.type,valueSpec:T.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:v,objectKey:"type"}),filter:fc,layout:N=>Go({layer:v,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>bf(hr({layerType:K},z))}}),paint:N=>Go({layer:v,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>XA(hr({layerType:K},z))}})}})),g}function zu(h){const l=h.value,A=h.key,g=Qi(l);return g!=="string"?[new hn(A,l,`string expected, ${g} found`)]:[]}const za={promoteId:function({key:h,value:l}){if(Qi(l)==="string")return zu({key:h,value:l});{const A=[];for(const g in l)A.push(...zu({key:`${h}.${g}`,value:l[g]}));return A}}};function lp(h){const l=h.value,A=h.key,g=h.styleSpec,v=h.style,w=h.validateSpec;if(!l.type)return[new hn(A,l,'"type" is required')];const B=No(l.type);let T;switch(B){case"vector":case"raster":return T=Go({key:A,value:l,valueSpec:g[`source_${B.replace("-","_")}`],style:h.style,styleSpec:g,objectElementValidators:za,validateSpec:w}),T;case"raster-dem":return T=(function(K){var P;const N=(P=K.sourceName)!==null&&P!==void 0?P:"",z=K.value,te=K.styleSpec,Q=te.source_raster_dem,he=K.style;let pe=[];const Ee=Qi(z);if(z===void 0)return pe;if(Ee!=="object")return pe.push(new hn("source_raster_dem",z,`object expected, ${Ee} found`)),pe;const Be=No(z.encoding)==="custom",Ue=["redFactor","greenFactor","blueFactor","baseShift"],Te=K.value.encoding?`"${K.value.encoding}"`:"Default";for(const Fe in z)!Be&&Ue.includes(Fe)?pe.push(new hn(Fe,z[Fe],`In "${N}": "${Fe}" is only valid when "encoding" is set to "custom". ${Te} encoding found`)):Q[Fe]?pe=pe.concat(K.validateSpec({key:Fe,value:z[Fe],valueSpec:Q[Fe],validateSpec:K.validateSpec,style:he,styleSpec:te})):pe.push(new hn(Fe,z[Fe],`unknown property "${Fe}"`));return pe})({sourceName:A,value:l,style:h.style,styleSpec:g,validateSpec:w}),T;case"geojson":if(T=Go({key:A,value:l,valueSpec:g.source_geojson,style:v,styleSpec:g,validateSpec:w,objectElementValidators:za}),l.cluster)for(const K in l.clusterProperties){const[P,N]=l.clusterProperties[K],z=typeof P=="string"?[P,["acLine truncated
precision mediump float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
out highp vec4 fragColor;`,`#ifdef GL_ES
precision highp float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+ c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+ c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+ c
);}
#ifdef TERRAIN3D
uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;
#endif
const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
#ifdef TERRAIN3D
highp float d=unpack(texture(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
#else
return 1.0;
#endif
}float calculate_visibility(vec4 pos) {
#ifdef TERRAIN3D
vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
#else
return 1.0;
#endif
}float ele(vec2 pos) {
#ifdef TERRAIN3D
vec4 rgb=(texture(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
#else
return 0.0;
#endif
}float get_elevation(vec2 pos) {
#ifdef TERRAIN3D
#ifdef GLOBE
if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
#endif
vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
#else
return 0.0;
#endif
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:Ii("","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:Ii("",`#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:Ii(`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:Ii(`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:Ii(`in vec3 v_data;in float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define highp vec4 stroke_color
#pragma mapbox: define mediump float stroke_width
#pragma mapbox: define lowp float stroke_opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize mediump float radius
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize highp vec4 stroke_color
#pragma mapbox: initialize mediump float stroke_width
#pragma mapbox: initialize lowp float stroke_opacity
vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define highp vec4 stroke_color
#pragma mapbox: define mediump float stroke_width
#pragma mapbox: define lowp float stroke_opacity
void main(void) {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize mediump float radius
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize highp vec4 stroke_color
#pragma mapbox: initialize mediump float stroke_width
#pragma mapbox: initialize lowp float stroke_opacity
vec2 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
#ifdef GLOBE
vec3 center_vector=projectToSphere(circle_center);
#endif
float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
#ifdef GLOBE
vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
#else
vec4 projected_center=projectTileWithElevation(circle_center,ele);
#endif
corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
#ifdef GLOBE
vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:Ii(Ns,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Ii(`uniform highp float u_intensity;in vec2 v_extrude;
#pragma mapbox: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
#pragma mapbox: initialize highp float weight
float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out vec2 v_extrude;
#pragma mapbox: define highp float weight
#pragma mapbox: define mediump float radius
const highp float ZERO=1.0/255.0/16.0;
#define GAUSS_COEF 0.3989422804014327
void main(void) {
#pragma mapbox: initialize highp float weight
#pragma mapbox: initialize mediump float radius
vec2 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=floor(pos_raw/8.0);
#ifdef GLOBE
vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:Ii(`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:Ii("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:Ii("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:Ii(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0));
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:Ii("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:Ii(Ns,`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:Ii(`#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
fragColor=color*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_fill_translate;in vec2 a_pos;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:Ii(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 outline_color
#pragma mapbox: initialize lowp float opacity
float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 outline_color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 outline_color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:Ii(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:Ii(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:Ii(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
out vec4 v_color;
#pragma mapbox: define highp float base
#pragma mapbox: define highp float height
#pragma mapbox: define highp vec4 color
void main() {
#pragma mapbox: initialize highp float base
#pragma mapbox: initialize highp float height
#pragma mapbox: initialize highp vec4 color
vec3 normal=a_normal_ed.xyz;
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:Ii(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
#ifdef GLOBE
out vec3 v_sphere_pos;
#endif
out vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:Ii(`#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:Ii(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
#define IGOR 2
#define MULTIDIRECTIONAL 3
#define BASIC 4
float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:Ii(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),lineGradient:Ii(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),linePattern:Ii(`#ifdef GL_ES
precision highp float;
#endif
uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
#ifdef GLOBE
in float v_depth;
#endif
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
#pragma mapbox: define lowp vec4 pattern_from
#pragma mapbox: define lowp vec4 pattern_to
#pragma mapbox: define lowp float pixel_ratio_from
#pragma mapbox: define lowp float pixel_ratio_to
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
#pragma mapbox: initialize mediump vec4 pattern_from
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:Ii(`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
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
#pragma mapbox: define mediump vec4 dasharray_from
#pragma mapbox: define mediump vec4 dasharray_to
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
#pragma mapbox: initialize mediump vec4 dasharray_from
#pragma mapbox: initialize mediump vec4 dasharray_to
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0/u_device_pixel_ratio)/min(dasharray_from.w,dasharray_to.w);alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
#pragma mapbox: define mediump vec4 dasharray_from
#pragma mapbox: define mediump vec4 dasharray_to
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
#pragma mapbox: initialize mediump vec4 dasharray_from
#pragma mapbox: initialize mediump vec4 dasharray_to
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
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:Ii(`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
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
#pragma mapbox: define mediump vec4 dasharray_from
#pragma mapbox: define mediump vec4 dasharray_to
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
#pragma mapbox: initialize mediump vec4 dasharray_from
#pragma mapbox: initialize mediump vec4 dasharray_to
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);float sdfdist_a=texture(u_image_dash,v_tex_a).a;float sdfdist_b=texture(u_image_dash,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0)/min(dasharray_from.w,dasharray_to.w);float dash_alpha=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*dash_alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;out vec2 v_tex_a;out vec2 v_tex_b;
#ifdef GLOBE
out float v_depth;
#endif
#pragma mapbox: define lowp float blur
#pragma mapbox: define lowp float opacity
#pragma mapbox: define mediump float gapwidth
#pragma mapbox: define lowp float offset
#pragma mapbox: define mediump float width
#pragma mapbox: define lowp float floorwidth
#pragma mapbox: define mediump vec4 dasharray_from
#pragma mapbox: define mediump vec4 dasharray_to
void main() {
#pragma mapbox: initialize lowp float blur
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize mediump float gapwidth
#pragma mapbox: initialize lowp float offset
#pragma mapbox: initialize mediump float width
#pragma mapbox: initialize lowp float floorwidth
#pragma mapbox: initialize mediump vec4 dasharray_from
#pragma mapbox: initialize mediump vec4 dasharray_to
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;float texel_height=1.0/u_image_height;float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
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:Ii(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;
#ifdef GLOBE
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
#endif
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:Ii(`uniform sampler2D u_texture;in vec2 v_tex;in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out float v_total_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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_total_opacity=opacity*max(0.0,min(visibility,fade_opacity[0]+fade_change));if (v_total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:Ii(`#define SDF_PX 8.0
uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float total_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out_text,color_alpha_out_halo;if (u_is_plain){highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);color_alpha_out_text=total_opacity*alpha*fill_color;}if (u_is_halo) {float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);float inner_edge_halo=inner_edge+gamma_halo*gamma_scale;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(inner_edge_halo-gamma_scaled_halo,inner_edge_halo+gamma_scaled_halo,dist);highp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha_halo= min(smoothstep(halo_edge-gamma_scaled_halo,halo_edge+gamma_scaled_halo,dist),1.0-alpha_halo);color_alpha_out_halo=total_opacity*alpha_halo*halo_color;}if (u_is_plain && u_is_halo) {fragColor=color_alpha_out_text+(1.-color_alpha_out_text.a)*color_alpha_out_halo;} else if (u_is_halo){fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out_text;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_data0;out vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy/16.0;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:Ii(`#define SDF_PX 8.0
#define SDF 1.0
#define ICON 0.0
uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
float total_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;fragColor=texture(u_texture_icon,tex_icon)*total_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out,color_alpha_out_halo;if (u_is_text) {highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);color_alpha_out=fill_color*(alpha*total_opacity);}if (u_is_halo) {highp float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);lowp float buff_halo=(6.0-halo_width/fontScale)/SDF_PX;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(buff_halo-gamma_scaled_halo,buff_halo+gamma_scaled_halo,dist);color_alpha_out_halo=halo_color*(alpha_halo*total_opacity);}if (u_is_text && u_is_halo) {fragColor=color_alpha_out+(1.-color_alpha_out.a)*color_alpha_out_halo;} else if (u_is_halo) {fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out vec4 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
#pragma mapbox: define lowp float opacity
#pragma mapbox: define lowp float halo_width
#pragma mapbox: define lowp float halo_blur
void main() {
#pragma mapbox: initialize highp vec4 fill_color
#pragma mapbox: initialize highp vec4 halo_color
#pragma mapbox: initialize lowp float opacity
#pragma mapbox: initialize lowp float halo_width
#pragma mapbox: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,total_opacity,is_sdf);}`),terrain:Ii("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ii("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:Ii("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:Ii("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:Ii(`#ifdef GL_ES
precision highp float;
#endif
in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"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:Ii("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 Ii(I,u){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_=u.match(/in ([\w]+) ([\w]+)/g),M=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),k=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),j=k?k.concat(M):M,G={};return{fragmentSource:I=I.replace(p,((H,oe,ae,ye,Ce)=>(G[Ce]=!0,oe==="define"?`
#ifndef HAS_UNIFORM_u_${Ce}
in ${ae} ${ye} ${Ce};
#else
uniform ${ae} ${ye} u_${Ce};
#endif
`:`
#ifdef HAS_UNIFORM_u_${Ce}
${ae} ${ye} ${Ce} = u_${Ce};
#endif
`))),vertexSource:u=u.replace(p,((H,oe,ae,ye,Ce)=>{const Oe=ye==="float"?"vec2":"vec4",Ge=Ce.match(/color/)?"color":Oe;return G[Ce]?oe==="define"?`
#ifndef HAS_UNIFORM_u_${Ce}
uniform lowp float u_${Ce}_t;
in ${ae} ${Oe} a_${Ce};
out ${ae} ${ye} ${Ce};
#else
uniform ${ae} ${ye} u_${Ce};
#endif
`:Ge==="vec4"?`
#ifndef HAS_UNIFORM_u_${Ce}
${Ce} = a_${Ce};
#else
${ae} ${ye} ${Ce} = u_${Ce};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Ce}
${Ce} = unpack_mix_${Ge}(a_${Ce}, u_${Ce}_t);
#else
${ae} ${ye} ${Ce} = u_${Ce};
#endif
`:oe==="define"?`
#ifndef HAS_UNIFORM_u_${Ce}
uniform lowp float u_${Ce}_t;
in ${ae} ${Oe} a_${Ce};
#else
uniform ${ae} ${ye} u_${Ce};
#endif
`:Ge==="vec4"?`
#ifndef HAS_UNIFORM_u_${Ce}
${ae} ${ye} ${Ce} = a_${Ce};
#else
${ae} ${ye} ${Ce} = u_${Ce};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Ce}
${ae} ${ye} ${Ce} = unpack_mix_${Ge}(a_${Ce}, u_${Ce}_t);
#else
${ae} ${ye} ${Ce} = u_${Ce};
#endif
`})),staticAttributes:_,staticUniforms:j}}class dr{constructor(u,p,_){this.vertexBuffer=u,this.indexBuffer=p,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var el=a.aS([{name:"a_pos",type:"Int16",components:2}]);const Xr="#define PROJECTION_MERCATOR",Xs="mercator";class po{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Xs}get shaderDefine(){return Xr}get shaderPreludeCode(){return Es.projectionMercator}get vertexShaderPreludeCode(){return Es.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,p,_,M,k){if(this._cachedMesh)return this._cachedMesh;const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(a.a6,0),j.emplaceBack(0,a.a6),j.emplaceBack(a.a6,a.a6);const G=u.createVertexBuffer(j,el.members),H=a.aV.simpleSegment(0,0,4,2),oe=new a.aW;oe.emplaceBack(1,0,2),oe.emplaceBack(1,2,3);const ae=u.createIndexBuffer(oe);return this._cachedMesh=new dr(G,ae,H),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class tu{constructor(u=0,p=0,_=0,M=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(_)||_<0||isNaN(M)||M<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=_,this.right=M}interpolate(u,p,_){return p.top!=null&&u.top!=null&&(this.top=a.H.number(u.top,p.top,_)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.H.number(u.bottom,p.bottom,_)),p.left!=null&&u.left!=null&&(this.left=a.H.number(u.left,p.left,_)),p.right!=null&&u.right!=null&&(this.right=a.H.number(u.right,p.right,_)),this}getCenter(u,p){const _=a.al((this.left+u-this.right)/2,0,u),M=a.al((this.top+p-this.bottom)/2,0,p);return new a.P(_,M)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new tu(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function jr(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 ee(I){return Math.max(0,Math.floor(I))}class Me{constructor(u,p){var _;this.applyConstrain=(M,k)=>this._constrainOverride!==null?this._constrainOverride(M,k):this._callbacks.defaultConstrain(M,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=(_=p?.constrainOverride)!==null&&_!==void 0?_:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=ee(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new tu,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,p,_){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=ee(this._zoom),this._scale=a.ao(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 tu(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=!_&&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
`),dt=ot.concat(Es.prelude.vertexSource,G.vertexSource,p.vertexSource).join(`
`);ds(ae)||(nt=(function(en){return en.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(nt),dt=(function(en){return en.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(dt));const ut=ae.createShader(ae.FRAGMENT_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(ut,nt),ae.compileShader(ut),!ae.getShaderParameter(ut,ae.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ae.getShaderInfoLog(ut)}`);ae.attachShader(this.program,ut);const kt=ae.createShader(ae.VERTEX_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(kt,dt),ae.compileShader(kt),!ae.getShaderParameter(kt,ae.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ae.getShaderInfoLog(kt)}`);ae.attachShader(this.program,kt),this.attributes={};const Zt={};this.numAttributes=Oe.length;for(let en=0;en<this.numAttributes;en++)Oe[en]&&(ae.bindAttribLocation(this.program,en,Oe[en]),this.attributes[Oe[en]]=en);if(ae.linkProgram(this.program),!ae.getProgramParameter(this.program,ae.LINK_STATUS))throw new Error(`Program failed to link: ${ae.getProgramInfoLog(this.program)}`);ae.deleteShader(kt),ae.deleteShader(ut);for(const en of ft)if(en&&!Zt[en]){const Cn=ae.getUniformLocation(this.program,en);Cn&&(Zt[en]=Cn)}this.fixedUniforms=M(u,Zt),this.terrainUniforms=((en,Cn)=>({u_depth:new a.b_(en,Cn.u_depth),u_terrain:new a.b_(en,Cn.u_terrain),u_terrain_dim:new a.bp(en,Cn.u_terrain_dim),u_terrain_matrix:new a.c0(en,Cn.u_terrain_matrix),u_terrain_unpack:new a.c1(en,Cn.u_terrain_unpack),u_terrain_exaggeration:new a.bp(en,Cn.u_terrain_exaggeration)}))(u,Zt),this.projectionUniforms=((en,Cn)=>({u_projection_matrix:new a.c0(en,Cn.u_projection_matrix),u_projection_tile_mercator_coords:new a.c1(en,Cn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.c1(en,Cn.u_projection_clipping_plane),u_projection_transition:new a.bp(en,Cn.u_projection_transition),u_projection_fallback_matrix:new a.c0(en,Cn.u_projection_fallback_matrix)}))(u,Zt),this.binderUniforms=_?_.getUniforms(u,Zt):[]}draw(u,p,_,M,k,j,G,H,oe,ae,ye,Ce,Oe,Ge,Ze,st,tt,at,ft){var ot;const nt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(M),u.setColorMode(k),u.setCullFace(j),H){u.activeTexture.set(nt.TEXTURE2),nt.bindTexture(nt.TEXTURE_2D,H.depthTexture),u.activeTexture.set(nt.TEXTURE3),nt.bindTexture(nt.TEXTURE_2D,H.texture);for(const ut in this.terrainUniforms)this.terrainUniforms[ut].set(H[ut])}if(oe)for(const ut in oe)this.projectionUniforms[Cy[ut]].set(oe[ut]);if(G)for(const ut in this.fixedUniforms)this.fixedUniforms[ut].set(G[ut]);st&&st.setUniforms(u,this.binderUniforms,Ge,{zoom:Ze});let dt=0;switch(p){case nt.LINES:dt=2;break;case nt.TRIANGLES:dt=3;break;case nt.LINE_STRIP:dt=1}for(const ut of Oe.get())ut.vaos||(ut.vaos={}),(ot=ut.vaos)[ae]||(ot[ae]=new gg),ut.vaos[ae].bind(u,this,ye,st?st.getPaintVertexBuffers():[],Ce,ut.vertexOffset,tt,at,ft),nt.drawElements(p,ut.primitiveLength*dt,nt.UNSIGNED_SHORT,ut.primitiveOffset*dt*2)}}function Cd(I,u,p){const _=1/a.aK(p,1,u.transform.tileZoom),M=Math.pow(2,p.tileID.overscaledZ),k=p.tileSize*Math.pow(2,u.transform.tileZoom)/M,j=k*(p.tileID.canonical.x+p.tileID.wrap*M),G=k*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[_,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[j>>16,G>>16],u_pixel_coord_lower:[65535&j,65535&G]}}const yg=(I,u,p,_)=>{const M=I.style.light,k=M.properties.get("position"),j=[k.x,k.y,k.z],G=a.c4();M.properties.get("anchor")==="viewport"&&a.c5(G,I.transform.bearingInRadians),a.c6(j,j,G);const H=I.transform.transformLightDirection(j),oe=M.properties.get("color");return{u_lightpos:j,u_lightpos_globe:H,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[oe.r,oe.g,oe.b],u_vertical_gradient:+u,u_opacity:p,u_fill_translate:_}},pf=(I,u,p,_,M,k,j)=>a.e(yg(I,u,p,_),Cd(k,I,j),{u_height_factor:-Math.pow(2,M.overscaledZ)/j.tileSize/8}),_d=(I,u,p,_)=>a.e(Cd(u,I,p),{u_fill_translate:_}),_y=(I,u)=>({u_world:I,u_fill_translate:u}),rm=(I,u,p,_,M)=>a.e(_d(I,u,p,M),{u_world:_}),G0=(I,u,p,_,M)=>{const k=I.transform;let j,G,H=0;if(p.paint.get("circle-pitch-alignment")==="map"){const oe=a.aK(u,1,k.zoom);j=!0,G=[oe,oe],H=oe/(a.a6*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*M}else j=!1,G=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:+j,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:G,u_globe_extrude_scale:H,u_translate:_}},W0=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),Uu=I=>({u_viewport_size:[I.width,I.height]}),sm=(I,u=1)=>({u_color:I,u_overlay:0,u_overlay_scale:u}),bg=(I,u,p,_)=>{const M=a.aK(I,1,u)/(a.a6*Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:a.aK(I,1,u),u_intensi Line truncated
uniform mat4 u_projection_matrix;
${G.shaderPreludeCode.vertexSource}`,define:G.shaderDefine},defaultProjectionData:oe},ye=j.renderingMode?j.renderingMode:"2d";if(I.renderPass==="offscreen"){const Ce=j.prerender;Ce&&(I.setCustomLayerDefaults(),k.setColorMode(I.colorModeForRenderPass()),Ce.call(j,k.gl,ae),k.setDirty(),I.setBaseState())}else if(I.renderPass==="translucent"){I.setCustomLayerDefaults(),k.setColorMode(I.colorModeForRenderPass()),k.setStencilMode(Wi.disabled);const Ce=ye==="3d"?I.getDepthModeFor3D():I.getDepthModeForSublayer(0,ii.ReadOnly);k.setDepthMode(Ce),j.render(k.gl,ae),k.setDirty(),I.setBaseState(),k.bindFramebuffer.set(null)}},debug:function(I,u,p){for(const _ of p)wy(I,u,_)},debugPadding:function(I){const u=I.transform.padding;za(I,I.transform.height-(u.top||0),3,Mg),za(I,u.bottom||0,3,XA),lp(I,u.left||0,3,bf),lp(I,I.transform.width-(u.right||0),3,um);const p=I.transform.centerPoint;(function(_,M,k,j){ju(_,M-1,k-10,2,20,j),ju(_,M-10,k-1,20,2,j)})(I,p.x,I.transform.height-p.y,zu)},terrainDepth:function(I,u){const p=I.context,_=p.gl,M=I.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.tileManager.getRenderableTiles(),H=I.useProgram("terrainDepth");p.bindFramebuffer.set(u.getFramebuffer("depth").framebuffer),p.viewport.set([0,0,I.width/devicePixelRatio,I.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1});for(const oe of G){const ae=u.getTerrainMesh(oe.tileID),ye=u.getTerrainData(oe.tileID),Ce=M.getProjectionData({overscaledTileID:oe.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),Oe={u_ele_delta:u.getMeshFrameDelta(M.zoom)};H.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,ye,Ce,"terrain",ae.vertexBuffer,ae.indexBuffer,ae.segments)}p.bindFramebuffer.set(null),p.viewport.set([0,0,I.width,I.height])},terrainCoords:function(I,u){const p=I.context,_=p.gl,M=I.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.getCoordsTexture(),H=u.tileManager.getRenderableTiles(),oe=I.useProgram("terrainCoords");p.bindFramebuffer.set(u.getFramebuffer("coords").framebuffer),p.viewport.set([0,0,I.width/devicePixelRatio,I.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1}),u.coordsIndex=[];for(const ae of H){const ye=u.getTerrainMesh(ae.tileID),Ce=u.getTerrainData(ae.tileID);p.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,G.texture);const Oe={u_terrain_coords_id:(255-u.coordsIndex.length)/255,u_texture:0,u_ele_delta:u.getMeshFrameDelta(M.zoom)},Ge=M.getProjectionData({overscaledTileID:ae.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});oe.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,Ce,Ge,"terrain",ye.vertexBuffer,ye.indexBuffer,ye.segments),u.coordsIndex.push(ae.tileID.key)}p.bindFramebuffer.set(null),p.viewport.set([0,0,I.width,I.height])}};class vf{constructor(u,p){this.drawFunctions=da,this.context=new Ls(u),this.transform=p,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:a.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=Gi.maxOverzooming+Gi.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Fo}resize(u,p,_){if(this.width=Math.floor(u*_),this.height=Math.floor(p*_),this.pixelRatio=_,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const M of this.style._order)this.style._layers[M].resize()}setup(){const u=this.context,p=new a.aU;p.emplaceBack(0,0),p.emplaceBack(a.a6,0),p.emplaceBack(0,a.a6),p.emplaceBack(a.a6,a.a6),this.tileExtentBuffer=u.createVertexBuffer(p,el.members),this.tileExtentSegments=a.aV.simpleSegment(0,0,4,2);const _=new a.aU;_.emplaceBack(0,0),_.emplaceBack(a.a6,0),_.emplaceBack(0,a.a6),_.emplaceBack(a.a6,a.a6),this.debugBuffer=u.createVertexBuffer(_,el.members),this.debugSegments=a.aV.simpleSegment(0,0,4,5);const M=new a.ch;M.emplaceBack(0,0,0,0),M.emplaceBack(a.a6,0,a.a6,0),M.emplaceBack(0,a.a6,0,a.a6),M.emplaceBack(a.a6,a.a6,a.a6,a.a6),this.rasterBoundsBuffer=u.createVertexBuffer(M,vd.members),this.rasterBoundsSegments=a.aV.simpleSegment(0,0,4,2);const k=new a.aU;k.emplaceBack(0,0),k.emplaceBack(a.a6,0),k.emplaceBack(0,a.a6),k.emplaceBack(a.a6,a.a6),this.rasterBoundsBufferPosOnly=u.createVertexBuffer(k,el.members),this.rasterBoundsSegmentsPosOnly=a.aV.simpleSegment(0,0,4,5);const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(1,0),j.emplaceBack(0,1),j.emplaceBack(1,1),this.viewportBuffer=u.createVertexBuffer(j,el.members),this.viewportSegments=a.aV.simpleSegment(0,0,4,2);const G=new a.ci;G.emplaceBack(0),G.emplaceBack(1),G.emplaceBack(3),G.emplaceBack(2),G.emplaceBack(0),this.tileBorderIndexBuffer=u.createIndexBuffer(G);const H=new a.aW;H.emplaceBack(1,0,2),H.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=u.createIndexBuffer(H);const oe=this.context.gl;this.stencilClearMode=new Wi({func:oe.ALWAYS,mask:0},0,255,oe.ZERO,oe.ZERO,oe.ZERO),this.tileExtentMesh=new dr(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){const u=this.context,p=u.gl;this.nextStencilID=1,this.currentStencilSource=void 0;c Line truncated
${e} <span></span>
`,so().s[12]++,this._textEl=this._container.querySelector("span"),so().s[13]++,this.updateZoomLevel()}addEventListeners(){so().f[4]++,so().s[14]++,this._map.on("render",()=>(so().f[5]++,so().s[15]++,this.updateZoomLevel())),so().s[16]++,this._map.on("zoomIn",()=>(so().f[6]++,so().s[17]++,this.updateZoomLevel())),so().s[18]++,this._map.on("zoomOut",()=>(so().f[7]++,so().s[19]++,this.updateZoomLevel()))}onRemove(){so().f[8]++,so().s[20]++,this._container.parentNode.removeChild(this._container),so().s[21]++,this._map=void 0}}function SD(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 ED(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 BD(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 Bj(n,e){return{circle:e(n,.8),line:e(n,.6),polygon:e(n,.3),polygonOutline:e(n,.6),default:e(n,1)}}function ame(n,e){const t=[],i=[],r=[];for(const s of Object.keys(n)){const o=n[s];if(!o||o.length===0){const a=Bj(s,e);i.push(SD(a.circle,s)),r.push(BD(a.line,s)),t.push(ED(a.polygon,a.polygonOutline,s))}else for(const a of o){const c=Bj(a,e);i.push(SD(c.circle,s,a)),r.push(BD(c.line,s,a)),t.push(ED(c.polygon,c.polygonOutline,s,a))}}return t.concat(r).concat(i)}function lme(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};for(const s of Object.keys(n.sources)){const o=n.sources[s];(o.type==="vector"||o.type==="geojson")&&(r[s]=o)}return Object.assign(n,{layers:[i].concat(e),sources:r})}const _O={polygonLayer:ED,lineLayer:BD,circleLayer:SD,generateInspectStyle:lme,generateColoredLayers:ame};function Dr(){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=bme.language(this.options.language.split(",")[0]);return this.options.language&&F3?.[e][t]?F3[e][t]:F3[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=zm({},{padding:100},this.options.flyTo),s=new this._maplibregl.LngLatBounds;for(const o of t)"geometry"in o&&((e=o.geometry)===null||e===void 0?void 0:e.type)==="Point"&&s.extend(o.geometry.coordinates);this._map.fitBounds(s,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=zm({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let s=null;if(this.options.popup){const a=zm({},{},this.options.popup);s=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(s)):((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(s)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=zm({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let s;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(s=this.options.showResultMarkers.element.cloneNode(!0),i=zm(i,{element:s}));const o=new this._maplibregl.Marker(zm({},i,{element:s}));let a;if(this.options.popup){const d=zm({},{},this.options.popup);a=new this._maplibregl.Popup(d).setHTML(this.options.popupRender(r))}r.center?(o.setLngLat(r.center).addTo(this._map),this.options.popup&&o.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(o.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&o.setPopup(a)),this.resultMarkers.push(o)}}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 Qt(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="2d91b6c543f9700f5163b2f1cc417edccdb9abe7",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,s)=>Math.max(r,Ote(n,s)),0);return t[e]=i,i}function Mbe(n,e){const t=[],i=[],r=[];let s=0,o=0,a=0,c=0;for(let d=0,m=e.length;d<=m;d+=2){const b=e[d];if(b===`
`||d===m){s=Math.max(s,o),r.push(o),o=0,a+=c,c=0;continue}const S=e[d+1]||n.font,O=Ote(S,b);t.push(O),o+=O;const U=wbe(S);i.push(U),c=Math.max(c,U)}return{width:s,height:a,widths:t,heights:i,lineWidths:r}}function Sbe(n,e,t,i,r,s,o,a,c,d,m){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=b=>b.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,d),n.scale(m[0],m[1]),Ebe(i,n)):m[0]<0||m[1]<0?(n.translate(c,d),n.scale(m[0],m[1]),n.drawImage(i,r,s,o,a,0,0,o,a)):n.drawImage(i,r,s,o,a,c,d,o*m[0],a*m[1]),n.restore()}function Ebe(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 KB{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=_h(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new KB({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 Pr()}getImage(e){return Pr()}getHitDetectionImage(){return Pr()}getPixelRatio(e){return 1}getImageState(){return Pr()}getImageSize(){return Pr()}getOrigin(){return Pr()}getSize(){return Pr()}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_=_h(e)}listenImageChange(e){Pr()}load(){Pr()}unlistenImageChange(e){Pr()}ready(){return Promise.resolve()}}class FB extends KB{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()?Ui.LOADING:Ui.LOADED,this.imageState_===Ui.LOADING&&this.ready().then(()=>this.imageState_=Ui.LOADED),this.render()}clone(){const e=this.getScale(),t=new FB({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=Yp.get(i,null)?.getImage(1);if(!r){const s=this.renderOptions_,o=Math.ceil(s.size*e),a=pl(o,o);this.draw_(s,a,e),r=a.canvas;const c=new Ste(r,void 0,null,Ui.LOADED,null);Yp.set(i,null,c),createImageBitmap(r).then(d=>{c.setImage(d)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,s=this.radius2_===void 0?r:this.radius2_;if(r<s){const ie=r;r=s,s=ie}const o=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/o,c=s*Math.sin(a),d=Math.sqrt(s*s-c*c),m=r-d,b=Math.sqrt(c*c+m*m),S=b/c;if(e==="miter"&&S<=i)return S*t;const O=t/2/S,U=t/2*(m/b),W=Math.sqrt((r+O)*(r+O)+U*U)-r;if(this.radius2_===void 0||e==="bevel")return W*2;const q=r*Math.sin(a),V=Math.sqrt(r*r-q*q),J=s-V,re=Math.sqrt(q*q+J*J)/q; Line truncated
`,""),n.push(e,""),n}function eCe(n,e,t){return t%2===0&&(n+=e),n}class tCe{constructor(e,t,i,r,s){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=sf(),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_=s?new MU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const s=e+t+i+r;if(this.labels_[s])return this.labels_[s];const o=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],b=c.justify?t6[c.justify]:c7(Array.isArray(e)?e[0]:e,c.textAlign||T5),S=r&&o.lineWidth?o.lineWidth:0,O=Array.isArray(e)?e:String(e).split(`
`).reduce(Jve,[]),{width:U,height:F,widths:W,heights:q,lineWidths:V}=Mbe(c,O),J=U+S,se=[],re=(J+2)*m[0],ie=(F+S)*m[1],X={width:re<0?Math.floor(re):Math.ceil(re),height:ie<0?Math.floor(ie):Math.ceil(ie),contextInstructions:se};(m[0]!=1||m[1]!=1)&&se.push("scale",m),r&&(se.push("strokeStyle",o.strokeStyle),se.push("lineWidth",S),se.push("lineCap",o.lineCap),se.push("lineJoin",o.lineJoin),se.push("miterLimit",o.miterLimit),se.push("setLineDash",[o.lineDash]),se.push("lineDashOffset",o.lineDashOffset)),i&&se.push("fillStyle",a.fillStyle),se.push("textBaseline","middle"),se.push("textAlign","center");const ce=.5-b;let $=b*J+ce*S;const ue=[],de=[];let _e=0,me=0,xe=0,Pe=0,ke;for(let Ye=0,Je=O.length;Ye<Je;Ye+=2){const je=O[Ye];if(je===`
`){me+=_e,_e=0,$=b*J+ce*S,++Pe;continue}const De=O[Ye+1]||c.font;De!==ke&&(r&&ue.push("font",De),i&&de.push("font",De),ke=De),_e=Math.max(_e,q[xe]);const Ne=[je,$+ce*W[xe]+b*(W[xe]-V[Pe]),.5*(S+_e)+me];$+=W[xe],r&&ue.push("strokeText",Ne),i&&de.push("fillText",Ne),++xe}return Array.prototype.push.apply(se,ue),Array.prototype.push.apply(se,de),this.labels_[s]=X,X}replayTextBackground_(e,t,i,r,s,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,s),e.lineTo.apply(e,t),o&&(this.alignAndScaleFill_=o[2],e.fillStyle=o[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,s,o,a,c,d,m,b,S,O,U,F,W){a*=S[0],c*=S[1];let q=i-a,V=r-c;const J=s+d>e?e-d:s,se=o+m>t?t-m:o,re=U[3]+J*S[0]+U[1],ie=U[0]+se*S[1]+U[2],X=q-U[3],ce=V-U[0];(F||b!==0)&&(cb[0]=X,Ab[0]=X,cb[1]=ce,N1[1]=ce,N1[0]=X+re,G1[0]=N1[0],G1[1]=ce+ie,Ab[1]=G1[1]);let $;return b!==0?($=I0(sf(),i,r,1,1,b,-i,-r),cl($,cb),cl($,N1),cl($,G1),cl($,Ab),cy(Math.min(cb[0],N1[0],G1[0],Ab[0]),Math.min(cb[1],N1[1],G1[1],Ab[1]),Math.max(cb[0],N1[0],G1[0],Ab[0]),Math.max(cb[1],N1[1],G1[1],Ab[1]),r2)):cy(Math.min(X,X+re),Math.min(ce,ce+ie),Math.max(X,X+re),Math.max(ce,ce+ie),r2),O&&(q=Math.round(q),V=Math.round(V)),{drawImageX:q,drawImageY:V,drawImageW:J,drawImageH:se,originX:d,originY:m,declutterBox:{minX:r2[0],minY:r2[1],maxX:r2[2],maxY:r2[3],value:W},canvasTransform:$,scale:S}}replayImageOrLabel_(e,t,i,r,s,o,a){const c=!!(o||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,cb,N1,G1,Ab,o,a),Sbe(e,r.canvasTransform,s,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=cl(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.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 s=this.textStates[t],o=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,d=c7(Array.isArray(e)?e[0]:e,s.textAlign||T5),m=t6[s.textBaseline||HE],b=a&&a.lineWidth?a.lineWidth:0,S=o.width/c-2*s.scale[0],O=d*S+2*(.5-d)*b,U=m*o.height/c+2*(.5-m)*b;return{label:o,anchorX:O,anchorY:U}}execute_(e,t,i,r,s,o,a,c){const d=this.zIndexContext_;let m;this.pixelCoordinates_&&nv(i,this.renderedTransform_)?m=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),m=zb(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),_1e(this.renderedTransform_,i));let b=0;const S=r.length;let O=0,U;const F=[];let W,q,V,J,se,re,ie,X,ce,$,ue,de,_e,me=0,xe=0;const Pe=this.coordinateCache_,ke=this.viewRotation_,Ye=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Je={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ke},je=this.instructions!=r||this.overlaps?0:200;let De,Ne,rt,Ke;for(;b<S;){const Xe=r[b];switch(Xe[0]){case ir.BEGIN_GEOMETRY:De=Xe[1],Ke=Xe[3],De.getGeometry()?a!==void 0&&!Tl(a,Ke.getExtent())?b=Xe[2]+1:++b:b=Xe[2],d&&(d.zIndex=Xe[4]);break;case ir.BEGIN_PATH:me>je&&(this.fill_(e),me=0),xe>je&&(e.stroke(),xe=0),!me&&!xe&&(e.beginPath(),se=NaN,re=NaN),++b;break;case ir.CIRCLE:O=Xe[1],V=Xe[2]??0;const Ct=m[O],Mt=m[O+1],Le=m[O+2]-V,Ie=m[O+3]-V,ve=Le-Ct,it=Ie-Mt,pt=Math.sqrt(ve*ve+it*it);e.moveTo(Ct+pt,Mt),e.arc(Ct,Mt,pt,0,2*Math.PI,!0),++b;break;case ir.CLOSE_PATH:e.closePath(),++b;break;case ir.CUSTOM:O=Xe[1],U=Xe[2];const qe=Xe[3],Bt=Xe[4],It=Xe[5];Je.geometry=qe,Je.feature=De,b in Pe||(Pe[b]=[]);const xt=Pe[b];It?It(m,O,U,2,xt):(xt[0]=m[O],xt[1]=m[O+1],xt.length=2),d&&(d.zIndex=Xe[6]),Bt(xt,Je),++b;break;case ir.DRAW_IMAGE:O=Xe[1],U=Xe[2],ce=Xe[3],W=Xe[4],q=Xe[5];let tn=Xe[6];const ln=Xe[7],Ln=Xe[8],ni=Xe[9],Dn=Xe[10];let Pn=Xe[11];const Qn=Xe[12];let En=Xe[13];J=Xe[14]||"declutter";const bn=Xe[15];if(!ce&&Xe.length>=20){$=Xe[19],ue=Xe[20],de=Xe[21],_e=Xe[22];const Gr=this.drawLabelWithPointPlacement_($,ue,de,_e);ce=Gr.label,Xe[3]=ce;const ps=Xe[23];W=(Gr.anchorX-ps)*this.pixelRatio,Xe[4]=W;const Ms=Xe[24];q=(Gr.anchorY-Ms)*this.pixelRatio,Xe[5]=q,tn=ce.height,Xe[6]=tn,En=ce.width,Xe[13]=En}let bt;Xe.length>25&&(bt=Xe[25]);let Se,Ae,fe;Xe.length>17?(Se=Xe[16],Ae=Xe[17],fe=Xe[18]):(Se=bC,Ae=null,fe=null),Dn&&Ye?Pn+=ke:!Dn&&!Ye&&(Pn-=ke);let ze=0;for(;O<U;O+=2){if(bt&&bt[ze++]<En/this.pixelRatio)continue;const Gr=this.calculateImageOrLabelDimensions_(ce.width,ce.height,m[O],m[O+1],En,tn,W,q,Ln,ni,Pn,Qn,s,Se,!!Ae||!!fe,De),ps=[e,t,ce,Gr,ln,Ae,fe];if(c){let Ms,ms,hs;if(bn){const hr=U-O;if(!bn[hr]){bn[hr]={args:ps,declutterMode:J};continue}const Gi=bn[hr];Ms=Gi.args,ms=Gi.declutterMode,delete bn[hr],hs=oG(Ms)}let sr,hn;if(Ms&&(ms!=="declutter"||!c.collides(hs))&&(sr=!0),(J!=="declutter"||!c.collides(Gr.declutterBox))&&(hn=!0),ms==="declutter"&&J==="declutter"){const Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(cne(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class PCe extends YB{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:LCe,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.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass!==void 0?e.tileClass:Wte,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Ad(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||Ad(t,e)))return this.tileGrid;const i=Yr(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=BU(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,s,o){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,s),d=c?this.tileUrlFunction(c,r,s):void 0,m=new this.tileClass(a,d!==void 0?ai.IDLE:ai.EMPTY,d!==void 0?d:"",{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return m.key=o,m.addEventListener(Br.CHANGE,this.handleTileChange.bind(this)),m}getTile(e,t,i,r,s,o){const a=this.getProjection();if(!a||!s||Ad(a,s))return this.getTileInternal(e,t,i,r,a||s);const c=[e,t,i],d=this.getKey(),m=this.getTileGridForProjection(a),b=this.getTileGridForProjection(s),S=this.getTileCoordForTileUrlFunction(c,s),O=new Vte(a,m,s,b,c,S,this.getTilePixelRatio(r),this.getGutter(),(U,F,W,q)=>this.getTileInternal(U,F,W,q,a,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return O.key=d,O}getTileInternal(e,t,i,r,s,o){const a=this.getKey(),c=XS(this,a,e,t,i);if(o&&o.containsKey(c))return o.get(c);const d=this.createTile_(e,t,i,r,s,a);return o?.set(c,d),d}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Uo(e);if(i){const r=Yr(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function LCe(n,e){if(Ch){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");const s={mode:i,credentials:r,referrerPolicy:n.getReferrerPolicy()};fetch(e,s).then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}`);return o.blob()}).then(o=>createImageBitmap(o)).then(o=>{const a=n.getImage();a.width=o.width,a.height=o.height,a.getContext("2d").drawImage(o,0,0),o.close?.(),a.dispatchEvent(new Event("load"))}).catch(()=>{n.getImage().dispatchEvent(new Event("error"))});return}n.getImage().src=e}class hne extends PCe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Uo("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)_Ce(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=Uo("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const d=Pw(t,i);r=zee(e.bounds,d)}const s=QB(i),o=e.minzoom||0,a=e.maxzoom||22,c=OU({extent:s,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=cne(e.tiles,c),e.attribution&&!this.getAttributions()){const d=r!==void 0?r:s;this.setAttributions(function(m){return Tl(d,m.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}let UCe=!1;function dne(n,e,t,i,r,s,o){const a=new XMLHttpRequest;a.open("GET",typeof n=="function"?n(t,i,r):n,!0),e.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=U Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function $Ce(n,e){const t=yne(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 HCe=class extends Tw{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]=VCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=$Ce(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}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const o=e.inputs[0].data.length,a=4*Math.ceil(o/4/s);for(let c=0;c<s;++c){const d=c*a,m=[];for(let b=0,S=r.length;b<S;++b)m.push(r[b].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 s=e.inputs[0].data.length;i=new Uint8ClampedArray(s),r=new Array(t);const o=4*Math.ceil(s/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,d=a*o;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 pG={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class mG extends ag{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class RU extends gne{constructor(e){super({interpolate:e.interpolate,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_=JCe(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 kee(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:sf(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:XCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:sf(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Yr(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let s=0,o=e.sources.length;s<o;++s){const a=e.sources[s],c=a instanceof r3?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 HCe({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 s=ep(e);r.size[0]=Math.ceil(lo(e)/t),r.size[1]=Math.ceil(Tc(e)/t),r.extent=[s[0]-r.size[0]*t/2,s[1]-r.size[1]*t/2,s[0]+r.size[0]*t/2,s[1]+r.size[1]*t/2],r.time=Date.now();const o=r.viewState;return o.center=s,o.projection=i,o.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 s=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const o=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==o||!Qb(s.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){cons Line truncated
`),r=l_e.slice(0,Math.round(e/.1));for(let s=0,o=i.length;s<o;++s)s>0&&(t+=`
`),t+=i[s].split("").join(r);return t}return n}let p7;function Cne(){return p7||(p7=qB(1,1).getContext("2d")),p7}function u_e(n,e){if(/\d+ \d+/.test(n)){const[t,i]=n.split(" ").map(Number);return t<=e&&e<=i}return n==e}function iC(n,e){return Cne().measureText(n).width+(n.length-1)*e}const s6={};uC.on("propertychange",()=>{for(const n in s6)delete s6[n]});function yR(n,e,t,i){if(n.indexOf(`
`)!==-1){const o=n.split(`
`),a=[];for(let c=0,d=o.length;c<d;++c)a.push(yR(o[c],e,t,i));return a.join(`
`)}const r=t+","+e+","+n+","+i;let s=s6[r];if(!s){const o=n.split(" ");if(o.length>1){const a=Cne();a.font=e;const d=a.measureText("M").width*t;let m="";const b=[];for(let S=0,O=o.length;S<O;++S){const U=o[S],F=m+(m?" ":"")+U;iC(F,i)<=d?m=F:(m&&b.push(m),m=U)}m&&b.push(m);for(let S=0,O=b.length;S<O&&O>1;++S){const U=b[S];if(iC(U,i)<d*.35){const F=S>0?iC(b[S-1],i):1/0,W=S<O-1?iC(b[S+1],i):1/0;b.splice(S,1),O-=1,F<W?(b[S-1]+=" "+U,S-=1):b[S]=U+" "+b[S]}}for(let S=0,O=b.length-1;S<O;++S){const U=b[S],F=b[S+1];if(iC(U,i)>d*.7&&iC(F,i)<d*.6){const W=U.split(" "),q=W.pop();iC(q,i)<d*.2&&(b[S]=W.join(" "),b[S+1]=q+" "+F),O-=1}}s=b.join(`
`)}else s=n;s=gR(s,i),s6[r]=s}return s}const c_e=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],MG={};function A_e(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){if(Ch)return n;let t;for(let i=0,r=n.length;i<r;++i){const s=n[i];if(s in MG)continue;MG[s]=!0;const a=mR(s,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 s=t[i],o=s[0];if(c_e.includes(o))continue;const a=s[1],c=s[2];if(!(await document.fonts.load(`${c} ${a} 16px "${o}"`)).some(m=>m.family.replace(/^['"]|['"]$/g,"").toLowerCase()===o.toLowerCase()&&u_e(m.weight,a)&&m.style===c)){const m=e.replace("{font-family}",o.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",o.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+m+'"]')){const b=document.createElement("link");b.href=m,b.rel="stylesheet",document.head.appendChild(b)}}}})(),n}const h_e={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},d_e={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]},SG=function(n,e){let t=tN(n,e);if(t.result==="error"){const i=eE(n);i!==n&&(t=tN(i,e))}if(t.result==="error"){const i=t.value[0];return console.error("Error parsing expression:",n,i.key,i.message),{evaluate:()=>e.default}}return t.value};let qM,m7;function wi(n,e,t,i,r,s){const o=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[o]||(r[o]={});const a=r[o];if(!a[t]){let c=(n[e]||Mu)[t];const d=oN[`${e}_${n.type}`]&&oN[`${e}_${n.type}`][t];c===void 0&&d&&(c=d.default);let m=DM(c);if(!m&&$S(c)&&(c=rN(c,d),m=!0),m){const b=SG(c,d);a[t]=b.evaluate.bind(b)}else{const b=d?d.type:typeof c;(b==="color"||b==="colorArray")&&(c=kl.parse(c));let S=!1;if(b==="array")for(let O=0;O<c.length;++O){const U=c[O];if(DM(U)||$S(U)){S=!0;break}}if(S){const O=Object.assign({},d,{type:d.value}),U=[];for(let F=0;F<c.length;++F){let W=c[F];if(!DM(W)&&$S(W)&&(W=rN(W,O)),DM(W)){const q=SG(W,O);U.push(q.evaluate.bind(q))}else U.push(function(){return W})}a[t]=function(F,W,q){const V=[];for(let J=0;J<U.length;++J)V[J]=U[J](F,W,q);return V}}else a[t]=function(){return c}}}return a[t](md,i,s)}function EG(n,e,t,i){return wi(n,"layout",`${t}-allow-overlap`,e,i)?wi(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function f_e(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=l0e(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](md,t)}function gb(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 p_e=/\{[^{}}]*\}/g;function g7(n,e){return n.replace(p_e,function(t){return e[t.slice(1,-1)]||""})}function BG(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const m_e={};function g_e(n,e,t,i=eg,r=void 0,s=void 0,o=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.schema)for(const J in e.schema){const se=e.schema[J];"default"in se&&(TU[J]=se.default)}if(e.version!=8)throw new Error("glStyle version 8 required.");m_e[s_e(e,n)]=Array.from(arguments);const c={};(typeof s=="string"||s instanceof Request||s instanceof Response||s instanceof Promise)&&(s={default:s});for(const J in s){const se=s[J];Ix(()=>se).then(async re=>{let ie;if(typeof Image<"u"){const X=new Image;if(typeof re=="string")X.crossOrigin="anonymous",X.src=re;else{let ce;re instanceof Request?ce=await fetch(re):re instanceof Response&&(ce=re);const $=await ce.blob();ie=URL.createObjectURL($),X.src=ie}X.addEventListener("load",function ce(){X.removeEventListener("load",ce),c[J]={image:X,size:[X.width,X.height]},n.changed(),ie&&URL.revokeObjectURL(ie)}),X.addEventListener("error",function ce(){URL.revokeObjectURL(ie),X.removeEventListener("error",ce)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const X=self;X.postMessage({action:"loadImage",src:re}),X.addEventListener("message",function($){$.data.action==="imageLoaded"&&$.data.src===re&&(c[J]={image:$.data.image,size:[$.data.image.width,$.data.image.height]})})}})}const d=RJ(e.layers),m={},b=[],S={},O={},U=LU(e),F=o_e(e);let W;for(let J=0,se=d.length;J<se;++J){const re=d[J],ie=re.id;if(typeof t=="string"&&re.source==t||Array.isArray(t)&&t.indexOf(ie)!==-1){const X=re["source-layer"];if(W){if(re.source!==W)throw new Error(`Layer "${ie}" does not use source "${W}`)}else{W=re.source;const $=e.sources[W];if(!$)throw new Error(`Source "${W}" is not defined`);const ue=$.type;if(ue!=="vector"&&ue!=="geojson")throw new Error(`Source "Line truncated
`)return bt.push(`
`,""),bt;if(de==2)return bt.push(gR(At,Pn),ze),bt;At=yR(At,ze,Qn,Pn).split(`
`);for(let Ot=0,Dt=At.length;Ot<Dt;++Ot)Ot>0&&bt.push(`
`,""),bt.push(At[Ot],ze);return bt},[]):ln=g7(bn,X).trim(),Ct=wi(je,"paint","text-opacity",me,U,xe)}if(ln&&Ct&&!tn){pt||(++Pe,ve=q[Pe],(!ve||!ve.getText()||ve.getFill()||ve.getStroke())&&(ve=new qf,q[Pe]=ve),ve.setImage(void 0),ve.setGeometry(void 0));const En=EG(je,me,"text",U);ve.getText()||ve.setText(qe),qe=ve.getText(),(!qe||"getDeclutterMode"in qe&&qe.getDeclutterMode()!==En)&&(qe=new Tte({padding:[2,2,2,2],declutterMode:En}),ve.setText(qe));const bn=wi(je,"layout","text-transform",me,U,xe);bn=="uppercase"?ln=Array.isArray(ln)?ln.map((qn,Zn)=>Zn%2?qn:qn.toUpperCase()):ln.toUpperCase():bn=="lowercase"&&(ln=Array.isArray(ln)?ln.map((qn,Zn)=>Zn%2?qn:qn.toLowerCase()):ln.toLowerCase());const bt=Array.isArray(ln)?ln:de==2?gR(ln,Pn):yR(ln,Ln,Qn,Pn);if(qe.setText(bt),qe.setFont(Ln),qe.setRotation(f7(wi(je,"layout","text-rotate",me,U,xe))),typeof qe.setKeepUpright=="function"){const qn=wi(je,"layout","text-keep-upright",me,U,xe);qe.setKeepUpright(qn)}const Se=wi(je,"layout","text-anchor",me,U,xe),Ae=pt||de==1?"point":wi(je,"layout","symbol-placement",me,U,xe);let fe;if(Ae==="line-center"?(qe.setPlacement("line"),fe="center"):qe.setPlacement(Ae),Ae==="line"&&typeof qe.setRepeat=="function"){const qn=wi(je,"layout","symbol-spacing",me,U,xe);qe.setRepeat(qn*2)}qe.setOverflow(Ae==="point");let ze=wi(je,"paint","text-halo-width",me,U,xe);const At=wi(je,"layout","text-offset",me,U,xe),Ot=wi(je,"paint","text-translate",me,U,xe);let Dt=0,On=0;if(Ae=="point"){fe="center",Se.indexOf("left")!==-1?(fe="left",On=ze):Se.indexOf("right")!==-1&&(fe="right",On=-ze);const qn=wi(je,"layout","text-rotation-alignment",me,U,xe);qe.setRotateWithView(qn=="map")}else qe.setMaxAngle(f7(wi(je,"layout","text-max-angle",me,U,xe))*ln.length/bt.length),qe.setRotateWithView(!1);qe.setTextAlign(fe);let Gn="middle";Se.indexOf("bottom")==0?(Gn="bottom",Dt=-ze-.5*(ni-1)*Dn):Se.indexOf("top")==0&&(Gn="top",Dt=ze+.5*(ni-1)*Dn),qe.setTextBaseline(Gn);const yt=wi(je,"layout","text-justify",me,U,xe);qe.setJustify(yt==="auto"?void 0:yt),qe.setOffsetX(At[0]*Dn+On+Ot[0]),qe.setOffsetY(At[1]*Dn+Dt+Ot[1]);const Ft=qe.getFill()||new g0;Ft.setColor(gb(wi(je,"paint","text-color",me,U,xe),Ct)),qe.setFill(Ft);const C=gb(wi(je,"paint","text-halo-color",me,U,xe),Ct);if(C&&ze>0){const qn=qe.getStroke()||new Ob;qn.setColor(C),ze*=2;const Zn=.5*Dn;qn.setWidth(ze<=Zn?ze:Zn),qe.setStroke(qn)}else qe.setStroke(void 0);const vn=wi(je,"layout","text-padding",me,U,xe),pi=qe.getPadding();vn!==pi[0]&&(pi[0]=vn,pi[1]=vn,pi[2]=vn,pi[3]=vn),ve.setZIndex(it)}}}if(Pe>-1)return q.length=Pe+1,q};return n.setStyle(V),n.set("mapbox-layers",b),n.set("mapbox-source",W),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),V}const y_e=kl.parse("#000000"),b_e=kl.parse("#FFFFFF"),v_e=kl.parse("#000000");function C_e(n){return new DU({source:new RU({operationType:"image",operation:n_e,sources:[n]})})}function __e(n){return new DU({source:new RU({operationType:"image",operation:t_e,sources:[n]})})}function x_e(n,e,t,i){n.getSource().on("beforeoperations",function(r){md.zoom=VB(r.resolution,t.resolutions||eg),md.distanceFromCenter=0;const s=r.data;s.saturation=wi(e,"paint","raster-saturation",Mu,i),s.contrast=wi(e,"paint","raster-contrast",Mu,i),s.brightnessHigh=wi(e,"paint","raster-brightness-max",Mu,i),s.brightnessLow=wi(e,"paint","raster-brightness-min",Mu,i),s.hueRotate=wi(e,"paint","raster-hue-rotate",Mu,i)})}function w_e(n,e,t,i,r){n.getSource().on("beforeoperations",function(s){const o=s.data;o.resolution=$D(i.projection||"EPSG:3857",s.resolution,ep(s.extent),"m");const a=VB(s.resolution,i.resolutions||eg);md.zoom=a,md.distanceFromCenter=0,o.zoom=a,o.encoding=e.encoding,o.method=wi(t,"paint","hillshade-method",Mu,r)||"standard",o.exaggeration=wi(t,"paint","hillshade-exaggeration",Mu,r);let c=wi(t,"paint","hillshade-illumination-direction",Mu,r);c==null&&(c=335),o.azimuths=Array.isArray(c)?c:[c],o.sunAz=o.azimuths[0];let d=wi(t,"paint","hillshade-illumination-altitude",Mu,r);d==null&&(d=45),o.altitudes=Array.isArray(d)?d:[d];function m(S){return S&&S.values?S.values[0]:S}function b(S){const O=t.paint?.[S];if(Array.isArray(O)&&O.length>0&&typeof O[0]=="string"&&kl.parse(O[0])!==void 0)return O.map(F=>kl.parse(F));let U=wi(t,"paint",S,Mu,r);return U=m(U),U?[U]:void 0}o.highlightColors=b("hillshade-highlight-color"),o.highlightColor=o.highlightColors?.[0]||b_e,o.highlightColors||(o.highlightColors=[o.highlightColor]),o.shadowColors=b("hillshade-shadow-color"),o.shadowColor=o.shadowColors?.[0]||y_e,o.shadowColors||(o.shadowColors=[o.shadowColor]),o.accentColor=m(wi(t,"paint","hillshade-accent-color",Mu,r))||v_e})}const M_e=["raster-saturation","raster-contrast","raster-brightness-max","raster-brightness-min","raster-hue-rotate"];function S_e(n,e,t){let i=null;return function(r){n.paint&&"raster-opacity"in n.paint&&r.frameState.viewState.zoom!==i&&(i=r.frameState.viewState.zoom,delete t[n.id],E_e(n,e,i,t))}}function E_e(n,e,t,i){md.zoom=t,md.distanceFromCenter=0;const r=wi(n,"pai Line truncated
${b}`),F].join(`
${a}`)}return d})(n,"",0)}let bR=[],Bne=[];(()=>{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?Bne:bR).push(t=t+n[e])})();function q_e(n){if(n<768)return!1;for(let e=0,t=bR.length;;){let i=e+t>>1;if(n<bR[i])t=i;else if(n>=Bne[i])e=i+1;else return!0;if(e==t)return!1}}function DG(n){return n>=127462&&n<=127487}const RG=8205;function V_e(n,e,t=!0,i=!0){return(t?One:$_e)(n,e,i)}function One(n,e,t){if(e==n.length)return e;e&&Ine(n.charCodeAt(e))&&Tne(n.charCodeAt(e-1))&&e--;let i=v7(n,e);for(e+=PG(i);e<n.length;){let r=v7(n,e);if(i==RG||r==RG||t&&q_e(r))e+=PG(r),i=r;else if(DG(r)){let s=0,o=e-2;for(;o>=0&&DG(v7(n,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function $_e(n,e,t){for(;e>0;){let i=One(n,e-2,t);if(i<e)return i;e--}return 0}function v7(n,e){let t=n.charCodeAt(e);if(!Tne(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Ine(i)?(t-55296<<10)+(i-56320)+65536:t}function Ine(n){return n>=56320&&n<57344}function Tne(n){return n>=55296&&n<56320}function PG(n){return n<65536?1:2}class uo{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]=Lx(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),A0.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]=Lx(this,e,t);let i=[];return this.decompose(e,t,i,0),A0.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 W4(this),s=new W4(e);for(let o=t,a=t;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new W4(this,e)}iterRange(e,t=this.length){return new kne(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 Dne(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]?uo.empty:e.length<=32?new wu(e):A0.from(wu.split(e,[]))}}class wu extends uo{constructor(e,t=H_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 s=0;;s++){let o=this.text[s],a=r+o.length;if((t?i:a)>=e)return new Z_e(r,a,i,o);r=a+1,i++}}decompose(e,t,i,r){let s=e<=0&&t>=this.length?this:new wu(LG(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let o=i.pop(),a=nE(s.text,o.text.slice(),0,s.length);if(a.length<=32)i.push(new wu(a,o.length+s.length));else{let c=a.length>>1;i.push(new wu(a.slice(0,c)),new wu(a.slice(c)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof wu))return super.replace(e,t,i);[e,t]=Lx(this,e,t);let r=nE(this.text,nE(i.text,LG(this.text,0,e)),t),s=this.length+i.length-(t-e);return r.length<=32?new wu(r,s):A0.from(wu.split(r,[]),s)}sliceString(e,t=this.length,i=`
`){[e,t]=Lx(this,e,t);let r="";for(let s=0,o=0;s<=t&&o<this.text.length;o++){let a=this.text[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.slice(Math.max(0,e-s),t-s)),s=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 s of e)i.push(s),r+=s.length+1,i.length==32&&(t.push(new wu(i,r)),i=[],r=-1);return r>-1&&t.push(new wu(i,r)),t}}class A0 extends uo{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 s=0;;s++){let o=this.children[s],a=r+o.length,c=i+o.lines-1;if((t?c:a)>=e)return o.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let s=0,o=0;o<=t&&s<this.children.length;s++){let a=this.children[s],c=o+a.length;if(e<=c&&t>=o){let d=r&((o<=e?1:0)|(c>=t?2:0));o>=e&&c<=t&&!d?i.push(a):a.decompose(e-o,t-o,i,d)}o=c+1}}replace(e,t,i){if([e,t]=Lx(this,e,t),i.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let o=this.children[r],a=s+o.length;if(e>=s&&t<=a){let c=o.replace(e-s,t-s,i),d=this.lines-o.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let m=this.children.slice();return m[r]=c,new A0(m,this.length-(t-e)+i.length)}return super.replace(s,a,c)}s=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=Lx(this,e,t);let r="";for(let s=0,o=0;s<this.children.length&&o<=t;s++){let a=this.children[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.sliceString(e-o,t-o,i)),o=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof A0))return 0;let i=0,[r,s,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,s+=t){if(r==o||s==a)return i;let c=this.children[r],d=e.children[s];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 O of e)i+=O.lines;if(i<32){let O=[];for(let U of e)U.flatten(O);return new wu(O,t)}let r=Math.max(32,i>>5),s=r<<1,o=r>>1,a=[],c=0,d=-1,m=[];function b(O){let U;if(O.lines>s&&O instanceof A0)for(let F of O.children)b(F);else O.lines>o&&(c>o||!c)?(S(),a.push(O)):O instanceof wu&&c&&(U=m[m.length-1])instanceof wu&&O.lines+U.lines<=32?(c+=O.lines,d+=O.length+1,m[m.length-1]=new wu(U.text.concat(O.text),U.length+1+O.length)):(c+O.lines>r&&S(),c+=O.lines,d+=O.length+1,m.push(O))}function S(){c!=0&&(a.push(m.length==1?m[0]:A0.from(m,d)),d=-1,c=m.length=0)}for(let O of e)b(O);return S(),a.length==1?a[0]:new A0(a,t)}}uo.empty=new wu([""],0);function H_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function nE(n,e,t=0,i=1e9){for(let r=0,s=0,o=!0;s<n.length&&r<=i;s++){let a=n[s],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),o?(e[e.length-1]+=a,o=!1):e.push(a)),r=c+1}return e}function LG(n,e,t){return nE(n,[""],e,t)}class W4{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 wu?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],s=this.offsets[i],o=s>>1,a=r instanceof wu?r.text.length:r.children.length;if(o==(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((s&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof wu){let c=r.text[o+(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[o+(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 wu?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 kne{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new W4(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 Dne{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"&&(uo.prototype[Symbol.iterator]=function(){return this.iter()},W4.prototype[Symbol.iterator]=kne.prototype[Symbol.iterator]=Dne.prototype[Symbol.iterator]=function(){return this});class Z_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 Lx(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function dA(n,e,t=!0,i=!0){return V_e(n,e,t,i)}function X_e(n){return n>=56320&&n<57344}function J_e(n){return n>=55296&&n<56320}function ef(n,e){let t=n.charCodeAt(e);if(!J_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return X_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 h0(n){return n<65536?1:2}const vR=/\r\n?|\n/;var hd=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(hd||(hd={}));class O0{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 s=this.sections[t++],o=this.sections[t++];o<0?(e(i,r,s),r+=s):r+=o,i+=s}}iterChangedRanges(e,t=!1){CR(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 O0(e)}composeDesc(e){return this.empty?e:e.empty?this:Rne(this,e)}mapDesc(e,t=!1){return e.empty?this:_R(this,e,t)}mapPos(e,t=-1,i=hd.Simple){let r=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],c=this.sections[o++],d=r+a;if(c<0){if(d>e)return s+(e-r);s+=a}else{if(i!=hd.Simple&&d>=e&&(i==hd.TrackDel&&r<e&&d>e||i==hd.TrackBefore&&r<e||i==hd.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!a)return e==r||t<0?s:s+c;s+=c}r=d}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let s=this.sections[i++],o=this.sections[i++],a=r+s;if(o>=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 O0(e)}static create(e){return new O0(e)}}class Bc extends O0{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 CR(this,(t,i,r,s,o)=>e=e.replace(r,r+(i-t),o),!1),e}mapDesc(e,t=!1){return _R(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,s=0;r<t.length;r+=2){let o=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=o;let c=r>>1;for(;i.length<c;)i.push(uo.empty);i.push(o?e.slice(s,s+o):uo.empty)}s+=o}return new Bc(t,i)}compose(e){return this.empty?e:e.empty?this:Rne(this,e,!0)}map(e,t=!1){return e.empty?this:_R(this,e,t,!0)}iterChanges(e,t=!1){CR(this,e,t)}get desc Line truncated
`}get readOnly(){return this.facet(Nne)}phrase(e,...t){for(let i of this.facet(ao.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 s=+(r||1);return!s||s>t.length?i:t[s-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let s of this.facet(Une))for(let o of s(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return c2e(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,a=e-i;for(;o>0;){let c=dA(t,o,!1);if(s(t.slice(c,o))!=fl.Word)break;o=c}for(;a<r;){let c=dA(t,a);if(s(t.slice(a,c))!=fl.Word)break;a=c}return o==a?null:yn.range(o+i,a+i)}}ao.allowMultipleSelections=MR;ao.tabSize=Bi.define({combine:n=>n.length?n[0]:4});ao.lineSeparator=Kne;ao.readOnly=Nne;ao.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])}});ao.languageData=Une;ao.changeFilter=Fne;ao.transactionFilter=zne;ao.transactionExtender=jne;Yw.reconfigure=os.define();function ug(n,e,t={}){let i={};for(let r of n)for(let s of Object.keys(r)){let o=r[s],a=i[s];if(a===void 0)i[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,s))i[s]=t[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Vb{eq(e){return this==e}range(e,t=e){return BR.create(e,t,this)}}Vb.prototype.startSide=Vb.prototype.endSide=0;Vb.prototype.point=!1;Vb.prototype.mapMode=hd.TrackDel;function zU(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let BR=class Qne{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Qne(e,t,i)}};function OR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class jU{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 s=i?this.to:this.from;for(let o=r,a=s.length;;){if(o==a)return o;let c=o+a>>1,d=s[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==o)return d>=0?o:a;d>=0?a=c:o=c+1}}between(e,t,i,r){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,s);s<o;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let i=[],r=[],s=[],o=-1,a=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],m=this.from[c]+e,b=this.to[c]+e,S,O;if(m==b){let U=t.mapPos(m,d.startSide,d.mapMode);if(U==null||(S=O=U,d.startSide!=d.endSide&&(O=t.mapPos(m,d.endSide),O<S)))continue}else if(S=t.mapPos(m,d.startSide),O=t.mapPos(b,d.endSide),S>O||S==O&&d.startSide>0&&d.endSide<=0)continue;(O-S||d.endSide-d.startSide)<0||(o<0&&(o=S),d.point&&(a=Math.max(a,O-S)),i.push(d),r.push(S-o),s.push(O-o))}return{mapped:i.length?new jU(r,s,i,a):null,pos:o}}}class bs{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 bs(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:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(OR)),this.isEmpty)return t.length?bs.of(t):this;let a=new Yne(this,null,-1).goto(0),c=0,d=[],m=new hy;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let b=t[c++];m.addInner(b.from,b.to,b.value)||d.push(b)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&m.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||s<a.from||o(a.from,a.to,a.value))&&(m.addInner(a.from,a.to,a.value)||d.push(BR.create(a.from,a.to,a.value))),a.next());return m.finishInner(this.nextLayer.isEmpty&&!d.length?bs.empty:this.nextLayer.update({add:d,filter:o,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],c=this.chunk[o],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:b}=c.map(a,e);m&&(r=Math.max(r,m.maxPoint),t.push(m),i.push(b))}}let s=this.nextLayer.map(e);return t.length==0?s:new bs(i,t,s||bs.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r];if(t>=s&&e<=s+o.length&&o.between(s,e-s,t-s,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,s=-1){let o=e.filter(b=>b.maxPoint>0 Line truncated
`)}static newName(){let e=NG[jG]||1;return NG[jG]=e+1,kR+e.toString(36)}static mount(e,t,i){let r=e[DR],s=i&&i.nonce;r?s&&r.setNonce(s):r=new h2e(e,s),r.mount(Array.isArray(t)?t:[t],e)}}let GG=new Map;class h2e{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=GG.get(i);if(s)return e[DR]=s;this.sheet=new r.CSSStyleSheet,GG.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[DR]=this}mount(e,t){let i=this.sheet,r=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],c=this.modules.indexOf(a);if(c<s&&c>-1&&(this.modules.splice(c,1),s--,c=-1),c==-1){if(this.modules.splice(s++,0,a),i)for(let d=0;d<a.rules.length;d++)i.insertRule(a.rules[d],r++)}else{for(;s<c;)r+=this.modules[s++].rules.length;r+=a.rules.length,s++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let c=0;c<this.modules.length;c++)o+=this.modules[c].getRules()+`
`;this.styleTag.textContent=o;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 Hb={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:"'"},z5={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},d2e=typeof navigator<"u"&&/Mac/.test(navigator.platform),f2e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var KA=0;KA<10;KA++)Hb[48+KA]=Hb[96+KA]=String(KA);for(var KA=1;KA<=24;KA++)Hb[KA+111]="F"+KA;for(var KA=65;KA<=90;KA++)Hb[KA]=String.fromCharCode(KA+32),z5[KA]=String.fromCharCode(KA);for(var _7 in Hb)z5.hasOwnProperty(_7)||(z5[_7]=Hb[_7]);function p2e(n){var e=d2e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||f2e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?z5:Hb)[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 _a(){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++)qne(n,arguments[e]);return n}function qne(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++)qne(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let ld=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},RR=typeof document<"u"?document:{documentElement:{style:{}}};const PR=/Edge\/(\d+)/.exec(ld.userAgent),Vne=/MSIE \d/.test(ld.userAgent),LR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ld.userAgent),$B=!!(Vne||LR||PR),WG=!$B&&/gecko\/(\d+)/i.test(ld.userAgent),x7=!$B&&/Chrome\/(\d+)/.exec(ld.userAgent),QG="webkitFontSmoothing"in RR.documentElement.style,UR=!$B&&/Apple Computer/.test(ld.vendor),YG=UR&&(/Mobile\/\w+/.test(ld.userAgent)||ld.maxTouchPoints>2);var mi={mac:YG||/Mac/.test(ld.platform),windows:/Win/.test(ld.platform),linux:/Linux|X11/.test(ld.platform),ie:$B,ie_version:Vne?RR.documentMode||6:LR?+LR[1]:PR?+PR[1]:0,gecko:WG,gecko_version:WG?+(/Firefox\/(\d+)/.exec(ld.userAgent)||[0,0])[1]:0,chrome:!!x7,chrome_version:x7?+x7[1]:0,ios:YG,android:/Android\b/.test(ld.userAgent),webkit:QG,webkit_version:QG?+(/\bAppleWebKit\/(\d+)/.exec(ld.userAgent)||[0,0])[1]:0,safari:UR,safari_version:UR?+(/\bVersion\/(\d+(\.\d+)?)/.exec(ld.userAgent)||[0,0])[1]:0,tabSize:RR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function NU(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 l6=Object.create(null);function GU(n,e,t){if(n==e)return!0;n||(n=l6),e||(e=l6);let i=Object.keys(n),r=Object.keys(e);if(i.length-0!=r.length-0)return!1;for(let s of i)if(s!=t&&(r.indexOf(s)==-1||n[s]!==e[s]))return!1;return!0}function m2e(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 qG(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 g2e(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 yy{eq(e){return!1}updateDOM(e,t,i){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 zA=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(zA||(zA={}));class xr extends Vb{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static Line truncated
`,r=n.state.doc.line(r.number+(t?1:-1)),s=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 rxe(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return s=>{let o=i(s);return r==fl.Space&&(r=o),r==o}}function sxe(n,e,t,i){let r=e.head,s=t?1:-1;if(r==(t?n.state.doc.length:0))return yn.cursor(r,e.assoc);let o=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),d=n.coordsAtPos(r,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),m=n.documentTop;if(d)o==null&&(o=d.left-c.left),a=s<0?d.top:d.bottom;else{let U=n.viewState.lineBlockAt(r);o==null&&(o=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-U.from))),a=(s<0?U.top:U.bottom)+m}let b=c.left+o,S=n.viewState.heightOracle.textHeight>>1,O=i??S;for(let U=0;;U+=S){let F=a+(O+U)*s,W=QR(n,{x:b,y:F},!1,s);if(t?F>c.bottom:F<c.top)return yn.cursor(W.pos,W.assoc);let q=n.coordsAtPos(W.pos,W.assoc),V=q?(q.top+q.bottom)/2:0;if(!q||(t?V>a:V<a))return yn.cursor(W.pos,W.assoc,void 0,o)}}function V4(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let c=i||t||(e-s<o-e?-1:1);e=c<0?s:o,i=c}});if(!i)return e}}function Mie(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],s=null;if(r.empty){let o=V4(n,r.from,0);o!=r.from&&(s=yn.cursor(o,-1))}else{let o=V4(n,r.from,-1),a=V4(n,r.to,1);(o!=r.from||a!=r.to)&&(r.undirectional?s=yn.undirectionalRange(r.from,r.to):s=yn.range(r.from==r.anchor?o:a,r.from==r.head?o:a))}s&&(t||(t=e.ranges.slice()),t[i]=s)}return t?yn.create(t,e.mainIndex):e}function B7(n,e,t){let i=V4(n.state.facet($w).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:yn.cursor(i,i<t.from?1:-1)}class d0{constructor(e,t){this.pos=e,this.assoc=t}}function QR(n,e,t,i){let r=n.contentDOM.getBoundingClientRect(),s=r.top+n.viewState.paddingTop,{x:o,y:a}=e,c=a-s,d;for(;;){if(c<0)return new d0(0,1);if(c>n.viewState.docHeight)return new d0(n.state.doc.length,-1);if(d=n.elementAtHeight(c),i==null)break;if(d.type==zA.Text){if(i<0?d.to<n.viewport.from:d.from>n.viewport.to)break;let S=n.docView.coordsAt(i<0?d.from:d.to,i>0?-1:1);if(S&&(i<0?S.top<=c+s:S.bottom>=c+s))break}let b=n.viewState.heightOracle.textHeight/2;c=i>0?d.bottom+b:d.top-b}if(n.viewport.from>=d.to||n.viewport.to<=d.from){if(t)return null;if(d.type==zA.Text){let b=nxe(n,r,d,o,a);return new d0(b,b==d.from?1:-1)}}if(d.type!=zA.Text)return c<(d.top+d.bottom)/2?new d0(d.from,1):new d0(d.to,-1);let m=n.docView.lineAt(d.from,2);return(!m||m.length!=d.length)&&(m=n.docView.lineAt(d.from,-2)),new oxe(n,o,a,n.textDirectionAt(d.from)).scanTile(m,d.from)}class oxe{constructor(e,t,i,r){this.view=e,this.x=t,this.y=i,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[y0.find(r,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[y0.find(r,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:r}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+r.from<t)}scan(e,t,i=!1){let r=0,s=e.length-1,o=new Set,a=this.bidiIn(e[0],e[s]),c,d,m=-1,b=1e9,S;e:for(;r<s;){let U=s-r,F=r+s>>1;t:if(o.has(F)){for(let V=1;V<U;V++){let J=F+V;if(J>=s&&(J-=U),!o.has(J)){F=J;break t}}break e}o.add(F);let W=t(F),q=0;if(W)for(let V=0;V<W.length;V++){let J=W[V];if(!(J.width==0&&W.length>1))if(J.bottom<this.y)(!c||c.bottom<J.bottom)&&(c=J),q=1;else if(J.top>this.y)(!d||d.top>J.top)&&(d=J),q=-1;else{let se=J.left>this.x?this.x-J.left:J.right<this.x?this.x-J.right:0,re=Math.abs(se);re<b&&(m=F,b=re,S=J),se&&(q=se<0==(this.baseDir==Ma.LTR)?-1:1)}}q==-1&&(!a||this.baseDirAt(e[F],1))?s=F:q==1&&(!a||this.baseDirAt(e[F+1],-1))&&(r=F+1)}if(!S){if(!d&&!c)return{i:e[0],after:!1};let U=c&&(!d||this.y-c.bottom<d.top-this.y)?c:d;return this.y=(U.top+U.bottom)/2,this.scan(e,t,!0)}if(b&&!i){let{top:U,bottom:F}=S;if(c&&c.bottom>(U+U+F)/3)return this.y=c.bottom-1,this.scan(e,t,!0);if(d&&d.top<(U+F+F)/3)return this.y=d.top+1,this.scan(e,t,!0)}let O=(a?this.dirAt(e[m],1):this.baseDir)==Ma.LTR;return{i:m,after:this.x>(S.left+S.right)/2==O}}scanText(e,t){let i=[];for(let s=0;s<e.length;s=dA(e.text,s))i.push(t+s);i.push(t+e.length);let r=this.scan(i,s=>{let o=i[s]-t,a=i[s+1]-t;return G5(e.dom,o,a).getClientRects()});return r.after?new d0(i[r.i+1],-1):new d0(i[r.i],1)}scanTile(e,t){if(!e.length)return new d0(t,1);if(e.children.length==1){let a=e.children[0];if(a.isText())return this.scanText(a,t);if(a.isComposite())return this.scanTile(a,t)}let i=[t];for(let a=0,c=t;a<e.children.length;a++)i.push(c+=e.children[a].length);let r=this.scan(i,a=>{let c=e.children[a];return c.flags&48?null:(c.dom.nodeType==1?c.dom:G5(c.dom,0,c.length)).getClientRects()}),s=e.children[r.i],o=i[r.i];return s.isText()?this.scanText(s,o):s.isComposite()?this.scanTile(s,o):r.after?new d0(i[r.i+1],-1):new d0(o,1)}}const K2="￿";cl Line truncated
`&&n.lineWrapping&&(i&&(i=yn.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:uo.of([" "])}),t)return HU(n,t,i,o);if(i&&!f6(i,s)){let a=!1,c="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(a=!0),c=n.inputState.lastSelectionOrigin,c=="select.pointer"&&(i=Mie(r.facet($w).map(d=>d(n)),i))),n.dispatch({selection:i,scrollIntoView:a,userEvent:c}),!0}else return!1}function HU(n,e,t,i=-1){if(mi.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(mi.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&&Ax(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)&&Ax(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Ax(n.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,a=()=>o||(o=Axe(n,e,t));return n.state.facet(die).some(c=>c(n,e.from,e.to,s,a))||n.dispatch(a()),!0}function Axe(n,e,t){let i,r=n.state,s=r.selection.main,o=-1;if(e.from==e.to&&e.from<s.from||e.from>s.to){let c=e.from<s.from?-1:1,d=c<0?s.from:s.to,m=V4(r.facet($w).map(b=>b(n)),d,c);e.from==m&&(o=m)}if(o>-1)i={changes:e,selection:yn.cursor(e.from+e.insert.length,-1)};else if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=s.from<e.from?r.sliceDoc(s.from,e.from):"",d=s.to>e.to?r.sliceDoc(e.to,s.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<=s.to+10&&e.to>=s.to-10){let m=n.state.sliceDoc(e.from,e.to),b,S=t&&wie(n,t.main.head);if(S){let U=e.insert.length-(e.to-e.from);b={from:S.from,to:S.to-U}}else b=n.state.doc.lineAt(s.head);let O=s.to-e.to;i=r.changeByRange(U=>{if(U.from==s.from&&U.to==s.to)return{changes:c,range:d||U.map(c)};let F=U.to-O,W=F-m.length;if(n.state.sliceDoc(W,F)!=m||F>=b.from&&W<=b.to)return{range:U};let q=r.changes({from:W,to:F,insert:e.insert}),V=U.to-s.to;return{changes:q,range:d?yn.range(Math.max(0,d.anchor+V),Math.max(0,d.head+V)):U.map(q)}})}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 Bie(n,e,t,i){let r=Math.min(n.length,e.length),s=0;for(;s<r&&n.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&n.length==e.length)return null;let o=n.length,a=e.length;for(;o>0&&a>0&&n.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(i=="end"){let c=Math.max(0,s-Math.min(o,a));t-=o+c-s}if(o<s&&n.length<e.length){let c=t<=s&&t>=o?s-t:0;s-=c,a=s+(a-o),o=s}else if(a<s){let c=t<=s&&t>=a?s-t:0;s-=c,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function hxe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:s}=n.observer.selectionRange;return t&&(e.push(new tW(t,i)),(r!=t||s!=i)&&e.push(new tW(r,s))),e}function dxe(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?yn.single(t+e,i+e):null}function f6(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class fxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,mi.safari&&e.contentDOM.addEventListener("input",()=>null),mi.gecko&&Ixe(e.contentDOM.ownerDocument)}handleEvent(e){!xxe(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}}}} Line truncated
`))};if((mi.mac||mi.android)&&b.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(b={from:a,to:c,insert:uo.of([i.text.replace("."," ")])}),this.pendingContextChange=b,!e.state.readOnly){let S=this.to-this.from+(b.to-b.from+b.insert.length);HU(e,b,yn.single(this.toEditorPos(i.selectionStart,S),this.toEditorPos(i.selectionEnd,S)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),b.from<b.to&&!b.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=[],s=null;for(let o=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);o<a;o++){let c=e.coordsForChar(o);s=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||s||new DOMRect,r.push(s)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let s of i.getTextFormats()){let o=s.underlineStyle,a=s.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(a)){let c=this.toEditorPos(s.rangeStart),d=this.toEditorPos(s.rangeEnd);if(c<d){let m=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(xr.mark({attributes:{style:m}}).range(c,d))}}}e.dispatch({effects:yie.of(xr.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=>{let r=N5(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((s,o,a,c,d)=>{if(i)return;let m=d.length-(o-s);if(r&&o>=r.to)if(r.from==s&&r.to==o&&r.insert.eq(d)){r=this.pendingContextChange=null,t+=m,this.to+=m;return}else r=null,this.revertPending(e.state);if(s+=t,o+=t,o<=this.from)this.from+=m,this.to+=m;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+d.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),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 Mi{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.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,ZR),p3e={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 T7=null;function m3e(){var n;if(T7==null&&typeof document<"u"&&document.body){let e=document.body.style;T7=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return T7||!1}const aE=Bi.define({combine(n){let e=ug(n,{render:null,specialChars:f3e,addSpecialChars:null});return(e.replaceTabs=!m3e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,ZR)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,ZR)),e}});function g3e(n={}){return[aE.of(n),y3e()]}let xW=null;function y3e(){return xW||(xW=Eu.fromClass(class{constructor(n){this.view=n,this.decorations=xr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(aE)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new d3e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,s=ef(e[0],0);if(s==9){let o=r.lineAt(i),a=t.state.tabSize,c=s3(o.text,a,i-o.from);return xr.replace({widget:new _3e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=xr.replace({widget:new C3e(n,s)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(aE);n.startState.facet(aE)!=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 b3e="•";function v3e(n){return n>=32?b3e:n==10?"␤":String.fromCharCode(9216+n)}class C3e extends yy{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=v3e(this.code),i=e.state.phrase("Control character")+" "+(p3e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let s=document.createElement("span");return s.textContent=t,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class _3e extends yy{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 x3e(){return M3e}const w3e=xr.line({class:"cm-activeLine"}),M3e=Eu.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(w3e.range(r.from)),e=r.from)}return xr.set(t)}},{decorations:n=>n.decorations}),XR=2e3;function S3e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),s=[];if(e.off>XR||t.off>XR||e.col<0||t.col<0){let o=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&&s.push(yn.range(d.from+o,d.to+a))}}else{let o=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=TR(d.text,o,n.tabSize,!0);if(m<0)s.push(yn.cursor(d.to));else{let b=TR(d.text,a,n.tabSize);s.push(yn.range(d.from+m,d.from+b))}}}return s}function E3e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function wW(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,s=r>XR?-1:r==i.length?E3e(n,e.clientX):s3(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:s,off:r}}function B3e(n,e){let t=wW(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(t.line).from),o=r.state.doc.lineAt(s);t={line:o.number,col:t.col,off:Math.min(t.off,o.length)},i=i.map(r.changes)}},get(r,s,o){let a=wW(n,r);if(!a)return i;let c=S3e(n.state,t,a);return c.length?o?yn.create(c.concat(i.ranges)):yn.create(c):i}}:null}function O3e(n){let e=(t=>t.altKey&&t.button==0);return Mi.mouseSelectionStyle.of((t,i)=>e(i)?B3e(t,i):null)}const I3e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},T3e={style:"cursor: crosshair"};function k3e(n={}){let[e,t]=I3e[n.key||"Alt"],i=Eu.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,Mi.contentAttributes.of(r=>{var s;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 Fwe(this):new Uwe(this)}getCursor(e,t=0,i){let r=e.doc?e:ao.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?z2(this,r,t,i):F2(this,r,t,i)}}class sse{constructor(e){this.spec=e}}function F2(n,e,t,i){return new Nx(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?Lwe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Lwe(n,e){return(t,i,r,s)=>((s>t||s+r.length<i)&&(s=Math.max(0,t-2),r=n.sliceString(s,Math.min(n.length,i+2))),(e(E6(r,t-s))!=fl.Word||e(B6(r,t-s))!=fl.Word)&&(e(B6(r,i-s))!=fl.Word||e(E6(r,i-s))!=fl.Word))}class Uwe extends sse{constructor(e){super(e)}nextMatch(e,t,i){let r=F2(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let s=Math.min(e.doc.length,t+this.spec.unquoted.length);r=F2(this.spec,e,0,s).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let s=Math.max(t,r-1e4-this.spec.unquoted.length),o=F2(this.spec,e,s,r),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(s==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=F2(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 s=F2(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function z2(n,e,t,i){return new nse(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?Kwe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function E6(n,e){return n.slice(dA(n,e,!1),e)}function B6(n,e){return n.slice(e,dA(n,e))}function Kwe(n){return(e,t,i)=>!i[0].length||(n(E6(i.input,i.index))!=fl.Word||n(B6(i.input,i.index))!=fl.Word)&&(n(B6(i.input,i.index+i[0].length))!=fl.Word||n(E6(i.input,i.index+i[0].length))!=fl.Word)}class Fwe extends sse{nextMatch(e,t,i){let r=z2(this.spec,e,i,e.doc.length).next();return r.done&&(r=z2(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let s=Math.max(t,i-r*1e4),o=z2(this.spec,e,s,i),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==t||a.from>s+10))return a;if(s==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 s=+i.slice(0,r);if(s>0&&s<e.match.length)return e.match[s]+i.slice(r)}return t})}matchAll(e,t){let i=z2(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 s=z2(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const $5=os.define(),hK=os.define(),jb=Dc.define({create(n){return new W7(AP(n).create(),null)},update(n,e){for(let t of e.effects)t.is($5)?n=new W7(t.value.create(),n.panel):t.is(hK)&&(n=new W7(n.query,t.value?dK:null));return n},provide:n=>Q5.from(n,e=>e.panel)});class W7{constructor(e,t){this.query=e,this.panel=t}}const zwe=xr.mark({class:"cm-searchMatch"}),jwe=xr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Nwe=Eu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(jb))}update(n){let e=n.state.field(jb);(e!=n.startState.field(jb)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return xr.none;let{view:t}=this,i=new hy;for(let r=0,s=t.visibleRanges,o=s.length;r<o;r++){let{from:a,to:c}=s[r];for(;r<o-1&&c>s[r+1].from-500;)c=s[++r].to;n.highlight(t.state,a,c,(d,m)=>{let b=t.state.selection.ranges.some(S=>S.from==d&&S.to==m);i.add(d,m,b?jwe:zwe)})}return i.finish()}},{decorations:n=>n.decorations});function Jw(n){return e=>{let t=e.state.field(jb,!1);return t&&t.query.spec.valid?n(e,t):lse(e)}}const O6=Jw((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=yn.single(i.from,i.to),s=n.state.facet(a3);return n.dispatch({selection:r,effects:[fK(n,i),s.scrollToMatch(r.main,n)],userEvent:"select.search"}),ase(n),!0}),I6=Jw((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let s=yn.single(r.from,r.to),o=n.state.facet(a3);return n.dispatch({selection:s,effects:[fK(n,r),o.scrollToMatch(s.main,n)],userEvent:"select.search"}),ase(n),!0}),Gwe=Jw((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:yn.cre Line truncated
`)}var Ln={extraLines:2,tabSize:4},ni=function(Pn,Qn,En,bn){bn=xt({},Ln,bn);var bt=Pn.split(/\r\n?|\n|\f/),Se=Math.max(1,Qn-bn.extraLines)-1,Ae=Math.min(Qn+bn.extraLines,bt.length),fe=String(Ae).length,ze=ln(bt,Se,Qn,fe,bn),At=tn(bt[Qn-1].substring(0,En-1),Qn,fe,bn),Ot=qe(" ",At.length)+"^",Dt=ln(bt,Qn,Ae,fe,bn);return[ze,Ot,Dt].filter(Boolean).join(`
`)};return ni})}),d=new Error().stack,m=(function(Ie){var ve=Object.create(SyntaxError.prototype);return Object.assign(ve,Ie,{name:"SyntaxError"}),Object.defineProperty(ve,"stack",{get:function(){return d?d.replace(/^(.+\n){1,3}/,String(ve)+`
`):""}}),ve}),b=(function(Ie,ve,it,pt,qe){throw m({message:pt?Ie+`
`+c(ve,pt,qe):Ie,rawMessage:Ie,source:it,line:pt,column:qe})}),S={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(ve){for(var it=arguments.length,pt=Array(it>1?it-1:0),qe=1;qe<it;qe++)pt[qe-1]=arguments[qe];return"Unexpected token <"+ve+"> at "+pt.filter(Boolean).join(":")}},O={unexpectedSymbol:function(ve){for(var it=arguments.length,pt=Array(it>1?it-1:0),qe=1;qe<it;qe++)pt[qe-1]=arguments[qe];return"Unexpected symbol <"+ve+"> at "+pt.filter(Boolean).join(":")}},U={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},F={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},q={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},V={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},J={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function se(Ie){return Ie>="1"&&Ie<="9"}function re(Ie){return Ie>="0"&&Ie<="9"}function ie(Ie){return re(Ie)||Ie>="a"&&Ie<="f"||Ie>="A"&&Ie<="F"}function X(Ie){return Ie==="e"||Ie==="E"}function ce(Ie,ve,it,pt){var qe=Ie.charAt(ve);if(qe==="\r")ve++,it++,pt=1,Ie.charAt(ve)===`
`&&ve++;else if(qe===`
`)ve++,it++,pt=1;else if(qe===" "||qe===" ")ve++,pt++;else return null;return{index:ve,line:it,column:pt}}function $(Ie,ve,it,pt){var qe=Ie.charAt(ve);return qe in F?{type:F[qe],line:it,column:pt+1,index:ve+1,value:null}:null}function ue(Ie,ve,it,pt){for(var qe in W)if(W.hasOwnProperty(qe)&&Ie.substr(ve,qe.length)===qe)return{type:W[qe],line:it,column:pt+qe.length,index:ve+qe.length,value:qe};return null}function de(Ie,ve,it,pt){for(var qe=ve,Bt=q._START_;ve<Ie.length;){var It=Ie.charAt(ve);switch(Bt){case q._START_:{if(It==='"')ve++,Bt=q.START_QUOTE_OR_CHAR;else return null;break}case q.START_QUOTE_OR_CHAR:{if(It==="\\")ve++,Bt=q.ESCAPE;else{if(It==='"')return ve++,{type:U.STRING,line:it,column:pt+ve-qe,index:ve,value:Ie.slice(qe,ve)};ve++}break}case q.ESCAPE:{if(It in V){if(ve++,It==="u")for(var xt=0;xt<4;xt++){var tn=Ie.charAt(ve);if(tn&&ie(tn))ve++;else return null}Bt=q.START_QUOTE_OR_CHAR}else return null;break}}}}function _e(Ie,ve,it,pt){var qe=ve,Bt=ve,It=J._START_;e:for(;ve<Ie.length;){var xt=Ie.charAt(ve);switch(It){case J._START_:{if(xt==="-")It=J.MINUS;else if(xt==="0")Bt=ve+1,It=J.ZERO;else if(se(xt))Bt=ve+1,It=J.DIGIT;else return null;break}case J.MINUS:{if(xt==="0")Bt=ve+1,It=J.ZERO;else if(se(xt))Bt=ve+1,It=J.DIGIT;else return null;break}case J.ZERO:{if(xt===".")It=J.POINT;else if(X(xt))It=J.EXP;else break e;break}case J.DIGIT:{if(re(xt))Bt=ve+1;else if(xt===".")It=J.POINT;else if(X(xt))It=J.EXP;else break e;break}case J.POINT:{if(re(xt))Bt=ve+1,It=J.DIGIT_FRACTION;else break e;break}case J.DIGIT_FRACTION:{if(re(xt))Bt=ve+1;else if(X(xt))It=J.EXP;else break e;break}case J.EXP:{if(xt==="+"||xt==="-")It=J.EXP_DIGIT_OR_SIGN;else if(re(xt))Bt=ve+1,It=J.EXP_DIGIT_OR_SIGN;else break e;break}case J.EXP_DIGIT_OR_SIGN:{if(re(xt))Bt=ve+1;else break e;break}}ve++}return Bt>0?{type:U.NUMBER,line:it,column:pt+Bt-qe,index:Bt,value:Ie.slice(qe,Bt)}:null}var me=function(ve,it){for(var pt=1,qe=1,Bt=0,It=[];Bt<ve.length;){var xt=[ve,Bt,pt,qe],tn=ce.apply(void 0,xt);if(tn){Bt=tn.index,pt=tn.line,qe=tn.column;continue}var ln=$.apply(void 0,xt)||ue.apply(void 0,xt)||de.apply(void 0,xt)||_e.apply(void 0,xt);if(ln){var Ln={type:ln.type,value:ln.value,loc:a(pt,qe,Bt,ln.line,ln.column,ln.index,it.source)};It.push(Ln),Bt=ln.index,pt=ln.line,qe=ln.column}else b(O.unexpectedSymbol(o(ve,Bt,Bt+1),it.source,pt,qe),ve,it.source,pt,qe)}return It},xe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Pe={_START_:0,KEY:1,COLON:2},ke={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Ye={loc:!0,source:null};function Je(Ie,ve,it){var pt=ve.length>0?ve[ve.length-1].loc.end:{line:1,column:1};b(S.unexpectedEnd(),Ie,it.source,pt.line,pt.column)}function je(Ie){for(var ve=0,it=0;it<4;it++)ve=ve*16+parseInt(Ie[it],16);return String.fromCharCode(ve)}var De={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ne=['"',"\\","/"];function rt(Ie){for(var ve="",it=0;it<Ie.length;it++){var pt=Ie.charAt(it);if(pt==="\\"){it++;var qe=Ie.charAt(it);if(qe==="u")ve+=je(Ie.substr(it+1,4)),it+=4;else if(Ne.indexOf(qe)!==-1)ve+=qe;else if(qe in De)ve+=De[qe];else break}else ve+=pt}return ve}function Ke(Ie,ve,it,pt){for(var qe=void 0,Bt={type:"Object",children:[]},It=xe._START_;it<ve.length;){var xt=ve[it];switch(It){case xe._START_:{if(xt.type===U.LEFT_BRACE)qe=xt,It=xe.OPEN_OBJECT,it++;else return null;break}case xe.OPEN_OBJECT:{if(xt.type===U.RIGHT_BRACE)return pt.loc&&(Bt.loc=a(qe.loc.start.line,qe.loc.start.column,qe.loc.start.offset,xt.loc.end.line,xt.loc.end.column,xt.loc.end.offset,pt.source)),{value:Bt,index:it+1};var tn=Xe(Ie,ve,it,pt);Bt.children.push(tn.value),It=xe.PROPERTY,it=tn.index;break}case xe.PROPERTY:{if(xt.type===U.RIGHT_BRACE)return pt.loc&&(Bt.loc=a(qe.loc.start.line,qe.loc.start.column,qe.loc.start.offset,xt.loc.end.line,xt.loc.end.column,xt.loc.end.offset,pt.source)),{value:Bt,index:it+1};xt.type===U.COMMA?(It=xe.COMMA,it++):b(S.unexpectedToken(o(Ie,xt.loc.start.offset,xt.loc.end.offset),pt.source,xt.loc.start.line,xt.loc.start.column),Ie,pt.source,xt.loc.start.line,xt.loc.start.column);break}case xe.COMMA:{var ln=Xe(Ie,ve,it,pt);ln?(it=ln.index,Bt.children.push(ln.value),It=xe.PROPERTY):b(S.unexpectedToken(o(Ie,xt.loc.start.offset,xt.loc.end.offset),pt.source,xt.loc.start.line,xt.loc.start.column),Ie,pt.source,xt.loc.start.line,xt.loc.start.column);break}}}Je(Ie,ve,pt)}function Xe(Ie,ve,it,pt){for(var qe=void 0,Bt={type:"Property",key:null,value:null},It=Pe._START_;it<ve.length;){var xt=ve[it];switch(It){case Pe._START_:{if(xt.type===U.STRING){var tn={type:"Identifier",value:rt(Ie.slice(xt.loc.start.offset+1,xt.loc.end.offset-1)),raw:xt.value};pt.loc&&(tn.loc=xt.loc),qe=xt,Bt.key=tn,It=Pe.KEY,it++}else return null;break}case Pe.KEY:{xt.type===U.COLON?(It=Pe.COLON,it++):b(S.unexpectedToken(o(Ie,xt.loc.start.offset,xt.loc.end.offset),pt.source,xt.loc.start.line,xt.loc.start.column),Ie,pt.source,xt.loc.start.line,xt.loc.start.column);break}case Pe.COLON:{var ln=Mt(Ie,ve,it,pt);return Bt.value=ln.value,pt.loc&&(Bt.loc=a(qe.loc.start.line,qe.loc.start.column,qe.loc.start.offset,ln.value.loc.end.line,ln.value.loc.end.column,ln.value.loc.end.offset,pt.source)),{value:Bt,index:ln.index}}}}}function lt(Ie,ve,it,pt){for(var qe=void 0,Bt={type:"Array",children:[]},It=ke._START_,xt=void 0;it<ve.length;)switch(xt=ve[it],It){case ke._START_:{if(xt.type===U.LEFT_BRACKET)qe=xt,It=ke.OPEN_ARRAY,it++;else return null;break}case ke.OPEN_ARRAY:{if(xt.type===U.RIGHT_BRACKET)return pt.loc&&(Bt.loc=a(qe.loc.start.line,qe.loc.start.column,qe.loc.start.offset,xt.loc.end.line,xt.loc.end.column,xt.loc.end.offset,pt.source)),{value:Bt,index:it+1};var tn=Mt(Ie,ve,it,pt);it=tn.index,Bt.children.push(tn.value),It=ke.VALUE;break}case ke.VALUE:{if(xt.type===U.RIGHT_BRACKET)return pt.loc&&(Bt.loc=a(qe.loc.start.line,qe.loc.start.column,qe.loc.start.offset,xt.loc.end.line,xt.loc.end.column,xt.loc.end.offset,pt.source)),{value:Bt,index:it+1};xt.type===U.COMMA?(It=ke.COMMA,it++):b(S.unexpectedToken(o(Ie,xt.loc.start.offset,xt.loc.end.offset),pt.source,xt.loc.start.line,xt.loc.start.column),Ie,pt.source,xt.loc.start.line,xt.loc.start.column);break}case ke.COMMA:{var ln=Mt(Ie,ve,it,pt);it=ln.index,Bt.children.push(ln.value),It=ke.VALUE;break}}Je(Ie,ve,pt)}function Ct(Ie,ve,it,pt){var qe=ve[it],Bt=null;switch(qe.type){case U.STRING:{Bt=rt(Ie.slice(qe.loc.start.offset+1,qe.loc.end.offset-1));break}case U.NUMBER:{Bt=Number(qe.value);break}case U.TRUE:{Bt=!0;break}case U.FALSE:{Bt=!1;break}case U.NULL:{Bt=null;break}default:return null}var It={type:"Literal",value:Bt,raw:qe.value};return pt.loc&&(It.loc=qe.loc),{value:It,index:it+1}}function Mt(Ie,ve,it,pt){var qe=ve[it],Bt=Ct.apply(void 0,arguments)||Ke.apply(void 0,arguments)||lt.apply(void 0,arguments);if(Bt)return Bt;b(S.unexpectedToken(o(Ie,qe.loc.start.offset,qe.loc.end.offset),pt.source,qe.loc.start.line,qe.loc.start.column),Ie,pt.source,qe.loc.start.line,qe.loc.start.column)}var Le=(function(Ie,ve){ve=Object.assign({},Ye,ve);var it=me(Ie,ve);it.length===0&&Je(Ie,it,ve);var pt=Mt(Ie,it,0,ve);if(pt.index===it.length)return pt.value;var qe=it[pt.index];b(S.unexpectedToken(o(Ie,qe.loc.start.offset,qe.loc.end.offset),ve.source,qe.loc.start.line,qe.loc.start.column),Ie,ve.source,qe.loc.start.line,qe.loc.start.column)});return Le}))})(dE)),dE.exports}var OSe=BSe();const vK=Bu(OSe);function va(){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.
`},$Se={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 HSe(n){let{announcements:e=$Se,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=VSe}=n;const{announce:s,announcement:o}=QSe(),a=nM("DndLiveRegion"),[c,d]=ct.useState(!1);if(ct.useEffect(()=>{d(!0)},[]),YSe(ct.useMemo(()=>({onDragStart(b){let{active:S}=b;s(e.onDragStart({active:S}))},onDragMove(b){let{active:S,over:O}=b;e.onDragMove&&s(e.onDragMove({active:S,over:O}))},onDragOver(b){let{active:S,over:O}=b;s(e.onDragOver({active:S,over:O}))},onDragEnd(b){let{active:S,over:O}=b;s(e.onDragEnd({active:S,over:O}))},onDragCancel(b){let{active:S,over:O}=b;s(e.onDragCancel({active:S,over:O}))}}),[s,e])),!c)return null;const m=In.createElement(In.Fragment,null,In.createElement(GSe,{id:i,value:r.draggable}),In.createElement(WSe,{id:a,announcement:o}));return t?S4.createPortal(m,t):m}var Oc;(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"})(Oc||(Oc={}));function K6(){}function ZSe(n,e){return ct.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function XSe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return ct.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const ig=Object.freeze({x:0,y:0});function JSe(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function eEe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function tEe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function nEe(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function IQ(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 iEe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=IQ(e,e.left,e.top),s=[];for(const o of i){const{id:a}=o,c=t.get(a);if(c){const d=JSe(IQ(c),r);s.push({id:a,data:{droppableContainer:o,value:d}})}}return s.sort(eEe)};function rEe(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),s=Math.min(e.top+e.height,n.top+n.height),o=r-i,a=s-t;if(i<r&&t<s){const c=e.width*e.height,d=n.width*n.height,m=o*a,b=m/(c+d-m);return Number(b.toFixed(4))}return 0}const sEe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const s of i){const{id:o}=s,a=t.get(o);if(a){const c=rEe(a,e);c>0&&r.push({id:o,data:{droppableContainer:s,value:c}})}}return r.sort(tEe)};function oEe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Pse(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ig}function aEe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];return r.reduce((o,a)=>({...o,top:o.top+n*a.y,bottom:o.bottom+n*a.y,left:o.left+n*a.x,right:o.right+n*a.x}),{...t})}}const lEe=aEe(1);function uEe(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 cEe(n,e,t){const i=uEe(e);if(!i)return n;const{scaleX:r,scaleY:s,x:o,y:a}=i,c=n.left-o-(1-r)*parseFloat(t),d=n.top-a-(1-s)*parseFloat(t.slice(t.indexOf(" ")+1)),m=r?n.width/r:n.width,b=s?n.height/s:n.height;return{width:m,height:b,top:d,right:c+m,bottom:d+b,left:c}}const AEe={ignoreTransform:!1};function c3(n,e){e===void 0&&(e=AEe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:m}=uf(n).getComputedStyle(n);d&&(t=cEe(t,d,m))}const{top:i,left:r,width:s,height:o,bottom:a,right:c}=t;return{top:i,left:r,width:s,height:o,bottom:a,right:c}}function TQ(n){return c3(n,{ignoreTransform:!0})}function hEe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function dEe(n,e){return e===void 0&&(e=uf(n).getComputedStyle(n)),e.position==="fixed"}function fEe(n,e){e===void 0&&(e=uf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const s=e[r];return typeof s=="string"?t.test(s):!1})}function SK(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(xK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!eM(r)||kse(r)||t.includes(r))return t;const s=uf(n).getComputedStyle(r);return r!==n&&fE Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QQ(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 YQ(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?QQ(Object(t),!0).forEach(function(i){Y6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):QQ(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function $6e(n){return Q6e(n)||q6e(n)||X6e(n)||V6e()}function H6e(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 Z6e(n){var e=H6e(n,"string");return typeof e=="symbol"?e:e+""}function X6e(n,e){if(n){if(typeof n=="string")return CP(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)?CP(n,e):void 0}}var qQ={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)}},J6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},eBe=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},e5=function(e){return e?.key==="Tab"||e?.keyCode===9},tBe=function(e){return e5(e)&&!e.shiftKey},nBe=function(e){return e5(e)&&e.shiftKey},VQ=function(e){return setTimeout(e,0)},Z3=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},vS=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},iBe=[],rBe=function(e,t){var i=t?.document||document,r=t?.trapStack||iBe,s=YQ({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:tBe,isKeyBackward:nBe},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(me,xe,Pe){return me&&me[xe]!==void 0?me[xe]:s[Pe||xe]},d=function(me,xe){var Pe=typeof xe?.composedPath=="function"?xe.composedPath():void 0;return o.containerGroups.findIndex(function(ke){var Ye=ke.container,Je=ke.tabbableNodes;return Ye.contains(me)||Pe?.includes(Ye)||Je.find(function(je){return je===me})})},m=function(me){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=xe.hasFallback,ke=Pe===void 0?!1:Pe,Ye=xe.params,Je=Ye===void 0?[]:Ye,je=s[me];if(typeof je=="function"&&(je=je.apply(void 0,$6e(Je))),je===!0&&(je=void 0),!je){if(je===void 0||je===!1)return je;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var De=je;if(typeof je=="string"){try{De=i.querySelector(je)}catch(Ne){throw new Error("`".concat(me,'` appears to be an invalid selector; error="').concat(Ne.message,'"'))}if(!De&&!ke)throw new Error("`".concat(me,"` as selector refers to no known node"))}return De},b=function(){var me=m("initialFocus",{hasFallback:!0});if(me===!1)return!1;if(me===void 0||me&&!pE(me,s.tabbableOptions))if(d(i.activeElement)>=0)me=i.activeElement;else{var xe=o.tabbableGroups[0],Pe=xe&&xe.firstTabbableNode;me=Pe||m("fallbackFocus")}else me===null&&(me=m("fallbackFocus"));if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},S=function(){if(o.containerGroups=o.containers.map(function(me){var xe=soe(me,s.tabbableOptions),Pe=ooe(me,s.tabbableOptions),ke=xe.length>0?xe[0]:void 0,Ye=xe.length>0?xe[xe.length-1]:void 0,Je=Pe.find(function(Ne){return lC(Ne)}),je=Pe.slice().reverse().find(function(Ne){return lC(Ne)}),De=!!xe.find(function(Ne){return Mb(Ne)>0});return{container:me,tabbableNodes:xe,focusableNodes:Pe,posTabIndexesFound:De,firstTabbableNode:ke,lastTabbableNode:Ye,firstDomTabbableNode:Je,lastDomTabbableNode:je,nextTabbableNode:function(rt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=xe.indexOf(rt);return Xe<0?Ke?Pe.slice(Pe.indexOf(rt)+1).find(function(lt){return lC(lt)}):Pe.slice(0,Pe.indexOf(rt)).reverse().find(function(lt){return lC(lt)}):xe[Xe+(Ke?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),o.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="*",b="",S="comment",O="declaration";lI=function(F,W){if(typeof F!="string")throw new TypeError("First argument must be a string");if(!F)return[];W=W||{};var q=1,V=1;function J(me){var xe=me.match(e);xe&&(q+=xe.length);var Pe=me.lastIndexOf(c);V=~Pe?me.length-Pe:V+me.length}function se(){var me={line:q,column:V};return function(xe){return xe.position=new re(me),ce(),xe}}function re(me){this.start=me,this.end={line:q,column:V},this.source=W.source}re.prototype.content=F;function ie(me){var xe=new Error(W.source+":"+q+":"+V+": "+me);if(xe.reason=me,xe.filename=W.source,xe.line=q,xe.column=V,xe.source=F,!W.silent)throw xe}function X(me){var xe=me.exec(F);if(xe){var Pe=xe[0];return J(Pe),F=F.slice(Pe.length),xe}}function ce(){X(t)}function $(me){var xe;for(me=me||[];xe=ue();)xe!==!1&&me.push(xe);return me}function ue(){var me=se();if(!(d!=F.charAt(0)||m!=F.charAt(1))){for(var xe=2;b!=F.charAt(xe)&&(m!=F.charAt(xe)||d!=F.charAt(xe+1));)++xe;if(xe+=2,b===F.charAt(xe-1))return ie("End of comment missing");var Pe=F.slice(2,xe-2);return V+=2,J(Pe),F=F.slice(xe),V+=2,me({type:S,comment:Pe})}}function de(){var me=se(),xe=X(i);if(xe){if(ue(),!X(r))return ie("property missing ':'");var Pe=X(s),ke=me({type:O,property:U(xe[0].replace(n,b)),value:Pe?U(Pe[0].replace(n,b)):b});return X(o),ke}}function _e(){var me=[];$(me);for(var xe;xe=de();)xe!==!1&&(me.push(xe),$(me));return me}return ce(),_e()};function U(F){return F?F.replace(a,b):b}return lI}var iY;function kBe(){if(iY)return a2;iY=1;var n=a2&&a2.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(a2,"__esModule",{value:!0}),a2.default=t;const e=n(TBe());function t(i,r){let s=null;if(!i||typeof i!="string")return s;const o=(0,e.default)(i),a=typeof r=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:m}=c;a?r(d,m,c):m&&(s=s||{},s[d]=m)}),s}return a2}var X3={},rY;function DBe(){if(rY)return X3;rY=1,Object.defineProperty(X3,"__esModule",{value:!0}),X3.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,s=function(d){return!d||t.test(d)||n.test(d)},o=function(d,m){return m.toUpperCase()},a=function(d,m){return"".concat(m,"-")},c=function(d,m){return m===void 0&&(m={}),s(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(r,a):d=d.replace(i,a),d.replace(e,o))};return X3.camelCase=c,X3}var J3,sY;function RBe(){if(sY)return J3;sY=1;var n=J3&&J3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(kBe()),t=DBe();function i(r,s){var o={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(o[(0,t.camelCase)(a,s)]=c)}),o}return i.default=i,J3=i,J3}var PBe=RBe();const LBe=Bu(PBe),foe=poe("end"),DK=poe("start");function poe(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 UBe(n){const e=DK(n),t=foe(n);if(e&&t)return{start:e,end:t}}function t5(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?oY(n.position):"start"in n||"end"in n?oY(n):"line"in n||"column"in n?MP(n):""}function MP(n){return aY(n&&n.line)+":"+aY(n&&n.column)}function oY(n){return MP(n&&n.start)+"-"+MP(n&&n.end)}function aY(n){return n&&typeof n=="number"?n:1}class Sh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",s={},o=!1;if(t&&("line"in t&&"column"in t?s={place:t}:"start"in t&&"end"in t?s={place:t}:"type"in t?s={ancestors:[t],place:t.position}:s={...t}),typeof e=="string"?r=e:!s.cause&&e&&(o=!0,r=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?s.ruleId=i:(s.source=i.slice(0,c),s.ruleId=i.slice(c+1))}if(!s.place&&s.ancestors&&s.ancestors){const c=s.ancestors[s.ancestors.length-1];c&&(s.place=c.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.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=t5(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Sh.prototype.file="";Sh.prototype.name="";Sh.prototype.reason="";Sh.prototype.message="";Sh.prototype.stack="";Sh.prototype.column=void 0;Sh.prototype.line=void 0;Sh.prototype.ancestors=void 0;Sh.prototype.cause=void 0;Sh.prototype.fatal=void 0;Sh.prototype.place=void 0;Sh.prototype.ruleId=void 0;Sh.prototype.source=void 0;const RK={}.hasOwnProperty,KBe=new Map,FBe=/[A-Z]/g,zBe=new Set(["table","tbody","thead","tfoot","tr"]),jBe=new Set(["td","th"]),moe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NBe(n,e){if(!e||e.Fragment===void 0)t Line truncated
`;break}case-3:{o=`\r
`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&r)continue;o=" ";break}default:o=String.fromCharCode(s)}r=s===-2,i.push(o)}return i.join("")}function e7e(n){const i={constructs:a8e([HOe,...(n||{}).extensions||[]]),content:r(p8e),defined:[],document:r(g8e),flow:r(POe),lazy:{},string:r(KOe),text:r(FOe)};return i;function r(s){return o;function o(a){return ZOe(i,s,a)}}}function t7e(n){for(;!Moe(n););return n}const yY=/[\0\t\n\r]/g;function n7e(){let n=1,e="",t=!0,i;return r;function r(s,o,a){const c=[];let d,m,b,S,O;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),b=0,e="",t&&(s.charCodeAt(0)===65279&&b++,t=void 0);b<s.length;){if(yY.lastIndex=b,d=yY.exec(s),S=d&&d.index!==void 0?d.index:s.length,O=s.charCodeAt(S),!d){e=s.slice(b);break}if(O===10&&b===S&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),b<S&&(c.push(s.slice(b,S)),n+=S-b),O){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}b=S+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const i7e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r7e(n){return n.replace(i7e,s7e)}function s7e(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),s=r===120||r===88;return Coe(t.slice(s?2:1),s?16:10)}return UK(t)||n}const Toe={}.hasOwnProperty;function o7e(n,e,t){return typeof e!="string"&&(t=e,e=void 0),a7e(t)(t7e(e7e(t).document().write(n7e()(n,e,!0))))}function a7e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ln),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(It),blockQuote:s(ve),characterEscape:$,characterReference:$,codeFenced:s(it),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(it,o),codeText:s(pt,o),codeTextData:$,data:$,codeFlowValue:$,definition:s(qe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Bt),hardBreakEscape:s(xt),hardBreakTrailing:s(xt),htmlFlow:s(tn,o),htmlFlowData:$,htmlText:s(tn,o),htmlTextData:$,image:s(ln),label:o,link:s(Ln),listItem:s(Dn),listItemValue:S,listOrdered:s(ni,b),listUnordered:s(ni),paragraph:s(Pn),reference:Ke,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(It),strong:s(Qn),thematicBreak:s(bn)},exit:{atxHeading:c(),atxHeadingSequence:re,autolink:c(),autolinkEmail:Ie,autolinkProtocol:Le,blockQuote:c(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:lt,characterReferenceMarkerNumeric:lt,characterReferenceValue:Ct,characterReference:Mt,codeFenced:c(W),codeFencedFence:F,codeFencedFenceInfo:O,codeFencedFenceMeta:U,codeFlowValue:ue,codeIndented:c(q),codeText:c(Pe),codeTextData:ue,data:ue,definition:c(),definitionDestinationString:se,definitionLabelString:V,definitionTitleString:J,emphasis:c(),hardBreakEscape:c(_e),hardBreakTrailing:c(_e),htmlFlow:c(me),htmlFlowData:ue,htmlText:c(xe),htmlTextData:ue,image:c(Ye),label:je,labelText:Je,lineEnding:de,link:c(ke),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Xe,resourceDestinationString:De,resourceTitleString:Ne,resource:rt,setextHeading:c(ce),setextHeadingLineSequence:X,setextHeadingText:ie,strong:c(),thematicBreak:c()}};koe(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(bt){let Se={type:"root",children:[]};const Ae={stack:[Se],tokenStack:[],config:e,enter:a,exit:d,buffer:o,resume:m,data:t},fe=[];let ze=-1;for(;++ze<bt.length;)if(bt[ze][1].type==="listOrdered"||bt[ze][1].type==="listUnordered")if(bt[ze][0]==="enter")fe.push(ze);else{const At=fe.pop();ze=r(bt,At,ze)}for(ze=-1;++ze<bt.length;){const At=e[bt[ze][0]];Toe.call(At,bt[ze][1].type)&&At[bt[ze][1].type].call(Object.assign({sliceSerialize:bt[ze][2].sliceSerialize},Ae),bt[ze][1])}if(Ae.tokenStack.length>0){const At=Ae.tokenStack[Ae.tokenStack.length-1];(At[1]||bY).call(Ae,void 0,At[0])}for(Se.position={start:fb(bt.length>0?bt[0][1].start:{line:1,column:1,offset:0}),end:fb(bt.length>0?bt[bt.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<e.transforms.length;)Se=e.transforms[ze](Se)||Se;return Se}function r(bt,Se,Ae){let fe=Se-1,ze=-1,At=!1,Ot,Dt,On,Gn;for(;++fe<=Ae;){const yt=bt[fe];switch(yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yt[0]==="enter"?ze++:ze--,Gn=void 0;break}case"lineEndingBlank":{yt[0]==="enter"&&(Ot&&!Gn&&!ze&&!On&&(On=fe),Gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gn=void 0}if(!ze&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||ze===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(Ot){let Ft=fe;for(Dt=void 0;Ft--;){const C=bt[Ft];if(C[1].type==="lineEnding"||C[1].type==="lineEndingBlank"){if(C[0]==="exit")continue;Dt&&(bt[Dt][1].type="lineEndingBlank",At=!0),C[1].type="lineEnding",Dt=Ft}else if(!(C[1].type==="linePrefix"||C[1].type==="blockQuotePrefix"|Line truncated
`}]}function h7e(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 s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(s.data={meta:e.meta}),n.patch(e,s),s=n.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},n.patch(e,s),s}function d7e(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function f7e(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function p7e(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=h3(i.toLowerCase()),s=n.footnoteOrder.indexOf(i);let o,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),o=n.footnoteOrder.length):o=s+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(o)}]};n.patch(e,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return n.patch(e,d),n.applyData(e,d)}function m7e(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 g7e(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),s=r[0];s&&s.type==="text"?s.value="["+s.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function y7e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Doe(n,e);const r={src:h3(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const s={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,s),n.applyData(e,s)}function b7e(n,e){const t={src:h3(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 v7e(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 C7e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Doe(n,e);const r={href:h3(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const s={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,s),n.applyData(e,s)}function _7e(n,e){const t={href:h3(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 x7e(n,e,t){const i=n.all(e),r=t?w7e(t):Roe(e),s={},o=[];if(typeof e.checked=="boolean"){const m=i[0];let b;m&&m.type==="element"&&m.tagName==="p"?b=m:(b={type:"element",tagName:"p",properties:{},children:[]},i.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const m=i[a];(r||a!==0||m.type!=="element"||m.tagName!=="p")&&o.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!r?o.push(...m.children):o.push(m)}const c=i[i.length-1];c&&(r||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
`});const d={type:"element",tagName:"li",properties:s,children:o};return n.patch(e,d),n.applyData(e,d)}function w7e(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=Roe(t[i])}return e}function Roe(n){const e=n.spread;return e??n.children.length>1}function M7e(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 o=i[r];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,s),n.applyData(e,s)}function S7e(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function E7e(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function B7e(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function O7e(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],o),r.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=DK(e.children[1]),c=foe(e.children[e.children.length-1]);a&&c&&(o.position={start:a,end:c}),r.push(o)}const s={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,s),n.applyData(e,s)}function I7e(n,e,t){const i=t?t.children:void 0,s=(i?i.indexOf(e):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:e.children.length;let c=-1;const d=[];for(;++c<a;){const b=e.children[c],S={},O=o?o[c]:void 0;O&&(S.align=O);let U={type:"element",tagName:s,properties:S,children:[]};b&&(U.children=n.all(b),n.patch(b,U),U=n.applyData(b,U)),d.push(U)}const m={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(e,m),n.applyData(e,m)}function T7e(n,e){const t={type:"element",tagName:"td",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}const vY=9,CY=32;function k7e(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const s=[];for(;i;)s.push(_Y(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return s.push(_Y(e.slice(r),r>0,!1)),s.join("")}function _Y(n,e,t){let i=0,r=n.length;if(e){let s=n.codePointAt(i);for(;s===vY||s===CY;)i++,s=n.codePointAt(i)}if(t){let s=n.codePointAt(r-1);for(;s===vY||s===CY;)r--,s=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function D7e(n,e){const t={type:"text",value:k7e(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function R7e(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const P7e={blockquote:c7e,break:A7e,code:h7e,delete:d7e,emphasis:f7e,footnoteReference:p7e,heading:m7e,html:g7e,imageReference:y7e,image:b7e,inlineCode:v7e,linkReference:C7e,link:_7e,listItem:x7e,list:M7e,paragraph:S7e,root:E7e,strong:B7e,table:O7e,tableCell:T7e,tableRow:I7e,text:D7e,thematicBreak:R7e,toml:CS,yaml:CS,definition:CS,footnoteDefinition:CS};function CS(){}const Poe=-1,m8=0,i5=1,Q6=2,zK=3,jK=4,NK=5,GK=6,Loe=7,Uoe=8,xY=typeof self=="object"?self:globalThis,L7e=(n,e)=>{const t=(r,s)=>(n.set(s,r),r),i=r=>{if(n.has(r))return n.get(r);const[s,o]=e[r];switch(s){case m8:case Poe:return t(o,r);case i5:{const a=t([],r);for(const c of o)a.push(i(c));return a}case Q6:{const a=t({},r);for(const[c,d]of o)a[i(c)]=i(d);return a}case zK:return t(new Date(o),r);case jK:{const{source:a,flags:c}=o;return t(new RegExp(a,c),r)}case NK:{const a=t(new Map,r);for(const[c,d]of o)a.set(i(c),i(d));return a}case GK:{const a=t(new Set,r);for(const c of o)a.add(i(c));return a}case Loe:{const{name:a,message:c}=o;return t(new xY[a](c),r)}case Uoe:return t(BigInt(o),r);case"BigInt":return t(Object(BigInt(o)),r);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new xY[s](o),r)};return i},wY=n=>L7e(new Map,n)(0),l2="",{toString:U7e}={},{keys:K7e}=Object,t4=n=>{const e=typeof n;if(e!=="object"||!n)return[m8,e];const t=U7e.call(n).slice(8,-1);switch(t){case"Array":return[i5,l2];case"Object":return[Q6,l2];case"Date":return[zK,l2];case"RegExp":return[jK,l2];case"Map":return[NK,l2];case"Set":return[GK,l2];case"DataView":return[i5,t]}return t.includes("Array")?[i5,t]:t.includes("Error")?[Loe,t]:[Q6,t]},_S=([n,e])=>n===m8&&(e==="function"||e==="symbol"),F7e=(n,e,t,i)=>{const r=(o,a)=>{const c=i.push(o)-1;return t.set(a,c),c},s=o=>{if(t.has(o))return t.get(o);let[a,c]=t4(o);switch(a){case m8:{let m=o;switch(c){case"bigint":a=Uoe,m=o.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);m=null;break;case"undefined":return r([Poe],o)}return r([a,m],o)}case i5:{if(c){let S=o;return c==="DataView"?S=new Uint Line truncated
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:`
`}]}}const Koe=(function(n){if(n==null)return Y7e;if(typeof n=="function")return g8(n);if(typeof n=="object")return Array.isArray(n)?G7e(n):W7e(n);if(typeof n=="string")return Q7e(n);throw new Error("Expected function, string, or object as test")});function G7e(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=Koe(n[t]);return g8(i);function i(...r){let s=-1;for(;++s<e.length;)if(e[s].apply(this,r))return!0;return!1}}function W7e(n){const e=n;return g8(t);function t(i){const r=i;let s;for(s in n)if(r[s]!==e[s])return!1;return!0}}function Q7e(n){return g8(e);function e(t){return t&&t.type===n}}function g8(n){return e;function e(t,i,r){return!!(q7e(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function Y7e(){return!0}function q7e(n){return n!==null&&typeof n=="object"&&"type"in n}const Foe=[],V7e=!0,SY=!1,$7e="skip";function H7e(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const s=Koe(r),o=i?-1:1;a(n,void 0,[])();function a(c,d,m){const b=c&&typeof c=="object"?c:{};if(typeof b.type=="string"){const O=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(c.type+(O?"<"+O+">":""))+")"})}return S;function S(){let O=Foe,U,F,W;if((!e||s(c,d,m[m.length-1]||void 0))&&(O=Z7e(t(c,m)),O[0]===SY))return O;if("children"in c&&c.children){const q=c;if(q.children&&O[0]!==$7e)for(F=(i?q.children.length:-1)+o,W=m.concat(q);F>-1&&F<q.children.length;){const V=q.children[F];if(U=a(V,F,W)(),U[0]===SY)return U;F=typeof U[1]=="number"?U[1]:F+o}}return O}}}function Z7e(n){return Array.isArray(n)?n:typeof n=="number"?[V7e,n]:n==null?Foe:[n]}function zoe(n,e,t,i){let r,s,o;typeof e=="function"&&typeof t!="function"?(s=void 0,o=e,r=t):(s=e,o=t,r=i),H7e(n,s,a,r);function a(c,d){const m=d[d.length-1],b=m?m.children.indexOf(c):void 0;return o(c,b,m)}}const OP={}.hasOwnProperty,X7e={};function J7e(n,e){const t=e||X7e,i=new Map,r=new Map,s=new Map,o={...P7e,...t.handlers},a={all:d,applyData:tIe,definitionById:i,footnoteById:r,footnoteCounts:s,footnoteOrder:[],handlers:o,one:c,options:t,patch:eIe,wrap:iIe};return zoe(n,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const b=m.type==="definition"?i:r,S=String(m.identifier).toUpperCase();b.has(S)||b.set(S,m)}}),a;function c(m,b){const S=m.type,O=a.handlers[S];if(OP.call(a.handlers,S)&&O)return O(a,m,b);if(a.options.passThrough&&a.options.passThrough.includes(S)){if("children"in m){const{children:F,...W}=m,q=Y6(W);return q.children=a.all(m),q}return Y6(m)}return(a.options.unknownHandler||nIe)(a,m,b)}function d(m){const b=[];if("children"in m){const S=m.children;let O=-1;for(;++O<S.length;){const U=a.one(S[O],m);if(U){if(O&&S[O-1].type==="break"&&(!Array.isArray(U)&&U.type==="text"&&(U.value=EY(U.value)),!Array.isArray(U)&&U.type==="element")){const F=U.children[0];F&&F.type==="text"&&(F.value=EY(F.value))}Array.isArray(U)?b.push(...U):b.push(U)}}}return b}}function eIe(n,e){n.position&&(e.position=UBe(n))}function tIe(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,s=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const o="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:o}}t.type==="element"&&s&&Object.assign(t.properties,Y6(s)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function nIe(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 iIe(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 EY(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function BY(n,e){const t=J7e(n,e),i=t.one(n,void 0),r=N7e(t),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&s.children.push({type:"text",value:`
`},r),s}function rIe(n,e){return n&&"run"in n?async function(t,i){const r=BY(t,{file:i,...e});await n.run(r,i)}:function(t,i){return BY(t,{file:i,...n||e})}}function OY(n){if(n)throw n}var hI,IY;function sIe(){if(IY)return hI;IY=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]"},s=function(d){if(!d||e.call(d)!=="[object Object]")return!1;var m=n.call(d,"constructor"),b=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!b)return!1;var S;for(S in d);return typeof S>"u"||n.call(d,S)},o=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 hI=function c(){var d,m,b,S,O,U,F=arguments[0],W=1,q=arguments.length,V=!1;for(typeof F=="boolean"&&(V=F,F=arguments[1]||{},W=2),(F==null||typeof F!="object"&&typeof F!="function")&&(F={});W<q;++W)if(d=arguments[W],d!=null)for(m in d)b=a(F,m),S=a(d,m),F!==S&&(V&&S&&(s(S)||(O=r(S)))?(O?(O=!1,U=b&&r(b)?b:[]):U=b&&s(b)?b:{},o(F,{name:m,newValue:c(V,U,S)})):typeof S<"u"&&o(F,{name:m,newValue:S}));return F},hI}var oIe=sIe();const dI=Bu(oIe);function IP(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 aIe(){const n=[],e={run:t,use:i};return e;function t(...r){let s=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...r);function a(c,...d){const m=n[++s];let b=-1;if(c){o(c);return}for(;++b<r.length;)(d[b]===null||d[b]===void 0)&&(d[b]=r[b]);r=d,m?lIe(m,a)(...d):o(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 lIe(n,e){let t;return i;function i(...o){const a=n.length>o.length;let c;a&&o.push(r);try{c=n.apply(this,o)}catch(d){const m=d;if(a&&t)throw m;return r(m)}a||(c&&c.then&&typeof c.then=="function"?c.then(s,r):c instanceof Error?r(c):s(c))}function r(o,...a){t||(t=!0,e(o,...a))}function s(o){r(null,o)}}const i0={basename:uIe,dirname:cIe,extname:AIe,join:hIe,sep:"/"};function uIe(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');rM(n);let t=0,i=-1,r=n.length,s;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(s){t=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let o=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(s){t=r+1;break}}else o<0&&(s=!0,o=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=o));return t===i?i=o:i<0&&(i=n.length),n.slice(t,i)}function cIe(n){if(rM(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 AIe(n){rM(n);let e=n.length,t=-1,i=0,r=-1,s=0,o;for(;e--;){const a=n.codePointAt(e);if(a===47){if(o){i=e+1;break}continue}t<0&&(o=!0,t=e+1),a===46?r<0?r=e:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||t<0||s===0||s===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function hIe(...n){let e=-1,t;for(;++e<n.length;)rM(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":dIe(t)}function dIe(n){rM(n);const e=n.codePointAt(0)===47;let t=fIe(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function fIe(n,e){let t="",i=0,r=-1,s=0,o=-1,a,c;for(;++o<=n.length;){if(o<n.length)a=n.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(r===o-1||s===1))if(r!==o-1&&s===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=o,s=0;continue}}else if(t.length>0){t="",i=0,r=o,s=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,o):t=n.slice(r+1,o),i=o-r-1;r=o,s=0}else a===46&&s>-1?s++:s=-1}return t}function rM(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const pIe={cwd:mIe};function mIe(){return"/"}function TP(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function gIe(n){if(typeof n=="string")n=new URL(n);else if(!TP(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 yIe(n)}function yIe(nLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hke(){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 dke=_8(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,s=e.allowMultipleExpanded,o=s===void 0?!1:s,a=e.allowZeroExpanded,c=a===void 0?!1:a;C8(this,n),Va(this,"expanded",void 0),Va(this,"allowMultipleExpanded",void 0),Va(this,"allowZeroExpanded",void 0),Va(this,"toggleExpanded",function(d){if(t.isItemDisabled(d))return t;var m=t.isItemExpanded(d);return m?t.augment({expanded:t.expanded.filter(function(b){return b!==d})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(oke(t.expanded),[d]):[d]})}),Va(this,"isItemDisabled",function(d){var m=t.isItemExpanded(d),b=t.expanded.length===1;return!!(m&&!t.allowZeroExpanded&&b)}),Va(this,"isItemExpanded",function(d){return t.expanded.indexOf(d)!==-1}),Va(this,"getPanelAttributes",function(d,m){var b=m??t.isItemExpanded(d);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!b:void 0,"aria-labelledby":t.getButtonId(d),id:t.getPanelId(d),hidden:b?void 0:!0}}),Va(this,"getHeadingAttributes",function(){return{role:"heading"}}),Va(this,"getButtonAttributes",function(d,m){var b=m??t.isItemExpanded(d),S=t.isItemDisabled(d);return{id:t.getButtonId(d),"aria-disabled":S,"aria-expanded":b,"aria-controls":t.getPanelId(d),role:"button",tabIndex:0}}),Va(this,"getPanelId",function(d){return"accordion__panel-".concat(d)}),Va(this,"getButtonId",function(d){return"accordion__heading-".concat(d)}),Va(this,"augment",function(d){return new n(LP({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},d))}),this.expanded=r,this.allowMultipleExpanded=o,this.allowZeroExpanded=c}),Aae=ct.createContext(null),hae=(function(n){oF(t,n);var e=aF(t);function t(){var i;C8(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return i=e.call.apply(e,[this].concat(s)),Va(Ym(i),"state",new dke({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),Va(Ym(i),"toggleExpanded",function(a){i.setState(function(c){return c.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),Va(Ym(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),Va(Ym(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),Va(Ym(i),"getPanelAttributes",function(a,c){return i.state.getPanelAttributes(a,c)}),Va(Ym(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),Va(Ym(i),"getButtonAttributes",function(a,c){return i.state.getButtonAttributes(a,c)}),i}return _8(t,[{key:"render",value:function(){var r=this.state,s=r.allowZeroExpanded,o=r.allowMultipleExpanded;return ct.createElement(Aae.Provider,{value:{allowMultipleExpanded:o,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t})(ct.PureComponent);Va(hae,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var dae=(function(n){oF(t,n);var e=aF(t);function t(){var i;C8(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return i=e.call.apply(e,[this].concat(s)),Va(Ym(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return _8(t,[{key:"render",value:function(){return ct.createElement(Aae.Consumer,null,this.renderChildren)}}]),t})(ct.PureComponent),fke=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],pke=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,s=e.allowZeroExpanded,o=e.onChange,a=e.preExpanded,c=x8(e,fke);return ct.createElement(hae,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:s,onChange:o},ct.createElement("div",P0({"data-accordion-component":"Accordion",className:i},c)))},FP;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(FP||(FP={}));var fae=FP,_I=0;function mke(){var n=_I;return _I=_I+1,"raa-".concat(n)}var gke=ct.useId||mke,yke=/[\u0009\u000a\u000c\u000d\u0020]/g;function sw(n){return n===""||yke.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var pae=ct.createContext(null),bke=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,s=e.dangerouslySetExpanded,o=function(){r.toggleExpanded(i)},a=function(d){var m=s??d.isItemExpanded(i),b=d.isItemDisabled(i),S=d.getPanelAttributes(i,s),O=d.getHeadingAttributes(i),U=d.getButtonAttributes(i,s);return ct.createElement(pae.Provider,{value:{uuid:i,expanded:m,disabled:b,toggleExpanded:o,panelAttributes:S,headingAttributes:O,buttonAttributes:U}},t)};return ct.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.”
`,yae=(function(n){oF(t,n);var e=aF(t);function t(){var i;C8(this,t);for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return i=e.call.apply(e,[this].concat(s)),Va(Ym(i),"ref",void 0),Va(Ym(i),"setRef",function(a){i.ref=a}),i}return _8(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return ct.createElement("div",P0({"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(Ike)}}]),t})(ct.PureComponent);Va(yae,"defaultProps",Oke);var bae=function(e){return ct.createElement(w8,null,function(t){var i=t.headingAttributes;return e.id&&sw(e.id),ct.createElement(yae,P0({},e,i))})};bae.displayName=fae.AccordionItemHeading;var Tke=["className","region","id"],kke=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,s=e.id,o=x8(e,Tke),a=function(d){var m=d.panelAttributes;s&&sw(s);var b=LP(LP({},m),{},{"aria-labelledby":r?m["aria-labelledby"]:void 0});return ct.createElement("div",P0({"data-accordion-component":"AccordionItemPanel",className:i},o,b,{role:r?"region":void 0}))};return ct.createElement(w8,null,a)};function ow(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="f40eb4f8819f6ee012cc04966cfc2d0bebd5d750",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:25},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:25},end:{line:3,column:26}},loc:{start:{line:3,column:36},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,SAAS,iBAAsC;AAMxC,aAAM,YAAsC,CAAC,UAAU;AAC5D,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f40eb4f8819f6ee012cc04966cfc2d0bebd5d750"},s=t[i]||(t[i]={});(!s[n]||s[n].hash!==e)&&(s[n]=r);var o=s[n];return ow=function(){return o},o}ow();ow().s[0]++;const S8=n=>(ow().f[0]++,ow().s[1]++,le.jsx(Tse,{...n}));function aw(n){return ws({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 E8(n){return ws({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 UC(){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"},s=t[i]||(t[i]={});(!s[n]||s[n].hash!==e)&&(s[n]=r);var o=s[n];return UC=function(){return o},o}UC();const lF=(UC().s[0]++,["all","any","none"]);UC().s[1]++;const Dke=(UC().s[2]++,Object.keys($r.filter_operator.values).filter(n=>(UC().f[0]++,UC().s[3]++,lF.indexOf(n)<0)));function Vi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="2ea44eca06e1e5dcffbd2d854404c348b27e1565",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,column:25}}, Line truncated
rgba(`+se.r+","+se.g+","+se.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:se.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("+se.r+","+se.g+","+se.b+`, 0) 0%,
rgba(`+se.r+","+se.g+","+se.b+", 1) 100%)"},pointer:{left:0,top:se.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(d.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:re.gradient}),i.default.createElement("div",{style:re.container,ref:function(X){return J.container=X},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}))))}}]),q})(t.PureComponent||t.Component);return p2.default=F,p2}var g2={},wH;function JDe(){if(wH)return g2;wH=1,Object.defineProperty(g2,"__esModule",{value:!0}),g2.EditableInput=void 0;var n=(function(){function V(J,se){for(var re=0;re<se.length;re++){var ie=se[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(J,ie.key,ie)}}return function(J,se,re){return se&&V(J.prototype,se),re&&V(J,re),J}})(),e=Xl(),t=s(e),i=dg(),r=s(i);function s(V){return V&&V.__esModule?V:{default:V}}function o(V,J,se){return J in V?Object.defineProperty(V,J,{value:se,enumerable:!0,configurable:!0,writable:!0}):V[J]=se,V}function a(V,J){if(!(V instanceof J))throw new TypeError("Cannot call a class as a function")}function c(V,J){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J&&(typeof J=="object"||typeof J=="function")?J:V}function d(V,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof J);V.prototype=Object.create(J&&J.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),J&&(Object.setPrototypeOf?Object.setPrototypeOf(V,J):V.__proto__=J)}var m=1,b=38,S=40,O=[b,S],U=function(J){return O.indexOf(J)>-1},F=function(J){return Number(String(J).replace(/%/g,""))},W=1,q=g2.EditableInput=(function(V){d(J,V);function J(se){a(this,J);var re=c(this,(J.__proto__||Object.getPrototypeOf(J)).call(this));return re.handleBlur=function(){re.state.blurValue&&re.setState({value:re.state.blurValue,blurValue:null})},re.handleChange=function(ie){re.setUpdatedValue(ie.target.value,ie)},re.handleKeyDown=function(ie){var X=F(ie.target.value);if(!isNaN(X)&&U(ie.keyCode)){var ce=re.getArrowOffset(),$=ie.keyCode===b?X+ce:X-ce;re.setUpdatedValue($,ie)}},re.handleDrag=function(ie){if(re.props.dragLabel){var X=Math.round(re.props.value+ie.movementX);X>=0&&X<=re.props.dragMax&&re.props.onChange&&re.props.onChange(re.getValueObjectWithLabel(X),ie)}},re.handleMouseDown=function(ie){re.props.dragLabel&&(ie.preventDefault(),re.handleDrag(ie),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(se.value).toUpperCase(),blurValue:String(se.value).toUpperCase()},re.inputId="rc-editable-input-"+W++,re}return n(J,[{key:"componentDidUpdate",value:function(re,ie){this.props.value!==this.state.value&&(re.value!==this.props.value||ie.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 o({},this.props.label,re)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||m}},{key:"setUpdatedValue",value:function(re,ie){var X=this.props.label?this.getValueObjectWithLabel(re):re;this.props.onChange&&this.props.onChange(X,ie),this.setState({value:re})}},{key:"render",value:function(){var re=this,ie=(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:ie.wrap},t.default.createElement("input",{id:this.inputId,style:ie.input,ref:function(ce){return re.input=ce},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:ie.label,onMouseDown:this.handleMouseDown},this.p Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hue-vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),t.default.createElement("div",{style:J.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:J.slider}))))}}]),U})(e.PureComponent||e.Component);return y2.default=S,y2}var b2={},EH;function nRe(){if(EH)return b2;EH=1,Object.defineProperty(b2,"__esModule",{value:!0}),b2.Raised=void 0;var n=Xl(),e=c(n),t=f8(),i=c(t),r=dg(),s=c(r),o=Xae(),a=c(o);function c(m){return m&&m.__esModule?m:{default:m}}var d=b2.Raised=function(b){var S=b.zDepth,O=b.radius,U=b.background,F=b.children,W=b.styles,q=W===void 0?{}:W,V=(0,s.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+S+"px "+S*4+"px rgba(0,0,0,.24)",borderRadius:O,background:U}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},q),{"zDepth-1":S===1});return e.default.createElement("div",{style:V.wrap},e.default.createElement("div",{style:V.bg}),e.default.createElement("div",{style:V.content},F))};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:{}},b2.default=d,b2}var v2={},D9,BH;function iRe(){if(BH)return D9;BH=1;var n=hg(),e=function(){return n.Date.now()};return D9=e,D9}var R9,OH;function rRe(){if(OH)return R9;OH=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return R9=e,R9}var P9,IH;function sRe(){if(IH)return P9;IH=1;var n=rRe(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return P9=t,P9}var L9,TH;function oRe(){if(TH)return L9;TH=1;var n=sRe(),e=nm(),t=U8(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^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 b=s.test(d);return b||o.test(d)?a(d.slice(2),b?2:8):r.test(d)?i:+d}return L9=c,L9}var U9,kH;function Jae(){if(kH)return U9;kH=1;var n=nm(),e=iRe(),t=oRe(),i="Expected a function",r=Math.max,s=Math.min;function o(a,c,d){var m,b,S,O,U,F,W=0,q=!1,V=!1,J=!0;if(typeof a!="function")throw new TypeError(i);c=t(c)||0,n(d)&&(q=!!d.leading,V="maxWait"in d,S=V?r(t(d.maxWait)||0,c):S,J="trailing"in d?!!d.trailing:J);function se(me){var xe=m,Pe=b;return m=b=void 0,W=me,O=a.apply(Pe,xe),O}function re(me){return W=me,U=setTimeout(ce,c),q?se(me):O}function ie(me){var xe=me-F,Pe=me-W,ke=c-xe;return V?s(ke,S-Pe):ke}function X(me){var xe=me-F,Pe=me-W;return F===void 0||xe>=c||xe<0||V&&Pe>=S}function ce(){var me=e();if(X(me))return $(me);U=setTimeout(ce,ie(me))}function $(me){return U=void 0,J&&m?se(me):(m=b=void 0,O)}function ue(){U!==void 0&&clearTimeout(U),W=0,m=F=b=U=void 0}function de(){return U===void 0?O:$(e())}function _e(){var me=e(),xe=X(me);if(m=arguments,b=this,F=me,xe){if(U===void 0)return re(F);if(V)return clearTimeout(U),U=setTimeout(ce,c),se(F)}return U===void 0&&(U=setTimeout(ce,c)),O}return _e.cancel=ue,_e.flush=de,_e}return U9=o,U9}var K9,DH;function aRe(){if(DH)return K9;DH=1;var n=Jae(),e=nm(),t="Expected a function";function i(r,s,o){var a=!0,c=!0;if(typeof r!="function")throw new TypeError(t);return e(o)&&(a="leading"in o?!!o.leading:a,c="trailing"in o?!!o.trailing:c),n(r,s,{leading:a,maxWait:s,trailing:c})}return K9=i,K9}var kS={},RH;function lRe(){return RH||(RH=1,Object.defineProperty(kS,"__esModule",{value:!0}),kS.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),s=r.width,o=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>s&&(d=s),m<0?m=0:m>o&&(m=o);var b=d/s,S=1-m/o;return{h:t.h,s:b,v:S,a:t.a,source:"hsv"}}),kS}var PH;function uRe(){if(PH)return v2;PH=1,Object.defineProperty(v2,"__esModule",{value:!0}),v2.Saturation=void 0;var n=(function(){function F(W,q){for(var V=0;V<q.length;V++){var J=q[V];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(W,J.key,J)}}return function(W,q,V){return q&&F(W.prototype,q),V&&F(W,V),W}})(),e=Xl(),t=m(e),i=dg(),r=m(i),s=aRe(),o=m(s),a=lRe(),c=d(a);function d(F){if(F&&F.__esModule)return F;var W={};if(F!=null)for(var q in F)Object.prototype.hasOwnProperty.call(F,q)&&(W[q]=F[q]);return W.default=F,W}function m(F){return F Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:se,white:re,black:ie,pointer:X,circle:ce}},{custom:!!this.props.style});return t.default.createElement("div",{style:$.color,ref:function(de){return V.container=de},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.saturation-black {
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),t.default.createElement("div",{style:$.white,className:"saturation-white"},t.default.createElement("div",{style:$.black,className:"saturation-black"}),t.default.createElement("div",{style:$.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:$.circle}))))}}]),W})(e.PureComponent||e.Component);return v2.default=U,v2}var C2={},rd={},F9,LH;function cRe(){if(LH)return F9;LH=1;var n=Nae(),e=jae(),t=Sae(),i=tp();function r(s,o){var a=i(s)?n:e;return a(s,t(o))}return F9=r,F9}var z9,UH;function ARe(){return UH||(UH=1,z9=cRe()),z9}var yE={exports:{}},hRe=yE.exports,KH;function dRe(){return KH||(KH=1,(function(n,e){(function(t,i){n.exports=i()})(hRe,(function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},t(Le)}var i=/^\s+/,r=/\s+$/;function s(Le,Ie){if(Le=Le||"",Ie=Ie||{},Le instanceof s)return Le;if(!(this instanceof s))return new s(Le,Ie);var ve=o(Le);this._originalInput=Le,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=Math.round(100*this._a)/100,this._format=Ie.format||ve.format,this._gradientType=Ie.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=ve.ok}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ie=this.toRgb();return(Ie.r*299+Ie.g*587+Ie.b*114)/1e3},getLuminance:function(){var Ie=this.toRgb(),ve,it,pt,qe,Bt,It;return ve=Ie.r/255,it=Ie.g/255,pt=Ie.b/255,ve<=.03928?qe=ve/12.92:qe=Math.pow((ve+.055)/1.055,2.4),it<=.03928?Bt=it/12.92:Bt=Math.pow((it+.055)/1.055,2.4),pt<=.03928?It=pt/12.92:It=Math.pow((pt+.055)/1.055,2.4),.2126*qe+.7152*Bt+.0722*It},setAlpha:function(Ie){return this._a=xe(Ie),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ie=m(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,v:Ie.v,a:this._a}},toHsvString:function(){var Ie=m(this._r,this._g,this._b),ve=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.v*100);return this._a==1?"hsv("+ve+", "+it+"%, "+pt+"%)":"hsva("+ve+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHsl:function(){var Ie=c(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,l:Ie.l,a:this._a}},toHslString:function(){var Ie=c(this._r,this._g,this._b),ve=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.l*100);return this._a==1?"hsl("+ve+", "+it+"%, "+pt+"%)":"hsla("+ve+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHex:function(Ie){return S(this._r,this._g,this._b,Ie)},toHexString:function(Ie){return"#"+this.toHex(Ie)},toHex8:function(Ie){return O(this._r,this._g,this._b,this._a,Ie)},toHex8String:function(Ie){return"#"+this.toHex8(Ie)},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(Pe(this._r,255)*100)+"%",g:Math.round(Pe(this._g,255)*100)+"%",b:Math.round(Pe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Pe(this._r,255)*100)+"%, "+Math.round(Pe(this._g,255)*100)+"%, "+Math.round(Pe(this._b,255)*100)+"%)":"rgba("+Math.round(Pe(this._r,255)*100)+"%, "+Math.round(Pe(this._g,255)*100)+"%, "+Math.round(Pe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:_e[S(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ie){var ve="#"+U(this._r,this._g,this._b,this._a),it=ve,pt=this._gradientType?"GradientType = 1, ":"";if(Ie){var qe=s(Ie);it="#"+U(qe._r,qe._g,qe._b,qe._a)}return"progid:DXImageTransform.Microsoft.gradient("+pt+"startColorstr="+ve+",endColorstr="+it+")"},toString:function(Ie){var ve=!!Ie;Ie=Ie||this._format;var it=!1,pt=this._a<1&&this._a>=0,qe=!ve&&pt&&(Ie==="hex"||Ie==="hex6"||Ie==="hex3"||Ie==="hex4"||Ie==="hex8"||Ie==="name");return qe?Ie==="name"&&this._a===0?this.toName():this.toRgbString():(Ie==="rgb"&&(it=this.toRgbString()),Ie==="prgb"&&(it=this.toPercentageRgbString()),(Ie==="hex"||Ie==="hex6")&&(it=this.toHexString()),Ie==="hex3"&&(it=this.toHexString(!0)),Ie==="hex4"&&(it=this.toHex8String(!0)),Ie==="hex8"&&(it=this.toHex8String()),Ie==="name"&&(it=this.toName()),Ie==="hsl"&&(it=this.toHslString()),Ie==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Ie,ve){var it=Ie.apply( 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@${hZ}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${hZ}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script>
const map = new maplibregl.Map({
container: 'map',
style: ${e},
});
map.addControl(new maplibregl.NavigationControl());
<\/script>
</body>
</html>
`),r=(ci().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),s=(ci().s[10]++,this.exportName());ci().s[11]++,AZ.saveAs(r,s+".html")}async saveStyle(){ci().f[3]++;const e=(ci().s[12]++,this.tokenizedStyle());if(ci().s[13]++,dZ)ci().b[2][1]++;else{ci().b[2][0]++;const r=(ci().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(ci().s[15]++,this.exportName());ci().s[16]++,AZ.saveAs(r,s+".json"),ci().s[17]++;return}let t=(ci().s[18]++,this.props.fileHandle);if(ci().s[19]++,t==null)if(ci().b[3][0]++,ci().s[20]++,t=await this.createFileHandle(),ci().s[21]++,this.props.onSetFileHandle(t),ci().s[22]++,t==null){ci().b[4][0]++,ci().s[23]++;return}else ci().b[4][1]++;else ci().b[3][1]++;const i=(ci().s[24]++,await t.createWritable());ci().s[25]++,await i.write(e),ci().s[26]++,await i.close(),ci().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){ci().f[4]++;const e=(ci().s[28]++,this.tokenizedStyle()),t=(ci().s[29]++,await this.createFileHandle());if(ci().s[30]++,this.props.onSetFileHandle(t),ci().s[31]++,t==null){ci().b[5][0]++,ci().s[32]++;return}else ci().b[5][1]++;const i=(ci().s[33]++,await t.createWritable());ci().s[34]++,await i.write(e),ci().s[35]++,await i.close(),ci().s[36]++,this.props.onOpenToggle()}async createFileHandle(){ci().f[5]++;const e=(ci().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(ci().s[38]++,await window.showSaveFilePicker(e));return ci().s[39]++,this.props.onSetFileHandle(t),ci().s[40]++,t}changeMetadataProperty(e,t){ci().f[6]++;const i=(ci().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});ci().s[42]++,this.props.onStyleChanged(i)}render(){ci().f[7]++;const e=(ci().s[43]++,this.props.t),t=(ci().s[44]++,fle(e));return ci().s[45]++,le.jsx(by,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:le.jsxs("section",{className:"maputnik-modal-section",children:[le.jsx("h1",{children:e("Save Style")}),le.jsx("p",{children:e("Save the JSON style to your computer.")}),le.jsxs("div",{children:[le.jsx(Zd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(ci().b[6][0]++,this.props.mapStyle.metadata||(ci().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),le.jsx(Zd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(ci().b[7][0]++,this.props.mapStyle.metadata||(ci().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),le.jsx(Zd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(ci().b[8][0]++,this.props.mapStyle.metadata||(ci().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),le.jsx(Zd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(ci().b[9][0]++,this.props.mapStyle.metadata||(ci().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),le.jsxs("div",{className:"maputnik-modal-export-buttons",children:[le.jsxs(Ho,{onClick:this.saveStyle.bind(this),children:[le.jsx(vD,{}),e("Save")]}),(ci().b[10][0]++,dZ&&(ci().b[10][1]++,le.jsxs(Ho,{onClick:this.saveStyleAs.bind(this),children:[le.jsx(vD,{}),e("Save as")]}))),le.jsxs(Ho,{onClick:this.createHtml.bind(this),children:[le.jsx(Cpe,{}),e("Create HTML")]})]})]})})}}const tLe=(ci().s[46]++,js()(eLe));function gw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="94fb3f877de0b7e96b65a77bc8aab2d93215a4b2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:33},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:33},end:{line:4,column:34}},loc:{start:{line:4,column:44},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:"AAaM;AAbN,SAAS,yBAAsD;AAC/D,SAAS,gBAAgB;AASlB,aAAM,oBAAsD,CAAC,UAAU;AAC5E,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"94fb3f877de0b7e96b65a77bc8aab2d93215a4b2"},s=t[i]||(t[i]={});(!s[n]||s[n].hash!==e)&&(s[n]=r);var o=s[n];return gw=function(){return o},o}gw();gw().s[0]++;const ple=n=>(gw().f[0]++,gw().s[1]++,le.jsx(Sb,{label:n.label,children:le.jsx(vE,{...n})}));function yw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheck Line truncated
//# sourceMappingURL=index-B4VQ0U6D.js.map
+958
View File
@@ -0,0 +1,958 @@
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+te(a,u),c+=ne(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+te(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)Line truncated
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+be+e+xe}var Ce=!1;function we(e,t){if(!e||Ce)return``;Ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return Se(`Activity`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,je=t.unstable_requestPaint,Me=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Pe=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,Ie=t.unstable_NormalPriority,Le=t.unstable_LowPriority,Re=t.unstable_IdlePriority,ze=t.log,Be=t.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Ye=262144,Xe=4194304;function Ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function et(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;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 tt(){var e=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=4194304),e}function nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function it(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-We(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&at(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function at(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-We(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ot(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function st(e,t){var n=t&-t;return n=n&42?1:ct(n),(n&(e.suspendedLanes|t))===0?n:0}function ct(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function lt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ut(){var e=ae.p;return e===0?(e=window.event,e===void 0?32:Mp(e.type)):e}function dt(e,t){var n=ae.p;try{return ae.p=e,t()}finally{ae.p=n}}var ft=Math.random().toString(36).slice(2),pt=`__reactFiber$`+ft,mt=`__reactProps$`+ft,ht=`__reactContainer$`+ft,gt=`__reactEvents$`+ft,_t=`__reactListeners$`+ft,vt=`__reactHandles$`+ft,yt=`__reactResources$`+ft,bt=`__reactMarker$`+ft;function xt(e){delete e[pt],delete e[mt],delete e[gt],delete e[_t],delete e[vt]}function St(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ht]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kf(e);e!==null;){if(n=e[pt])return n;e=kf(e)}return t}e=n,n=e.parentNode}return null}function Ct(e){if(e=e[pt]||e[ht]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Tt(e){var t=e[yt];return t||=e[yt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Et(e){e[bt]=!0}var Dt=new Set,Ot={};function kt(e,t){At(e,t),At(e+`Capture`,t)}function At(e,t){for(Ot[e]=t,e=0;e<t.length;e++)Dt.add(t[e])}var jt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\uLine truncated
`).replace(Jd,``)}function Xd(e,t){return t=Yd(t),Yd(e)===t}function Zd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Qt(e,``+r);break;case`className`:It(e,`class`,r);break;case`tabIndex`:It(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:It(e,n,r);break;case`style`:tn(e,r,o);break;case`data`:if(t!==`object`){It(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Zd(e,t,`name`,a.name,a,null),Zd(e,t,`formEncType`,a.formEncType,a,null),Zd(e,t,`formMethod`,a.formMethod,a,null),Zd(e,t,`formTarget`,a.formTarget,a,null)):(Zd(e,t,`encType`,a.encType,a,null),Zd(e,t,`method`,a.method,a,null),Zd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`onScroll`:r!=null&&Ld(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ld(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=on(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ld(`beforetoggle`,e),Ld(`toggle`,e),Ft(e,`popover`,r);break;case`xlinkActuate`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Lt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Lt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ft(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=rn.get(n)||n,Ft(e,n,r))}}function Qd(e,t,n,r,a,o){switch(n){case`style`:tn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Qt(e,``+r);break;case`onScroll`:r!=null&&Ld(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ld(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML Line truncated
/* [wrapped with `+t+`] */
`)}function ss(e){return uu(e)||lu(e)||!!(At&&e&&e[At])}function cs(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&$e.test(e))&&e>-1&&e%1==0&&e<t}function ls(e,t,n){if(!Eu(n))return!1;var r=typeof t;return(r==`number`?fu(n)&&cs(t,n.length):r==`string`&&t in n)?ou(n[t],e):!1}function us(e,t){if(uu(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Vu(e)?!0:Fe.test(e)||!Pe.test(e)||t!=null&&e in ot(t)}function ds(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function fs(e){var t=Wo(e),n=M[t];if(typeof n!=`function`||!(t in Ar.prototype))return!1;if(e===n)return!0;var r=Uo(n);return!!r&&e===r[0]}function ps(e){return!!_t&&_t in e}var ms=pt?Cu:Yf;function hs(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ft)}function gs(e){return e===e&&!Eu(e)}function _s(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in ot(r))}}function vs(e){var t=Hl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function ys(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?ro(m,d,t[4]):d,e[4]=m?lr(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?io(m,d,t[6]):d,e[6]=m?lr(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Zt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function bs(e){var t=[];if(e!=null)for(var n in ot(e))t.push(n);return t}function xs(e){return vt.call(e)}function Ss(e,t,r){return t=Kt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Kt(n.length-t,0),o=Be(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Be(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),vn(e,this,s)}}function Cs(e,t){return t.length<2?e:Ii(e,ka(t,0,-1))}function ws(e,t){for(var r=e.length,i=Zt(t.length,r),a=ao(e);i--;){var o=t[i];e[i]=cs(o,r)?a[o]:n}return e}function Ts(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var Es=As(Ea),Ds=It||function(e,t){return on.setTimeout(e,t)},Os=As(Da);function ks(e,t,n){var r=t+``;return Os(e,os(r,Fs(ts(r),n)))}function As(e){var t=0,r=0;return function(){var i=Qt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function js(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ya(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Ms=vs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ie,function(e,n,r,i){t.push(r?i.replace(Ke,`$1`):n||e)}),t});function Ns(e){if(typeof e==`string`||Vu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ps(e){if(e!=null){try{return mt.call(e)}catch{}try{return e+``}catch{}}return``}function Fs(e,t){return bn(S,function(n){var r=`_.`+n[0];t&n[1]&&!wn(e,r)&&e.push(r)}),e.sort()}function Is(e){if(e instanceof Ar)return e.clone();var t=new kr(e.__wrapped__,e.__chain__);return t.__actions__=ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ls(e,t,r){t=(r?ls(e,t,r):t===n)?1:Kt(Yu(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=Be(Lt(i/t));a<i;)s[o++]=ka(e,a,a+=t);return s}function Rs(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function zs(){var e=arguments.length;if(!e)return[];for(var t=Be(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Dn(uu(n)?ao(n):[n],N(t,1))}var Bs=Sa(function(e,t){return pu(e)?wi(e,N(t,1,pu,!0)):[]}),Vs=Sa(function(e,t){var r=sc(t);return pu(r)&&(r=n),pu(e)?wi(e,N(t,1,pu,!0),Ko(r,2)):[]}),Hs=Sa(function(e,t){var r=sc(t);return pu(r)&&(r=n),pu(e)?wi(e,N(t,1,pu,!0),n,r):[]});function Us(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Yu(t),ka(e,t<0?0:t,i)):[]}function Ws(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Yu(t),t=i-t,ka(e,0,t<0?0:t)):[]}function Gs(e,t){return e&&e.length?za(e,Ko(t,3),!0,!0):[]}function Ks(e,t){return e&&e.length?za(e,Ko(t,3),!0):[]}function qs(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&ls(e,t,n)&&(n=0,r=i),ki(e,t,n,r)):[]}function Js(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Yu(n);return i<0&&(i=Kt(r+i,0)),Fn(e,Ko(t,3),i)}function Ys(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Yu(r),a=r<0?Kt(i+a,0):Zt(a,i-1)),Fn(e,Ko(t,3),a,!0)}function Xs(e){return e!=null&&e.length?N(e,1):[]}function Zs(e){return e!=null&&e.length?N(e,h):[]}function Qs(e,t){return e!=null&&e.length?(t=t===n?1:Yu(t),N(e,t)):[]}function $s(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];_i(r,i[0],i[1])}return r}function ec(e){return e&&e.length?e[0]:n}function tc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Yu(n);return i<0&&(i=Kt(r+i,0)),In(e,t,i)}function nc(e){return e!=null&&e.length?ka(e,0,-1):[]}var rc=Sa(function(e){var t=En(e,Ua);return t.length&&t[0]===e[0]?Ui(t):[]}),ic=Sa(function(e){var t=sc(e),r=En(e,Ua);return t===sc(r)? Line truncated
`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(nt,nr),n&&(c=!0,f+=`' +
__e(`+n+`) +
'`),a&&(l=!0,f+=`';
`+a+`;
__p += '`),r&&(f+=`' +
((__t = (`+r+`)) == null ? '' : __t) +
'`),u=o+t.length,t}),f+=`';
`;var h=ht.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
`+f+`
}
`;else if(Ge.test(h))throw new rt("Invalid `variable` option passed into `_.template`");f=(l?f.replace(we,``):f).replace(Te,`$1`).replace(Ee,`$1;`),f=`function(`+(h||`obj`)+`) {
`+(h?``:`obj || (obj = {});
`)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+f+`return __p
}`;var g=Cf(function(){return it(o,m+`return `+f).apply(n,s)});if(g.source=f,xu(g))throw g;return g}function pf(e){return ed(e).toLowerCase()}function mf(e){return ed(e).toUpperCase()}function hf(e,t,r){if(e=ed(e),e&&(r||t===n))return qn(e);if(!e||!(t=Fa(t)))return e;var i=hr(e),a=hr(t);return qa(i,Zn(i,a),Qn(i,a)+1).join(``)}function gf(e,t,r){if(e=ed(e),e&&(r||t===n))return e.slice(0,gr(e)+1);if(!e||!(t=Fa(t)))return e;var i=hr(e);return qa(i,0,Qn(i,hr(t))+1).join(``)}function _f(e,t,r){if(e=ed(e),e&&(r||t===n))return e.replace(ze,``);if(!e||!(t=Fa(t)))return e;var i=hr(e);return qa(i,Zn(i,hr(t))).join(``)}function vf(e,t){var r=30,i=`...`;if(Eu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Yu(t.length):r,i=`omission`in t?Fa(t.omission):i}e=ed(e);var o=e.length;if(ir(e)){var s=hr(e);o=s.length}if(r>=o)return e;var c=r-mr(i);if(c<1)return i;var l=s?qa(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Lu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=st(a.source,ed(Je.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Fa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function yf(e){return e=ed(e),e&&ke.test(e)?e.replace(De,_r):e}var bf=go(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),xf=ho(`toUpperCase`);function Sf(e,t,r){return e=ed(e),t=r?n:t,t===n?ar(e)?br(e):Nn(e):e.match(t)||[]}var Cf=Sa(function(e,t){try{return vn(e,n,t)}catch(e){return xu(e)?e:new rt(e)}}),wf=Bo(function(e,t){return bn(t,function(t){t=Ns(t),_i(e,t,Pl(e[t],e))}),e});function Tf(e){var t=e==null?0:e.length,n=Ko();return e=t?En(e,function(e){if(typeof e[1]!=`function`)throw new lt(r);return[n(e[0]),e[1]]}):[],Sa(function(n){for(var r=-1;++r<t;){var i=e[r];if(vn(i[0],this,n))return vn(i[1],this,n)}})}function Ef(e){return xi(bi(e,1))}function Df(e){return function(){return e}}function Of(e,t){return e==null||e!==e?t:e}var kf=bo(),Af=bo(!0);function jf(e){return e}function Mf(e){return ra(typeof e==`function`?e:bi(e,1))}function Nf(e){return ca(bi(e,1))}function Pf(e,t){return la(e,bi(t,1))}var Ff=Sa(function(e,t){return function(n){return Gi(n,e,t)}}),If=Sa(function(e,t){return function(n){return Gi(e,n,t)}});function Lf(e,t,n){var r=Cd(t),i=Fi(t,r);n==null&&!(Eu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Fi(t,Cd(t)));var a=!(Eu(n)&&`chain`in n)||!!n.chain,o=Cu(e);return bn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=ao(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dn([this.value()],arguments))})}),e}function Rf(){return on._===this&&(on._=bt),this}function zf(){}function Bf(e){return e=Yu(e),Sa(function(t){return fa(t,e)})}var Vf=wo(En),Hf=wo(Sn),Uf=wo(An);function Wf(e){return us(e)?Bn(Ns(e)):ga(e)}function Gf(e){return function(t){return e==null?n:Ii(e,t)}}var Kf=Do(),qf=Do(!0);function Jf(){return[]}function Yf(){return!1}function Xf(){return{}}function Zf(){return``}function Qf(){return!0}function $f(e,t){if(e=Yu(e),e<1||e>g)return[];var n=y,r=Zt(e,y);t=Ko(t),e-=y;for(var i=Gn(r,t);++n<e;)t(n);return i}function ep(e){return uu(e)?En(e,Ns):Vu(e)?[e]:ao(Ms(ed(e)))}function tp(e){var t=++gt;return ed(e)+t}var np=Co(function(e,t){return e+t},0),rp=Ao(`ceil`),ip=Co(function(e,t){return e/t},1),ap=Ao(`floor`);function op(e){return e&&e.length?Oi(e,jf,zi):n}function sp(e,t){return e&&e.length?Oi(e,Ko(t,2),zi):n}function cp(e){return zn(e,jf)}function lp(e,t){return zn(e,Ko(t,2))}function up(e){return e&&e.length?Oi(e,jf,oa):n}function dp(e,t){return e&&e.length?Oi(e,Ko(t,2),oa):n}var fp=Co(function(e,t){return e*t},1),pp=Ao(`round`),mp=Co(function(e,t){return e-t},0);function hp(e){return e&&e.length?Wn(e,jf):0}function gp(e,t){return e&&e.length?Wn(e,Ko(t,2)):0}return M.after=jl,M.ary=Ml,M.assign=td,M.assignIn=nd,M.assignInWith=rd,M.assignWith=id,M.at=ad,M.before=Nl,M.bind=Pl,M.bindAll=wf,M.bindKey=Fl,M.castArray=eu,M.chain=qc,M.chunk=Ls,M.compact=Rs,M.concat=zs,M.cond=Tf,M.conforms=Ef,M.constant=Df,M.countBy=il,M.create=od,M.curry=Il,M.curryRight=Ll,M.debounce=Rl,M.defaults=sd,M.defaultsDeep=cd,M.defer=zl,M.delay=Bl,M.difference=Bs,M.differenceBy=Vs,M.differenceWith=Hs,M.drop=Us,M.dropRight=Ws,M.dropRightWhile=Gs,M.dropWhile=Ks,M.fill=qs,M.filter=ol,M.flatMap=ll,M.flatMapDeep=ul,M.flatMapDepth=dl,M.flatten=Xs,M.flattenDeep=Zs,M.flattenDepth=Qs,M.flip=Vl,M.flow=kf,M.flowRight=Af,M.fromPairs=$s,M.functions=hd,M.functionsIn=gd,M.groupBy=ml,M.initial=nc,M.intersection=rc,M.intersectionBy=ic,M.intersectionWith=ac,M.invert=bd,M.invertBy=xd,M.invokeMap=gl,M.iteratee=Mf,M.keyBy=_l,M.keys=Cd,M.keysIn=wd,M.map=vl,M.mapKeys=Td,M.mapValues=Ed,M.matches=Nf,M.matchesProperty=Pf,M.memoize=Hl,M.merge=Dd,M.mergeWith=Od,M.method=Ff,M.methodOf=If,M.mixin=Lf,M.negate=Ul,M.nthArg=Bf,M.omit=kd,M.omitBy=Ad,M.once=Wl,M.orderBy=yl,M.over=Vf,M.overArgs=Gl,M.overEvery=Hf,M.overSome=Uf,M.partial=Kl,M.partialRi Line truncated
* In categorical functions, when the feature value does not match any of the stop domain values.
* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.
* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a \`circle-color\` property but the feature property value is not a string or not a valid color).
* 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:{type:`array`,minimum:0,maximum:24,value:[`number`,`color`],length:2,doc:`Zoom level and value pair.`},expression:{type:`array`,value:`expression_name`,minimum:1,doc:'An expression defines a function that can be used for data-driven style properties or feature filters. The first element of an expression array is a string naming the expression operator, e.g. `"*"` or `"case"`. Elements that follow (if any) are the _arguments_ to the expression. Each argument is either a literal value (a string, number, boolean, or `null`), or another expression array.'},expression_name:JSON.parse('{"doc":"First element in an expression array. May be followed by a number of arguments.","type":"enum","values":{"let":{"doc":"Binds expressions to named variables, which can then be referenced in the result expression using `[\\"var\\", \\"variable_name\\"]`.\\n\\n - [Visualize population density](https://maplibre.org/maplibre-gl-js/docs/examples/visualize-population-density/)","syntax":{"overloads":[{"parameters":["var_name_1","var_value_1","...","var_name_n","var_value_n","expression"],"output-type":"any"}],"parameters":[{"name":"var_name_i","type":"string literal","doc":"The name of the i-th variable."},{"name":"var_value_i","type":"any","doc":"The value of the i-th variable."},{"name":"expression","type":"any","doc":"The expression within which the named variables can be referenced."}]},"example":["let","someNumber",500,["interpolate",["linear"],["var","someNumber"],274,"#edf8e9",1551,"#006d2c"]],"group":"Variable binding","sdk-support":{"basic functionality":{"js":"0.41.0","android":"6.0.0","ios":"4.0.0"}}},"var":{"doc":"References variable bound using `let`.\\n\\n - [Visualize population density](https://maplibre.org/maplibre-gl-js/docs/examples/visualize-population-density/)","syntax":{"overloads":[{"parameters":["var_name"],"output-type":"any"}],"parameters":[{"name":"var_name","type":"string literal","doc":"The name of the variable bound using `let`."}]},"example":["var","density"],"group":"Variable binding","sdk-support":{"basic functionality":{"js":"0.41.0","android":"6.0.0","ios":"4.0.0"}}},"literal":{"doc":"Provides a literal array or object value.\\n\\n - [Display and style rich text labels](https://maplibre.org/maplibre-gl-js/docs/examples/display-and-style-rich-text-labels/)","syntax":{"overloads":[{"parameters":["json_object"],"output-type":"object"},{"parameters":["json_array"],"output-type":"array"}],"parameters":[{"name":"json_object","type":"JSON object"},{"name":"json_array","type":"JSON array"}]},"example":["literal",["DIN Offc Pro Italic","Arial Unicode MS Regular"]],"group":"Types","sdk-support":{"basic functionality":{"js":"0.41.0","android":"6.0.0","ios":"4.0.0"}}},"array":{"doc":"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type or length, then this assertion will cause the whole expression to be aborted.","syntax":{"overloads":[{"parameters":["value"],"output-type":"array"},{"parameters":["type","value"],"output-type":"array<type>"},{"parameters":["type","length","value"],"output-type":"array<type, length>"}],"parameters":[{"name":"value","type":"any"},{"name":"type","type":["string","number","boolean"],"doc":"The asserted type of the input array."},{"name":"length","type":"number literal","doc":"The asserted length of the input array."}]},"example":["array","string",3,["literal",["a","b","c"]]],"group":"Types","sdk-support":{"basic functionality":{"js":"0.41.0","android":"6.0.0","ios":"4.0.0"}}},"at":{"doc":"Retrieves an item from an array.","syntax":{"overloads":[{"parameters":["index","array"],"output-type":"T"}],"parameters":[{"name":"index","type":"number","doc":"The index into `array`."},{"name":"array","type":"array<T>","doc":"The array of items to retrieve the specified item from."}]},"example":["at",1,["literal",["a","b","c"]]],"group":"Lookup","sdk-support":{"basic functionality":{"js":"0.41.0","android":"6.0.0","ios":"4.0.0"}}},"in":{"doc":"Determines whether an item exists in an array or a substring exists in a string.\\n\\n - [Measure distances](https://maplibre.org/maplibre-gl-js/docs/examples/measure-distances/)","syntax":{"overloads":[{"parameters":["item","array"],"output-type":"boolean"},{"parameters":["substring","string"],"output-type":"boolean"}],"parameters":[{"name":"item","type":"T","doc":"The needle to search for within `array`."},{"name":"array","type":"array<T>","doc":"The haystack through which to search for `item`."},{"name":"substring","type":"string","doc":"The needle to search for within `string`."},{"name":"string","type":"string","doc":"The haystack through which to search for `substring`."}]},"example":["in","$type","Point"],"group":"Lookup","sdk-support":{"basic functionality":{"js":"1.6.0","android":"9.1.0","ios":"5.8.0"}}},"index-of":{"doc":"Returns thLine truncated
The unit is in pixels only for SDF sprites that were created with a blur radius of 8, multiplied by the display density. I.e., the radius needs to be 16 for \`@2x\` sprites, etc.`,requires:[`icon-image`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-halo-blur":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,doc:`Fade out the halo towards the outside.`,requires:[`icon-image`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"icon-translate":{type:`array`,value:`number`,length:2,default:[0,0],transition:!0,units:`pixels`,doc:`Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.`,requires:[`icon-image`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"icon-translate-anchor":{type:`enum`,values:{map:{doc:`Icons are translated relative to the map.`},viewport:{doc:`Icons are translated relative to the viewport.`}},doc:"Controls the frame of reference for `icon-translate`.",default:`map`,requires:[`icon-image`,`icon-translate`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"text-opacity":{type:`number`,doc:`The opacity at which the text will be drawn.`,default:1,minimum:0,maximum:1,transition:!0,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-color":{type:`color`,doc:`The color with which the text will be drawn.`,default:`#000000`,transition:!0,overridable:!0,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-color":{type:`color`,default:`rgba(0, 0, 0, 0)`,transition:!0,doc:`The color of the text's halo, which helps it stand out from backgrounds.`,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`,`feature`,`feature-state`]},"property-type":`data-driven`},"text-halo-width":{type:`number`,default:0,minimum:0,transition:!0,units:`pixels`,doc:`Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.`,requires:[`text-field`],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{js:`0.33.0`,android:`5.0.0`,ios:`3.5.0`},"[`global-state`](https:Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`5.20.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"raster-resampling":{type:`enum`,doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter. It is advised to use the generic `resampling` paint property instead.",values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`0.47.0`,android:`6.3.0`,ios:`4.2.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"raster-fade-duration":{type:`number`,default:300,minimum:0,transition:!1,units:`milliseconds`,doc:`Fade duration when a new tile is added, or when a video is started or its coordinates are updated.`,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},paint_hillshade:{"hillshade-illumination-direction":{type:`numberArray`,default:335,minimum:0,maximum:359,doc:"The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:`0.43.0`,android:`6.0.0`,ios:`4.0.0`},multidirectional:{js:`5.5.0`,android:`13.0.0`,ios:`6.24.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-illumination-altitude":{type:`numberArray`,default:45,minimum:0,maximum:90,doc:"The altitude of the light source(s) used to generate the hillshading with 0 as sunset and 90 as noon. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:`5.5.0`,android:`13.0.0`,ios:`6.24.0`},multidirectional:{js:`5.5.0`,android:`13.0.0`,ios:`6.24.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-illumination-anchor":{type:`enum`,values:{map:{doc:`The hillshade illumination is relative to the north direction.`},viewport:{doc:`The hillshade illumination is relative to the top of the viewport.`}},default:`viewport`,doc:`Direction of light source when map is rotated.`,"sdk-support":{"basic functionality":{js:`0.43.0`,android:`6.0.0`,ios:`4.0.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`},"hillshade-exaggeration":{type:`number`,doc:`Intensity of the hillshade`,default:.5,min Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`5.20.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},"paint_color-relief":{"color-relief-opacity":{type:`number`,default:1,minimum:0,maximum:1,doc:`The opacity at which the color-relief will be drawn.`,transition:!0,"sdk-support":{"basic functionality":{js:`5.6.0`,android:`13.0.0`,ios:`6.24.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},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:`13.0.0`,ios:`6.24.0`},"data-driven styling":{},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`elevation`]},"property-type":`color-ramp`},resampling:{type:`enum`,doc:`The resampling/interpolation method to use for overscaling, also known as texture magnification filter.
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:`(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled`},nearest:{doc:`Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled`}},default:`linear`,"sdk-support":{"basic functionality":{js:`5.20.0`,android:`https://github.com/maplibre/maplibre-native/issues/4117`,ios:`https://github.com/maplibre/maplibre-native/issues/4117`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`data-constant`}},paint_background:{"background-color":{type:`color`,default:`#000000`,doc:`The color with which the background will be drawn.`,transition:!0,requires:[{"!":`background-pattern`}],"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`},"background-pattern":{type:`resolvedImage`,transition:!0,doc:`Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.`,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"data-driven styling":{},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!1,parameters:[`zoom`]},"property-type":`cross-faded`},"background-opacity":{type:`number`,default:1,minimum:0,maximum:1,doc:`The opacity at which the background will be drawn.`,transition:!0,"sdk-support":{"basic functionality":{js:`0.10.0`,android:`2.0.1`,ios:`2.0.0`},"[`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression":{js:`5.6.0`,android:`https://github.com/maplibre/maplibre-native/issues/3302`,ios:`https://github.com/maplibre/maplibre-native/issues/3302`}},expression:{interpolated:!0,parameters:[`zoom`]},"property-type":`data-constant`}},transition:{duration:{type:`number`,default:300,minimum:0,units:`milliseconds`,doc:`Time allotted for transitions to complete.`},delay:{type:`number`,default:0,minimum:0,units:`milliseconds`,doc:`Length of time before a transition begins.`}},"property-type":{"data-driven":{type:`property-type`,doc:`Property is interpolable and can be represented using a property expression.`},"cross-faded":{type:`property-type`,doc:`Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms.`},"cross-faded-data-driven":{type:`property-type`,doc:`Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression.`},"color-ramp":{type:`property-type`,doc:`Property should be specified using a color ramp from which the output color can be sampled based on a property calculation.`},"data-constant":{type:`property-type`,doc:`Property is interpolable but cannot be represented using a property expression.`},constant:{type:`property-type`,doc:`Property is constant across all zoom levels and property values.`}},promoteId:{"*":{type:`string`,doc:`A name of a feature property to use as ID for feature state.`}},interpolation:{type:`array`,value:`interpolation_name`,minimum:1,doc:'An interpolation defines how to transition between items. The first element of an interpolation array is a string naming the interpolation operator, e.g. `"linear"` or `"exponential"`. Elements that follow (if any) are the _arguments_ to the interpolation.'},interpolation_name:{doc:`First element in an interpolation array. May be followed by a number of arguments.`,type:`enum`,values:{linear:{doc:`Interpolates linearly between the pair of stops just less than and just greater than the input`,syntax:{overloads:[{parameters:[],"output-type":`interpolation`}],parameters:[]},example:[`linear`],"sdk-support":{interpolate:{js:`0.42.0`,android:`6.0.0`,ios:`4.0.0`},"interpolate-hcl":{js:`0.49.0`,ios:`https://github.com/maplibre/maplibre-native/issues/2784`,android:`https://github.com/maplibre/maplibre-native/issues/2784`},"interpolate-lab":{js:`0.49.0`,ios:`https:// Line truncated
precision mediump float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
out highp vec4 fragColor;`,sde=`#ifdef GL_ES
precision highp float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const uint packedOpacity) {return vec2(float(packedOpacity >> 1u)/127.0,float(packedOpacity & 1u));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+ c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+ c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+ c
);}
#ifdef TERRAIN3D
uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;
#endif
const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
#ifdef TERRAIN3D
highp float d=unpack(texture(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
#else
return 1.0;
#endif
}float calculate_visibility(vec4 pos) {
#ifdef TERRAIN3D
vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
#else
return 1.0;
#endif
}float ele(ivec2 pos) {
#ifdef TERRAIN3D
vec4 rgb=(texelFetch(u_terrain,pos,0)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
#else
return 0.0;
#endif
}float get_elevation(vec2 pos) {
#ifdef TERRAIN3D
#ifdef GLOBE
if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
#endif
vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);ivec2 c=ivec2(floor(coord));ivec2 hi=textureSize(u_terrain,0)-1;float tl=ele(clamp(c,ivec2(0),hi));float tr=ele(clamp(c+ivec2(1,0),ivec2(0),hi));float bl=ele(clamp(c+ivec2(0,1),ivec2(0),hi));float br=ele(clamp(c+ivec2(1,1),ivec2(0),hi));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
#else
return 0.0;
#endif
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`,cde=`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,lde=`layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}`,ude=`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
}`,dde=`uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);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);}`,fde=`in vec3 v_data;flat in float v_visibility;
#pragma maplibre: define highp vec4 color
#pragma maplibre: define mediump float radius
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define highp vec4 stroke_color
#pragma maplibre: define mediump float stroke_width
#pragma maplibre: define lowp float stroke_opacity
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize mediump float radius
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize highp vec4 stroke_color
#pragma maplibre: initialize mediump float stroke_width
#pragma maplibre: initialize lowp float stroke_opacity
vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,pde=`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;layout(location=0) in ivec2 a_pos;out vec3 v_data;flat out float v_visibility;
#pragma maplibre: define highp vec4 color
#pragma maplibre: define mediump float radius
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define highp vec4 stroke_color
#pragma maplibre: define mediump float stroke_width
#pragma maplibre: define lowp float stroke_opacity
void main(void) {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize mediump float radius
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize highp vec4 stroke_color
#pragma maplibre: initialize mediump float stroke_width
#pragma maplibre: initialize lowp float stroke_opacity
ivec2 pos_raw=a_pos+32768;vec2 extrude=vec2(pos_raw & 7)/7.0*2.0-1.0;vec2 circle_center=vec2(pos_raw >> 3)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
#ifdef GLOBE
vec3 center_vector=projectToSphere(circle_center);
#endif
float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
#ifdef GLOBE
vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
#else
vec4 projected_center=projectTileWithElevation(circle_center,ele);
#endif
corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
#ifdef GLOBE
vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,zw=`void main() {fragColor=vec4(1.0);}`,Bw={prelude:Vw(ode,sde),projectionMercator:Vw(`
void clipAntimeridian() {}`,`float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}`),projectionGlobe:Vw(`uniform bool u_projection_clip_antimeridian;in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}`,`#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;out highp float v_projection_tile_x;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float t=exp(PI-(mercator_pos_y*PI*2.0));return (2.0*t)/(t*t+1.0);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;float spherical_x=mercator_pos.x*PI*2.0+PI;float t=exp(PI-(mercator_pos.y*PI*2.0));float t2=t*t;float denom=t2+1.0;float sin_sy=(t2-1.0)/denom;float cos_sy=(2.0*t)/denom;vec3 pos=vec3(sin(spherical_x)*cos_sy,sin_sy,cos(spherical_x)*cos_sy
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float 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) {v_projection_tile_x=posInTile.x;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) {v_projection_tile_x=posInTile.x;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:Vw(cde,lde),backgroundPattern:Vw(ude,dde),circle:Vw(fde,pde),clippingMask:Vw(zw,`layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}`),heatmap:Vw(`uniform highp float u_intensity;in vec2 v_extrude;
#pragma maplibre: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
#pragma maplibre: initialize highp float weight
float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;layout(location=0) in ivec2 a_pos;out vec2 v_extrude;
#pragma maplibre: define highp float weight
#pragma maplibre: define mediump float radius
const highp float ZERO=1.0/255.0/16.0;
#define GAUSS_COEF 0.3989422804014327
void main(void) {
#pragma maplibre: initialize highp float weight
#pragma maplibre: initialize mediump float radius
ivec2 pos_raw=a_pos+32768;vec2 unscaled_extrude=vec2(pos_raw & 7)/7.0*2.0-1.0;float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=vec2(pos_raw >> 3);
#ifdef GLOBE
vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:Vw(`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;layout(location=0) 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:Vw(`flat in float v_placed;flat in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}`,`layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;flat out float v_placed;flat 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:Vw(`flat in float v_radius;in vec2 v_extrude;flat in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}`,`layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;uniform vec2 u_viewport_size;flat out float v_radius;out vec2 v_extrude;flat 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:Vw(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {vec4 data=texelFetch(u_elevation_stops,ivec2(stop,0),0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0));
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_dimension;layout(location=0) 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:Vw(`uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}`,`layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}`),depth:Vw(zw,`layout(location=0) in vec2 a_pos;void main() {
#ifdef GLOBE
gl_Position=projectTileFor3D(a_pos,0.0);
#else
gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
#endif
}`),fill:Vw(`#pragma maplibre: define highp vec4 color
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize lowp float opacity
fragColor=color*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;
#pragma maplibre: define highp vec4 color
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize lowp float opacity
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:Vw(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma maplibre: define highp vec4 outline_color
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize highp vec4 outline_color
#pragma maplibre: initialize lowp float opacity
float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma maplibre: define highp vec4 outline_color
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize highp vec4 outline_color
#pragma maplibre: initialize lowp float opacity
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:Vw(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#pragma maplibre: define lowp float opacity
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
void main() {
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#pragma maplibre: define lowp float opacity
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
#pragma maplibre: define lowp float pixel_ratio_from
#pragma maplibre: define lowp float pixel_ratio_to
void main() {
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
#pragma maplibre: initialize lowp float pixel_ratio_from
#pragma maplibre: initialize lowp float pixel_ratio_to
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:Vw(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
#pragma maplibre: define lowp float opacity
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
void main() {
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;
#pragma maplibre: define lowp float opacity
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
#pragma maplibre: define lowp float pixel_ratio_from
#pragma maplibre: define lowp float pixel_ratio_to
void main() {
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
#pragma maplibre: initialize lowp float pixel_ratio_from
#pragma maplibre: initialize lowp float pixel_ratio_to
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:Vw(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;layout(location=1) in ivec4 a_normal_ed;
#ifdef TERRAIN3D
layout(location=2) in vec2 a_centroid;
#endif
out vec4 v_color;
#pragma maplibre: define highp float base
#pragma maplibre: define highp float height
#pragma maplibre: define highp vec4 color
void main() {
#pragma maplibre: initialize highp float base
#pragma maplibre: initialize highp float height
#pragma maplibre: initialize highp vec4 color
vec3 normal=vec3(a_normal_ed.xyz);
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=float(a_normal_ed.x & 1);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:Vw(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
#pragma maplibre: define lowp float base
#pragma maplibre: define lowp float height
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
#pragma maplibre: define lowp float pixel_ratio_from
#pragma maplibre: define lowp float pixel_ratio_to
void main() {
#pragma maplibre: initialize lowp float base
#pragma maplibre: initialize lowp float height
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
#pragma maplibre: initialize lowp float pixel_ratio_from
#pragma maplibre: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;layout(location=0) in vec2 a_pos;layout(location=1) in ivec4 a_normal_ed;
#ifdef TERRAIN3D
layout(location=2) in vec2 a_centroid;
#endif
#ifdef GLOBE
out vec3 v_sphere_pos;
#endif
out vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;
#pragma maplibre: define lowp float base
#pragma maplibre: define lowp float height
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
#pragma maplibre: define lowp float pixel_ratio_from
#pragma maplibre: define lowp float pixel_ratio_to
void main() {
#pragma maplibre: initialize lowp float base
#pragma maplibre: initialize lowp float height
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
#pragma maplibre: initialize lowp float pixel_ratio_from
#pragma maplibre: initialize lowp float pixel_ratio_to
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=vec3(a_normal_ed.xyz);float edgedistance=float(a_normal_ed.w);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;
#ifdef TERRAIN3D
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
#else
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
#endif
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=float(a_normal_ed.x & 1);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=a_normal_ed.x==1 && a_normal_ed.y==0 && a_normal_ed.z==16384
? a_pos
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.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:Vw(`#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(ivec2 texel) {vec4 data=texelFetch(u_image,texel,0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {ivec2 pos=ivec2(gl_FragCoord.xy)+ivec2(1);float tileSize=u_dimension.x-2.0;float a=getElevation(pos+ivec2(-1,-1));float b=getElevation(pos+ivec2(0,-1));float c=getElevation(pos+ivec2(1,-1));float d=getElevation(pos+ivec2(-1,0));float e=getElevation(pos);float f=getElevation(pos+ivec2(1,0));float g=getElevation(pos+ivec2(-1,1));float h=getElevation(pos+ivec2(0,1));float i=getElevation(pos+ivec2(1,1));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/pow(2.0,exaggeration+(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;layout(location=0) in vec2 a_pos;layout(location=1) in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}`),hillshade:Vw(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
#define IGOR 2
#define MULTIDIRECTIONAL 3
#define BASIC 4
float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}`),line:Vw(`uniform lowp float u_device_pixel_ratio;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#pragma maplibre: define highp vec4 color
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
#ifdef GLOBE
out float v_depth;
#endif
#pragma maplibre: define highp vec4 color
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define mediump float gapwidth
#pragma maplibre: define lowp float offset
#pragma maplibre: define mediump float width
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump float gapwidth
#pragma maplibre: initialize lowp float offset
#pragma maplibre: initialize mediump float width
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);v_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*2.0;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),lineGradient:Vw(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;layout(location=2) in float a_uv_x;layout(location=3) in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
#ifdef GLOBE
out float v_depth;
#endif
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define mediump float gapwidth
#pragma maplibre: define lowp float offset
#pragma maplibre: define mediump float width
void main() {
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump float gapwidth
#pragma maplibre: initialize lowp float offset
#pragma maplibre: initialize mediump float width
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),linePattern:Vw(`#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;flat in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;flat in float v_width;
#ifdef GLOBE
in float v_depth;
#endif
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
#pragma maplibre: define lowp float pixel_ratio_from
#pragma maplibre: define lowp float pixel_ratio_to
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
#pragma maplibre: initialize lowp float pixel_ratio_from
#pragma maplibre: initialize lowp float pixel_ratio_to
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
clipAntimeridian();vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;flat out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;flat out float v_width;
#ifdef GLOBE
out float v_depth;
#endif
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define lowp float offset
#pragma maplibre: define mediump float gapwidth
#pragma maplibre: define mediump float width
#pragma maplibre: define lowp float floorwidth
#pragma maplibre: define lowp vec4 pattern_from
#pragma maplibre: define lowp vec4 pattern_to
#pragma maplibre: define lowp float pixel_ratio_from
#pragma maplibre: define lowp float pixel_ratio_to
void main() {
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize lowp float offset
#pragma maplibre: initialize mediump float gapwidth
#pragma maplibre: initialize mediump float width
#pragma maplibre: initialize lowp float floorwidth
#pragma maplibre: initialize mediump vec4 pattern_from
#pragma maplibre: initialize mediump vec4 pattern_to
#pragma maplibre: initialize lowp float pixel_ratio_from
#pragma maplibre: initialize lowp float pixel_ratio_to
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:Vw(`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;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#pragma maplibre: define highp vec4 color
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define mediump float width
#pragma maplibre: define lowp float floorwidth
#pragma maplibre: define mediump vec4 dasharray_from
#pragma maplibre: define mediump vec4 dasharray_to
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump float width
#pragma maplibre: initialize lowp float floorwidth
#pragma maplibre: initialize mediump vec4 dasharray_from
#pragma maplibre: initialize mediump vec4 dasharray_to
clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0/u_device_pixel_ratio)/min(dasharray_from.w,dasharray_to.w);alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;flat out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
#ifdef GLOBE
out float v_depth;
#endif
#pragma maplibre: define highp vec4 color
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define mediump float gapwidth
#pragma maplibre: define lowp float offset
#pragma maplibre: define mediump float width
#pragma maplibre: define lowp float floorwidth
#pragma maplibre: define mediump vec4 dasharray_from
#pragma maplibre: define mediump vec4 dasharray_to
void main() {
#pragma maplibre: initialize highp vec4 color
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump float gapwidth
#pragma maplibre: initialize lowp float offset
#pragma maplibre: initialize mediump float width
#pragma maplibre: initialize lowp float floorwidth
#pragma maplibre: initialize mediump vec4 dasharray_from
#pragma maplibre: initialize mediump vec4 dasharray_to
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
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:Vw(`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;flat 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
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define mediump float width
#pragma maplibre: define lowp float floorwidth
#pragma maplibre: define mediump vec4 dasharray_from
#pragma maplibre: define mediump vec4 dasharray_to
void main() {
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump float width
#pragma maplibre: initialize lowp float floorwidth
#pragma maplibre: initialize mediump vec4 dasharray_from
#pragma maplibre: initialize mediump vec4 dasharray_to
clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);float sdfdist_a=texture(u_image_dash,v_tex_a).a;float sdfdist_b=texture(u_image_dash,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0)/min(dasharray_from.w,dasharray_to.w);float dash_alpha=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*dash_alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;layout(location=2) in float a_uv_x;layout(location=3) in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;out vec2 v_tex_a;out vec2 v_tex_b;
#ifdef GLOBE
out float v_depth;
#endif
#pragma maplibre: define lowp float blur
#pragma maplibre: define lowp float opacity
#pragma maplibre: define mediump float gapwidth
#pragma maplibre: define lowp float offset
#pragma maplibre: define mediump float width
#pragma maplibre: define lowp float floorwidth
#pragma maplibre: define mediump vec4 dasharray_from
#pragma maplibre: define mediump vec4 dasharray_to
void main() {
#pragma maplibre: initialize lowp float blur
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize mediump float gapwidth
#pragma maplibre: initialize lowp float offset
#pragma maplibre: initialize mediump float width
#pragma maplibre: initialize lowp float floorwidth
#pragma maplibre: initialize mediump vec4 dasharray_from
#pragma maplibre: initialize mediump vec4 dasharray_to
if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;float texel_height=1.0/u_image_height;float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
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);}`),layerOpacity:Vw(`uniform sampler2D u_image;uniform float u_opacity;in vec2 v_pos;void main() {fragColor=texture(u_image,v_pos)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(0.0);
#endif
}`,`layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}`),raster:Vw(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec3 u_perspective_transform;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;layout(location=0) in vec2 a_pos;out vec3 v_pos0;out vec3 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);vec2 texturePos=((fractionalPos-0.5)/u_buffer_scale)+0.5;
#ifdef GLOBE
if (a_pos.y <-32767.5) {texturePos.y=0.0;}if (a_pos.y > 32766.5) {texturePos.y=1.0;}
#endif
float perspectiveRatio=dot(u_perspective_transform,vec3(position,1.0));v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:Vw(`uniform sampler2D u_texture;in vec2 v_tex;flat in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec4 a_pixeloffset;layout(location=3) in vec3 a_projected_pos;layout(location=4) in uint a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;out vec2 v_tex;flat out float v_total_opacity;
#pragma maplibre: define lowp float opacity
void main() {
#pragma maplibre: initialize lowp float opacity
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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_total_opacity=opacity*max(0.0,min(visibility,fade_opacity[0]+fade_change));if (v_total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:Vw(`#define SDF_PX 8.0
uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
#pragma maplibre: define highp vec4 fill_color
#pragma maplibre: define highp vec4 halo_color
#pragma maplibre: define lowp float halo_width
#pragma maplibre: define lowp float halo_blur
void main() {
#pragma maplibre: initialize highp vec4 fill_color
#pragma maplibre: initialize highp vec4 halo_color
#pragma maplibre: initialize lowp float halo_width
#pragma maplibre: initialize lowp float halo_blur
float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float total_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out_text,color_alpha_out_halo;if (u_is_plain){highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);color_alpha_out_text=total_opacity*alpha*fill_color;}if (u_is_halo) {float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);float inner_edge_halo=inner_edge+gamma_halo*gamma_scale;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(inner_edge_halo-gamma_scaled_halo,inner_edge_halo+gamma_scaled_halo,dist);highp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha_halo= min(smoothstep(halo_edge-gamma_scaled_halo,halo_edge+gamma_scaled_halo,dist),1.0-alpha_halo);color_alpha_out_halo=total_opacity*alpha_halo*halo_color;}if (u_is_plain && u_is_halo) {fragColor=color_alpha_out_text+(1.-color_alpha_out_text.a)*color_alpha_out_halo;} else if (u_is_halo){fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out_text;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec4 a_pixeloffset;layout(location=3) in vec3 a_projected_pos;layout(location=4) in uint a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;out vec2 v_data0;out vec3 v_data1;
#pragma maplibre: define highp vec4 fill_color
#pragma maplibre: define highp vec4 halo_color
#pragma maplibre: define lowp float opacity
#pragma maplibre: define lowp float halo_width
#pragma maplibre: define lowp float halo_blur
void main() {
#pragma maplibre: initialize highp vec4 fill_color
#pragma maplibre: initialize highp vec4 halo_color
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize lowp float halo_width
#pragma maplibre: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);vec2 a_pxoffset=a_pixeloffset.xy/16.0;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:Vw(`#define SDF_PX 8.0
#define SDF 1.0
#define ICON 0.0
uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec3 v_data1;flat in float v_is_sdf;
#pragma maplibre: define highp vec4 fill_color
#pragma maplibre: define highp vec4 halo_color
#pragma maplibre: define lowp float halo_width
#pragma maplibre: define lowp float halo_blur
void main() {
#pragma maplibre: initialize highp vec4 fill_color
#pragma maplibre: initialize highp vec4 halo_color
#pragma maplibre: initialize lowp float halo_width
#pragma maplibre: initialize lowp float halo_blur
float total_opacity=v_data1[2];if (v_is_sdf==ICON) {vec2 tex_icon=v_data0.zw;fragColor=texture(u_texture_icon,tex_icon)*total_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out,color_alpha_out_halo;if (u_is_text) {highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);color_alpha_out=fill_color*(alpha*total_opacity);}if (u_is_halo) {highp float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);lowp float buff_halo=(6.0-halo_width/fontScale)/SDF_PX;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(buff_halo-gamma_scaled_halo,buff_halo+gamma_scaled_halo,dist);color_alpha_out_halo=halo_color*(alpha_halo*total_opacity);}if (u_is_text && u_is_halo) {fragColor=color_alpha_out+(1.-color_alpha_out.a)*color_alpha_out_halo;} else if (u_is_halo) {fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec3 a_projected_pos;layout(location=3) in uint a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;out vec4 v_data0;out vec3 v_data1;flat out float v_is_sdf;
#pragma maplibre: define highp vec4 fill_color
#pragma maplibre: define highp vec4 halo_color
#pragma maplibre: define lowp float opacity
#pragma maplibre: define lowp float halo_width
#pragma maplibre: define lowp float halo_blur
void main() {
#pragma maplibre: initialize highp vec4 fill_color
#pragma maplibre: initialize highp vec4 halo_color
#pragma maplibre: initialize lowp float opacity
#pragma maplibre: initialize lowp float halo_width
#pragma maplibre: initialize lowp float halo_blur
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);float is_sdf=float(a_data.z & 1u);float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
camera_to_anchor_distance/u_camera_to_center_distance :
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:Vw(`uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}`,`layout(location=0) in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}`),terrainDepth:Vw(`in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}`,`layout(location=0) in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}`),terrainCoords:Vw(`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);}`,`layout(location=0) 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);}`),atmosphere:Vw(`#ifdef GL_ES
precision highp float;
#endif
in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,`layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}`),sky:Vw(`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);}`,`layout(location=0) in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}`)};function Vw(e,t){let n=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/in ([\w]+) ([\w]+)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(i):i,s=r?r.length:0,c={};return e=e.replace(n,(e,t,n,r,i)=>(c[i]=!0,t===`define`?`
#ifndef HAS_UNIFORM_u_${i}
in ${n} ${r} ${i};
#else
uniform ${n} ${r} u_${i};
#endif
`:`
#ifdef HAS_UNIFORM_u_${i}
${n} ${r} ${i} = u_${i};
#endif
`)),t=t.replace(n,(e,t,n,r,i)=>{let a=r===`float`?`vec2`:`vec4`,o=i.match(/color/)?`color`:a;return c[i]?t===`define`?`
#ifndef HAS_UNIFORM_u_${i}
uniform lowp float u_${i}_t;
layout(location = ${s++}) in ${n} ${a} a_${i};
out ${n} ${r} ${i};
#else
uniform ${n} ${r} u_${i};
#endif
`:o===`vec4`?`
#ifndef HAS_UNIFORM_u_${i}
${i} = a_${i};
#else
${n} ${r} ${i} = u_${i};
#endif
`:`
#ifndef HAS_UNIFORM_u_${i}
${i} = unpack_mix_${o}(a_${i}, u_${i}_t);
#else
${n} ${r} ${i} = u_${i};
#endif
`:t===`define`?`
#ifndef HAS_UNIFORM_u_${i}
uniform lowp float u_${i}_t;
layout(location = ${s++}) in ${n} ${a} a_${i};
#else
uniform ${n} ${r} u_${i};
#endif
`:o===`vec4`?`
#ifndef HAS_UNIFORM_u_${i}
${n} ${r} ${i} = a_${i};
#else
${n} ${r} ${i} = u_${i};
#endif
`:`
#ifndef HAS_UNIFORM_u_${i}
${n} ${r} ${i} = unpack_mix_${o}(a_${i}, u_${i}_t);
#else
${n} ${r} ${i} = u_${i};
#endif
`}),{fragmentSource:e,vertexSource:t,staticAttributes:r,staticUniforms:o}}var Hw=class{constructor(e,t,n){this.vertexBuffer=e,this.indexBuffer=t,this.segments=n}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}},Uw=$_([{name:`a_pos`,type:`Int16`,components:2}]),Ww=`#define PROJECTION_MERCATOR`,Gw=`mercator`,Kw=class{constructor(){this._cachedMesh=null}get name(){return`mercator`}get useSubdivision(){return!1}get shaderVariantName(){return Gw}get shaderDefine(){return Ww}get shaderPreludeCode(){return Bw.projectionMercator}get vertexShaderPreludeCode(){return Bw.projectionMercator.vertexSource}get subdivisionGranularity(){return wb.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,n,r,i){if(this._cachedMesh)return this._cachedMesh;let a=new Lv;a.emplaceBack(0,0),a.emplaceBack(F,0),a.emplaceBack(0,F),a.emplaceBack(F,F);let o=e.createVertexBuffer(a,Uw.members),s=Wv.simpleSegment(0,0,4,2),c=new Vv;c.emplaceBack(1,0,2),c.emplaceBack(1,2,3);let l=e.createIndexBuffer(c);return this._cachedMesh=new Hw(o,l,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},qw=class e{constructor(e=0,t=0,n=0,r=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw Error(`Invalid value for edge-insets, top, bottom, left and right must all be numbers`);this.top=e,this.bottom=t,this.left=n,this.right=r}interpolate(e,t,n){return t.top!=null&&e.top!=null&&(this.top=gh.number(e.top,t.top,n)),t.bottom!=null&&e.bottom!=null&&(this.bottom=gh.number(e.bottom,t.bottom,n)),t.left!=null&&e.left!=null&&(this.left=gh.number(e.left,t.left,n)),t.right!=null&&e.right!=null&&(this.right=gh.number(e.right,t.right,n)),this}getCenter(e,t){return new P(Mf((this.left+e-this.right)/2,0,e),Mf((this.top+t-this.bottom)/2,0,t))}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new e(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};function Jw(e,t){if(!e.renderWorldCopies||e.lngRange)return;let n=t.lng-e.center.lng;t.lng+=n>180?-360:n<-180?360:0}function Yw(e){return Math.max(0,Math.floor(e))}var Xw=class{constructor(e,t){this.applyConstrain=(e,t)=>this._constrainOverride===null?this._callbacks.defaultConstrain(e,t):this._constrainOverride(e,t),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=t?.renderWorldCopies===void 0||!!t?.renderWorldCopies,this._minZoom=t?.minZoom||0,this._maxZoom=t?.maxZoom||22,this._minPitch=t?.minPitch===void 0||t?.minPitch===null?0:t?.minPitch,this._maxPitch=t?.maxPitch===void 0||t?.maxPitch===null?60:t?.maxPitch,this._constrainOverride=t?.constrainOverride??null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new Mb(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Yw(this._zoom),this._scale=Bf(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new qw,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t,n){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=Yw(this._zoom),this._scale=Bf(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new qw(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=!n&&e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}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(e){this._minZoom!==e&&(this._minZoom=e,this.setZoom(this.applyConstrain(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(e){this._maxZoom!==e&&(this._maxZo Line truncated
`),x=y.concat(Bw.prelude.vertexSource,o.vertexSource,t.vertexSource).join(`
`),S=l.createShader(l.FRAGMENT_SHADER);if(l.isContextLost()){this.failedToCreate=!0;return}if(l.shaderSource(S,b),l.compileShader(S),!l.getShaderParameter(S,l.COMPILE_STATUS))throw Error(`Could not compile fragment shader: ${l.getShaderInfoLog(S)}`);l.attachShader(this.program,S);let C=l.createShader(l.VERTEX_SHADER);if(l.isContextLost()){this.failedToCreate=!0;return}if(l.shaderSource(C,x),l.compileShader(C),!l.getShaderParameter(C,l.COMPILE_STATUS))throw Error(`Could not compile vertex shader: ${l.getShaderInfoLog(C)}`);l.attachShader(this.program,C),this.attributes={};let w={};if(this.numAttributes=f.length,l.linkProgram(this.program),!l.getProgramParameter(this.program,l.LINK_STATUS))throw Error(`Program failed to link: ${l.getProgramInfoLog(this.program)}`);let T=$de(l,this.program);for(let e of f){if(!e)continue;let t=l.getAttribLocation(this.program,e);t>=0&&(this.attributes[e]={location:t,isInteger:T.has(e)})}l.deleteShader(C),l.deleteShader(S);for(let e of v)if(e&&!w[e]){let t=l.getUniformLocation(this.program,e);t&&(w[e]=t)}this.fixedUniforms=r(e,w),this.terrainUniforms=Wde(e,w),this.projectionUniforms=Zde(e,w),this.binderUniforms=n?n.getUniforms(e,w):[]}draw(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(a),s){e.activeTexture.set(y.TEXTURE2),y.bindTexture(y.TEXTURE_2D,s.depthTexture),e.activeTexture.set(y.TEXTURE3),y.bindTexture(y.TEXTURE_2D,s.texture);for(let e in this.terrainUniforms)this.terrainUniforms[e].set(s[e])}if(c){let e=Qde(c);for(let t in this.projectionUniforms)this.projectionUniforms[t].set(e[t])}if(o)for(let e in this.fixedUniforms)this.fixedUniforms[e].set(o[e]);h&&h.setUniforms(e,this.binderUniforms,p,{zoom:m});let b=0;switch(t){case y.LINES:b=2;break;case y.TRIANGLES:b=3;break;case y.LINE_STRIP:b=1}for(let n of f.get())n.vaos||={},n.vaos[l]||=new Ude,n.vaos[l].bind(e,this,u,h?h.getPaintVertexBuffers():[],d,n.vertexOffset,g,_,v),y.drawElements(t,n.primitiveLength*b,y.UNSIGNED_SHORT,n.primitiveOffset*b*2)}};function tfe(e,t,n){let r=1/uf(n,1,t.transform.tileZoom),i=2**n.tileID.overscaledZ,a=n.tileSize*2**t.transform.tileZoom/i,o=a*(n.tileID.canonical.x+n.tileID.wrap*i),s=a*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function nfe(e,t,n,r){let i=n.patternAtlas.getPattern(e.from.toString()),a=n.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=n.patternAtlas.getPixelSize(),c=2**r.tileID.overscaledZ,l=r.tileSize*2**n.transform.tileZoom/c,u=l*(r.tileID.canonical.x+r.tileID.wrap*c),d=l*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/uf(r,1,n.transform.tileZoom),u_pixel_coord_upper:[u>>16,d>>16],u_pixel_coord_lower:[u&65535,d&65535]}}var rfe=(e,t)=>({u_lightpos:new ey(e,t.u_lightpos),u_lightpos_globe:new ey(e,t.u_lightpos_globe),u_lightintensity:new Qv(e,t.u_lightintensity),u_lightcolor:new ey(e,t.u_lightcolor),u_vertical_gradient:new Qv(e,t.u_vertical_gradient),u_opacity:new Qv(e,t.u_opacity),u_fill_translate:new $v(e,t.u_fill_translate)}),ife=(e,t)=>({u_lightpos:new ey(e,t.u_lightpos),u_lightpos_globe:new ey(e,t.u_lightpos_globe),u_lightintensity:new Qv(e,t.u_lightintensity),u_lightcolor:new ey(e,t.u_lightcolor),u_vertical_gradient:new Qv(e,t.u_vertical_gradient),u_height_factor:new Qv(e,t.u_height_factor),u_opacity:new Qv(e,t.u_opacity),u_fill_translate:new $v(e,t.u_fill_translate),u_image:new Zv(e,t.u_image),u_texsize:new $v(e,t.u_texsize),u_pixel_coord_upper:new $v(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new $v(e,t.u_pixel_coord_lower),u_scale:new ey(e,t.u_scale),u_fade:new Qv(e,t.u_fade)}),afe=(e,t,n,r)=>{let i=e.style.light,a=i.getCartesianPosition(),o=Zu();i.properties.get(`anchor`)===`viewport`&&$u(o,e.transform.bearingInRadians),Md(a,a,o);let s=e.transform.transformLightDirection(a),c=i.properties.get(`color`);return{u_lightpos:a,u_lightpos_globe:s,u_lightintensity:i.properties.get(`intensity`),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+t,u_opacity:n,u_fill_translate:r}},ofe=(e,t,n,r,i,a,o)=>Pf(afe(e,t,n,r),tfe(a,e,o),{u_height_factor:-(2**i.overscaledZ)/o.tileSize/8}),sfe=(e,t)=>({u_fill_translate:new $v(e,t.u_fill_translate)}),cfe=(e,t)=>({u_image:new Zv(e,t.u_image),u_texsize:new $v(e,t.u_texsize),u_pixel_coord_upper:new $v(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new $v(e,t.u_pixel_coord_lower),u_scale:new ey(e,t.u_scale),u_fade:new Qv(e,t.u_fade),u_fill_translate:new $v(e,t.u_fill_translate)}),lfe=(e,t)=>({u_world:new $v(e,t.u_world),u_fill_translate:new $v(e,t.u_fill_translate)}),ufe=(e,t)=>({u_world:new $v(e,t.u_world),u_image:new Zv(e,t.u_image),u_t Line truncated
${e} <span></span>
`,GD().s[12]++,this._textEl=this._container.querySelector(`span`),GD().s[13]++,this.updateZoomLevel()}addEventListeners(){GD().f[4]++,GD().s[14]++,this._map.on(`render`,()=>(GD().f[5]++,GD().s[15]++,this.updateZoomLevel()))}onRemove(){GD().f[6]++,GD().s[16]++,this._container.parentNode.removeChild(this._container),GD().s[17]++,this._map=void 0}};function KD(e,t,n){let r={id:[t,n,`circle`].join(`_`),source:t,type:`circle`,paint:{"circle-color":e,"circle-radius":2},filter:[`==`,`$type`,`Point`]};return n&&(r[`source-layer`]=n),r}function qD(e,t,n,r){let i={id:[n,r,`polygon`].join(`_`),source:n,type:`fill`,paint:{"fill-color":e,"fill-antialias":!0,"fill-outline-color":e},filter:[`==`,`$type`,`Polygon`]};return r&&(i[`source-layer`]=r),i}function JD(e,t,n){let r={id:[t,n,`line`].join(`_`),source:t,layout:{"line-join":`round`,"line-cap":`round`},type:`line`,paint:{"line-color":e},filter:[`==`,`$type`,`LineString`]};return n&&(r[`source-layer`]=n),r}function YD(e,t){return{circle:t(e,.8),line:t(e,.6),polygon:t(e,.3),polygonOutline:t(e,.6),default:t(e,1)}}function w_e(e,t){let n=[],r=[],i=[];for(let a of Object.keys(e)){let o=e[a];if(!o||o.length===0){let e=YD(a,t);r.push(KD(e.circle,a)),i.push(JD(e.line,a)),n.push(qD(e.polygon,e.polygonOutline,a))}else for(let e of o){let o=YD(e,t);r.push(KD(o.circle,a,e)),i.push(JD(o.line,a,e)),n.push(qD(o.polygon,o.polygonOutline,a,e))}}return n.concat(i).concat(r)}function T_e(e,t,n){n=Object.assign({backgroundColor:`#fff`},n);let r={id:`background`,type:`background`,paint:{"background-color":n.backgroundColor}},i={};for(let t of Object.keys(e.sources)){let n=e.sources[t];(n.type===`vector`||n.type===`geojson`)&&(i[t]=n)}return Object.assign(e,{layers:[r].concat(t),sources:i})}var XD={polygonLayer:qD,lineLayer:JD,circleLayer:KD,generateInspectStyle:T_e,generateColoredLayers:w_e};function ZD(){var e=`/home/runner/work/maputnik/maputnik/src/libs/highlight.ts`,t=`7421726a7afec07b60dcbf24ab0d23889ebbf613`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/highlight.ts`,statementMap:{0:{start:{line:4,column:1},end:{line:8,column:2}},1:{start:{line:5,column:2},end:{line:5,column:31}},2:{start:{line:6,column:8},end:{line:8,column:2}},3:{start:{line:7,column:2},end:{line:7,column:28}},4:{start:{line:9,column:1},end:{line:13,column:2}},5:{start:{line:10,column:2},end:{line:10,column:26}},6:{start:{line:12,column:2},end:{line:12,column:21}},7:{start:{line:14,column:1},end:{line:14,column:28}},8:{start:{line:15,column:1},end:{line:15,column:10}},9:{start:{line:18,column:1},end:{line:18,column:83}},10:{start:{line:18,column:71},end:{line:18,column:83}},11:{start:{line:19,column:23},end:{line:19,column:50}},12:{start:{line:20,column:15},end:{line:20,column:51}},13:{start:{line:21,column:1},end:{line:23,column:2}},14:{start:{line:22,column:2},end:{line:22,column:102}},15:{start:{line:24,column:1},end:{line:26,column:2}},16:{start:{line:25,column:2},end:{line:25,column:94}},17:{start:{line:27,column:1},end:{line:29,column:2}},18:{start:{line:28,column:2},end:{line:28,column:92}},19:{start:{line:30,column:1},end:{line:30,column:13}}},fnMap:{0:{name:`changeLayer`,decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:`colorHighlightedLayer`,decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:1},end:{line:8,column:2}},type:`if`,locations:[{start:{line:4,column:1},end:{line:8,column:2}},{start:{line:6,column:8},end:{line:8,column:2}}],line:4},1:{loc:{start:{line:6,column:8},end:{line:8,column:2}},type:`if`,locations:[{start:{line:6,column:8},end:{line:8,column:2}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:1},end:{line:13,column:2}},type:`if`,locations:[{start:{line:9,column:1},end:{line:13,column:2}},{start:{line:11,column:8},end:{line:13,column:2}}],line:9},3:{loc:{start:{line:18,column:1},end:{line:18,column:83}},type:`if`,locations:[{start:{line:18,column:1},end:{line:18,column:83}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:5},end:{line:18,column:69}},type:`binary-expr`,locations:[{start:{line:18,column:5},end:{line:18,column:11}},{start:{line:18,column:15},end:{line:18,column:42}},{start:{line:18,column:46},end:{line:18,column:69}}],line:18},5:{loc:{start:{line:19,column:23},end:{line:19,column:50}},type:`binary-expr`,locations:[{start:{line:19,column:23},end:{line:19,column:44}},{start:{line:19,column:48},end:{line:19,column:50}}],line:19},6:{loc:{start:{line:21,column:1},end:{line:23,column:2}},type:`if`,locations:[{start:{line:21,column:1},end:{line:23,column:2}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},7:{loc:{start:{line:21,column:5},end:{line:21,column:61}},type:`binary-expr`,locations:[{start:{line:21,column Line truncated
${this._localize(`errorNoResults`)}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){let t=F_e.language(this.options.language.split(`,`)[0]);return this.options.language&&SO?.[e][t]?SO[e][t]:SO[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;let e=this._typeahead.data.filter(e=>typeof e!=`string`).slice(0,this.options.limit);if(this._clearEl.style.display=`none`,this.options.flyTo&&this._maplibregl&&this._map){let t=vO({},{padding:100},this.options.flyTo),n=new this._maplibregl.LngLatBounds;for(let t of e)`geometry`in t&&t.geometry?.type===`Point`&&n.extend(t.geometry.coordinates);this._map.fitBounds(n,t)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e==`function`&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.options.placeholder=e||this.options.placeholder||this._localize(`placeholder`),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute(`aria-label`,this.options.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();let t=vO({},{color:`#4668F2`},this.options.marker);this.mapMarker=new this._maplibregl.Marker(t);let n=null;if(this.options.popup){let t=vO({},{},this.options.popup);n=new this._maplibregl.Popup(t).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(n)):e.geometry?.type===`Point`&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(n)),this}_removeMarker(){this.mapMarker&&=(this.mapMarker.remove(),null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let t=vO({},{color:`#4668F2`},this.options.showResultMarkers);for(let n of e){let e;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(e=this.options.showResultMarkers.element.cloneNode(!0),t=vO(t,{element:e}));let r=new this._maplibregl.Marker(vO({},t,{element:e})),i;if(this.options.popup){let e=vO({},{},this.options.popup);i=new this._maplibregl.Popup(e).setHTML(this.options.popupRender(n))}n.center?(r.setLngLat(n.center).addTo(this._map),this.options.popup&&r.setPopup(i)):n.geometry&&n.geometry.type&&n.geometry.type===`Point`&&n.geometry.coordinates&&(r.setLngLat(n.geometry.coordinates).addTo(this._map),this.options.popup&&r.setPopup(i)),this.resultMarkers.push(r)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}};function z(){var e=`/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx`,t=`de08aa65bb219afae881e9eea5c66dd282c5367d`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx`,statementMap:{0:{start:{line:21,column:25},end:{line:25,column:2}},1:{start:{line:26,column:15},end:{line:26,column:54}},2:{start:{line:27,column:1},end:{line:29,column:2}},3:{start:{line:28,column:2},end:{line:28,column:28}},4:{start:{line:30,column:17},end:{line:30,column:19}},5:{start:{line:31,column:1},end:{line:36,column:4}},6:{start:{line:32,column:17},end:{line:32,column:51}},7:{start:{line:33,column:2},eLine truncated
`).reduce((t,n)=>Math.max(t,DI(e,n)),0);return n[t]=r,r}function PCe(e,t){let n=[],r=[],i=[],a=0,o=0,s=0,c=0;for(let l=0,u=t.length;l<=u;l+=2){let d=t[l];if(d===`
`||l===u){a=Math.max(a,o),i.push(o),o=0,s+=c,c=0;continue}let f=t[l+1]||e.font,p=DI(f,d);n.push(p),o+=p;let m=NCe(f);r.push(m),c=Math.max(c,m)}return{width:a,height:s,widths:n,heights:r,lineWidths:i}}function FCe(e,t,n,r,i,a,o,s,c,l,u){e.save(),n!==1&&(e.globalAlpha===void 0?e.globalAlpha=e=>e.globalAlpha*=n:e.globalAlpha*=n),t&&e.transform.apply(e,t),r.contextInstructions?(e.translate(c,l),e.scale(u[0],u[1]),ICe(r,e)):u[0]<0||u[1]<0?(e.translate(c,l),e.scale(u[0],u[1]),e.drawImage(r,i,a,o,s,0,0,o,s)):e.drawImage(r,i,a,o,s,c,l,o*u[0],s*u[1]),e.restore()}function ICe(e,t){let n=e.contextInstructions;for(let e=0,r=n.length;e<r;e+=2)Array.isArray(n[e+1])?t[n[e]].apply(t,n[e+1]):t[n[e]]=n[e+1]}var kI=class e{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=kF(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){let t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Aj()}getImage(e){return Aj()}getHitDetectionImage(){return Aj()}getPixelRatio(e){return 1}getImageState(){return Aj()}getImageSize(){return Aj()}getOrigin(){return Aj()}getSize(){return Aj()}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_=kF(e)}listenImageChange(e){Aj()}load(){Aj()}unlistenImageChange(e){Aj()}ready(){return Promise.resolve()}},AI=class e extends kI{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0&&e.rotateWithView,rotation:e.rotation===void 0?0:e.rotation,scale:e.scale===void 0?1:e.scale,displacement:e.displacement===void 0?[0,0]:e.displacement,declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill===void 0?null:e.fill,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle===void 0?0:e.angle,this.stroke_=e.stroke===void 0?null:e.stroke,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?sI.LOADING:sI.LOADED,this.imageState_===sI.LOADING&&this.ready().then(()=>this.imageState_=sI.LOADED),this.render()}clone(){let t=this.getScale(),n=new e({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(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n}getAnchor(){let e=this.size_,t=this.getDisplacement(),n=this.getScaleArray();return[e[0]/2-t[0]/n[0],e[1]/2+t[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||=this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(e){let t=this.fill_?.getKey(),n=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(`,`),r=uI.get(n,null)?.getImage(1);if(!r){let t=this.renderOptions_,i=Math.ceil(t.size*e),a=OP(i,i);this.draw_(t,a,e),r=a.canvas;let o=new fI(r,void 0,null,sI.LOADED,null);uI.set(n,null,o),createImageBitmap(r).then(e=>{o.setImage(e)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,n){if(t===0||this.points_===1/0||e!==`bevel`&&e!==`miter`)return t;let r=this.radius,i=this.radius2_===void 0?r:this.radius2_;if(r<i){let e=r;r=i,i=e}let a=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/a,s=i*Math.sin(o),c=Math.sqrt(i*i-s*s),l=r-c,u=Math.sqrt(s*s+l*l),d=u/s;if(e===`miter`&&d<=n)return d*t;let f=t/2/d,p=t/2*(l/u),m=Math.sqrt((r+f)*(r+f)+p*p)-r;if(this.radius2_===void 0||e===`bevel`)return m*2;let h=r*Math.sin(o),g=Math.sqrt(r*r-h*h),_=i-g,v=Math.sqrt(h*h+_*_)/h;if(v<=n){let e=v*t/2-i-r;return 2*Math.max(m,e)}return m Line truncated
`,``),e.push(t,``),e}function ATe(e,t,n){return n%2==0&&(e+=t),e}var jTe=class{constructor(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=_N(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=i?new RL:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,n,r){let i=e+t+n+r;if(this.labels_[i])return this.labels_[i];let a=r?this.strokeStates[r]:null,o=n?this.fillStates[n]:null,s=this.textStates[t],c=this.pixelRatio,l=[s.scale[0]*c,s.scale[1]*c],u=s.justify?rR[s.justify]:hR(Array.isArray(e)?e[0]:e,s.textAlign||`center`),d=r&&a.lineWidth?a.lineWidth:0,f=Array.isArray(e)?e:String(e).split(`
`).reduce(kTe,[]),{width:p,height:m,widths:h,heights:g,lineWidths:_}=PCe(s,f),v=p+d,y=[],b=(v+2)*l[0],x=(m+d)*l[1],S={width:b<0?Math.floor(b):Math.ceil(b),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:y};(l[0]!=1||l[1]!=1)&&y.push(`scale`,l),r&&(y.push(`strokeStyle`,a.strokeStyle),y.push(`lineWidth`,d),y.push(`lineCap`,a.lineCap),y.push(`lineJoin`,a.lineJoin),y.push(`miterLimit`,a.miterLimit),y.push(`setLineDash`,[a.lineDash]),y.push(`lineDashOffset`,a.lineDashOffset)),n&&y.push(`fillStyle`,o.fillStyle),y.push(`textBaseline`,`middle`),y.push(`textAlign`,`center`);let C=.5-u,w=u*v+C*d,T=[],E=[],D=0,O=0,k=0,ee=0,te;for(let e=0,t=f.length;e<t;e+=2){let t=f[e];if(t===`
`){O+=D,D=0,w=u*v+C*d,++ee;continue}let i=f[e+1]||s.font;i!==te&&(r&&T.push(`font`,i),n&&E.push(`font`,i),te=i),D=Math.max(D,g[k]);let a=[t,w+C*h[k]+u*(h[k]-_[ee]),.5*(d+D)+O];w+=h[k],r&&T.push(`strokeText`,a),n&&E.push(`fillText`,a),++k}return Array.prototype.push.apply(y,T),Array.prototype.push.apply(y,E),this.labels_[i]=S,S}replayTextBackground_(e,t,n,r,i,a,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),a&&(this.alignAndScaleFill_=a[2],e.fillStyle=a[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){o*=d[0],s*=d[1];let g=n-o,_=r-s,v=i+c>e?e-c:i,y=a+l>t?t-l:a,b=p[3]+v*d[0]+p[1],x=p[0]+y*d[1]+p[2],S=g-p[3],C=_-p[0];(m||u!==0)&&(lR[0]=S,fR[0]=S,lR[1]=C,uR[1]=C,uR[0]=S+b,dR[0]=uR[0],dR[1]=C+x,fR[1]=dR[1]);let w;return u===0?dM(Math.min(S,S+b),Math.min(C,C+x),Math.max(S,S+b),Math.max(C,C+x),cR):(w=CN(_N(),n,r,1,1,u,-n,-r),xN(w,lR),xN(w,uR),xN(w,dR),xN(w,fR),dM(Math.min(lR[0],uR[0],dR[0],fR[0]),Math.min(lR[1],uR[1],dR[1],fR[1]),Math.max(lR[0],uR[0],dR[0],fR[0]),Math.max(lR[1],uR[1],dR[1],fR[1]),cR)),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:v,drawImageH:y,originX:c,originY:l,declutterBox:{minX:cR[0],minY:cR[1],maxX:cR[2],maxY:cR[3],value:h},canvasTransform:w,scale:d}}replayImageOrLabel_(e,t,n,r,i,a,o){let s=!!(a||o),c=r.declutterBox,l=o?o[2]*r.scale[0]/2:0;return c.minX-l<=t[0]&&c.maxX+l>=0&&c.minY-l<=t[1]&&c.maxY+l>=0&&(s&&this.replayTextBackground_(e,lR,uR,dR,fR,a,o),FCe(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){let t=this.alignAndScaleFill_;if(t){let n=xN(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(n[0]%r,n[1]%r),t!==1&&e.scale(t,t)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,n,r){let i=this.textStates[t],a=this.createLabel(e,t,r,n),o=this.strokeStates[n],s=this.pixelRatio,c=hR(Array.isArray(e)?e[0]:e,i.textAlign||`center`),l=rR[i.textBaseline||`middle`],u=o&&o.lineWidth?o.lineWidth:0;return{label:a,anchorX:c*(a.width/s-2*i.scale[0])+2*(.5-c)*u,anchorY:l*a.height/s+2*(.5-l)*u}}execute_(e,t,n,r,i,a,o,s){let c=this.zIndexContext_,l;this.pixelCoordinates_&&Sj(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||=[],l=EN(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Cxe(this.renderedTransform_,n));let u=0,d=r.length,f=0,p,m=[],h,g,_,v,y,b,x,S,C,w,T,E,D,O=0,k=0,ee=this.coordinateCache_,te=this.viewRotation_,A=Math.round(Math.atan2(-n[1],n[0])*0xe8d4a51000)/0xe8d4a51000,ne={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:te},re=this.instructions!=r||this.overlaps?0:200,ie,j,ae,oe;for(;u<d;){let n=r[u];switch(n[0]){case JL.BEGIN_GEOMETRY:ie=n[1],oe=n[3],ie.getGeometry()?o!==void 0&&!EM(o,oe.getExtent())?u=n[2]+1:++u:u=n[2],c&&(c.zIndex=n[4]);break;case JL.BEGIN_PATH:O>re&&(this.fill_(e),O=0),k>re&&(e.stroke(),k=0),!O&&!k&&(e.beginPath(),y=NaN,b=NaN),++u;break;case JL.CIRCLE:f=n[1],_=n[2]??0;let r=l[f],d=l[f+1],se=l[f+2]-_,ce=l[f+3]-_,le=se-r,ue=ce-d,de=Math.sqrt(le*le+ue*ue);e.moveTo(r+de,d),e.arc(r,d,de,0,2*Math.PI,!0),++u;break;case JL.CLOSE_PATH:e.closePath(),++u;break;case JL.CUSTOM:f=n[1],p=n[2];let fe=n[3],pe=n[4],me=n[5];ne.geometry=fe,ne.feature=ie,u in ee||(ee[u]=[]);let he=ee[u];me?me(l,f,p,2,he):(he[0]=l[f],he[1]=l[f+1],he.length=2),c&&(c.zIndex=n[6]),pe(he,ne),++u;break;case JL.DRAW_IMAGE:f=n[1],p=n[2],C=n[3],h=n[4],g=n[5];let ge=n[6],_e=n[7],ve=n[8],ye=n[9],be=n[10],xe=n[11],Se=n[12],Ce=n[13];v=n[14]||`declutter`;let we=n[15];if(!C&&n.length>=20){w=n[19],T=n[20],E=n[21],D=n[22];let e=this.drawLabelWithPointPlacement_(w,T,E,D);C=e.label,n[3]=C;let t=n[23];h=(e.anchorX-t)*this.pixelRatio,n[4]=h;let r=n[24];g=(e.anchorY-r)*this.pixelRatio,n[5]=g,ge=C.height,n[6]=ge,Ce=C.width,n[13]=Ce}let Te;n.length>25&&(Te=n[25]);let Ee,De,Oe;n.length>17?(Ee=n[16],De=n[17],Oe=n[18]):(Ee=xI,De=null,Oe=null),be&&A?xe+=te:!be&&!A&&(xe-=te);let ke=0;for(;f<p;f+=2){if(Te&&Te[ke++]<Ce/this.pixelRatio)continue;let n=this.calculateImageOrLabelDimensions_(C.width,C.height,l[f],l[f+1],Ce,ge,h,g,ve,ye,xe,Se,i,Ee,!!De||!!Oe,ie),r=[e,t,C,n,_e,De,Oe];if(s){let e,t,i;if(we){let n=p-f;if(!we[n]){we[n]={args:r,declutterMode:v};continue}let a=we[n];e=a.args,t=a.declutterMode,delete we[n],i=pR(e)}let a,o;if(e&&(t!==`declutter`||!s.collides(i))&&(a=!0),(v!==`declutter`||!s.collides(n.declutterBox))&&(o=!0),t===`declutter`&&v===`declutter`){let e=a&&o;a=e,o=e}a&&(t!==`none`&&s.insert(i),this.replayImageOrLabel_.apply(this,e)),o&&(v!==`none`&&s.insert(n.declutterBox),this.replayImageOrLabel_.apply(this,r))}else this.replayImageOrLabel_.apply(this,r)}++u;break;case JL.DRAW_CHARS:let Ae=n[1],je=n[2],Me=n[3],Ne=n[4];D=n[5];le Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(HR(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,n){}},dEe=class extends GR{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:fEe,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate===void 0||e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin===void 0?null:e.crossOrigin,this.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass===void 0?SL:e.tileClass,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!iN(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=`:disable-interpolation`),e}getTileGridForProjection(e){let t=this.getProjection();if(this.tileGrid&&(!t||iN(t,e)))return this.tileGrid;let n=jj(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=RR(e)),this.tileGridForProjection[n]}createTile_(e,t,n,r,i,a){let o=[e,t,n],s=this.getTileCoordForTileUrlFunction(o,i),c=s?this.tileUrlFunction(s,r,i):void 0,l=new this.tileClass(o,c===void 0?Uj.EMPTY:Uj.IDLE,c===void 0?``:c,{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return l.key=a,l.addEventListener(_j.CHANGE,this.handleTileChange.bind(this)),l}getTile(e,t,n,r,i,a){let o=this.getProjection();if(!o||!i||iN(o,i))return this.getTileInternal(e,t,n,r,o||i);let s=[e,t,n],c=this.getKey(),l=new PL(o,this.getTileGridForProjection(o),i,this.getTileGridForProjection(i),s,this.getTileCoordForTileUrlFunction(s,i),this.getTilePixelRatio(r),this.getGutter(),(e,t,n,r)=>this.getTileInternal(e,t,n,r,o,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return l.key=c,l}getTileInternal(e,t,n,r,i,a){let o=this.getKey(),s=LL(this,o,e,t,n);if(a&&a.containsKey(s))return a.get(s);let c=this.createTile_(e,t,n,r,i,o);return a?.set(s,c),c}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){let n=$M(e);if(n){let e=jj(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}};function fEe(e,t){if(zj){let n=e.getCrossOrigin(),r=`same-origin`,i=`same-origin`;n===`anonymous`||n===``?(r=`cors`,i=`omit`):n===`use-credentials`&&(r=`cors`,i=`include`);let a={mode:r,credentials:i,referrerPolicy:e.getReferrerPolicy()};fetch(t,a).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.blob()}).then(e=>createImageBitmap(e)).then(t=>{let n=e.getImage();n.width=t.width,n.height=t.height,n.getContext(`2d`).drawImage(t,0,0),t.close?.(),n.dispatchEvent(new Event(`load`))}).catch(()=>{e.getImage().dispatchEvent(new Event(`error`))});return}e.getImage().src=t}var KR=class extends dEe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:$M(`EPSG:3857`),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:`loading`,tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX===void 0||e.wrapX,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url){if(e.jsonp)QTe(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{let t=new XMLHttpRequest;t.addEventListener(`load`,this.onXHRLoad_.bind(this)),t.addEventListener(`error`,this.onXHRError_.bind(this)),t.open(`GET`,e.url),t.send()}}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){let t=e.target;if(!t.status||t.status>=200&&t.status<300){let e;try{e=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(e)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){let t=$M(`EPSG:4326`),n=this.getProjection(),r;if(e.bounds!==void 0){let i=aN(t,n);r=mbe(e.bounds,i)}let i=VR(n),a=e.minzoom||0,o=zR({extent:i,maxZoom:e.maxzoom||22,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=o,this.tileUrlFunction=HR(e.tiles,o),e.attribution&&!this.getAttributions()){let t=r===void 0?i:r;this.setAttributions(function(n){return EM(t,n.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState(`ready`)}handleTileJSONError(){this.setState(`error`)}},pEe=!1;function qR(e,t,n,r,i,a,o){let s=new XMLHttpRequest;s.open(`GET`,typeof e==`function`?e(n,r,i):e,!0),t.getType()==`arraybuffer`&&(s.responseType=`arraybuffer`),s.withCredentials=pEe,s.onload=function(e){if(!s.status||s.status>=200&&s.status<300){let e=t. Line truncated
`),`binary`).toString(`base64`):URL.createObjectURL(new Blob(n,{type:`text/javascript`})));return r.addEventListener(`message`,t),r}function TEe(e,t){let n=gz(e.operation),r=!1;return{postMessage:function(e){setTimeout(function(){r||t({data:{buffer:n(e),meta:e.meta}})},0)},terminate:function(){r=!0}}}var EEe=class extends vj{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;t=e.threads===0?0:this.imageOps_?1:e.threads||1;let n=Array(t);if(t)for(let r=0;r<t;++r)n[r]=wEe(e,this.onWorkerMessage_.bind(this,r));else n[0]=TEe(e,this.onWorkerMessage_.bind(this,0));this.workers_=n,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,n){this.enqueue_({inputs:e,meta:t,callback:n}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;let e=this.queue_.shift();this.job_=e;let t=e.inputs[0].width,n=e.inputs[0].height,r=e.inputs.map(function(e){return e.data.buffer}),i=this.workers_.length;if(this.running_=i,i===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:n},r);return}let a=e.inputs[0].data.length,o=4*Math.ceil(a/4/i);for(let a=0;a<i;++a){let i=a*o,s=[];for(let e=0,t=r.length;e<t;++e)s.push(r[e].slice(i,i+o));this.workers_[a].postMessage({buffers:s,meta:e.meta,imageOps:this.imageOps_,width:t,height:n},s)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){let e=this.job_,t=this.workers_.length,n,r;if(t===1)n=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{let i=e.inputs[0].data.length;n=new Uint8ClampedArray(i),r=Array(t);let a=4*Math.ceil(i/4/t);for(let e=0;e<t;++e){let t=this.dataLookup_[e].buffer,i=e*a;n.set(new Uint8ClampedArray(t),i),r[e]=this.dataLookup_[e].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(n,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}},_z={BEFOREOPERATIONS:`beforeoperations`,AFTEROPERATIONS:`afteroperations`},vz=class extends Dj{constructor(e,t,n){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=n}},yz=class extends hz{constructor(e){super({interpolate:e.interpolate,projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType===void 0?`pixel`:e.operationType,this.threads_=e.threads===void 0?1:e.threads,this.layers_=kEe(e.sources);let t=this.changed.bind(this);for(let e=0,n=this.layers_.length;e<n;++e)this.layers_[e].addEventListener(_j.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Yye(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:_N(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:OEe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:_N(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:jj(this),renderTargets:{}},this.setAttributions(function(t){let n=[];for(let r=0,i=e.sources.length;r<i;++r){let i=e.sources[r],a=i instanceof NR?i:i.getSource();if(!a)continue;let o=a.getAttributions()?.(t);typeof o==`string`?n.push(o):o!==void 0&&n.push(...o)}return n}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new EEe({operation:e,imageOps:this.operationType_===`image`,queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,n){let r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);let i=yM(e);r.size[0]=Math.ceil(TM(e)/t),r.size[1]=Math.ceil(xM(e)/t),r.extent=[i[0]-r.size[0]*t/2,i[1]-r.size[1]*t/2,i[0]+r.size[0]*t/2,i[1]+r.size[1]*t/2],r.time=Date.now();let a=r.viewState;return a.center=i,a.projection=n,a.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let n=0,r=this.layers_.length;n<r;++n)if(t=this.layers_[n].getSource(),!t||t.getState()!==`ready`){e=!1;break}return e}getImage(e,t,n,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);let i=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=i,this.renderedImageCanvas_){let e=this.renderedImageCanvas_.getResolution(),n=this.renderedImageCanvas_.getExtent();(t!==e||!mM(i.extent,n))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),i.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){let e=this.requestedFrameState_,t=this.layers_.length,n=Array(t),r=Ar Line truncated
`),i=REe.slice(0,Math.round(t/.1));for(let e=0,t=r.length;e<t;++e)e>0&&(n+=`
`),n+=r[e].split(``).join(i);return n}return e}var Gz;function Kz(){return Gz||=Pz(1,1).getContext(`2d`),Gz}function zEe(e,t){if(/\d+ \d+/.test(e)){let[n,r]=e.split(` `).map(Number);return n<=t&&t<=r}return e==t}function qz(e,t){return Kz().measureText(e).width+(e.length-1)*t}var Jz={};SI.on(`propertychange`,()=>{for(let e in Jz)delete Jz[e]});function Yz(e,t,n,r){if(e.indexOf(`
`)!==-1){let i=e.split(`
`),a=[];for(let e=0,o=i.length;e<o;++e)a.push(Yz(i[e],t,n,r));return a.join(`
`)}let i=n+`,`+t+`,`+e+`,`+r,a=Jz[i];if(!a){let o=e.split(` `);if(o.length>1){let e=Kz();e.font=t;let i=e.measureText(`M`).width*n,s=``,c=[];for(let e=0,t=o.length;e<t;++e){let t=o[e],n=s+(s?` `:``)+t;qz(n,r)<=i?s=n:(s&&c.push(s),s=t)}s&&c.push(s);for(let e=0,t=c.length;e<t&&t>1;++e){let n=c[e];if(qz(n,r)<i*.35){let i=e>0?qz(c[e-1],r):1/0,a=e<t-1?qz(c[e+1],r):1/0;c.splice(e,1),--t,i<a?(c[e-1]+=` `+n,--e):c[e]=n+` `+c[e]}}for(let e=0,t=c.length-1;e<t;++e){let n=c[e],a=c[e+1];if(qz(n,r)>i*.7&&qz(a,r)<i*.6){let o=n.split(` `),s=o.pop();qz(s,r)<i*.2&&(c[e]=o.join(` `),c[e+1]=s+` `+a),--t}}a=c.join(`
`)}else a=e;a=Wz(a,r),Jz[i]=a}return a}var BEe=[`Arial`,`Courier New`,`Times New Roman`,`Verdana`,`sans-serif`,`serif`,`monospace`,`cursive`,`fantasy`],Xz={};function VEe(e,t=`https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css`){if(zj)return e;let n;for(let t=0,r=e.length;t<r;++t){let r=e[t];if(r in Xz)continue;Xz[r]=!0;let i=Tz(r,16).split(` `);n||=[],n.push([i.slice(3).join(` `).replace(/"/g,``),i[1],i[0]])}return n&&(async()=>{await document.fonts.ready;for(let e=0,r=n.length;e<r;++e){let r=n[e],i=r[0];if(BEe.includes(i))continue;let a=r[1],o=r[2];if(!(await document.fonts.load(`${o} ${a} 16px "${i}"`)).some(e=>e.family.replace(/^['"]|['"]$/g,``).toLowerCase()===i.toLowerCase()&&zEe(e.weight,a)&&e.style===o)){let e=t.replace(`{font-family}`,i.replace(/ /g,`-`).toLowerCase()).replace(`{Font+Family}`,i.replace(/ /g,`+`)).replace(`{fontweight}`,a).replace(`{-fontstyle}`,o.replace(`normal`,``).replace(/(.+)/,`-$1`)).replace(`{fontstyle}`,o);if(!document.querySelector(`link[href="`+e+`"]`)){let t=document.createElement(`link`);t.href=e,t.rel=`stylesheet`,document.head.appendChild(t)}}}})(),e}var HEe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},UEe={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]},Zz=function(e,t){let n=qA(e,t);if(n.result===`error`){let r=iz(e);r!==e&&(n=qA(r,t))}if(n.result===`error`){let r=n.value[0];return console.error(`Error parsing expression:`,e,r.key,r.message),{evaluate:()=>t.default}}return n.value},Qz,$z;function eB(e,t,n,r,i,a){let o=e.id;i||(i={},console.warn(`No functionCache provided to getValue()`)),i[o]||(i[o]={});let s=i[o];if(!s[n]){let r=(e[t]||Dz)[n],i=Aye[`${t}_${e.type}`]&&Aye[`${t}_${e.type}`][n];r===void 0&&i&&(r=i.default);let a=UA(r);if(!a&&HA(r)&&(r=Cye(r,i),a=!0),a){let e=Zz(r,i);s[n]=e.evaluate.bind(e)}else{let e=i?i.type:typeof r;(e===`color`||e===`colorArray`)&&(r=fk.parse(r));let t=!1;if(e===`array`)for(let e=0;e<r.length;++e){let n=r[e];if(UA(n)||HA(n)){t=!0;break}}if(t){let e=Object.assign({},i,{type:i.value}),t=[];for(let n=0;n<r.length;++n){let i=r[n];if(!UA(i)&&HA(i)&&(i=Cye(i,e)),UA(i)){let n=Zz(i,e);t.push(n.evaluate.bind(n))}else t.push(function(){return i})}s[n]=function(e,n,r){let i=[];for(let a=0;a<t.length;++a)i[a]=t[a](e,n,r);return i}}else s[n]=function(){return r}}}return s[n](oz,r,a)}function tB(e,t,n,r){return eB(e,`layout`,`${n}-allow-overlap`,t,r)?eB(e,`layout`,`${n}-ignore-placement`,t,r)?`none`:`obstacle`:`declutter`}function WEe(e,t,n,r){if(r||console.warn(`No filterCache provided to evaluateFilter()`),!(e in r))try{r[e]=bye(t).filter}catch(t){console.warn(`Filter will evaluate to false: `+t.message),r[e]=function(){return!1}}return r[e](oz,n)}function nB(e,t){if(e){if(e.a===0||t===0)return;let n=e.a;return t=t===void 0?1:t,n===0?`transparent`:`rgba(`+Math.round(e.r*255/n)+`,`+Math.round(e.g*255/n)+`,`+Math.round(e.b*255/n)+`,`+n*t+`)`}return e}var GEe=/\{[^{}}]*\}/g;function rB(e,t){return e.replace(GEe,function(e){return t[e.slice(1,-1)]||``})}function iB(e,t){let n=e.split(`:`)[0];return n===e&&(n=`default`),t[n]}var KEe={};function qEe(e,t,n,r=Nz,i=void 0,a=void 0,o=void 0,s=void 0){if(typeof t==`string`&&(t=JSON.parse(t)),t.schema)for(let e in t.schema){let n=t.schema[e];`default`in n&&(az[e]=n.default)}if(t.version!=8)throw Error(`glStyle version 8 required.`);KEe[FEe(t,e)]=Array.from(arguments);let c={};(typeof a==`string`||a instanceof Request||a instanceof Response||a instanceof Promise)&&(a={default:a});for(let t in a){let n=a[t];Ej(()=>n).then(async n=>{let r;if(typeof Image<`u`){let i=new Image;if(typeof n==`string`)i.crossOrigin=`anonymous`,i.src=n;else{let e;n instanceof Request?e=await fetch(n):n instanceof Response&&(e=n);let t=await e.blob();r=URL.createObjectURL(t),i.src=r}i.addEventListener(`load`,function n(){i.removeEventListener(`load`,n),c[t]={image:i,size:[i.width,i.height]},e.changed(),r&&URL.revokeObjectURL(r)}),i.addEventListener(`error`,function e(){URL.revokeObjectURL(r),i.removeEventListener(`error`,e)})}else if(typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope){let e=self;e.postMessage({action:`loadImage`,src:n}),e.addEventListener(`message`,function(e){e.data.action===`imageLoaded`&&e.data.src===n&&(c[t]={image:e.data.image,size:[e.data.image.width,e.data.image.height]})})}})}let l=CO(t.layers),u={},d=[],f={},p={},m=jz(t),h=IEe(t),g;for(let e=0,r=l.length;e<r;++e){let r=l[e],i=r.id;if(typeof n==`string`&&r.source==n||Array.isArray(n)&&n.indexOf(i)!==-1){let n=r[`source-layer`];if(!g){g=r.source;let e=t.sources[g];if(!e)throw Error(`Source "${g}" is not defined`);let n=e.type;if(n!==`vector`&&n!==`geojson`)throw Error(`Source "${g}" is not of type "vector" or "geojson", but "${n}"`)}else if(r.source!==g)throw Error(`Layer "${i}" does not use source "${g}`);let a=u[n];a||(a=[],u[n]=a),a.push({layer:r,index:e}),d.push(i)}}let _=[],v=funct Line truncated
`)return t.push(`
`,``),t;if(x==2)return t.push(Wz(s,oe),a),t;s=Yz(s,a,se,oe).split(`
`);for(let e=0,n=s.length;e<n;++e)e>0&&t.push(`
`,``),t.push(s[e],a);return t},[]):rB(n,g).trim(),l=eB(d,`paint`,`text-opacity`,C,m,w)}if(re&&l&&!ne){O||(++T,b=_[T],(!b||!b.getText()||b.getFill()||b.getStroke())&&(b=new II,_[T]=b),b.setImage(void 0),b.setGeometry(void 0));let e=tB(d,C,`text`,m);b.getText()||b.setText(k),k=b.getText(),(!k||`getDeclutterMode`in k&&k.getDeclutterMode()!==e)&&(k=new BI({padding:[2,2,2,2],declutterMode:e}),b.setText(k));let t=eB(d,`layout`,`text-transform`,C,m,w);t==`uppercase`?re=Array.isArray(re)?re.map((e,t)=>t%2?e:e.toUpperCase()):re.toUpperCase():t==`lowercase`&&(re=Array.isArray(re)?re.map((e,t)=>t%2?e:e.toLowerCase()):re.toLowerCase());let n=Array.isArray(re)?re:x==2?Wz(re,oe):Yz(re,ie,se,oe);if(k.setText(n),k.setFont(ie),k.setRotation(Mz(eB(d,`layout`,`text-rotate`,C,m,w))),typeof k.setKeepUpright==`function`){let e=eB(d,`layout`,`text-keep-upright`,C,m,w);k.setKeepUpright(e)}let r=eB(d,`layout`,`text-anchor`,C,m,w),i=O||x==1?`point`:eB(d,`layout`,`symbol-placement`,C,m,w),a;if(i===`line-center`?(k.setPlacement(`line`),a=`center`):k.setPlacement(i),i===`line`&&typeof k.setRepeat==`function`){let e=eB(d,`layout`,`symbol-spacing`,C,m,w);k.setRepeat(e*2)}k.setOverflow(i===`point`);let o=eB(d,`paint`,`text-halo-width`,C,m,w),s=eB(d,`layout`,`text-offset`,C,m,w),c=eB(d,`paint`,`text-translate`,C,m,w),u=0,f=0;if(i==`point`){a=`center`,r.indexOf(`left`)===-1?r.indexOf(`right`)!==-1&&(a=`right`,f=-o):(a=`left`,f=o);let e=eB(d,`layout`,`text-rotation-alignment`,C,m,w);k.setRotateWithView(e==`map`)}else k.setMaxAngle(Mz(eB(d,`layout`,`text-max-angle`,C,m,w))*re.length/n.length),k.setRotateWithView(!1);k.setTextAlign(a);let p=`middle`;r.indexOf(`bottom`)==0?(p=`bottom`,u=-o-.5*(j-1)*ae):r.indexOf(`top`)==0&&(p=`top`,u=o+.5*(j-1)*ae),k.setTextBaseline(p);let h=eB(d,`layout`,`text-justify`,C,m,w);k.setJustify(h===`auto`?void 0:h),k.setOffsetX(s[0]*ae+f+c[0]),k.setOffsetY(s[1]*ae+u+c[1]);let g=k.getFill()||new MI;g.setColor(nB(eB(d,`paint`,`text-color`,C,m,w),l)),k.setFill(g);let v=nB(eB(d,`paint`,`text-halo-color`,C,m,w),l);if(v&&o>0){let e=k.getStroke()||new FI;e.setColor(v),o*=2;let t=.5*ae;e.setWidth(o<=t?o:t),k.setStroke(e)}else k.setStroke(void 0);let y=eB(d,`layout`,`text-padding`,C,m,w),S=k.getPadding();y!==S[0]&&(S[0]=y,S[1]=y,S[2]=y,S[3]=y),b.setZIndex(D)}}}if(T>-1)return _.length=T+1,_};return e.setStyle(v),e.set(`mapbox-layers`,d),e.set(`mapbox-source`,g),e.set(`mapbox-featurestate`,e.get(`mapbox-featurestate`)||{}),v}var JEe=fk.parse(`#000000`),YEe=fk.parse(`#FFFFFF`),XEe=fk.parse(`#000000`);function ZEe(e){return new fz({source:new yz({operationType:`image`,operation:MEe,sources:[e]})})}function QEe(e){return new fz({source:new yz({operationType:`image`,operation:jEe,sources:[e]})})}function $Ee(e,t,n,r){e.getSource().on(`beforeoperations`,function(e){oz.zoom=Fz(e.resolution,n.resolutions||Nz),oz.distanceFromCenter=0;let i=e.data;i.saturation=eB(t,`paint`,`raster-saturation`,Dz,r),i.contrast=eB(t,`paint`,`raster-contrast`,Dz,r),i.brightnessHigh=eB(t,`paint`,`raster-brightness-max`,Dz,r),i.brightnessLow=eB(t,`paint`,`raster-brightness-min`,Dz,r),i.hueRotate=eB(t,`paint`,`raster-hue-rotate`,Dz,r)})}function eDe(e,t,n,r,i){e.getSource().on(`beforeoperations`,function(e){let a=e.data;a.resolution=eN(r.projection||`EPSG:3857`,e.resolution,yM(e.extent),`m`);let o=Fz(e.resolution,r.resolutions||Nz);oz.zoom=o,oz.distanceFromCenter=0,a.zoom=o,a.encoding=t.encoding,a.method=eB(n,`paint`,`hillshade-method`,Dz,i)||`standard`,a.exaggeration=eB(n,`paint`,`hillshade-exaggeration`,Dz,i);let s=eB(n,`paint`,`hillshade-illumination-direction`,Dz,i);s??=335,a.azimuths=Array.isArray(s)?s:[s],a.sunAz=a.azimuths[0];let c=eB(n,`paint`,`hillshade-illumination-altitude`,Dz,i);c??=45,a.altitudes=Array.isArray(c)?c:[c];function l(e){return e&&e.values?e.values[0]:e}function u(e){let t=n.paint?.[e];if(Array.isArray(t)&&t.length>0&&typeof t[0]==`string`&&fk.parse(t[0])!==void 0)return t.map(e=>fk.parse(e));let r=eB(n,`paint`,e,Dz,i);return r=l(r),r?[r]:void 0}a.highlightColors=u(`hillshade-highlight-color`),a.highlightColor=a.highlightColors?.[0]||YEe,a.highlightColors||=[a.highlightColor],a.shadowColors=u(`hillshade-shadow-color`),a.shadowColor=a.shadowColors?.[0]||JEe,a.shadowColors||=[a.shadowColor],a.accentColor=l(eB(n,`paint`,`hillshade-accent-color`,Dz,i))||XEe})}var tDe=[`raster-saturation`,`raster-contrast`,`raster-brightness-max`,`raster-brightness-min`,`raster-hue-rotate`];function nDe(e,t,n){let r=null;return function(i){e.paint&&`raster-opacity`in e.paint&&i.frameState.viewState.zoom!==r&&(r=i.frameState.viewState.zoom,delete n[e.id],rDe(e,t,r,n))}}function rDe(e,t,n,r){oz.zoom=n,oz.distanceFromCenter=0;let i=eB(e,`paint`,`raster-opacity`,Dz,r);t.setOpacity(i)}var iDe=[`background`,`circle`,`fill`,`fill-extrusion`,`line`,`symbol`,`raster`,`hillshade`];function aDe(e,t=512){return e.getExtent()?zR({extent:e.getExtent(),tileSize:t,maxZoom:22}).getResolutions():Nz}function aB(e,t){return t.accessToken||(t=Object.assign({},t),new URL(e).s Line truncated
`){[e,t]=PB(this,e,t);let r=``;for(let i=0,a=0;i<=t&&a<this.text.length;a++){let o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},OB=class e extends EB{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e<=s&&t>=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(t,n,r){if([t,n]=PB(this,t,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(t>=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines<l>>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n=`
`){[e,t]=PB(this,e,t);let r=``;for(let i=0,a=0;i<this.children.length&&a<=t;i++){let o=this.children[i],s=a+o.length;a>e&&i&&(r+=n),e<s&&t>a&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new DB(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof DB&&c&&(n=u[u.length-1])instanceof DB&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new DB(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t))}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0)}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};EB.empty=new DB([``],0);function wDe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function kB(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a<e.length&&i<=r;a++){let s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function AB(e,t,n){return kB(e,[``],t,n)}var jB=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value=``,this.nodes=[e],this.offsets=[t>0?1:(e instanceof DB?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof DB?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=!0,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof DB){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof DB?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},MB=class{constructor(e,t,n){this.value=``,this.done=!1,this.cursor=new jB(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},NB=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value=``,this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=!1):t?(this.done=!0,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<`u`&&(EB.prototype[Symbol.iterator]=function(){return this.iter()},jB.prototype[Symbol.iterator]=MB.prototype[Symbol.iterator]=NB.prototype[Symbol.iterator]=function(){return this});var TDe=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function PB(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function FB(e,t,n=!0,r=!0){return SDe(e,t,n,r)}function EDe(e){return e>=56320&&e<57344}function DDe(e){return e>=55296&&e<56320}function IB(e,t){let n=e.charCodeAt(t);if(!DDe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return EDe(r)?(n-55296<<10)+(r-56320)+65536:n}function LB(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function RB(e){return e<65536?1:2}var zB=/\r\n?|\n/,BB=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(BB||={}),VB=class e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){GB(this,e,t)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new e(t)}composeDesc(e){return this.empty?e:e.empty?this:qB(this,e)}mapDesc(e,t=!1){return e.empty?this:KB(this,e,t)}mapPos(e,t=-1,n=BB.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=BB.Simple&&c>=e&&(n==BB.TrackDel&&r<e&&c>e||n==BB.TrackBefore&&r<e||n==BB.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return r<e&&o>t?`cover`:!0;r=o}return!1}toString(){let e=``;for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?` `:``)+n+(r>=0?`:`+r:``)}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},HB=class e extends VB{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return GB(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return KB(this,e,t,!0)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e<n.length;e+=2){let a=n[e],o=n[e+1];if(o>=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length<s;)r.push(EB.empty);r.push(a?t.slice(i,i+a):EB.empty)}i+=a}return new e(n,r)}compose(e){return this.empty?e:e.empty?this:qB(this,e,!0)}map(e,t=!1){return e.empty?this:KB(this,e,t,!0)}iterChanges(e,t=!1){GB(this,e,t)}get desc(){return VB.create Line truncated
`}get readOnly(){return this.facet(xV)}phrase(t,...n){for(let n of this.facet(e.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(e,t)=>{if(t==`$`)return`$`;let r=+(t||1);return!r||r>n.length?e:n[r-1]})),t}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(hV))for(let a of i(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){let t=this.languageDataAt(`wordChars`,e);return RDe(t.length?t[0]:``)}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-n,o=e-n;for(;a>0;){let e=FB(t,a,!1);if(i(t.slice(e,a))!=kV.Word)break;a=e}for(;o<r;){let e=FB(t,o);if(i(t.slice(o,e))!=kV.Word)break;o=e}return a==o?null:XB.range(a+n,o+n)}};jV.allowMultipleSelections=gV,jV.tabSize=$B.define({combine:e=>e.length?e[0]:4}),jV.lineSeparator=_V,jV.readOnly=xV,jV.phrases=$B.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),jV.languageData=hV,jV.changeFilter=vV,jV.transactionFilter=yV,jV.transactionExtender=bV,uV.reconfigure=CV.define();function MV(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],a=r[e];if(a===void 0)r[e]=i;else if(a!==i&&i!==void 0){if(Object.hasOwnProperty.call(n,e))r[e]=n[e](a,i);else throw Error(`Config merge conflict for field `+e)}}for(let e in t)r[e]===void 0&&(r[e]=t[e]);return r}var NV=class{eq(e){return this==e}range(e,t=e){return FV.create(e,t,this)}};NV.prototype.startSide=NV.prototype.endSide=0,NV.prototype.point=!1,NV.prototype.mapMode=BB.TrackDel;function PV(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}var FV=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,r){return new e(t,n,r)}};function IV(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var zDe=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let a=r,o=i.length;;){if(a==o)return a;let r=a+o>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==a)return s>=0?a:o;s>=0?o=r:a=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,i);i<a;i++)if(r(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(t,n){let r=[],i=[],a=[],o=-1,s=-1;for(let e=0;e<this.value.length;e++){let c=this.value[e],l=this.from[e]+t,u=this.to[e]+t,d,f;if(l==u){let e=n.mapPos(l,c.startSide,c.mapMode);if(e==null||(d=f=e,c.startSide!=c.endSide&&(f=n.mapPos(l,c.endSide),f<d)))continue}else if(d=n.mapPos(l,c.startSide),f=n.mapPos(u,c.endSide),d>f||d==f&&c.startSide>0&&c.endSide<=0)continue;(f-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(s=Math.max(s,f-d)),r.push(c),i.push(d-o),a.push(f-o))}return{mapped:r.length?new e(i,a,r,s):null,pos:o}}},LV=class e{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(t,n,r,i){return new e(t,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,o=t.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(IV)),this.isEmpty)return n.length?e.of(n):this;let s=new BV(this,null,-1).goto(0),c=0,l=[],u=new RV;for(;s.value||c<n.length;)if(c<n.length&&(s.from-n[c].from||s.startSide-n[c].value.startSide)>=0){let e=n[c++];u.addInner(e.from,e.to,e.value)||l.push(e)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(c==n.length||this.chunkEnd(s.chunkIndex)<n[c].from)&&(!o||i>this.chunkEnd(s.chunkIndex)||a<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||i>s.to||a<s.from||o(s.from,s.to,s.value))&&(u.addInner(s.from,s.to,s.value)||l.push(FV.create(s.from,s.to,s.value))),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?e.empty:this.nextLayer.update({add:l,filter:o,filterFrom:i,filterTo:a}))}map(t){if(t.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let e=0;e<this.chunk.length;e++){let a=this.chunkPos[e],o=this.chunk[e],s=t.touchesRange(a,a+o.length);if(s===!1)i=Math.max(i,o.maxPoint),n.push(o),r.push(t.mapPos(a));else if(s===!0){let{mapped:e,pos:s}=o.map(a,t);e&&(i=Math.max(i,e.maxPoint),n.push(e),r.push(s))}}let a=this.nextLayer.map(t);return n.length==0?a:new e(r,n,a||e.empty,i)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],a=this.chunk[r];if(t>=i&&e<=i+a.length&&a.between(i,e-i,t-i,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return VV.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return VV.from(e).goto(t)}static compare(e,t,n,r,i=-1){let a=e.filter(e=>e.maxPoint>0||!e.isEm Line truncated
`)}static newName(){let e=eH[QV]||1;return eH[QV]=e+1,ZV+e.toString(36)}static mount(e,t,n){let r=e[$V],i=n&&n.nonce;r?i&&r.setNonce(i):r=new VDe(e,i),r.mount(Array.isArray(t)?t:[t],e)}},nH=new Map,VDe=class{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=nH.get(n);if(t)return e[$V]=t;this.sheet=new r.CSSStyleSheet,nH.set(n,this)}else this.styleTag=n.createElement(`style`),t&&this.styleTag.setAttribute(`nonce`,t);this.modules=[],e[$V]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t<e.length;t++){let a=e[t],o=this.modules.indexOf(a);if(o<i&&o>-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,a),n)for(let e=0;e<a.rules.length;e++)n.insertRule(a.rules[e],r++)}else{for(;i<o;)r+=this.modules[i++].rules.length;r+=a.rules.length,i++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e=``;for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+`
`;this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute(`nonce`)!=e&&this.styleTag.setAttribute(`nonce`,e)}},rH={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:`'`},iH={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},HDe=typeof navigator<`u`&&/Mac/.test(navigator.platform),UDe=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),aH=0;aH<10;aH++)rH[48+aH]=rH[96+aH]=String(aH);for(var aH=1;aH<=24;aH++)rH[aH+111]=`F`+aH;for(var aH=65;aH<=90;aH++)rH[aH]=String.fromCharCode(aH+32),iH[aH]=String.fromCharCode(aH);for(var oH in rH)iH.hasOwnProperty(oH)||(iH[oH]=rH[oH]);function WDe(e){var t=!(HDe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||UDe&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?iH:rH)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}function sH(){var e=arguments[0];typeof e==`string`&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n==`object`&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i==`string`?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;t<arguments.length;t++)cH(e,arguments[t]);return e}function cH(e,t){if(typeof t==`string`)e.appendChild(document.createTextNode(t));else if(t!=null){if(t.nodeType!=null)e.appendChild(t);else if(Array.isArray(t))for(var n=0;n<t.length;n++)cH(e,t[n]);else throw RangeError(`Unsupported child node: `+t)}}var lH=typeof navigator<`u`?navigator:{userAgent:``,vendor:``,platform:``},uH=typeof document<`u`?document:{documentElement:{style:{}}},dH=/Edge\/(\d+)/.exec(lH.userAgent),fH=/MSIE \d/.test(lH.userAgent),pH=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lH.userAgent),mH=!!(fH||pH||dH),hH=!mH&&/gecko\/(\d+)/i.test(lH.userAgent),gH=!mH&&/Chrome\/(\d+)/.exec(lH.userAgent),_H=`webkitFontSmoothing`in uH.documentElement.style,vH=!mH&&/Apple Computer/.test(lH.vendor),yH=vH&&(/Mobile\/\w+/.test(lH.userAgent)||lH.maxTouchPoints>2),bH={mac:yH||/Mac/.test(lH.platform),windows:/Win/.test(lH.platform),linux:/Linux|X11/.test(lH.platform),ie:mH,ie_version:fH?uH.documentMode||6:pH?+pH[1]:dH?+dH[1]:0,gecko:hH,gecko_version:hH?+(/Firefox\/(\d+)/.exec(lH.userAgent)||[0,0])[1]:0,chrome:!!gH,chrome_version:gH?+gH[1]:0,ios:yH,android:/Android\b/.test(lH.userAgent),webkit:_H,webkit_version:_H?+(/\bAppleWebKit\/(\d+)/.exec(lH.userAgent)||[0,0])[1]:0,safari:vH,safari_version:vH?+(/\bVersion\/(\d+(\.\d+)?)/.exec(lH.userAgent)||[0,0])[1]:0,tabSize:uH.documentElement.style.tabSize==null?`-moz-tab-size`:`tab-size`};function xH(e,t){for(let n in e)n==`class`&&t.class?t.class+=` `+e.class:n==`style`&&t.style?t.style+=`;`+e.style:t[n]=e[n];return t}var SH=Object.create(null);function CH(e,t,n){if(e==t)return!0;e||=SH,t||=SH;let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function GDe(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;t[r]??e.removeAttribute(r)}for(let n in t){let r=t[n];n==`style`?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}function wH(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i==`style`?e.style.cssText=``:e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i==`style`?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function KDe(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}var TH=class{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},EH=(function(e){return e[e.Text=0]=`Text`,e[e.WidgetBefore=1]=`WidgetBefore`,e[e.WidgetAfter=2]=`WidgetAfter`,e[e.WidgetRange=3]=`WidgetRange`,e})(EH||={}),DH=class extends NV{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static ma Line truncated
`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(!c){if(!r)return t;c=r(l)}else if(!c(l))return s;s=t}}function ske(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==kV.Space&&(i=t),i==t}}function cke(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return XB.cursor(i,t.assoc);let o=t.goalColumn,s,c=e.contentDOM.getBoundingClientRect(),l=e.coordsAtPos(i,t.assoc||((t.empty?n:t.head==t.from)?1:-1)),u=e.documentTop;if(l)o??=l.left-c.left,s=a<0?l.top:l.bottom;else{let t=e.viewState.lineBlockAt(i);o??=Math.min(c.right-c.left,e.defaultCharacterWidth*(i-t.from)),s=(a<0?t.top:t.bottom)+u}let d=c.left+o,f=e.viewState.heightOracle.textHeight>>1,p=r??f;for(let t=0;;t+=f){let r=s+(p+t)*a,i=qU(e,{x:d,y:r},!1,a);if(n?r>c.bottom:r<c.top)return XB.cursor(i.pos,i.assoc);let l=e.coordsAtPos(i.pos,i.assoc),u=l?(l.top+l.bottom)/2:0;if(!l||(n?u>s:u<s))return XB.cursor(i.pos,i.assoc,void 0,o)}}function WU(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(e,i,a)=>{if(t>e&&t<i){let a=r||n||(t-e<i-t?-1:1);t=a<0?e:i,r=a}});if(!r)return t}}function lke(e,t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],a=null;if(i.empty){let t=WU(e,i.from,0);t!=i.from&&(a=XB.cursor(t,-1))}else{let t=WU(e,i.from,-1),n=WU(e,i.to,1);(t!=i.from||n!=i.to)&&(a=i.undirectional?XB.undirectionalRange(i.from,i.to):XB.range(i.from==i.anchor?t:n,i.from==i.head?t:n))}a&&(n||=t.ranges.slice(),n[r]=a)}return n?XB.create(n,t.mainIndex):t}function GU(e,t,n){let r=WU(e.state.facet(wU).map(t=>t(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:XB.cursor(r,r<n.from?1:-1)}var KU=class{constructor(e,t){this.pos=e,this.assoc=t}};function qU(e,t,n,r){let i=e.contentDOM.getBoundingClientRect(),a=i.top+e.viewState.paddingTop,{x:o,y:s}=t,c=s-a,l;for(;;){if(c<0)return new KU(0,1);if(c>e.viewState.docHeight)return new KU(e.state.doc.length,-1);if(l=e.elementAtHeight(c),r==null)break;if(l.type==EH.Text){if(r<0?l.to<e.viewport.from:l.from>e.viewport.to)break;let t=e.docView.coordsAt(r<0?l.from:l.to,r>0?-1:1);if(t&&(r<0?t.top<=c+a:t.bottom>=c+a))break}let t=e.viewState.heightOracle.textHeight/2;c=r>0?l.bottom+t:l.top-t}if(e.viewport.from>=l.to||e.viewport.to<=l.from){if(n)return null;if(l.type==EH.Text){let t=ike(e,i,l,o,s);return new KU(t,t==l.from?1:-1)}}if(l.type!=EH.Text)return c<(l.top+l.bottom)/2?new KU(l.from,1):new KU(l.to,-1);let u=e.docView.lineAt(l.from,2);return(!u||u.length!=l.length)&&(u=e.docView.lineAt(l.from,-2)),new uke(e,o,s,e.textDirectionAt(l.from)).scanTile(u,l.from)}var uke=class{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[sU.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[sU.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t,n=!1){let r=0,i=e.length-1,a=new Set,o=this.bidiIn(e[0],e[i]),s,c,l=-1,u=1e9,d;search:for(;r<i;){let n=i-r,f=r+i>>1;adjust:if(a.has(f)){for(let e=1;e<n;e++){let t=f+e;if(t>=i&&(t-=n),!a.has(t)){f=t;break adjust}}break search}a.add(f);let p=t(f),m=0;if(p)for(let e=0;e<p.length;e++){let t=p[e];if(!(t.width==0&&p.length>1)){if(t.bottom<this.y)(!s||s.bottom<t.bottom)&&(s=t),m=1;else if(t.top>this.y)(!c||c.top>t.top)&&(c=t),m=-1;else{let e=t.left>this.x?this.x-t.left:t.right<this.x?this.x-t.right:0,n=Math.abs(e);n<u&&(l=f,u=n,d=t),e&&(m=e<0==(this.baseDir==nU.LTR)?-1:1)}}}m==-1&&(!o||this.baseDirAt(e[f],1))?i=f:m==1&&(!o||this.baseDirAt(e[f+1],-1))&&(r=f+1)}if(!d){if(!c&&!s)return{i:e[0],after:!1};let n=s&&(!c||this.y-s.bottom<c.top-this.y)?s:c;return this.y=(n.top+n.bottom)/2,this.scan(e,t,!0)}if(u&&!n){let{top:n,bottom:r}=d;if(s&&s.bottom>(n+n+r)/3)return this.y=s.bottom-1,this.scan(e,t,!0);if(c&&c.top<(n+r+r)/3)return this.y=c.top+1,this.scan(e,t,!0)}let f=(o?this.dirAt(e[l],1):this.baseDir)==nU.LTR;return{i:l,after:this.x>(d.left+d.right)/2==f}}scanText(e,t){let n=[];for(let r=0;r<e.length;r=FB(e.text,r))n.push(t+r);n.push(t+e.length);let r=this.scan(n,r=>{let i=n[r]-t,a=n[r+1]-t;return XH(e.dom,i,a).getClientRects()});return r.after?new KU(n[r.i+1],-1):new KU(n[r.i],1)}scanTile(e,t){if(!e.length)return new KU(t,1);if(e.children.length==1){let n=e.children[0];if(n.isText())return this.scanText(n,t);if(n.isComposite())return this.scanTile(n,t)}let n=[t];for(let r=0,i=t;r<e.children.length;r++)n.push(i+=e.children[r].length);let r=this.scan(n,t=>{let n=e.children[t];return n.flags&48?null:(n.dom.nodeType==1?n.dom:XH(n.dom,0,n.length)).getClientRects()}),i=e.children[r.i],a=n[r.i];return i.isText()?this.scanText(i,a):i.isComposite()?this.scanTile(i,a):r.after?new KU(n[r.i+1],-1):new KU(a,1)}},JU=`￿`,dke=c Line truncated
`&&e.lineWrapping&&(r&&=XB.single(r.main.anchor-1,r.main.head-1),n={from:a.from,to:a.to,insert:EB.of([` `])}),n)return YU(e,n,r,o);if(r&&!XU(r,a)){let t=!1,n=`select`;return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin==`select`&&(t=!0),n=e.inputState.lastSelectionOrigin,n==`select.pointer`&&(r=lke(i.facet(wU).map(t=>t(e)),r))),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}function YU(e,t,n,r=-1){if(bH.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(bH.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&e.state.sliceDoc(t.from,i.from)==` `)&&t.insert.length==1&&t.insert.lines==2&&ZH(e.contentDOM,`Enter`,13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.length<t.to-t.from&&t.to>i.head)&&ZH(e.contentDOM,`Backspace`,8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&ZH(e.contentDOM,`Delete`,46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,s=()=>o||=vke(e,t,n);return e.state.facet(vOe).some(n=>n(e,t.from,t.to,a,s))||e.dispatch(s()),!0}function vke(e,t,n){let r,i=e.state,a=i.selection.main,o=-1;if(t.from==t.to&&t.from<a.from||t.from>a.to){let n=t.from<a.from?-1:1,r=n<0?a.from:a.to,s=WU(i.facet(wU).map(t=>t(e)),r,n);t.from==s&&(o=s)}if(o>-1)r={changes:t,selection:XB.cursor(t.from+t.insert.length,-1)};else if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.from<t.from?i.sliceDoc(a.from,t.from):``,o=a.to>t.to?i.sliceDoc(t.to,a.to):``;r=i.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let o=i.changes(t),s=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=a.to+10&&t.to>=a.to-10){let c=e.state.sliceDoc(t.from,t.to),l,u=n&&JOe(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}}else l=e.state.doc.lineAt(a.head);let d=a.to-t.to;r=i.changeByRange(n=>{if(n.from==a.from&&n.to==a.to)return{changes:o,range:s||n.map(o)};let r=n.to-d,u=r-c.length;if(e.state.sliceDoc(u,r)!=c||r>=l.from&&u<=l.to)return{range:n};let f=i.changes({from:u,to:r,insert:t.insert}),p=n.to-a.to;return{changes:f,range:s?XB.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):n.map(f)}})}else r={changes:o,selection:s&&i.selection.replaceRange(s)}}let s=`input.type`;return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=`.compose`,e.inputState.compositionFirstChange&&(s+=`.start`,e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function yke(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a<i&&e.charCodeAt(a)==t.charCodeAt(a);)a++;if(a==i&&e.length==t.length)return null;let o=e.length,s=t.length;for(;o>0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if(r==`end`){let e=Math.max(0,a-Math.min(o,s));n-=o+e-a}if(o<a&&e.length<t.length){let e=n<=a&&n>=o?a-n:0;a-=e,s=a+(s-o),o=a}else if(s<a){let e=n<=a&&n>=s?a-n:0;a-=e,o=a+(o-s),s=a}return{from:a,toA:o,toB:s}}function bke(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new mke(n,r)),(i!=n||a!=r)&&t.push(new mke(i,a))),t}function xke(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?XB.single(n+t,r+t):null}function XU(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}var Ske=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText=``,this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,bH.safari&&e.contentDOM.addEventListener(`input`,()=>null),bH.gecko&&$ke(e.contentDOM.ownerDocument)}handleEvent(e){!Pke(this.view,e)||this.ignoreDuringComposition(e)||e.type==`keydown`&&this.keydown(e)||(this.view.updateState==0?this.runHandlers(e.type,e):Promise.resolve().then(()=>this.runHandlers(e.type,e)))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensur Line truncated
`))};if((bH.mac||bH.android)&&u.from==a-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute(`autocorrect`)==`off`&&(u={from:o,to:s,insert:EB.of([n.text.replace(`.`,` `)])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);YU(e,u,XB.single(this.toEditorPos(n.selectionStart,t),this.toEditorPos(n.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],i=null;for(let t=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);t<a;t++){let n=e.coordsForChar(t);i=n&&new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top)||i||new DOMRect,r.push(i)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=t=>{let n=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(r)){let i=this.toEditorPos(e.rangeStart),a=this.toEditorPos(e.rangeEnd);if(i<a){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+` `:t==`Dashed`?`dashed `:t==`Squiggle`?`wavy `:``}${/thin/i.test(r)?1:2}px`;n.push(DH.mark({attributes:{style:e}}).range(i,a))}}}e.dispatch({effects:COe.of(DH.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{let t=PH(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((i,a,o,s,c)=>{if(n)return;let l=c.length-(a-i);if(r&&a>=r.to){if(r.from==i&&r.to==a&&r.insert.eq(c)){r=this.pendingContextChange=null,t+=l,this.to+=l;return}r=null,this.revertPending(e.state)}if(i+=t,a+=t,a<=this.from)this.from+=l,this.to+=l;else if(i<this.to){if(i<this.from||a>this.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(a),c.toString()),this.to+=l}t+=l}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(e=>!e.isUserEvent(`input.type`)&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},wW=class e{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement(`div`),this.scrollDOM=document Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩-]`,KW),YAe={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`},qW=null;function XAe(){if(qW==null&&typeof document<`u`&&document.body){let e=document.body.style;qW=(e.tabSize??e.MozTabSize)!=null}return qW||!1}var JW=$B.define({combine(e){let t=MV(e,{render:null,specialChars:JAe,addSpecialChars:null});return(t.replaceTabs=!XAe())&&(t.specialChars=RegExp(` |`+t.specialChars.source,KW)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+`|`+t.addSpecialChars.source,KW)),t}});function ZAe(e={}){return[JW.of(e),$Ae()]}var QAe=null;function $Ae(){return QAe||=yU.fromClass(class{constructor(e){this.view=e,this.decorations=DH.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(JW)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new qAe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=IB(t[0],0);if(a==9){let e=i.lineAt(r),t=n.state.tabSize,a=YV(e.text,t,r-e.from);return DH.replace({widget:new rje((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=DH.replace({widget:new nje(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(JW);e.startState.facet(JW)==t?this.decorations=this.decorator.updateDeco(e,this.decorations):(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view))}},{decorations:e=>e.decorations})}var eje=`•`;function tje(e){return e>=32?eje:e==10?`␤`:String.fromCharCode(9216+e)}var nje=class extends TH{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=tje(this.code),n=e.state.phrase(`Control character`)+` `+(YAe[this.code]||`0x`+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement(`span`);return i.textContent=t,i.title=n,i.setAttribute(`aria-label`,n),i.className=`cm-specialChar`,i}ignoreEvent(){return!1}},rje=class extends TH{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 ije(){return oje}var aje=DH.line({class:`cm-activeLine`}),oje=yU.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(aje.range(i.from)),t=i.from)}return DH.set(n)}},{decorations:e=>e.decorations}),YW=2e3;function sje(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>YW||n.off>YW||t.col<0||n.col<0){let o=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let t=r;t<=i;t++){let n=e.doc.line(t);n.length<=s&&a.push(XB.range(n.from+o,n.to+s))}}else{let o=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let t=r;t<=i;t++){let n=e.doc.line(t),r=XV(n.text,o,e.tabSize,!0);if(r<0)a.push(XB.cursor(n.to));else{let t=XV(n.text,s,e.tabSize);a.push(XB.range(n.from+r,n.from+t))}}}return a}function cje(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function XW(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>YW?-1:i==r.length?cje(e,t.clientX):YV(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function lje(e,t){let n=XW(e,t),r=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes)}},get(t,i,a){let o=XW(e,t);if(!o)return r;let s=sje(e.state,n,o);return s.length?a?XB.create(s.concat(r.ranges)):XB.create(s):r}}:null}function uje(e){let t=e?.eventFilter||(e=>e.altKey&&e.button==0);return wW.mouseSelectionStyle.of((e,n)=>t(n)?lje(e,n):null)}var dje={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},fje={style:`cursor: crosshair`};function pje(e={}){let[t,n]=dje[e.key||`Alt`],r=yU.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){(e.keyCode==t||!n(e))&&this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,wW.contentAttributes.of(e=>e.plugin(r)?.isDown?fje:null)]}var ZW=`-100Line truncated
`:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new xPe(this):new yPe(this)}getCursor(e,t=0,n){let r=e.doc?e:jV.create({doc:e});return n??=r.doc.length,this.regexp?WJ(this,r,t,n):UJ(this,r,t,n)}},HJ=class{constructor(e){this.spec=e}};function UJ(e,t,n,r){return new DJ(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?vPe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function vPe(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(GJ(i,n-a))!=kV.Word||t(KJ(i,n-a))!=kV.Word)&&(t(KJ(i,r-a))!=kV.Word||t(GJ(i,r-a))!=kV.Word))}var yPe=class extends HJ{constructor(e){super(e)}nextMatch(e,t,n){let r=UJ(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=UJ(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=UJ(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=UJ(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=UJ(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function WJ(e,t,n,r){return new AJ(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?bPe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function GJ(e,t){return e.slice(FB(e,t,!1),t)}function KJ(e,t){return e.slice(t,FB(e,t))}function bPe(e){return(t,n,r)=>!r[0].length||(e(GJ(r.input,r.index))!=kV.Word||e(KJ(r.input,r.index))!=kV.Word)&&(e(KJ(r.input,r.index+r[0].length))!=kV.Word||e(GJ(r.input,r.index+r[0].length))!=kV.Word)}var xPe=class extends HJ{nextMatch(e,t,n){let r=WJ(this.spec,e,n,e.doc.length).next();return r.done&&(r=WJ(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=WJ(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=WJ(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=WJ(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},qJ=CV.define(),JJ=CV.define(),YJ=aV.define({create(e){return new XJ(nY(e).create(),null)},update(e,t){for(let n of t.effects)n.is(qJ)?e=new XJ(n.value.create(),e.panel):n.is(JJ)&&(e=new XJ(e.query,n.value?tY:null));return e},provide:e=>mG.from(e,e=>e.panel)}),XJ=class{constructor(e,t){this.query=e,this.panel=t}},SPe=DH.mark({class:`cm-searchMatch`}),CPe=DH.mark({class:`cm-searchMatch cm-searchMatch-selected`}),wPe=yU.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(YJ))}update(e){let t=e.state.field(YJ);(t!=e.startState.field(YJ)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return DH.none;let{view:n}=this,r=new RV;for(let t=0,i=n.visibleRanges,a=i.length;t<a;t++){let{from:o,to:s}=i[t];for(;t<a-1&&s>i[t+1].from-500;)s=i[++t].to;e.highlight(n.state,o,s,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?CPe:SPe)})}return r.finish()}},{decorations:e=>e.decorations});function ZJ(e){return t=>{let n=t.state.field(YJ,!1);return n&&n.query.spec.valid?e(t,n):aY(t)}}var QJ=ZJ((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=XB.single(r.from,r.to),a=e.state.facet(BJ);return e.dispatch({selection:i,effects:[uY(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),iY(e),!0}),$J=ZJ((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=XB.single(i.from,i.to),o=e.state.facet(BJ);return e.dispatch({selection:a,effects:[uY(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),iY(e),!0}),TPe=ZJ((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:XB.create(n.map(e=>XB.rang Line truncated
`)}var c={extraLines:2,tabSize:4};return function(e,t,r,i){i=a({},c,i);var l=e.split(/\r\n?|\n|\f/),u=Math.max(1,t-i.extraLines)-1,d=Math.min(t+i.extraLines,l.length),f=String(d).length;return[s(l,u,t,f,i),n(` `,o(l[t-1].substring(0,r-1),t,f,i).length)+`^`,s(l,t,d,f,i)].filter(Boolean).join(`
`)}})}),o=Error().stack,s=(function(e){var t=Object.create(SyntaxError.prototype);return Object.assign(t,e,{name:`SyntaxError`}),Object.defineProperty(t,"stack",{get:function(){return o?o.replace(/^(.+\n){1,3}/,String(t)+`
`):``}}),t}),c=(function(e,t,n,r,i){throw s({message:r?e+`
`+a(t,r,i):e,rawMessage:e,source:n,line:r,column:i})}),l={unexpectedEnd:function(){return`Unexpected end of input`},unexpectedToken:function(e){var t=[...arguments].slice(1);return`Unexpected token <`+e+`> at `+t.filter(Boolean).join(`:`)}},u={unexpectedSymbol:function(e){var t=[...arguments].slice(1);return`Unexpected symbol <`+e+`> at `+t.filter(Boolean).join(`:`)}},d={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},f={"{":d.LEFT_BRACE,"}":d.RIGHT_BRACE,"[":d.LEFT_BRACKET,"]":d.RIGHT_BRACKET,":":d.COLON,",":d.COMMA},p={true:d.TRUE,false:d.FALSE,null:d.NULL},m={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},h={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},g={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function _(e){return e>=`1`&&e<=`9`}function v(e){return e>=`0`&&e<=`9`}function y(e){return v(e)||e>=`a`&&e<=`f`||e>=`A`&&e<=`F`}function b(e){return e===`e`||e===`E`}function x(e,t,n,r){var i=e.charAt(t);if(i===`\r`)t++,n++,r=1,e.charAt(t)===`
`&&t++;else if(i===`
`)t++,n++,r=1;else if(i===` `||i===` `)t++,r++;else return null;return{index:t,line:n,column:r}}function S(e,t,n,r){var i=e.charAt(t);return i in f?{type:f[i],line:n,column:r+1,index:t+1,value:null}:null}function C(e,t,n,r){for(var i in p)if(p.hasOwnProperty(i)&&e.substr(t,i.length)===i)return{type:p[i],line:n,column:r+i.length,index:t+i.length,value:i};return null}function w(e,t,n,r){for(var i=t,a=m._START_;t<e.length;){var o=e.charAt(t);switch(a){case m._START_:if(o===`"`)t++,a=m.START_QUOTE_OR_CHAR;else return null;break;case m.START_QUOTE_OR_CHAR:if(o===`\\`)t++,a=m.ESCAPE;else if(o===`"`)return t++,{type:d.STRING,line:n,column:r+t-i,index:t,value:e.slice(i,t)};else t++;break;case m.ESCAPE:if(o in h){if(t++,o===`u`)for(var s=0;s<4;s++){var c=e.charAt(t);if(c&&y(c))t++;else return null}a=m.START_QUOTE_OR_CHAR}else return null}}}function T(e,t,n,r){var i=t,a=t,o=g._START_;iterator:for(;t<e.length;){var s=e.charAt(t);switch(o){case g._START_:if(s===`-`)o=g.MINUS;else if(s===`0`)a=t+1,o=g.ZERO;else if(_(s))a=t+1,o=g.DIGIT;else return null;break;case g.MINUS:if(s===`0`)a=t+1,o=g.ZERO;else if(_(s))a=t+1,o=g.DIGIT;else return null;break;case g.ZERO:if(s===`.`)o=g.POINT;else if(b(s))o=g.EXP;else break iterator;break;case g.DIGIT:if(v(s))a=t+1;else if(s===`.`)o=g.POINT;else if(b(s))o=g.EXP;else break iterator;break;case g.POINT:if(v(s))a=t+1,o=g.DIGIT_FRACTION;else break iterator;break;case g.DIGIT_FRACTION:if(v(s))a=t+1;else if(b(s))o=g.EXP;else break iterator;break;case g.EXP:if(s===`+`||s===`-`)o=g.EXP_DIGIT_OR_SIGN;else if(v(s))a=t+1,o=g.EXP_DIGIT_OR_SIGN;else break iterator;break;case g.EXP_DIGIT_OR_SIGN:if(v(s))a=t+1;else break iterator}t++}return a>0?{type:d.NUMBER,line:n,column:r+a-i,index:a,value:e.slice(i,a)}:null}var E=function(e,t){for(var n=1,a=1,o=0,s=[];o<e.length;){var l=[e,o,n,a],d=x.apply(void 0,l);if(d){o=d.index,n=d.line,a=d.column;continue}var f=S.apply(void 0,l)||C.apply(void 0,l)||w.apply(void 0,l)||T.apply(void 0,l);if(f){var p={type:f.type,value:f.value,loc:i(n,a,o,f.line,f.column,f.index,t.source)};s.push(p),o=f.index,n=f.line,a=f.column}else c(u.unexpectedSymbol(r(e,o,o+1),t.source,n,a),e,t.source,n,a)}return s},D={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},O={_START_:0,KEY:1,COLON:2},k={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},ee={loc:!0,source:null};function te(e,t,n){var r=t.length>0?t[t.length-1].loc.end:{line:1,column:1};c(l.unexpectedEnd(),e,n.source,r.line,r.column)}function A(e){for(var t=0,n=0;n<4;n++)t=t*16+parseInt(e[n],16);return String.fromCharCode(t)}var ne={b:`\b`,f:`\f`,n:`
`,r:`\r`,t:` `},re=[`"`,`\\`,`/`];function ie(e){for(var t=``,n=0;n<e.length;n++){var r=e.charAt(n);if(r===`\\`){n++;var i=e.charAt(n);if(i===`u`)t+=A(e.substr(n+1,4)),n+=4;else if(re.indexOf(i)!==-1)t+=i;else if(i in ne)t+=ne[i];else break}else t+=r}return t}function j(e,t,n,a){for(var o=void 0,s={type:`Object`,children:[]},u=D._START_;n<t.length;){var f=t[n];switch(u){case D._START_:if(f.type===d.LEFT_BRACE)o=f,u=D.OPEN_OBJECT,n++;else return null;break;case D.OPEN_OBJECT:if(f.type===d.RIGHT_BRACE)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};var p=ae(e,t,n,a);s.children.push(p.value),u=D.PROPERTY,n=p.index;break;case D.PROPERTY:if(f.type===d.RIGHT_BRACE)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};f.type===d.COMMA?(u=D.COMMA,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case D.COMMA:var m=ae(e,t,n,a);m?(n=m.index,s.children.push(m.value),u=D.PROPERTY):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column)}}te(e,t,a)}function ae(e,t,n,a){for(var o=void 0,s={type:`Property`,key:null,value:null},u=O._START_;n<t.length;){var f=t[n];switch(u){case O._START_:if(f.type===d.STRING){var p={type:`Identifier`,value:ie(e.slice(f.loc.start.offset+1,f.loc.end.offset-1)),raw:f.value};a.loc&&(p.loc=f.loc),o=f,s.key=p,u=O.KEY,n++}else return null;break;case O.KEY:f.type===d.COLON?(u=O.COLON,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case O.COLON:var m=ce(e,t,n,a);return s.value=m.value,a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,m.value.loc.end.line,m.value.loc.end.column,m.value.loc.end.offset,a.source)),{value:s,index:m.index}}}}function oe(e,t,n,a){for(var o=void 0,s={type:`Array`,children:[]},u=k._START_,f=void 0;n<t.length;)switch(f=t[n],u){case k._START_:if(f.type===d.LEFT_BRACKET)o=f,u=k.OPEN_ARRAY,n++;else return null;break;case k.OPEN_ARRAY:if(f.type===d.RIGHT_BRACKET)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};var p=ce(e,t,n,a);n=p.index,s.children.push(p.value),u=k.VALUE;break;case k.VALUE:if(f.type===d.RIGHT_BRACKET)return a.loc&&(s.loc=i(o.loc.start.line,o.loc.start.column,o.loc.start.offset,f.loc.end.line,f.loc.end.column,f.loc.end.offset,a.source)),{value:s,index:n+1};f.type===d.COMMA?(u=k.COMMA,n++):c(l.unexpectedToken(r(e,f.loc.start.offset,f.loc.end.offset),a.source,f.loc.start.line,f.loc.start.column),e,a.source,f.loc.start.line,f.loc.start.column);break;case k.COMMA:var m=ce(e,t,n,a);n=m.index,s.children.push(m.value),u=k.VALUE}te(e,t,a)}function se(e,t,n,r){var i=t[n],a=null;switch(i.type){case d.STRING:a=ie(e.slice(i.loc.start.offset+1,i.loc.end.offset-1));break;case d.NUMBER:a=Number(i.value);break;case d.TRUE:a=!0;break;case d.FALSE:a=!1;break;case d.NULL:a=null;break;default:return null}var o={type:`Literal`,value:a,raw:i.value};return r.loc&&(o.loc=i.loc),{value:o,index:n+1}}function ce(e,t,n,i){var a=t[n],o=se.apply(void 0,arguments)||j.apply(void 0,arguments)||oe.apply(void 0,arguments);if(o)return o;c(l.unexpectedToken(r(e,a.loc.start.offset,a.loc.end.offset),i.source,a.loc.start.line,a.loc.start.column),e,i.source,a.loc.start.line,a.loc.start.column)}return(function(e,t){t=Object.assign({},ee,t);var n=E(e,t);n.length===0&&te(e,n,t);var i=ce(e,n,0,t);if(i.index===n.length)return i.value;var a=n[i.index];c(l.unexpectedToken(r(e,a.loc.start.offset,a.loc.end.offset),t.source,a.loc.start.line,a.loc.start.column),e,t.source,a.loc.start.line,a.loc.start.column)})}))}))(),1);function VX(){var e=`/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts`,t=`ea54e84c59655b08b790cad163b45126d1fe9ab0`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts`,statementMap:{0:{start:{line:2,column:1},end:{line:4,column:2}},1:{start:{line:3,column:2},end:{line:3,column:19}},2:{start:{line:5,column:1},end:{line:7,column:2}},3:{start:{line:6,column:2},end:{line:6,column:14}},4:{start:{line:8,column:1},end:{line:10,column:2}},5:{start:{line:9,column:2},end:{line:9,column:19}},6:{start:{line:11,column:13},end:{line:11,column:20}},7:{start:{line:12,column:1},end:{line:14,column:2}},8:{start:{line:13,column:2},end:{line:13,column:68}},9:{start:{line:15,column:17},end:{line:17,column:3}},10:{start:{line:16,column:2},end:{line:16,column:98}},11:{start:{line:18,column:1},end:{line:18,column:58}}},fnMap:{0:{name:`jsonPathToPosition`,decl:{start:{line:1,colu 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.
`},OIe={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function kIe(e){let{announcements:t=OIe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=DIe}=e,{announce:a,announcement:o}=wIe(),s=uZ(`DndLiveRegion`),[c,l]=(0,m.useState)(!1);if((0,m.useEffect)(()=>{l(!0)},[]),TIe((0,m.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=m.createElement(m.Fragment,null,m.createElement(SIe,{id:r,value:i.draggable}),m.createElement(CIe,{id:s,announcement:o}));return n?(0,JX.createPortal)(u,n):u}var yZ;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(yZ||={});function bZ(){}function AIe(e,t){return(0,m.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function jIe(){var e=[...arguments];return(0,m.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var xZ=Object.freeze({x:0,y:0});function MIe(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function NIe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function PIe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function FIe(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function SZ(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var IIe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=SZ(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=MIe(SZ(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(NIe)};function LIe(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var RIe=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=LIe(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(PIe)};function zIe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function CZ(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:xZ}function BIe(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var VIe=BIe(1);function HIe(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function UIe(e,t,n){let r=HIe(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var WIe={ignoreTransform:!1};function wZ(e,t){t===void 0&&(t=WIe);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=QX(e).getComputedStyle(e);t&&(n=UIe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function TZ(e){return wZ(e,{ignoreTransform:!0})}function GIe(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function KIe(e,t){return t===void 0&&(t=QX(e).getComputedStyle(e)),t.position===`fixed`}function qIe(e,t){t===void 0&&(t=QX(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function EZ(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if($X(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!eZ(i)||tZ(i)||n.includes(i))return n;let a=QX(e).getComputedStyle(i);return i!==e&&qIe(i,a)&&n.push(i),KIe(i,a)?n:r(i.parentNode)}return e?r(e):n}function DZ(e){let[t]=EZ(e,1);return t??null}function OZ(e){return!YX||!e?null:XX(e)?e:ZX(e)?$X(e)||e===nZ(e).scrollingElement?win Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u$(Object(n),!0).forEach(function(t){fRe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hRe(e){return dRe(e)||pRe(e)||vRe(e)||mRe()}function gRe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _Re(e){var t=gRe(e,`string`);return typeof t==`symbol`?t:t+``}function vRe(e,t){if(e){if(typeof e==`string`)return l$(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l$(e,t):void 0}}var f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,yRe=o((()=>{c$(),f$={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},p$=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},m$=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},h$=function(e){return e?.key===`Tab`||e?.keyCode===9},g$=function(e){return h$(e)&&!e.shiftKey},_$=function(e){return h$(e)&&e.shiftKey},v$=function(e){return setTimeout(e,0)},y$=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},b$=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},x$=[],S$=function(e,t){var n=t?.document||document,r=t?.trapStack||x$,i=d$({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:g$,isKeyBackward:_$},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,hRe(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!s$(e,i.tabbableOptions)){if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=r$(e,i.tabbableOptions),n=i$(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return a$(e)}),s=n.slice().reverse().find(function(e){return a$(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return zQ(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return a$(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return a$(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple con Line truncated
`);d=~n?e.length-n:d+e.length}function p(){var e={line:l,column:d};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:l,column:d},this.source=t.source}m.prototype.content=e;var h=[];function g(n){var r=Error(t.source+`:`+l+`:`+d+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=d,r.source=e,t.silent)h.push(r);else throw r}function _(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(){_(i)}function y(e){var t;for(e||=[];t=b();)t!==!1&&e.push(t);return e}function b(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return g(`End of comment missing`);var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:`comment`,comment:r})}}function x(){var e=p(),t=_(a);if(t){if(b(),!_(o))return g(`property missing ':'`);var r=_(s),i=e({type:`declaration`,property:u(t[0].replace(n,``)),value:r?u(r[0].replace(n,``)):``});return _(c),i}}function S(){var e=[];y(e);for(var t;t=x();)t!==!1&&(e.push(t),y(e));return e}return v(),S()};function u(e){return e?e.replace(l,``):``}})),HRe=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(VRe());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),URe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),WRe=s(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(HRe()),r=URe();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),e1=n1(`end`),t1=n1(`start`);function n1(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function GRe(e){let t=t1(e),n=e1(e);if(t&&n)return{start:t,end:n}}function r1(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?a1(e.position):`start`in e||`end`in e?a1(e):`line`in e||`column`in e?i1(e):``}function i1(e){return o1(e&&e.line)+`:`+o1(e&&e.column)}function a1(e){return i1(e&&e.start)+`-`+i1(e&&e.end)}function o1(e){return e&&typeof e==`number`?e:1}var s1=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=r1(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};s1.prototype.file=``,s1.prototype.name=``,s1.prototype.reason=``,s1.prototype.message=``,s1.prototype.stack=``,s1.prototype.column=void 0,s1.prototype.line=void 0,s1.prototype.ancestors=void 0,s1.prototype.cause=void 0,s1.prototype.fatal=void 0,s1.prototype.place=void 0,s1.prototype.ruleId=void 0,s1.prototype.source=void 0;var KRe=u(WRe(),1),c1={}.hasOwnProperty,qRe=new Map,JRe=/[A-Z]/g,YRe=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),XRe=new Set([`td`,`th`]);function ZRe(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=aze(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=ize(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`, Line truncated
`;break;case-3:o=`\r
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function lVe(e){let t={constructs:gze([XBe,...(e||{}).extensions||[]]),content:n(wze),defined:[],document:n(Eze),flow:n(WBe),lazy:{},string:n(qBe),text:n(JBe)};return t;function n(e){return n;function n(n){return oVe(t,e,n)}}}function uVe(e){for(;!J1(e););return e}var s0=/[\0\t\n\r]/g;function dVe(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(s0.lastIndex=u,c=s0.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var fVe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pVe(e){return e.replace(fVe,mVe)}function mVe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return C1(n.slice(t?2:1),t?16:10)}return y1(n)||e}var c0={}.hasOwnProperty;function hVe(e,t,n){return typeof t!=`string`&&(n=t,t=void 0),gVe(n)(uVe(lVe(n).document().write(dVe()(e,t,!0))))}function gVe(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ye),blockQuote:a(me),characterEscape:T,characterReference:T,codeFenced:a(he),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(he,o),codeText:a(ge,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ve),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(xe,o),htmlFlowData:T,htmlText:a(xe,o),htmlTextData:T,image:a(Se),label:o,link:a(Ce),listItem:a(Te),listItemValue:f,listOrdered:a(we,d),listUnordered:a(we),paragraph:a(Ee),reference:se,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ye),strong:a(De),thematicBreak:a(ke)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:pe,autolinkProtocol:fe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:ue,characterReference:de,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(te),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(ee),htmlTextData:E,image:c(ne),label:ie,labelText:re,lineEnding:D,link:c(A),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ce,resourceDestinationString:j,resourceTitleString:ae,resource:oe,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};u0(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];c0.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||d0).call(a,void 0,e[0])}for(r.position={start:l0(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:l0(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splicLine truncated
`}]}function xVe(e,t){let n=t.value?t.value+`
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function SVe(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CVe(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wVe(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=N1(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function TVe(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EVe(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function f0(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function DVe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f0(e,t);let i={src:N1(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function OVe(e,t){let n={src:N1(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function kVe(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function AVe(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f0(e,t);let i={href:N1(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function jVe(e,t){let n={href:N1(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function MVe(e,t,n){let r=e.all(t),i=n?NVe(n):p0(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function NVe(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=p0(n[r])}return t}function p0(e){return e.spread??e.children.length>1}function PVe(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function FVe(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IVe(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function LVe(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RVe(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=t1(t.children[1]),o=e1(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function zVe(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function BVe(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var m0=9,h0=32;function VVe(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(g0(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(g0(t.slice(i),i>0,!1)),a.join(``)}function g0(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===m0||t===h0;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===m0||t===h0;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function HVe(e,t){let n={type:`text`,value:VVe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function UVe(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var WVe={blockquote:yVe,break:bVe,code:xVe,delete:SVe,emphasis:CVe,footnoteReference:wVe,heading:TVe,html:EVe,imageReference:DVe,image:OVe,inlineCode:kVe,linkReference:AVe,link:jVe,listItem:MVe,list:PVe,paragraph:FVe,root:IVe,strong:LVe,table:RVe,tableCell:BVe,tableRow:zVe,text:HVe,thematicBreak:UVe,toml:_0,yaml:_0,definition:_0,footnoteDefinition:_0};function _0(){}var v0=typeof self==`object`?self:globalThis,GVe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new v0[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new v0[a](o),i)};return r},y0=e=>GVe(new Map,e)(0),b0=``,{toString:KVe}={},{keys:qVe}=Object,x0=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=KVe.call(e).slice(8,-1);switch(n){case`Array`:return[1,b0];case`Object`:return[2,b0];case`Date`:return[3,b0];case`RegExp`:return[4,b0];case`Map`:return[5,b0];case`Set`:return[6,b0];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},S0=([e,t])=>e===0&&(t===`function`||t===`symbol`),JVe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=x0(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`BooleLine truncated
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
`}]}}var T0=(function(e){if(e==null)return tHe;if(typeof e==`function`)return E0(e);if(typeof e==`object`)return Array.isArray(e)?QVe(e):$Ve(e);if(typeof e==`string`)return eHe(e);throw Error(`Expected function, string, or object as test`)});function QVe(e){let t=[],n=-1;for(;++n<e.length;)t[n]=T0(e[n]);return E0(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function $Ve(e){let t=e;return E0(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function eHe(e){return E0(t);function t(t){return t&&t.type===e}}function E0(e){return t;function t(t,n,r){return!!(nHe(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function tHe(){return!0}function nHe(e){return typeof e==`object`&&!!e&&`type`in e}function rHe(e){return e}var D0=[];function iHe(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=T0(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+rHe(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=D0,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=aHe(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function aHe(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?D0:[e]}function O0(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),iHe(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var k0={}.hasOwnProperty,oHe={};function sHe(e,t){let n=t||oHe,r=new Map,i=new Map,a={all:s,applyData:lHe,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...WVe,...n.handlers},one:o,options:n,patch:cHe,wrap:dHe};return O0(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(k0.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=w0(n);return r.children=a.all(e),r}return w0(e)}return(a.options.unknownHandler||uHe)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=A0(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=A0(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function cHe(e,t){e.position&&(t.position=GRe(e))}function lHe(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,w0(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function uHe(e,t){let n=t.data||{},r=`value`in t&&!(k0.call(n,`hProperties`)||k0.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dHe(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
`});++r<e.length;)r&&n.push({type:`text`,value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
`}),n}function A0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function j0(e,t){let n=sHe(e,t),r=n.one(e,void 0),i=ZVe(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
`},i)),a}function fHe(e,t){return e&&`run`in e?async function(n,r){let i=j0(n,{file:r,...t});await e.run(i,r)}:function(n,r){return j0(n,{file:r,...e||t})}}function M0(e){if(e)throw e}var pHe=s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function N0(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mHe(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?hHe(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function hHe(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var P0={basename:gHe,dirname:_He,extname:vHe,join:yHe,sep:`/`};function gHe(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);F0(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function _He(e){if(F0(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function vHe(e){F0(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function yHe(...e){let t=-1,n;for(;++t<e.length;)F0(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:bHe(n)}function bHe(e){F0(e);let t=e.codePointAt(0)===47,n=xHe(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function xHe(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function F0(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var SHe={cwd:CHe};function CHe(){return`/`}function I0(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function wHe(e){if(typeof e==`string`)e=new URL(e);else if(!I0(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return THe(e)}function THe(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.p Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OWe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var kWe=q3(function e(t){var n=this,r=t.expanded,i=r===void 0?[]:r,a=t.allowMultipleExpanded,o=a!==void 0&&a,s=t.allowZeroExpanded,c=s!==void 0&&s;G3(this,e),J3(this,`expanded`,void 0),J3(this,`allowMultipleExpanded`,void 0),J3(this,`allowZeroExpanded`,void 0),J3(this,`toggleExpanded`,function(e){return n.isItemDisabled(e)?n:n.isItemExpanded(e)?n.augment({expanded:n.expanded.filter(function(t){return t!==e})}):n.augment({expanded:n.allowMultipleExpanded?[].concat(SWe(n.expanded),[e]):[e]})}),J3(this,`isItemDisabled`,function(e){var t=n.isItemExpanded(e),r=n.expanded.length===1;return!!(t&&!n.allowZeroExpanded&&r)}),J3(this,`isItemExpanded`,function(e){return n.expanded.indexOf(e)!==-1}),J3(this,`getPanelAttributes`,function(e,t){var r=t??n.isItemExpanded(e);return{role:n.allowMultipleExpanded?void 0:`region`,"aria-hidden":n.allowMultipleExpanded?!r:void 0,"aria-labelledby":n.getButtonId(e),id:n.getPanelId(e),hidden:!r||void 0}}),J3(this,`getHeadingAttributes`,function(){return{role:`heading`}}),J3(this,`getButtonAttributes`,function(e,t){var r=t??n.isItemExpanded(e),i=n.isItemDisabled(e);return{id:n.getButtonId(e),"aria-disabled":i,"aria-expanded":r,"aria-controls":n.getPanelId(e),role:`button`,tabIndex:0}}),J3(this,`getPanelId`,function(e){return`accordion__panel-${e}`}),J3(this,`getButtonId`,function(e){return`accordion__heading-${e}`}),J3(this,`augment`,function(t){return new e(W3({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},t))}),this.expanded=i,this.allowMultipleExpanded=o,this.allowZeroExpanded=c}),i6=(0,m.createContext)(null),a6=function(e){X3(n,e);var t=t6(n);function n(){var e;G3(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),J3(e6(e),`state`,new kWe({expanded:e.props.preExpanded,allowMultipleExpanded:e.props.allowMultipleExpanded,allowZeroExpanded:e.props.allowZeroExpanded})),J3(e6(e),`toggleExpanded`,function(t){e.setState(function(e){return e.toggleExpanded(t)},function(){e.props.onChange&&e.props.onChange(e.state.expanded)})}),J3(e6(e),`isItemDisabled`,function(t){return e.state.isItemDisabled(t)}),J3(e6(e),`isItemExpanded`,function(t){return e.state.isItemExpanded(t)}),J3(e6(e),`getPanelAttributes`,function(t,n){return e.state.getPanelAttributes(t,n)}),J3(e6(e),`getHeadingAttributes`,function(){return e.state.getHeadingAttributes()}),J3(e6(e),`getButtonAttributes`,function(t,n){return e.state.getButtonAttributes(t,n)}),e}return q3(n,[{key:`render`,value:function(){var e=this.state,t=e.allowZeroExpanded,n=e.allowMultipleExpanded;return(0,m.createElement)(i6.Provider,{value:{allowMultipleExpanded:n,allowZeroExpanded:t,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),n}(m.PureComponent);J3(a6,`defaultProps`,{allowMultipleExpanded:!1,allowZeroExpanded:!1});var o6=function(e){X3(n,e);var t=t6(n);function n(){var e;G3(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),J3(e6(e),`renderChildren`,function(t){return t?e.props.children(t):null}),e}return q3(n,[{key:`render`,value:function(){return(0,m.createElement)(i6.Consumer,null,this.renderChildren)}}]),n}(m.PureComponent),AWe=[`className`,`allowMultipleExpanded`,`allowZeroExpanded`,`onChange`,`preExpanded`],jWe=function(e){var t=e.className,n=t===void 0?`accordion`:t,r=e.allowMultipleExpanded,i=e.allowZeroExpanded,a=e.onChange,o=e.preExpanded,s=$3(e,AWe);return(0,m.createElement)(a6,{preExpanded:o,allowMultipleExpanded:r,allowZeroExpanded:i,onChange:a},(0,m.createElement)(`div`,Y3({"data-accordion-component":`Accordion`,className:n},s)))},s6;(function(e){e.Accordion=`Accordion`,e.AccordionItem=`AccordionItem`,e.AccordionItemButton=`AccordionItemButton`,e.AccordionItemHeading=`AccordionItemHeading`,e.AccordionItemPanel=`AccordionItemPanel`})(s6||={});var c6=s6,l6=0;function MWe(){var e=l6;return l6+=1,`raa-${e}`}var NWe=m.useId||MWe,PWe=/[\u0009\u000a\u000c\u000d\u0020]/g;function u6(e){return e===``||PWe.test(e)?(console.error(`uuid must be a valid HTML5 id but was given "${e}", ASCII whitespaces are forbidden`),!1):!0}var d6=(0,m.createContext)(null),FWe=function(e){var t=e.children,n=e.uuid,r=e.accordionContext,i=e.dangerouslySetExpanded,a=function(){r.toggleExpanded(n)};return(0,m.createElement)(o6,null,function(e){var r=i??e.isItemExpanded(n),o=e.isItemDisabled(n),s=e.getPanelAttributes(n,i),c=e.getHeadingAttributes(n),l=e.getButtonAttributes(n,i);return(0,m.createElement)(d6.Provider,{value:{uuid:n,expanded:r,disabled:o,toggleExpanded:a,panelAttributes:s,headingAttributes:c,buttonAttributes:l}},t)})},IWe=function(e){return(0,m.createElement)(o6,null,function(t){return(0,m.createElement)(FWe,Y3({},e,{accordionContext:t}))})},f6=function(e 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.”
`,_6=function(e){X3(n,e);var t=t6(n);function n(){var e;G3(this,n);var r=[...arguments];return e=t.call.apply(t,[this].concat(r)),J3(e6(e),`ref`,void 0),J3(e6(e),`setRef`,function(t){e.ref=t}),e}return q3(n,[{key:`componentDidUpdate`,value:function(){n.VALIDATE(this.ref)}},{key:`componentDidMount`,value:function(){n.VALIDATE(this.ref)}},{key:`render`,value:function(){return(0,m.createElement)(`div`,Y3({"data-accordion-component":`AccordionItemHeading`},this.props,{ref:this.setRef}))}}],[{key:`VALIDATE`,value:function(e){if(e===void 0)throw Error(`ref is undefined`);if(!(e.childElementCount===1&&e.firstElementChild&&e.firstElementChild.getAttribute(`data-accordion-component`)===`AccordionItemButton`))throw Error(KWe)}}]),n}(m.PureComponent);J3(_6,`defaultProps`,GWe);var v6=function(e){return(0,m.createElement)(f6,null,function(t){var n=t.headingAttributes;return e.id&&u6(e.id),(0,m.createElement)(_6,Y3({},e,n))})};v6.displayName=c6.AccordionItemHeading;var qWe=[`className`,`region`,`id`],JWe=function(e){var t=e.className,n=t===void 0?`accordion__panel`:t,r=e.region,i=e.id,a=$3(e,qWe);return(0,m.createElement)(f6,null,function(e){var t=e.panelAttributes;i&&u6(i);var o=W3(W3({},t),{},{"aria-labelledby":r?t[`aria-labelledby`]:void 0});return(0,m.createElement)(`div`,Y3({"data-accordion-component":`AccordionItemPanel`,className:n},a,o,{role:r?`region`:void 0}))})};function y6(){var e=`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`,t=`9520c084d5753d03b2f885ad8d41cc433bbd21b7`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`,statementMap:{0:{start:{line:3,column:25},end:{line:5,column:1}},1:{start:{line:4,column:1},end:{line:4,column:54}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:3,column:25},end:{line:3,column:26}},loc:{start:{line:3,column:36},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx`],mappings:`AAAA,SAAS,iBAAsC;;AAM/C,OAAO,MAAM,aAAuC,UAAU;CAC5D,OAAO,qBAAC,WAAD,EAAW,GAAI,MAAQ;AAChC`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`9520c084d5753d03b2f885ad8d41cc433bbd21b7`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return y6=function(){return o},o}y6(),y6().s[0]++;var b6=e=>(y6().f[0]++,y6().s[1]++,(0,R.jsx)(KX,{...e}));function x6(e){return D({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2`},child:[]},{tag:`path`,attr:{d:`M5 12h6`},child:[]},{tag:`path`,attr:{d:`M15 12l6 6`},child:[]},{tag:`path`,attr:{d:`M15 18l6 -6`},child:[]}]})(e)}function S6(e){return D({tag:`svg`,attr:{viewBox:`0 0 256 256`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm104,40H40a12,12,0,0,0,0,24H144a12,12,0,0,0,0-24Zm88,0H220V168a12,12,0,0,0-24,0v12H184a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V204h12a12,12,0,0,0,0-24Z`},child:[]}]})(e)}function C6(){var e=`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`,t=`c4e03b67a8467b62eedab8255a87090dbcdba4b4`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`,statementMap:{0:{start:{line:2,column:34},end:{line:6,column:1}},1:{start:{line:7,column:28},end:{line:7,column:41}},2:{start:{line:8,column:30},end:{line:8,column:123}},3:{start:{line:8,column:88},end:{line:8,column:122}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:8,column:80},end:{line:8,column:81}},loc:{start:{line:8,column:88},end:{line:8,column:122}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/libs/filterops.ts`],mappings:`AAAA,OAAO,YAAY;AAEnB,OAAO,MAAM,qBAAqB;CAAC;CAAO;CAAO;AAAM;AACvD,OAAO,MAAM,eAAe,CAAC,MAAM,KAAK;AACxC,OAAO,MAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,CAAC,CACnC,QAAO,OAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`c4e03b67a8467b62eedab8255a87090dbcdba4b4`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return C6=function(){return o},o}C6();var w6=(C6().s[0]++,[`all`,`any`,`none`]);C6().s[1]++;var YWe=(C6().s[2]++,Object.keys(Fu.filter_operator.values).filter(e=>(C6().f[0]++,C6().s[3]++,w6.indexOf(e)<0)));function T6(){var e=`/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx`,t=`23f646748e4094cbb94c13fb75ac4c9dc0c41bd5`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx`,statementMap:{0:{start:{line:8,column:1},end:{line:8,column:24}},1:{start:{line:8,column:15},end:{line:8,column:24}},2:{start:{line:9,column:1},end:{line:9,column:24}},3:{start:{line:9,column:15},end:{line:9,column:2 Line truncated
rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`,boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:`relative`,height:`100%`,margin:`0 3px`},pointer:{position:`absolute`,left:t.a*100+`%`},slider:{width:`4px`,borderRadius:`1px`,height:`8px`,boxShadow:`0 0 2px rgba(0, 0, 0, .6)`,background:`#fff`,marginTop:`1px`,transform:`translateX(-2px)`}},vertical:{gradient:{background:`linear-gradient(to bottom, rgba(`+t.r+`,`+t.g+`,`+t.b+`, 0) 0%,
rgba(`+t.r+`,`+t.g+`,`+t.b+`, 1) 100%)`},pointer:{left:0,top:t.a*100+`%`}},overwrite:Dqe({},this.props.style)},{vertical:this.props.direction===`vertical`,overwrite:!0});return m.createElement(`div`,{style:n.alpha},m.createElement(`div`,{style:n.checkboard},m.createElement(w8,{renderers:this.props.renderers})),m.createElement(`div`,{style:n.gradient}),m.createElement(`div`,{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement(`div`,{style:n.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:n.slider}))))}}]),t}(m.PureComponent||m.Component),Mqe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Nqe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pqe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Fqe(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function Iqe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Lqe=1,Rqe=38,zqe=[Rqe,40],Bqe=function(e){return zqe.indexOf(e)>-1},Vqe=function(e){return Number(String(e).replace(/%/g,``))},Hqe=1,E8=function(e){Iqe(t,e);function t(e){Pqe(this,t);var n=Fqe(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=Vqe(e.target.value);if(!isNaN(t)&&Bqe(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===Rqe?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener(`mousemove`,n.handleDrag),window.addEventListener(`mouseup`,n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener(`mousemove`,n.handleDrag),window.removeEventListener(`mouseup`,n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId=`rc-editable-input-`+Hqe++,n}return Mqe(t,[{key:`componentDidUpdate`,value:function(e,t){this.props.value!==this.state.value&&(e.value!==this.props.value||t.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:`componentWillUnmount`,value:function(){this.unbindEventListeners()}},{key:`getValueObjectWithLabel`,value:function(e){return Nqe({},this.props.label,e)}},{key:`getArrowOffset`,value:function(){return this.props.arrowOffset||Lqe}},{key:`setUpdatedValue`,value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:`render`,value:function(){var e=this,t=(0,S8.default)({default:{wrap:{position:`relative`}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:`ew-resize`}}},{"user-override":!0},this.props);return m.createElement(`div`,{style:t.wrap},m.createElement(`input`,{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:`false`}),this.props.label&&!this.props.hideLabel?m.createElement(`label`,{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(m.PureComponent||m.Component),Uqe=function(e,t,n,r){var i=r.clientWidth,a=r.clientHeight,o=typeof e.pageX==`number`?e.pageX:e.touches[0].pageX,s=typeof e.pageY==`number`?e.pageY:e.touches[0].pageY,c=o-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if(t===`vertical`){var u=void 0;if(u=l<0?359:l>a?0:360*(-(l*100/a)+100)/100,n.h!== Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hue-vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),m.createElement(`div`,{style:r.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:r.slider}))))}}]),t}(m.PureComponent||m.Component);function Jqe(){this.__data__=[],this.size=0}function O8(e,t){return e===t||e!==e&&t!==t}function k8(e,t){for(var n=e.length;n--;)if(O8(e[n][0],t))return n;return-1}var Yqe=Array.prototype.splice;function Xqe(e){var t=this.__data__,n=k8(t,e);return n<0?!1:(n==t.length-1?t.pop():Yqe.call(t,n,1),--this.size,!0)}function Zqe(e){var t=this.__data__,n=k8(t,e);return n<0?void 0:t[n][1]}function Qqe(e){return k8(this.__data__,e)>-1}function $qe(e,t){var n=this.__data__,r=k8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function A8(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}A8.prototype.clear=Jqe,A8.prototype.delete=Xqe,A8.prototype.get=Zqe,A8.prototype.has=Qqe,A8.prototype.set=$qe;function eJe(){this.__data__=new A8,this.size=0}function tJe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function nJe(e){return this.__data__.get(e)}function rJe(e){return this.__data__.has(e)}var iJe=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis,aJe=typeof self==`object`&&self&&self.Object===Object&&self,j8=iJe||aJe||Function(`return this`)(),M8=j8.Symbol,oJe=Object.prototype,sJe=oJe.hasOwnProperty,cJe=oJe.toString,N8=M8?M8.toStringTag:void 0;function lJe(e){var t=sJe.call(e,N8),n=e[N8];try{e[N8]=void 0;var r=!0}catch{}var i=cJe.call(e);return r&&(t?e[N8]=n:delete e[N8]),i}var uJe=Object.prototype.toString;function dJe(e){return uJe.call(e)}var fJe=`[object Null]`,pJe=`[object Undefined]`,mJe=M8?M8.toStringTag:void 0;function P8(e){return e==null?e===void 0?pJe:fJe:mJe&&mJe in Object(e)?lJe(e):dJe(e)}function F8(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var hJe=`[object AsyncFunction]`,gJe=`[object Function]`,_Je=`[object GeneratorFunction]`,vJe=`[object Proxy]`;function I8(e){if(!F8(e))return!1;var t=P8(e);return t==gJe||t==_Je||t==hJe||t==vJe}var L8=j8[`__core-js_shared__`],yJe=function(){var e=/[^.]+$/.exec(L8&&L8.keys&&L8.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function bJe(e){return!!yJe&&yJe in e}var xJe=Function.prototype.toString;function R8(e){if(e!=null){try{return xJe.call(e)}catch{}try{return e+``}catch{}}return``}var SJe=/[\\^$.*+?()[\]{}|]/g,CJe=/^\[object .+?Constructor\]$/,wJe=Function.prototype,TJe=Object.prototype,EJe=wJe.toString,DJe=TJe.hasOwnProperty,OJe=RegExp(`^`+EJe.call(DJe).replace(SJe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function kJe(e){return!F8(e)||bJe(e)?!1:(I8(e)?OJe:CJe).test(R8(e))}function AJe(e,t){return e?.[t]}function z8(e,t){var n=AJe(e,t);return kJe(n)?n:void 0}var B8=z8(j8,`Map`),V8=z8(Object,`create`);function jJe(){this.__data__=V8?V8(null):{},this.size=0}function MJe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var NJe=`__lodash_hash_undefined__`,PJe=Object.prototype.hasOwnProperty;function FJe(e){var t=this.__data__;if(V8){var n=t[e];return n===NJe?void 0:n}return PJe.call(t,e)?t[e]:void 0}var IJe=Object.prototype.hasOwnProperty;function LJe(e){var t=this.__data__;return V8?t[e]!==void 0:IJe.call(t,e)}var RJe=`__lodash_hash_undefined__`;function zJe(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=V8&&t===void 0?RJe:t,this}function H8(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}H8.prototype.clear=jJe,H8.prototype.delete=MJe,H8.prototype.get=FJe,H8.prototype.has=LJe,H8.prototype.set=zJe;function BJe(){this.size=0,this.__data__={hash:new H8,map:new(B8||A8),string:new H8}}function VJe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function U8(e,t){var n=e.__data__;return VJe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function HJe(e){var t=U8(this,e).delete(e);return this.size-=+!!t,t}function UJe(e){return U8(this,e).get(e)}function WJe(e){return U8(this,e).has(e)}function GJe(e,t){var n=U8(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function W8(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}W8.prototype.clear=BJe,W8.prototype.delete=HJe,W8.prototype.get=UJe,W8.prototype.has=WJe,W8.prototype.set=GJe;var KJe=200;function qJe(e,t){var n=this.__data__;if(n instanceof A8){var r=n.__data__;if(!B8||r.length<KJe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new W8(r)}return n.set(e,t),this.size=n.size,this}function G8(e){var t=this.__data__=new A8(e);this.size=t.size}G8.prototype.clear=eJe,G8.prototype.delete=tJe,G8.prototype.get=nJe,G8.prototype.has=rJe,G8.prototype.set=qJe;var K8=function(){try{var e=z8(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function q8(e,t,n){t==`__proto__`&&K8?K8(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function J8(e,t,n){(n!==void 0 Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:`50%`,cursor:`hand`,transform:`translate(-2px, -2px)`}},custom:{color:n,white:r,black:i,pointer:a,circle:o}},{custom:!!this.props.style});return m.createElement(`div`,{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},m.createElement(`style`,null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.saturation-black {
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),m.createElement(`div`,{style:s.white,className:`saturation-white`},m.createElement(`div`,{style:s.black,className:`saturation-black`}),m.createElement(`div`,{style:s.pointer},this.props.pointer?m.createElement(this.props.pointer,this.props):m.createElement(`div`,{style:s.circle}))))}}]),t}(m.PureComponent||m.Component);function $Xe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var eZe=oYe(Object.keys,Object),tZe=Object.prototype.hasOwnProperty;function nZe(e){if(!X8(e))return eZe(e);var t=[];for(var n in Object(e))tZe.call(e,n)&&n!=`constructor`&&t.push(n);return t}function h5(e){return t5(e)?uXe(e):nZe(e)}function rZe(e,t){return e&&YJe(e,t,h5)}function iZe(e,t){return function(n,r){if(n==null)return n;if(!t5(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var aZe=iZe(rZe);function oZe(e){return typeof e==`function`?e:l5}function sZe(e,t){return($8(e)?$Xe:aZe)(e,oZe(t))}function g5(e){"@babel/helpers - typeof";return g5=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},g5(e)}var cZe=/^\s+/,lZe=/\s+$/;function _5(e,t){if(e||=``,t||={},e instanceof _5)return e;if(!(this instanceof _5))return new _5(e,t);var n=uZe(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}_5.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255,i=t<=.03928?t/12.92:((t+.055)/1.055)**2.4,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4;return .2126*i+.7152*a+.0722*o},setAlpha:function(e){return this._a=NZe(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=mZe(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=mZe(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=fZe(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=fZe(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return gZe(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _Ze(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`)`:`rgba(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:Math.round(y5(this._r,255)*100)+`%`,g:Math.round(y5(this._g,255)*100)+`%`,b:Math.round(y5(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+Math.round(y5(this._r,255)*100)+`%, `+Math.round(y5(this._g,255)*100)+`%, `+Math.round(y5(this._b,255)*100)+`%)`:`rgba(`+Math.round(y5(this._r,255)*100)+`%, `+Math.round(y5(this._g,255)*100)+`%, `+Math.round(y5(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:jZe[gZe(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+vZe(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=_5(e);n=`#`+vZe(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return _5(this.t Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${t}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<link href="https://unpkg.com/maplibre-gl@${d2e}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script type="module">
import {Map} from 'https://unpkg.com/maplibre-gl@${d2e}/dist/maplibre-gl.mjs';
const map = new Map({
container: 'map',
style: ${e},
});
map.addControl(new maplibregl.NavigationControl());
<\/script>
</body>
</html>
`),r=(N9().s[9]++,new Blob([n],{type:`text/html;charset=utf-8`})),i=(N9().s[10]++,this.exportName());N9().s[11]++,(0,l2e.saveAs)(r,i+`.html`)}async saveStyle(){N9().f[3]++;let e=(N9().s[12]++,this.tokenizedStyle());if(N9().s[13]++,f2e)N9().b[2][1]++;else{N9().b[2][0]++;let t=(N9().s[14]++,new Blob([e],{type:`application/json;charset=utf-8`})),n=(N9().s[15]++,this.exportName());N9().s[16]++,(0,l2e.saveAs)(t,n+`.json`),N9().s[17]++;return}let t=(N9().s[18]++,this.props.fileHandle);if(N9().s[19]++,t==null){if(N9().b[3][0]++,N9().s[20]++,t=await this.createFileHandle(),N9().s[21]++,this.props.onSetFileHandle(t),N9().s[22]++,t==null){N9().b[4][0]++,N9().s[23]++;return}N9().b[4][1]++}else N9().b[3][1]++;let n=(N9().s[24]++,await t.createWritable());N9().s[25]++,await n.write(e),N9().s[26]++,await n.close(),N9().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){N9().f[4]++;let e=(N9().s[28]++,this.tokenizedStyle()),t=(N9().s[29]++,await this.createFileHandle());if(N9().s[30]++,this.props.onSetFileHandle(t),N9().s[31]++,t==null){N9().b[5][0]++,N9().s[32]++;return}N9().b[5][1]++;let n=(N9().s[33]++,await t.createWritable());N9().s[34]++,await n.write(e),N9().s[35]++,await n.close(),N9().s[36]++,this.props.onOpenToggle()}async createFileHandle(){N9().f[5]++;let e=(N9().s[37]++,{types:[{description:`json`,accept:{"application/json":[`.json`]}}],suggestedName:this.exportName()}),t=(N9().s[38]++,await window.showSaveFilePicker(e));return N9().s[39]++,this.props.onSetFileHandle(t),N9().s[40]++,t}changeMetadataProperty(e,t){N9().f[6]++;let n=(N9().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});N9().s[42]++,this.props.onStyleChanged(n)}render(){N9().f[7]++;let e=(N9().s[43]++,this.props.t),t=(N9().s[44]++,r2e(e));return N9().s[45]++,(0,R.jsx)(w$,{"data-wd-key":`modal:export`,isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e(`Save Style`),className:`maputnik-export-modal`,children:(0,R.jsxs)(`section`,{className:`maputnik-modal-section`,children:[(0,R.jsx)(`h1`,{children:e(`Save Style`)}),(0,R.jsx)(`p`,{children:e(`Save the JSON style to your computer.`)}),(0,R.jsxs)(`div`,{children:[(0,R.jsx)(w9,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(N9().b[6][0]++,this.props.mapStyle.metadata||(N9().b[6][1]++,{}))[`maputnik:openmaptiles_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:openmaptiles_access_token`)}),(0,R.jsx)(w9,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(N9().b[7][0]++,this.props.mapStyle.metadata||(N9().b[7][1]++,{}))[`maputnik:thunderforest_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:thunderforest_access_token`)}),(0,R.jsx)(w9,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(N9().b[8][0]++,this.props.mapStyle.metadata||(N9().b[8][1]++,{}))[`maputnik:stadia_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:stadia_access_token`)}),(0,R.jsx)(w9,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(N9().b[9][0]++,this.props.mapStyle.metadata||(N9().b[9][1]++,{}))[`maputnik:locationiq_access_token`],onChange:this.changeMetadataProperty.bind(this,`maputnik:locationiq_access_token`)})]}),(0,R.jsxs)(`div`,{className:`maputnik-modal-export-buttons`,children:[(0,R.jsxs)(DQ,{onClick:this.saveStyle.bind(this),children:[(0,R.jsx)(mD,{}),e(`Save`)]}),(N9().b[10][0]++,f2e&&(N9().b[10][1]++,(0,R.jsxs)(DQ,{onClick:this.saveStyleAs.bind(this),children:[(0,R.jsx)(mD,{}),e(`Save as`)]}))),(0,R.jsxs)(DQ,{onClick:this.createHtml.bind(this),children:[(0,R.jsx)(Lge,{}),e(`Create HTML`)]})]})]})})}},m2e=(N9().s[46]++,Mn()(p2e));function P9(){var e=`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`,t=`615893f63b00bf2bdf08d7f34d665947b5e31694`,n=globalThis,r=`__coverage__`,i={path:`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`,statementMap:{0:{start:{line:4,column:33},end:{line:9,column:1}},1:{start:{line:5,column:1},end:{line:8,column:4}}},fnMap:{0:{name:`(anonymous_0)`,decl:{start:{line:4,column:33},end:{line:4,column:34}},loc:{start:{line:4,column:44},end:{line:9,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,names:[],sources:[`/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx`],mappings:`AAAA,SAAS,yBAAsD;AAC/D,SAAS,gBAAgB;;AASzB,OAAO,MAAM,qBAAuD,UAAU;CAC5E,OACE,qBAAC,UAAD;EAAU,OAAO,MAAM;YACrB,qBAAC,mBAAD,EAAmB,GAAI,MAAQ;CACvB;AAEd`},_coverageSchema:`1a1c01bbd47fc00a2c39e90264f33305004495a9`,hash:`615893f63b00bf2bdf08d7f34d665947b5e31694`},a=n[r]||(n[r]={});(!a[e]||a[e].hash!==t)&&(a[e]=i);var o=a[e];return P9=function(){return o},o}P9(),P9().s[0]++;var h2e=e=>(P9().f[0]++,P9().s[1]++,(0,R.jsx)(X7,{label:e.label,children:(0,R.jsx)(G7,{...e})}));function F9(){var e=`/home/runner/work/maputnik/maputniLine truncated
//# sourceMappingURL=index-BI4GaJyd.js.map
@@ -1 +1 @@
{"version":3,"mappings":"ysDAWA,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,EAAarC,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,EAAaG,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":"qgDAWA,IAAI,EAAqB,OAAO,IAAI,4BAA4B,EAC9D,EAAoB,OAAO,IAAI,cAAc,EAC7C,EAAsB,OAAO,IAAI,gBAAgB,EACjD,EAAyB,OAAO,IAAI,mBAAmB,EACvD,EAAsB,OAAO,IAAI,gBAAgB,EACjD,EAAsB,OAAO,IAAI,gBAAgB,EACjD,EAAqB,OAAO,IAAI,eAAe,EAC/C,EAAyB,OAAO,IAAI,mBAAmB,EACvD,EAAsB,OAAO,IAAI,gBAAgB,EACjD,EAAkB,OAAO,IAAI,YAAY,EACzC,EAAkB,OAAO,IAAI,YAAY,EACzC,EAAsB,OAAO,IAAI,gBAAgB,EACjD,EAAwB,OAAO,SACjC,SAAS,EAAc,EAAe,CAKpC,OAJ2C,OAAO,GAApB,WAAjB,EAA2D,MACxE,EACG,GAAyB,EAAc,IACxC,EAAc,cACM,OAAO,GAAtB,WAAsC,EAAgB,KAC/D,CACA,IAAI,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,CAAC,CACV,EACA,mBAAoB,UAAY,CAAC,EACjC,oBAAqB,UAAY,CAAC,EAClC,gBAAiB,UAAY,CAAC,CAChC,EACA,EAAS,OAAO,OAChB,EAAc,CAAC,EACjB,SAAS,EAAU,EAAO,EAAS,EAAS,CAC1C,KAAK,MAAQ,EACb,KAAK,QAAU,EACf,KAAK,KAAO,EACZ,KAAK,QAAU,GAAW,CAC5B,CACA,EAAU,UAAU,iBAAmB,CAAC,EACxC,EAAU,UAAU,SAAW,SAAU,EAAc,EAAU,CAC/D,GACe,OAAO,GAApB,UACe,OAAO,GAAtB,YACQ,GAAR,KAEA,MAAM,MACJ,wGACF,EACF,KAAK,QAAQ,gBAAgB,KAAM,EAAc,EAAU,UAAU,CACvE,EACA,EAAU,UAAU,YAAc,SAAU,EAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAM,EAAU,aAAa,CAC/D,EACA,SAAS,GAAiB,CAAC,CAC3B,EAAe,UAAY,EAAU,UACrC,SAAS,EAAc,EAAO,EAAS,EAAS,CAC9C,KAAK,MAAQ,EACb,KAAK,QAAU,EACf,KAAK,KAAO,EACZ,KAAK,QAAU,GAAW,CAC5B,CACA,IAAI,EAA0B,EAAc,UAAY,IAAI,EAC5D,EAAuB,YAAc,EACrC,EAAO,EAAwB,EAAU,SAAS,EAClD,EAAuB,qBAAuB,CAAC,EAC/C,IAAI,EAAc,MAAM,QACxB,SAAS,GAAO,CAAC,CACjB,IAAI,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAK,EAC9D,EAAiB,OAAO,UAAU,eACpC,SAAS,EAAa,EAAM,EAAK,EAAO,CACtC,IAAI,EAAU,EAAM,IACpB,MAAO,CACL,SAAU,EACJ,OACD,MACL,IAAgB,IAAX,IAAK,GAA0B,KAAV,EACnB,OACT,CACF,CACA,SAAS,EAAmB,EAAY,EAAQ,CAC9C,OAAO,EAAa,EAAW,KAAM,EAAQ,EAAW,KAAK,CAC/D,CACA,SAAS,EAAe,EAAQ,CAC9B,OACe,OAAO,GAApB,YACS,GACT,EAAO,WAAa,CAExB,CACA,SAAS,EAAO,EAAK,CACnB,IAAI,EAAgB,CAAE,IAAK,KAAM,IAAK,IAAK,EAC3C,MACE,IACA,EAAI,QAAQ,QAAS,SAAU,EAAO,CACpC,OAAO,EAAc,EACvB,CAAC,CAEL,CACA,IAAI,GAA6B,OACjC,SAAS,GAAc,EAAS,EAAO,CACrC,OAAoB,OAAO,GAApB,UAAwC,GAAmB,EAAQ,KAAhB,KACtD,EAAO,GAAK,EAAQ,GAAG,EACvB,EAAM,SAAS,EAAE,CACvB,CACA,SAAS,EAAgB,EAAU,CACjC,OAAQ,EAAS,OAAjB,CACE,IAAK,YACH,OAAO,EAAS,MAClB,IAAK,WACH,MAAM,EAAS,OACjB,QACE,OACgB,OAAO,EAAS,QAA7B,SACG,EAAS,KAAK,EAAM,CAAI,GACtB,EAAS,OAAS,UACpB,EAAS,KACP,SAAU,EAAgB,CACV,EAAS,SAAvB,YACI,EAAS,OAAS,YACnB,EAAS,MAAQ,EACtB,EACA,SAAU,EAAO,CACD,EAAS,SAAvB,YACI,EAAS,OAAS,WAAc,EAAS,OAAS,EACxD,CACF,GACJ,EAAS,OAfX,CAiBE,IAAK,YACH,OAAO,EAAS,MAClB,IAAK,WACH,MAAM,EAAS,MACnB,CACJ,CACA,MAAM,CACR,CACA,SAAS,GAAa,EAAU,EAAO,EAAe,EAAW,EAAU,CACzE,IAAI,EAAO,OAAO,GACE,IAAhB,aAAsC,IAAd,aAAoB,EAAW,MAC3D,IAAI,EAAiB,CAAC,EACtB,GAAa,IAAT,KAAmB,EAAiB,CAAC,OAEvC,OAAQ,EAAR,CACE,IAAK,SACL,IAAK,SACL,IAAK,SACH,EAAiB,CAAC,EAClB,MACF,IAAK,SACH,OAAQ,EAAS,SAAjB,CACE,KAAK,EACL,KAAK,EACH,EAAiB,CAAC,EAClB,MACF,KAAK,EACH,MACG,GAAiB,EAAS,MAC3B,GACE,EAAe,EAAS,QAAQ,EAChC,EACA,EACA,EACA,CACF,CAEN,CACJ,CACF,GAAI,EACF,MACG,GAAW,EAAS,CAAQ,EAC5B,EACQ,IAAP,GAAmB,IAAM,GAAc,EAAU,CAAC,EAAI,EACxD,EAAY,CAAQ,GACd,EAAgB,GACV,GAAR,OACG,EACC,EAAe,QAAQ,GAA4B,KAAK,EAAI,KAChE,GAAa,EAAU,EAAO,EAAe,GAAI,SAAU,EAAG,CAC5D,OAAO,CACT,CAAC,GACO,GAAR,OACC,EAAe,CAAQ,IACrB,EAAW,EACV,EACA,GACW,EAAS,KAAjB,MACA,GAAY,EAAS,MAAQ,EAAS,IACnC,IACC,GAAK,EAAS,KAAK,QAClB,GACA,KACF,EAAI,KACR,CACJ,GACF,EAAM,KAAK,CAAQ,GACvB,EAEJ,EAAiB,EACjB,IAAI,EAAwB,IAAP,GAAmB,IAAM,EAAY,IAC1D,GAAI,EAAY,CAAQ,EACtB,IAAK,IAAI,EAAI,EAAG,EAAI,EAAS,OAAQ,IACnC,EAAa,EAAS,GACnB,EAAO,EAAiB,GAAc,EAAW,CAAC,EAClD,GAAkB,GACjB,EACA,EACA,EACA,EACA,CACF,OACD,GAAM,EAAI,EAAc,CAAQ,EAAmB,OAAO,GAAtB,WACvC,IACE,EAAW,EAAE,KAAK,CAAQ,EAAG,EAAI,EACjC,EAAE,EAAY,EAAS,KAAK,GAAG,MAG/B,EAAa,EAAU,MACpB,EAAO,EAAiB,GAAc,EAAW,GAAG,EACpD,GAAkB,GACjB,EACA,EACA,EACA,EACA,CACF,OACD,GAAiB,IAAb,SAAmB,CAC1B,GAAmB,OAAO,EAAS,MAA/B,WACF,OAAO,GACL,EAAgB,CAAQ,EACxB,EACA,EACA,EACA,CACF,EAEF,KADA,GAAQ,OAAO,CAAQ,EACjB,MACJ,mDACyB,IAAtB,kBACG,qBAAuB,OAAO,KAAK,CAAQ,CAAC,CAAC,KAAK,IAAI,EAAI,IAC1D,GACJ,2EACJ,CACF,CACA,OAAO,CACT,CACA,SAAS,GAAY,EAAU,EAAM,EAAS,CAC5C,GAAY,GAAR,KAAkB,OAAO,EAC7B,IAAI,EAAS,CAAC,EACZ,EAAQ,EAIV,OAHA,GAAa,EAAU,EAAQ,GAAI,GAAI,SAAU,EAAO,CACtD,OAAO,EAAK,KAAK,EAAS,EAAO,GAAO,CAC1C,CAAC,EACM,CACT,CACA,SAAS,GAAgB,EAAS,CAChC,GAAW,EAAQ,UAAf,GAAwB,CAC1B,IAAI,EAAO,EAAQ,QACnB,EAAO,EAAK,EACZ,EAAK,KACH,SAAU,EAAc,EACZ,EAAQ,UAAd,GAAgC,EAAQ,UAAf,MAC3B,EAAS,QAAU,EAAK,EAAQ,QAAU,EAC9C,EACA,SAAU,EAAO,EACL,EAAQ,UAAd,GAAgC,EAAQ,UAAf,MAC3B,EAAS,QAAU,EAAK,EAAQ,QAAU,EAC9C,CACF,EACO,EAAQ,UAAf,KAA4B,EAAQ,QAAU,EAAK,EAAQ,QAAU,EACvE,CACA,GAAU,EAAQ,UAAd,EAAuB,OAAO,EAAQ,QAAQ,QAClD,MAAM,EAAQ,OAChB,CACA,IAAI,EACe,OAAO,aAAtB,WACI,YACA,SAAU,EAAO,CACf,GACe,OAAO,QAApB,UACe,OAAO,OAAO,YAA7B,WACA,CACA,IAAI,EAAQ,IAAI,OAAO,WAAW,QAAS,CACzC,QAAS,CAAC,EACV,WAAY,CAAC,EACb,QACe,OAAO,GAApB,UACS,GACI,OAAO,EAAM,SAA1B,SACI,OAAO,EAAM,OAAO,EACpB,OAAO,CAAK,EACX,OACT,CAAC,EACD,GAAI,CAAC,OAAO,cAAc,CAAK,EAAG,MACpC,MAAO,GACQ,OAAO,SAApB,UACe,OAAO,QAAQ,MAA9B,WACA,CACA,QAAQ,KAAK,oBAAqB,CAAK,EACvC,MACF,CACA,QAAQ,MAAM,CAAK,CACrB,EACN,GAAW,CACT,IAAK,GACL,QAAS,SAAU,EAAU,EAAa,EAAgB,CACxD,GACE,EACA,UAAY,CACV,EAAY,MAAM,KAAM,SAAS,CACnC,EACA,CACF,CACF,EACA,MAAO,SAAU,EAAU,CACzB,IAAI,EAAI,EAIR,OAHA,GAAY,EAAU,UAAY,CAChC,GACF,CAAC,EACM,CACT,EACA,QAAS,SAAU,EAAU,CAC3B,OACE,GAAY,EAALine truncated
+1
View File
@@ -0,0 +1 @@
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{font-size:100%;font:inherit;vertical-align:baseline;border:0;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf)format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf)format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;box-sizing:border-box;font-size:14px}body{overflow:hidden}*,:before,:after{box-sizing:inherit}p{color:#a4a4a4;margin-top:5px;margin-bottom:5px;font-size:12px;line-height:1.3}h1{margin-bottom:10px;font-size:20px;font-weight:700}h2{margin-bottom:10px;font-size:18px;font-weight:700}h3{margin-bottom:10px;font-size:16px;font-weight:700}h4{margin-bottom:10px;font-size:14px}input:focus,textarea:focus,[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:1px auto #8e8e8e}label:hover{color:#f0f0f0}.clearfix:after{content:"";clear:both;display:table}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;width:calc(100% - 570px);display:flex}.maputnik-map__container--error{justify-content:center;align-items:center}.maputnik-map__container__error-message{text-align:center;margin:16px}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{box-sizing:border-box;-webkit-user-select:none;user-select:none;vertical-align:top;font-size:12px;line-height:2;display:inline-block;position:relative}.maputnik-doc-popup{color:#a4a4a4;z-index:10;pointer-events:none;background-color:#222429;width:120px;padding:5px;font-size:10px;display:none;position:absolute;top:20px;left:0}.maputnik-doc-button{opacity:0;pointer-events:none;color:#fff;background:#191b20;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;flex:1 0;margin-top:10px;padding:5px;font-size:12px;line-height:1.5}.maputnik-doc-target:hover .maputnik-doc-popup{text-align:left;display:block}.maputnik-button{cursor:pointer;color:#a4a4a4;-webkit-user-select:none;user-select:none;box-sizing:border-box;background-color:#303237;border-width:0;border-radius:2px;padding:5px;font-size:12px;text-decoration:none;display:inline-block}.maputnik-button:hover{color:#f0f0f0;background-color:#4d5058}.maputnik-button:disabled{color:#303237;cursor:not-allowed;background-color:#242629}.maputnik-big-button{margin-top:10px;padding:10px;font-size:14px;display:inline-block}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{color:#191b20;background-color:#53b972}.maputnik-white-button{color:#191b20;background-color:#f0f0f0}.maputnik-icon-button,.maputnik-icon-button:hover:not(:disabled){background-color:#0000}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{flex-wrap:wrap;margin:10px;display:flex}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;vertical-align:top;width:32%;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;vertical-align:top;text-align:right;width:18%;font-size:12px}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{width:32%;margin-bottom:10px;display:inline-block}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;width:18%;display:inline-block}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;cursor:pointer;text-decoration:underline}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-state-menu__menu{z-index:999999;background:#191b20;flex-direction:column;align-content:stretch;display:flex;posLine truncated
-1
View File
@@ -1 +0,0 @@
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button{background-color:transparent}.maputnik-icon-button:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{margin:10px;display:flex;flex-wrap:wrap}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:32%;vertical-align:top;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:18%;vertical-align:top;font-size:12px;text-align:right}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{display:inline-block;width:32%;margin-bottom:10px}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;display:inline-block;width:18%}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{-webkit-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-o-flex-grow:1;flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;text-decoration:underline;cursor:pointer}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-staLine truncated
+12
View File
@@ -0,0 +1,12 @@
(function(){
/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.4.1/LICENSE.txt
*/
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));function l(e,t){this.x=e,this.y=t}l.prototype={clone(){return new l(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround(e,t){let n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),a=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:l},l.convert=function(e){if(e instanceof l)return e;if(Array.isArray(e))return new l(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new l(+e.x,+e.y);throw Error(`Expected [x, y] or {x, y} point format`)};function u(e,t,n,r){let i=3*e,a=3*(n-e)-i,o=1-i-a,s=3*t,c=3*(r-t)-s,l=1-s-c;return function(e,t=1e-6){if(e<=0)return 0;if(e>=1)return 1;let n=e;for(let r=0;r<8;r++){let r=((o*n+a)*n+i)*n-e;if(Math.abs(r)<t)return((l*n+c)*n+s)*n;let u=(3*o*n+2*a)*n+i;if(Math.abs(u)<1e-6)break;n-=r/u}let r=0,u=1;n=e;for(let s=0;s<20;s++){let s=((o*n+a)*n+i)*n;if(Math.abs(s-e)<t)break;e>s?r=n:u=n,n=(r+u)*.5}return((l*n+c)*n+s)*n}}let d;function f(){return d??=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)&&typeof createImageBitmap==`function`,d}let p;function m(){if(p==null&&(p=!1,f())){let e=new OffscreenCanvas(5,5).getContext(`2d`,{willReadFrequently:!0});if(e){for(let t=0;t<25;t++){let n=t*4;e.fillStyle=`rgb(${n},${n+1},${n+2})`,e.fillRect(t%5,Math.floor(t/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let e=0;e<100;e++)if(e%4!=3&&t[e]!==e){p=!0;break}}}return p||!1}var h=typeof Float32Array<`u`?Float32Array:Array;Math.PI/180,180/Math.PI;function g(){var e=new h(9);return h!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function _(){var e=new h(3);return h!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function v(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function y(e,t,n){var r=new h(3);return r[0]=e,r[1]=t,r[2]=n,r}function b(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],c=n[2];return e[0]=i*c-a*s,e[1]=a*o-r*c,e[2]=r*s-i*o,e}var C=v;(function(){var e=_();return function(t,n,r,i,a,o){var s,c;for(n||=3,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;s<c;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}})();function w(){var e=new h(4);return h!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function T(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=n*o,e[1]=r*o,e[2]=i*o,e[3]=a*o,e}function E(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,e[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,e[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,e[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,e}(function(){var e=w();return function(t,n,r,i,a,o){var s,c;for(n||=4,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;s<c;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],a(e,Line truncated
/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.4.1/LICENSE.txt
*/
var Kb=class{constructor(e,t){this.keyCache={},e&&this.replace(e,t)}replace(e,t){this._layerConfigs={},this._layers={},this.update(e,[],t)}update(e,t,n){for(let t of e){this._layerConfigs[t.id]=t;let e=this._layers[t.id]=Dh(t,n);e._featureFilter=la(e.filter,`layers[${t.id}].filter`,n),this.keyCache[t.id]&&delete this.keyCache[t.id]}for(let e of t)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};let r=ba(Object.values(this._layerConfigs),this.keyCache);for(let e of r){let t=e.map(e=>this._layers[e.id]),n=t[0];if(n.isHidden())continue;let r=n.source||``,i=this.familiesBySource[r];i||=this.familiesBySource[r]={};let a=n.sourceLayer||`_geojsonTileLayer`,o=i[a];o||=i[a]=[],o.push(t)}}},qb=class{constructor(e){let t={},n=[];for(let r in e){let i=e[r],a=t[r]={};for(let e in i){let t=i[+e];if(!t||t.bitmap.width===0||t.bitmap.height===0)continue;let r={x:0,y:0,w:t.bitmap.width+2,h:t.bitmap.height+2};n.push(r),a[e]={rect:r,metrics:t.metrics}}}let{w:r,h:i}=Lm(n),a=new Rl({width:r||1,height:i||1});for(let n in e){let r=e[n];for(let e in r){let i=r[+e];if(!i||i.bitmap.width===0||i.bitmap.height===0)continue;let o=t[n][e].rect;Rl.copy(i.bitmap,a,{x:0,y:0},{x:o.x+1,y:o.y+1},i.bitmap)}}this.image=a,this.positions=t}};H(`GlyphAtlas`,qb);var Jb=class{constructor(e){this.tileID=new Ph(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId,this.inFlightDependencies=[]}async parse(e,t,n,r,i){this.data=e,this.collisionBoxArray=new Gs;let a=new Qh(Object.keys(e.layers).sort()),o=new tb(this.tileID,this.promoteId);o.bucketLayerIDs=[];let s={},c={featureIndex:o,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:n,subdivisionGranularity:i},l=t.familiesBySource[this.source];for(let t in l){let r=e.layers[t];if(!r)continue;r.version===1&&he(`Vector tile source "${this.source}" layer "${t}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let i=a.encode(t),u=[];for(let e=0;e<r.length;e++){let n=r.feature(e),a=o.getId(n,t);u.push({feature:n,id:a,index:e,sourceLayerIndex:i})}for(let e of l[t]){let t=e[0];t.source!==this.source&&he(`layer.source = ${t.source} does not equal this.source = ${this.source}`),!t.isHidden(this.zoom,!0)&&(Yb(e,this.zoom,n),(s[t.id]=t.createBucket({index:o.bucketLayerIDs.length,layers:e,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:i,sourceID:this.source})).populate(u,c,this.tileID.canonical),o.bucketLayerIDs.push(e.map(e=>e.id)))}}let u=de(c.glyphDependencies,e=>Object.keys(e).map(Number));for(let e of this.inFlightDependencies)e?.abort();this.inFlightDependencies=[];let d=Promise.resolve({});if(Object.keys(u).length){let e=new AbortController;this.inFlightDependencies.push(e),d=r.sendAsync({type:`GG`,data:{stacks:u,source:this.source,tileID:this.tileID,type:`glyphs`}},e)}let f=Object.keys(c.iconDependencies),p=Promise.resolve({});if(f.length){let e=new AbortController;this.inFlightDependencies.push(e),p=r.sendAsync({type:`GI`,data:{icons:f,source:this.source,tileID:this.tileID,type:`icons`}},e)}let m=Object.keys(c.patternDependencies),h=Promise.resolve({});if(m.length){let e=new AbortController;this.inFlightDependencies.push(e),h=r.sendAsync({type:`GI`,data:{icons:m,source:this.source,tileID:this.tileID,type:`patterns`}},e)}let g=c.dashDependencies,_=Promise.resolve({});if(Object.keys(g).length){let e=new AbortController;this.inFlightDependencies.push(e),_=r.sendAsync({type:`GDA`,data:{dashes:g}},e)}let[v,y,b,x]=await Promise.all([d,p,h,_]),S=new qb(v),C=new zm(y,b);for(let e in s){let t=s[e];t instanceof fh?(Yb(t.layers,this.zoom,n),Rb({bucket:t,glyphMap:v,glyphPositions:S.positions,imageMap:y,imagePositions:C.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical,subdivisionGranularity:c.subdivisionGranularity})):t.hasDependencies&&(t instanceof dd||t instanceof Zd||t instanceof Vp)&&(Yb(t.layers,this.zoom,n),t.addFeatures(c,this.tileID.canonical,C.patternPositions,x))}return{buckets:Object.values(s).filter(e=>!e.isEmpty()),featureIndex:o,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:S.image,imageAtlas:C,dashPositions:x,glyphMap:this.returnDependencies?v:null,iconMap:this.returnDependencies?y:null,glyphPositions:this.returnDependencies?S.positions:null}}};function Yb(e,t,n){let r=new U(t);for(let t of e)t.recalculate(r,n)}var Xb=class{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(e,t){this.loading[e]=t}finishLoading(e){delete this.loading[e]}abort(e){let t=this.Line truncated
//# sourceMappingURL=maplibre-gl-worker-BtpYDTzw.js.map
@@ -0,0 +1 @@
{"version":3,"file":"maplibre-gl-worker-BtpYDTzw.js","names":["se","H","U","W","G","K","q","J","Y","X","Z","Q","$","p","I","z","s","a","C","ee","x","b","V","R","d","n","M","j","c","m","re","g","w","te","D","F","e","T","r","P","O","A","i","S","y","ne","h","t","f","u","k","_","L","l","o","E","N"],"sources":["../../node_modules/maplibre-gl/dist/maplibre-gl-shared.mjs","../../node_modules/maplibre-gl/dist/maplibre-gl-worker.mjs"],"sourcesContent":["/**\n* MapLibre GL JS\n* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.4.1/LICENSE.txt\n*/\nvar e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));function l(e,t){this.x=e,this.y=t}l.prototype={clone(){return new l(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround(e,t){let n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),a=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:l},l.convert=function(e){if(e instanceof l)return e;if(Array.isArray(e))return new l(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new l(+e.x,+e.y);throw Error(`Expected [x, y] or {x, y} point format`)};function u(e,t,n,r){let i=3*e,a=3*(n-e)-i,o=1-i-a,s=3*t,c=3*(r-t)-s,l=1-s-c;return function(e,t=1e-6){if(e<=0)return 0;if(e>=1)return 1;let n=e;for(let r=0;r<8;r++){let r=((o*n+a)*n+i)*n-e;if(Math.abs(r)<t)return((l*n+c)*n+s)*n;let u=(3*o*n+2*a)*n+i;if(Math.abs(u)<1e-6)break;n-=r/u}let r=0,u=1;n=e;for(let s=0;s<20;s++){let s=((o*n+a)*n+i)*n;if(Math.abs(s-e)<t)break;e>s?r=n:u=n,n=(r+u)*.5}return((l*n+c)*n+s)*n}}let d;function f(){return d??=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)&&typeof createImageBitmap==`function`,d}let p;function m(){if(p==null&&(p=!1,f())){let e=new OffscreenCanvas(5,5).getContext(`2d`,{willReadFrequently:!0});if(e){for(let t=0;t<25;t++){let n=t*4;e.fillStyle=`rgb(${n},${n+1},${n+2})`,e.fillRect(t%5,Math.floor(t/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let e=0;e<100;e++)if(e%4!=3&&t[e]!==e){p=!0;break}}}return p||!1}var h=typeof Float32Array<`u`?Float32Array:Array;Math.PI/180,180/Math.PI;function g(){var e=new h(9);return h!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function _(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*(l*a-o*c)+n*(-l*i+o*s)+r*(c*i-a*s)}function v(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function y(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,d=r*s,f=i*o,p=i*s,m=i*c,h=a*o,g=a*s,_=a*c;return e[0]=1-d-m,e[3]=u-_,e[6]=f+g,e[1]=u+_,e[4]=1-l-m,e[7]=p-h,e[2]=f-g,e[5]=p+h,e[8]=1-l-d,e}function b(){var e=new h(16);return h!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function x(e){var t=new h(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],Line truncated
+2
View File
@@ -0,0 +1,2 @@
var e=`בסיס`,t=`כיוון`,n=`ביטול`,r=`מרכז`,i=`סגירה`,a=`קיבוץ`,o=`הקטנה`,s=`הערות`,c=`דיבאג`,l=`ברירת המחדל`,u=`מחיקה`,d=`שכפול`,f=`קידוד`,p=`הגדלה`,m=`סינון`,h=`פונקציה`,g=`GeoJSON`,_=`עזרה`,v=`הסתרה`,y=`תמונה`,b=`בדיקה`,x=`מפתח`,S=`שכבה`,C=`שכבות`,w=`קישורים`,T=`טוען`,E=`מפה`,D=`שם`,O=`פתיחה`,k=`אפשרויות`,A=`שייך ל`,j=`זווית`,M=`הטלה`,N=`שמור`,P=`חיפוש`,F=`קיצורי דרך`,I=`הצגה`,L=`מקור`,R=`מקורות`,z=`עצירות`,B=`סוג`,V=`ערך`,H=`וידאו`,U=`תצוגה`,W=`זום`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`<0>פתיחה ב-OSM</0>. פתיחה של התצוגה הנוכחית ב- openstreetmap.org`,"Achromatopsia filter":`Achromatopsia filter`,"Active Sources":`מקורות פעילים`,"Add a new source to your style. You can only choose the source type and id at creation time!":`הוספת מקור לסטייל, ביכולתכם לעשות זאת רק בזמן מסויים`,"Add filter":`הוספת סינון`,"Add Layer":`הוספת שכבה`,"Add New Source":`הוספת מקור חדש`,"Add one of the publicly available sources to your style.":`הוספת אחד המקורות הציבוריים הזמינים לסטייל שלך.`,"Add Source":`הוספת מקור`,"Add stop":`הוספת עצירה`,"Add value":`הוספת ערך`,"Add Variable":`הוסף משתנה`,"any filter matches":`אחד הסינוים מתאימים`,"API key for Stadia Maps.":`API key for Stadia Maps`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`בחירת מקור ציבורי`,"Choose the default Maputnik renderer for this style.":`בחירת צייר ברירת המחדל של מפוטניק עבור הסטייל הזה`,"Click to close the editor":`לחץ לסגירת העורך`,Close:i,"Close modal":`סגירת חלונית`,"Close popup":`סגירת החלון`,Cluster:a,"Code Editor":`עורך קוד`,Collapse:o,"Color accessibility":`נגישות צבעים`,"Comment...":`הערה...`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות`,"Convert property into a elevation function":`המרה לפונקציית גובה`,"Convert property into a zoom function":`המרה לפונקציית זום`,"Convert property to data function":`המרה לפונקציית מידע`,"Convert to expression":`המחרה לביטוי`,"Coord bottom left":`מיקום שמאלי תחתון`,"Coord bottom right":`מיקום ימני תחתון`,"Coord top left":`מיקום שמאלי עליון`,"Coord top right":`מיקום ימני עליון`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain`,"Create HTML":`צור HTML`,"Data Sources":`מקורות מידע`,"Data Sources modal":`חלונית מקורות`,"Data value":`ערך מידע`,Debug:c,"Debug modal":`חלונית דיבאג`,"Decrease the pitch by 10 degrees.":`הורדה של 10 מעלות מהזווית`,"Decrease the rotation by 15 degrees.":`הורדת 15 מעלות לסיבוב`,"Decrease the zoom level by 1.":`הורדה של הזום ב-1`,"Decrease the zoom level by 2.":`הורדה של הזום ב-2`,Default:l,Delete:u,"Delete expression":`מחיקת ביטוי`,"Delete filter block":`מחיקת גוש מסנן`,"Deuteranopia filter":`Deuteranopia filter`,Duplicate:d,Encoding:f,"Enter URL...":`הכנסו כתובת`,"every filter matches":`כל הסינונים מתאימים`,Expand:p,"Export modal":`חלונית ייצוא`,Filter:m,"Focus map":`פיקוס המפה`,Function:h,"Gallery Styles":`גלריית סטיילים`,"General layout properties":`תכונות פריסה כלליות`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON)`,"GeoJSON (URL)":`GeoJSON (URL)`,"GeoJSON URL":`כתובת GeoJSON`,"Global State":`מצב גלובלי`,"Global State Variables":`משתני מצב גלובלי`,"Glyphs URL":`כתובת סמלילים`,Help:_,Hide:v,"Icon layout properties":`תכונות פריסה של סמליל`,"Icon paint properties":`תכונות ציור של סמליל`,"If the Map is in focused you can use the following shortcuts":`אם המפה נמצאת בפוקוס תוכלו להשתמש בקיצורי הדרך`,Image:y,"Image URL":`כתובת תמונה`,"Increase the pitch by 10 degrees.":`הוספה של 10 מעלות לזיווית`,"Increase the rotation by 15 degrees.":`הוספת 15 מעלות לסיבוב`,"Increase the zoom level by 1.":`העלאה של הזום ב-1`,"Increase the zoom level by 2.":`העלאה של הזום ב-2`,"Input a data property to base styles off of.":`הכניסו מידע עליו יש לבסס את הס Line truncated
//# sourceMappingURL=translation-B5e_8Wc1.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-B5e_8Wc1.js","names":[],"sources":["../../src/locales/he/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"<0>פתיחה ב-OSM</0>. פתיחה של התצוגה הנוכחית ב- openstreetmap.org\",\n \"Achromatopsia filter\": \"Achromatopsia filter\",\n \"Active Sources\": \"מקורות פעילים\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"הוספת מקור לסטייל, ביכולתכם לעשות זאת רק בזמן מסויים\",\n \"Add filter\": \"הוספת סינון\",\n \"Add Layer\": \"הוספת שכבה\",\n \"Add New Source\": \"הוספת מקור חדש\",\n \"Add one of the publicly available sources to your style.\": \"הוספת אחד המקורות הציבוריים הזמינים לסטייל שלך.\",\n \"Add Source\": \"הוספת מקור\",\n \"Add stop\": \"הוספת עצירה\",\n \"Add value\": \"הוספת ערך\",\n \"Add Variable\": \"הוסף משתנה\",\n \"any filter matches\": \"אחד הסינוים מתאימים\",\n \"API key for Stadia Maps.\": \"API key for Stadia Maps\",\n \"Base\": \"בסיס\",\n \"Bearing\": \"כיוון\",\n \"Cancel\": \"ביטול\",\n \"Center\": \"מרכז\",\n \"Choose Public Source\": \"בחירת מקור ציבורי\",\n \"Choose the default Maputnik renderer for this style.\": \"בחירת צייר ברירת המחדל של מפוטניק עבור הסטייל הזה\",\n \"Click to close the editor\": \"לחץ לסגירת העורך\",\n \"Close\": \"סגירה\",\n \"Close modal\": \"סגירת חלונית\",\n \"Close popup\": \"סגירת החלון\",\n \"Cluster\": \"קיבוץ\",\n \"Code Editor\": \"עורך קוד\",\n \"Collapse\": \"הקטנה\",\n \"Color accessibility\": \"נגישות צבעים\",\n \"Comment...\": \"הערה...\",\n \"Comments\": \"הערות\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות\",\n \"Convert property into a elevation function\": \"המרה לפונקציית גובה\",\n \"Convert property into a zoom function\": \"המרה לפונקציית זום\",\n \"Convert property to data function\": \"המרה לפונקציית מידע\",\n \"Convert to expression\": \"המחרה לביטוי\",\n \"Coord bottom left\": \"מיקום שמאלי תחתון\",\n \"Coord bottom right\": \"מיקום ימני תחתון\",\n \"Coord top left\": \"מיקום שמאלי עליון\",\n \"Coord top right\": \"מיקום ימני עליון\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\",\n \"Create HTML\": \"צור HTML\",\n \"Data Sources\": \"מקורות מידע\",\n \"Data Sources modal\": \"חלונית מקורות\",\n \"Data value\": \"ערך מידע\",\n \"Debug\": \"דיבאג\",\n \"Debug modal\": \"חלונית דיבאג\",\n \"Decrease the pitch by 10 degrees.\": \"הורדה של 10 מעלות מהזווית\",\n \"Decrease the rotation by 15 degrees.\": \"הורדת 15 מעלות לסיבוב\",\n \"Decrease the zoom level by 1.\": \"הורדה של הזום ב-1\",\n \"Decrease the zoom level by 2.\": \"הורדה של הזום ב-2\",\n \"Default\": \"ברירת המחדל\",\n \"Delete\": \"מחיקה\",\n \"Delete expression\": \"מחיקת ביטוי\",\n \"Delete filter block\": \"מחיקת גוש מסנן\",\n \"Deuteranopia filter\": \"Deuteranopia filter\",\n \"Duplicate\": \"שכפול\",\n \"Encoding\": \"קידוד\",\n \"Enter URL...\": \"הכנסו כתובת\",\n \"every filter matches\": \"כל הסינונים מתאימים\",\n \"Expand\": \"הגדלה\",\n \"Export modal\": \"חלונית ייצוא\",\n \"Filter\": \"סינון\",\n \"Focus map\": \"פיקוס המפה\",\n \"Function\": \"פונקציה\",\n \"Gallery Styles\": \"גלריית סטיילים\",\n \"General layout properties\": \"תכונות פריסה כלליות\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL)\",\n \"GeoJSON URL\": \"כתובת GeoJSON\",\n \"Global State\": \"מצב גלובלי\",\n \"Global State Variables\": \"משתני מצב גלובלי\",\n \"Glyphs URL\": \"כתובת סמלילים\",\n \"Help\": \"עזרה\",\n \"Hide\": \"הסתרה\",\n \"Icon layout properties\": \"תכונות פריסה של סמליל\",\n \"Icon paint properties\": \"תכונות ציור של סמליל\",\n \"If the Map is in focused you can use the following shortcuts\": \"אם המפה נמצאת בפוקוס תוכלו להשתמש בקיצורי הדרך\",\n \"Image\": \"תמונה\"Line truncated
+2
View File
@@ -0,0 +1,2 @@
var e=`Basis`,t=`Ausrichtung`,n=`Abbrechen`,r=`Mittelpunkt`,i=`Schließen`,a=`Cluster`,o=`Einklappen`,s=`Kommentare`,c=`Debug`,l=`Standard`,u=`Löschen`,d=`Duplizieren`,f=`Kodierung`,p=`Ausklappen`,m=`Filter`,h=`Funktion`,g=`GeoJSON`,_=`Hilfe`,v=`Verstecken`,y=`Bild`,b=`Untersuchen`,x=`Schlüssel`,S=`Ebene`,C=`Ebenen`,w=`Links`,T=`Lädt`,E=`Karte`,D=`Name`,O=`Öffnen`,k=`Optionen`,A=`Besitzer`,j=`Neigung`,M=`Projektion`,N=`Speichern`,P=`Suche`,F=`Shortcuts`,I=`Anzeigen`,L=`Quelle`,R=`Quellen`,z=`Stopps`,B=`Typ`,V=`Wert`,H=`Video`,U=`Ansicht`,W=`Zoom`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`<0>In OSM öffnen</0>. Öffnet die aktuelle Ansicht auf openstreetmap.org`,"Achromatopsia filter":`Achromatopsie-Filter`,"Active Sources":`Aktive Quellen`,"Add a new source to your style. You can only choose the source type and id at creation time!":`Füge eine neue Quelle zu deinem Stil hinzu. Du kannst den Quellentyp und die ID nur bei der Erstellung auswählen!`,"Add filter":`Filter hinzufügen`,"Add Layer":`Ebene hinzufügen`,"Add New Source":`Neue Quelle hinzufügen`,"Add one of the publicly available sources to your style.":`Füge eine der öffentlich verfügbaren Quellen zu deinem Stil hinzu.`,"Add Source":`Quelle hinzufügen`,"Add stop":`Stopp hinzufügen`,"Add value":`Wert hinzufügen`,"Add Variable":`Variable hinzufügen`,"any filter matches":`irgendein Filter passt`,"API key for Stadia Maps.":`API-Schlüssel für Stadia Maps.`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`Öffentliche Quelle auswählen`,"Choose the default Maputnik renderer for this style.":`Wähle den Standard-Renderer für diesen Stil aus.`,"Click to close the editor":`Klicken Sie hier, um den Editor zu schließen`,Close:i,"Close modal":`Modale Fenster schließen`,"Close popup":`Popup schließen`,Cluster:a,"Code Editor":`Code-Editor`,Collapse:o,"Color accessibility":`Farbzugänglichkeit`,"Comment...":`Dein Kommentar...`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`Kommentare zur aktuellen Ebene. Das ist nicht standardmäßig und nicht in der Spezifikation.`,"Convert property into a elevation function":`Eigenschaft in eine Höhenfunktion umwandeln`,"Convert property into a zoom function":`Eigenschaft in eine Zoom-Funktion umwandeln`,"Convert property to data function":`Eigenschaft in eine Datenfunktion umwandeln`,"Convert to expression":`In Ausdruck umwandeln`,"Coord bottom left":`Koordinate unten links`,"Coord bottom right":`Koordinate unten rechts`,"Coord top left":`Koordinate oben links`,"Coord top right":`Koordinate oben rechts`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`Die CORS-Politik erlaubt es nicht, Ressourcen über http von https zu laden, benutze eine <1>https://</1>-Domain`,"Create HTML":`HTML erstellen`,"Data Sources":`Datenquellen`,"Data Sources modal":`Modale Datenquellen`,"Data value":`Datenwert`,Debug:c,"Debug modal":`Debug (modale Fenster)`,"Decrease the pitch by 10 degrees.":`Neigung um 10 Grad verringern.`,"Decrease the rotation by 15 degrees.":`Rotation um 15 Grad verringern.`,"Decrease the zoom level by 1.":`Zoom-Stufe um 1 verringern.`,"Decrease the zoom level by 2.":`Zoom-Stufe um 2 verringern.`,Default:l,Delete:u,"Delete expression":`Ausdruck löschen`,"Delete filter block":`Filterblock löschen`,"Deuteranopia filter":`Deuteranopie-Filter`,Duplicate:d,Encoding:f,"Enter URL...":`URL eingeben...`,"every filter matches":`alle Filter passen`,Expand:p,"Export modal":`Modale Fenster exportieren`,Filter:m,"Focus map":`Karte fokussieren`,Function:h,"Gallery Styles":`Galerie-Stile`,"General layout properties":`Allgemeine Layouteigenschaften`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON)`,"GeoJSON (URL)":`GeoJSON (URL)`,"GeoJSON URL":`GeoJSON URL`,"Global State":`Globaler Zustand`,"Global State Variables":`Globale Zustandsvariablen`,"Glyphs URL":`Glyphen-URL`,Help:_,Hide:v,"Icon layout properties":`Icon-Layouteigenschaften`,"Icon paint properties":`Icon-Darstellungseigenschaften`,"If the Map is in focused you can use the following shortcuts":`Wenn die Karte fokussiert ist, kannst du die folgenden Shortcuts benutzen`,Image:y,"Image URL":`Bild-URL`,"Increase the pitch by 10 degrees.":`Neigung um 10 Grad erhöhen.`,"Increase the rotation by 15 degrees.":`Rotation um 15 Grad erhöhen.`,"Increase the zoom level by 1.":`Zoom-Stufe um 1 erhöhen.`,"Increase the zoom level by 2.":`Zoom-Stufe um 2 erhöhen.`,"Input a data property to base styles off of.":`Gib eine Dateneigenschaft ein, um Stile darauf zu basieren.`,"Input value":`Eingabewert`,Inspect:b,"JSON Editor":`JSON-Editor`,Key:x,Layer:S,"Layer editor":`Ebenen-Editor`,"Layer ID already exists":`Layer-ID existiert bereits`,Layers:C,"Layers list":`Ebenenliste`,"Layout properties":`Layouteigenschaften`,"Learn More":`Mehr erfahren`,"Light anchor":`Lichtanker`,"Light color":`Lichtfarbe`,"Light intensity":`Lichtintensität`,"Light position":`Li Line truncated
//# sourceMappingURL=translation-B96CtsyU.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-B96CtsyU.js","names":[],"sources":["../../src/locales/de/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"<0>In OSM öffnen</0>. Öffnet die aktuelle Ansicht auf openstreetmap.org\",\n \"Achromatopsia filter\": \"Achromatopsie-Filter\",\n \"Active Sources\": \"Aktive Quellen\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"Füge eine neue Quelle zu deinem Stil hinzu. Du kannst den Quellentyp und die ID nur bei der Erstellung auswählen!\",\n \"Add filter\": \"Filter hinzufügen\",\n \"Add Layer\": \"Ebene hinzufügen\",\n \"Add New Source\": \"Neue Quelle hinzufügen\",\n \"Add one of the publicly available sources to your style.\": \"Füge eine der öffentlich verfügbaren Quellen zu deinem Stil hinzu.\",\n \"Add Source\": \"Quelle hinzufügen\",\n \"Add stop\": \"Stopp hinzufügen\",\n \"Add value\": \"Wert hinzufügen\",\n \"Add Variable\": \"Variable hinzufügen\",\n \"any filter matches\": \"irgendein Filter passt\",\n \"API key for Stadia Maps.\": \"API-Schlüssel für Stadia Maps.\",\n \"Base\": \"Basis\",\n \"Bearing\": \"Ausrichtung\",\n \"Cancel\": \"Abbrechen\",\n \"Center\": \"Mittelpunkt\",\n \"Choose Public Source\": \"Öffentliche Quelle auswählen\",\n \"Choose the default Maputnik renderer for this style.\": \"Wähle den Standard-Renderer für diesen Stil aus.\",\n \"Click to close the editor\": \"Klicken Sie hier, um den Editor zu schließen\",\n \"Close\": \"Schließen\",\n \"Close modal\": \"Modale Fenster schließen\",\n \"Close popup\": \"Popup schließen\",\n \"Cluster\": \"Cluster\",\n \"Code Editor\": \"Code-Editor\",\n \"Collapse\": \"Einklappen\",\n \"Color accessibility\": \"Farbzugänglichkeit\",\n \"Comment...\": \"Dein Kommentar...\",\n \"Comments\": \"Kommentare\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"Kommentare zur aktuellen Ebene. Das ist nicht standardmäßig und nicht in der Spezifikation.\",\n \"Convert property into a elevation function\": \"Eigenschaft in eine Höhenfunktion umwandeln\",\n \"Convert property into a zoom function\": \"Eigenschaft in eine Zoom-Funktion umwandeln\",\n \"Convert property to data function\": \"Eigenschaft in eine Datenfunktion umwandeln\",\n \"Convert to expression\": \"In Ausdruck umwandeln\",\n \"Coord bottom left\": \"Koordinate unten links\",\n \"Coord bottom right\": \"Koordinate unten rechts\",\n \"Coord top left\": \"Koordinate oben links\",\n \"Coord top right\": \"Koordinate oben rechts\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"Die CORS-Politik erlaubt es nicht, Ressourcen über http von https zu laden, benutze eine <1>https://</1>-Domain\",\n \"Create HTML\": \"HTML erstellen\",\n \"Data Sources\": \"Datenquellen\",\n \"Data Sources modal\": \"Modale Datenquellen\",\n \"Data value\": \"Datenwert\",\n \"Debug\": \"Debug\",\n \"Debug modal\": \"Debug (modale Fenster)\",\n \"Decrease the pitch by 10 degrees.\": \"Neigung um 10 Grad verringern.\",\n \"Decrease the rotation by 15 degrees.\": \"Rotation um 15 Grad verringern.\",\n \"Decrease the zoom level by 1.\": \"Zoom-Stufe um 1 verringern.\",\n \"Decrease the zoom level by 2.\": \"Zoom-Stufe um 2 verringern.\",\n \"Default\": \"Standard\",\n \"Delete\": \"Löschen\",\n \"Delete expression\": \"Ausdruck löschen\",\n \"Delete filter block\": \"Filterblock löschen\",\n \"Deuteranopia filter\": \"Deuteranopie-Filter\",\n \"Duplicate\": \"Duplizieren\",\n \"Encoding\": \"Kodierung\",\n \"Enter URL...\": \"URL eingeben...\",\n \"every filter matches\": \"alle Filter passen\",\n \"Expand\": \"Ausklappen\",\n \"Export modal\": \"Modale Fenster exportieren\",\n \"Filter\": \"Filter\",\n \"Focus map\": \"Karte fokussieren\",\n \"Function\": \"Funktion\",\n \"Gallery Styles\": \"Galerie-Stile\",\n \"General layout properties\": \"Allgemeine Layouteigenschaften\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL)\",\n \"GeoJSON URL\": \"GeoJSON URL\",\n \"Global State\": \"Globaler Zustand\",\n \"Global State Variables\": \"Globale Zustandsvariablen\",\n \"Glyphs URL\": \"Glyphen-URL\",\n \"Help\": \"Hilfe\",\n \"Hide\": \"Verstecken\",\n \"Icon layout properties\": \"Icon-Layouteigenschaften\",\n \"Icon paint properties\": \"Icon-Darstellungseigenschaften\",\n \"If the Map is in focused you can use the following shortcuts\": \"Wenn die Karte fokussiert ist, kannst du die folgenden Shortcuts benutzen\",\n \"Image\": \"Bild\",\n \"Image URL\": \"Bild-URL\",\n \"Increase the pitch by 10 degrees.\": \"Neigung um 10 Grad erhöhen.\",\n \"Increase the rotation by 15 degrees.\": \"Rotation um 15 Grad erhöhen.\",\n \"Increase the zoom level by 1.\": \"Zoom-Stufe um 1 erhöhen.\",\n \"Increase Line truncated
-2
View File
@@ -1,2 +0,0 @@
const e={"Drag and drop a style JSON file here or click to browse":"Drag and drop a style JSON file here or click to browse"};export{e as default};
//# sourceMappingURL=translation-BGNHuhFm.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-BGNHuhFm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
var e=`Base`,t=`Direzione`,n=`Annulla`,r=`Centro`,i=`Chiudi`,a=`Cluster`,o=`Coprimi`,s=`Commenti`,c=`Debug`,l=`Predefinito`,u=`Elimina`,d=`Duplica`,f=`Codifica`,p=`Espandi`,m=`Filtro`,h=`Funzione`,g=`GeoJSON`,_=`Aiuto`,v=`Nascondi`,y=`Immagine`,b=`Esamina`,x=`Chiave`,S=`Livello`,C=`Livelli`,w=`Collegamenti`,T=`Caricamento`,E=`Mappa`,D=`Nome`,O=`Apri`,k=`Opzioni`,A=`Proprietario`,j=`Inclinazione`,M=`Proiezione`,N=`Salva`,P=`Cerca`,F=`Scorciatoie`,I=`Mostra`,L=`Sorgente`,R=`Sorgenti`,z=`Fermate`,B=`Tipo`,V=`Valore`,H=`Video`,U=`Vista`,W=`Zoom`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`<0>Apri in OSM</0>. Apre la vista corrente su openstreetmap.org`,"Achromatopsia filter":`Filtro acromatopsia`,"Active Sources":`Sorgenti attive`,"Add a new source to your style. You can only choose the source type and id at creation time!":`Aggiungi una nuova sorgente al tuo stile. Puoi scegliere il tipo di sorgente e l'ID solo al momento della creazione!`,"Add filter":`Aggiungi filtro`,"Add Layer":`Aggiungi Livello`,"Add New Source":`Aggiungi nuova sorgente`,"Add one of the publicly available sources to your style.":`Aggiungi una delle sorgente pubbliche disponibili al tuo stile.`,"Add Source":`Aggiungi sorgente`,"Add stop":`Aggiungi fermata`,"Add value":`Aggiungi valore`,"Add Variable":`Aggiungi variabile`,"any filter matches":`qualsiasi filtro corrisponde`,"API key for Stadia Maps.":`Chiave API per Stadia Maps.`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`Scegli una sorgente pubblica`,"Choose the default Maputnik renderer for this style.":`Scegli il renderer predefinito di Maputnik per questo stile.`,"Click to close the editor":`Clicca per chiudere l'editor`,Close:i,"Close modal":`Chiudi finestra modale`,"Close popup":`Chiudi popup`,Cluster:a,"Code Editor":`Editor codice`,Collapse:o,"Color accessibility":`Accessibilità colori`,"Comment...":`Il tuo commento...`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`Commenti per il livello attuale. Questo non è standard e non è nella specifica.`,"Convert property into a elevation function":`Converti proprietà in una funzione di elevazione`,"Convert property into a zoom function":`Converti proprietà in una funzione di zoom`,"Convert property to data function":`Converti proprietà in una funzione dati`,"Convert to expression":`Converti in espressione`,"Coord bottom left":`Coordinate in basso a sinistra`,"Coord bottom right":`Coordinate in basso a destra`,"Coord top left":`Coordinate in alto a sinistra`,"Coord top right":`Coordinate in alto a destra`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`La politica CORS non permette di caricare risorse tramite http da https, utilizza un dominio <1>https://</1>.`,"Create HTML":`Crea HTML`,"Data Sources":`Fonti dati`,"Data Sources modal":`Finestra modale sorgente dati`,"Data value":`Valore dei dati`,Debug:c,"Debug modal":`Finestra modale di debug`,"Decrease the pitch by 10 degrees.":`Aumenta la rotazione di 10 gradi.`,"Decrease the rotation by 15 degrees.":`Aumenta la rotazione di 15 gradi.`,"Decrease the zoom level by 1.":`Riduci il livello di zoom di 1.`,"Decrease the zoom level by 2.":`Riduci il livello di zoom di 1..`,Default:l,Delete:u,"Delete expression":`Elimina espressione`,"Delete filter block":`Elimina blocco filtro`,"Deuteranopia filter":`Filtro deuteranopia`,Duplicate:d,Encoding:f,"Enter URL...":`Inserisci URL...`,"every filter matches":`tutti i filtri corrispondono`,Expand:p,"Export modal":`Esporta finestra modale`,Filter:m,"Focus map":`Metti a fuoco la mappa`,Function:h,"Gallery Styles":`Galleria degli stili`,"General layout properties":`Proprietà generali del layout`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON)`,"GeoJSON (URL)":`GeoJSON (URL)`,"GeoJSON URL":`GeoJSON URL`,"Global State":`Stato globale`,"Global State Variables":`Variabili di stato globale`,"Glyphs URL":`URL Glyphs`,Help:_,Hide:v,"Icon layout properties":`Proprietà di layout dell'icona`,"Icon paint properties":`Proprietà di pittura dell'icona`,"If the Map is in focused you can use the following shortcuts":`Se la mappa è attiva, puoi utilizzare le seguenti scorciatoie:`,Image:y,"Image URL":`Indirizzo immagine`,"Increase the pitch by 10 degrees.":`Incrementa la rotazione di 10 gradi`,"Increase the rotation by 15 degrees.":`Incrementa la rotazione di 15 gradi.`,"Increase the zoom level by 1.":`Aumenta il livello di zoom di 1.`,"Increase the zoom level by 2.":`Aumenta il livello di zoom di 2.`,"Input a data property to base styles off of.":`Inserisci una proprietà dati su cui basare gli stili.`,"Input value":`Valore di input`,Inspect:b,"JSON Editor":`Editor JSON`,Key:x,Layer:S,"Layer editor":`Editor livelli`,"Layer ID already exists":`L'ID del layer esiste già`,Layers:C,"Layers list":`Elenco livelli`,"Layout properties":`Proprietà di layout`,"Learn More":`Scopri di più`,"Light anchor":`Ancora della luce`,"Light color":`Col Line truncated
//# sourceMappingURL=translation-BUQ0J4_v.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-BUQ0J4_v.js","names":[],"sources":["../../src/locales/it/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"<0>Apri in OSM</0>. Apre la vista corrente su openstreetmap.org\",\n \"Achromatopsia filter\": \"Filtro acromatopsia\",\n \"Active Sources\": \"Sorgenti attive\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"Aggiungi una nuova sorgente al tuo stile. Puoi scegliere il tipo di sorgente e l'ID solo al momento della creazione!\",\n \"Add filter\": \"Aggiungi filtro\",\n \"Add Layer\": \"Aggiungi Livello\",\n \"Add New Source\": \"Aggiungi nuova sorgente\",\n \"Add one of the publicly available sources to your style.\": \"Aggiungi una delle sorgente pubbliche disponibili al tuo stile.\",\n \"Add Source\": \"Aggiungi sorgente\",\n \"Add stop\": \"Aggiungi fermata\",\n \"Add value\": \"Aggiungi valore\",\n \"Add Variable\": \"Aggiungi variabile\",\n \"any filter matches\": \"qualsiasi filtro corrisponde\",\n \"API key for Stadia Maps.\": \"Chiave API per Stadia Maps.\",\n \"Base\": \"Base\",\n \"Bearing\": \"Direzione\",\n \"Cancel\": \"Annulla\",\n \"Center\": \"Centro\",\n \"Choose Public Source\": \"Scegli una sorgente pubblica\",\n \"Choose the default Maputnik renderer for this style.\": \"Scegli il renderer predefinito di Maputnik per questo stile.\",\n \"Click to close the editor\": \"Clicca per chiudere l'editor\",\n \"Close\": \"Chiudi\",\n \"Close modal\": \"Chiudi finestra modale\",\n \"Close popup\": \"Chiudi popup\",\n \"Cluster\": \"Cluster\",\n \"Code Editor\": \"Editor codice\",\n \"Collapse\": \"Coprimi\",\n \"Color accessibility\": \"Accessibilità colori\",\n \"Comment...\": \"Il tuo commento...\",\n \"Comments\": \"Commenti\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"Commenti per il livello attuale. Questo non è standard e non è nella specifica.\",\n \"Convert property into a elevation function\": \"Converti proprietà in una funzione di elevazione\",\n \"Convert property into a zoom function\": \"Converti proprietà in una funzione di zoom\",\n \"Convert property to data function\": \"Converti proprietà in una funzione dati\",\n \"Convert to expression\": \"Converti in espressione\",\n \"Coord bottom left\": \"Coordinate in basso a sinistra\",\n \"Coord bottom right\": \"Coordinate in basso a destra\",\n \"Coord top left\": \"Coordinate in alto a sinistra\",\n \"Coord top right\": \"Coordinate in alto a destra\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"La politica CORS non permette di caricare risorse tramite http da https, utilizza un dominio <1>https://</1>.\",\n \"Create HTML\": \"Crea HTML\",\n \"Data Sources\": \"Fonti dati\",\n \"Data Sources modal\": \"Finestra modale sorgente dati\",\n \"Data value\": \"Valore dei dati\",\n \"Debug\": \"Debug\",\n \"Debug modal\": \"Finestra modale di debug\",\n \"Decrease the pitch by 10 degrees.\": \"Aumenta la rotazione di 10 gradi.\",\n \"Decrease the rotation by 15 degrees.\": \"Aumenta la rotazione di 15 gradi.\",\n \"Decrease the zoom level by 1.\": \"Riduci il livello di zoom di 1.\",\n \"Decrease the zoom level by 2.\": \"Riduci il livello di zoom di 1..\",\n \"Default\": \"Predefinito\",\n \"Delete\": \"Elimina\",\n \"Delete expression\": \"Elimina espressione\",\n \"Delete filter block\": \"Elimina blocco filtro\",\n \"Deuteranopia filter\": \"Filtro deuteranopia\",\n \"Duplicate\": \"Duplica\",\n \"Encoding\": \"Codifica\",\n \"Enter URL...\": \"Inserisci URL...\",\n \"every filter matches\": \"tutti i filtri corrispondono\",\n \"Expand\": \"Espandi\",\n \"Export modal\": \"Esporta finestra modale\",\n \"Filter\": \"Filtro\",\n \"Focus map\": \"Metti a fuoco la mappa\",\n \"Function\": \"Funzione\",\n \"Gallery Styles\": \"Galleria degli stili\",\n \"General layout properties\": \"Proprietà generali del layout\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL)\",\n \"GeoJSON URL\": \"GeoJSON URL\",\n \"Global State\": \"Stato globale\",\n \"Global State Variables\": \"Variabili di stato globale\",\n \"Glyphs URL\": \"URL Glyphs\",\n \"Help\": \"Aiuto\",\n \"Hide\": \"Nascondi\",\n \"Icon layout properties\": \"Proprietà di layout dell'icona\",\n \"Icon paint properties\": \"Proprietà di pittura dell'icona\",\n \"If the Map is in focused you can use the following shortcuts\": \"Se la mappa è attiva, puoi utilizzare le seguenti scorciatoie:\",\n \"Image\": \"Immagine\",\n \"Image URL\": \"Indirizzo immagine\",\n \"Increase the pitch by 10 degrees.\": \"Incrementa la rotazione di 10 gradi\",\n \"Increase the rotation by 15 degrees.\": \"Incrementa la rotazione di 15 gradi.\",\n \"Increase the zoom level by 1.\": \"Aumenta il livellLine truncated
+2
View File
@@ -0,0 +1,2 @@
var e=`基础`,t=`方位`,n=`取消`,r=`中心`,i=`关闭`,a=`聚合`,o=`折叠`,s=`注释`,c=`调试`,l=`默认`,u=`删除`,d=`复制`,f=`编码`,p=`展开`,m=`过滤器`,h=`函数`,g=`GeoJSON`,_=`帮助`,v=`隐藏`,y=`图像`,b=`检查`,x=`键`,S=`图层`,C=`图层`,w=`链接`,T=`正在加载`,E=`地图`,D=`名称`,O=`打开`,k=`选项`,A=`所有者`,j=`俯仰角`,M=`投影`,N=`保存`,P=`搜索`,F=`快捷键`,I=`显示`,L=`源`,R=`源列表`,z=`停靠点`,B=`类型`,V=`值`,H=`视频`,U=`视图`,W=`缩放`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`在 openstreetmap.org 打开当前视图`,"Achromatopsia filter":`全色盲滤镜`,"Active Sources":`激活的源`,"Add a new source to your style. You can only choose the source type and id at creation time!":`向您的样式添加新源。在创建时,您只能选择源类型和ID!`,"Add filter":`添加过滤器`,"Add Layer":`添加图层`,"Add New Source":`添加新源`,"Add one of the publicly available sources to your style.":`将公开可用的源之一添加到您的样式中。`,"Add Source":`添加源`,"Add stop":`添加停靠点`,"Add value":`添加值`,"Add Variable":`添加变量`,"any filter matches":`任何过滤器匹配`,"API key for Stadia Maps.":`Stadia Maps 的 API 密钥`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`选择公共源`,"Choose the default Maputnik renderer for this style.":`为这种样式选择默认的Maputnik渲染器。`,"Click to close the editor":`点击关闭编辑器`,Close:i,"Close modal":`关闭模态框`,"Close popup":`关闭弹出窗口`,Cluster:a,"Code Editor":`代码编辑器`,Collapse:o,"Color accessibility":`颜色可访问性`,"Comment...":`写注释...`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`当前图层的注释。注意:这不是标准功能,可能与其他库不兼容。`,"Convert property into a elevation function":`将属性转换为高程函数`,"Convert property into a zoom function":`将属性转换为缩放函数`,"Convert property to data function":`将属性转换为数据函数`,"Convert to expression":`转换为表达式`,"Coord bottom left":`左下角坐标`,"Coord bottom right":`右下角坐标`,"Coord top left":`左上角坐标`,"Coord top right":`右上角坐标`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`CORS 策略不允许从 https 访问通过 http 提供的资源,请使用 <1>https://</1> 域名。`,"Create HTML":`创建HTML`,"Data Sources":`数据源`,"Data Sources modal":`数据源模态框`,"Data value":`数据值`,Debug:c,"Debug modal":`调试模态框`,"Decrease the pitch by 10 degrees.":`将俯仰角减少10度。`,"Decrease the rotation by 15 degrees.":`将旋转角度减少15度。`,"Decrease the zoom level by 1.":`将缩放级别减少1。`,"Decrease the zoom level by 2.":`将缩放级别减少2。`,Default:l,Delete:u,"Delete expression":`删除表达式`,"Delete filter block":`删除过滤器块`,"Deuteranopia filter":`绿色盲滤镜`,Duplicate:d,Encoding:f,"Enter URL...":`输入URL...`,"every filter matches":`每个过滤器都匹配`,Expand:p,"Export modal":`导出模态框`,Filter:m,"Focus map":`聚焦地图`,Function:h,"Gallery Styles":`画廊样式`,"General layout properties":`常规布局属性`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON格式)`,"GeoJSON (URL)":`GeoJSON (URL格式)`,"GeoJSON URL":`GeoJSON URL`,"Global State":`全局状态`,"Global State Variables":`全局状态变量`,"Glyphs URL":`字形URL`,Help:_,Hide:v,"Icon layout properties":`图标布局属性`,"Icon paint properties":`图标绘制属性`,"If the Map is in focused you can use the following shortcuts":`如果地图处于焦点状态,您可以使用以下快捷键`,Image:y,"Image URL":`图像URL`,"Increase the pitch by 10 degrees.":`将俯仰角增加10度。`,"Increase the rotation by 15 degrees.":`将旋转角度增加15度。`,"Increase the zoom level by 1.":`将缩放级别增加1。`,"Increase the zoom level by 2.":`将缩放级别增加2。`,"Input a data property to base styles off of.":`输入一个数据属性作为样式的基础。`,"Input value":`输入值`,Inspect:b,"JSON Editor":`JSON编辑器`,Key:`键`,Layer:S,"Layer editor":`图层编辑器`,"Layer ID already exists":`图层ID已存在`,Layers:C,"Layers list":`图层列表`,"Layout properties":`布局属性`,"Learn More":`了解更多`,"Light anchor":`光源锚点`,"Light color":`光源颜色`,"Light intensity":`光源强度`,"Light position":`光源位置`,Links:w,"Load from a URL. Note that the URL must have <1>CORS enabled</1>.":`从URL加载。注意:URL必须启用 <1>CORS</1>。`,"Load from URL":`从URL加载`,Loading:T,"Loading style":`正在加载样式`,"LocationIQ Access Token":`LocationIQ 访问令牌`,Map:E,"Map view":`地图视图`,"MapTiler Access Token":`MapTiler 访问令牌`,"Maputnik on GitHub":`GitHub上的Maputnik`,"Max Zoom":`最大缩放`,"Min ZoomLine truncated
//# sourceMappingURL=translation-BrqsDh_0.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-BrqsDh_0.js","names":[],"sources":["../../src/locales/zh/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"在 openstreetmap.org 打开当前视图\",\n \"Achromatopsia filter\": \"全色盲滤镜\",\n \"Active Sources\": \"激活的源\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"向您的样式添加新源。在创建时,您只能选择源类型和ID!\",\n \"Add filter\": \"添加过滤器\",\n \"Add Layer\": \"添加图层\",\n \"Add New Source\": \"添加新源\",\n \"Add one of the publicly available sources to your style.\": \"将公开可用的源之一添加到您的样式中。\",\n \"Add Source\": \"添加源\",\n \"Add stop\": \"添加停靠点\",\n \"Add value\": \"添加值\",\n \"Add Variable\": \"添加变量\",\n \"any filter matches\": \"任何过滤器匹配\",\n \"API key for Stadia Maps.\": \"Stadia Maps 的 API 密钥\",\n \"Base\": \"基础\",\n \"Bearing\": \"方位\",\n \"Cancel\": \"取消\",\n \"Center\": \"中心\",\n \"Choose Public Source\": \"选择公共源\",\n \"Choose the default Maputnik renderer for this style.\": \"为这种样式选择默认的Maputnik渲染器。\",\n \"Click to close the editor\": \"点击关闭编辑器\",\n \"Close\": \"关闭\",\n \"Close modal\": \"关闭模态框\",\n \"Close popup\": \"关闭弹出窗口\",\n \"Cluster\": \"聚合\",\n \"Code Editor\": \"代码编辑器\",\n \"Collapse\": \"折叠\",\n \"Color accessibility\": \"颜色可访问性\",\n \"Comment...\": \"写注释...\",\n \"Comments\": \"注释\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"当前图层的注释。注意:这不是标准功能,可能与其他库不兼容。\",\n \"Convert property into a elevation function\": \"将属性转换为高程函数\",\n \"Convert property into a zoom function\": \"将属性转换为缩放函数\",\n \"Convert property to data function\": \"将属性转换为数据函数\",\n \"Convert to expression\": \"转换为表达式\",\n \"Coord bottom left\": \"左下角坐标\",\n \"Coord bottom right\": \"右下角坐标\",\n \"Coord top left\": \"左上角坐标\",\n \"Coord top right\": \"右上角坐标\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"CORS 策略不允许从 https 访问通过 http 提供的资源,请使用 <1>https://</1> 域名。\",\n \"Create HTML\": \"创建HTML\",\n \"Data Sources\": \"数据源\",\n \"Data Sources modal\": \"数据源模态框\",\n \"Data value\": \"数据值\",\n \"Debug\": \"调试\",\n \"Debug modal\": \"调试模态框\",\n \"Decrease the pitch by 10 degrees.\": \"将俯仰角减少10度。\",\n \"Decrease the rotation by 15 degrees.\": \"将旋转角度减少15度。\",\n \"Decrease the zoom level by 1.\": \"将缩放级别减少1。\",\n \"Decrease the zoom level by 2.\": \"将缩放级别减少2。\",\n \"Default\": \"默认\",\n \"Delete\": \"删除\",\n \"Delete expression\": \"删除表达式\",\n \"Delete filter block\": \"删除过滤器块\",\n \"Deuteranopia filter\": \"绿色盲滤镜\",\n \"Duplicate\": \"复制\",\n \"Encoding\": \"编码\",\n \"Enter URL...\": \"输入URL...\",\n \"every filter matches\": \"每个过滤器都匹配\",\n \"Expand\": \"展开\",\n \"Export modal\": \"导出模态框\",\n \"Filter\": \"过滤器\",\n \"Focus map\": \"聚焦地图\",\n \"Function\": \"函数\",\n \"Gallery Styles\": \"画廊样式\",\n \"General layout properties\": \"常规布局属性\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON格式)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL格式)\",\n \"GeoJSON URL\": \"GeoJSON URL\",\n \"Global State\": \"全局状态\",\n \"Global State Variables\": \"全局状态变量\",\n \"Glyphs URL\": \"字形URL\",\n \"Help\": \"帮助\",\n \"Hide\": \"隐藏\",\n \"Icon layout properties\": \"图标布局属性\",\n \"Icon paint properties\": \"图标绘制属性\",\n \"If the Map is in focused you can use the following shortcuts\": \"如果地图处于焦点状态,您可以使用以下快捷键\",\n \"Image\": \"图像\",\n \"Image URL\": \"图像URL\",\n \"Increase the pitch by 10 degrees.\": \"将俯仰角增加10度。\",\n \"Increase the rotation by 15 degrees.\": \"将旋转角度增加15度。\",\n \"Increase the zoom level by 1.\": \"将缩放级别增加1。\",\n \"Increase the zoom level by 2.\": \"将缩放级别增加2。\",\n \"Input a data property to base styles off of.\": \"输入一个数据属性作为样式的基础。\",\n \"Input value\": \"输入值\",\n \"Inspect\": \"检查\",\n \"JSON Editor\": \"JSON编辑器\",\n \"Key\": \"键\",\n \"Layer\": \"图层\",\n \"Layer editor\": \"图层编辑器\",\n \"Layer ID already exists\": \"图层ID已存在\",\n Line truncated
+2
View File
@@ -0,0 +1,2 @@
var e=`ベース`,t=`方位`,n=`キャンセル`,r=`中央`,i=`閉じる`,a=`クラスタ`,o=`畳む`,s=`コメント`,c=`デバッグ`,l=`デフォルト`,u=`削除`,d=`複製`,f=`エンコーディング`,p=`展開`,m=`フィルタ`,h=`関数`,g=`GeoJSON`,_=`ヘルプ`,v=`非表示`,y=`画像`,b=`検査`,x=`キー`,S=`レイヤー`,C=`レイヤー`,w=`リンク`,T=`を読み込み中`,E=`地図`,D=`名前`,O=`開く`,k=`設定`,A=`所有者`,j=`ピッチ`,M=`投影`,N=`保存`,P=`検索`,F=`ショートカット`,I=`表示`,L=`ソース`,R=`ソース一覧`,z=`ストップ`,B=`タイプ`,V=`値`,H=`動画`,U=`表示`,W=`ズーム`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`現在のビューを <0>openstreetmap.org で開く</0>`,"Achromatopsia filter":`全色盲フィルタ`,"Active Sources":`使用中ソース`,"Add a new source to your style. You can only choose the source type and id at creation time!":`スタイルに新規ソースを追加します。注意: 作成時にソースタイプとIDのみを選択できます。`,"Add filter":`フィルタを追加`,"Add Layer":`レイヤー追加`,"Add New Source":`新規ソースを追加`,"Add one of the publicly available sources to your style.":`公開ソースをスタイルに追加しましょう`,"Add Source":`ソースを追加`,"Add stop":`ストップを追加`,"Add value":`値を追加する`,"Add Variable":`変数を追加`,"any filter matches":`いずれかのフィルタが一致`,"API key for Stadia Maps.":`Stadia Maps の API キー`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`公開ソースから選択`,"Choose the default Maputnik renderer for this style.":`このスタイルのデフォルトの Maputnik レンダラを選択してください`,"Click to close the editor":`エディタを閉じるにはクリックしてください`,Close:i,"Close modal":`モーダルを閉じる`,"Close popup":`ポップアップを閉じる`,Cluster:a,"Code Editor":`コードエディタ`,Collapse:o,"Color accessibility":`色のアクセシビリティ`,"Comment...":`コメントを書く`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。`,"Convert property into a elevation function":`プロパティを標高関数に変換する`,"Convert property into a zoom function":`プロパティをズーム関数に変換する`,"Convert property to data function":`プロパティをデータ関数に変換する`,"Convert to expression":`フィルタ式に変換`,"Coord bottom left":`左下座標`,"Coord bottom right":`右下座標`,"Coord top left":`左上座標`,"Coord top right":`右上座標`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。`,"Create HTML":`HTMLを作成`,"Data Sources":`データソース`,"Data Sources modal":`データソースのモーダル`,"Data value":`データ値`,Debug:c,"Debug modal":`デバッグモーダル`,"Decrease the pitch by 10 degrees.":`ピッチを10度減らす`,"Decrease the rotation by 15 degrees.":`回転角度を15度減らす`,"Decrease the zoom level by 1.":`ズームレベルを1減らす`,"Decrease the zoom level by 2.":`ズームレベルを2減らす`,Default:l,Delete:u,"Delete expression":`式を削除`,"Delete filter block":`フィルタブロックを削除`,"Deuteranopia filter":`緑色盲フィルタ`,Duplicate:d,Encoding:f,"Enter URL...":`URLを入力`,"every filter matches":`全てのフィルタが一致`,Expand:p,"Export modal":`書き出しのモーダル`,Filter:m,"Focus map":`地図にフォーカス`,Function:h,"Gallery Styles":`ギャラリースタイル`,"General layout properties":`一般レイアウトプロパティ`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON)`,"GeoJSON (URL)":`GeoJSON (URL)`,"GeoJSON URL":`GeoJSON URL`,"Global State":`グローバルステート`,"Global State Variables":`グローバルステート変数`,"Glyphs URL":`フォントグリフURL`,Help:_,Hide:v,"Icon layout properties":`アイコンレイアウトプロパティ`,"Icon paint properties":`アイコンペイントプロパティ`,"If the Map is in focused you can use the following shortcuts":`地図がフォーカスされている場合、以下のショートカットを使用できます`,Image:y,"Image URL":`画像URL`,"Increase the pitch by 10 degrees.":`ピッチを10度増やす`,"Increase the rotation by 15 degrees.":`回転角度を15度増やす`,"Increase the zoom level by 1.":`ズームレベルを1増やす`,"Increase the zoom level by 2.":`ズームレベルを2増やす`,"Input a data property to base styles off of.":`スタイルの Line truncated
//# sourceMappingURL=translation-Bui61IgC.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-Bui61IgC.js","names":[],"sources":["../../src/locales/ja/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"現在のビューを <0>openstreetmap.org で開く</0>\",\n \"Achromatopsia filter\": \"全色盲フィルタ\",\n \"Active Sources\": \"使用中ソース\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"スタイルに新規ソースを追加します。注意: 作成時にソースタイプとIDのみを選択できます。\",\n \"Add filter\": \"フィルタを追加\",\n \"Add Layer\": \"レイヤー追加\",\n \"Add New Source\": \"新規ソースを追加\",\n \"Add one of the publicly available sources to your style.\": \"公開ソースをスタイルに追加しましょう\",\n \"Add Source\": \"ソースを追加\",\n \"Add stop\": \"ストップを追加\",\n \"Add value\": \"値を追加する\",\n \"Add Variable\": \"変数を追加\",\n \"any filter matches\": \"いずれかのフィルタが一致\",\n \"API key for Stadia Maps.\": \"Stadia Maps の API キー\",\n \"Base\": \"ベース\",\n \"Bearing\": \"方位\",\n \"Cancel\": \"キャンセル\",\n \"Center\": \"中央\",\n \"Choose Public Source\": \"公開ソースから選択\",\n \"Choose the default Maputnik renderer for this style.\": \"このスタイルのデフォルトの Maputnik レンダラを選択してください\",\n \"Click to close the editor\": \"エディタを閉じるにはクリックしてください\",\n \"Close\": \"閉じる\",\n \"Close modal\": \"モーダルを閉じる\",\n \"Close popup\": \"ポップアップを閉じる\",\n \"Cluster\": \"クラスタ\",\n \"Code Editor\": \"コードエディタ\",\n \"Collapse\": \"畳む\",\n \"Color accessibility\": \"色のアクセシビリティ\",\n \"Comment...\": \"コメントを書く\",\n \"Comments\": \"コメント\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。\",\n \"Convert property into a elevation function\": \"プロパティを標高関数に変換する\",\n \"Convert property into a zoom function\": \"プロパティをズーム関数に変換する\",\n \"Convert property to data function\": \"プロパティをデータ関数に変換する\",\n \"Convert to expression\": \"フィルタ式に変換\",\n \"Coord bottom left\": \"左下座標\",\n \"Coord bottom right\": \"右下座標\",\n \"Coord top left\": \"左上座標\",\n \"Coord top right\": \"右上座標\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。\",\n \"Create HTML\": \"HTMLを作成\",\n \"Data Sources\": \"データソース\",\n \"Data Sources modal\": \"データソースのモーダル\",\n \"Data value\": \"データ値\",\n \"Debug\": \"デバッグ\",\n \"Debug modal\": \"デバッグモーダル\",\n \"Decrease the pitch by 10 degrees.\": \"ピッチを10度減らす\",\n \"Decrease the rotation by 15 degrees.\": \"回転角度を15度減らす\",\n \"Decrease the zoom level by 1.\": \"ズームレベルを1減らす\",\n \"Decrease the zoom level by 2.\": \"ズームレベルを2減らす\",\n \"Default\": \"デフォルト\",\n \"Delete\": \"削除\",\n \"Delete expression\": \"式を削除\",\n \"Delete filter block\": \"フィルタブロックを削除\",\n \"Deuteranopia filter\": \"緑色盲フィルタ\",\n \"Duplicate\": \"複製\",\n \"Encoding\": \"エンコーディング\",\n \"Enter URL...\": \"URLを入力\",\n \"every filter matches\": \"全てのフィルタが一致\",\n \"Expand\": \"展開\",\n \"Export modal\": \"書き出しのモーダル\",\n \"Filter\": \"フィルタ\",\n \"Focus map\": \"地図にフォーカス\",\n \"Function\": \"関数\",\n \"Gallery Styles\": \"ギャラリースタイル\",\n \"General layout properties\": \"一般レイアウトプロパティ\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL)\",\n \"GeoJSON URL\": \"GeoJSON URL\",\n \"Global State\": \"グローバルステート\",\n \"Global State Variables\": \"グローバルステート変数\",\n \"Glyphs URL\": \"フォントグリフURL\",\n \"Help\": \"ヘルプ\",\n \"Hide\": \"非表示\",\n \"Icon layout properties\": \"アイコンレイアウトプロパティ\",\n \"Icon paint properties\": \"アイコンペイントプロパティ\",\n \"If the Map is in focused you can use the following shortcuts\": \"地図がフォーカスされてLine truncated
-2
View File
@@ -1,2 +0,0 @@
const h="ベース",S="方位",e="キャンセル",L="中央",f="閉じる",t="クラスタ",m="畳む",o="コメント",s="デバッグ",r="デフォルト",R="削除",O="複製",a="エンコーディング",v="展開",n="フィルタ",i="GeoJSON",T="ヘルプ",b="非表示",U="画像",g="検査",C="キー",l="レイヤー",c="レイヤー",I="リンク",p="を読み込み中",M="名前",N="開く",D="設定",J="所有者",P="ピッチ",A="投影",x="保存",w="検索",u="ショートカット",k="表示",G="ソース",d="ソース一覧",y="ストップ",E="タイプ",V="値",H="動画",z="表示",Z="ズーム",B={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"現在のビューを <0>openstreetmap.org で開く</0>","Achromatopsia filter":"全色盲フィルタ","Active Sources":"使用中ソース","Add a new source to your style. You can only choose the source type and id at creation time!":"スタイルに新規ソースを追加します。注意: 作成時にソースタイプとIDのみを選択できます。","Add filter":"フィルタを追加","Add Layer":"レイヤー追加","Add New Source":"新規ソースを追加","Add one of the publicly available sources to your style.":"公開ソースをスタイルに追加しましょう","Add Source":"ソースを追加","Add stop":"ストップを追加","Add value":"値を追加する","Add Variable":"変数を追加","any filter matches":"いずれかのフィルタが一致","API key for Stadia Maps.":"Stadia Maps の API キー",Base:"ベース",Bearing:"方位",Cancel:e,Center:"中央","Choose Public Source":"公開ソースから選択","Choose the default Maputnik renderer for this style.":"このスタイルのデフォルトの Maputnik レンダラを選択してください","Click to close the editor":"エディタを閉じるにはクリックしてください",Close:"閉じる","Close modal":"モーダルを閉じる","Close popup":"ポップアップを閉じる",Cluster:t,"Code Editor":"コードエディタ",Collapse:"畳む","Color accessibility":"色のアクセシビリティ","Comment...":"コメントを書く",Comments:o,"Comments for the current layer. This is non-standard and not in the spec.":"現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。","Convert property into a elevation function":"プロパティを標高関数に変換する","Convert property into a zoom function":"プロパティをズーム関数に変換する","Convert property to data function":"プロパティをデータ関数に変換する","Convert to expression":"フィルタ式に変換","Coord bottom left":"左下座標","Coord bottom right":"右下座標","Coord top left":"左上座標","Coord top right":"右上座標","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。","Create HTML":"HTMLを作成","Data Sources":"データソース","Data Sources modal":"データソースのモーダル","Data value":"データ値",Debug:s,"Debug modal":"デバッグモーダル","Decrease the pitch by 10 degrees.":"ピッチを10度減らす","Decrease the rotation by 15 degrees.":"回転角度を15度減らす","Decrease the zoom level by 1.":"ズームレベルを1減らす","Decrease the zoom level by 2.":"ズームレベルを2減らす",Default:r,Delete:"削除","Delete expression":"式を削除","Delete filter block":"フィルタブロックを削除","Deuteranopia filter":"緑色盲フィルタ",Duplicate:"複製",Encoding:a,"Enter URL...":"URLを入力","every filter matches":"全てのフィルタが一致",Expand:"展開","Export modal":"書き出しのモーダル",Filter:n,"Focus map":"地図にフォーカス",Function:"関数","Gallery Styles":"ギャラリースタイル","General layout properties":"一般レイアウトプロパティ",GeoJSON:i,"GeoJSON (JSON)":"GeoJSON (JSON)","GeoJSON (URL)":"GeoJSON (URL)","GeoJSON URL":"GeoJSON URL","Global State":"グローバルステート","Global State Variables":"グローバルステート変数","Glyphs URL":"フォントグリフURL",Help:"ヘルプ",Hide:"非表示","Icon layout properties":"アイコンレイアウトプロパティ","Icon paint properties":"アイコンペイントプロパティ","If the Map is in focused you can use the following shortcuts":"地図がフォーカスされている場合、以下のショートカットを使用できます",Image:"画像","Image URL":"画像URL","Increase the pitch by 10 degrees.":"ピッチを10度増やす","Increase the rotation by 15 degrees.":"回転角度を15度増やす","Increase the zoom level by 1.":"ズームレベルを1増やす","Increase the zoom level by 2.":"ズームレベルLine truncated
//# sourceMappingURL=translation-By0N8Bv5.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-By0N8Bv5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const o="基础",s="方位",r="取消",a="中心",n="关闭",i="聚合",l="折叠",c="注释",p="调试",u="默认",d="删除",y="复制",S="编码",h="展开",L="过滤器",e="GeoJSON",f="帮助",m="隐藏",R="图像",O="检查",v="键",b="图层",T="图层",U="链接",t="正在加载",C="名称",g="打开",I="选项",M="所有者",N="俯仰角",D="投影",J="保存",P="搜索",A="快捷键",x="显示",w="源",k="源列表",G="停靠点",E="类型",V="值",H="视频",z="视图",Z="缩放",B={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"在 openstreetmap.org 打开当前视图","Achromatopsia filter":"全色盲滤镜","Active Sources":"激活的源","Add a new source to your style. You can only choose the source type and id at creation time!":"向您的样式添加新源。在创建时,您只能选择源类型和ID!","Add filter":"添加过滤器","Add Layer":"添加图层","Add New Source":"添加新源","Add one of the publicly available sources to your style.":"将公开可用的源之一添加到您的样式中。","Add Source":"添加源","Add stop":"添加停靠点","Add value":"添加值","Add Variable":"添加变量","any filter matches":"任何过滤器匹配","API key for Stadia Maps.":"Stadia Maps 的 API 密钥",Base:"基础",Bearing:"方位",Cancel:"取消",Center:"中心","Choose Public Source":"选择公共源","Choose the default Maputnik renderer for this style.":"为这种样式选择默认的Maputnik渲染器。","Click to close the editor":"点击关闭编辑器",Close:"关闭","Close modal":"关闭模态框","Close popup":"关闭弹出窗口",Cluster:"聚合","Code Editor":"代码编辑器",Collapse:"折叠","Color accessibility":"颜色可访问性","Comment...":"写注释...",Comments:"注释","Comments for the current layer. This is non-standard and not in the spec.":"当前图层的注释。注意:这不是标准功能,可能与其他库不兼容。","Convert property into a elevation function":"将属性转换为高程函数","Convert property into a zoom function":"将属性转换为缩放函数","Convert property to data function":"将属性转换为数据函数","Convert to expression":"转换为表达式","Coord bottom left":"左下角坐标","Coord bottom right":"右下角坐标","Coord top left":"左上角坐标","Coord top right":"右上角坐标","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS 策略不允许从 https 访问通过 http 提供的资源,请使用 <1>https://</1> 域名。","Create HTML":"创建HTML","Data Sources":"数据源","Data Sources modal":"数据源模态框","Data value":"数据值",Debug:"调试","Debug modal":"调试模态框","Decrease the pitch by 10 degrees.":"将俯仰角减少10度。","Decrease the rotation by 15 degrees.":"将旋转角度减少15度。","Decrease the zoom level by 1.":"将缩放级别减少1。","Decrease the zoom level by 2.":"将缩放级别减少2。",Default:"默认",Delete:"删除","Delete expression":"删除表达式","Delete filter block":"删除过滤器块","Deuteranopia filter":"绿色盲滤镜",Duplicate:"复制",Encoding:"编码","Enter URL...":"输入URL...","every filter matches":"每个过滤器都匹配",Expand:"展开","Export modal":"导出模态框",Filter:"过滤器","Focus map":"聚焦地图",Function:"函数","Gallery Styles":"画廊样式","General layout properties":"常规布局属性",GeoJSON:e,"GeoJSON (JSON)":"GeoJSON (JSON格式)","GeoJSON (URL)":"GeoJSON (URL格式)","GeoJSON URL":"GeoJSON URL","Global State":"全局状态","Global State Variables":"全局状态变量","Glyphs URL":"字形URL",Help:"帮助",Hide:"隐藏","Icon layout properties":"图标布局属性","Icon paint properties":"图标绘制属性","If the Map is in focused you can use the following shortcuts":"如果地图处于焦点状态,您可以使用以下快捷键",Image:"图像","Image URL":"图像URL","Increase the pitch by 10 degrees.":"将俯仰角增加10度。","Increase the rotation by 15 degrees.":"将旋转角度增加15度。","Increase the zoom level by 1.":"将缩放级别增加1。","Increase the zoom level by 2.":"将缩放级别增加2。","Input a data property to base styles off of.":"输入一个数据属性作为样式的基础。","Input value":"输入值",Inspect:"检查","JSON Editor":"JSON编辑器",Key:"键",Layer:"图层","Layer editor":"图层编辑器","Layer ID already exists":"图层ID已存在",Layers:"图层","Layers list":"图层列表","Layout properties":"布局属性","Learn More":"了解更多","Light anchor":"光源锚点","Light color":"光源颜色","Light intensity":"光源强度","Light position":"光源位置",Links:"链接","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"从URL加载。注意:URL必须启用 <1>CORS</1>。","Load from URL":"从URL加载",Loading:t,"Loading style":"正在加载样式","LocationIQ Access Token":"LocationIQ 访问令牌",Map:"地图","MLine truncated
//# sourceMappingURL=translation-C9ujdbWm.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-C9ujdbWm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="בסיס",t="כיוון",o="ביטול",s="מרכז",r="סגירה",a="קיבוץ",n="הקטנה",i="הערות",c="דיבאג",l="ברירת המחדל",p="מחיקה",u="שכפול",d="קידוד",y="הגדלה",h="סינון",S="GeoJSON",f="עזרה",m="הסתרה",L="תמונה",v="בדיקה",T="מפתח",O="שכבה",R="שכבות",b="קישורים",g="טוען",E="שם",M="פתיחה",C="אפשרויות",N="שייך ל",U="זווית",I="הטלה",J="שמור",P="חיפוש",D="קיצורי דרך",A="הצגה",k="מקור",x="מקורות",w="עצירות",z="סוג",Z="ערך",G="וידאו",V="תצוגה",H="זום",Q={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"<0>פתיחה ב-OSM</0>. פתיחה של התצוגה הנוכחית ב- openstreetmap.org","Achromatopsia filter":"Achromatopsia filter","Active Sources":"מקורות פעילים","Add a new source to your style. You can only choose the source type and id at creation time!":"הוספת מקור לסטייל, ביכולתכם לעשות זאת רק בזמן מסויים","Add filter":"הוספת סינון","Add Layer":"הוספת שכבה","Add New Source":"הוספת מקור חדש","Add one of the publicly available sources to your style.":"הוספת אחד המקורות הציבוריים הזמינים לסטייל שלך.","Add Source":"הוספת מקור","Add stop":"הוספת עצירה","Add value":"הוספת ערך","Add Variable":"הוסף משתנה","any filter matches":"אחד הסינוים מתאימים","API key for Stadia Maps.":"API key for Stadia Maps",Base:e,Bearing:t,Cancel:o,Center:s,"Choose Public Source":"בחירת מקור ציבורי","Choose the default Maputnik renderer for this style.":"בחירת צייר ברירת המחדל של מפוטניק עבור הסטייל הזה","Click to close the editor":"לחץ לסגירת העורך",Close:r,"Close modal":"סגירת חלונית","Close popup":"סגירת החלון",Cluster:a,"Code Editor":"עורך קוד",Collapse:n,"Color accessibility":"נגישות צבעים","Comment...":"הערה...",Comments:i,"Comments for the current layer. This is non-standard and not in the spec.":"הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות","Convert property into a elevation function":"המרה לפונקציית גובה","Convert property into a zoom function":"המרה לפונקציית זום","Convert property to data function":"המרה לפונקציית מידע","Convert to expression":"המחרה לביטוי","Coord bottom left":"מיקום שמאלי תחתון","Coord bottom right":"מיקום ימני תחתון","Coord top left":"מיקום שמאלי עליון","Coord top right":"מיקום ימני עליון","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain","Create HTML":"צור HTML","Data Sources":"מקורות מידע","Data Sources modal":"חלונית מקורות","Data value":"ערך מידע",Debug:c,"Debug modal":"חלונית דיבאג","Decrease the pitch by 10 degrees.":"הורדה של 10 מעלות מהזווית","Decrease the rotation by 15 degrees.":"הורדת 15 מעלות לסיבוב","Decrease the zoom level by 1.":"הורדה של הזום ב-1","Decrease the zoom level by 2.":"הורדה של הזום ב-2",Default:l,Delete:p,"Delete expression":"מחיקת ביטוי","Delete filter block":"מחיקת גוש מסנן","Deuteranopia filter":"Deuteranopia filter",Duplicate:u,Encoding:d,"Enter URL...":"הכנסו כתובת","every filter matches":"כל הסינונים מתאימים",Expand:y,"Export modal":"חלונית ייצוא",Filter:h,"Focus map":"פיקוס המפה",Function:"פונקציה","Gallery Styles":"גלריית סטיילים","General layout properties":"תכונות פריסה כלליות",GeoJSON:S,"GeoJSON (JSON)":"GeoJSON (JSON)","GeoJSON (URL)":"GeoJSON (URL)","GeoJSON URL":"כתובת GeoJSON","Global State":"מצב גלובלי","Global State Variables":"משתני מצב גלובלי","Glyphs URL":"כתובת סמלילים",Help:f,Hide:m,"Icon layout properties":"תכונות פריסה של סמליל","Icon paint properties":"תכונות ציור של סמליל","If the Map is in focused you can use the following shortcuts":"אם המפה נמצאת בפוקוס תוכלו להשתמש בקיצורי הדרך",Image:L,"Image URL":"כתובת תמונה","Increase the pitch by 10 degrees.":"הוספה של 10 מעלות לזיווית","Increase the rotation by 15 degrees.":"הוספת 15 מעלות לסיבוב","Increase the zoom level by 1.":"העלאה של הזום ב-1","Increase the zoom level by 2.":"העלאה של הזום ב-2","Input a data property to base styles off of.":"הכניסו מידע עליו יש לבסס את הסטייל","InpLine truncated
//# sourceMappingURL=translation-CZCLjgpE.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-CZCLjgpE.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="Temel",J="Yön",a="İptal",i="Merkez",t="Kapat",r="Küme",l="Daralt",n="Yorumlar",o="Hata Ayıklama",s="Varsayılan",E="Sil",y="Kopyala",d="Kodlama",c="Genişlet",k="Filtre",p="GeoJSON",m="Yardım",u="Gizle",S="Görsel",h="İncele",f="Anahtar",b="Katman",L="Katmanlar",v="Bağlantılar",R="Yükleniyor",x="Ad",Y="Aç",g="Seçenekler",z="Sahip",D="Eğim",O="Projeksiyon",T="Kaydet",V="Ara",M="Kısayollar",U="Göster",A="Kaynak",K="Kaynaklar",C="Duraklar",w="Tür",I="Değer",N="Video",G="Görünüm",P="Yakınlaştırma",B={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"<0>OSM'de aç</0>. Mevcut görünümü openstreetmap.org üzerinde açar","Achromatopsia filter":"Akromatopsi filtresi","Active Sources":"Aktif Kaynaklar","Add a new source to your style. You can only choose the source type and id at creation time!":"Stilinize yeni bir kaynak ekleyin. Kaynak türünü ve kimliğini yalnızca oluşturma sırasında seçebilirsiniz!","Add filter":"Filtre ekle","Add Layer":"Katman Ekle","Add New Source":"Yeni Kaynak Ekle","Add one of the publicly available sources to your style.":"Stilinize herkese açık kaynaklardan birini ekleyin.","Add Source":"Kaynak Ekle","Add stop":"Durak ekle","Add value":"Değer ekle","Add Variable":"Değişken Ekle","any filter matches":"herhangi bir filtre eşleşirse","API key for Stadia Maps.":"Stadia Maps için API anahtarı.",Base:e,Bearing:"Yön",Cancel:a,Center:i,"Choose Public Source":"Herkese Açık Kaynak Seç","Choose the default Maputnik renderer for this style.":"Bu stil için varsayılan Maputnik işleyicisini seçin.","Click to close the editor":"Düzenleyiciyi kapatmak için tıklayın",Close:t,"Close modal":"Modalı kapat","Close popup":"Açılır pencereyi kapat",Cluster:r,"Code Editor":"Kod Düzenleyici",Collapse:l,"Color accessibility":"Renk erişilebilirliği","Comment...":"Yorum...",Comments:n,"Comments for the current layer. This is non-standard and not in the spec.":"Mevcut katman için yorumlar. Bu standart dışıdır ve spesifikasyonda yoktur.","Convert property into a elevation function":"Özelliği bir yükseklik fonksiyonuna dönüştür","Convert property into a zoom function":"Özelliği bir yakınlaştırma fonksiyonuna dönüştür","Convert property to data function":"Özelliği veri fonksiyonuna dönüştür","Convert to expression":"İfadeye dönüştür","Coord bottom left":"Koordinat sol alt","Coord bottom right":"Koordinat sağ alt","Coord top left":"Koordinat sol üst","Coord top right":"Koordinat sağ üst","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS politikası, https üzerinden http ile sunulan kaynakların alınmasına izin vermez; <1>https://</1> alan adı kullanın","Create HTML":"HTML Oluştur","Data Sources":"Veri Kaynakları","Data Sources modal":"Veri Kaynakları modalı","Data value":"Veri değeri",Debug:o,"Debug modal":"Hata ayıklama modalı","Decrease the pitch by 10 degrees.":"Eğimi 10 derece azalt.","Decrease the rotation by 15 degrees.":"Dönüşü 15 derece azalt.","Decrease the zoom level by 1.":"Yakınlaştırma seviyesini 1 azalt.","Decrease the zoom level by 2.":"Yakınlaştırma seviyesini 2 azalt.",Default:s,Delete:"Sil","Delete expression":"İfadeyi sil","Delete filter block":"Filtre bloğunu sil","Deuteranopia filter":"Döteranopi filtresi","Drag and drop a style JSON file here or click to browse":"Bir stil JSON dosyasını buraya sürükleyip bırakın veya göz atmak için tıklayın",Duplicate:y,Encoding:d,"Enter URL...":"URL girin...","every filter matches":"tüm filtreler eşleşirse",Expand:c,"Export modal":"Dışa aktarma modalı",Filter:k,"Focus map":"Haritaya odaklan",Function:"Fonksiyon","Gallery Styles":"Galeri Stilleri","General layout properties":"Genel yerleşim özellikleri",GeoJSON:p,"GeoJSON (JSON)":"GeoJSON (JSON)","GeoJSON (URL)":"GeoJSON (URL)","GeoJSON URL":"GeoJSON URL","Global State":"Genel Durum","Global State Variables":"Genel Durum Değişkenleri","Glyphs URL":"Glif URL'si",Help:m,Hide:u,"Icon layout properties":"Simge yerleşim özellikleri","Icon paint properties":"Simge boyama özellikleri","If the Map is in focused you can use the following shortcuts":"Harita odaktaysa aşağıdaki kısayolları kullanabilirsiniz",Image:S,"Image URL":"Görsel URL'si","Increase the pitch by 10 degrees.":"Eğimi 10 derece artır.","Increase the rotation by 15 degrees.":"Dönüşü 15 derece artır.","Increase the zoom level by 1.":"Yakınlaştırma seviyesini 1 artır.","Increase the zoom level by 2.":"Yakınlaştırma seviyesini 2 artır.","Input a data property to base styles off of.":"Stilleri temel almak için bir veri özelliği girin.","Input value":"Giriş değeri",Inspect:h,"JSON Editor":"JSON Düzenleyici",Key:f,Layer:b,"Layer editor":"Katman düzenleyici","Layer ID already exists":"Katman kimliği zaten var",Layers:L,"Layers list":"Katman listesi","Layout properties":"Yerleşim özellikleri","Learn More":"DahaLine truncated
//# sourceMappingURL=translation-CcF6vdbg.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-CcF6vdbg.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
var e=`Temel`,t=`Yön`,n=`İptal`,r=`Merkez`,i=`Kapat`,a=`Küme`,o=`Daralt`,s=`Yorumlar`,c=`Hata Ayıklama`,l=`Varsayılan`,u=`Sil`,d=`Kopyala`,f=`Kodlama`,p=`Genişlet`,m=`Filtre`,h=`Fonksiyon`,g=`GeoJSON`,_=`Yardım`,v=`Gizle`,y=`Görsel`,b=`İncele`,x=`Anahtar`,S=`Katman`,C=`Katmanlar`,w=`Bağlantılar`,T=`Yükleniyor`,E=`Harita`,D=`Ad`,O=`Aç`,k=`Seçenekler`,A=`Sahip`,j=`Eğim`,M=`Projeksiyon`,N=`Kaydet`,P=`Ara`,F=`Kısayollar`,I=`Göster`,L=`Kaynak`,R=`Kaynaklar`,z=`Duraklar`,B=`Tür`,V=`Değer`,H=`Video`,U=`Görünüm`,W=`Yakınlaştırma`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`<0>OSM'de aç</0>. Mevcut görünümü openstreetmap.org üzerinde açar`,"Achromatopsia filter":`Akromatopsi filtresi`,"Active Sources":`Aktif Kaynaklar`,"Add a new source to your style. You can only choose the source type and id at creation time!":`Stilinize yeni bir kaynak ekleyin. Kaynak türünü ve kimliğini yalnızca oluşturma sırasında seçebilirsiniz!`,"Add filter":`Filtre ekle`,"Add Layer":`Katman Ekle`,"Add New Source":`Yeni Kaynak Ekle`,"Add one of the publicly available sources to your style.":`Stilinize herkese açık kaynaklardan birini ekleyin.`,"Add Source":`Kaynak Ekle`,"Add stop":`Durak ekle`,"Add value":`Değer ekle`,"Add Variable":`Değişken Ekle`,"any filter matches":`herhangi bir filtre eşleşirse`,"API key for Stadia Maps.":`Stadia Maps için API anahtarı.`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`Herkese Açık Kaynak Seç`,"Choose the default Maputnik renderer for this style.":`Bu stil için varsayılan Maputnik işleyicisini seçin.`,"Click to close the editor":`Düzenleyiciyi kapatmak için tıklayın`,Close:i,"Close modal":`Modalı kapat`,"Close popup":`Açılır pencereyi kapat`,Cluster:a,"Code Editor":`Kod Düzenleyici`,Collapse:o,"Color accessibility":`Renk erişilebilirliği`,"Comment...":`Yorum...`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`Mevcut katman için yorumlar. Bu standart dışıdır ve spesifikasyonda yoktur.`,"Convert property into a elevation function":`Özelliği bir yükseklik fonksiyonuna dönüştür`,"Convert property into a zoom function":`Özelliği bir yakınlaştırma fonksiyonuna dönüştür`,"Convert property to data function":`Özelliği veri fonksiyonuna dönüştür`,"Convert to expression":`İfadeye dönüştür`,"Coord bottom left":`Koordinat sol alt`,"Coord bottom right":`Koordinat sağ alt`,"Coord top left":`Koordinat sol üst`,"Coord top right":`Koordinat sağ üst`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`CORS politikası, https üzerinden http ile sunulan kaynakların alınmasına izin vermez; <1>https://</1> alan adı kullanın`,"Create HTML":`HTML Oluştur`,"Data Sources":`Veri Kaynakları`,"Data Sources modal":`Veri Kaynakları modalı`,"Data value":`Veri değeri`,Debug:c,"Debug modal":`Hata ayıklama modalı`,"Decrease the pitch by 10 degrees.":`Eğimi 10 derece azalt.`,"Decrease the rotation by 15 degrees.":`Dönüşü 15 derece azalt.`,"Decrease the zoom level by 1.":`Yakınlaştırma seviyesini 1 azalt.`,"Decrease the zoom level by 2.":`Yakınlaştırma seviyesini 2 azalt.`,Default:l,Delete:`Sil`,"Delete expression":`İfadeyi sil`,"Delete filter block":`Filtre bloğunu sil`,"Deuteranopia filter":`Döteranopi filtresi`,"Drag and drop a style JSON file here or click to browse":`Bir stil JSON dosyasını buraya sürükleyip bırakın veya göz atmak için tıklayın`,Duplicate:d,Encoding:f,"Enter URL...":`URL girin...`,"every filter matches":`tüm filtreler eşleşirse`,Expand:p,"Export modal":`Dışa aktarma modalı`,Filter:m,"Focus map":`Haritaya odaklan`,Function:h,"Gallery Styles":`Galeri Stilleri`,"General layout properties":`Genel yerleşim özellikleri`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON)`,"GeoJSON (URL)":`GeoJSON (URL)`,"GeoJSON URL":`GeoJSON URL`,"Global State":`Genel Durum`,"Global State Variables":`Genel Durum Değişkenleri`,"Glyphs URL":`Glif URL'si`,Help:_,Hide:v,"Icon layout properties":`Simge yerleşim özellikleri`,"Icon paint properties":`Simge boyama özellikleri`,"If the Map is in focused you can use the following shortcuts":`Harita odaktaysa aşağıdaki kısayolları kullanabilirsiniz`,Image:y,"Image URL":`Görsel URL'si`,"Increase the pitch by 10 degrees.":`Eğimi 10 derece artır.`,"Increase the rotation by 15 degrees.":`Dönüşü 15 derece artır.`,"Increase the zoom level by 1.":`Yakınlaştırma seviyesini 1 artır.`,"Increase the zoom level by 2.":`Yakınlaştırma seviyesini 2 artır.`,"Input a data property to base styles off of.":`Stilleri temel almak için bir veri özelliği girin.`,"Input value":`Giriş değeri`,Inspect:b,"JSON Editor":`JSON Düzenleyici`,Key:x,Layer:S,"Layer editor":`Katman düzenleyici`,"Layer ID already exists":`Katman kimliği zaten var`,Layers:C,"Layers list":`Katman listesi`,"Layout properties":`Yerleşim özellikleri`,"Learn MorLine truncated
//# sourceMappingURL=translation-Cjba0qyZ.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-Cjba0qyZ.js","names":[],"sources":["../../src/locales/tr/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"<0>OSM'de aç</0>. Mevcut görünümü openstreetmap.org üzerinde açar\",\n \"Achromatopsia filter\": \"Akromatopsi filtresi\",\n \"Active Sources\": \"Aktif Kaynaklar\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"Stilinize yeni bir kaynak ekleyin. Kaynak türünü ve kimliğini yalnızca oluşturma sırasında seçebilirsiniz!\",\n \"Add filter\": \"Filtre ekle\",\n \"Add Layer\": \"Katman Ekle\",\n \"Add New Source\": \"Yeni Kaynak Ekle\",\n \"Add one of the publicly available sources to your style.\": \"Stilinize herkese açık kaynaklardan birini ekleyin.\",\n \"Add Source\": \"Kaynak Ekle\",\n \"Add stop\": \"Durak ekle\",\n \"Add value\": \"Değer ekle\",\n \"Add Variable\": \"Değişken Ekle\",\n \"any filter matches\": \"herhangi bir filtre eşleşirse\",\n \"API key for Stadia Maps.\": \"Stadia Maps için API anahtarı.\",\n \"Base\": \"Temel\",\n \"Bearing\": \"Yön\",\n \"Cancel\": \"İptal\",\n \"Center\": \"Merkez\",\n \"Choose Public Source\": \"Herkese Açık Kaynak Seç\",\n \"Choose the default Maputnik renderer for this style.\": \"Bu stil için varsayılan Maputnik işleyicisini seçin.\",\n \"Click to close the editor\": \"Düzenleyiciyi kapatmak için tıklayın\",\n \"Close\": \"Kapat\",\n \"Close modal\": \"Modalı kapat\",\n \"Close popup\": \"Açılır pencereyi kapat\",\n \"Cluster\": \"Küme\",\n \"Code Editor\": \"Kod Düzenleyici\",\n \"Collapse\": \"Daralt\",\n \"Color accessibility\": \"Renk erişilebilirliği\",\n \"Comment...\": \"Yorum...\",\n \"Comments\": \"Yorumlar\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"Mevcut katman için yorumlar. Bu standart dışıdır ve spesifikasyonda yoktur.\",\n \"Convert property into a elevation function\": \"Özelliği bir yükseklik fonksiyonuna dönüştür\",\n \"Convert property into a zoom function\": \"Özelliği bir yakınlaştırma fonksiyonuna dönüştür\",\n \"Convert property to data function\": \"Özelliği veri fonksiyonuna dönüştür\",\n \"Convert to expression\": \"İfadeye dönüştür\",\n \"Coord bottom left\": \"Koordinat sol alt\",\n \"Coord bottom right\": \"Koordinat sağ alt\",\n \"Coord top left\": \"Koordinat sol üst\",\n \"Coord top right\": \"Koordinat sağ üst\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"CORS politikası, https üzerinden http ile sunulan kaynakların alınmasına izin vermez; <1>https://</1> alan adı kullanın\",\n \"Create HTML\": \"HTML Oluştur\",\n \"Data Sources\": \"Veri Kaynakları\",\n \"Data Sources modal\": \"Veri Kaynakları modalı\",\n \"Data value\": \"Veri değeri\",\n \"Debug\": \"Hata Ayıklama\",\n \"Debug modal\": \"Hata ayıklama modalı\",\n \"Decrease the pitch by 10 degrees.\": \"Eğimi 10 derece azalt.\",\n \"Decrease the rotation by 15 degrees.\": \"Dönüşü 15 derece azalt.\",\n \"Decrease the zoom level by 1.\": \"Yakınlaştırma seviyesini 1 azalt.\",\n \"Decrease the zoom level by 2.\": \"Yakınlaştırma seviyesini 2 azalt.\",\n \"Default\": \"Varsayılan\",\n \"Delete\": \"Sil\",\n \"Delete expression\": \"İfadeyi sil\",\n \"Delete filter block\": \"Filtre bloğunu sil\",\n \"Deuteranopia filter\": \"Döteranopi filtresi\",\n \"Drag and drop a style JSON file here or click to browse\": \"Bir stil JSON dosyasını buraya sürükleyip bırakın veya göz atmak için tıklayın\",\n \"Duplicate\": \"Kopyala\",\n \"Encoding\": \"Kodlama\",\n \"Enter URL...\": \"URL girin...\",\n \"every filter matches\": \"tüm filtreler eşleşirse\",\n \"Expand\": \"Genişlet\",\n \"Export modal\": \"Dışa aktarma modalı\",\n \"Filter\": \"Filtre\",\n \"Focus map\": \"Haritaya odaklan\",\n \"Function\": \"Fonksiyon\",\n \"Gallery Styles\": \"Galeri Stilleri\",\n \"General layout properties\": \"Genel yerleşim özellikleri\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL)\",\n \"GeoJSON URL\": \"GeoJSON URL\",\n \"Global State\": \"Genel Durum\",\n \"Global State Variables\": \"Genel Durum Değişkenleri\",\n \"Glyphs URL\": \"Glif URL'si\",\n \"Help\": \"Yardım\",\n \"Hide\": \"Gizle\",\n \"Icon layout properties\": \"Simge yerleşim özellikleri\",\n \"Icon paint properties\": \"Simge boyama özellikleri\",\n \"If the Map is in focused you can use the following shortcuts\": \"Harita odaktaysa aşağıdaki kısayolları kullanabilirsiniz\",\n \"Image\": \"Görsel\",\n \"Image URL\": \"Görsel URL'si\",\n \"Increase the pitch by 10 degrees.\": \"Eğimi 10 derece artır.\",\n \"Increase the rotation by 15 degrees.\": \"Dönüşü 15 derece artır.\",\n \"IncLine truncated
-2
View File
@@ -1,2 +0,0 @@
const e="Basis",t="Ausrichtung",n="Abbrechen",o="Mittelpunkt",r="Schließen",i="Cluster",s="Einklappen",a="Kommentare",l="Debug",u="Standard",c="Löschen",d="Duplizieren",h="Kodierung",p="Ausklappen",f="Filter",S="GeoJSON",m="Hilfe",g="Verstecken",y="Bild",b="Untersuchen",L="Schlüssel",k="Ebene",v="Ebenen",R="Links",D="Lädt",T="Name",U="Öffnen",O="Optionen",M="Besitzer",z="Neigung",w="Projektion",A="Speichern",I="Suche",E="Shortcuts",C="Anzeigen",N="Quelle",P="Quellen",x="Stopps",V="Typ",F="Wert",G="Video",J="Ansicht",Z="Zoom",Q={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"<0>In OSM öffnen</0>. Öffnet die aktuelle Ansicht auf openstreetmap.org","Achromatopsia filter":"Achromatopsie-Filter","Active Sources":"Aktive Quellen","Add a new source to your style. You can only choose the source type and id at creation time!":"Füge eine neue Quelle zu deinem Stil hinzu. Du kannst den Quellentyp und die ID nur bei der Erstellung auswählen!","Add filter":"Filter hinzufügen","Add Layer":"Ebene hinzufügen","Add New Source":"Neue Quelle hinzufügen","Add one of the publicly available sources to your style.":"Füge eine der öffentlich verfügbaren Quellen zu deinem Stil hinzu.","Add Source":"Quelle hinzufügen","Add stop":"Stopp hinzufügen","Add value":"Wert hinzufügen","Add Variable":"Variable hinzufügen","any filter matches":"irgendein Filter passt","API key for Stadia Maps.":"API-Schlüssel für Stadia Maps.",Base:e,Bearing:t,Cancel:n,Center:o,"Choose Public Source":"Öffentliche Quelle auswählen","Choose the default Maputnik renderer for this style.":"Wähle den Standard-Renderer für diesen Stil aus.","Click to close the editor":"Klicken Sie hier, um den Editor zu schließen",Close:r,"Close modal":"Modale Fenster schließen","Close popup":"Popup schließen",Cluster:i,"Code Editor":"Code-Editor",Collapse:s,"Color accessibility":"Farbzugänglichkeit","Comment...":"Dein Kommentar...",Comments:a,"Comments for the current layer. This is non-standard and not in the spec.":"Kommentare zur aktuellen Ebene. Das ist nicht standardmäßig und nicht in der Spezifikation.","Convert property into a elevation function":"Eigenschaft in eine Höhenfunktion umwandeln","Convert property into a zoom function":"Eigenschaft in eine Zoom-Funktion umwandeln","Convert property to data function":"Eigenschaft in eine Datenfunktion umwandeln","Convert to expression":"In Ausdruck umwandeln","Coord bottom left":"Koordinate unten links","Coord bottom right":"Koordinate unten rechts","Coord top left":"Koordinate oben links","Coord top right":"Koordinate oben rechts","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"Die CORS-Politik erlaubt es nicht, Ressourcen über http von https zu laden, benutze eine <1>https://</1>-Domain","Create HTML":"HTML erstellen","Data Sources":"Datenquellen","Data Sources modal":"Modale Datenquellen","Data value":"Datenwert",Debug:l,"Debug modal":"Debug (modale Fenster)","Decrease the pitch by 10 degrees.":"Neigung um 10 Grad verringern.","Decrease the rotation by 15 degrees.":"Rotation um 15 Grad verringern.","Decrease the zoom level by 1.":"Zoom-Stufe um 1 verringern.","Decrease the zoom level by 2.":"Zoom-Stufe um 2 verringern.",Default:u,Delete:c,"Delete expression":"Ausdruck löschen","Delete filter block":"Filterblock löschen","Deuteranopia filter":"Deuteranopie-Filter",Duplicate:d,Encoding:h,"Enter URL...":"URL eingeben...","every filter matches":"alle Filter passen",Expand:p,"Export modal":"Modale Fenster exportieren",Filter:f,"Focus map":"Karte fokussieren",Function:"Funktion","Gallery Styles":"Galerie-Stile","General layout properties":"Allgemeine Layouteigenschaften",GeoJSON:S,"GeoJSON (JSON)":"GeoJSON (JSON)","GeoJSON (URL)":"GeoJSON (URL)","GeoJSON URL":"GeoJSON URL","Global State":"Globaler Zustand","Global State Variables":"Globale Zustandsvariablen","Glyphs URL":"Glyphen-URL",Help:m,Hide:g,"Icon layout properties":"Icon-Layouteigenschaften","Icon paint properties":"Icon-Darstellungseigenschaften","If the Map is in focused you can use the following shortcuts":"Wenn die Karte fokussiert ist, kannst du die folgenden Shortcuts benutzen",Image:y,"Image URL":"Bild-URL","Increase the pitch by 10 degrees.":"Neigung um 10 Grad erhöhen.","Increase the rotation by 15 degrees.":"Rotation um 15 Grad erhöhen.","Increase the zoom level by 1.":"Zoom-Stufe um 1 erhöhen.","Increase the zoom level by 2.":"Zoom-Stufe um 2 erhöhen.","Input a data property to base styles off of.":"Gib eine Dateneigenschaft ein, um Stile darauf zu basieren.","Input value":"Eingabewert",Inspect:b,"JSON Editor":"JSON-Editor",Key:L,Layer:k,"Layer editor":"Ebenen-Editor","Layer ID already exists":"Layer-ID existiert bereits",Layers:v,"Layers list":"Ebenenliste","Layout properties":"Layouteigenschaften","Learn More":"Mehr erfahren","Light anchor":"Lichtanker","Light color":"Lichtfarbe","Light intensity":"Lichtintensität","Light position":"Lichtposition"Line truncated
//# sourceMappingURL=translation-CniVGPpK.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-CniVGPpK.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="Base",r="Orientation",t="Annuler",o="Centre",s="Fermer",i="Cluster",a="Réduire",n="Commentaires",l="Déboguer",u="Par défaut",c="Supprimer",d="Dupliquer",p="Encodage",m="Développer",y="Filtre",h="GeoJSON",v="Aide",S="Cacher",f="Image",g="Inspecter",k="Clé",L="Calque",b="Calques",C="Liens",R="Chargement",G="Nom",O="Ouvrir",T="Options",A="Propriétaire",D="Inclinaison",U="Projection",M="Enregistrer",P="Recherche",I="Raccourcis",x="Afficher",N="Source",J="Sources",z="Arrêts",q="Type",V="Valeur",E="Vidéo",F="Vue",w="Zoom",j={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"<0>Ouvrir dans OSM</0>. Ouvre la vue actuelle sur openstreetmap.org","Achromatopsia filter":"Filtre Achromatopsie","Active Sources":"Sources actives","Add a new source to your style. You can only choose the source type and id at creation time!":"Ajoutez une nouvelle source à votre style. Vous ne pouvez choisir le type et l'ID de la source qu'au moment de la création !","Add filter":"Ajouter un filtre","Add Layer":"Ajouter un calque","Add New Source":"Ajouter une nouvelle source","Add one of the publicly available sources to your style.":"Ajoutez l'une des sources publiques disponibles à votre style.","Add Source":"Ajouter une source","Add stop":"Ajouter un arrêt","Add value":"Ajouter une valeur","Add Variable":"Ajouter une variable","any filter matches":"l'un des filtres correspond","API key for Stadia Maps.":"Clé d'API pour Stadia Maps.",Base:e,Bearing:r,Cancel:t,Center:o,"Choose Public Source":"Choisir une source publique","Choose the default Maputnik renderer for this style.":"Choisissez le moteur de rendu Maputnik par défaut pour ce style.","Click to close the editor":"Cliquez pour fermer l'éditeur",Close:s,"Close modal":"Fermer la fenêtre modale","Close popup":"Fermer la fenêtre",Cluster:i,"Code Editor":"Éditeur de code",Collapse:a,"Color accessibility":"Accessibilité des couleurs","Comment...":"Votre commentaire...",Comments:n,"Comments for the current layer. This is non-standard and not in the spec.":"Commentaires pour le calque actuel. Ceci n'est pas standard et n'est pas dans la spécification.","Convert property into a elevation function":"Convertir la propriété en fonction d'élévation","Convert property into a zoom function":"Convertir la propriété en fonction de zoom","Convert property to data function":"Convertir la propriété en fonction de données","Convert to expression":"Convertir en expression","Coord bottom left":"Coordonnée en bas à gauche","Coord bottom right":"Coordonnée en bas à droite","Coord top left":"Coordonnée en haut à gauche","Coord top right":"Coordonnée en haut à droite","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politique CORS ne permet pas de récupérer des ressources servies sur http depuis https, utilisez un protocole <1>https://</1>","Create HTML":"Créer le HTML","Data Sources":"Sources de données","Data Sources modal":"Sources de données (modale)","Data value":"Valeur des données",Debug:l,"Debug modal":"Déboguer (modale)","Decrease the pitch by 10 degrees.":"Diminuer l'inclinaison de 10 degrés.","Decrease the rotation by 15 degrees.":"Diminuer l'angle de rotation de 15 degrés.","Decrease the zoom level by 1.":"Diminuer le niveau de zoom de 1.","Decrease the zoom level by 2.":"Diminuer le niveau de zoom de 2.",Default:u,Delete:c,"Delete expression":"Supprimer l'expression","Delete filter block":"Supprimer le bloc de filtre","Deuteranopia filter":"Filtre Deutéranopie",Duplicate:d,Encoding:p,"Enter URL...":"Entrez l'URL...","every filter matches":"tous les filtres correspondent",Expand:m,"Export modal":"Exporter (modale)",Filter:y,"Focus map":"Focus sur la carte",Function:"Fonction","Gallery Styles":"Styles de la galerie","General layout properties":"Propriétés générales de mise en page",GeoJSON:h,"GeoJSON (JSON)":"GeoJSON (JSON)","GeoJSON (URL)":"GeoJSON (URL)","GeoJSON URL":"URL GeoJSON","Global State":"État global","Global State Variables":"Variables d'état global","Glyphs URL":"URL des glyphes",Help:v,Hide:S,"Icon layout properties":"Propriétés de mise en page de l'icône","Icon paint properties":"Propriétés de peinture de l'icône","If the Map is in focused you can use the following shortcuts":"Si la carte a le focus, vous pouvez utiliser les raccourcis suivants",Image:f,"Image URL":"URL de l'image","Increase the pitch by 10 degrees.":"Augmenter l'inclinaison de 10 degrés.","Increase the rotation by 15 degrees.":"Augmenter l'angle de rotation de 15 degrés.","Increase the zoom level by 1.":"Augmenter le niveau de zoom de 1.","Increase the zoom level by 2.":"Augmenter le niveau de zoom de 2.","Input a data property to base styles off of.":"Entrez une propriété de données pour baser les styles.","Input value":"Valeur d'entrée",Inspect:g,"JSON Editor":"Éditeur JSON",Key:"Clé",Layer:L,"Layer editor":"Éditeur de calque","Layer ID already exists":"L'identifianLine truncated
//# sourceMappingURL=translation-DErdfNS6.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-DErdfNS6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
var e=`Base`,t=`Orientation`,n=`Annuler`,r=`Centre`,i=`Fermer`,a=`Cluster`,o=`Réduire`,s=`Commentaires`,c=`Déboguer`,l=`Par défaut`,u=`Supprimer`,d=`Dupliquer`,f=`Encodage`,p=`Développer`,m=`Filtre`,h=`Fonction`,g=`GeoJSON`,_=`Aide`,v=`Cacher`,y=`Image`,b=`Inspecter`,x=`Clé`,S=`Calque`,C=`Calques`,w=`Liens`,T=`Chargement`,E=`Carte`,D=`Nom`,O=`Ouvrir`,k=`Options`,A=`Propriétaire`,j=`Inclinaison`,M=`Projection`,N=`Enregistrer`,P=`Recherche`,F=`Raccourcis`,I=`Afficher`,L=`Source`,R=`Sources`,z=`Arrêts`,B=`Type`,V=`Valeur`,H=`Vidéo`,U=`Vue`,W=`Zoom`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`<0>Ouvrir dans OSM</0>. Ouvre la vue actuelle sur openstreetmap.org`,"Achromatopsia filter":`Filtre Achromatopsie`,"Active Sources":`Sources actives`,"Add a new source to your style. You can only choose the source type and id at creation time!":`Ajoutez une nouvelle source à votre style. Vous ne pouvez choisir le type et l'ID de la source qu'au moment de la création !`,"Add filter":`Ajouter un filtre`,"Add Layer":`Ajouter un calque`,"Add New Source":`Ajouter une nouvelle source`,"Add one of the publicly available sources to your style.":`Ajoutez l'une des sources publiques disponibles à votre style.`,"Add Source":`Ajouter une source`,"Add stop":`Ajouter un arrêt`,"Add value":`Ajouter une valeur`,"Add Variable":`Ajouter une variable`,"any filter matches":`l'un des filtres correspond`,"API key for Stadia Maps.":`Clé d'API pour Stadia Maps.`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`Choisir une source publique`,"Choose the default Maputnik renderer for this style.":`Choisissez le moteur de rendu Maputnik par défaut pour ce style.`,"Click to close the editor":`Cliquez pour fermer l'éditeur`,Close:i,"Close modal":`Fermer la fenêtre modale`,"Close popup":`Fermer la fenêtre`,Cluster:a,"Code Editor":`Éditeur de code`,Collapse:o,"Color accessibility":`Accessibilité des couleurs`,"Comment...":`Votre commentaire...`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`Commentaires pour le calque actuel. Ceci n'est pas standard et n'est pas dans la spécification.`,"Convert property into a elevation function":`Convertir la propriété en fonction d'élévation`,"Convert property into a zoom function":`Convertir la propriété en fonction de zoom`,"Convert property to data function":`Convertir la propriété en fonction de données`,"Convert to expression":`Convertir en expression`,"Coord bottom left":`Coordonnée en bas à gauche`,"Coord bottom right":`Coordonnée en bas à droite`,"Coord top left":`Coordonnée en haut à gauche`,"Coord top right":`Coordonnée en haut à droite`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`La politique CORS ne permet pas de récupérer des ressources servies sur http depuis https, utilisez un protocole <1>https://</1>`,"Create HTML":`Créer le HTML`,"Data Sources":`Sources de données`,"Data Sources modal":`Sources de données (modale)`,"Data value":`Valeur des données`,Debug:c,"Debug modal":`Déboguer (modale)`,"Decrease the pitch by 10 degrees.":`Diminuer l'inclinaison de 10 degrés.`,"Decrease the rotation by 15 degrees.":`Diminuer l'angle de rotation de 15 degrés.`,"Decrease the zoom level by 1.":`Diminuer le niveau de zoom de 1.`,"Decrease the zoom level by 2.":`Diminuer le niveau de zoom de 2.`,Default:l,Delete:u,"Delete expression":`Supprimer l'expression`,"Delete filter block":`Supprimer le bloc de filtre`,"Deuteranopia filter":`Filtre Deutéranopie`,Duplicate:d,Encoding:f,"Enter URL...":`Entrez l'URL...`,"every filter matches":`tous les filtres correspondent`,Expand:p,"Export modal":`Exporter (modale)`,Filter:m,"Focus map":`Focus sur la carte`,Function:h,"Gallery Styles":`Styles de la galerie`,"General layout properties":`Propriétés générales de mise en page`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON)`,"GeoJSON (URL)":`GeoJSON (URL)`,"GeoJSON URL":`URL GeoJSON`,"Global State":`État global`,"Global State Variables":`Variables d'état global`,"Glyphs URL":`URL des glyphes`,Help:_,Hide:v,"Icon layout properties":`Propriétés de mise en page de l'icône`,"Icon paint properties":`Propriétés de peinture de l'icône`,"If the Map is in focused you can use the following shortcuts":`Si la carte a le focus, vous pouvez utiliser les raccourcis suivants`,Image:y,"Image URL":`URL de l'image`,"Increase the pitch by 10 degrees.":`Augmenter l'inclinaison de 10 degrés.`,"Increase the rotation by 15 degrees.":`Augmenter l'angle de rotation de 15 degrés.`,"Increase the zoom level by 1.":`Augmenter le niveau de zoom de 1.`,"Increase the zoom level by 2.":`Augmenter le niveau de zoom de 2.`,"Input a data property to base styles off of.":`Entrez une propriété de données pour baser les styles.`,"Input value":`Valeur d'entrée`,Inspect:b,"JSON Editor":`Éditeur JSON`,Key:x,Layer:S,"Layer editor":`Éditeur de calque`,"Layer ID already exists":`L'ide Line truncated
//# sourceMappingURL=translation-Ds7M7L6h.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-Ds7M7L6h.js","names":[],"sources":["../../src/locales/fr/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"<0>Ouvrir dans OSM</0>. Ouvre la vue actuelle sur openstreetmap.org\",\n \"Achromatopsia filter\": \"Filtre Achromatopsie\",\n \"Active Sources\": \"Sources actives\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"Ajoutez une nouvelle source à votre style. Vous ne pouvez choisir le type et l'ID de la source qu'au moment de la création !\",\n \"Add filter\": \"Ajouter un filtre\",\n \"Add Layer\": \"Ajouter un calque\",\n \"Add New Source\": \"Ajouter une nouvelle source\",\n \"Add one of the publicly available sources to your style.\": \"Ajoutez l'une des sources publiques disponibles à votre style.\",\n \"Add Source\": \"Ajouter une source\",\n \"Add stop\": \"Ajouter un arrêt\",\n \"Add value\": \"Ajouter une valeur\",\n \"Add Variable\": \"Ajouter une variable\",\n \"any filter matches\": \"l'un des filtres correspond\",\n \"API key for Stadia Maps.\": \"Clé d'API pour Stadia Maps.\",\n \"Base\": \"Base\",\n \"Bearing\": \"Orientation\",\n \"Cancel\": \"Annuler\",\n \"Center\": \"Centre\",\n \"Choose Public Source\": \"Choisir une source publique\",\n \"Choose the default Maputnik renderer for this style.\": \"Choisissez le moteur de rendu Maputnik par défaut pour ce style.\",\n \"Click to close the editor\": \"Cliquez pour fermer l'éditeur\",\n \"Close\": \"Fermer\",\n \"Close modal\": \"Fermer la fenêtre modale\",\n \"Close popup\": \"Fermer la fenêtre\",\n \"Cluster\": \"Cluster\",\n \"Code Editor\": \"Éditeur de code\",\n \"Collapse\": \"Réduire\",\n \"Color accessibility\": \"Accessibilité des couleurs\",\n \"Comment...\": \"Votre commentaire...\",\n \"Comments\": \"Commentaires\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"Commentaires pour le calque actuel. Ceci n'est pas standard et n'est pas dans la spécification.\",\n \"Convert property into a elevation function\": \"Convertir la propriété en fonction d'élévation\",\n \"Convert property into a zoom function\": \"Convertir la propriété en fonction de zoom\",\n \"Convert property to data function\": \"Convertir la propriété en fonction de données\",\n \"Convert to expression\": \"Convertir en expression\",\n \"Coord bottom left\": \"Coordonnée en bas à gauche\",\n \"Coord bottom right\": \"Coordonnée en bas à droite\",\n \"Coord top left\": \"Coordonnée en haut à gauche\",\n \"Coord top right\": \"Coordonnée en haut à droite\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"La politique CORS ne permet pas de récupérer des ressources servies sur http depuis https, utilisez un protocole <1>https://</1>\",\n \"Create HTML\": \"Créer le HTML\",\n \"Data Sources\": \"Sources de données\",\n \"Data Sources modal\": \"Sources de données (modale)\",\n \"Data value\": \"Valeur des données\",\n \"Debug\": \"Déboguer\",\n \"Debug modal\": \"Déboguer (modale)\",\n \"Decrease the pitch by 10 degrees.\": \"Diminuer l'inclinaison de 10 degrés.\",\n \"Decrease the rotation by 15 degrees.\": \"Diminuer l'angle de rotation de 15 degrés.\",\n \"Decrease the zoom level by 1.\": \"Diminuer le niveau de zoom de 1.\",\n \"Decrease the zoom level by 2.\": \"Diminuer le niveau de zoom de 2.\",\n \"Default\": \"Par défaut\",\n \"Delete\": \"Supprimer\",\n \"Delete expression\": \"Supprimer l'expression\",\n \"Delete filter block\": \"Supprimer le bloc de filtre\",\n \"Deuteranopia filter\": \"Filtre Deutéranopie\",\n \"Duplicate\": \"Dupliquer\",\n \"Encoding\": \"Encodage\",\n \"Enter URL...\": \"Entrez l'URL...\",\n \"every filter matches\": \"tous les filtres correspondent\",\n \"Expand\": \"Développer\",\n \"Export modal\": \"Exporter (modale)\",\n \"Filter\": \"Filtre\",\n \"Focus map\": \"Focus sur la carte\",\n \"Function\": \"Fonction\",\n \"Gallery Styles\": \"Styles de la galerie\",\n \"General layout properties\": \"Propriétés générales de mise en page\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL)\",\n \"GeoJSON URL\": \"URL GeoJSON\",\n \"Global State\": \"État global\",\n \"Global State Variables\": \"Variables d'état global\",\n \"Glyphs URL\": \"URL des glyphes\",\n \"Help\": \"Aide\",\n \"Hide\": \"Cacher\",\n \"Icon layout properties\": \"Propriétés de mise en page de l'icône\",\n \"Icon paint properties\": \"Propriétés de peinture de l'icône\",\n \"If the Map is in focused you can use the following shortcuts\": \"Si la carte a le focus, vous pouvez utiliser les raccourcis suivants\",\n \"Image\": \"Image\",\n \"Image URL\": \"URL de l'image\",\n \"Increase the pitch by 10 degrees.\": \"Augmenter l'inclLine truncated
+2
View File
@@ -0,0 +1,2 @@
var e=`베이스`,t=`방위각`,n=`취소`,r=`중심 좌표`,i=`닫기`,a=`클러스터`,o=`접기`,s=`주석`,c=`디버그`,l=`기본값`,u=`삭제`,d=`복제`,f=`인코딩`,p=`펼치기`,m=`필터`,h=`함수`,g=`GeoJSON`,_=`도움말`,v=`숨기기`,y=`이미지`,b=`검사`,x=`키`,S=`레이어`,C=`레이어`,w=`링크`,T=`로딩`,E=`맵`,D=`이름`,O=`열기`,k=`옵션`,A=`소유자`,j=`경사각`,M=`투영법`,N=`저장`,P=`검색`,F=`단축키`,I=`표시`,L=`소스`,R=`소스`,z=`기준점`,B=`유형`,V=`값`,H=`비디오`,U=`보기`,W=`줌`,G={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":`<0>OSM에서 열기</0>. 현재 뷰를 openstreetmap.org에서 엽니다`,"Achromatopsia filter":`전색맹 필터`,"Active Sources":`활성 소스`,"Add a new source to your style. You can only choose the source type and id at creation time!":`스타일에 새 소스를 추가합니다. 소스 유형과 ID는 생성 시에만 선택할 수 있습니다!`,"Add filter":`필터 추가`,"Add Layer":`레이어 추가`,"Add New Source":`새 소스 추가`,"Add one of the publicly available sources to your style.":`공개적으로 사용 가능한 소스 중 하나를 스타일에 추가하세요.`,"Add Source":`소스 추가`,"Add stop":`기준점 추가`,"Add value":`값 추가`,"Add Variable":`변수 추가`,"any filter matches":`일부 필터 일치`,"API key for Stadia Maps.":`Stadia Maps용 API 키 입니다.`,Base:e,Bearing:t,Cancel:n,Center:r,"Choose Public Source":`공개 소스 선택`,"Choose the default Maputnik renderer for this style.":`이 스타일의 기본 Maputnik 렌더러를 선택하세요.`,"Click to close the editor":`편집기를 닫으려면 클릭하세요`,Close:i,"Close modal":`모달 닫기`,"Close popup":`팝업 닫기`,Cluster:a,"Code Editor":`코드 편집기`,Collapse:o,"Color accessibility":`색상 접근성`,"Comment...":`주석 입력...`,Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":`현재 레이어에 대한 설명입니다. 이것은 비표준이며 사양에 포함되지 않습니다.`,"Convert property into a elevation function":`속성을 고도 함수로 변환`,"Convert property into a zoom function":`속성을 줌 함수로 변환`,"Convert property to data function":`속성을 데이터 함수로 변환`,"Convert to expression":`표현식으로 변환`,"Coord bottom left":`좌하단 좌표`,"Coord bottom right":`우하단 좌표`,"Coord top left":`좌상단 좌표`,"Coord top right":`우상단 좌표`,"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":`CORS 정책으로 인해 https에서 http 리소스를 가져올 수 없습니다. <1>https://</1> 도메인을 사용하세요`,"Create HTML":`HTML 생성`,"Data Sources":`데이터 소스`,"Data Sources modal":`데이터 소스 모달`,"Data value":`데이터 값`,Debug:c,"Debug modal":`디버그 모달`,"Decrease the pitch by 10 degrees.":`경사각을 10도 감소시킵니다.`,"Decrease the rotation by 15 degrees.":`회전을 15도 감소시킵니다.`,"Decrease the zoom level by 1.":`줌 레벨을 1 감소시킵니다.`,"Decrease the zoom level by 2.":`줌 레벨을 2 감소시킵니다.`,Default:l,Delete:u,"Delete expression":`표현식 삭제`,"Delete filter block":`필터 블록 삭제`,"Deuteranopia filter":`녹색맹 필터`,Duplicate:d,Encoding:f,"Enter URL...":`URL 입력...`,"every filter matches":`모든 필터 일치`,Expand:p,"Export modal":`모달 내보내기`,Filter:m,"Focus map":`포커스 맵`,Function:h,"Gallery Styles":`갤러리 스타일`,"General layout properties":`일반 레이아웃 속성`,GeoJSON:g,"GeoJSON (JSON)":`GeoJSON (JSON)`,"GeoJSON (URL)":`GeoJSON (URL)`,"GeoJSON URL":`GeoJSON URL`,"Global State":`전역 상태`,"Global State Variables":`전역 상태 변수`,"Glyphs URL":`글리프 URL`,Help:_,Hide:v,"Icon layout properties":`아이콘 레이아웃 속성`,"Icon paint properties":`아이콘 페인트 속성`,"If the Map is in focused you can use the following shortcuts":`맵에 포커스가 맞춰진 경우 다음 단축키를 사용할 수 있습니다`,Image:y,"Image URL":`이미지 URL`,"Increase the pitch by 10 degrees.":`경사각을 10도 증가시킵니다.`,"Increase the rotation by 15 degrees.":`회전을 15도 증가시킵니다.`,"Increase the zoom level by 1.":`줌 레벨을 1 증가시킵니다.`,"Increase the zoom level by 2.":`줌 레벨을 2 증가시킵니다.`,"Input a data property to base styles off of.":`스타일의 기준이 될 데이터 속성을 입력하세요.`,"Input value":`입력 값`,Inspect:b,"JSON Editor":`JSON 편집기`,Key:`키`,Layer:S,"Layer editor":`레이어 편집기`,"Layer ID already exists":`레이어 ID가 이미 존재합니다`,Layers:C,"Layers list":`레이어 목록`,"Layout properties":`레이아웃 속성`,"Learn More":`자세히 알아보기`,"Light anchor":`라이트 고정점`,"Light color":`라이트 색상`,"Light inteLine truncated
//# sourceMappingURL=translation-EOyIdmTG.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-EOyIdmTG.js","names":[],"sources":["../../src/locales/ko/translation.json"],"sourcesContent":["{\n \"<0>Open in OSM</0>. Opens the current view on openstreetmap.org\": \"<0>OSM에서 열기</0>. 현재 뷰를 openstreetmap.org에서 엽니다\",\n \"Achromatopsia filter\": \"전색맹 필터\",\n \"Active Sources\": \"활성 소스\",\n \"Add a new source to your style. You can only choose the source type and id at creation time!\": \"스타일에 새 소스를 추가합니다. 소스 유형과 ID는 생성 시에만 선택할 수 있습니다!\",\n \"Add filter\": \"필터 추가\",\n \"Add Layer\": \"레이어 추가\",\n \"Add New Source\": \"새 소스 추가\",\n \"Add one of the publicly available sources to your style.\": \"공개적으로 사용 가능한 소스 중 하나를 스타일에 추가하세요.\",\n \"Add Source\": \"소스 추가\",\n \"Add stop\": \"기준점 추가\",\n \"Add value\": \"값 추가\",\n \"Add Variable\": \"변수 추가\",\n \"any filter matches\": \"일부 필터 일치\",\n \"API key for Stadia Maps.\": \"Stadia Maps용 API 키 입니다.\",\n \"Base\": \"베이스\",\n \"Bearing\": \"방위각\",\n \"Cancel\": \"취소\",\n \"Center\": \"중심 좌표\",\n \"Choose Public Source\": \"공개 소스 선택\",\n \"Choose the default Maputnik renderer for this style.\": \"이 스타일의 기본 Maputnik 렌더러를 선택하세요.\",\n \"Click to close the editor\": \"편집기를 닫으려면 클릭하세요\",\n \"Close\": \"닫기\",\n \"Close modal\": \"모달 닫기\",\n \"Close popup\": \"팝업 닫기\",\n \"Cluster\": \"클러스터\",\n \"Code Editor\": \"코드 편집기\",\n \"Collapse\": \"접기\",\n \"Color accessibility\": \"색상 접근성\",\n \"Comment...\": \"주석 입력...\",\n \"Comments\": \"주석\",\n \"Comments for the current layer. This is non-standard and not in the spec.\": \"현재 레이어에 대한 설명입니다. 이것은 비표준이며 사양에 포함되지 않습니다.\",\n \"Convert property into a elevation function\": \"속성을 고도 함수로 변환\",\n \"Convert property into a zoom function\": \"속성을 줌 함수로 변환\",\n \"Convert property to data function\": \"속성을 데이터 함수로 변환\",\n \"Convert to expression\": \"표현식으로 변환\",\n \"Coord bottom left\": \"좌하단 좌표\",\n \"Coord bottom right\": \"우하단 좌표\",\n \"Coord top left\": \"좌상단 좌표\",\n \"Coord top right\": \"우상단 좌표\",\n \"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain\": \"CORS 정책으로 인해 https에서 http 리소스를 가져올 수 없습니다. <1>https://</1> 도메인을 사용하세요\",\n \"Create HTML\": \"HTML 생성\",\n \"Data Sources\": \"데이터 소스\",\n \"Data Sources modal\": \"데이터 소스 모달\",\n \"Data value\": \"데이터 값\",\n \"Debug\": \"디버그\",\n \"Debug modal\": \"디버그 모달\",\n \"Decrease the pitch by 10 degrees.\": \"경사각을 10도 감소시킵니다.\",\n \"Decrease the rotation by 15 degrees.\": \"회전을 15도 감소시킵니다.\",\n \"Decrease the zoom level by 1.\": \"줌 레벨을 1 감소시킵니다.\",\n \"Decrease the zoom level by 2.\": \"줌 레벨을 2 감소시킵니다.\",\n \"Default\": \"기본값\",\n \"Delete\": \"삭제\",\n \"Delete expression\": \"표현식 삭제\",\n \"Delete filter block\": \"필터 블록 삭제\",\n \"Deuteranopia filter\": \"녹색맹 필터\",\n \"Duplicate\": \"복제\",\n \"Encoding\": \"인코딩\",\n \"Enter URL...\": \"URL 입력...\",\n \"every filter matches\": \"모든 필터 일치\",\n \"Expand\": \"펼치기\",\n \"Export modal\": \"모달 내보내기\",\n \"Filter\": \"필터\",\n \"Focus map\": \"포커스 맵\",\n \"Function\": \"함수\",\n \"Gallery Styles\": \"갤러리 스타일\",\n \"General layout properties\": \"일반 레이아웃 속성\",\n \"GeoJSON\": \"GeoJSON\",\n \"GeoJSON (JSON)\": \"GeoJSON (JSON)\",\n \"GeoJSON (URL)\": \"GeoJSON (URL)\",\n \"GeoJSON URL\": \"GeoJSON URL\",\n \"Global State\": \"전역 상태\",\n \"Global State Variables\": \"전역 상태 변수\",\n \"Glyphs URL\": \"글리프 URL\",\n \"Help\": \"도움말\",\n \"Hide\": \"숨기기\",\n \"Icon layout properties\": \"아이콘 레이아웃 속성\",\n \"Icon paint properties\": \"아이콘 페인트 속성\",\n \"If the Map is in focused you can use the following shortcuts\": \"맵에 포커스가 맞춰진 경우 다음 단축키를 사용할 수 있습니다\",\n \"Image\": \"이미지\",\n \"Image URL\": \"이미지 URL\",\n \"Increase the pitch by 10 degrees.\": \"경사각을 10도 증가시킵니다.\",\n \"Increase the rotation by 15 degrees.\": \"회전을 15도 증가시킵니다.\",\n \"Increase the zoom level by 1.\": \"줌 레벨을 1 증가시킵니다.\",\n \"Increase the zoom level by 2Line truncated
-2
View File
@@ -1,2 +0,0 @@
const s="베이스",r="방위각",a="취소",e="중심 좌표",n="닫기",t="클러스터",i="접기",l="주석",c="디버그",p="기본값",u="삭제",d="복제",y="인코딩",S="펼치기",h="필터",o="GeoJSON",L="도움말",f="숨기기",m="이미지",R="검사",O="키",v="레이어",b="레이어",T="링크",U="로딩",g="이름",C="열기",M="옵션",I="소유자",D="경사각",N="투영법",J="저장",P="검색",A="단축키",x="표시",w="소스",k="소스",G="기준점",E="유형",V="값",H="비디오",z="보기",Z="줌",B={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"<0>OSM에서 열기</0>. 현재 뷰를 openstreetmap.org에서 엽니다","Achromatopsia filter":"전색맹 필터","Active Sources":"활성 소스","Add a new source to your style. You can only choose the source type and id at creation time!":"스타일에 새 소스를 추가합니다. 소스 유형과 ID는 생성 시에만 선택할 수 있습니다!","Add filter":"필터 추가","Add Layer":"레이어 추가","Add New Source":"새 소스 추가","Add one of the publicly available sources to your style.":"공개적으로 사용 가능한 소스 중 하나를 스타일에 추가하세요.","Add Source":"소스 추가","Add stop":"기준점 추가","Add value":"값 추가","Add Variable":"변수 추가","any filter matches":"일부 필터 일치","API key for Stadia Maps.":"Stadia Maps용 API 키 입니다.",Base:"베이스",Bearing:"방위각",Cancel:"취소",Center:e,"Choose Public Source":"공개 소스 선택","Choose the default Maputnik renderer for this style.":"이 스타일의 기본 Maputnik 렌더러를 선택하세요.","Click to close the editor":"편집기를 닫으려면 클릭하세요",Close:"닫기","Close modal":"모달 닫기","Close popup":"팝업 닫기",Cluster:t,"Code Editor":"코드 편집기",Collapse:"접기","Color accessibility":"색상 접근성","Comment...":"주석 입력...",Comments:"주석","Comments for the current layer. This is non-standard and not in the spec.":"현재 레이어에 대한 설명입니다. 이것은 비표준이며 사양에 포함되지 않습니다.","Convert property into a elevation function":"속성을 고도 함수로 변환","Convert property into a zoom function":"속성을 줌 함수로 변환","Convert property to data function":"속성을 데이터 함수로 변환","Convert to expression":"표현식으로 변환","Coord bottom left":"좌하단 좌표","Coord bottom right":"우하단 좌표","Coord top left":"좌상단 좌표","Coord top right":"우상단 좌표","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS 정책으로 인해 https에서 http 리소스를 가져올 수 없습니다. <1>https://</1> 도메인을 사용하세요","Create HTML":"HTML 생성","Data Sources":"데이터 소스","Data Sources modal":"데이터 소스 모달","Data value":"데이터 값",Debug:"디버그","Debug modal":"디버그 모달","Decrease the pitch by 10 degrees.":"경사각을 10도 감소시킵니다.","Decrease the rotation by 15 degrees.":"회전을 15도 감소시킵니다.","Decrease the zoom level by 1.":"줌 레벨을 1 감소시킵니다.","Decrease the zoom level by 2.":"줌 레벨을 2 감소시킵니다.",Default:"기본값",Delete:"삭제","Delete expression":"표현식 삭제","Delete filter block":"필터 블록 삭제","Deuteranopia filter":"녹색맹 필터",Duplicate:"복제",Encoding:"인코딩","Enter URL...":"URL 입력...","every filter matches":"모든 필터 일치",Expand:"펼치기","Export modal":"모달 내보내기",Filter:"필터","Focus map":"포커스 맵",Function:"함수","Gallery Styles":"갤러리 스타일","General layout properties":"일반 레이아웃 속성",GeoJSON:o,"GeoJSON (JSON)":"GeoJSON (JSON)","GeoJSON (URL)":"GeoJSON (URL)","GeoJSON URL":"GeoJSON URL","Global State":"전역 상태","Global State Variables":"전역 상태 변수","Glyphs URL":"글리프 URL",Help:"도움말",Hide:"숨기기","Icon layout properties":"아이콘 레이아웃 속성","Icon paint properties":"아이콘 페인트 속성","If the Map is in focused you can use the following shortcuts":"맵에 포커스가 맞춰진 경우 다음 단축키를 사용할 수 있습니다",Image:"이미지","Image URL":"이미지 URL","Increase the pitch by 10 degrees.":"경사각을 10도 증가시킵니다.","Increase the rotation by 15 degrees.":"회전을 15도 증가시킵니다.","Increase the zoom level by 1.":"줌 레벨을 1 증가시킵니다.","Increase the zoom level by 2.":"줌 레벨을 2 증가시킵니다.","Input a data property to base styles off of.":"스타일의 기준이 될 데이터 속성을 입력하세요.","Input value":"입력 값",Inspect:"검사","JSON Editor":"JSON 편집기",Key:"키",Layer:"레이어","Layer editor":"레이어 편집기","Layer ID already exists":"레이어 ID가 이미 존재합니다",Layers:"레이어","Layers list":"레이어 목록","LayoLine truncated
//# sourceMappingURL=translation-a6aNEnxv.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-a6aNEnxv.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
var e={"Drag and drop a style JSON file here or click to browse":`Drag and drop a style JSON file here or click to browse`};export{e as default};
//# sourceMappingURL=translation-kg7OItc9.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-kg7OItc9.js","names":[],"sources":["../../src/locales/en/translation.json"],"sourcesContent":["{\n \"Drag and drop a style JSON file here or click to browse\": \"Drag and drop a style JSON file here or click to browse\"\n}\n"],"mappings":""}
-2
View File
@@ -1,2 +0,0 @@
const e="Base",i="Direzione",o="Annulla",t="Centro",a="Chiudi",r="Cluster",l="Coprimi",s="Commenti",n="Debug",c="Predefinito",p="Elimina",d="Duplica",u="Codifica",m="Espandi",g="Filtro",S="GeoJSON",v="Aiuto",y="Nascondi",f="Immagine",h="Esamina",b="Chiave",L="Livello",R="Livelli",C="Collegamenti",z="Caricamento",A="Nome",T="Apri",O="Opzioni",I="Proprietario",U="Inclinazione",M="Proiezione",P="Salva",N="Cerca",D="Scorciatoie",J="Mostra",x="Sorgente",E="Sorgenti",k="Fermate",V="Tipo",G="Valore",w="Video",F="Vista",Z="Zoom",H={"<0>Open in OSM</0>. Opens the current view on openstreetmap.org":"<0>Apri in OSM</0>. Apre la vista corrente su openstreetmap.org","Achromatopsia filter":"Filtro acromatopsia","Active Sources":"Sorgenti attive","Add a new source to your style. You can only choose the source type and id at creation time!":"Aggiungi una nuova sorgente al tuo stile. Puoi scegliere il tipo di sorgente e l'ID solo al momento della creazione!","Add filter":"Aggiungi filtro","Add Layer":"Aggiungi Livello","Add New Source":"Aggiungi nuova sorgente","Add one of the publicly available sources to your style.":"Aggiungi una delle sorgente pubbliche disponibili al tuo stile.","Add Source":"Aggiungi sorgente","Add stop":"Aggiungi fermata","Add value":"Aggiungi valore","Add Variable":"Aggiungi variabile","any filter matches":"qualsiasi filtro corrisponde","API key for Stadia Maps.":"Chiave API per Stadia Maps.",Base:e,Bearing:i,Cancel:o,Center:t,"Choose Public Source":"Scegli una sorgente pubblica","Choose the default Maputnik renderer for this style.":"Scegli il renderer predefinito di Maputnik per questo stile.","Click to close the editor":"Clicca per chiudere l'editor",Close:a,"Close modal":"Chiudi finestra modale","Close popup":"Chiudi popup",Cluster:r,"Code Editor":"Editor codice",Collapse:l,"Color accessibility":"Accessibilità colori","Comment...":"Il tuo commento...",Comments:s,"Comments for the current layer. This is non-standard and not in the spec.":"Commenti per il livello attuale. Questo non è standard e non è nella specifica.","Convert property into a elevation function":"Converti proprietà in una funzione di elevazione","Convert property into a zoom function":"Converti proprietà in una funzione di zoom","Convert property to data function":"Converti proprietà in una funzione dati","Convert to expression":"Converti in espressione","Coord bottom left":"Coordinate in basso a sinistra","Coord bottom right":"Coordinate in basso a destra","Coord top left":"Coordinate in alto a sinistra","Coord top right":"Coordinate in alto a destra","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politica CORS non permette di caricare risorse tramite http da https, utilizza un dominio <1>https://</1>.","Create HTML":"Crea HTML","Data Sources":"Fonti dati","Data Sources modal":"Finestra modale sorgente dati","Data value":"Valore dei dati",Debug:n,"Debug modal":"Finestra modale di debug","Decrease the pitch by 10 degrees.":"Aumenta la rotazione di 10 gradi.","Decrease the rotation by 15 degrees.":"Aumenta la rotazione di 15 gradi.","Decrease the zoom level by 1.":"Riduci il livello di zoom di 1.","Decrease the zoom level by 2.":"Riduci il livello di zoom di 1..",Default:c,Delete:p,"Delete expression":"Elimina espressione","Delete filter block":"Elimina blocco filtro","Deuteranopia filter":"Filtro deuteranopia",Duplicate:d,Encoding:u,"Enter URL...":"Inserisci URL...","every filter matches":"tutti i filtri corrispondono",Expand:m,"Export modal":"Esporta finestra modale",Filter:g,"Focus map":"Metti a fuoco la mappa",Function:"Funzione","Gallery Styles":"Galleria degli stili","General layout properties":"Proprietà generali del layout",GeoJSON:S,"GeoJSON (JSON)":"GeoJSON (JSON)","GeoJSON (URL)":"GeoJSON (URL)","GeoJSON URL":"GeoJSON URL","Global State":"Stato globale","Global State Variables":"Variabili di stato globale","Glyphs URL":"URL Glyphs",Help:v,Hide:y,"Icon layout properties":"Proprietà di layout dell'icona","Icon paint properties":"Proprietà di pittura dell'icona","If the Map is in focused you can use the following shortcuts":"Se la mappa è attiva, puoi utilizzare le seguenti scorciatoie:",Image:f,"Image URL":"Indirizzo immagine","Increase the pitch by 10 degrees.":"Incrementa la rotazione di 10 gradi","Increase the rotation by 15 degrees.":"Incrementa la rotazione di 15 gradi.","Increase the zoom level by 1.":"Aumenta il livello di zoom di 1.","Increase the zoom level by 2.":"Aumenta il livello di zoom di 2.","Input a data property to base styles off of.":"Inserisci una proprietà dati su cui basare gli stili.","Input value":"Valore di input",Inspect:h,"JSON Editor":"Editor JSON",Key:b,Layer:L,"Layer editor":"Editor livelli","Layer ID already exists":"L'ID del layer esiste già",Layers:R,"Layers list":"Elenco livelli","Layout properties":"Proprietà di layout","Learn More":"Scopri di più","Light anchor":"Ancora della luce","Light color":"Colore della luLine truncated
//# sourceMappingURL=translation-xtrlBNbA.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-xtrlBNbA.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}