mirror of
https://github.com/maputnik/editor.git
synced 2026-12-05 16:24:20 +00:00
deploy: 7e784f80f6
This commit is contained in:
1 parent
5a8effb363
commit
8db5842e85
3 files changed
+209
-152
No files matched your search
@@ -1,4 +1,4 @@
|
||||
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();function Xl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function zD(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 X6={exports:{}},o2={};/**
|
||||
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();function eu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function zD(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 X6={exports:{}},s2={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var DL;function Dae(){if(DL)return o2;DL=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return o2.Fragment=e,o2.jsx=t,o2.jsxs=t,o2}var PL;function Pae(){return PL||(PL=1,X6.exports=Dae()),X6.exports}var ie=Pae(),J6={exports:{}},$r={};/**
|
||||
*/var DL;function Dae(){if(DL)return s2;DL=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return s2.Fragment=e,s2.jsx=t,s2.jsxs=t,s2}var PL;function Pae(){return PL||(PL=1,X6.exports=Dae()),X6.exports}var ie=Pae(),J6={exports:{}},Yr={};/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
@@ -14,7 +14,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var UL;function Uae(){if(UL)return $r;UL=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),M=Symbol.iterator;function x(we){return we===null||typeof we!="object"?null:(we=M&&we[M]||we["@@iterator"],typeof we=="function"?we:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,F={};function j(we,ze,xe){this.props=we,this.context=ze,this.refs=F,this.updater=xe||k}j.prototype.isReactComponent={},j.prototype.setState=function(we,ze){if(typeof we!="object"&&typeof we!="function"&&we!=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,we,ze,"setState")},j.prototype.forceUpdate=function(we){this.updater.enqueueForceUpdate(this,we,"forceUpdate")};function q(){}q.prototype=j.prototype;function V(we,ze,xe){this.props=we,this.context=ze,this.refs=F,this.updater=xe||k}var H=V.prototype=new q;H.constructor=V,P(H,j.prototype),H.isPureReactComponent=!0;var G=Array.isArray;function Y(){}var z={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function le(we,ze,xe){var At=xe.ref;return{$$typeof:n,type:we,key:ze,ref:At!==void 0?At:null,props:xe}}function me(we,ze){return le(we.type,ze,we.props)}function de(we){return typeof we=="object"&&we!==null&&we.$$typeof===n}function be(we){var ze={"=":"=0",":":"=2"};return"$"+we.replace(/[=:]/g,function(xe){return ze[xe]})}var Ee=/\/+/g;function De(we,ze){return typeof we=="object"&&we!==null&&we.key!=null?be(""+we.key):ze.toString(36)}function je(we){switch(we.status){case"fulfilled":return we.value;case"rejected":throw we.reason;default:switch(typeof we.status=="string"?we.then(Y,Y):(we.status="pending",we.then(function(ze){we.status==="pending"&&(we.status="fulfilled",we.value=ze)},function(ze){we.status==="pending"&&(we.status="rejected",we.reason=ze)})),we.status){case"fulfilled":return we.value;case"rejected":throw we.reason}}throw we}function Ie(we,ze,xe,At,it){var bt=typeof we;(bt==="undefined"||bt==="boolean")&&(we=null);var Bt=!1;if(we===null)Bt=!0;else switch(bt){case"bigint":case"string":case"number":Bt=!0;break;case"object":switch(we.$$typeof){case n:case e:Bt=!0;break;case m:return Bt=we._init,Ie(Bt(we._payload),ze,xe,At,it)}}if(Bt)return it=it(we),Bt=At===""?"."+De(we,0):At,G(it)?(xe="",Bt!=null&&(xe=Bt.replace(Ee,"$&/")+"/"),Ie(it,ze,xe,"",function(Se){return Se})):it!=null&&(de(it)&&(it=me(it,xe+(it.key==null||we&&we.key===it.key?"":(""+it.key).replace(Ee,"$&/")+"/")+Bt)),ze.push(it)),1;Bt=0;var Ke=At===""?".":At+":";if(G(we))for(var Te=0;Te<we.length;Te++)At=we[Te],bt=Ke+De(At,Te),Bt+=Ie(At,ze,xe,bt,it);else if(Te=x(we),typeof Te=="function")for(we=Te.call(we),Te=0;!(At=we.next()).done;)At=At.value,bt=Ke+De(At,Te++),Bt+=Ie(At,ze,xe,bt,it);else if(bt==="object"){if(typeof we.then=="function")return Ie(je(we),ze,xe,At,it);throw ze=String(we),Error("Objects are not valid as a React child (found: "+(ze==="[object Object]"?"object with keys {"+Object.keys(we).join(", ")+"}":ze)+"). If you meant to render a collection of children, use an array instead.")}return Bt}function Qe(we,ze,xe){if(we==null)return we;var At=[],it=0;return Ie(we,At,"","",function(bt){return ze.call(xe,bt,it++)}),At}function et(we){if(we._status===-1){var ze=we._result;ze=ze(),ze.then(function(xe){(we._status===0||we._status===-1)&&(we._status=1,we._result=xe)},function(xe){(we._status===0||we._status===-1)&&(we._status=2,we._result=xe)}),we._status===-1&&(we._status=0,we._result=ze)}if(we._status===1)return we._result.default;throw we._result}var dt=typeof reportError=="function"?reportError:function(we){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ze=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof we=="object"&&we!==null&&typeof we.message=="string"?String(we.message):String(we),error:we});if(!window.dispatchEvent(ze))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",we);return}console.error(we)},ke={map:Qe,forEach:function(we,ze,xe){Qe(we,function(){ze.apply(this,arguments)},xe)},count:function(we){var ze=0;return Qe(we,function(){ze++}),ze},toArray:function(we){return Qe(we,function(ze){return ze})||[]},only:function(we){if(!de(we))throw Error("React.Children.only expected to receive a single React element child.");return we}};return $r.Activity=y,$r.Children=ke,$r.Component=j,$r.Fragment=t,$r.Profiler=r,$r.PureComponent=V,$r.StrictMode=i,$r.Suspense=c,$r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,$r.__COMPILER_RUNTIME={__Line truncated
|
||||
*/var UL;function Uae(){if(UL)return Yr;UL=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),M=Symbol.iterator;function x(we){return we===null||typeof we!="object"?null:(we=M&&we[M]||we["@@iterator"],typeof we=="function"?we:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,F={};function j(we,ze,Me){this.props=we,this.context=ze,this.refs=F,this.updater=Me||T}j.prototype.isReactComponent={},j.prototype.setState=function(we,ze){if(typeof we!="object"&&typeof we!="function"&&we!=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,we,ze,"setState")},j.prototype.forceUpdate=function(we){this.updater.enqueueForceUpdate(this,we,"forceUpdate")};function q(){}q.prototype=j.prototype;function V(we,ze,Me){this.props=we,this.context=ze,this.refs=F,this.updater=Me||T}var H=V.prototype=new q;H.constructor=V,P(H,j.prototype),H.isPureReactComponent=!0;var Q=Array.isArray;function Y(){}var z={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function le(we,ze,Me){var lt=Me.ref;return{$$typeof:n,type:we,key:ze,ref:lt!==void 0?lt:null,props:Me}}function pe(we,ze){return le(we.type,ze,we.props)}function de(we){return typeof we=="object"&&we!==null&&we.$$typeof===n}function ve(we){var ze={"=":"=0",":":"=2"};return"$"+we.replace(/[=:]/g,function(Me){return ze[Me]})}var Ee=/\/+/g;function Re(we,ze){return typeof we=="object"&&we!==null&&we.key!=null?ve(""+we.key):ze.toString(36)}function je(we){switch(we.status){case"fulfilled":return we.value;case"rejected":throw we.reason;default:switch(typeof we.status=="string"?we.then(Y,Y):(we.status="pending",we.then(function(ze){we.status==="pending"&&(we.status="fulfilled",we.value=ze)},function(ze){we.status==="pending"&&(we.status="rejected",we.reason=ze)})),we.status){case"fulfilled":return we.value;case"rejected":throw we.reason}}throw we}function Ie(we,ze,Me,lt,nt){var bt=typeof we;(bt==="undefined"||bt==="boolean")&&(we=null);var Bt=!1;if(we===null)Bt=!0;else switch(bt){case"bigint":case"string":case"number":Bt=!0;break;case"object":switch(we.$$typeof){case n:case e:Bt=!0;break;case m:return Bt=we._init,Ie(Bt(we._payload),ze,Me,lt,nt)}}if(Bt)return nt=nt(we),Bt=lt===""?"."+Re(we,0):lt,Q(nt)?(Me="",Bt!=null&&(Me=Bt.replace(Ee,"$&/")+"/"),Ie(nt,ze,Me,"",function(Se){return Se})):nt!=null&&(de(nt)&&(nt=pe(nt,Me+(nt.key==null||we&&we.key===nt.key?"":(""+nt.key).replace(Ee,"$&/")+"/")+Bt)),ze.push(nt)),1;Bt=0;var Ke=lt===""?".":lt+":";if(Q(we))for(var Te=0;Te<we.length;Te++)lt=we[Te],bt=Ke+Re(lt,Te),Bt+=Ie(lt,ze,Me,bt,nt);else if(Te=x(we),typeof Te=="function")for(we=Te.call(we),Te=0;!(lt=we.next()).done;)lt=lt.value,bt=Ke+Re(lt,Te++),Bt+=Ie(lt,ze,Me,bt,nt);else if(bt==="object"){if(typeof we.then=="function")return Ie(je(we),ze,Me,lt,nt);throw ze=String(we),Error("Objects are not valid as a React child (found: "+(ze==="[object Object]"?"object with keys {"+Object.keys(we).join(", ")+"}":ze)+"). If you meant to render a collection of children, use an array instead.")}return Bt}function qe(we,ze,Me){if(we==null)return we;var lt=[],nt=0;return Ie(we,lt,"","",function(bt){return ze.call(Me,bt,nt++)}),lt}function tt(we){if(we._status===-1){var ze=we._result;ze=ze(),ze.then(function(Me){(we._status===0||we._status===-1)&&(we._status=1,we._result=Me)},function(Me){(we._status===0||we._status===-1)&&(we._status=2,we._result=Me)}),we._status===-1&&(we._status=0,we._result=ze)}if(we._status===1)return we._result.default;throw we._result}var At=typeof reportError=="function"?reportError:function(we){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ze=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof we=="object"&&we!==null&&typeof we.message=="string"?String(we.message):String(we),error:we});if(!window.dispatchEvent(ze))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",we);return}console.error(we)},ke={map:qe,forEach:function(we,ze,Me){qe(we,function(){ze.apply(this,arguments)},Me)},count:function(we){var ze=0;return qe(we,function(){ze++}),ze},toArray:function(we){return qe(we,function(ze){return ze})||[]},only:function(we){if(!de(we))throw Error("React.Children.only expected to receive a single React element child.");return we}};return Yr.Activity=y,Yr.Children=ke,Yr.Component=j,Yr.Fragment=t,Yr.Profiler=r,Yr.PureComponent=V,Yr.StrictMode=i,Yr.Suspense=c,Yr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Yr.__COMPILER_RUNTIME={__Line truncated
|
||||
* @license React
|
||||
* scheduler.production.js
|
||||
*
|
||||
@@ -22,7 +22,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var FL;function Wae(){return FL||(FL=1,(function(n){function e(Ie,Qe){var et=Ie.length;Ie.push(Qe);e:for(;0<et;){var dt=et-1>>>1,ke=Ie[dt];if(0<r(ke,Qe))Ie[dt]=Qe,Ie[et]=ke,et=dt;else break e}}function t(Ie){return Ie.length===0?null:Ie[0]}function i(Ie){if(Ie.length===0)return null;var Qe=Ie[0],et=Ie.pop();if(et!==Qe){Ie[0]=et;e:for(var dt=0,ke=Ie.length,we=ke>>>1;dt<we;){var ze=2*(dt+1)-1,xe=Ie[ze],At=ze+1,it=Ie[At];if(0>r(xe,et))At<ke&&0>r(it,xe)?(Ie[dt]=it,Ie[At]=et,dt=At):(Ie[dt]=xe,Ie[ze]=et,dt=ze);else if(At<ke&&0>r(it,et))Ie[dt]=it,Ie[At]=et,dt=At;else break e}}return Qe}function r(Ie,Qe){var et=Ie.sortIndex-Qe.sortIndex;return et!==0?et:Ie.id-Qe.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();n.unstable_now=function(){return s.now()-a}}var c=[],h=[],m=1,y=null,M=3,x=!1,k=!1,P=!1,F=!1,j=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function H(Ie){for(var Qe=t(h);Qe!==null;){if(Qe.callback===null)i(h);else if(Qe.startTime<=Ie)i(h),Qe.sortIndex=Qe.expirationTime,e(c,Qe);else break;Qe=t(h)}}function G(Ie){if(P=!1,H(Ie),!k)if(t(c)!==null)k=!0,Y||(Y=!0,be());else{var Qe=t(h);Qe!==null&&je(G,Qe.startTime-Ie)}}var Y=!1,z=-1,se=5,le=-1;function me(){return F?!0:!(n.unstable_now()-le<se)}function de(){if(F=!1,Y){var Ie=n.unstable_now();le=Ie;var Qe=!0;try{e:{k=!1,P&&(P=!1,q(z),z=-1),x=!0;var et=M;try{t:{for(H(Ie),y=t(c);y!==null&&!(y.expirationTime>Ie&&me());){var dt=y.callback;if(typeof dt=="function"){y.callback=null,M=y.priorityLevel;var ke=dt(y.expirationTime<=Ie);if(Ie=n.unstable_now(),typeof ke=="function"){y.callback=ke,H(Ie),Qe=!0;break t}y===t(c)&&i(c),H(Ie)}else i(c);y=t(c)}if(y!==null)Qe=!0;else{var we=t(h);we!==null&&je(G,we.startTime-Ie),Qe=!1}}break e}finally{y=null,M=et,x=!1}Qe=void 0}}finally{Qe?be():Y=!1}}}var be;if(typeof V=="function")be=function(){V(de)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,De=Ee.port2;Ee.port1.onmessage=de,be=function(){De.postMessage(null)}}else be=function(){j(de,0)};function je(Ie,Qe){z=j(function(){Ie(n.unstable_now())},Qe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Ie){Ie.callback=null},n.unstable_forceFrameRate=function(Ie){0>Ie||125<Ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<Ie?Math.floor(1e3/Ie):5},n.unstable_getCurrentPriorityLevel=function(){return M},n.unstable_next=function(Ie){switch(M){case 1:case 2:case 3:var Qe=3;break;default:Qe=M}var et=M;M=Qe;try{return Ie()}finally{M=et}},n.unstable_requestPaint=function(){F=!0},n.unstable_runWithPriority=function(Ie,Qe){switch(Ie){case 1:case 2:case 3:case 4:case 5:break;default:Ie=3}var et=M;M=Ie;try{return Qe()}finally{M=et}},n.unstable_scheduleCallback=function(Ie,Qe,et){var dt=n.unstable_now();switch(typeof et=="object"&&et!==null?(et=et.delay,et=typeof et=="number"&&0<et?dt+et:dt):et=dt,Ie){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=et+ke,Ie={id:m++,callback:Qe,priorityLevel:Ie,startTime:et,expirationTime:ke,sortIndex:-1},et>dt?(Ie.sortIndex=et,e(h,Ie),t(c)===null&&Ie===t(h)&&(P?(q(z),z=-1):P=!0,je(G,et-dt))):(Ie.sortIndex=ke,e(c,Ie),k||x||(k=!0,Y||(Y=!0,be()))),Ie},n.unstable_shouldYield=me,n.unstable_wrapCallback=function(Ie){var Qe=M;return function(){var et=M;M=Qe;try{return Ie.apply(this,arguments)}finally{M=et}}}})(nO)),nO}var zL;function Qae(){return zL||(zL=1,tO.exports=Wae()),tO.exports}var iO={exports:{}},KA={};/**
|
||||
*/var FL;function Wae(){return FL||(FL=1,(function(n){function e(Ie,qe){var tt=Ie.length;Ie.push(qe);e:for(;0<tt;){var At=tt-1>>>1,ke=Ie[At];if(0<r(ke,qe))Ie[At]=qe,Ie[tt]=ke,tt=At;else break e}}function t(Ie){return Ie.length===0?null:Ie[0]}function i(Ie){if(Ie.length===0)return null;var qe=Ie[0],tt=Ie.pop();if(tt!==qe){Ie[0]=tt;e:for(var At=0,ke=Ie.length,we=ke>>>1;At<we;){var ze=2*(At+1)-1,Me=Ie[ze],lt=ze+1,nt=Ie[lt];if(0>r(Me,tt))lt<ke&&0>r(nt,Me)?(Ie[At]=nt,Ie[lt]=tt,At=lt):(Ie[At]=Me,Ie[ze]=tt,At=ze);else if(lt<ke&&0>r(nt,tt))Ie[At]=nt,Ie[lt]=tt,At=lt;else break e}}return qe}function r(Ie,qe){var tt=Ie.sortIndex-qe.sortIndex;return tt!==0?tt:Ie.id-qe.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();n.unstable_now=function(){return s.now()-a}}var c=[],h=[],m=1,y=null,M=3,x=!1,T=!1,P=!1,F=!1,j=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function H(Ie){for(var qe=t(h);qe!==null;){if(qe.callback===null)i(h);else if(qe.startTime<=Ie)i(h),qe.sortIndex=qe.expirationTime,e(c,qe);else break;qe=t(h)}}function Q(Ie){if(P=!1,H(Ie),!T)if(t(c)!==null)T=!0,Y||(Y=!0,ve());else{var qe=t(h);qe!==null&&je(Q,qe.startTime-Ie)}}var Y=!1,z=-1,se=5,le=-1;function pe(){return F?!0:!(n.unstable_now()-le<se)}function de(){if(F=!1,Y){var Ie=n.unstable_now();le=Ie;var qe=!0;try{e:{T=!1,P&&(P=!1,q(z),z=-1),x=!0;var tt=M;try{t:{for(H(Ie),y=t(c);y!==null&&!(y.expirationTime>Ie&&pe());){var At=y.callback;if(typeof At=="function"){y.callback=null,M=y.priorityLevel;var ke=At(y.expirationTime<=Ie);if(Ie=n.unstable_now(),typeof ke=="function"){y.callback=ke,H(Ie),qe=!0;break t}y===t(c)&&i(c),H(Ie)}else i(c);y=t(c)}if(y!==null)qe=!0;else{var we=t(h);we!==null&&je(Q,we.startTime-Ie),qe=!1}}break e}finally{y=null,M=tt,x=!1}qe=void 0}}finally{qe?ve():Y=!1}}}var ve;if(typeof V=="function")ve=function(){V(de)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,Re=Ee.port2;Ee.port1.onmessage=de,ve=function(){Re.postMessage(null)}}else ve=function(){j(de,0)};function je(Ie,qe){z=j(function(){Ie(n.unstable_now())},qe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Ie){Ie.callback=null},n.unstable_forceFrameRate=function(Ie){0>Ie||125<Ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<Ie?Math.floor(1e3/Ie):5},n.unstable_getCurrentPriorityLevel=function(){return M},n.unstable_next=function(Ie){switch(M){case 1:case 2:case 3:var qe=3;break;default:qe=M}var tt=M;M=qe;try{return Ie()}finally{M=tt}},n.unstable_requestPaint=function(){F=!0},n.unstable_runWithPriority=function(Ie,qe){switch(Ie){case 1:case 2:case 3:case 4:case 5:break;default:Ie=3}var tt=M;M=Ie;try{return qe()}finally{M=tt}},n.unstable_scheduleCallback=function(Ie,qe,tt){var At=n.unstable_now();switch(typeof tt=="object"&&tt!==null?(tt=tt.delay,tt=typeof tt=="number"&&0<tt?At+tt:At):tt=At,Ie){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=tt+ke,Ie={id:m++,callback:qe,priorityLevel:Ie,startTime:tt,expirationTime:ke,sortIndex:-1},tt>At?(Ie.sortIndex=tt,e(h,Ie),t(c)===null&&Ie===t(h)&&(P?(q(z),z=-1):P=!0,je(Q,tt-At))):(Ie.sortIndex=ke,e(c,Ie),T||x||(T=!0,Y||(Y=!0,ve()))),Ie},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(Ie){var qe=M;return function(){var tt=M;M=qe;try{return Ie.apply(this,arguments)}finally{M=tt}}}})(nO)),nO}var zL;function Qae(){return zL||(zL=1,tO.exports=Wae()),tO.exports}var iO={exports:{}},zA={};/**
|
||||
* @license React
|
||||
* react-dom.production.js
|
||||
*
|
||||
@@ -30,7 +30,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var jL;function qae(){if(jL)return KA;jL=1;var n=Ya();function e(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for("react.portal");function o(c,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:y==null?null:""+y,children:c,containerInfo:h,implementation:m}}var s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(c,h){if(c==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return KA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,KA.createPortal=function(c,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return o(c,h,null,m)},KA.flushSync=function(c){var h=s.T,m=i.p;try{if(s.T=null,i.p=2,c)return c()}finally{s.T=h,i.p=m,i.d.f()}},KA.preconnect=function(c,h){typeof c=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(c,h))},KA.prefetchDNS=function(c){typeof c=="string"&&i.d.D(c)},KA.preinit=function(c,h){if(typeof c=="string"&&h&&typeof h.as=="string"){var m=h.as,y=a(m,h.crossOrigin),M=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(c,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:M,fetchPriority:x}):m==="script"&&i.d.X(c,{crossOrigin:y,integrity:M,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},KA.preinitModule=function(c,h){if(typeof c=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=a(h.as,h.crossOrigin);i.d.M(c,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(c)},KA.preload=function(c,h){if(typeof c=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=a(m,h.crossOrigin);i.d.L(c,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},KA.preloadModule=function(c,h){if(typeof c=="string")if(h){var m=a(h.as,h.crossOrigin);i.d.m(c,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(c)},KA.requestFormReset=function(c){i.d.r(c)},KA.unstable_batchedUpdates=function(c,h){return c(h)},KA.useFormState=function(c,h,m){return s.H.useFormState(c,h,m)},KA.useFormStatus=function(){return s.H.useHostTransitionStatus()},KA.version="19.2.0",KA}var NL;function jD(){if(NL)return iO.exports;NL=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),iO.exports=qae(),iO.exports}var GL;function Yae(){if(GL)return s2;GL=1;/**
|
||||
*/var jL;function qae(){if(jL)return zA;jL=1;var n=Qa();function e(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for("react.portal");function o(c,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:y==null?null:""+y,children:c,containerInfo:h,implementation:m}}var s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(c,h){if(c==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return zA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zA.createPortal=function(c,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return o(c,h,null,m)},zA.flushSync=function(c){var h=s.T,m=i.p;try{if(s.T=null,i.p=2,c)return c()}finally{s.T=h,i.p=m,i.d.f()}},zA.preconnect=function(c,h){typeof c=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(c,h))},zA.prefetchDNS=function(c){typeof c=="string"&&i.d.D(c)},zA.preinit=function(c,h){if(typeof c=="string"&&h&&typeof h.as=="string"){var m=h.as,y=a(m,h.crossOrigin),M=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(c,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:M,fetchPriority:x}):m==="script"&&i.d.X(c,{crossOrigin:y,integrity:M,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},zA.preinitModule=function(c,h){if(typeof c=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=a(h.as,h.crossOrigin);i.d.M(c,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(c)},zA.preload=function(c,h){if(typeof c=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=a(m,h.crossOrigin);i.d.L(c,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},zA.preloadModule=function(c,h){if(typeof c=="string")if(h){var m=a(h.as,h.crossOrigin);i.d.m(c,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(c)},zA.requestFormReset=function(c){i.d.r(c)},zA.unstable_batchedUpdates=function(c,h){return c(h)},zA.useFormState=function(c,h,m){return s.H.useFormState(c,h,m)},zA.useFormStatus=function(){return s.H.useHostTransitionStatus()},zA.version="19.2.0",zA}var NL;function jD(){if(NL)return iO.exports;NL=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),iO.exports=qae(),iO.exports}var GL;function Yae(){if(GL)return a2;GL=1;/**
|
||||
* @license React
|
||||
* react-dom-client.production.js
|
||||
*
|
||||
@@ -38,49 +38,49 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var n=Qae(),e=Ya(),t=jD();function i(A){var g="https://react.dev/errors/"+A;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+A+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function o(A){var g=A,_=A;if(A.alternate)for(;g.return;)g=g.return;else{A=g;do g=A,(g.flags&4098)!==0&&(_=g.return),A=g.return;while(A)}return g.tag===3?_:null}function s(A){if(A.tag===13){var g=A.memoizedState;if(g===null&&(A=A.alternate,A!==null&&(g=A.memoizedState)),g!==null)return g.dehydrated}return null}function a(A){if(A.tag===31){var g=A.memoizedState;if(g===null&&(A=A.alternate,A!==null&&(g=A.memoizedState)),g!==null)return g.dehydrated}return null}function c(A){if(o(A)!==A)throw Error(i(188))}function h(A){var g=A.alternate;if(!g){if(g=o(A),g===null)throw Error(i(188));return g!==A?null:A}for(var _=A,O=g;;){var N=_.return;if(N===null)break;var J=N.alternate;if(J===null){if(O=N.return,O!==null){_=O;continue}break}if(N.child===J.child){for(J=N.child;J;){if(J===_)return c(N),A;if(J===O)return c(N),g;J=J.sibling}throw Error(i(188))}if(_.return!==O.return)_=N,O=J;else{for(var Me=!1,Ye=N.child;Ye;){if(Ye===_){Me=!0,_=N,O=J;break}if(Ye===O){Me=!0,O=N,_=J;break}Ye=Ye.sibling}if(!Me){for(Ye=J.child;Ye;){if(Ye===_){Me=!0,_=J,O=N;break}if(Ye===O){Me=!0,O=J,_=N;break}Ye=Ye.sibling}if(!Me)throw Error(i(189))}}if(_.alternate!==O)throw Error(i(190))}if(_.tag!==3)throw Error(i(188));return _.stateNode.current===_?A:g}function m(A){var g=A.tag;if(g===5||g===26||g===27||g===6)return A;for(A=A.child;A!==null;){if(g=m(A),g!==null)return g;A=A.sibling}return null}var y=Object.assign,M=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),V=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function be(A){return A===null||typeof A!="object"?null:(A=de&&A[de]||A["@@iterator"],typeof A=="function"?A:null)}var Ee=Symbol.for("react.client.reference");function De(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===Ee?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case P:return"Fragment";case j:return"Profiler";case F:return"StrictMode";case G:return"Suspense";case Y:return"SuspenseList";case le:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case k:return"Portal";case V:return A.displayName||"Context";case q:return(A._context.displayName||"Context")+".Consumer";case H:var g=A.render;return A=A.displayName,A||(A=g.displayName||g.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case z:return g=A.displayName||null,g!==null?g:De(A.type)||"Memo";case se:g=A._payload,A=A._init;try{return De(A(g))}catch{}}return null}var je=Array.isArray,Ie=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qe=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et={pending:!1,data:null,method:null,action:null},dt=[],ke=-1;function we(A){return{current:A}}function ze(A){0>ke||(A.current=dt[ke],dt[ke]=null,ke--)}function xe(A,g){ke++,dt[ke]=A.current,A.current=g}var At=we(null),it=we(null),bt=we(null),Bt=we(null);function Ke(A,g){switch(xe(bt,g),xe(it,A),xe(At,null),g.nodeType){case 9:case 11:A=(A=g.documentElement)&&(A=A.namespaceURI)?RA(A):0;break;default:if(A=g.tagName,g=g.namespaceURI)g=RA(g),A=ac(g,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}ze(At),xe(At,A)}function Te(){ze(At),ze(it),ze(bt)}function Se(A){A.memoizedState!==null&&xe(Bt,A);var g=At.current,_=ac(g,A.type);g!==_&&(xe(it,A),xe(At,_))}function Ne(A){it.current===A&&(ze(At),ze(it)),Bt.current===A&&(ze(Bt),An._currentValue=et)}var ut,rt;function pt(A){if(ut===void 0)try{throw Error()}catch(_){var g=_.stack.trim().match(/\n( *(at )?)/);ut=g&&g[1]||"",rt=-1<_.stack.indexOf(`
|
||||
*/var n=Qae(),e=Qa(),t=jD();function i(A){var g="https://react.dev/errors/"+A;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+A+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function o(A){var g=A,_=A;if(A.alternate)for(;g.return;)g=g.return;else{A=g;do g=A,(g.flags&4098)!==0&&(_=g.return),A=g.return;while(A)}return g.tag===3?_:null}function s(A){if(A.tag===13){var g=A.memoizedState;if(g===null&&(A=A.alternate,A!==null&&(g=A.memoizedState)),g!==null)return g.dehydrated}return null}function a(A){if(A.tag===31){var g=A.memoizedState;if(g===null&&(A=A.alternate,A!==null&&(g=A.memoizedState)),g!==null)return g.dehydrated}return null}function c(A){if(o(A)!==A)throw Error(i(188))}function h(A){var g=A.alternate;if(!g){if(g=o(A),g===null)throw Error(i(188));return g!==A?null:A}for(var _=A,I=g;;){var W=_.return;if(W===null)break;var J=W.alternate;if(J===null){if(I=W.return,I!==null){_=I;continue}break}if(W.child===J.child){for(J=W.child;J;){if(J===_)return c(W),A;if(J===I)return c(W),g;J=J.sibling}throw Error(i(188))}if(_.return!==I.return)_=W,I=J;else{for(var xe=!1,$e=W.child;$e;){if($e===_){xe=!0,_=W,I=J;break}if($e===I){xe=!0,I=W,_=J;break}$e=$e.sibling}if(!xe){for($e=J.child;$e;){if($e===_){xe=!0,_=J,I=W;break}if($e===I){xe=!0,I=J,_=W;break}$e=$e.sibling}if(!xe)throw Error(i(189))}}if(_.alternate!==I)throw Error(i(190))}if(_.tag!==3)throw Error(i(188));return _.stateNode.current===_?A:g}function m(A){var g=A.tag;if(g===5||g===26||g===27||g===6)return A;for(A=A.child;A!==null;){if(g=m(A),g!==null)return g;A=A.sibling}return null}var y=Object.assign,M=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),V=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function ve(A){return A===null||typeof A!="object"?null:(A=de&&A[de]||A["@@iterator"],typeof A=="function"?A:null)}var Ee=Symbol.for("react.client.reference");function Re(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===Ee?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case P:return"Fragment";case j:return"Profiler";case F:return"StrictMode";case Q:return"Suspense";case Y:return"SuspenseList";case le:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case T:return"Portal";case V:return A.displayName||"Context";case q:return(A._context.displayName||"Context")+".Consumer";case H:var g=A.render;return A=A.displayName,A||(A=g.displayName||g.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case z:return g=A.displayName||null,g!==null?g:Re(A.type)||"Memo";case se:g=A._payload,A=A._init;try{return Re(A(g))}catch{}}return null}var je=Array.isArray,Ie=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt={pending:!1,data:null,method:null,action:null},At=[],ke=-1;function we(A){return{current:A}}function ze(A){0>ke||(A.current=At[ke],At[ke]=null,ke--)}function Me(A,g){ke++,At[ke]=A.current,A.current=g}var lt=we(null),nt=we(null),bt=we(null),Bt=we(null);function Ke(A,g){switch(Me(bt,g),Me(nt,A),Me(lt,null),g.nodeType){case 9:case 11:A=(A=g.documentElement)&&(A=A.namespaceURI)?vg(A):0;break;default:if(A=g.tagName,g=g.namespaceURI)g=vg(g),A=Ja(g,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}ze(lt),Me(lt,A)}function Te(){ze(lt),ze(nt),ze(bt)}function Se(A){A.memoizedState!==null&&Me(Bt,A);var g=lt.current,_=Ja(g,A.type);g!==_&&(Me(nt,A),Me(lt,_))}function We(A){nt.current===A&&(ze(lt),ze(nt)),Bt.current===A&&(ze(Bt),Zt._currentValue=tt)}var at,it;function ft(A){if(at===void 0)try{throw Error()}catch(_){var g=_.stack.trim().match(/\n( *(at )?)/);at=g&&g[1]||"",it=-1<_.stack.indexOf(`
|
||||
at`)?" (<anonymous>)":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+ut+A+rt}var Dt=!1;function Ot(A,g){if(!A||Dt)return"";Dt=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var O={DetermineComponentFrameRoot:function(){try{if(g){var mn=function(){throw Error()};if(Object.defineProperty(mn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(mn,[])}catch(rn){var Xt=rn}Reflect.construct(A,[],mn)}else{try{mn.call()}catch(rn){Xt=rn}A.call(mn.prototype)}}else{try{throw Error()}catch(rn){Xt=rn}(mn=A())&&typeof mn.catch=="function"&&mn.catch(function(){})}}catch(rn){if(rn&&Xt&&typeof rn.stack=="string")return[rn.stack,Xt.stack]}return[null,null]}};O.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(O.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(O.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var J=O.DetermineComponentFrameRoot(),Me=J[0],Ye=J[1];if(Me&&Ye){var _t=Me.split(`
|
||||
`),$t=Ye.split(`
|
||||
`);for(N=O=0;O<_t.length&&!_t[O].includes("DetermineComponentFrameRoot");)O++;for(;N<$t.length&&!$t[N].includes("DetermineComponentFrameRoot");)N++;if(O===_t.length||N===$t.length)for(O=_t.length-1,N=$t.length-1;1<=O&&0<=N&&_t[O]!==$t[N];)N--;for(;1<=O&&0<=N;O--,N--)if(_t[O]!==$t[N]){if(O!==1||N!==1)do if(O--,N--,0>N||_t[O]!==$t[N]){var ln=`
|
||||
`+_t[O].replace(" at new "," at ");return A.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",A.displayName)),ln}while(1<=O&&0<=N);break}}}finally{Dt=!1,Error.prepareStackTrace=_}return(_=A?A.displayName||A.name:"")?pt(_):""}function Jt(A,g){switch(A.tag){case 26:case 27:case 5:return pt(A.type);case 16:return pt("Lazy");case 13:return A.child!==g&&g!==null?pt("Suspense Fallback"):pt("Suspense");case 19:return pt("SuspenseList");case 0:case 15:return Ot(A.type,!1);case 11:return Ot(A.type.render,!1);case 1:return Ot(A.type,!0);case 31:return pt("Activity");default:return""}}function Tn(A){try{var g="",_=null;do g+=Jt(A,_),_=A,A=A.return;while(A);return g}catch(O){return`
|
||||
Error generating stack: `+O.message+`
|
||||
`+O.stack}}var Ln=Object.prototype.hasOwnProperty,ii=n.unstable_scheduleCallback,wn=n.unstable_cancelCallback,Rn=n.unstable_shouldYield,gn=n.unstable_requestPaint,Yn=n.unstable_now,Dn=n.unstable_getCurrentPriorityLevel,Tt=n.unstable_ImmediatePriority,_e=n.unstable_UserBlockingPriority,oe=n.unstable_NormalPriority,ee=n.unstable_LowPriority,ne=n.unstable_IdlePriority,ue=n.log,ye=n.unstable_setDisableYieldValue,Ue=null,Ve=null;function lt(A){if(typeof ue=="function"&&ye(A),Ve&&typeof Ve.setStrictMode=="function")try{Ve.setStrictMode(Ue,A)}catch{}}var ge=Math.clz32?Math.clz32:yt,Be=Math.log,v=Math.LN2;function yt(A){return A>>>=0,A===0?32:31-(Be(A)/v|0)|0}var Mt=256,Pt=262144,st=4194304;function fn(A){var g=A&42;if(g!==0)return g;switch(A&-A){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 A&261888;case 262144:case 524288:case 1048576:case 2097152:return A&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return A&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return A}}function Fn(A,g,_){var O=A.pendingLanes;if(O===0)return 0;var N=0,J=A.suspendedLanes,Me=A.pingedLanes;A=A.warmLanes;var Ye=O&134217727;return Ye!==0?(O=Ye&~J,O!==0?N=fn(O):(Me&=Ye,Me!==0?N=fn(Me):_||(_=Ye&~A,_!==0&&(N=fn(_))))):(Ye=O&~J,Ye!==0?N=fn(Ye):Me!==0?N=fn(Me):_||(_=O&~A,_!==0&&(N=fn(_)))),N===0?0:g!==0&&g!==N&&(g&J)===0&&(J=N&-N,_=g&-g,J>=_||J===32&&(_&4194048)!==0)?g:N}function pn(A,g){return(A.pendingLanes&~(A.suspendedLanes&~A.pingedLanes)&g)===0}function $n(A,g){switch(A){case 1:case 2:case 4:case 8:case 64:return g+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return g+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zn(){var A=st;return st<<=1,(st&62914560)===0&&(st=4194304),A}function ai(A){for(var g=[],_=0;31>_;_++)g.push(A);return g}function Hi(A,g){A.pendingLanes|=g,g!==268435456&&(A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0)}function Ti(A,g,_,O,N,J){var Me=A.pendingLanes;A.pendingLanes=_,A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0,A.expiredLanes&=_,A.entangledLanes&=_,A.errorRecoveryDisabledLanes&=_,A.shellSuspendCounter=0;var Ye=A.entanglements,_t=A.expirationTimes,$t=A.hiddenUpdates;for(_=Me&~_;0<_;){var ln=31-ge(_),mn=1<<ln;Ye[ln]=0,_t[ln]=-1;var Xt=$t[ln];if(Xt!==null)for($t[ln]=null,ln=0;ln<Xt.length;ln++){var rn=Xt[ln];rn!==null&&(rn.lane&=-536870913)}_&=~mn}O!==0&&tr(A,O,0),J!==0&&N===0&&A.tag!==0&&(A.suspendedLanes|=J&~(Me&~g))}function tr(A,g,_){A.pendingLanes|=g,A.suspendedLanes&=~g;var O=31-ge(g);A.entangledLanes|=g,A.entanglements[O]=A.entanglements[O]|1073741824|_&261930}function oi(A,g){var _=A.entangledLanes|=g;for(A=A.entanglements;_;){var O=31-ge(_),N=1<<O;N&g|A[O]&g&&(A[O]|=g),_&=~N}}function Pi(A,g){var _=g&-g;return _=(_&42)!==0?1:Zt(_),(_&(A.suspendedLanes|g))!==0?0:_}function Zt(A){switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=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:A=128;break;case 268435456:A=134217728;break;default:A=0}return A}function pr(A){return A&=-A,2<A?8<A?(A&134217727)!==0?32:268435456:8:2}function Zi(){var A=Qe.p;return A!==0?A:(A=window.event,A===void 0?32:jc(A.type))}function ea(A,g){var _=Qe.p;try{return Qe.p=A,g()}finally{Qe.p=_}}var no=Math.random().toString(36).slice(2),sn="__reactFiber$"+no,Ci="__reactProps$"+no,Ui="__reactContainer$"+no,nr="__reactEvents$"+no,Jl="__reactListeners$"+no,Al="__reactHandles$"+no,Ki="__reactResources$"+no,$a="__reactMarker$"+no;function hl(A){delete A[sn],delete A[Ci],delete A[nr],delete A[Jl],delete A[Al]}function fo(A){var g=A[sn];if(g)return g;for(var _=A.parentNode;_;){if(g=_[Ui]||_[sn]){if(_=g.alternate,g.child!==null||_!==null&&_.child!==null)for(A=BC(A);A!==null;){if(_=A[sn])return _;A=BC(A)}return g}A=_,_=A.parentNode}return null}function Qs(A){if(A=A[sn]||A[Ui]){var g=A.tag;if(g===5||g===6||g===13||g===31||g===26||g===27||g===3)return A}return null}function Kl(A){var g=A.tag;if(g===5||g===26||g===27||g===6)return A.stateNode;throw Error(i(33))}function io(A){var g=A[Ki];return g||(g=A[Ki]={hoistableStyles:new Map,hoistableScripts:new Map}),g}function As(A){A[$a]=!0}var pa=new Set,Dr={};function Ll(A,g){Da(A,g),Da(A+"Capture",g)}function Da(A,g){for(Dr[A]=g,A=0;A<g.length;A++)pa.add(g[A])}var qs=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u03
Line truncated
|
||||
`).replace(cy,"")}function zc(A,g){return g=Fv(g),Fv(A)===g}function Fo(A,g,_,O,N,J){switch(_){case"children":typeof O=="string"?g==="body"||g==="textarea"&&O===""||qr(A,O):(typeof O=="number"||typeof O=="bigint")&&g!=="body"&&qr(A,""+O);break;case"className":mc(A,"class",O);break;case"tabIndex":mc(A,"tabindex",O);break;case"dir":case"role":case"viewBox":case"width":case"height":mc(A,_,O);break;case"style":Vo(A,O,J);break;case"data":if(g!=="object"){mc(A,"data",O);break}case"src":case"href":if(O===""&&(g!=="a"||_!=="href")){A.removeAttribute(_);break}if(O==null||typeof O=="function"||typeof O=="symbol"||typeof O=="boolean"){A.removeAttribute(_);break}O=El(""+O),A.setAttribute(_,O);break;case"action":case"formAction":if(typeof O=="function"){A.setAttribute(_,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof J=="function"&&(_==="formAction"?(g!=="input"&&Fo(A,g,"name",N.name,N,null),Fo(A,g,"formEncType",N.formEncType,N,null),Fo(A,g,"formMethod",N.formMethod,N,null),Fo(A,g,"formTarget",N.formTarget,N,null)):(Fo(A,g,"encType",N.encType,N,null),Fo(A,g,"method",N.method,N,null),Fo(A,g,"target",N.target,N,null)));if(O==null||typeof O=="symbol"||typeof O=="boolean"){A.removeAttribute(_);break}O=El(""+O),A.setAttribute(_,O);break;case"onClick":O!=null&&(A.onclick=Va);break;case"onScroll":O!=null&&Zr("scroll",A);break;case"onScrollEnd":O!=null&&Zr("scrollend",A);break;case"dangerouslySetInnerHTML":if(O!=null){if(typeof O!="object"||!("__html"in O))throw Error(i(61));if(_=O.__html,_!=null){if(N.children!=null)throw Error(i(60));A.innerHTML=_}}break;case"multiple":A.multiple=O&&typeof O!="function"&&typeof O!="symbol";break;case"muted":A.muted=O&&typeof O!="function"&&typeof O!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(O==null||typeof O=="function"||typeof O=="boolean"||typeof O=="symbol"){A.removeAttribute("xlink:href");break}_=El(""+O),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",_);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":O!=null&&typeof O!="function"&&typeof O!="symbol"?A.setAttribute(_,""+O):A.removeAttribute(_);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":O&&typeof O!="function"&&typeof O!="symbol"?A.setAttribute(_,""):A.removeAttribute(_);break;case"capture":case"download":O===!0?A.setAttribute(_,""):O!==!1&&O!=null&&typeof O!="function"&&typeof O!="symbol"?A.setAttribute(_,O):A.removeAttribute(_);break;case"cols":case"rows":case"size":case"span":O!=null&&typeof O!="function"&&typeof O!="symbol"&&!isNaN(O)&&1<=O?A.setAttribute(_,O):A.removeAttribute(_);break;case"rowSpan":case"start":O==null||typeof O=="function"||typeof O=="symbol"||isNaN(O)?A.removeAttribute(_):A.setAttribute(_,O);break;case"popover":Zr("beforetoggle",A),Zr("toggle",A),Vc(A,"popover",O);break;case"xlinkActuate":ma(A,"http://www.w3.org/1999/xlink","xlink:actuate",O);break;case"xlinkArcrole":ma(A,"http://www.w3.org/1999/xlink","xlink:arcrole",O);break;case"xlinkRole":ma(A,"http://www.w3.org/1999/xlink","xlink:role",O);break;case"xlinkShow":ma(A,"http://www.w3.org/1999/xlink","xlink:show",O);break;case"xlinkTitle":ma(A,"http://www.w3.org/1999/xlink","xlink:title",O);break;case"xlinkType":ma(A,"http://www.w3.org/1999/xlink","xlink:type",O);break;case"xmlBase":ma(A,"http://www.w3.org/XML/1998/namespace","xml:base",O);break;case"xmlLang":ma(A,"http://www.w3.org/XML/1998/namespace","xml:lang",O);break;case"xmlSpace":ma(A,"http://www.w3.org/XML/1998/namespace","xml:space",O);break;case"is":Vc(A,"is",O);break;case"innerText":case"textContent":break;default:(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N")&&(_=Cu.get(_)||_,Vc(A,_,O))}}function Kp(A,g,_,O,N,J){switch(_){case"style":Vo(A,O,J);break;case"dangerouslySetInnerHTML":if(O!=null){if(typeof O!="object"||!("__html"in O))throw Error(i(61));if(_=O.__html,_!=null){if(N.children!=null)throw Error(i(60));A.innerHTML=_}}break;case"children":typeof O=="string"?qr(A,O):(typeof O=="number"||typeof O=="bigint")&&qr(A,""+O);break;case"onScroll":O!=null&&Zr("scroll",A);break;case"onScrollEnd":O!=null&&Zr("scrollend",A);break;case"onClick":O!=null&&(A.onclick=Va);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||
`+at+A+it}var Dt=!1;function Ot(A,g){if(!A||Dt)return"";Dt=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var I={DetermineComponentFrameRoot:function(){try{if(g){var pn=function(){throw Error()};if(Object.defineProperty(pn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pn,[])}catch(rn){var Xt=rn}Reflect.construct(A,[],pn)}else{try{pn.call()}catch(rn){Xt=rn}A.call(pn.prototype)}}else{try{throw Error()}catch(rn){Xt=rn}(pn=A())&&typeof pn.catch=="function"&&pn.catch(function(){})}}catch(rn){if(rn&&Xt&&typeof rn.stack=="string")return[rn.stack,Xt.stack]}return[null,null]}};I.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var W=Object.getOwnPropertyDescriptor(I.DetermineComponentFrameRoot,"name");W&&W.configurable&&Object.defineProperty(I.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var J=I.DetermineComponentFrameRoot(),xe=J[0],$e=J[1];if(xe&&$e){var _t=xe.split(`
|
||||
`),$t=$e.split(`
|
||||
`);for(W=I=0;I<_t.length&&!_t[I].includes("DetermineComponentFrameRoot");)I++;for(;W<$t.length&&!$t[W].includes("DetermineComponentFrameRoot");)W++;if(I===_t.length||W===$t.length)for(I=_t.length-1,W=$t.length-1;1<=I&&0<=W&&_t[I]!==$t[W];)W--;for(;1<=I&&0<=W;I--,W--)if(_t[I]!==$t[W]){if(I!==1||W!==1)do if(I--,W--,0>W||_t[I]!==$t[W]){var ln=`
|
||||
`+_t[I].replace(" at new "," at ");return A.displayName&&ln.includes("<anonymous>")&&(ln=ln.replace("<anonymous>",A.displayName)),ln}while(1<=I&&0<=W);break}}}finally{Dt=!1,Error.prepareStackTrace=_}return(_=A?A.displayName||A.name:"")?ft(_):""}function Jt(A,g){switch(A.tag){case 26:case 27:case 5:return ft(A.type);case 16:return ft("Lazy");case 13:return A.child!==g&&g!==null?ft("Suspense Fallback"):ft("Suspense");case 19:return ft("SuspenseList");case 0:case 15:return Ot(A.type,!1);case 11:return Ot(A.type.render,!1);case 1:return Ot(A.type,!0);case 31:return ft("Activity");default:return""}}function Dn(A){try{var g="",_=null;do g+=Jt(A,_),_=A,A=A.return;while(A);return g}catch(I){return`
|
||||
Error generating stack: `+I.message+`
|
||||
`+I.stack}}var Pn=Object.prototype.hasOwnProperty,oi=n.unstable_scheduleCallback,In=n.unstable_cancelCallback,Tn=n.unstable_shouldYield,dn=n.unstable_requestPaint,$n=n.unstable_now,Un=n.unstable_getCurrentPriorityLevel,It=n.unstable_ImmediatePriority,_e=n.unstable_UserBlockingPriority,oe=n.unstable_NormalPriority,ee=n.unstable_LowPriority,ne=n.unstable_IdlePriority,ue=n.log,be=n.unstable_setDisableYieldValue,Le=null,Ve=null;function rt(A){if(typeof ue=="function"&&be(A),Ve&&typeof Ve.setStrictMode=="function")try{Ve.setStrictMode(Le,A)}catch{}}var ye=Math.clz32?Math.clz32:yt,Be=Math.log,v=Math.LN2;function yt(A){return A>>>=0,A===0?32:31-(Be(A)/v|0)|0}var Mt=256,Pt=262144,en=4194304;function mt(A){var g=A&42;if(g!==0)return g;switch(A&-A){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 A&261888;case 262144:case 524288:case 1048576:case 2097152:return A&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return A&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return A}}function Qn(A,g,_){var I=A.pendingLanes;if(I===0)return 0;var W=0,J=A.suspendedLanes,xe=A.pingedLanes;A=A.warmLanes;var $e=I&134217727;return $e!==0?(I=$e&~J,I!==0?W=mt(I):(xe&=$e,xe!==0?W=mt(xe):_||(_=$e&~A,_!==0&&(W=mt(_))))):($e=I&~J,$e!==0?W=mt($e):xe!==0?W=mt(xe):_||(_=I&~A,_!==0&&(W=mt(_)))),W===0?0:g!==0&&g!==W&&(g&J)===0&&(J=W&-W,_=g&-g,J>=_||J===32&&(_&4194048)!==0)?g:W}function Xn(A,g){return(A.pendingLanes&~(A.suspendedLanes&~A.pingedLanes)&g)===0}function Cn(A,g){switch(A){case 1:case 2:case 4:case 8:case 64:return g+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return g+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fn(){var A=en;return en<<=1,(en&62914560)===0&&(en=4194304),A}function pi(A){for(var g=[],_=0;31>_;_++)g.push(A);return g}function Hi(A,g){A.pendingLanes|=g,g!==268435456&&(A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0)}function Ii(A,g,_,I,W,J){var xe=A.pendingLanes;A.pendingLanes=_,A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0,A.expiredLanes&=_,A.entangledLanes&=_,A.errorRecoveryDisabledLanes&=_,A.shellSuspendCounter=0;var $e=A.entanglements,_t=A.expirationTimes,$t=A.hiddenUpdates;for(_=xe&~_;0<_;){var ln=31-ye(_),pn=1<<ln;$e[ln]=0,_t[ln]=-1;var Xt=$t[ln];if(Xt!==null)for($t[ln]=null,ln=0;ln<Xt.length;ln++){var rn=Xt[ln];rn!==null&&(rn.lane&=-536870913)}_&=~pn}I!==0&&Ar(A,I,0),J!==0&&W===0&&A.tag!==0&&(A.suspendedLanes|=J&~(xe&~g))}function Ar(A,g,_){A.pendingLanes|=g,A.suspendedLanes&=~g;var I=31-ye(g);A.entangledLanes|=g,A.entanglements[I]=A.entanglements[I]|1073741824|_&261930}function ii(A,g){var _=A.entangledLanes|=g;for(A=A.entanglements;_;){var I=31-ye(_),W=1<<I;W&g|A[I]&g&&(A[I]|=g),_&=~W}}function Fi(A,g){var _=g&-g;return _=(_&42)!==0?1:Ri(_),(_&(A.suspendedLanes|g))!==0?0:_}function Ri(A){switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=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:A=128;break;case 268435456:A=134217728;break;default:A=0}return A}function on(A){return A&=-A,2<A?8<A?(A&134217727)!==0?32:268435456:8:2}function nr(){var A=qe.p;return A!==0?A:(A=window.event,A===void 0?32:wl(A.type))}function Go(A,g){var _=qe.p;try{return qe.p=A,g()}finally{qe.p=_}}var Co=Math.random().toString(36).slice(2),gr="__reactFiber$"+Co,gn="__reactProps$"+Co,Ni="__reactContainer$"+Co,ni="__reactEvents$"+Co,ga="__reactListeners$"+Co,Ra="__reactHandles$"+Co,zs="__reactResources$"+Co,Pi="__reactMarker$"+Co;function kl(A){delete A[gr],delete A[gn],delete A[ni],delete A[ga],delete A[Ra]}function eo(A){var g=A[gr];if(g)return g;for(var _=A.parentNode;_;){if(g=_[Ni]||_[gr]){if(_=g.alternate,g.child!==null||_!==null&&_.child!==null)for(A=Ay(A);A!==null;){if(_=A[gr])return _;A=Ay(A)}return g}A=_,_=A.parentNode}return null}function ya(A){if(A=A[gr]||A[Ni]){var g=A.tag;if(g===5||g===6||g===13||g===31||g===26||g===27||g===3)return A}return null}function tu(A){var g=A.tag;if(g===5||g===26||g===27||g===6)return A.stateNode;throw Error(i(33))}function Xs(A){var g=A[zs];return g||(g=A[zs]={hoistableStyles:new Map,hoistableScripts:new Map}),g}function Ko(A){A[Pi]=!0}var Zo=new Set,gs={};function jr(A,g){Da(A,g),Da(A+"Capture",g)}function Da(A,g){for(gs[A]=g,A=0;A<g.length;A++)Zo.add(g[A])}var os=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u03
Line truncated
|
||||
`).replace(Nv,"")}function Gv(A,g){return g=iy(g),iy(A)===g}function qr(A,g,_,I,W,J){switch(_){case"children":typeof I=="string"?g==="body"||g==="textarea"&&I===""||wo(A,I):(typeof I=="number"||typeof I=="bigint")&&g!=="body"&&wo(A,""+I);break;case"className":tc(A,"class",I);break;case"tabIndex":tc(A,"tabindex",I);break;case"dir":case"role":case"viewBox":case"width":case"height":tc(A,_,I);break;case"style":Ui(A,I,J);break;case"data":if(g!=="object"){tc(A,"data",I);break}case"src":case"href":if(I===""&&(g!=="a"||_!=="href")){A.removeAttribute(_);break}if(I==null||typeof I=="function"||typeof I=="symbol"||typeof I=="boolean"){A.removeAttribute(_);break}I=ir(""+I),A.setAttribute(_,I);break;case"action":case"formAction":if(typeof I=="function"){A.setAttribute(_,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof J=="function"&&(_==="formAction"?(g!=="input"&&qr(A,g,"name",W.name,W,null),qr(A,g,"formEncType",W.formEncType,W,null),qr(A,g,"formMethod",W.formMethod,W,null),qr(A,g,"formTarget",W.formTarget,W,null)):(qr(A,g,"encType",W.encType,W,null),qr(A,g,"method",W.method,W,null),qr(A,g,"target",W.target,W,null)));if(I==null||typeof I=="symbol"||typeof I=="boolean"){A.removeAttribute(_);break}I=ir(""+I),A.setAttribute(_,I);break;case"onClick":I!=null&&(A.onclick=Pa);break;case"onScroll":I!=null&&co("scroll",A);break;case"onScrollEnd":I!=null&&co("scrollend",A);break;case"dangerouslySetInnerHTML":if(I!=null){if(typeof I!="object"||!("__html"in I))throw Error(i(61));if(_=I.__html,_!=null){if(W.children!=null)throw Error(i(60));A.innerHTML=_}}break;case"multiple":A.multiple=I&&typeof I!="function"&&typeof I!="symbol";break;case"muted":A.muted=I&&typeof I!="function"&&typeof I!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(I==null||typeof I=="function"||typeof I=="boolean"||typeof I=="symbol"){A.removeAttribute("xlink:href");break}_=ir(""+I),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",_);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":I!=null&&typeof I!="function"&&typeof I!="symbol"?A.setAttribute(_,""+I):A.removeAttribute(_);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":I&&typeof I!="function"&&typeof I!="symbol"?A.setAttribute(_,""):A.removeAttribute(_);break;case"capture":case"download":I===!0?A.setAttribute(_,""):I!==!1&&I!=null&&typeof I!="function"&&typeof I!="symbol"?A.setAttribute(_,I):A.removeAttribute(_);break;case"cols":case"rows":case"size":case"span":I!=null&&typeof I!="function"&&typeof I!="symbol"&&!isNaN(I)&&1<=I?A.setAttribute(_,I):A.removeAttribute(_);break;case"rowSpan":case"start":I==null||typeof I=="function"||typeof I=="symbol"||isNaN(I)?A.removeAttribute(_):A.setAttribute(_,I);break;case"popover":co("beforetoggle",A),co("toggle",A),oA(A,"popover",I);break;case"xlinkActuate":gl(A,"http://www.w3.org/1999/xlink","xlink:actuate",I);break;case"xlinkArcrole":gl(A,"http://www.w3.org/1999/xlink","xlink:arcrole",I);break;case"xlinkRole":gl(A,"http://www.w3.org/1999/xlink","xlink:role",I);break;case"xlinkShow":gl(A,"http://www.w3.org/1999/xlink","xlink:show",I);break;case"xlinkTitle":gl(A,"http://www.w3.org/1999/xlink","xlink:title",I);break;case"xlinkType":gl(A,"http://www.w3.org/1999/xlink","xlink:type",I);break;case"xmlBase":gl(A,"http://www.w3.org/XML/1998/namespace","xml:base",I);break;case"xmlLang":gl(A,"http://www.w3.org/XML/1998/namespace","xml:lang",I);break;case"xmlSpace":gl(A,"http://www.w3.org/XML/1998/namespace","xml:space",I);break;case"is":oA(A,"is",I);break;case"innerText":case"textContent":break;default:(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N")&&(_=aa.get(_)||_,oA(A,_,I))}}function np(A,g,_,I,W,J){switch(_){case"style":Ui(A,I,J);break;case"dangerouslySetInnerHTML":if(I!=null){if(typeof I!="object"||!("__html"in I))throw Error(i(61));if(_=I.__html,_!=null){if(W.children!=null)throw Error(i(60));A.innerHTML=_}}break;case"children":typeof I=="string"?wo(A,I):(typeof I=="number"||typeof I=="bigint")&&wo(A,""+I);break;case"onScroll":I!=null&&co("scroll",A);break;case"onScrollEnd":I!=null&&co("scrollend",A);break;case"onClick":I!=null&&(A.onclick=Pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/var vF;function pue(){return vF||(vF=1,(function(n){const e=due(),t=fue(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=a,n.SlowBuffer=q,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const _e=new Uint8Array(1),oe={foo:function(){return 42}};return Object.setPrototypeOf(oe,Uint8Array.prototype),Object.setPrototypeOf(_e,oe),_e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(_e){if(_e>r)throw new RangeError('The value "'+_e+'" is invalid for option "size"');const oe=new Uint8Array(_e);return Object.setPrototypeOf(oe,a.prototype),oe}function a(_e,oe,ee){if(typeof _e=="number"){if(typeof oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(_e)}return c(_e,oe,ee)}a.poolSize=8192;function c(_e,oe,ee){if(typeof _e=="string")return M(_e,oe);if(ArrayBuffer.isView(_e))return k(_e);if(_e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e);if(Rn(_e,ArrayBuffer)||_e&&Rn(_e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Rn(_e,SharedArrayBuffer)||_e&&Rn(_e.buffer,SharedArrayBuffer)))return P(_e,oe,ee);if(typeof _e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=_e.valueOf&&_e.valueOf();if(ne!=null&&ne!==_e)return a.from(ne,oe,ee);const ue=F(_e);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _e[Symbol.toPrimitive]=="function")return a.from(_e[Symbol.toPrimitive]("string"),oe,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e)}a.from=function(_e,oe,ee){return c(_e,oe,ee)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function h(_e){if(typeof _e!="number")throw new TypeError('"size" argument must be of type number');if(_e<0)throw new RangeError('The value "'+_e+'" is invalid for option "size"')}function m(_e,oe,ee){return h(_e),_e<=0?s(_e):oe!==void 0?typeof ee=="string"?s(_e).fill(oe,ee):s(_e).fill(oe):s(_e)}a.alloc=function(_e,oe,ee){return m(_e,oe,ee)};function y(_e){return h(_e),s(_e<0?0:j(_e)|0)}a.allocUnsafe=function(_e){return y(_e)},a.allocUnsafeSlow=function(_e){return y(_e)};function M(_e,oe){if((typeof oe!="string"||oe==="")&&(oe="utf8"),!a.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);const ee=V(_e,oe)|0;let ne=s(ee);const ue=ne.write(_e,oe);return ue!==ee&&(ne=ne.slice(0,ue)),ne}function x(_e){const oe=_e.length<0?0:j(_e.length)|0,ee=s(oe);for(let ne=0;ne<oe;ne+=1)ee[ne]=_e[ne]&255;return ee}function k(_e){if(Rn(_e,Uint8Array)){const oe=new Uint8Array(_e);return P(oe.buffer,oe.byteOffset,oe.byteLength)}return x(_e)}function P(_e,oe,ee){if(oe<0||_e.byteLength<oe)throw new RangeError('"offset" is outside of buffer bounds');if(_e.byteLength<oe+(ee||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return oe===void 0&&ee===void 0?ne=new Uint8Array(_e):ee===void 0?ne=new Uint8Array(_e,oe):ne=new Uint8Array(_e,oe,ee),Object.setPrototypeOf(ne,a.prototype),ne}function F(_e){if(a.isBuffer(_e)){const oe=j(_e.length)|0,ee=s(oe);return ee.length===0||_e.copy(ee,0,0,oe),ee}if(_e.length!==void 0)return typeof _e.length!="number"||gn(_e.length)?s(0):x(_e);if(_e.type==="Buffer"&&Array.isArray(_e.data))return x(_e.data)}function j(_e){if(_e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return _e|0}function q(_e){return+_e!=_e&&(_e=0),a.alloc(+_e)}a.isBuffer=function(oe){return oe!=null&&oe._isBuffer===!0&&oe!==a.prototype},a.compare=function(oe,ee){if(Rn(oe,Uint8Array)&&(oe=a.from(oe,oe.offset,oe.byteLength)),Rn(ee,Uint8Array)&&(ee=a.from(ee,ee.offset,ee.byteLength)),!a.isBuffer(oe)||!a.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(oe===ee)return 0;let ne=oe.length,ue=ee.length;for(let ye=0,Ue=Math.min(ne,ue);ye<Ue;++ye)if(oe[ye]!==ee[ye]){ne=oe[ye],ue=ee[ye];break}return ne<ue?-1:ue<ne?1:0},a.isEncoding=function(oe){switch(String(oe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(oe,ee){if(!Array.isArray(oe))throw new TypeError('"list" argument must be an Array ofLine truncated
|
||||
*/var vF;function pue(){return vF||(vF=1,(function(n){const e=due(),t=fue(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=a,n.SlowBuffer=q,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const _e=new Uint8Array(1),oe={foo:function(){return 42}};return Object.setPrototypeOf(oe,Uint8Array.prototype),Object.setPrototypeOf(_e,oe),_e.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(_e){if(_e>r)throw new RangeError('The value "'+_e+'" is invalid for option "size"');const oe=new Uint8Array(_e);return Object.setPrototypeOf(oe,a.prototype),oe}function a(_e,oe,ee){if(typeof _e=="number"){if(typeof oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(_e)}return c(_e,oe,ee)}a.poolSize=8192;function c(_e,oe,ee){if(typeof _e=="string")return M(_e,oe);if(ArrayBuffer.isView(_e))return T(_e);if(_e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e);if(Tn(_e,ArrayBuffer)||_e&&Tn(_e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Tn(_e,SharedArrayBuffer)||_e&&Tn(_e.buffer,SharedArrayBuffer)))return P(_e,oe,ee);if(typeof _e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=_e.valueOf&&_e.valueOf();if(ne!=null&&ne!==_e)return a.from(ne,oe,ee);const ue=F(_e);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _e[Symbol.toPrimitive]=="function")return a.from(_e[Symbol.toPrimitive]("string"),oe,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e)}a.from=function(_e,oe,ee){return c(_e,oe,ee)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function h(_e){if(typeof _e!="number")throw new TypeError('"size" argument must be of type number');if(_e<0)throw new RangeError('The value "'+_e+'" is invalid for option "size"')}function m(_e,oe,ee){return h(_e),_e<=0?s(_e):oe!==void 0?typeof ee=="string"?s(_e).fill(oe,ee):s(_e).fill(oe):s(_e)}a.alloc=function(_e,oe,ee){return m(_e,oe,ee)};function y(_e){return h(_e),s(_e<0?0:j(_e)|0)}a.allocUnsafe=function(_e){return y(_e)},a.allocUnsafeSlow=function(_e){return y(_e)};function M(_e,oe){if((typeof oe!="string"||oe==="")&&(oe="utf8"),!a.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);const ee=V(_e,oe)|0;let ne=s(ee);const ue=ne.write(_e,oe);return ue!==ee&&(ne=ne.slice(0,ue)),ne}function x(_e){const oe=_e.length<0?0:j(_e.length)|0,ee=s(oe);for(let ne=0;ne<oe;ne+=1)ee[ne]=_e[ne]&255;return ee}function T(_e){if(Tn(_e,Uint8Array)){const oe=new Uint8Array(_e);return P(oe.buffer,oe.byteOffset,oe.byteLength)}return x(_e)}function P(_e,oe,ee){if(oe<0||_e.byteLength<oe)throw new RangeError('"offset" is outside of buffer bounds');if(_e.byteLength<oe+(ee||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return oe===void 0&&ee===void 0?ne=new Uint8Array(_e):ee===void 0?ne=new Uint8Array(_e,oe):ne=new Uint8Array(_e,oe,ee),Object.setPrototypeOf(ne,a.prototype),ne}function F(_e){if(a.isBuffer(_e)){const oe=j(_e.length)|0,ee=s(oe);return ee.length===0||_e.copy(ee,0,0,oe),ee}if(_e.length!==void 0)return typeof _e.length!="number"||dn(_e.length)?s(0):x(_e);if(_e.type==="Buffer"&&Array.isArray(_e.data))return x(_e.data)}function j(_e){if(_e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return _e|0}function q(_e){return+_e!=_e&&(_e=0),a.alloc(+_e)}a.isBuffer=function(oe){return oe!=null&&oe._isBuffer===!0&&oe!==a.prototype},a.compare=function(oe,ee){if(Tn(oe,Uint8Array)&&(oe=a.from(oe,oe.offset,oe.byteLength)),Tn(ee,Uint8Array)&&(ee=a.from(ee,ee.offset,ee.byteLength)),!a.isBuffer(oe)||!a.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(oe===ee)return 0;let ne=oe.length,ue=ee.length;for(let be=0,Le=Math.min(ne,ue);be<Le;++be)if(oe[be]!==ee[be]){ne=oe[be],ue=ee[be];break}return ne<ue?-1:ue<ne?1:0},a.isEncoding=function(oe){switch(String(oe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(oe,ee){if(!Array.isArray(oe))throw new TypeError('"list" argument must be an Array ofLine truncated
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/var Cue=T2.exports,CF;function _ue(){return CF||(CF=1,(function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",y=1,M=2,x=4,k=1,P=2,F=1,j=2,q=4,V=8,H=16,G=32,Y=64,z=128,se=256,le=512,me=30,de="...",be=800,Ee=16,De=1,je=2,Ie=3,Qe=1/0,et=9007199254740991,dt=17976931348623157e292,ke=NaN,we=4294967295,ze=we-1,xe=we>>>1,At=[["ary",z],["bind",F],["bindKey",j],["curry",V],["curryRight",H],["flip",le],["partial",G],["partialRight",Y],["rearg",se]],it="[object Arguments]",bt="[object Array]",Bt="[object AsyncFunction]",Ke="[object Boolean]",Te="[object Date]",Se="[object DOMException]",Ne="[object Error]",ut="[object Function]",rt="[object GeneratorFunction]",pt="[object Map]",Dt="[object Number]",Ot="[object Null]",Jt="[object Object]",Tn="[object Promise]",Ln="[object Proxy]",ii="[object RegExp]",wn="[object Set]",Rn="[object String]",gn="[object Symbol]",Yn="[object Undefined]",Dn="[object WeakMap]",Tt="[object WeakSet]",_e="[object ArrayBuffer]",oe="[object DataView]",ee="[object Float32Array]",ne="[object Float64Array]",ue="[object Int8Array]",ye="[object Int16Array]",Ue="[object Int32Array]",Ve="[object Uint8Array]",lt="[object Uint8ClampedArray]",ge="[object Uint16Array]",Be="[object Uint32Array]",v=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pt=/&(?:amp|lt|gt|quot|#39);/g,st=/[&<>"']/g,fn=RegExp(Pt.source),Fn=RegExp(st.source),pn=/<%-([\s\S]+?)%>/g,$n=/<%([\s\S]+?)%>/g,Zn=/<%=([\s\S]+?)%>/g,ai=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hi=/^\w*$/,Ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tr=/[\\^$.*+?()[\]{}|]/g,oi=RegExp(tr.source),Pi=/^\s+/,Zt=/\s/,pr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zi=/\{\n\/\* \[wrapped with (.+)\] \*/,ea=/,? & /,no=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sn=/[()=,{}\[\]\/\s]/,Ci=/\\(\\)?/g,Ui=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nr=/\w*$/,Jl=/^[-+]0x[0-9a-f]+$/i,Al=/^0b[01]+$/i,Ki=/^\[object .+?Constructor\]$/,$a=/^0o[0-7]+$/i,hl=/^(?:0|[1-9]\d*)$/,fo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qs=/($^)/,Kl=/['\n\r\u2028\u2029\\]/g,io="\\ud800-\\udfff",As="\\u0300-\\u036f",pa="\\ufe20-\\ufe2f",Dr="\\u20d0-\\u20ff",Ll=As+pa+Dr,Da="\\u2700-\\u27bf",qs="a-z\\xdf-\\xf6\\xf8-\\xff",Sl="\\xac\\xb1\\xd7\\xf7",eu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$A="\\u2000-\\u206f",Vc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mc="A-Z\\xc0-\\xd6\\xd8-\\xde",ma="\\ufe0e\\ufe0f",xs=Sl+eu+$A+Vc,gc="['’]",tu="["+io+"]",yc="["+xs+"]",nu="["+Ll+"]",Fl="\\d+",VA="["+Da+"]",ga="["+qs+"]",iu="[^"+io+xs+Fl+Da+qs+mc+"]",ru="\\ud83c[\\udffb-\\udfff]",Hc="(?:"+nu+"|"+ru+")",Hu="[^"+io+"]",Pa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",qr="["+mc+"]",Yi="\\u200d",ou="(?:"+ga+"|"+iu+")",Vo="(?:"+qr+"|"+iu+")",dl="(?:"+gc+"(?:d|ll|m|re|s|t|ve))?",Cu="(?:"+gc+"(?:D|LL|M|RE|S|T|VE))?",sr=Hc+"?",El="["+ma+"]?",Va="(?:"+Yi+"(?:"+[Hu,Pa,Ds].join("|")+")"+El+sr+")*",Go="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ps="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ro=El+sr+Va,Eo="(?:"+[VA,Pa,Ds].join("|")+")"+Ro,Ho="(?:"+[Hu+nu+"?",nu,Pa,Ds,tu].join("|")+")",Pr=RegExp(gc,"g"),HA=RegExp(nu,"g"),Zo=RegExp(ru+"(?="+ru+")|"+Ho+Ro,"g"),Wo=RegExp([qr+"?"+ga+"+"+dl+"(?="+[yc,qr,"$"].join("|")+")",Vo+"+"+Cu+"(?="+[yc,qr+ou,"$"].join("|")+")",qr+"?"+ou+"+"+dl,qr+"+"+Cu,Ps,Go,Fl,Eo].join("|"),"g"),Ms=RegExp("["+Yi+io+Ll+ma+"]"),lr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wi=-1,Jn={};Jn[ee]=Jn[ne]=Jn[ue]=Jn[ye]=Jn[Ue]=Jn[Ve]=Jn[lt]=Jn[ge]=Jn[Be]=!0,Jn[it]=Jn[bt]=Jn[_e]=Jn[Ke]=Jn[oe]=Jn[Te]=Jn[Ne]=Jn[ut]=Jn[pt]=Jn[Dt]=Jn[Jt]=Jn[ii]=Jn[wn]=Jn[Rn]=Jn[Dn]=!1;var Ur={};Ur[it]=Ur[bt]=Ur[_e]=Ur[oe]=Ur[Ke]=Ur[Te]=Ur[ee]=Ur[ne]=Ur[ue]=Ur[ye]=Ur[Ue]=Ur[pt]=Ur[Dt]=Ur[Jt]=Ur[ii]=Ur[wn]=Ur[Rn]=Ur[gn]=Ur[Ve]=Ur[lt]=Ur[ge]=Ur[Be]=!0,Ur[Ne]=Ur[ut]=Ur[Dn]=!1;var X={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"Line truncated
|
||||
*/var Cue=R2.exports,CF;function _ue(){return CF||(CF=1,(function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",y=1,M=2,x=4,T=1,P=2,F=1,j=2,q=4,V=8,H=16,Q=32,Y=64,z=128,se=256,le=512,pe=30,de="...",ve=800,Ee=16,Re=1,je=2,Ie=3,qe=1/0,tt=9007199254740991,At=17976931348623157e292,ke=NaN,we=4294967295,ze=we-1,Me=we>>>1,lt=[["ary",z],["bind",F],["bindKey",j],["curry",V],["curryRight",H],["flip",le],["partial",Q],["partialRight",Y],["rearg",se]],nt="[object Arguments]",bt="[object Array]",Bt="[object AsyncFunction]",Ke="[object Boolean]",Te="[object Date]",Se="[object DOMException]",We="[object Error]",at="[object Function]",it="[object GeneratorFunction]",ft="[object Map]",Dt="[object Number]",Ot="[object Null]",Jt="[object Object]",Dn="[object Promise]",Pn="[object Proxy]",oi="[object RegExp]",In="[object Set]",Tn="[object String]",dn="[object Symbol]",$n="[object Undefined]",Un="[object WeakMap]",It="[object WeakSet]",_e="[object ArrayBuffer]",oe="[object DataView]",ee="[object Float32Array]",ne="[object Float64Array]",ue="[object Int8Array]",be="[object Int16Array]",Le="[object Int32Array]",Ve="[object Uint8Array]",rt="[object Uint8ClampedArray]",ye="[object Uint16Array]",Be="[object Uint32Array]",v=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pt=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,mt=RegExp(Pt.source),Qn=RegExp(en.source),Xn=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hi=/^\w*$/,Ii=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ar=/[\\^$.*+?()[\]{}|]/g,ii=RegExp(Ar.source),Fi=/^\s+/,Ri=/\s/,on=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,Go=/,? & /,Co=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gr=/[()=,{}\[\]\/\s]/,gn=/\\(\\)?/g,Ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ni=/\w*$/,ga=/^[-+]0x[0-9a-f]+$/i,Ra=/^0b[01]+$/i,zs=/^\[object .+?Constructor\]$/,Pi=/^0o[0-7]+$/i,kl=/^(?:0|[1-9]\d*)$/,eo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ya=/($^)/,tu=/['\n\r\u2028\u2029\\]/g,Xs="\\ud800-\\udfff",Ko="\\u0300-\\u036f",Zo="\\ufe20-\\ufe2f",gs="\\u20d0-\\u20ff",jr=Ko+Zo+gs,Da="\\u2700-\\u27bf",os="a-z\\xdf-\\xf6\\xf8-\\xff",Bc="\\xac\\xb1\\xd7\\xf7",Mu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nu="\\u2000-\\u206f",oA=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tc="A-Z\\xc0-\\xd6\\xd8-\\xde",gl="\\ufe0e\\ufe0f",Lo=Bc+Mu+nu+oA,nc="['’]",iu="["+Xs+"]",Ic="["+Lo+"]",ic="["+jr+"]",kc="\\d+",ZA="["+Da+"]",Ss="["+os+"]",Tc="[^"+Xs+Lo+kc+Da+os+tc+"]",wu="\\ud83c[\\udffb-\\udfff]",ru="(?:"+ic+"|"+wu+")",ou="[^"+Xs+"]",su="(?:\\ud83c[\\udde6-\\uddff]){2}",Es="[\\ud800-\\udbff][\\udc00-\\udfff]",wo="["+tc+"]",Tl="\\u200d",Js="(?:"+Ss+"|"+Tc+")",Ui="(?:"+wo+"|"+Tc+")",au="(?:"+nc+"(?:d|ll|m|re|s|t|ve))?",aa="(?:"+nc+"(?:D|LL|M|RE|S|T|VE))?",Su=ru+"?",ir="["+gl+"]?",Pa="(?:"+Tl+"(?:"+[ou,su,Es].join("|")+")"+ir+Su+")*",ko="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ss=ir+Su+Pa,fo="(?:"+[ZA,su,Es].join("|")+")"+ss,as="(?:"+[ou+ic+"?",ic,su,Es,iu].join("|")+")",Fo=RegExp(nc,"g"),_o=RegExp(ic,"g"),Ua=RegExp(wu+"(?="+wu+")|"+as+ss,"g"),So=RegExp([wo+"?"+Ss+"+"+au+"(?="+[Ic,wo,"$"].join("|")+")",Ui+"+"+aa+"(?="+[Ic,wo+Js,"$"].join("|")+")",wo+"?"+Js+"+"+au,wo+"+"+aa,Rl,ko,kc,fo].join("|"),"g"),ea=RegExp("["+Tl+Xs+jr+gl+"]"),oo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ka=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nr=-1,Gi={};Gi[ee]=Gi[ne]=Gi[ue]=Gi[be]=Gi[Le]=Gi[Ve]=Gi[rt]=Gi[ye]=Gi[Be]=!0,Gi[nt]=Gi[bt]=Gi[_e]=Gi[Ke]=Gi[oe]=Gi[Te]=Gi[We]=Gi[at]=Gi[ft]=Gi[Dt]=Gi[Jt]=Gi[oi]=Gi[In]=Gi[Tn]=Gi[Un]=!1;var Ai={};Ai[nt]=Ai[bt]=Ai[_e]=Ai[oe]=Ai[Ke]=Ai[Te]=Ai[ee]=Ai[ne]=Ai[ue]=Ai[be]=Ai[Le]=Ai[ft]=Ai[Dt]=Ai[Jt]=Ai[oi]=Ai[In]=Ai[Tn]=Ai[dn]=Ai[Ve]=Ai[rt]=Ai[ye]=Ai[Be]=!0,Ai[We]=Ai[at]=Ai[Un]=!1;var X={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"Line truncated
|
||||
/* [wrapped with `+R+`] */
|
||||
`)}function U1(w){return Ir(w)||Pp(w)||!!(S1&&w&&w[S1])}function sA(w,R){var $=typeof w;return R=R??et,!!R&&($=="number"||$!="symbol"&&hl.test(w))&&w>-1&&w%1==0&&w<R}function gl(w,R,$){if(!ks($))return!1;var he=typeof R;return(he=="number"?Lc($)&&sA(R,$.length):he=="string"&&R in $)?Kc($[R],w):!1}function Il(w,R){if(Ir(w))return!1;var $=typeof w;return $=="number"||$=="symbol"||$=="boolean"||w==null||ac(w)?!0:Hi.test(w)||!ai.test(w)||R!=null&&w in Qo(R)}function d0(w){var R=typeof w;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?w!=="__proto__":w===null}function Op(w){var R=Os(w),$=qe[R];if(typeof $!="function"||!(R in Er.prototype))return!1;if(w===$)return!0;var he=l0($);return!!he&&w===he[0]}function cC(w){return!!If&&If in w}var K1=th?Fc:Xt;function jm(w){var R=w&&w.constructor,$=typeof R=="function"&&R.prototype||bA;return w===$}function Jh(w){return w===w&&!ks(w)}function f0(w,R){return function($){return $==null?!1:$[w]===R&&(R!==t||w in Qo($))}}function Zx(w){var R=R0(w,function(he){return $.size===h&&$.clear(),he}),$=R.cache;return R}function L1(w,R){var $=w[1],he=R[1],Fe=$|he,Je=Fe<(F|j|z),vt=he==z&&$==V||he==z&&$==se&&w[7].length<=R[8]||he==(z|se)&&R[7].length<=R[8]&&$==V;if(!(Je||vt))return w;he&F&&(w[2]=R[2],Fe|=$&F?0:q);var It=R[3];if(It){var jt=w[3];w[3]=jt?Ec(jt,It,R[4]):It,w[4]=jt?eh(w[3],m):R[4]}return It=R[5],It&&(jt=w[5],w[5]=jt?kA(jt,It,R[6]):It,w[6]=jt?eh(w[5],m):R[6]),It=R[7],It&&(w[7]=It),he&z&&(w[8]=w[8]==null?R[8]:$s(w[8],R[8])),w[9]==null&&(w[9]=R[9]),w[0]=R[0],w[1]=Fe,w}function ed(w){var R=[];if(w!=null)for(var $ in Qo(w))R.push($);return R}function F1(w){return Ua.call(w)}function gv(w,R,$){return R=Es(R===t?w.length-1:R,0),function(){for(var he=arguments,Fe=-1,Je=Es(he.length-R,0),vt=nn(Je);++Fe<Je;)vt[Fe]=he[R+Fe];Fe=-1;for(var It=nn(R+1);++Fe<R;)It[Fe]=he[Fe];return It[R]=$(vt),ta(w,this,It)}}function p0(w,R){return R.length<2?w:ku(w,Kt(R,0,-1))}function m0(w,R){for(var $=w.length,he=$s(R.length,$),Fe=Co(w);he--;){var Je=R[he];w[he]=sA(Je,$)?Fe[Je]:t}return w}function as(w,R){if(!(R==="constructor"&&typeof w[R]=="function")&&R!="__proto__")return w[R]}var z1=Vd(ht),Nm=Pd||function(w,R){return Ri.setTimeout(w,R)},td=Vd(Et);function nd(w,R,$){var he=R+"";return td(w,h0(he,AC(R1(he),$)))}function Vd(w){var R=0,$=0;return function(){var he=pl(),Fe=Ee-(he-$);if($=he,Fe>0){if(++R>=be)return arguments[0]}else R=0;return w.apply(t,arguments)}}function g0(w,R){var $=-1,he=w.length,Fe=he-1;for(R=R===t?he:R;++$<R;){var Je=Xe($,Fe),vt=w[Je];w[Je]=w[$],w[$]=vt}return w.length=R,w}var yv=Zx(function(w){var R=[];return w.charCodeAt(0)===46&&R.push(""),w.replace(Ti,function($,he,Fe,Je){R.push(Fe?Je.replace(Ci,"$1"):he||$)}),R});function Bc(w){if(typeof w=="string"||ac(w))return w;var R=w+"";return R=="0"&&1/w==-Qe?"-0":R}function Uu(w){if(w!=null){try{return au.call(w)}catch{}try{return w+""}catch{}}return""}function AC(w,R){return Xo(At,function($){var he="_."+$[0];R&$[1]&&!Kh(w,he)&&w.push(he)}),w.sort()}function j1(w){if(w instanceof Er)return w.clone();var R=new Wl(w.__wrapped__,w.__chain__);return R.__actions__=Co(w.__actions__),R.__index__=w.__index__,R.__values__=w.__values__,R}function N1(w,R,$){($?gl(w,R,$):R===t)?R=1:R=Es(cr(R),0);var he=w==null?0:w.length;if(!he||R<1)return[];for(var Fe=0,Je=0,vt=nn(Wh(he/R));Fe<he;)vt[Je++]=Kt(w,Fe,Fe+=R);return vt}function vv(w){for(var R=-1,$=w==null?0:w.length,he=0,Fe=[];++R<$;){var Je=w[R];Je&&(Fe[he++]=Je)}return Fe}function G1(){var w=arguments.length;if(!w)return[];for(var R=nn(w-1),$=arguments[0],he=w;he--;)R[he-1]=arguments[he];return XA(Ir($)?Co($):[$],La(R,1))}var zf=nt(function(w,R){return il(w)?Ja(w,La(R,1,il,!0)):[]}),hC=nt(function(w,R){var $=gs(R);return il($)&&($=t),il(w)?Ja(w,La(R,1,il,!0),Ji($,2)):[]}),es=nt(function(w,R){var $=gs(R);return il($)&&($=t),il(w)?Ja(w,La(R,1,il,!0),t,$):[]});function oa(w,R,$){var he=w==null?0:w.length;return he?(R=$||R===t?1:cr(R),Kt(w,R<0?0:R,he)):[]}function W1(w,R,$){var he=w==null?0:w.length;return he?(R=$||R===t?1:cr(R),R=he-R,Kt(w,0,R<0?0:R)):[]}function y0(w,R){return w&&w.length?Uo(w,Ji(R,3),!0,!0):[]}function nl(w,R){return w&&w.length?Uo(w,Ji(R,3),!0):[]}function v0(w,R,$,he){var Fe=w==null?0:w.length;return Fe?($&&typeof $!="number"&&gl(w,R,$)&&($=0,he=Fe),Nd(w,R,$,he)):[]}function Q1(w,R,$){var he=w==null?0:w.length;if(!he)return-1;var Fe=$==null?0:cr($);return Fe<0&&(Fe=Es(he+Fe,0)),mA(w,Ji(R,3),Fe)}function q1(w,R,$){var he=w==null?0:w.length;if(!he)return-1;var Fe=he-1;return $!==t&&(Fe=cr($),Fe=$<0?Es(he+Fe,0):$s(Fe,he-1)),mA(w,Ji(R,3),Fe,!0)}function ms(w){var R=w==null?0:w.length;return R?La(w,1):[]}function Ku(w){var R=w==null?0:w.length;return R?La(w,Qe):[]}function Ic(w,R){var $=w==null?0:w.length;return $?(R=R===t?1:cr(R),La(w,R)):[]}function b0(w){for(var R=-1,$=w==null?0:w.length,he={};++R<$;){var Fe=w[R];he[Fe[0]]=Fe[1]}return he}function jf(w){return w&&w.length?w[0]:t}function Gm(w,R,$){var he=w==null?0:w.length;if(!he)return-1;var Fe=$==null?0:cr($);return
Line truncated
|
||||
`;w.replace(gi,function(Mr,jo,ts,of,Oh,sf){return ts||(ts=of),Kn+=w.slice(_n,sf).replace(Kl,yA),jo&&(It=!0,Kn+=`' +
|
||||
__e(`+jo+`) +
|
||||
'`),Oh&&(jt=!0,Kn+=`';
|
||||
`+Oh+`;
|
||||
__p += '`),ts&&(Kn+=`' +
|
||||
((__t = (`+ts+`)) == null ? '' : __t) +
|
||||
'`),_n=sf+Mr.length,Mr}),Kn+=`';
|
||||
`;var xr=Do.call(R,"variable")&&R.variable;if(!xr)Kn=`with (obj) {
|
||||
`+Kn+`
|
||||
`)}function R1(S){return _r(S)||of(S)||!!(Up&&S&&S[Up])}function PA(S,R){var $=typeof S;return R=R??tt,!!R&&($=="number"||$!="symbol"&&kl.test(S))&&S>-1&&S%1==0&&S<R}function Lu(S,R,$){if(!oa($))return!1;var he=typeof R;return(he=="number"?yc($)&&PA(R,$.length):he=="string"&&R in $)?$l($[R],S):!1}function jp(S,R){if(_r(S))return!1;var $=typeof S;return $=="number"||$=="symbol"||$=="boolean"||S==null||Ja(S)?!0:Hi.test(S)||!pi.test(S)||R!=null&&S in Wo(R)}function M0(S){var R=typeof S;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?S!=="__proto__":S===null}function Np(S){var R=ca(S),$=Ye[R];if(typeof $!="function"||!(R in br.prototype))return!1;if(S===$)return!0;var he=zp($);return!!he&&S===he[0]}function eg(S){return!!Pp&&Pp in S}var gu=zh?Yc:Xt;function Gp(S){var R=S&&S.constructor,$=typeof R=="function"&&R.prototype||Dc;return S===$}function UA(S){return S===S&&!oa(S)}function D1(S,R){return function($){return $==null?!1:$[S]===R&&(R!==t||S in Wo($))}}function lC(S){var R=hg(S,function(he){return $.size===h&&$.clear(),he}),$=R.cache;return R}function uC(S,R){var $=S[1],he=R[1],Fe=$|he,Je=Fe<(F|j|z),vt=he==z&&$==V||he==z&&$==se&&S[7].length<=R[8]||he==(z|se)&&R[7].length<=R[8]&&$==V;if(!(Je||vt))return S;he&F&&(S[2]=R[2],Fe|=$&F?0:q);var Rt=R[3];if(Rt){var zt=S[3];S[3]=zt?Uu(zt,Rt,R[4]):Rt,S[4]=zt?eh(S[3],m):R[4]}return Rt=R[5],Rt&&(zt=S[5],S[5]=zt?TA(zt,Rt,R[6]):Rt,S[6]=zt?eh(S[5],m):R[6]),Rt=R[7],Rt&&(S[7]=Rt),he&z&&(S[8]=S[8]==null?R[8]:ta(S[8],R[8])),S[9]==null&&(S[9]=R[9]),S[0]=R[0],S[1]=Fe,S}function Vd(S){var R=[];if(S!=null)for(var $ in Wo(S))R.push($);return R}function P1(S){return Ul.call(S)}function Cv(S,R,$){return R=Ts(R===t?S.length-1:R,0),function(){for(var he=arguments,Fe=-1,Je=Ts(he.length-R,0),vt=nn(Je);++Fe<Je;)vt[Fe]=he[R+Fe];Fe=-1;for(var Rt=nn(R+1);++Fe<R;)Rt[Fe]=he[Fe];return Rt[R]=$(vt),vs(S,this,Rt)}}function Wp(S,R){return R.length<2?S:Ci(S,ot(R,0,-1))}function tg(S,R){for(var $=S.length,he=ta(R.length,$),Fe=va(S);he--;){var Je=R[he];S[he]=PA(Je,$)?Fe[Je]:t}return S}function Cs(S,R){if(!(R==="constructor"&&typeof S[R]=="function")&&R!="__proto__")return S[R]}var cC=yh(Ze),w0=sh||function(S,R){return ki.setTimeout(S,R)},U1=yh(Xe);function Hd(S,R,$){var he=R+"";return U1(S,bv(he,AC(x0(he),$)))}function yh(S){var R=0,$=0;return function(){var he=Fl(),Fe=Ee-(he-$);if($=he,Fe>0){if(++R>=ve)return arguments[0]}else R=0;return S.apply(t,arguments)}}function ng(S,R){var $=-1,he=S.length,Fe=he-1;for(R=R===t?he:R;++$<R;){var Je=Z($,Fe),vt=S[Je];S[Je]=S[$],S[$]=vt}return S.length=R,S}var Zd=lC(function(S){var R=[];return S.charCodeAt(0)===46&&R.push(""),S.replace(Ii,function($,he,Fe,Je){R.push(Fe?Je.replace(gn,"$1"):he||$)}),R});function ql(S){if(typeof S=="string"||Ja(S))return S;var R=S+"";return R=="0"&&1/S==-qe?"-0":R}function Fu(S){if(S!=null){try{return nh.call(S)}catch{}try{return S+""}catch{}}return""}function AC(S,R){return rc(lt,function($){var he="_."+$[0];R&$[1]&&!Rd(S,he)&&S.push(he)}),S.sort()}function K1(S){if(S instanceof br)return S.clone();var R=new al(S.__wrapped__,S.__chain__);return R.__actions__=va(S.__actions__),R.__index__=S.__index__,R.__values__=S.__values__,R}function hC(S,R,$){($?Lu(S,R,$):R===t)?R=1:R=Ts(ar(R),0);var he=S==null?0:S.length;if(!he||R<1)return[];for(var Fe=0,Je=0,vt=nn(Kf(he/R));Fe<he;)vt[Je++]=ot(S,Fe,Fe+=R);return vt}function _v(S){for(var R=-1,$=S==null?0:S.length,he=0,Fe=[];++R<$;){var Je=S[R];Je&&(Fe[he++]=Je)}return Fe}function xv(){var S=arguments.length;if(!S)return[];for(var R=nn(S-1),$=arguments[0],he=S;he--;)R[he-1]=arguments[he];return Dl(_r($)?va($):[$],ia(R,1))}var L1=me(function(S,R){return Za(S)?dc(S,ia(R,1,Za,!0)):[]}),F1=me(function(S,R){var $=Gs(R);return Za($)&&($=t),Za(S)?dc(S,ia(R,1,Za,!0),Qi($,2)):[]}),Xd=me(function(S,R){var $=Gs(R);return Za($)&&($=t),Za(S)?dc(S,ia(R,1,Za,!0),t,$):[]});function Ha(S,R,$){var he=S==null?0:S.length;return he?(R=$||R===t?1:ar(R),ot(S,R<0?0:R,he)):[]}function Qp(S,R,$){var he=S==null?0:S.length;return he?(R=$||R===t?1:ar(R),R=he-R,ot(S,0,R<0?0:R)):[]}function dC(S,R){return S&&S.length?Gt(S,Qi(R,3),!0,!0):[]}function Qr(S,R){return S&&S.length?Gt(S,Qi(R,3),!0):[]}function ig(S,R,$,he){var Fe=S==null?0:S.length;return Fe?($&&typeof $!="number"&&Lu(S,R,$)&&($=0,he=Fe),Xh(S,R,$,he)):[]}function z1(S,R,$){var he=S==null?0:S.length;if(!he)return-1;var Fe=$==null?0:ar($);return Fe<0&&(Fe=Ts(he+Fe,0)),If(S,Qi(R,3),Fe)}function rg(S,R,$){var he=S==null?0:S.length;if(!he)return-1;var Fe=he-1;return $!==t&&(Fe=ar($),Fe=$<0?Ts(he+Fe,0):ta(Fe,he-1)),If(S,Qi(R,3),Fe,!0)}function _s(S){var R=S==null?0:S.length;return R?ia(S,1):[]}function Yl(S){var R=S==null?0:S.length;return R?ia(S,qe):[]}function od(S,R){var $=S==null?0:S.length;return $?(R=R===t?1:ar(R),ia(S,R)):[]}function Mv(S){for(var R=-1,$=S==null?0:S.length,he={};++R<$;){var Fe=S[R];he[Fe[0]]=Fe[1]}return he}function qp(S){return S&&S.length?S[0]:t}function j1(S,R,$){var he=S==null?0:S.length;if(!he)return-1;var Fe=$==null?0:ar($);return F
Line truncated
|
||||
`;S.replace(gi,function(Mr,Po,Yo,lf,Mh,uf){return Yo||(Yo=lf),Ln+=S.slice(_n,uf).replace(tu,kp),Po&&(Rt=!0,Ln+=`' +
|
||||
__e(`+Po+`) +
|
||||
'`),Mh&&(zt=!0,Ln+=`';
|
||||
`+Mh+`;
|
||||
__p += '`),Yo&&(Ln+=`' +
|
||||
((__t = (`+Yo+`)) == null ? '' : __t) +
|
||||
'`),_n=uf+Mr.length,Mr}),Ln+=`';
|
||||
`;var xr=kr.call(R,"variable")&&R.variable;if(!xr)Ln=`with (obj) {
|
||||
`+Ln+`
|
||||
}
|
||||
`;else if(sn.test(xr))throw new yr(a);Kn=(jt?Kn.replace(v,""):Kn).replace(yt,"$1").replace(Mt,"$1;"),Kn="function("+(xr||"obj")+`) {
|
||||
`;else if(gr.test(xr))throw new vr(a);Ln=(zt?Ln.replace(v,""):Ln).replace(yt,"$1").replace(Mt,"$1;"),Ln="function("+(xr||"obj")+`) {
|
||||
`+(xr?"":`obj || (obj = {});
|
||||
`)+"var __t, __p = ''"+(It?", __e = _.escape":"")+(jt?`, __j = Array.prototype.join;
|
||||
`)+"var __t, __p = ''"+(Rt?", __e = _.escape":"")+(zt?`, __j = Array.prototype.join;
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+Kn+`return __p
|
||||
}`;var xo=Na(function(){return Yr(Je,Vi+"return "+Kn).apply(t,vt)});if(xo.source=Kn,L0(xo))throw xo;return xo}function Vs(w){return ls(w).toLowerCase()}function zo(w){return ls(w).toUpperCase()}function Ls(w,R,$){if(w=ls(w),w&&($||R===t))return zh(w);if(!w||!(R=Qn(R)))return w;var he=Ss(w),Fe=Ss(R),Je=bp(he,Fe),vt=xm(he,Fe)+1;return fs(he,Je,vt).join("")}function xa(w,R,$){if(w=ls(w),w&&($||R===t))return w.slice(0,xu(w)+1);if(!w||!(R=Qn(R)))return w;var he=Ss(w),Fe=xm(he,Ss(R))+1;return fs(he,0,Fe).join("")}function Ma(w,R,$){if(w=ls(w),w&&($||R===t))return w.replace(Pi,"");if(!w||!(R=Qn(R)))return w;var he=Ss(w),Fe=bp(he,Ss(R));return fs(he,Fe).join("")}function wa(w,R){var $=me,he=de;if(ks(R)){var Fe="separator"in R?R.separator:Fe;$="length"in R?cr(R.length):$,he="omission"in R?Qn(R.omission):he}w=ls(w);var Je=w.length;if(JA(w)){var vt=Ss(w);Je=vt.length}if($>=Je)return w;var It=$-kd(he);if(It<1)return he;var jt=vt?fs(vt,0,It).join(""):w.slice(0,It);if(Fe===t)return jt+he;if(vt&&(It+=jt.length-It),Jm(Fe)){if(w.slice(It).search(Fe)){var _n,xn=jt;for(Fe.global||(Fe=Td(Fe.source,ls(nr.exec(Fe))+"g")),Fe.lastIndex=0;_n=Fe.exec(xn);)var Kn=_n.index;jt=jt.slice(0,Kn===t?It:Kn)}}else if(w.indexOf(Qn(Fe),It)!=It){var gi=jt.lastIndexOf(Fe);gi>-1&&(jt=jt.slice(0,gi))}return jt+he}function uA(w){return w=ls(w),w&&fn.test(w)?w.replace(Pt,po):w}var rl=tl(function(w,R,$){return w+($?" ":"")+R.toUpperCase()}),ol=Yd("toUpperCase");function ja(w,R,$){return w=ls(w),R=$?t:R,R===t?Id(w)?e0(w):ym(w):w.match(R)||[]}var Na=nt(function(w,R){try{return ta(w,t,R)}catch($){return L0($)?$:new yr($)}}),Sa=Ch(function(w,R){return Xo(R,function($){$=Bc($),Ou(w,$,k0(w[$],w))}),w});function Ea(w){var R=w==null?0:w.length,$=Ji();return w=R?Wr(w,function(he){if(typeof he[1]!="function")throw new zl(s);return[$(he[0]),he[1]]}):[],nt(function(he){for(var Fe=-1;++Fe<R;){var Je=w[Fe];if(ta(Je[0],this,he))return ta(Je[1],this,he)}})}function Ts(w){return Pm(Ql(w,y))}function zu(w){return function(){return w}}function nf(w,R){return w==null||w!==w?R:w}var UA=yh(),rg=yh(!0);function Cl(w){return w}function Eh(w){return I(typeof w=="function"?w:Ql(w,y))}function rf(w){return T(Ql(w,y))}function Fp(w,R){return U(w,Ql(R,y))}var og=nt(function(w,R){return function($){return bo($,w,R)}}),G0=nt(function(w,R){return function($){return bo(w,$,R)}});function A(w,R,$){var he=vl(R),Fe=fi(R,he);$==null&&!(ks(R)&&(Fe.length||!he.length))&&($=R,R=w,w=this,Fe=fi(R,vl(R)));var Je=!(ks($)&&"chain"in $)||!!$.chain,vt=Fc(w);return Xo(Fe,function(It){var jt=R[It];w[It]=jt,vt&&(w.prototype[It]=function(){var _n=this.__chain__;if(Je||_n){var xn=w(this.__wrapped__),Kn=xn.__actions__=Co(this.__actions__);return Kn.push({func:jt,args:arguments,thisArg:w}),xn.__chain__=_n,xn}return jt.apply(w,XA([this.value()],arguments))})}),w}function g(){return Ri._===this&&(Ri._=lu),this}function _(){}function O(w){return w=cr(w),nt(function(R){return ae(R,w)})}var N=B1(Wr),J=B1(Zc),Me=B1(vp);function Ye(w){return Il(w)?gA(Bc(w)):Re(w)}function _t(w){return function(R){return w==null?t:ku(w,R)}}var $t=r0(),ln=r0(!0);function mn(){return[]}function Xt(){return!1}function rn(){return{}}function ki(){return""}function ir(){return!0}function ao(w,R){if(w=cr(w),w<1||w>et)return[];var $=we,he=$s(w,we);R=Ji(R),w-=we;for(var Fe=_m(he,R);++$<w;)R($);return Fe}function Lt(w){return Ir(w)?Wr(w,Bc):ac(w)?[w]:Co(yv(ls(w)))}function kt(w){var R=++t0;return ls(w)+R}var qt=vh(function(w,R){return w+R},0),dn=Fm("ceil"),er=vh(function(w,R){return w/R},1),hr=Fm("floor");function Ai(w){return w&&w.length?Bu(w,Cl,za):t}function vr(w,R){return w&&w.length?Bu(w,Ji(R,2),za):t}function _r(w){return Cm(w,Cl)}function lo(w,R){return Cm(w,Ji(R,2))}function fu(w){return w&&w.length?Bu(w,Cl,C):t}function Z6(w,R){return w&&w.length?Bu(w,Ji(R,2),C):t}var Bae=vh(function(w,R){return w*R},1),Iae=Fm("round"),kae=vh(function(w,R){return w-R},0);function Tae(w){return w&&w.length?Bd(w,Cl):0}function Rae(w,R){return w&&w.length?Bd(w,Ji(R,2)):0}return qe.after=Bv,qe.ary=Iv,qe.assign=OC,qe.assignIn=tf,qe.assignInWith=_a,qe.assignWith=Gv,qe.at=lA,qe.before=ny,qe.bind=k0,qe.bindAll=Sa,qe.bindKey=T0,qe.castArray=Dv,qe.chain=Qm,qe.chunk=N1,qe.compact=vv,qe.concat=G1,qe.cond=Ea,qe.conforms=Ts,qe.constant=zu,qe.countBy=Sv,qe.create=dy,qe.curry=Rp,qe.curryRight=kv,qe.debounce=iy,qe.defaults=fy,qe.defaultsDeep=BC,qe.defer=ys,qe.delay=Tv,qe.difference=zf,qe.differenceBy=hC,qe.differenceWith=es,qe.drop=oa,qe.dropRight=W1,qe.dropRightWhile=y0,qe.dropWhile=nl,qe.fill=v0,qe.filter=qf,qe.flatMap=Dc,qe.flatMapDeep=gC,qe.flatMapDepth=yC,qe.flatten=ms,qe.flattenDeep=Ku,qe.flattenDepth=Ic,qe.flip=t2,qe.flow=UA,qe.flowRight=rg,qe.fromPairs=b0,qe.functions=IC,qe.functionsIn=z0,qe.groupBy=J1,qe.initial=Xx,qe.intersection=C0,qe.intersectionBy=yl,qe.intersectionWith=_h,qe.invert=py,qe.invertBy=N0,qe.invokeMap=qm,qe.iteratee=Eh,qe.keyBy=bC,qe.keys=vl,qe.keysIn=Fu,qe.map=E0,qe.mapKeys=r2,qe.mapValues=f,qe.matches=rf,qe.matchesProperty=Fp,qe.memoi
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(y[1])} }\`.`)];const M=[];return n.layerType==="symbol"&&(a==="text-field"&&r&&!r.glyphs&&M.push(new qn(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&$4(Db(s))&&Hl(s.type)==="identity"&&M.push(new qn(t,s,'"text-font" does not support identity functions'))),M.concat(i({key:n.key,value:s,valueSpec:m,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function kX(n){return IX(n,"paint")}function TX(n){return IX(n,"layout")}function RX(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(So(t)!=="object")return[new qn(i,t,`object expected, ${So(t)} found`)];!t.type&&!t.ref&&e.push(new qn(i,t,'either "type" or "ref" is required'));let s=Hl(t.type);const a=Hl(t.ref);if(t.id){const c=Hl(t.id);for(let h=0;h<n.arrayIndex;h++){const m=r.layers[h];Hl(m.id)===c&&e.push(new qn(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(h=>{h in t&&e.push(new qn(i,t[h],`"${h}" is prohibited for ref layers`))});let c;r.layers.forEach(h=>{Hl(h.id)===a&&(c=h)}),c?c.ref?e.push(new qn(i,t.ref,"ref cannot reference another ref layer")):s=Hl(c.type):e.push(new qn(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new qn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],h=c&&Hl(c.type);c?h==="vector"&&s==="raster"?e.push(new qn(i,t.source,`layer "${t.id}" requires a raster source`)):h!=="raster-dem"&&s==="hillshade"?e.push(new qn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):h!=="raster-dem"&&s==="color-relief"?e.push(new qn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):h==="raster"&&s!=="raster"?e.push(new qn(i,t.source,`layer "${t.id}" requires a vector source`)):h==="vector"&&!t["source-layer"]?e.push(new qn(i,t,`layer "${t.id}" must specify a "source-layer"`)):h==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new qn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(h!=="geojson"||!c.lineMetrics)&&e.push(new qn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new qn(i,t.source,`source "${t.source}" not found`))}return e=e.concat(op({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:pP,layout(c){return op({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return TX(ox({layerType:s},h))}}})},paint(c){return op({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return kX(ox({layerType:s},h))}}})}}})),e}function Pb(n){const e=n.value,t=n.key,i=So(e);return i!=="string"?[new qn(t,e,`string expected, ${i} found`)]:[]}function Fhe(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const c=So(i);if(i===void 0)return a;if(c!=="object")return a.push(new qn("source_raster_dem",i,`object expected, ${c} found`)),a;const m=Hl(i.encoding)==="custom",y=["redFactor","greenFactor","blueFactor","baseShift"],M=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const x in i)!m&&y.includes(x)?a.push(new qn(x,i[x],`In "${t}": "${x}" is only valid when "encoding" is set to "custom". ${M} encoding found`)):o[x]?a=a.concat(n.validateSpec({key:x,value:i[x],valueSpec:o[x],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new qn(x,i[x],`unknown property "${x}"`));return a}const QF={promoteId:zhe};function DX(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new qn(t,e,'"type" is required')];const s=Hl(e.type);let a;switch(s){case"vector":case"raster":return a=op({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:QF,validateSpec:o}),a;case"raster-dem":return a=Fhe({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=op({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:QF}),e.cluster)for(const c in e.clusterProperties){const[h,m]=e.clusterProperties[c],y=typeof h=="string"?[h,["accumulated"],["get",c]]:h;a.push(...lx({key:`${t}.${c}.map`,value:m,expressionContext:"cluster-map"})),a.push(...lx({key:`${t}.${c}.reduce`,value:y,expressionContext:"cluster-reduce"}))}return a;case"video":return op({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:Line truncated
|
||||
`)+Ln+`return __p
|
||||
}`;var go=wa(function(){return Vr(Je,Vi+"return "+Ln).apply(t,vt)});if(go.source=Ln,z0(go))throw go;return go}function Fa(S){return ns(S).toLowerCase()}function Qs(S){return ns(S).toUpperCase()}function Ro(S,R,$){if(S=ns(S),S&&($||R===t))return Rc(S);if(!S||!(R=wt(R)))return S;var he=Is(S),Fe=Is(R),Je=zm(he,Fe),vt=Bp(he,Fe)+1;return Wr(he,Je,vt).join("")}function ha(S,R,$){if(S=ns(S),S&&($||R===t))return S.slice(0,th(S)+1);if(!S||!(R=wt(R)))return S;var he=Is(S),Fe=Bp(he,Is(R))+1;return Wr(he,0,Fe).join("")}function Ma(S,R,$){if(S=ns(S),S&&($||R===t))return S.replace(Fi,"");if(!S||!(R=wt(R)))return S;var he=Is(S),Fe=zm(he,Is(R));return Wr(he,Fe).join("")}function qs(S,R){var $=pe,he=de;if(oa(R)){var Fe="separator"in R?R.separator:Fe;$="length"in R?ar(R.length):$,he="omission"in R?wt(R.omission):he}S=ns(S);var Je=S.length;if(Uh(S)){var vt=Is(S);Je=vt.length}if($>=Je)return S;var Rt=$-Kh(he);if(Rt<1)return he;var zt=vt?Wr(vt,0,Rt).join(""):S.slice(0,Rt);if(Fe===t)return zt+he;if(vt&&(Rt+=zt.length-Rt),yg(Fe)){if(S.slice(Rt).search(Fe)){var _n,xn=zt;for(Fe.global||(Fe=Dp(Fe.source,ns(ni.exec(Fe))+"g")),Fe.lastIndex=0;_n=Fe.exec(xn);)var Ln=_n.index;zt=zt.slice(0,Ln===t?Rt:Ln)}}else if(S.indexOf(wt(Fe),Rt)!=Rt){var gi=zt.lastIndexOf(Fe);gi>-1&&(zt=zt.slice(0,gi))}return zt+he}function Gu(S){return S=ns(S),S&&mt.test(S)?S.replace(Pt,xA):S}var Vc=$a(function(S,R,$){return S+($?" ":"")+R.toUpperCase()}),Ys=ba("toUpperCase");function Wu(S,R,$){return S=ns(S),R=$?t:R,R===t?jm(S)?ao(S):fv(S):S.match(R)||[]}var wa=me(function(S,R){try{return vs(S,t,R)}catch($){return z0($)?$:new vr($)}}),Sa=rd(function(S,R){return rc(R,function($){$=ql($),Ru(S,$,R0(S[$],S))}),S});function el(S){var R=S==null?0:S.length,$=Qi();return S=R?Jo(S,function(he){if(typeof he[1]!="function")throw new Pl(s);return[$(he[0]),he[1]]}):[],me(function(he){for(var Fe=-1;++Fe<R;){var Je=S[Fe];if(vs(Je[0],this,he))return vs(Je[1],this,he)}})}function za(S){return y0(Wl(S,y))}function Do(S){return function(){return S}}function Hc(S,R){return S==null||S!==S?R:S}var rm=Nc(),Qu=Nc(!0);function bc(S){return S}function cd(S){return zc(typeof S=="function"?S:Wl(S,y))}function Ad(S){return Wf(Wl(S,y))}function om(S,R){return Qf(S,Wl(R,y))}var Cg=me(function(S,R){return function($){return Fc($,S,R)}}),af=me(function(S,R){return function($){return Fc(S,$,R)}});function A(S,R,$){var he=hl(R),Fe=ti(R,he);$==null&&!(oa(R)&&(Fe.length||!he.length))&&($=R,R=S,S=this,Fe=ti(R,hl(R)));var Je=!(oa($)&&"chain"in $)||!!$.chain,vt=Yc(S);return rc(Fe,function(Rt){var zt=R[Rt];S[Rt]=zt,vt&&(S.prototype[Rt]=function(){var _n=this.__chain__;if(Je||_n){var xn=S(this.__wrapped__),Ln=xn.__actions__=va(this.__actions__);return Ln.push({func:zt,args:arguments,thisArg:S}),xn.__chain__=_n,xn}return zt.apply(S,Dl([this.value()],arguments))})}),S}function g(){return ki._===this&&(ki._=uu),this}function _(){}function I(S){return S=ar(S),me(function(R){return l(R,S)})}var W=dA(Jo),J=dA(Td),xe=dA(Bf);function $e(S){return jp(S)?Rh(ql(S)):B(S)}function _t(S){return function(R){return S==null?t:Ci(S,R)}}var $t=fA(),ln=fA(!0);function pn(){return[]}function Xt(){return!1}function rn(){return{}}function Ti(){return""}function lr(){return!0}function Ms(S,R){if(S=ar(S),S<1||S>tt)return[];var $=we,he=ta(S,we);R=Qi(R),S-=we;for(var Fe=Pd(he,R);++$<S;)R($);return Fe}function Kt(S){return _r(S)?Jo(S,ql):Ja(S)?[S]:va(Zd(ns(S)))}function kt(S){var R=++p0;return ns(S)+R}var qt=Gc(function(S,R){return S+R},0),hn=mh("ceil"),Zi=Gc(function(S,R){return S/R},1),jo=mh("floor");function ri(S){return S&&S.length?hu(S,bc,nd):t}function tr(S,R){return S&&S.length?hu(S,Qi(R,2),nd):t}function Kr(S){return Eu(S,bc)}function Lr(S,R){return Eu(S,Qi(R,2))}function Zc(S){return S&&S.length?hu(S,bc,zo):t}function hd(S,R){return S&&S.length?hu(S,Qi(R,2),zo):t}var Bae=Gc(function(S,R){return S*R},1),Iae=mh("round"),kae=Gc(function(S,R){return S-R},0);function Tae(S){return S&&S.length?Fm(S,bc):0}function Rae(S,R){return S&&S.length?Fm(S,Qi(R,2)):0}return Ye.after=T0,Ye.ary=Kv,Ye.assign=EC,Ye.assignIn=uy,Ye.assignInWith=_h,Ye.assignWith=Vl,Ye.at=$c,Ye.before=Lv,Ye.bind=R0,Ye.bindAll=Sa,Ye.bindKey=$1,Ye.castArray=r2,Ye.chain=lg,Ye.chunk=hC,Ye.compact=_v,Ye.concat=xv,Ye.cond=el,Ye.conforms=za,Ye.constant=Do,Ye.countBy=cg,Ye.create=cy,Ye.curry=D0,Ye.curryRight=V1,Ye.debounce=H1,Ye.defaults=qv,Ye.defaultsDeep=Ay,Ye.defer=qo,Ye.delay=P0,Ye.difference=L1,Ye.differenceBy=F1,Ye.differenceWith=Xd,Ye.drop=Ha,Ye.dropRight=Qp,Ye.dropRightWhile=dC,Ye.dropWhile=Qr,Ye.fill=ig,Ye.filter=I0,Ye.flatMap=zu,Ye.flatMapDeep=Jp,Ye.flatMapDepth=Tv,Ye.flatten=_s,Ye.flattenDeep=Yl,Ye.flattenDepth=od,Ye.flip=t2,Ye.flow=rm,Ye.flowRight=Qu,Ye.fromPairs=Mv,Ye.functions=Yv,Ye.functionsIn=IC,Ye.groupBy=q1,Ye.initial=og,Ye.intersection=Yp,Ye.intersectionBy=xl,Ye.intersectionWith=pc,Ye.invert=$v,Ye.invertBy=fy,Ye.invokeMap=Ag,Ye.iteratee=cd,Ye.keyBy=vC,Ye.keys=hl,Ye.keysIn=Nu,Ye.map=k0,Ye.mapKeys=Vv,Ye.mapValues=kC,Ye.matches=Ad,Ye.matchesProperty=om,Ye.m
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(y[1])} }\`.`)];const M=[];return n.layerType==="symbol"&&(a==="text-field"&&r&&!r.glyphs&&M.push(new Yn(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&V4(Ub(s))&&Xl(s.type)==="identity"&&M.push(new Yn(t,s,'"text-font" does not support identity functions'))),M.concat(i({key:n.key,value:s,valueSpec:m,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function kX(n){return IX(n,"paint")}function TX(n){return IX(n,"layout")}function RX(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(bo(t)!=="object")return[new Yn(i,t,`object expected, ${bo(t)} found`)];!t.type&&!t.ref&&e.push(new Yn(i,t,'either "type" or "ref" is required'));let s=Xl(t.type);const a=Xl(t.ref);if(t.id){const c=Xl(t.id);for(let h=0;h<n.arrayIndex;h++){const m=r.layers[h];Xl(m.id)===c&&e.push(new Yn(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(h=>{h in t&&e.push(new Yn(i,t[h],`"${h}" is prohibited for ref layers`))});let c;r.layers.forEach(h=>{Xl(h.id)===a&&(c=h)}),c?c.ref?e.push(new Yn(i,t.ref,"ref cannot reference another ref layer")):s=Xl(c.type):e.push(new Yn(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new Yn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],h=c&&Xl(c.type);c?h==="vector"&&s==="raster"?e.push(new Yn(i,t.source,`layer "${t.id}" requires a raster source`)):h!=="raster-dem"&&s==="hillshade"?e.push(new Yn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):h!=="raster-dem"&&s==="color-relief"?e.push(new Yn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):h==="raster"&&s!=="raster"?e.push(new Yn(i,t.source,`layer "${t.id}" requires a vector source`)):h==="vector"&&!t["source-layer"]?e.push(new Yn(i,t,`layer "${t.id}" must specify a "source-layer"`)):h==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new Yn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(h!=="geojson"||!c.lineMetrics)&&e.push(new Yn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Yn(i,t.source,`source "${t.source}" not found`))}return e=e.concat(dp({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:pP,layout(c){return dp({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return TX(sx({layerType:s},h))}}})},paint(c){return dp({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return kX(sx({layerType:s},h))}}})}}})),e}function Kb(n){const e=n.value,t=n.key,i=bo(e);return i!=="string"?[new Yn(t,e,`string expected, ${i} found`)]:[]}function Fhe(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const c=bo(i);if(i===void 0)return a;if(c!=="object")return a.push(new Yn("source_raster_dem",i,`object expected, ${c} found`)),a;const m=Xl(i.encoding)==="custom",y=["redFactor","greenFactor","blueFactor","baseShift"],M=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const x in i)!m&&y.includes(x)?a.push(new Yn(x,i[x],`In "${t}": "${x}" is only valid when "encoding" is set to "custom". ${M} encoding found`)):o[x]?a=a.concat(n.validateSpec({key:x,value:i[x],valueSpec:o[x],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new Yn(x,i[x],`unknown property "${x}"`));return a}const QF={promoteId:zhe};function DX(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new Yn(t,e,'"type" is required')];const s=Xl(e.type);let a;switch(s){case"vector":case"raster":return a=dp({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:QF,validateSpec:o}),a;case"raster-dem":return a=Fhe({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=dp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:QF}),e.cluster)for(const c in e.clusterProperties){const[h,m]=e.clusterProperties[c],y=typeof h=="string"?[h,["accumulated"],["get",c]]:h;a.push(...ux({key:`${t}.${c}.map`,value:m,expressionContext:"cluster-map"})),a.push(...ux({key:`${t}.${c}.reduce`,value:y,expressionContext:"cluster-reduce"}))}return a;case"video":return dp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:Line truncated
|
||||
${y}`),P].join(`
|
||||
${a}`)}return h})(n,"",0)}function YF(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 ede(n,e=2){return n=YF(n,us.$root),n.layers&&(n.layers=n.layers.map(t=>YF(t,us.layer))),Jhe(n,{indent:e})}function xO(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function $F(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function C9(n,e){return typeof e=="string"&&e[0]==="@"?C9(n,n.constants[e]):e}function tde(n){return Array.isArray(n.stops)}function u2(n,e,t){n[t]=n[e],delete n[e]}function nde(n){n.version=8,Khe(n,r=>{r.type==="video"&&r.url!==void 0&&u2(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),u3(n,r=>{xO(r,o=>{o["symbol-min-distance"]!==void 0&&u2(o,"symbol-min-distance","symbol-spacing")}),$F(r,o=>{o["background-image"]!==void 0&&u2(o,"background-image","background-pattern"),o["line-image"]!==void 0&&u2(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&u2(o,"fill-image","fill-pattern")})}),dP(n,{paint:!0,layout:!0},r=>{const o=C9(n,r.value);tde(o)&&o.stops.forEach(s=>{s[1]=C9(n,s[1])}),r.set(o)}),delete n.constants,u3(n,r=>{xO(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),$F(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}u3(n,r=>{xO(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function ide(n){const e=[];return u3(n,t=>{t.filter&&(t.filter=l3(t.filter))}),dP(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:o,set:s})=>{H4(r)||i.endsWith("-transition")||o===null||(typeof r=="object"&&!Array.isArray(r)?(s(wX(r,o)),e.push(t.join("."))):o.tokens&&typeof r=="string"&&s(SX(r)))}),n}function rde(n){return JSON.parse(ode(JSON.stringify(n)))}function ode(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function sde(n){let e=!1;if(n.version===7&&(n=nde(n),e=!0),n.version===8&&(e=!!ide(n),e=!0),dP(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(rde(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const rp=us,ade={StyleExpression:MX,StylePropertyFunction:gE,ZoomConstantExpression:g9,ZoomDependentExpression:y9,createExpression:aP,createPropertyExpression:lP,isExpression:H4,isExpressionFilter:yE,isZoomExpression:She,normalizePropertyExpression:Ehe},lde={convertFunction:wX,createFunction:sP,isFunction:$4},ude=8,cde=JSON.parse('{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'maplibre:\'.","example":{"styleeditor:slimmode":true,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{"String":"one","Number":2,"Boolean":false}}},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"centerAltitude":{"type":"number","doc":"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":123.4,"sdk-support":{"basic functionality":{"js":"5.0.0","android":"https://github.com/maplibre/maplibre-native/issues/2980","ios":"https://github.com/maplibre/maplibre-native/issues/2980"}}},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by o
Line truncated
|
||||
${a}`)}return h})(n,"",0)}function YF(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 ede(n,e=2){return n=YF(n,is.$root),n.layers&&(n.layers=n.layers.map(t=>YF(t,is.layer))),Jhe(n,{indent:e})}function xO(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function $F(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function C9(n,e){return typeof e=="string"&&e[0]==="@"?C9(n,n.constants[e]):e}function tde(n){return Array.isArray(n.stops)}function c2(n,e,t){n[t]=n[e],delete n[e]}function nde(n){n.version=8,Khe(n,r=>{r.type==="video"&&r.url!==void 0&&c2(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),c3(n,r=>{xO(r,o=>{o["symbol-min-distance"]!==void 0&&c2(o,"symbol-min-distance","symbol-spacing")}),$F(r,o=>{o["background-image"]!==void 0&&c2(o,"background-image","background-pattern"),o["line-image"]!==void 0&&c2(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&c2(o,"fill-image","fill-pattern")})}),dP(n,{paint:!0,layout:!0},r=>{const o=C9(n,r.value);tde(o)&&o.stops.forEach(s=>{s[1]=C9(n,s[1])}),r.set(o)}),delete n.constants,c3(n,r=>{xO(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),$F(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}c3(n,r=>{xO(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function ide(n){const e=[];return c3(n,t=>{t.filter&&(t.filter=u3(t.filter))}),dP(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:o,set:s})=>{Z4(r)||i.endsWith("-transition")||o===null||(typeof r=="object"&&!Array.isArray(r)?(s(wX(r,o)),e.push(t.join("."))):o.tokens&&typeof r=="string"&&s(SX(r)))}),n}function rde(n){return JSON.parse(ode(JSON.stringify(n)))}function ode(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function sde(n){let e=!1;if(n.version===7&&(n=nde(n),e=!0),n.version===8&&(e=!!ide(n),e=!0),dP(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(rde(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const hp=is,ade={StyleExpression:MX,StylePropertyFunction:yE,ZoomConstantExpression:g9,ZoomDependentExpression:y9,createExpression:aP,createPropertyExpression:lP,isExpression:Z4,isExpressionFilter:vE,isZoomExpression:She,normalizePropertyExpression:Ehe},lde={convertFunction:wX,createFunction:sP,isFunction:V4},ude=8,cde=JSON.parse('{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'maplibre:\'.","example":{"styleeditor:slimmode":true,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{"String":"one","Number":2,"Boolean":false}}},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"centerAltitude":{"type":"number","doc":"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":123.4,"sdk-support":{"basic functionality":{"js":"5.0.0","android":"https://github.com/maplibre/maplibre-native/issues/2980","ios":"https://github.com/maplibre/maplibre-native/issues/2980"}}},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by o
Line truncated
|
||||
|
||||
* In categorical functions, when the feature value does not match any of the stop domain values.
|
||||
|
||||
@@ -90,11 +90,11 @@ ${a}`)}return h})(n,"",0)}function YF(n,e){const t={};for(const i in e)n[i]!==vo
|
||||
|
||||
* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.
|
||||
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:Tde,expression:Rde,expression_name:Dde,light:Pde,sky:Ude,terrain:Kde,projection:Lde,paint:Fde,paint_fill:zde,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:jde,paint_circle:Nde,paint_heatmap:Gde,paint_symbol:Wde,paint_raster:Qde,paint_hillshade:qde,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"},"data-driven styling":{}},expression:{interpolated:!Line truncated
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:Tde,expression:Rde,expression_name:Dde,light:Pde,sky:Ude,terrain:Kde,projection:Lde,paint:Fde,paint_fill:zde,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:jde,paint_circle:Nde,paint_heatmap:Gde,paint_symbol:Wde,paint_raster:Qde,paint_hillshade:qde,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"5.6.0",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"},"data-driven styling":{}},expression:{interpolated:!Line truncated
|
||||
* MapLibre GL JS
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.8.0/LICENSE.txt
|
||||
*/var Hde=ow.exports,VF;function Zde(){return VF||(VF=1,(function(n,e){(function(t,i){n.exports=i()})(Hde,(function(){var t={},i={};function r(s,a,c){if(i[s]=c,s==="index"){var h="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([h],{type:"text/javascript"}))),t}}r("shared",["exports"],(function(s){function a(f,u,d,b){return new(d||(d=Promise))((function(S,B){function D(te){try{W(b.next(te))}catch(re){B(re)}}function K(te){try{W(b.throw(te))}catch(re){B(re)}}function W(te){var re;te.done?S(te.value):(re=te.value,re instanceof d?re:new d((function(Ae){Ae(re)}))).then(D,K)}W((b=b.apply(f,u||[])).next())}))}function c(f,u){this.x=f,this.y=u}function h(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var m,y;typeof SuppressedError=="function"&&SuppressedError,c.prototype={clone(){return new c(this.x,this.y)},add(f){return this.clone()._add(f)},sub(f){return this.clone()._sub(f)},multByPoint(f){return this.clone()._multByPoint(f)},divByPoint(f){return this.clone()._divByPoint(f)},mult(f){return this.clone()._mult(f)},div(f){return this.clone()._div(f)},rotate(f){return this.clone()._rotate(f)},rotateAround(f,u){return this.clone()._rotateAround(f,u)},matMult(f){return this.clone()._matMult(f)},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(f){return this.x===f.x&&this.y===f.y},dist(f){return Math.sqrt(this.distSqr(f))},distSqr(f){const u=f.x-this.x,d=f.y-this.y;return u*u+d*d},angle(){return Math.atan2(this.y,this.x)},angleTo(f){return Math.atan2(this.y-f.y,this.x-f.x)},angleWith(f){return this.angleWithSep(f.x,f.y)},angleWithSep(f,u){return Math.atan2(this.x*u-this.y*f,this.x*f+this.y*u)},_matMult(f){const u=f[2]*this.x+f[3]*this.y;return this.x=f[0]*this.x+f[1]*this.y,this.y=u,this},_add(f){return this.x+=f.x,this.y+=f.y,this},_sub(f){return this.x-=f.x,this.y-=f.y,this},_mult(f){return this.x*=f,this.y*=f,this},_div(f){return this.x/=f,this.y/=f,this},_multByPoint(f){return this.x*=f.x,this.y*=f.y,this},_divByPoint(f){return this.x/=f.x,this.y/=f.y,this},_unit(){return this._div(this.mag()),this},_perp(){const f=this.y;return this.y=this.x,this.x=-f,this},_rotate(f){const u=Math.cos(f),d=Math.sin(f),b=d*this.x+u*this.y;return this.x=u*this.x-d*this.y,this.y=b,this},_rotateAround(f,u){const d=Math.cos(f),b=Math.sin(f),S=u.y+b*(this.x-u.x)+d*(this.y-u.y);return this.x=u.x+d*(this.x-u.x)-b*(this.y-u.y),this.y=S,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:c},c.convert=function(f){if(f instanceof c)return f;if(Array.isArray(f))return new c(+f[0],+f[1]);if(f.x!==void 0&&f.y!==void 0)return new c(+f.x,+f.y);throw new Error("Expected [x, y] or {x, y} point format")};var M=(function(){if(y)return m;function f(u,d,b,S){this.cx=3*u,this.bx=3*(b-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*d,this.by=3*(S-d)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=d,this.p2x=b,this.p2y=S}return y=1,m=f,f.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,d){if(d===void 0&&(d=1e-6),u<0)return 0;if(u>1)return 1;for(var b=u,S=0;S<8;S++){var B=this.sampleCurveX(b)-u;if(Math.abs(B)<d)return b;var D=this.sampleCurveDerivativeX(b);if(Math.abs(D)<1e-6)break;b-=B/D}var K=0,W=1;for(b=u,S=0;S<20&&(B=this.sampleCurveX(b),!(Math.abs(B-u)<d));S++)u>B?K=b:W=b,b=.5*(W-K)+K;return b},solve:function(u,d){return this.sampleCurveY(this.solveCurveX(u,d))}},m})(),x=h(M);let k,P;function F(){return k==null&&(k=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),k}function j(){if(P==null&&(P=!1,F())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let b=0;b<25;b++){const S=4*b;u.fillStyle=`rgb(${S},${S+1},${S+2})`,u.fillRect(b%5,Math.floor(b/5),1,1)}const d=u.getImageData(0,0,5,5).data;for(let b=0;b<100;b++)if(b%4!=3&&d[b]!==b){P=!0;break}}}return P||!1}var q=1e-6,V=typeof Float32Array<"u"?Float32Array:Array;function H(){var f=new V(9);return V!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f}function G(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function Y(){var f=new V(3);return V!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0),f}function z(f){var u=f[0],d=f[1],b=f[2];return Math.sqrt(u*u+d*d+b*b)}function se(f,u,d){var b=new V(3);return b[0]=f,b[1]=u,b[2]=d,b}function le(f,u,d){return f[0]=u[0]+d[0],f[1]=u[1]+d[1],f[2]=u[2]+d[2],f}function me(f,u,d){return f[0]=u[0]*d,f[1]=u[1]*d,f[2]=u[2]*d,f}function de(f,u,Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Ae[1])} }\`.`)];const Oe=[];return f.layerType==="symbol"&&(K==="text-field"&&S&&!S.glyphs&&Oe.push(new Zt(d,D,'use of "text-field" requires a style "glyphs" property')),K==="text-font"&&Zu(rh(D))&&oo(D.type)==="identity"&&Oe.push(new Zt(d,D,'"text-font" does not support identity functions'))),Oe.concat(b({key:f.key,value:D,valueSpec:re,style:S,styleSpec:B,expressionContext:"property",propertyType:u,propertyKey:K}))}function ah(f){return wA(f,"paint")}function SA(f){return wA(f,"layout")}function Su(f){let u=[];const d=f.value,b=f.key,S=f.style,B=f.styleSpec;if(br(d)!=="object")return[new Zt(b,d,`object expected, ${br(d)} found`)];d.type||d.ref||u.push(new Zt(b,d,'either "type" or "ref" is required'));let D=oo(d.type);const K=oo(d.ref);if(d.id){const W=oo(d.id);for(let te=0;te<f.arrayIndex;te++){const re=S.layers[te];oo(re.id)===W&&u.push(new Zt(b,d.id,`duplicate layer id "${d.id}", previously used at line ${re.id.__line__}`))}}if("ref"in d){let W;["type","source","source-layer","filter","layout"].forEach((te=>{te in d&&u.push(new Zt(b,d[te],`"${te}" is prohibited for ref layers`))})),S.layers.forEach((te=>{oo(te.id)===K&&(W=te)})),W?W.ref?u.push(new Zt(b,d.ref,"ref cannot reference another ref layer")):D=oo(W.type):u.push(new Zt(b,d.ref,`ref layer "${K}" not found`))}else if(D!=="background")if(d.source){const W=S.sources&&S.sources[d.source],te=W&&oo(W.type);W?te==="vector"&&D==="raster"?u.push(new Zt(b,d.source,`layer "${d.id}" requires a raster source`)):te!=="raster-dem"&&D==="hillshade"||te!=="raster-dem"&&D==="color-relief"?u.push(new Zt(b,d.source,`layer "${d.id}" requires a raster-dem source`)):te==="raster"&&D!=="raster"?u.push(new Zt(b,d.source,`layer "${d.id}" requires a vector source`)):te!=="vector"||d["source-layer"]?te==="raster-dem"&&D!=="hillshade"&&D!=="color-relief"?u.push(new Zt(b,d.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):D!=="line"||!d.paint||!d.paint["line-gradient"]||te==="geojson"&&W.lineMetrics||u.push(new Zt(b,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new Zt(b,d,`layer "${d.id}" must specify a "source-layer"`)):u.push(new Zt(b,d.source,`source "${d.source}" not found`))}else u.push(new Zt(b,d,'missing required property "source"'));return u=u.concat(Ka({key:b,value:d,valueSpec:B.layer,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*":()=>[],type:()=>f.validateSpec({key:`${b}.type`,value:d.type,valueSpec:B.layer.type,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,object:d,objectKey:"type"}),filter:Wl,layout:W=>Ka({layer:d,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":te=>SA(pr({layerType:D},te))}}),paint:W=>Ka({layer:d,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":te=>ah(pr({layerType:D},te))}})}})),u}function Ju(f){const u=f.value,d=f.key,b=br(u);return b!=="string"?[new Zt(d,u,`string expected, ${b} found`)]:[]}const Za={promoteId:function({key:f,value:u}){if(br(u)==="string")return Ju({key:f,value:u});{const d=[];for(const b in u)d.push(...Ju({key:`${f}.${b}`,value:u[b]}));return d}}};function lh(f){const u=f.value,d=f.key,b=f.styleSpec,S=f.style,B=f.validateSpec;if(!u.type)return[new Zt(d,u,'"type" is required')];const D=oo(u.type);let K;switch(D){case"vector":case"raster":return K=Ka({key:d,value:u,valueSpec:b[`source_${D.replace("-","_")}`],style:f.style,styleSpec:b,objectElementValidators:Za,validateSpec:B}),K;case"raster-dem":return K=(function(W){var te;const re=(te=W.sourceName)!==null&&te!==void 0?te:"",Ae=W.value,Oe=W.styleSpec,Pe=Oe.source_raster_dem,Le=W.style;let We=[];const He=br(Ae);if(Ae===void 0)return We;if(He!=="object")return We.push(new Zt("source_raster_dem",Ae,`object expected, ${He} found`)),We;const at=oo(Ae.encoding)==="custom",Rt=["redFactor","greenFactor","blueFactor","baseShift"],ft=W.value.encoding?`"${W.value.encoding}"`:"Default";for(const Ct in Ae)!at&&Rt.includes(Ct)?We.push(new Zt(Ct,Ae[Ct],`In "${re}": "${Ct}" is only valid when "encoding" is set to "custom". ${ft} encoding found`)):Pe[Ct]?We=We.concat(W.validateSpec({key:Ct,value:Ae[Ct],valueSpec:Pe[Ct],validateSpec:W.validateSpec,style:Le,styleSpec:Oe})):We.push(new Zt(Ct,Ae[Ct],`unknown property "${Ct}"`));return We})({sourceName:d,value:u,style:f.style,styleSpec:b,validateSpec:B}),K;case"geojson":if(K=Ka({key:d,value:u,valueSpec:b.source_geojson,style:S,styleSpec:b,validateSpec:B,objectElementValidators:Za}),u.cluster)for(const W in u.clusterProperties){const[te,re]=u.clusterProperties[W],Ae=typeof te=="string"?[te,["accumulated"],["get",W]]:te;K.push(...qe({key:`${d}.${W}.map`,value:re,expressionContext:"cluster-map"})),K.push(...qe({key:`${d}.${W}.reduce`,value:Ae,expreLine truncated
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.9.0/LICENSE.txt
|
||||
*/var Hde=sw.exports,VF;function Zde(){return VF||(VF=1,(function(n,e){(function(t,i){n.exports=i()})(Hde,(function(){var t={},i={};function r(s,a,c){if(i[s]=c,s==="index"){var h="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([h],{type:"text/javascript"}))),t}}r("shared",["exports"],(function(s){function a(f,u,d,b){return new(d||(d=Promise))((function(w,k){function D(te){try{N(b.next(te))}catch(re){k(re)}}function K(te){try{N(b.throw(te))}catch(re){k(re)}}function N(te){var re;te.done?w(te.value):(re=te.value,re instanceof d?re:new d((function(Ae){Ae(re)}))).then(D,K)}N((b=b.apply(f,u||[])).next())}))}function c(f,u){this.x=f,this.y=u}function h(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var m,y;typeof SuppressedError=="function"&&SuppressedError,c.prototype={clone(){return new c(this.x,this.y)},add(f){return this.clone()._add(f)},sub(f){return this.clone()._sub(f)},multByPoint(f){return this.clone()._multByPoint(f)},divByPoint(f){return this.clone()._divByPoint(f)},mult(f){return this.clone()._mult(f)},div(f){return this.clone()._div(f)},rotate(f){return this.clone()._rotate(f)},rotateAround(f,u){return this.clone()._rotateAround(f,u)},matMult(f){return this.clone()._matMult(f)},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(f){return this.x===f.x&&this.y===f.y},dist(f){return Math.sqrt(this.distSqr(f))},distSqr(f){const u=f.x-this.x,d=f.y-this.y;return u*u+d*d},angle(){return Math.atan2(this.y,this.x)},angleTo(f){return Math.atan2(this.y-f.y,this.x-f.x)},angleWith(f){return this.angleWithSep(f.x,f.y)},angleWithSep(f,u){return Math.atan2(this.x*u-this.y*f,this.x*f+this.y*u)},_matMult(f){const u=f[2]*this.x+f[3]*this.y;return this.x=f[0]*this.x+f[1]*this.y,this.y=u,this},_add(f){return this.x+=f.x,this.y+=f.y,this},_sub(f){return this.x-=f.x,this.y-=f.y,this},_mult(f){return this.x*=f,this.y*=f,this},_div(f){return this.x/=f,this.y/=f,this},_multByPoint(f){return this.x*=f.x,this.y*=f.y,this},_divByPoint(f){return this.x/=f.x,this.y/=f.y,this},_unit(){return this._div(this.mag()),this},_perp(){const f=this.y;return this.y=this.x,this.x=-f,this},_rotate(f){const u=Math.cos(f),d=Math.sin(f),b=d*this.x+u*this.y;return this.x=u*this.x-d*this.y,this.y=b,this},_rotateAround(f,u){const d=Math.cos(f),b=Math.sin(f),w=u.y+b*(this.x-u.x)+d*(this.y-u.y);return this.x=u.x+d*(this.x-u.x)-b*(this.y-u.y),this.y=w,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:c},c.convert=function(f){if(f instanceof c)return f;if(Array.isArray(f))return new c(+f[0],+f[1]);if(f.x!==void 0&&f.y!==void 0)return new c(+f.x,+f.y);throw new Error("Expected [x, y] or {x, y} point format")};var M=(function(){if(y)return m;function f(u,d,b,w){this.cx=3*u,this.bx=3*(b-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*d,this.by=3*(w-d)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=d,this.p2x=b,this.p2y=w}return y=1,m=f,f.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,d){if(d===void 0&&(d=1e-6),u<0)return 0;if(u>1)return 1;for(var b=u,w=0;w<8;w++){var k=this.sampleCurveX(b)-u;if(Math.abs(k)<d)return b;var D=this.sampleCurveDerivativeX(b);if(Math.abs(D)<1e-6)break;b-=k/D}var K=0,N=1;for(b=u,w=0;w<20&&(k=this.sampleCurveX(b),!(Math.abs(k-u)<d));w++)u>k?K=b:N=b,b=.5*(N-K)+K;return b},solve:function(u,d){return this.sampleCurveY(this.solveCurveX(u,d))}},m})(),x=h(M);let T,P;function F(){return T==null&&(T=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),T}function j(){if(P==null&&(P=!1,F())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let b=0;b<25;b++){const w=4*b;u.fillStyle=`rgb(${w},${w+1},${w+2})`,u.fillRect(b%5,Math.floor(b/5),1,1)}const d=u.getImageData(0,0,5,5).data;for(let b=0;b<100;b++)if(b%4!=3&&d[b]!==b){P=!0;break}}}return P||!1}var q=1e-6,V=typeof Float32Array<"u"?Float32Array:Array;function H(){var f=new V(9);return V!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f}function Q(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function Y(){var f=new V(3);return V!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0),f}function z(f){var u=f[0],d=f[1],b=f[2];return Math.sqrt(u*u+d*d+b*b)}function se(f,u,d){var b=new V(3);return b[0]=f,b[1]=u,b[2]=d,b}function le(f,u,d){return f[0]=u[0]+d[0],f[1]=u[1]+d[1],f[2]=u[2]+d[2],f}function pe(f,u,d){return f[0]=u[0]*d,f[1]=u[1]*d,f[2]=u[2]*d,f}function de(f,u,Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Ae[1])} }\`.`)];const Oe=[];return f.layerType==="symbol"&&(K==="text-field"&&w&&!w.glyphs&&Oe.push(new on(d,D,'use of "text-field" requires a style "glyphs" property')),K==="text-font"&&Up(Iu(D))&&js(D.type)==="identity"&&Oe.push(new on(d,D,'"text-font" does not support identity functions'))),Oe.concat(b({key:f.key,value:D,valueSpec:re,style:w,styleSpec:k,expressionContext:"property",propertyType:u,propertyKey:K}))}function uA(f){return uh(f,"paint")}function cA(f){return uh(f,"layout")}function Qh(f){let u=[];const d=f.value,b=f.key,w=f.style,k=f.styleSpec;if(hr(d)!=="object")return[new on(b,d,`object expected, ${hr(d)} found`)];d.type||d.ref||u.push(new on(b,d,'either "type" or "ref" is required'));let D=js(d.type);const K=js(d.ref);if(d.id){const N=js(d.id);for(let te=0;te<f.arrayIndex;te++){const re=w.layers[te];js(re.id)===N&&u.push(new on(b,d.id,`duplicate layer id "${d.id}", previously used at line ${re.id.__line__}`))}}if("ref"in d){let N;["type","source","source-layer","filter","layout"].forEach((te=>{te in d&&u.push(new on(b,d[te],`"${te}" is prohibited for ref layers`))})),w.layers.forEach((te=>{js(te.id)===K&&(N=te)})),N?N.ref?u.push(new on(b,d.ref,"ref cannot reference another ref layer")):D=js(N.type):u.push(new on(b,d.ref,`ref layer "${K}" not found`))}else if(D!=="background")if(d.source){const N=w.sources&&w.sources[d.source],te=N&&js(N.type);N?te==="vector"&&D==="raster"?u.push(new on(b,d.source,`layer "${d.id}" requires a raster source`)):te!=="raster-dem"&&D==="hillshade"||te!=="raster-dem"&&D==="color-relief"?u.push(new on(b,d.source,`layer "${d.id}" requires a raster-dem source`)):te==="raster"&&D!=="raster"?u.push(new on(b,d.source,`layer "${d.id}" requires a vector source`)):te!=="vector"||d["source-layer"]?te==="raster-dem"&&D!=="hillshade"&&D!=="color-relief"?u.push(new on(b,d.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):D!=="line"||!d.paint||!d.paint["line-gradient"]||te==="geojson"&&N.lineMetrics||u.push(new on(b,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new on(b,d,`layer "${d.id}" must specify a "source-layer"`)):u.push(new on(b,d.source,`source "${d.source}" not found`))}else u.push(new on(b,d,'missing required property "source"'));return u=u.concat(jl({key:b,value:d,valueSpec:k.layer,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*":()=>[],type:()=>f.validateSpec({key:`${b}.type`,value:d.type,valueSpec:k.layer.type,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,object:d,objectKey:"type"}),filter:br,layout:N=>jl({layer:d,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":te=>cA(nr({layerType:D},te))}}),paint:N=>jl({layer:d,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":te=>uA(nr({layerType:D},te))}})}})),u}function Kc(f){const u=f.value,d=f.key,b=hr(u);return b!=="string"?[new on(d,u,`string expected, ${b} found`)]:[]}const Fp={promoteId:function({key:f,value:u}){if(hr(u)==="string")return Kc({key:f,value:u});{const d=[];for(const b in u)d.push(...Kc({key:`${f}.${b}`,value:u[b]}));return d}}};function qh(f){const u=f.value,d=f.key,b=f.styleSpec,w=f.style,k=f.validateSpec;if(!u.type)return[new on(d,u,'"type" is required')];const D=js(u.type);let K;switch(D){case"vector":case"raster":return K=jl({key:d,value:u,valueSpec:b[`source_${D.replace("-","_")}`],style:f.style,styleSpec:b,objectElementValidators:Fp,validateSpec:k}),K;case"raster-dem":return K=(function(N){var te;const re=(te=N.sourceName)!==null&&te!==void 0?te:"",Ae=N.value,Oe=N.styleSpec,De=Oe.source_raster_dem,Ue=N.style;let Ge=[];const He=hr(Ae);if(Ae===void 0)return Ge;if(He!=="object")return Ge.push(new on("source_raster_dem",Ae,`object expected, ${He} found`)),Ge;const st=js(Ae.encoding)==="custom",Tt=["redFactor","greenFactor","blueFactor","baseShift"],dt=N.value.encoding?`"${N.value.encoding}"`:"Default";for(const Ct in Ae)!st&&Tt.includes(Ct)?Ge.push(new on(Ct,Ae[Ct],`In "${re}": "${Ct}" is only valid when "encoding" is set to "custom". ${dt} encoding found`)):De[Ct]?Ge=Ge.concat(N.validateSpec({key:Ct,value:Ae[Ct],valueSpec:De[Ct],validateSpec:N.validateSpec,style:Ue,styleSpec:Oe})):Ge.push(new on(Ct,Ae[Ct],`unknown property "${Ct}"`));return Ge})({sourceName:d,value:u,style:f.style,styleSpec:b,validateSpec:k}),K;case"geojson":if(K=jl({key:d,value:u,valueSpec:b.source_geojson,style:w,styleSpec:b,validateSpec:k,objectElementValidators:Fp}),u.cluster)for(const N in u.clusterProperties){const[te,re]=u.clusterProperties[N],Ae=typeof te=="string"?[te,["accumulated"],["get",N]]:te;K.push(...ku({key:`${d}.${N}.map`,value:re,expressionContext:"cluster-map"})),K.push(...ku({key:`${d}.${N}.reduce`,value:Ae,expreLine truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -153,19 +153,19 @@ vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=frac
|
||||
#else
|
||||
return 0.0;
|
||||
#endif
|
||||
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:Yi("","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:Yi("",`#define GLOBE_RADIUS 6371008.8
|
||||
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:Ui("","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:Ui("",`#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:Yi(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
|
||||
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:Ui(`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:Yi(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
|
||||
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:Ui(`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:Yi(`in vec3 v_data;in float v_visibility;
|
||||
}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:Ui(`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
|
||||
@@ -217,7 +217,7 @@ vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vect
|
||||
#else
|
||||
gl_Position=projectTileWithElevation(corner_position,ele);
|
||||
#endif
|
||||
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:Yi(Ds,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Yi(`uniform highp float u_intensity;in vec2 v_extrude;
|
||||
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:Ui(Tl,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Ui(`uniform highp float u_intensity;in vec2 v_extrude;
|
||||
#pragma mapbox: define highp float weight
|
||||
#define GAUSS_COEF 0.3989422804014327
|
||||
void main() {
|
||||
@@ -240,11 +240,11 @@ vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToS
|
||||
#else
|
||||
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
|
||||
#endif
|
||||
}`),heatmapTexture:Yi(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
|
||||
}`),heatmapTexture:Ui(`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:Yi("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:Yi("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:Yi(`#ifdef GL_ES
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:Ui("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:Ui("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:Ui(`#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
|
||||
@@ -252,13 +252,13 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:Yi("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:Yi(Ds,`in vec2 a_pos;void main() {
|
||||
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:Ui("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:Ui(Tl,`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:Yi(`#pragma mapbox: define highp vec4 color
|
||||
}`),fill:Ui(`#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
@@ -273,7 +273,7 @@ fragColor=vec4(1.0);
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:Yi(`in vec2 v_pos;
|
||||
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:Ui(`in vec2 v_pos;
|
||||
#ifdef GLOBE
|
||||
in float v_depth;
|
||||
#endif
|
||||
@@ -302,7 +302,7 @@ gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_P
|
||||
#ifdef GLOBE
|
||||
v_depth=gl_Position.z/gl_Position.w;
|
||||
#endif
|
||||
}`),fillOutlinePattern:Yi(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
|
||||
}`),fillOutlinePattern:Ui(`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
|
||||
@@ -339,7 +339,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern
|
||||
#ifdef GLOBE
|
||||
v_depth=gl_Position.z/gl_Position.w;
|
||||
#endif
|
||||
}`),fillPattern:Yi(`#ifdef GL_ES
|
||||
}`),fillPattern:Ui(`#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;
|
||||
@@ -366,7 +366,7 @@ void main() {
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:Yi(`in vec4 v_color;void main() {fragColor=v_color;
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:Ui(`in vec4 v_color;void main() {fragColor=v_color;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
@@ -398,7 +398,7 @@ float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0
|
||||
#ifdef GLOBE
|
||||
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
|
||||
#endif
|
||||
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:Yi(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
|
||||
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:Ui(`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
|
||||
@@ -451,14 +451,14 @@ gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
|
||||
#endif
|
||||
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
|
||||
? a_pos
|
||||
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:Yi(`#ifdef GL_ES
|
||||
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:Ui(`#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:Yi(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Ui(`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
|
||||
@@ -471,7 +471,7 @@ float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:Yi(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
|
||||
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:Ui(`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
|
||||
@@ -517,7 +517,7 @@ v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_width2=vec2(outset,inset);}`),lineGradient:Yi(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
|
||||
v_width2=vec2(outset,inset);}`),lineGradient:Ui(`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
|
||||
@@ -559,7 +559,7 @@ v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_width2=vec2(outset,inset);}`),linePattern:Yi(`#ifdef GL_ES
|
||||
v_width2=vec2(outset,inset);}`),linePattern:Ui(`#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;
|
||||
@@ -623,7 +623,7 @@ v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:Yi(`uniform lowp float u_device_pixel_ratio;uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
|
||||
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:Ui(`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
|
||||
@@ -684,7 +684,64 @@ 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:Yi(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
|
||||
float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:Ui(`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:Ui(`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
|
||||
@@ -692,7 +749,7 @@ fragColor=vec4(1.0);
|
||||
#ifdef GLOBE
|
||||
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
|
||||
#endif
|
||||
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:Yi(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
|
||||
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:Ui(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
@@ -710,7 +767,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
|
||||
#ifdef GLOBE
|
||||
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
|
||||
#endif
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:Yi(`#define SDF_PX 8.0
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:Ui(`#define SDF_PX 8.0
|
||||
uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
|
||||
#pragma mapbox: define highp vec4 fill_color
|
||||
#pragma mapbox: define highp vec4 halo_color
|
||||
@@ -745,7 +802,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
|
||||
#ifdef GLOBE
|
||||
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
|
||||
#endif
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:Yi(`#define SDF_PX 8.0
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:Ui(`#define SDF_PX 8.0
|
||||
#define SDF 1.0
|
||||
#define ICON 0.0
|
||||
uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;
|
||||
@@ -786,129 +843,129 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
|
||||
#ifdef GLOBE
|
||||
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
|
||||
#endif
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Yi("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Yi("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:Yi("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:Yi("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:Yi(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
|
||||
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Yi("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 Yi(I,l){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=l.match(/in ([\w]+) ([\w]+)/g),E=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),T=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),U=T?T.concat(E):E,Q={};return{fragmentSource:I=I.replace(p,((Z,ae,ce,Ce,fe)=>(Q[fe]=!0,ae==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${fe}
|
||||
in ${ce} ${Ce} ${fe};
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ui("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ui("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:Ui("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:Ui("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:Ui(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
|
||||
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Ui("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 Ui(O,l){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=l.match(/in ([\w]+) ([\w]+)/g),E=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),B=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),U=B?B.concat(E):E,G={};return{fragmentSource:O=O.replace(p,((Z,ae,ce,me,ge)=>(G[ge]=!0,ae==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${ge}
|
||||
in ${ce} ${me} ${ge};
|
||||
#else
|
||||
uniform ${ce} ${Ce} u_${fe};
|
||||
uniform ${ce} ${me} u_${ge};
|
||||
#endif
|
||||
`:`
|
||||
#ifdef HAS_UNIFORM_u_${fe}
|
||||
${ce} ${Ce} ${fe} = u_${fe};
|
||||
#ifdef HAS_UNIFORM_u_${ge}
|
||||
${ce} ${me} ${ge} = u_${ge};
|
||||
#endif
|
||||
`))),vertexSource:l=l.replace(p,((Z,ae,ce,Ce,fe)=>{const Re=Ce==="float"?"vec2":"vec4",Ge=fe.match(/color/)?"color":Re;return Q[fe]?ae==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${fe}
|
||||
uniform lowp float u_${fe}_t;
|
||||
in ${ce} ${Re} a_${fe};
|
||||
out ${ce} ${Ce} ${fe};
|
||||
`))),vertexSource:l=l.replace(p,((Z,ae,ce,me,ge)=>{const Pe=me==="float"?"vec2":"vec4",Ne=ge.match(/color/)?"color":Pe;return G[ge]?ae==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${ge}
|
||||
uniform lowp float u_${ge}_t;
|
||||
in ${ce} ${Pe} a_${ge};
|
||||
out ${ce} ${me} ${ge};
|
||||
#else
|
||||
uniform ${ce} ${Ce} u_${fe};
|
||||
uniform ${ce} ${me} u_${ge};
|
||||
#endif
|
||||
`:Ge==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${fe}
|
||||
${fe} = a_${fe};
|
||||
`:Ne==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${ge}
|
||||
${ge} = a_${ge};
|
||||
#else
|
||||
${ce} ${Ce} ${fe} = u_${fe};
|
||||
${ce} ${me} ${ge} = u_${ge};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${fe}
|
||||
${fe} = unpack_mix_${Ge}(a_${fe}, u_${fe}_t);
|
||||
#ifndef HAS_UNIFORM_u_${ge}
|
||||
${ge} = unpack_mix_${Ne}(a_${ge}, u_${ge}_t);
|
||||
#else
|
||||
${ce} ${Ce} ${fe} = u_${fe};
|
||||
${ce} ${me} ${ge} = u_${ge};
|
||||
#endif
|
||||
`:ae==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${fe}
|
||||
uniform lowp float u_${fe}_t;
|
||||
in ${ce} ${Re} a_${fe};
|
||||
#ifndef HAS_UNIFORM_u_${ge}
|
||||
uniform lowp float u_${ge}_t;
|
||||
in ${ce} ${Pe} a_${ge};
|
||||
#else
|
||||
uniform ${ce} ${Ce} u_${fe};
|
||||
uniform ${ce} ${me} u_${ge};
|
||||
#endif
|
||||
`:Ge==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${fe}
|
||||
${ce} ${Ce} ${fe} = a_${fe};
|
||||
`:Ne==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${ge}
|
||||
${ce} ${me} ${ge} = a_${ge};
|
||||
#else
|
||||
${ce} ${Ce} ${fe} = u_${fe};
|
||||
${ce} ${me} ${ge} = u_${ge};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${fe}
|
||||
${ce} ${Ce} ${fe} = unpack_mix_${Ge}(a_${fe}, u_${fe}_t);
|
||||
#ifndef HAS_UNIFORM_u_${ge}
|
||||
${ce} ${me} ${ge} = unpack_mix_${Ne}(a_${ge}, u_${ge}_t);
|
||||
#else
|
||||
${ce} ${Ce} ${fe} = u_${fe};
|
||||
${ce} ${me} ${ge} = u_${ge};
|
||||
#endif
|
||||
`})),staticAttributes:C,staticUniforms:U}}class ou{constructor(l,p,C){this.vertexBuffer=l,this.indexBuffer=p,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Vo=a.aJ([{name:"a_pos",type:"Int16",components:2}]);const dl="#define PROJECTION_MERCATOR",Cu="mercator";class sr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Cu}get shaderDefine(){return dl}get shaderPreludeCode(){return qr.projectionMercator}get vertexShaderPreludeCode(){return qr.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,p,C,E,T){if(this._cachedMesh)return this._cachedMesh;const U=new a.aL;U.emplaceBack(0,0),U.emplaceBack(a.$,0),U.emplaceBack(0,a.$),U.emplaceBack(a.$,a.$);const Q=l.createVertexBuffer(U,Vo.members),Z=a.aM.simpleSegment(0,0,4,2),ae=new a.aN;ae.emplaceBack(1,0,2),ae.emplaceBack(1,2,3);const ce=l.createIndexBuffer(ae);return this._cachedMesh=new ou(Q,ce,Z),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}class El{constructor(l=0,p=0,C=0,E=0){if(isNaN(l)||l<0||isNaN(p)||p<0||isNaN(C)||C<0||isNaN(E)||E<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=p,this.left=C,this.right=E}interpolate(l,p,C){return p.top!=null&&l.top!=null&&(this.top=a.C.number(l.top,p.top,C)),p.bottom!=null&&l.bottom!=null&&(this.bottom=a.C.number(l.bottom,p.bottom,C)),p.left!=null&&l.left!=null&&(this.left=a.C.number(l.left,p.left,C)),p.right!=null&&l.right!=null&&(this.right=a.C.number(l.right,p.right,C)),this}getCenter(l,p){const C=a.ah((this.left+l-this.right)/2,0,l),E=a.ah((this.top+p-this.bottom)/2,0,p);return new a.P(C,E)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new El(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Va(I,l){if(!I.renderWorldCopies||I.lngRange)return;const p=l.lng-I.center.lng;l.lng+=p>180?-360:p<-180?360:0}function Go(I){return Math.max(0,Math.floor(I))}class Ps{constructor(l,p,C,E,T,U){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=U===void 0||!!U,this._minZoom=p||0,this._maxZoom=C||22,this._minPitch=E??0,this._maxPitch=T??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Go(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new El,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,p,C){this._latRange=l.latRange,this._lngRange=l.lngRange,this._width=l.width,this._height=l.height,this._center=l.center,this._elevation=l.elevation,this._minElevationForCurrentTile=l.minElevationForCurrentTile,this._zoom=l.zoom,this._tileZoom=Go(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=l.bearingInRadians,this._fovInRadians=l.fovInRadians,this._pitchInRadians=l.pitchInRadians,this._rollInRadians=l.rollInRadians,this._unmodified=l.unmodified,this._edgeInsets=new El(l.padding.top,l.padding.bottom,l.padding.left,l.padding.right),this._minZoom=l.minZoom,this._maxZoom=l.maxZoom,this._minPitch=l.minPitch,this._maxPitch=l.maxPitch,this._renderWorldCopies=l.renderWorldCopies,this._cameraToCenterDistance=l.cameraToCenterDistance,this._nearZ=l.nearZ,this._farZ=l.farZ,this._autoCalculateNearFarZ=!C&&l.autoCalculateNearFarZ,p&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(l){this._minElevationForCurrentTile=l}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(l){this._minZoom!==l&&(this._minZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(l){this._maxZoom!==l&&(this._maxZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(l){this._minPitch!==l&&(this._minPitch=l,this.setPitch(Math.max(this.pitch,l)))}get maxPitch(){return this._maxPitch}setMaxP
Line truncated
|
||||
`),xt=ct.concat(qr.prelude.vertexSource,Q.vertexSource,p.vertexSource).join(`
|
||||
`);$e(ce)||(gt=(function(Kt){return Kt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(gt),xt=(function(Kt){return Kt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(xt));const ht=ce.createShader(ce.FRAGMENT_SHADER);if(ce.isContextLost())return void(this.failedToCreate=!0);if(ce.shaderSource(ht,gt),ce.compileShader(ht),!ce.getShaderParameter(ht,ce.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ce.getShaderInfoLog(ht)}`);ce.attachShader(this.program,ht);const Et=ce.createShader(ce.VERTEX_SHADER);if(ce.isContextLost())return void(this.failedToCreate=!0);if(ce.shaderSource(Et,xt),ce.compileShader(Et),!ce.getShaderParameter(Et,ce.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ce.getShaderInfoLog(Et)}`);ce.attachShader(this.program,Et),this.attributes={};const Qt={};this.numAttributes=Re.length;for(let Kt=0;Kt<this.numAttributes;Kt++)Re[Kt]&&(ce.bindAttribLocation(this.program,Kt,Re[Kt]),this.attributes[Re[Kt]]=Kt);if(ce.linkProgram(this.program),!ce.getProgramParameter(this.program,ce.LINK_STATUS))throw new Error(`Program failed to link: ${ce.getProgramInfoLog(this.program)}`);ce.deleteShader(Et),ce.deleteShader(ht);for(let Kt=0;Kt<nt.length;Kt++){const Nt=nt[Kt];if(Nt&&!Qt[Nt]){const Wt=ce.getUniformLocation(this.program,Nt);Wt&&(Qt[Nt]=Wt)}}this.fixedUniforms=E(l,Qt),this.terrainUniforms=((Kt,Nt)=>({u_depth:new a.bP(Kt,Nt.u_depth),u_terrain:new a.bP(Kt,Nt.u_terrain),u_terrain_dim:new a.bg(Kt,Nt.u_terrain_dim),u_terrain_matrix:new a.bR(Kt,Nt.u_terrain_matrix),u_terrain_unpack:new a.bS(Kt,Nt.u_terrain_unpack),u_terrain_exaggeration:new a.bg(Kt,Nt.u_terrain_exaggeration)}))(l,Qt),this.projectionUniforms=((Kt,Nt)=>({u_projection_matrix:new a.bR(Kt,Nt.u_projection_matrix),u_projection_tile_mercator_coords:new a.bS(Kt,Nt.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.bS(Kt,Nt.u_projection_clipping_plane),u_projection_transition:new a.bg(Kt,Nt.u_projection_transition),u_projection_fallback_matrix:new a.bR(Kt,Nt.u_projection_fallback_matrix)}))(l,Qt),this.binderUniforms=C?C.getUniforms(l,Qt):[]}draw(l,p,C,E,T,U,Q,Z,ae,ce,Ce,fe,Re,Ge,Ze,Xe,tt,ot,nt){const ct=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(C),l.setStencilMode(E),l.setColorMode(T),l.setCullFace(U),Z){l.activeTexture.set(ct.TEXTURE2),ct.bindTexture(ct.TEXTURE_2D,Z.depthTexture),l.activeTexture.set(ct.TEXTURE3),ct.bindTexture(ct.TEXTURE_2D,Z.texture);for(const xt in this.terrainUniforms)this.terrainUniforms[xt].set(Z[xt])}if(ae)for(const xt in ae)this.projectionUniforms[vm[xt]].set(ae[xt]);if(Q)for(const xt in this.fixedUniforms)this.fixedUniforms[xt].set(Q[xt]);Xe&&Xe.setUniforms(l,this.binderUniforms,Ge,{zoom:Ze});let gt=0;switch(p){case ct.LINES:gt=2;break;case ct.TRIANGLES:gt=3;break;case ct.LINE_STRIP:gt=1}for(const xt of Re.get()){const ht=xt.vaos||(xt.vaos={});(ht[ce]||(ht[ce]=new pv)).bind(l,this,Ce,Xe?Xe.getPaintVertexBuffers():[],fe,xt.vertexOffset,tt,ot,nt),ct.drawElements(p,xt.primitiveLength*gt,ct.UNSIGNED_SHORT,xt.primitiveOffset*gt*2)}}}function bm(I,l,p){const C=1/a.aC(p,1,l.transform.tileZoom),E=Math.pow(2,p.tileID.overscaledZ),T=p.tileSize*Math.pow(2,l.transform.tileZoom)/E,U=T*(p.tileID.canonical.x+p.tileID.wrap*E),Q=T*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[C,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[U>>16,Q>>16],u_pixel_coord_lower:[65535&U,65535&Q]}}const Cc=(I,l,p,C)=>{const E=I.style.light,T=E.properties.get("position"),U=[T.x,T.y,T.z],Q=a.bV();E.properties.get("anchor")==="viewport"&&a.bW(Q,I.transform.bearingInRadians),a.bX(U,U,Q);const Z=I.transform.transformLightDirection(U),ae=E.properties.get("color");return{u_lightpos:U,u_lightpos_globe:Z,u_lightintensity:E.properties.get("intensity"),u_lightcolor:[ae.r,ae.g,ae.b],u_vertical_gradient:+l,u_opacity:p,u_fill_translate:C}},Cm=(I,l,p,C,E,T,U)=>a.e(Cc(I,l,p,C),bm(T,I,U),{u_height_factor:-Math.pow(2,E.overscaledZ)/U.tileSize/8}),gA=(I,l,p,C)=>a.e(bm(l,I,p),{u_fill_translate:C}),Ed=(I,l)=>({u_world:I,u_fill_translate:l}),Od=(I,l,p,C,E)=>a.e(gA(I,l,p,E),{u_world:C}),x1=(I,l,p,C,E)=>{const T=I.transform;let U,Q,Z=0;if(p.paint.get("circle-pitch-alignment")==="map"){const ae=a.aC(l,1,T.zoom);U=!0,Q=[ae,ae],Z=ae/(a.$*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*E}else U=!1,Q=T.pixelsToGLUnits;return{u_camera_to_center_distance:T.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+U,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:Q,u_globe_extrude_scale:Z,u_translate:C}},Bd=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),_m=I=>({u_viewport_size:[I.width,I.height]}),Fh=(I,l=1)=>({u_color:I,u_overlay:0,u_overlay_scale:l}),zh=(I,l,p,C)=>{const E=a.aC(I,1,l)/(a.$*Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:a.aC(I,1,
Line truncated
|
||||
`})),staticAttributes:C,staticUniforms:U}}class au{constructor(l,p,C){this.vertexBuffer=l,this.indexBuffer=p,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var aa=a.aJ([{name:"a_pos",type:"Int16",components:2}]);const Su="#define PROJECTION_MERCATOR",ir="mercator";class Pa{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return ir}get shaderDefine(){return Su}get shaderPreludeCode(){return Js.projectionMercator}get vertexShaderPreludeCode(){return Js.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,p,C,E,B){if(this._cachedMesh)return this._cachedMesh;const U=new a.aL;U.emplaceBack(0,0),U.emplaceBack(a.$,0),U.emplaceBack(0,a.$),U.emplaceBack(a.$,a.$);const G=l.createVertexBuffer(U,aa.members),Z=a.aM.simpleSegment(0,0,4,2),ae=new a.aN;ae.emplaceBack(1,0,2),ae.emplaceBack(1,2,3);const ce=l.createIndexBuffer(ae);return this._cachedMesh=new au(G,ce,Z),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}class ko{constructor(l=0,p=0,C=0,E=0){if(isNaN(l)||l<0||isNaN(p)||p<0||isNaN(C)||C<0||isNaN(E)||E<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=p,this.left=C,this.right=E}interpolate(l,p,C){return p.top!=null&&l.top!=null&&(this.top=a.C.number(l.top,p.top,C)),p.bottom!=null&&l.bottom!=null&&(this.bottom=a.C.number(l.bottom,p.bottom,C)),p.left!=null&&l.left!=null&&(this.left=a.C.number(l.left,p.left,C)),p.right!=null&&l.right!=null&&(this.right=a.C.number(l.right,p.right,C)),this}getCenter(l,p){const C=a.ah((this.left+l-this.right)/2,0,l),E=a.ah((this.top+p-this.bottom)/2,0,p);return new a.P(C,E)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new ko(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Rl(O,l){if(!O.renderWorldCopies||O.lngRange)return;const p=l.lng-O.center.lng;l.lng+=p>180?-360:p<-180?360:0}function ss(O){return Math.max(0,Math.floor(O))}class fo{constructor(l,p,C,E,B,U){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=U===void 0||!!U,this._minZoom=p||0,this._maxZoom=C||22,this._minPitch=E??0,this._maxPitch=B??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=ss(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new ko,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,p,C){this._latRange=l.latRange,this._lngRange=l.lngRange,this._width=l.width,this._height=l.height,this._center=l.center,this._elevation=l.elevation,this._minElevationForCurrentTile=l.minElevationForCurrentTile,this._zoom=l.zoom,this._tileZoom=ss(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=l.bearingInRadians,this._fovInRadians=l.fovInRadians,this._pitchInRadians=l.pitchInRadians,this._rollInRadians=l.rollInRadians,this._unmodified=l.unmodified,this._edgeInsets=new ko(l.padding.top,l.padding.bottom,l.padding.left,l.padding.right),this._minZoom=l.minZoom,this._maxZoom=l.maxZoom,this._minPitch=l.minPitch,this._maxPitch=l.maxPitch,this._renderWorldCopies=l.renderWorldCopies,this._cameraToCenterDistance=l.cameraToCenterDistance,this._nearZ=l.nearZ,this._farZ=l.farZ,this._autoCalculateNearFarZ=!C&&l.autoCalculateNearFarZ,p&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(l){this._minElevationForCurrentTile=l}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(l){this._minZoom!==l&&(this._minZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(l){this._maxZoom!==l&&(this._maxZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(l){this._minPitch!==l&&(this._minPitch=l,this.setPitch(Math.max(this.pitch,l)))}get maxPitch(){return this._maxPitch}setMaxP
Line truncated
|
||||
`),xt=ut.concat(Js.prelude.vertexSource,G.vertexSource,p.vertexSource).join(`
|
||||
`);jn(ce)||(gt=(function(Lt){return Lt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(gt),xt=(function(Lt){return Lt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(xt));const ct=ce.createShader(ce.FRAGMENT_SHADER);if(ce.isContextLost())return void(this.failedToCreate=!0);if(ce.shaderSource(ct,gt),ce.compileShader(ct),!ce.getShaderParameter(ct,ce.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ce.getShaderInfoLog(ct)}`);ce.attachShader(this.program,ct);const wt=ce.createShader(ce.VERTEX_SHADER);if(ce.isContextLost())return void(this.failedToCreate=!0);if(ce.shaderSource(wt,xt),ce.compileShader(wt),!ce.getShaderParameter(wt,ce.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ce.getShaderInfoLog(wt)}`);ce.attachShader(this.program,wt),this.attributes={};const Wt={};this.numAttributes=Pe.length;for(let Lt=0;Lt<this.numAttributes;Lt++)Pe[Lt]&&(ce.bindAttribLocation(this.program,Lt,Pe[Lt]),this.attributes[Pe[Lt]]=Lt);if(ce.linkProgram(this.program),!ce.getProgramParameter(this.program,ce.LINK_STATUS))throw new Error(`Program failed to link: ${ce.getProgramInfoLog(this.program)}`);ce.deleteShader(wt),ce.deleteShader(ct);for(let Lt=0;Lt<ht.length;Lt++){const Nt=ht[Lt];if(Nt&&!Wt[Nt]){const Gt=ce.getUniformLocation(this.program,Nt);Gt&&(Wt[Nt]=Gt)}}this.fixedUniforms=E(l,Wt),this.terrainUniforms=((Lt,Nt)=>({u_depth:new a.bQ(Lt,Nt.u_depth),u_terrain:new a.bQ(Lt,Nt.u_terrain),u_terrain_dim:new a.bg(Lt,Nt.u_terrain_dim),u_terrain_matrix:new a.bS(Lt,Nt.u_terrain_matrix),u_terrain_unpack:new a.bT(Lt,Nt.u_terrain_unpack),u_terrain_exaggeration:new a.bg(Lt,Nt.u_terrain_exaggeration)}))(l,Wt),this.projectionUniforms=((Lt,Nt)=>({u_projection_matrix:new a.bS(Lt,Nt.u_projection_matrix),u_projection_tile_mercator_coords:new a.bT(Lt,Nt.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.bT(Lt,Nt.u_projection_clipping_plane),u_projection_transition:new a.bg(Lt,Nt.u_projection_transition),u_projection_fallback_matrix:new a.bS(Lt,Nt.u_projection_fallback_matrix)}))(l,Wt),this.binderUniforms=C?C.getUniforms(l,Wt):[]}draw(l,p,C,E,B,U,G,Z,ae,ce,me,ge,Pe,Ne,Ze,Xe,et,ot,ht){const ut=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(C),l.setStencilMode(E),l.setColorMode(B),l.setCullFace(U),Z){l.activeTexture.set(ut.TEXTURE2),ut.bindTexture(ut.TEXTURE_2D,Z.depthTexture),l.activeTexture.set(ut.TEXTURE3),ut.bindTexture(ut.TEXTURE_2D,Z.texture);for(const xt in this.terrainUniforms)this.terrainUniforms[xt].set(Z[xt])}if(ae)for(const xt in ae)this.projectionUniforms[XA[xt]].set(ae[xt]);if(G)for(const xt in this.fixedUniforms)this.fixedUniforms[xt].set(G[xt]);Xe&&Xe.setUniforms(l,this.binderUniforms,Ne,{zoom:Ze});let gt=0;switch(p){case ut.LINES:gt=2;break;case ut.TRIANGLES:gt=3;break;case ut.LINE_STRIP:gt=1}for(const xt of Pe.get()){const ct=xt.vaos||(xt.vaos={});(ct[ce]||(ct[ce]=new Sp)).bind(l,this,me,Xe?Xe.getPaintVertexBuffers():[],ge,xt.vertexOffset,et,ot,ht),ut.drawElements(p,xt.primitiveLength*gt,ut.UNSIGNED_SHORT,xt.primitiveOffset*gt*2)}}}function Eu(O,l,p){const C=1/a.aC(p,1,l.transform.tileZoom),E=Math.pow(2,p.tileID.overscaledZ),B=p.tileSize*Math.pow(2,l.transform.tileZoom)/E,U=B*(p.tileID.canonical.x+p.tileID.wrap*E),G=B*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[C,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[U>>16,G>>16],u_pixel_coord_lower:[65535&U,65535&G]}}const Rh=(O,l,p,C)=>{const E=O.style.light,B=E.properties.get("position"),U=[B.x,B.y,B.z],G=a.bW();E.properties.get("anchor")==="viewport"&&a.bX(G,O.transform.bearingInRadians),a.bY(U,U,G);const Z=O.transform.transformLightDirection(U),ae=E.properties.get("color");return{u_lightpos:U,u_lightpos_globe:Z,u_lightintensity:E.properties.get("intensity"),u_lightcolor:[ae.r,ae.g,ae.b],u_vertical_gradient:+l,u_opacity:p,u_fill_translate:C}},Ep=(O,l,p,C,E,B,U)=>a.e(Rh(O,l,p,C),Eu(B,O,U),{u_height_factor:-Math.pow(2,E.overscaledZ)/U.tileSize/8}),Dh=(O,l,p,C)=>a.e(Eu(l,O,p),{u_fill_translate:C}),Tf=(O,l)=>({u_world:O,u_fill_translate:l}),Fm=(O,l,p,C,E)=>a.e(Dh(O,l,p,E),{u_world:C}),Pd=(O,l,p,C,E)=>{const B=O.transform;let U,G,Z=0;if(p.paint.get("circle-pitch-alignment")==="map"){const ae=a.aC(l,1,B.zoom);U=!0,G=[ae,ae],Z=ae/(a.$*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*E}else U=!1,G=B.pixelsToGLUnits;return{u_camera_to_center_distance:B.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+U,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:G,u_globe_extrude_scale:Z,u_translate:C}},x1=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Rc=O=>({u_viewport_size:[O.width,O.height]}),Ou=(O,l=1)=>({u_color:O,u_overlay:0,u_overlay_scale:l}),Op=(O,l,p,C)=>{const E=a.aC(O,1,l)/(a.$*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:a.aC(O,1,
Line truncated
|
||||
uniform mat4 u_projection_matrix;
|
||||
${Re.shaderPreludeCode.vertexSource}`,define:Re.shaderDefine},defaultProjectionData:Ze},tt=fe.renderingMode?fe.renderingMode:"2d";if(U.renderPass==="offscreen"){const ot=fe.prerender;ot&&(U.setCustomLayerDefaults(),Ce.setColorMode(U.colorModeForRenderPass()),ot.call(fe,Ce.gl,Xe),Ce.setDirty(),U.setBaseState())}else if(U.renderPass==="translucent"){U.setCustomLayerDefaults(),Ce.setColorMode(U.colorModeForRenderPass()),Ce.setStencilMode(X.disabled);const ot=tt==="3d"?U.getDepthModeFor3D():U.getDepthModeForSublayer(0,Jn.ReadOnly);Ce.setDepthMode(ot),fe.render(Ce.gl,Xe),Ce.setDirty(),U.setBaseState(),Ce.bindFramebuffer.set(null)}})(l,0,C,T))}saveTileTexture(l){const p=this._tileTextures[l.size[0]];p?p.push(l):this._tileTextures[l.size[0]]=[l]}getTileTexture(l){const p=this._tileTextures[l];return p&&p.length>0?p.pop():null}isPatternMissing(l){if(!l)return!1;if(!l.from||!l.to)return!0;const p=this.imageManager.getPattern(l.from.toString()),C=this.imageManager.getPattern(l.to.toString());return!p||!C}useProgram(l,p,C=!1,E=[]){this.cache=this.cache||{};const T=!!this.style.map.terrain,U=this.style.projection,Q=C?qr.projectionMercator:U.shaderPreludeCode,Z=C?dl:U.shaderDefine,ae=l+(p?p.cacheKey:"")+`/${C?Cu:U.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(T?"/terrain":"")+(E?`/${E.join("/")}`:"");return this.cache[ae]||(this.cache[ae]=new Lh(this.context,qr[l],p,Jg[l],this._showOverdrawInspector,T,Q,Z,E)),this.cache[ae]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const l=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(l.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:l,drawingBufferHeight:p}=this.context.gl;return this.width!==l||this.height!==p}}function sh(I,l){let p,C=!1,E=null,T=null;const U=()=>{E=null,C&&(I.apply(T,p),E=setTimeout(U,l),C=!1)};return(...Q)=>(C=!0,T=this,p=Q,E||U(),E)}class qe{constructor(l){this._getCurrentHash=()=>{const p=window.location.hash.replace("#","");if(this._hashName){let C;return p.split("&").map((E=>E.split("="))).forEach((E=>{E[0]===this._hashName&&(C=E)})),(C&&C[1]||"").split("/")}return p.split("/")},this._onHashChange=()=>{const p=this._getCurrentHash();if(!this._isValidHash(p))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(p[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+p[2],+p[1]],zoom:+p[0],bearing:C,pitch:+(p[4]||0)}),!0},this._updateHashUnthrottled=()=>{const p=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,p)},this._removeHash=()=>{const p=this._getCurrentHash();if(p.length===0)return;const C=p.join("/");let E=C;E.split("&").length>0&&(E=E.split("&")[0]),this._hashName&&(E=`${this._hashName}=${C}`);let T=window.location.hash.replace(E,"");T.startsWith("#&")?T=T.slice(0,1)+T.slice(2):T==="#"&&(T="");let U=window.location.href.replace(/(#.+)?$/,T);U=U.replace("&&","&"),window.history.replaceState(window.history.state,null,U)},this._updateHash=sh(this._updateHashUnthrottled,300),this._hashName=l&&encodeURIComponent(l)}addTo(l){return this._map=l,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(l){const p=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,E=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),T=Math.pow(10,E),U=Math.round(p.lng*T)/T,Q=Math.round(p.lat*T)/T,Z=this._map.getBearing(),ae=this._map.getPitch();let ce="";if(ce+=l?`/${U}/${Q}/${C}`:`${C}/${Q}/${U}`,(Z||ae)&&(ce+="/"+Math.round(10*Z)/10),ae&&(ce+=`/${Math.round(ae)}`),this._hashName){const Ce=this._hashName;let fe=!1;const Re=window.location.hash.slice(1).split("&").map((Ge=>{const Ze=Ge.split("=")[0];return Ze===Ce?(fe=!0,`${Ze}=${ce}`):Ge})).filter((Ge=>Ge));return fe||Re.push(`${Ce}=${ce}`),`#${Re.join("&")}`}return`#${ce}`}_isValidHash(l){if(l.length<3||l.some(isNaN))return!1;try{new a.S(+l[2],+l[1])}catch{return!1}const p=+l[0],C=+(l[3]||0),E=+(l[4]||0);return p>=this._map.getMinZoom()&&p<=this._map.getMaxZoom()&&C>=-180&&C<=180&&E>=this._map.getMinPitch()&&E<=this._map.getMaxPitch()}}const wu={linearity:.3,easing:a.cm(0,0
Line truncated
|
||||
${Pe.shaderPreludeCode.vertexSource}`,define:Pe.shaderDefine},defaultProjectionData:Ze},et=ge.renderingMode?ge.renderingMode:"2d";if(U.renderPass==="offscreen"){const ot=ge.prerender;ot&&(U.setCustomLayerDefaults(),me.setColorMode(U.colorModeForRenderPass()),ot.call(ge,me.gl,Xe),me.setDirty(),U.setBaseState())}else if(U.renderPass==="translucent"){U.setCustomLayerDefaults(),me.setColorMode(U.colorModeForRenderPass()),me.setStencilMode(Qe.disabled);const ot=et==="3d"?U.getDepthModeFor3D():U.getDepthModeForSublayer(0,X.ReadOnly);me.setDepthMode(ot),ge.render(me.gl,Xe),me.setDirty(),U.setBaseState(),me.bindFramebuffer.set(null)}})(l,0,C,B))}saveTileTexture(l){const p=this._tileTextures[l.size[0]];p?p.push(l):this._tileTextures[l.size[0]]=[l]}getTileTexture(l){const p=this._tileTextures[l];return p&&p.length>0?p.pop():null}isPatternMissing(l){if(!l)return!1;if(!l.from||!l.to)return!0;const p=this.imageManager.getPattern(l.from.toString()),C=this.imageManager.getPattern(l.to.toString());return!p||!C}useProgram(l,p,C=!1,E=[]){this.cache=this.cache||{};const B=!!this.style.map.terrain,U=this.style.projection,G=C?Js.projectionMercator:U.shaderPreludeCode,Z=C?Su:U.shaderDefine,ae=l+(p?p.cacheKey:"")+`/${C?ir:U.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(B?"/terrain":"")+(E?`/${E.join("/")}`:"");return this.cache[ae]||(this.cache[ae]=new Lm(this.context,Js[l],p,th[l],this._showOverdrawInspector,B,G,Z,E)),this.cache[ae]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const l=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(l.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:l,drawingBufferHeight:p}=this.context.gl;return this.width!==l||this.height!==p}}function uA(O,l){let p,C=!1,E=null,B=null;const U=()=>{E=null,C&&(O.apply(B,p),E=setTimeout(U,l),C=!1)};return(...G)=>(C=!0,B=this,p=G,E||U(),E)}class cA{constructor(l){this._getCurrentHash=()=>{const p=window.location.hash.replace("#","");if(this._hashName){let C;return p.split("&").map((E=>E.split("="))).forEach((E=>{E[0]===this._hashName&&(C=E)})),(C&&C[1]||"").split("/")}return p.split("/")},this._onHashChange=()=>{const p=this._getCurrentHash();if(!this._isValidHash(p))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(p[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+p[2],+p[1]],zoom:+p[0],bearing:C,pitch:+(p[4]||0)}),!0},this._updateHashUnthrottled=()=>{const p=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,p)},this._removeHash=()=>{const p=this._getCurrentHash();if(p.length===0)return;const C=p.join("/");let E=C;E.split("&").length>0&&(E=E.split("&")[0]),this._hashName&&(E=`${this._hashName}=${C}`);let B=window.location.hash.replace(E,"");B.startsWith("#&")?B=B.slice(0,1)+B.slice(2):B==="#"&&(B="");let U=window.location.href.replace(/(#.+)?$/,B);U=U.replace("&&","&"),window.history.replaceState(window.history.state,null,U)},this._updateHash=uA(this._updateHashUnthrottled,300),this._hashName=l&&encodeURIComponent(l)}addTo(l){return this._map=l,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(l){const p=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,E=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),B=Math.pow(10,E),U=Math.round(p.lng*B)/B,G=Math.round(p.lat*B)/B,Z=this._map.getBearing(),ae=this._map.getPitch();let ce="";if(ce+=l?`/${U}/${G}/${C}`:`${C}/${G}/${U}`,(Z||ae)&&(ce+="/"+Math.round(10*Z)/10),ae&&(ce+=`/${Math.round(ae)}`),this._hashName){const me=this._hashName;let ge=!1;const Pe=window.location.hash.slice(1).split("&").map((Ne=>{const Ze=Ne.split("=")[0];return Ze===me?(ge=!0,`${Ze}=${ce}`):Ne})).filter((Ne=>Ne));return ge||Pe.push(`${me}=${ce}`),`#${Pe.join("&")}`}return`#${ce}`}_isValidHash(l){if(l.length<3||l.some(isNaN))return!1;try{new a.S(+l[2],+l[1])}catch{return!1}const p=+l[0],C=+(l[3]||0),E=+(l[4]||0);return p>=this._map.getMinZoom()&&p<=this._map.getMaxZoom()&&C>=-180&&C<=180&&E>=this._map.getMinPitch()&&E<=this._map.getMaxPitch()}}const Qh={linearity:.3,easing:a.cm(0,0
Line truncated
|
||||
${e} <span></span>
|
||||
`,vs().s[12]++,this._textEl=this._container.querySelector("span"),vs().s[13]++,this.updateZoomLevel()}addEventListeners(){vs().f[4]++,vs().s[14]++,this._map.on("render",()=>(vs().f[5]++,vs().s[15]++,this.updateZoomLevel())),vs().s[16]++,this._map.on("zoomIn",()=>(vs().f[6]++,vs().s[17]++,this.updateZoomLevel())),vs().s[18]++,this._map.on("zoomOut",()=>(vs().f[7]++,vs().s[19]++,this.updateZoomLevel()))}onRemove(){vs().f[8]++,vs().s[20]++,this._container.parentNode.removeChild(this._container),vs().s[21]++,this._map=void 0}}function B9(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 I9(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 k9(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 ppe(n,e){const t=[],i=[],r=[];function o(s){return{circle:e(s,.8),line:e(s,.6),polygon:e(s,.3),polygonOutline:e(s,.6),default:e(s,1)}}return Object.keys(n).forEach(s=>{const a=n[s];if(!a||a.length===0){const c=o(s);i.push(B9(c.circle,s)),r.push(k9(c.line,s)),t.push(I9(c.polygon,c.polygonOutline,s))}else a.forEach(c=>{const h=o(c);i.push(B9(h.circle,s,c)),r.push(k9(h.line,s,c)),t.push(I9(h.polygon,h.polygonOutline,s,c))})}),t.concat(r).concat(i)}function mpe(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(o=>{const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const SO={polygonLayer:I9,lineLayer:k9,circleLayer:B9,generateInspectStyle:mpe,generateColoredLayers:ppe};function Fr(){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:{line:23,column:3}
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=Epe.language(this.options.language.split(",")[0]);return this.options.language&&c2?.[e][t]?c2[e][t]:c2[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const i=Np({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const o of e)r.extend(o.geometry.coordinates);this._map.fitBounds(r,i)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const i=Np({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const s=Np({},{},this.options.popup);r=new this._maplibregl.Popup(s).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=Np({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=Np(i,{element:o}));const s=new this._maplibregl.Marker(Np({},i,{element:o}));let a;if(this.options.popup){const h=Np({},{},this.options.popup);a=new this._maplibregl.Popup(h).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function tn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:Line truncated
|
||||
`,ds().s[12]++,this._textEl=this._container.querySelector("span"),ds().s[13]++,this.updateZoomLevel()}addEventListeners(){ds().f[4]++,ds().s[14]++,this._map.on("render",()=>(ds().f[5]++,ds().s[15]++,this.updateZoomLevel())),ds().s[16]++,this._map.on("zoomIn",()=>(ds().f[6]++,ds().s[17]++,this.updateZoomLevel())),ds().s[18]++,this._map.on("zoomOut",()=>(ds().f[7]++,ds().s[19]++,this.updateZoomLevel()))}onRemove(){ds().f[8]++,ds().s[20]++,this._container.parentNode.removeChild(this._container),ds().s[21]++,this._map=void 0}}function B9(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 I9(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 k9(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 ppe(n,e){const t=[],i=[],r=[];function o(s){return{circle:e(s,.8),line:e(s,.6),polygon:e(s,.3),polygonOutline:e(s,.6),default:e(s,1)}}return Object.keys(n).forEach(s=>{const a=n[s];if(!a||a.length===0){const c=o(s);i.push(B9(c.circle,s)),r.push(k9(c.line,s)),t.push(I9(c.polygon,c.polygonOutline,s))}else a.forEach(c=>{const h=o(c);i.push(B9(h.circle,s,c)),r.push(k9(h.line,s,c)),t.push(I9(h.polygon,h.polygonOutline,s,c))})}),t.concat(r).concat(i)}function mpe(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(o=>{const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const SO={polygonLayer:I9,lineLayer:k9,circleLayer:B9,generateInspectStyle:mpe,generateColoredLayers:ppe};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:{line:23,column:3}
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=Epe.language(this.options.language.split(",")[0]);return this.options.language&&A2?.[e][t]?A2[e][t]:A2[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const i=lm({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const o of e)r.extend(o.geometry.coordinates);this._map.fitBounds(r,i)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const i=lm({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const s=lm({},{},this.options.popup);r=new this._maplibregl.Popup(s).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=lm({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=lm(i,{element:o}));const s=new this._maplibregl.Marker(lm({},i,{element:o}));let a;if(this.options.popup){const h=lm({},{},this.options.popup);a=new this._maplibregl.Popup(h).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function tn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:Line truncated
|
||||
`).reduce((r,o)=>Math.max(r,Cee(n,o)),0);return t[e]=i,i}function Ave(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,c=0;for(let h=0,m=e.length;h<=m;h+=2){const y=e[h];if(y===`
|
||||
`||h===m){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const M=e[h+1]||n.font,x=Cee(M,y);t.push(x),s+=x;const k=cve(M);i.push(k),c=Math.max(c,k)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function hve(n,e,t,i,r,o,s,a,c,h,m){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=y=>y.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,h),n.scale(m[0],m[1]),dve(i,n)):m[0]<0||m[1]<0?(n.translate(c,h),n.scale(m[0],m[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,h,s*m[0],a*m[1]),n.restore()}function dve(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 HE{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=WA(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new HE({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 zr()}getImage(e){return zr()}getHitDetectionImage(){return zr()}getPixelRatio(e){return 1}getImageState(){return zr()}getImageSize(){return zr()}getOrigin(){return zr()}getSize(){return zr()}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_=WA(e)}listenImageChange(e){zr()}load(){zr()}unlistenImageChange(e){zr()}ready(){return Promise.resolve()}}class ZE extends HE{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()?Fi.LOADING:Fi.LOADED,this.imageState_===Fi.LOADING&&this.ready().then(()=>this.imageState_=Fi.LOADED),this.render()}clone(){const e=this.getScale(),t=new ZE({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=ap.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=Ul(s,s);this.draw_(o,a,e),r=a.canvas,ap.set(i,null,null,new yee(r,void 0,null,Fi.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const Y=r;r=o,o=Y}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),h=Math.sqrt(o*o-c*c),m=r-h,y=Math.sqrt(c*c+m*m),M=y/c;if(e==="miter"&&M<=i)return M*t;const x=t/2/M,k=t/2*(m/y),F=Math.sqrt((r+x)*(r+x)+k*k)-r;if(this.radius2_===void 0||e==="bevel")return F*2;const j=r*Math.sin(a),q=Math.sqrt(r*r-j*j),V=o-q,G=Math.sqrt(j*j+V*V)/j;if(G<=i){const Y=G*t/2-o-r;return 2*Math.max(F,Y)}return F*2}createRenderOptions(){let e=fx,t=px,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=wg(this.stroke_.getColor()??i4),a=this.
Line truncated
|
||||
`,""),n.push(e,""),n}function sbe(n,e,t){return t%2===0&&(n+=e),n}class abe{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=bd(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new wU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],h=this.pixelRatio,m=[c.scale[0]*h,c.scale[1]*h],y=c.justify?cS[c.justify]:AB(Array.isArray(e)?e[0]:e,c.textAlign||r4),M=r&&s.lineWidth?s.lineWidth:0,x=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(obe,[]),{width:k,height:P,widths:F,heights:j,lineWidths:q}=Ave(c,x),V=k+M,H=[],G=(V+2)*m[0],Y=(P+M)*m[1],z={width:G<0?Math.floor(G):Math.ceil(G),height:Y<0?Math.floor(Y):Math.ceil(Y),contextInstructions:H};(m[0]!=1||m[1]!=1)&&H.push("scale",m),r&&(H.push("strokeStyle",s.strokeStyle),H.push("lineWidth",M),H.push("lineCap",s.lineCap),H.push("lineJoin",s.lineJoin),H.push("miterLimit",s.miterLimit),H.push("setLineDash",[s.lineDash]),H.push("lineDashOffset",s.lineDashOffset)),i&&H.push("fillStyle",a.fillStyle),H.push("textBaseline","middle"),H.push("textAlign","center");const se=.5-y;let le=y*V+se*M;const me=[],de=[];let be=0,Ee=0,De=0,je=0,Ie;for(let Qe=0,et=x.length;Qe<et;Qe+=2){const dt=x[Qe];if(dt===`
|
||||
`){Ee+=be,be=0,le=y*V+se*M,++je;continue}const ke=x[Qe+1]||c.font;ke!==Ie&&(r&&me.push("font",ke),i&&de.push("font",ke),Ie=ke),be=Math.max(be,j[De]);const we=[dt,le+se*F[De]+y*(F[De]-q[je]),.5*(M+be)+Ee];le+=F[De],r&&me.push("strokeText",we),i&&de.push("fillText",we),++De}return Array.prototype.push.apply(H,me),Array.prototype.push.apply(H,de),this.labels_[o]=z,z}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,h,m,y,M,x,k,P,F){a*=M[0],c*=M[1];let j=i-a,q=r-c;const V=o+h>e?e-h:o,H=s+m>t?t-m:s,G=k[3]+V*M[0]+k[1],Y=k[0]+H*M[1]+k[2],z=j-k[3],se=q-k[0];(P||y!==0)&&(Cy[0]=z,_y[0]=z,Cy[1]=se,Q0[1]=se,Q0[0]=z+G,q0[0]=Q0[0],q0[1]=se+Y,_y[1]=q0[1]);let le;return y!==0?(le=Fg(bd(),i,r,1,1,y,-i,-r),Qu(le,Cy),Qu(le,Q0),Qu(le,q0),Qu(le,_y),A1(Math.min(Cy[0],Q0[0],q0[0],_y[0]),Math.min(Cy[1],Q0[1],q0[1],_y[1]),Math.max(Cy[0],Q0[0],q0[0],_y[0]),Math.max(Cy[1],Q0[1],q0[1],_y[1]),FC)):A1(Math.min(z,z+G),Math.min(se,se+Y),Math.max(z,z+G),Math.max(se,se+Y),FC),x&&(j=Math.round(j),q=Math.round(q)),{drawImageX:j,drawImageY:q,drawImageW:V,drawImageH:H,originX:h,originY:m,declutterBox:{minX:FC[0],minY:FC[1],maxX:FC[2],maxY:FC[3],value:F},canvasTransform:le,scale:M}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),h=r.declutterBox,m=a?a[2]*r.scale[0]/2:0;return h.minX-m<=t[0]&&h.maxX+m>=0&&h.minY-m<=t[1]&&h.maxY+m>=0&&(c&&this.replayTextBackground_(e,Cy,Q0,q0,_y,s,a),hve(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=Qu(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,h=AB(Array.isArray(e)?e[0]:e,o.textAlign||r4),m=cS[o.textBaseline||rS],y=a&&a.lineWidth?a.lineWidth:0,M=s.width/c-2*o.scale[0],x=h*M+2*(.5-h)*y,k=m*s.height/c+2*(.5-m)*y;return{label:s,anchorX:x,anchorY:k}}execute_(e,t,i,r,o,s,a,c){const h=this.zIndexContext_;let m;this.pixelCoordinates_&&cv(i,this.renderedTransform_)?m=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),m=Xy(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),c1e(this.renderedTransform_,i));let y=0;const M=r.length;let x=0,k,P,F,j,q,V,H,G,Y,z,se,le,me,de=0,be=0;const Ee=this.coordinateCache_,De=this.viewRotation_,je=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Ie={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:De},Qe=this.instructions!=r||this.overlaps?0:200;let et,dt,ke,we;for(;y<M;){const ze=r[y];switch(ze[0]){case Ar.BEGIN_GEOMETRY:et=ze[1],we=ze[3],et.getGeometry()?a!==void 0&&!Zl(a,we.getExtent())?y=ze[2]+1:++y:y=ze[2],h&&(h.zIndex=ze[4]);break;case Ar.BEGIN_PATH:de>Qe&&(this.fill_(e),de=0),be>Qe&&(e.stroke(),be=0),!de&&!be&&(e.beginPath(),q=NaN,V=NaN),++y;break;case Ar.CIRCLE:x=ze[1];const At=m[x],it=m[x+1],bt=m[x+2],Bt=m[x+3],Ke=bt-At,Te=Bt-it,Se=Math.sqrt(Ke*Ke+Te*Te);e.moveTo(At+Se,it),e.arc(At,it,Se,0,2*Math.PI,!0),++y;break;case Ar.CLOSE_PATH:e.closePath(),++y;break;case Ar.CUSTOM:x=ze[1],k=ze[2];const Ne=ze[3],ut=ze[4],rt=ze[5];Ie.geometry=Ne,Ie.feature=et,y in Ee||(Ee[y]=[]);const pt=Ee[y];rt?rt(m,x,k,2,pt):(pt[0]=m[x],pt[1]=m[x+1],pt.length=2),h&&(h.zIndex=ze[6]),ut(pt,Ie),++y;break;case Ar.DRAW_IMAGE:x=ze[1],k=ze[2],Y=ze[3],P=ze[4],F=ze[5];let Dt=ze[6];const Ot=ze[7],Jt=ze[8],Tn=ze[9],Ln=ze[10];let ii=ze[11];const wn=ze[12];let Rn=ze[13];j=ze[14]||"declutter";const gn=ze[15];if(!Y&&ze.length>=20){z=ze[19],se=ze[20],le=ze[21],me=ze[22];const pn=this.drawLabelWithPointPlacement_(z,se,le,me);Y=pn.label,ze[3]=Y;const $n=ze[23];P=(pn.anchorX-$n)*this.pixelRatio,ze[4]=P;const Zn=ze[24];F=(pn.anchorY-Zn)*this.pixelRatio,ze[5]=F,Dt=Y.height,ze[6]=Dt,Rn=Y.width,ze[13]=Rn}let Yn;ze.length>25&&(Yn=ze[25]);let Dn,Tt,_e;ze.length>17?(Dn=ze[16],Tt=ze[17],_e=ze[18]):(Dn=fb,Tt=null,_e=null),Ln&&je?ii+=De:!Ln&&!je&&(ii-=De);let oe=0;for(;x<k;x+=2){if(Yn&&Yn[oe++]<Rn/this.pixelRatio)continue;const pn=this.calculateImageOrLabelDimensions_(Y.width,Y.height,m[x],m[x+1],Rn,Dt,P,F,Jt,Tn,ii,wn,o,Dn,!!Tt||!!_e,et),$n=[e,t,Y,pn,Ot,Tt,_e];if(c){let Zn,ai,Hi;if(gn){const oi=k-x;if(!gn[oi]){gn[oi]={args:$n,declutterMode:j};continue}const Pi=gn[oi];Zn=Pi.args,ai=Pi.declutterMode,delete gn[oi],Hi=Oj(Zn)}let Ti,tr;if(Zn&&(ai!=="declutter"||!c.collides(Hi))&&(Ti=!0),(j!=="declutter"||!c.collides(pn.declutterBox))&&(tr=!0),ai==="declutter"&&j==="declutter"){const oi=Ti&&tr;Ti=oi,tr=o
Line truncated
|
||||
`||h===m){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const M=e[h+1]||n.font,x=Cee(M,y);t.push(x),s+=x;const T=cve(M);i.push(T),c=Math.max(c,T)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function hve(n,e,t,i,r,o,s,a,c,h,m){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=y=>y.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,h),n.scale(m[0],m[1]),dve(i,n)):m[0]<0||m[1]<0?(n.translate(c,h),n.scale(m[0],m[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,h,s*m[0],a*m[1]),n.restore()}function dve(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 ZE{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=YA(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new ZE({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_=YA(e)}listenImageChange(e){Pr()}load(){Pr()}unlistenImageChange(e){Pr()}ready(){return Promise.resolve()}}class XE extends ZE{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()?Li.LOADING:Li.LOADED,this.imageState_===Li.LOADING&&this.ready().then(()=>this.imageState_=Li.LOADED),this.render()}clone(){const e=this.getScale(),t=new XE({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=pp.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=Il(s,s);this.draw_(o,a,e),r=a.canvas,pp.set(i,null,null,new yee(r,void 0,null,Li.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const Y=r;r=o,o=Y}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),h=Math.sqrt(o*o-c*c),m=r-h,y=Math.sqrt(c*c+m*m),M=y/c;if(e==="miter"&&M<=i)return M*t;const x=t/2/M,T=t/2*(m/y),F=Math.sqrt((r+x)*(r+x)+T*T)-r;if(this.radius2_===void 0||e==="bevel")return F*2;const j=r*Math.sin(a),q=Math.sqrt(r*r-j*j),V=o-q,Q=Math.sqrt(j*j+V*V)/j;if(Q<=i){const Y=Q*t/2-o-r;return 2*Math.max(F,Y)}return F*2}createRenderOptions(){let e=px,t=mx,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=jg(this.stroke_.getColor()??r4),a=this.
Line truncated
|
||||
`,""),n.push(e,""),n}function sbe(n,e,t){return t%2===0&&(n+=e),n}class abe{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=wd(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new wU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],h=this.pixelRatio,m=[c.scale[0]*h,c.scale[1]*h],y=c.justify?AS[c.justify]:AB(Array.isArray(e)?e[0]:e,c.textAlign||o4),M=r&&s.lineWidth?s.lineWidth:0,x=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(obe,[]),{width:T,height:P,widths:F,heights:j,lineWidths:q}=Ave(c,x),V=T+M,H=[],Q=(V+2)*m[0],Y=(P+M)*m[1],z={width:Q<0?Math.floor(Q):Math.ceil(Q),height:Y<0?Math.floor(Y):Math.ceil(Y),contextInstructions:H};(m[0]!=1||m[1]!=1)&&H.push("scale",m),r&&(H.push("strokeStyle",s.strokeStyle),H.push("lineWidth",M),H.push("lineCap",s.lineCap),H.push("lineJoin",s.lineJoin),H.push("miterLimit",s.miterLimit),H.push("setLineDash",[s.lineDash]),H.push("lineDashOffset",s.lineDashOffset)),i&&H.push("fillStyle",a.fillStyle),H.push("textBaseline","middle"),H.push("textAlign","center");const se=.5-y;let le=y*V+se*M;const pe=[],de=[];let ve=0,Ee=0,Re=0,je=0,Ie;for(let qe=0,tt=x.length;qe<tt;qe+=2){const At=x[qe];if(At===`
|
||||
`){Ee+=ve,ve=0,le=y*V+se*M,++je;continue}const ke=x[qe+1]||c.font;ke!==Ie&&(r&&pe.push("font",ke),i&&de.push("font",ke),Ie=ke),ve=Math.max(ve,j[Re]);const we=[At,le+se*F[Re]+y*(F[Re]-q[je]),.5*(M+ve)+Ee];le+=F[Re],r&&pe.push("strokeText",we),i&&de.push("fillText",we),++Re}return Array.prototype.push.apply(H,pe),Array.prototype.push.apply(H,de),this.labels_[o]=z,z}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,h,m,y,M,x,T,P,F){a*=M[0],c*=M[1];let j=i-a,q=r-c;const V=o+h>e?e-h:o,H=s+m>t?t-m:s,Q=T[3]+V*M[0]+T[1],Y=T[0]+H*M[1]+T[2],z=j-T[3],se=q-T[0];(P||y!==0)&&(by[0]=z,Cy[0]=z,by[1]=se,Q0[1]=se,Q0[0]=z+Q,q0[0]=Q0[0],q0[1]=se+Y,Cy[1]=q0[1]);let le;return y!==0?(le=t0(wd(),i,r,1,1,y,-i,-r),Hu(le,by),Hu(le,Q0),Hu(le,q0),Hu(le,Cy),A1(Math.min(by[0],Q0[0],q0[0],Cy[0]),Math.min(by[1],Q0[1],q0[1],Cy[1]),Math.max(by[0],Q0[0],q0[0],Cy[0]),Math.max(by[1],Q0[1],q0[1],Cy[1]),zC)):A1(Math.min(z,z+Q),Math.min(se,se+Y),Math.max(z,z+Q),Math.max(se,se+Y),zC),x&&(j=Math.round(j),q=Math.round(q)),{drawImageX:j,drawImageY:q,drawImageW:V,drawImageH:H,originX:h,originY:m,declutterBox:{minX:zC[0],minY:zC[1],maxX:zC[2],maxY:zC[3],value:F},canvasTransform:le,scale:M}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),h=r.declutterBox,m=a?a[2]*r.scale[0]/2:0;return h.minX-m<=t[0]&&h.maxX+m>=0&&h.minY-m<=t[1]&&h.maxY+m>=0&&(c&&this.replayTextBackground_(e,by,Q0,q0,Cy,s,a),hve(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=Hu(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,h=AB(Array.isArray(e)?e[0]:e,o.textAlign||o4),m=AS[o.textBaseline||oS],y=a&&a.lineWidth?a.lineWidth:0,M=s.width/c-2*o.scale[0],x=h*M+2*(.5-h)*y,T=m*s.height/c+2*(.5-m)*y;return{label:s,anchorX:x,anchorY:T}}execute_(e,t,i,r,o,s,a,c){const h=this.zIndexContext_;let m;this.pixelCoordinates_&&uv(i,this.renderedTransform_)?m=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),m=Zy(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),c1e(this.renderedTransform_,i));let y=0;const M=r.length;let x=0,T,P,F,j,q,V,H,Q,Y,z,se,le,pe,de=0,ve=0;const Ee=this.coordinateCache_,Re=this.viewRotation_,je=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Ie={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Re},qe=this.instructions!=r||this.overlaps?0:200;let tt,At,ke,we;for(;y<M;){const ze=r[y];switch(ze[0]){case fr.BEGIN_GEOMETRY:tt=ze[1],we=ze[3],tt.getGeometry()?a!==void 0&&!Jl(a,we.getExtent())?y=ze[2]+1:++y:y=ze[2],h&&(h.zIndex=ze[4]);break;case fr.BEGIN_PATH:de>qe&&(this.fill_(e),de=0),ve>qe&&(e.stroke(),ve=0),!de&&!ve&&(e.beginPath(),q=NaN,V=NaN),++y;break;case fr.CIRCLE:x=ze[1];const lt=m[x],nt=m[x+1],bt=m[x+2],Bt=m[x+3],Ke=bt-lt,Te=Bt-nt,Se=Math.sqrt(Ke*Ke+Te*Te);e.moveTo(lt+Se,nt),e.arc(lt,nt,Se,0,2*Math.PI,!0),++y;break;case fr.CLOSE_PATH:e.closePath(),++y;break;case fr.CUSTOM:x=ze[1],T=ze[2];const We=ze[3],at=ze[4],it=ze[5];Ie.geometry=We,Ie.feature=tt,y in Ee||(Ee[y]=[]);const ft=Ee[y];it?it(m,x,T,2,ft):(ft[0]=m[x],ft[1]=m[x+1],ft.length=2),h&&(h.zIndex=ze[6]),at(ft,Ie),++y;break;case fr.DRAW_IMAGE:x=ze[1],T=ze[2],Y=ze[3],P=ze[4],F=ze[5];let Dt=ze[6];const Ot=ze[7],Jt=ze[8],Dn=ze[9],Pn=ze[10];let oi=ze[11];const In=ze[12];let Tn=ze[13];j=ze[14]||"declutter";const dn=ze[15];if(!Y&&ze.length>=20){z=ze[19],se=ze[20],le=ze[21],pe=ze[22];const Xn=this.drawLabelWithPointPlacement_(z,se,le,pe);Y=Xn.label,ze[3]=Y;const Cn=ze[23];P=(Xn.anchorX-Cn)*this.pixelRatio,ze[4]=P;const Fn=ze[24];F=(Xn.anchorY-Fn)*this.pixelRatio,ze[5]=F,Dt=Y.height,ze[6]=Dt,Tn=Y.width,ze[13]=Tn}let $n;ze.length>25&&($n=ze[25]);let Un,It,_e;ze.length>17?(Un=ze[16],It=ze[17],_e=ze[18]):(Un=mb,It=null,_e=null),Pn&&je?oi+=Re:!Pn&&!je&&(oi-=Re);let oe=0;for(;x<T;x+=2){if($n&&$n[oe++]<Tn/this.pixelRatio)continue;const Xn=this.calculateImageOrLabelDimensions_(Y.width,Y.height,m[x],m[x+1],Tn,Dt,P,F,Jt,Dn,oi,In,o,Un,!!It||!!_e,tt),Cn=[e,t,Y,Xn,Ot,It,_e];if(c){let Fn,pi,Hi;if(dn){const ii=T-x;if(!dn[ii]){dn[ii]={args:Cn,declutterMode:j};continue}const Fi=dn[ii];Fn=Fi.args,pi=Fi.declutterMode,delete dn[ii],Hi=Oj(Fn)}let Ii,Ar;if(Fn&&(pi!=="declutter"||!c.collides(Hi))&&(Ii=!0),(j!=="declutter"||!c.collides(Xn.declutterBox))&&(Ar=!0),pi==="declutter"&&j==="declutter"){const ii=Ii&&Ar;Ii=ii,Ar=i
Line truncated
|
||||
`),r=Mbe.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
|
||||
`),t+=i[o].split("").join(r);return t}return n}let fB;function $ee(){return fB||(fB=n6(1,1).getContext("2d")),fB}function Xv(n,e){return $ee().measureText(n).width+(n.length-1)*e}const dS={};ob.on("propertychange",()=>{for(const n in dS)delete dS[n]});function uR(n,e,t,i){if(n.indexOf(`
|
||||
`),t+=i[o].split("").join(r);return t}return n}let fB;function $ee(){return fB||(fB=i6(1,1).getContext("2d")),fB}function eb(n,e){return $ee().measureText(n).width+(n.length-1)*e}const fS={};ab.on("propertychange",()=>{for(const n in fS)delete fS[n]});function uR(n,e,t,i){if(n.indexOf(`
|
||||
`)!==-1){const s=n.split(`
|
||||
`),a=[];for(let c=0,h=s.length;c<h;++c)a.push(uR(s[c],e,t,i));return a.join(`
|
||||
`)}const r=t+","+e+","+n+","+i;let o=dS[r];if(!o){const s=n.split(" ");if(s.length>1){const a=$ee();a.font=e;const h=a.measureText("M").width*t;let m="";const y=[];for(let M=0,x=s.length;M<x;++M){const k=s[M],P=m+(m?" ":"")+k;Xv(P,i)<=h?m=P:(m&&y.push(m),m=k)}m&&y.push(m);for(let M=0,x=y.length;M<x&&x>1;++M){const k=y[M];if(Xv(k,i)<h*.35){const P=M>0?Xv(y[M-1],i):1/0,F=M<x-1?Xv(y[M+1],i):1/0;y.splice(M,1),x-=1,P<F?(y[M-1]+=" "+k,M-=1):y[M]=k+" "+y[M]}}for(let M=0,x=y.length-1;M<x;++M){const k=y[M],P=y[M+1];if(Xv(k,i)>h*.7&&Xv(P,i)<h*.6){const F=k.split(" "),j=F.pop();Xv(j,i)<h*.2&&(y[M]=F.join(" "),y[M+1]=j+" "+P),x-=1}}o=y.join(`
|
||||
`)}else o=n;o=lR(o,i),dS[r]=o}return o}const wbe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],Lj={};function Sbe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in Lj)continue;Lj[o]=!0;const a=z9(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(wbe.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(m=>m.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&m.weight==a&&m.style===c)){const m=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+m+'"]')){const y=document.createElement("link");y.href=m,y.rel="stylesheet",document.head.appendChild(y)}}}})(),n}const Ebe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Obe={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]},Bbe=function(n,e){const t=Wge(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},xf={zoom:0,distanceFromCenter:0};vf.register(DE,{...vf.definitions,pitch:[{kind:"number"},[],n=>xf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>xf.distanceFromCenter||0]});let oM,pB;function Qi(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||Jp)[t];const h=i0e[`${e}_${n.type}`][t];c===void 0&&(c=h.default);let m=Gge(c);if(!m&&bJ(c)&&(c=Zge(c,h),m=!0),m){const y=Bbe(c,h);a[t]=y.evaluate.bind(y)}else h.type=="color"&&(c=Zs.parse(c)),a[t]=function(){return c}}return a[t](xf,i,o)}function Fj(n,e,t,i){return Qi(n,"layout",`${t}-allow-overlap`,e,i)?Qi(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function Ibe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=$ge(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](xf,t)}function Ey(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 kbe=/\{[^{}}]*\}/g;function mB(n,e){return n.replace(kbe,function(t){return e[t.slice(1,-1)]||""})}function zj(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const Tbe={};function Rbe(n,e,t,i=Kg,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");Tbe[Cbe(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const G in o){const Y=o[G];Ax(()=>Y).then(async z=>{let se;if(typeof Image<"u"){const le=new Image;if(typeof z=="string")le.crossOrigin="anonymous",le.src=z;else{let me;z instanceof Request?me=await fetch(z):z instanceof Response&&(me=z);const de=await me.blob();se=URL.createObjectURL(de),le.src=se}le.addEventListener("load",function me(){le.removeEventListener("load",me),c[G]={image:le,size:[le.width,le.height]},n.changed(),se&&URL.revokeObjectURL(se)}),le.addEventListener("error",function me(){URL.revokeObjectURL(se),le.removeEventListener("error",me)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const le=self;le.postMessage({action:"loadImage",src:z}),le.addEventListener("message",function(de){de.data.action==="imageLoaded"&&de.data.src===z&&(c[G]={image:de.data.image,size:[de.data.image.width,de.data.image.height]})})}})}const h=eJ(e.layers),m={},y=[],M={},x={},k=Qee(e),P=_be(e);let F;for(let G=0,Y=h.length;G<Y;++G){const z=h[G],se=z.id;if(typeof t=="string"&&z.source==t||Array.isArray(t)&&t.indexOf(se)!==-1){const le=z["source-layer"];if(F){if(z.source!==F)throw new Error(`Layer "${se}" does not use source "${F}`)}else{F=z.source;const de=e.sources[F];if(!de)throw new Error(`Source "${F}" is not defined`);const be=de.type;if(be!=="vector"&&be!=="geojson")throw new Error(`Source "${F}" is not of type "vector" or "geojson", but "${be}"`)}let me=m[le];me||(me=[],m[le]=me),me.push({layer:z,index:G}),y.push(se)}}const j=new Fy,q=new n1,V=[],H=function(G,Y,z){const se=n.getSource?.()?.format_?.layerName_??"mvt:layer",le=G.getProperties(),me=m[le[se]];if(!me)return;let de=i.indexOf(Y);de==-1&&(de=kU(Y,i)),xf.zoom=de,xf.distanceFromCenter=0;const be=G.getGeometry(),Ee=Ebe[be.getType()],De=n.get("map");if(De&&De instanceof e6&&Ee===1){const et=De.getSLine truncated
|
||||
`)}const r=t+","+e+","+n+","+i;let o=fS[r];if(!o){const s=n.split(" ");if(s.length>1){const a=$ee();a.font=e;const h=a.measureText("M").width*t;let m="";const y=[];for(let M=0,x=s.length;M<x;++M){const T=s[M],P=m+(m?" ":"")+T;eb(P,i)<=h?m=P:(m&&y.push(m),m=T)}m&&y.push(m);for(let M=0,x=y.length;M<x&&x>1;++M){const T=y[M];if(eb(T,i)<h*.35){const P=M>0?eb(y[M-1],i):1/0,F=M<x-1?eb(y[M+1],i):1/0;y.splice(M,1),x-=1,P<F?(y[M-1]+=" "+T,M-=1):y[M]=T+" "+y[M]}}for(let M=0,x=y.length-1;M<x;++M){const T=y[M],P=y[M+1];if(eb(T,i)>h*.7&&eb(P,i)<h*.6){const F=T.split(" "),j=F.pop();eb(j,i)<h*.2&&(y[M]=F.join(" "),y[M+1]=j+" "+P),x-=1}}o=y.join(`
|
||||
`)}else o=n;o=lR(o,i),fS[r]=o}return o}const wbe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],Lj={};function Sbe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in Lj)continue;Lj[o]=!0;const a=z9(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(wbe.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(m=>m.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&m.weight==a&&m.style===c)){const m=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+m+'"]')){const y=document.createElement("link");y.href=m,y.rel="stylesheet",document.head.appendChild(y)}}}})(),n}const Ebe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Obe={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]},Bbe=function(n,e){const t=Wge(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Sf={zoom:0,distanceFromCenter:0};_f.register(PE,{..._f.definitions,pitch:[{kind:"number"},[],n=>Sf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Sf.distanceFromCenter||0]});let sM,pB;function Yi(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||vm)[t];const h=i0e[`${e}_${n.type}`][t];c===void 0&&(c=h.default);let m=Gge(c);if(!m&&bJ(c)&&(c=Zge(c,h),m=!0),m){const y=Bbe(c,h);a[t]=y.evaluate.bind(y)}else h.type=="color"&&(c=Vs.parse(c)),a[t]=function(){return c}}return a[t](Sf,i,o)}function Fj(n,e,t,i){return Yi(n,"layout",`${t}-allow-overlap`,e,i)?Yi(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function Ibe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=$ge(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Sf,t)}function Sy(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 kbe=/\{[^{}}]*\}/g;function mB(n,e){return n.replace(kbe,function(t){return e[t.slice(1,-1)]||""})}function zj(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const Tbe={};function Rbe(n,e,t,i=Jg,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");Tbe[Cbe(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const Q in o){const Y=o[Q];hx(()=>Y).then(async z=>{let se;if(typeof Image<"u"){const le=new Image;if(typeof z=="string")le.crossOrigin="anonymous",le.src=z;else{let pe;z instanceof Request?pe=await fetch(z):z instanceof Response&&(pe=z);const de=await pe.blob();se=URL.createObjectURL(de),le.src=se}le.addEventListener("load",function pe(){le.removeEventListener("load",pe),c[Q]={image:le,size:[le.width,le.height]},n.changed(),se&&URL.revokeObjectURL(se)}),le.addEventListener("error",function pe(){URL.revokeObjectURL(se),le.removeEventListener("error",pe)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const le=self;le.postMessage({action:"loadImage",src:z}),le.addEventListener("message",function(de){de.data.action==="imageLoaded"&&de.data.src===z&&(c[Q]={image:de.data.image,size:[de.data.image.width,de.data.image.height]})})}})}const h=eJ(e.layers),m={},y=[],M={},x={},T=Qee(e),P=_be(e);let F;for(let Q=0,Y=h.length;Q<Y;++Q){const z=h[Q],se=z.id;if(typeof t=="string"&&z.source==t||Array.isArray(t)&&t.indexOf(se)!==-1){const le=z["source-layer"];if(F){if(z.source!==F)throw new Error(`Layer "${se}" does not use source "${F}`)}else{F=z.source;const de=e.sources[F];if(!de)throw new Error(`Source "${F}" is not defined`);const ve=de.type;if(ve!=="vector"&&ve!=="geojson")throw new Error(`Source "${F}" is not of type "vector" or "geojson", but "${ve}"`)}let pe=m[le];pe||(pe=[],m[le]=pe),pe.push({layer:z,index:Q}),y.push(se)}}const j=new Ly,q=new n1,V=[],H=function(Q,Y,z){const se=n.getSource?.()?.format_?.layerName_??"mvt:layer",le=Q.getProperties(),pe=m[le[se]];if(!pe)return;let de=i.indexOf(Y);de==-1&&(de=kU(Y,i)),Sf.zoom=de,Sf.distanceFromCenter=0;const ve=Q.getGeometry(),Ee=Ebe[ve.getType()],Re=n.get("map");if(Re&&Re instanceof t6&&Ee===1){const tt=Re.getSLine truncated
|
||||
`)return _e.push(`
|
||||
`,""),_e;if(Ee==2)return _e.push(lR(ye,gn),ue),_e;ye=uR(ye,ue,Yn,gn).split(`
|
||||
`);for(let Ue=0,Ve=ye.length;Ue<Ve;++Ue)Ue>0&&_e.push(`
|
||||
`,""),_e.push(ye[Ue],ue);return _e},[]):Ln=mB(Tt,le).trim(),Bt=Qi(we,"paint","text-opacity",je,k,Ie)}if(Ln&&Bt&&!Tn){rt||(++Qe,Ne=V[Qe],(!Ne||!Ne.getText()||Ne.getFill()||Ne.getStroke())&&(Ne=new df,V[Qe]=Ne),Ne.setImage(void 0),Ne.setGeometry(void 0));const Dn=Fj(we,je,"text",k);Ne.getText()||Ne.setText(pt),pt=Ne.getText(),(!pt||"getDeclutterMode"in pt&&pt.getDeclutterMode()!==Dn)&&(pt=new xee({padding:[2,2,2,2],declutterMode:Dn}),Ne.setText(pt));const Tt=Qi(we,"layout","text-transform",je,k,Ie);Tt=="uppercase"?Ln=Array.isArray(Ln)?Ln.map((Pt,st)=>st%2?Pt:Pt.toUpperCase()):Ln.toUpperCase():Tt=="lowercase"&&(Ln=Array.isArray(Ln)?Ln.map((Pt,st)=>st%2?Pt:Pt.toLowerCase()):Ln.toLowerCase());const _e=Array.isArray(Ln)?Ln:Ee==2?lR(Ln,gn):uR(Ln,ii,Yn,gn);if(pt.setText(_e),pt.setFont(ii),pt.setRotation(dB(Qi(we,"layout","text-rotate",je,k,Ie))),typeof pt.setKeepUpright=="function"){const Pt=Qi(we,"layout","text-keep-upright",je,k,Ie);pt.setKeepUpright(Pt)}const oe=Qi(we,"layout","text-anchor",je,k,Ie),ee=rt||Ee==1?"point":Qi(we,"layout","symbol-placement",je,k,Ie);let ne;if(ee==="line-center"?(pt.setPlacement("line"),ne="center"):pt.setPlacement(ee),ee==="line"&&typeof pt.setRepeat=="function"){const Pt=Qi(we,"layout","symbol-spacing",je,k,Ie);pt.setRepeat(Pt*2)}pt.setOverflow(ee==="point");let ue=Qi(we,"paint","text-halo-width",je,k,Ie);const ye=Qi(we,"layout","text-offset",je,k,Ie),Ue=Qi(we,"paint","text-translate",je,k,Ie);let Ve=0,lt=0;if(ee=="point"){ne="center",oe.indexOf("left")!==-1?(ne="left",lt=ue):oe.indexOf("right")!==-1&&(ne="right",lt=-ue);const Pt=Qi(we,"layout","text-rotation-alignment",je,k,Ie);pt.setRotateWithView(Pt=="map")}else pt.setMaxAngle(dB(Qi(we,"layout","text-max-angle",je,k,Ie))*Ln.length/_e.length),pt.setRotateWithView(!1);pt.setTextAlign(ne);let ge="middle";oe.indexOf("bottom")==0?(ge="bottom",Ve=-ue-.5*(wn-1)*Rn):oe.indexOf("top")==0&&(ge="top",Ve=ue+.5*(wn-1)*Rn),pt.setTextBaseline(ge);const Be=Qi(we,"layout","text-justify",je,k,Ie);pt.setJustify(Be==="auto"?void 0:Be),pt.setOffsetX(ye[0]*Rn+lt+Ue[0]),pt.setOffsetY(ye[1]*Rn+Ve+Ue[1]),q.setColor(Ey(Qi(we,"paint","text-color",je,k,Ie),Bt)),pt.setFill(q);const v=Ey(Qi(we,"paint","text-halo-color",je,k,Ie),Bt);if(v&&ue>0){j.setColor(v),ue*=2;const Pt=.5*Rn;j.setWidth(ue<=Pt?ue:Pt),pt.setStroke(j)}else pt.setStroke(void 0);const yt=Qi(we,"layout","text-padding",je,k,Ie),Mt=pt.getPadding();yt!==Mt[0]&&(Mt[0]=yt,Mt[1]=yt,Mt[2]=yt,Mt[3]=yt),Ne.setZIndex(ut)}}}if(Qe>-1)return V.length=Qe+1,V};return n.setStyle(H),n.set("mapbox-layers",y),n.set("mapbox-source",F),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),H}class Vee{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=t6,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Xs(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Xs(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return zr()}readFeature(e,t){return zr()}readFeatures(e,t){return zr()}readGeometry(e,t){return zr()}readProjection(e){return zr()}writeFeature(e,t){return zr()}writeFeatures(e,t){return zr()}writeGeometry(e,t){return zr()}}function i6(n,e,t){const i=t?Xs(t.featureProjection):null,r=t?Xs(t.dataProjection):null;let o=n;if(i&&r&&!Zy(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(J3(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(c){for(let h=0,m=c.length;h<m;++h)c[h]=Math.round(c[h]*s)/s;return c};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const Dbe={Point:Lb,LineString:zb,Polygon:d1,MultiPoint:h5,MultiLineString:l4,MultiPolygon:u4};function Pbe(n,e,t){return Array.isArray(e[0])?(iee(n,0,e,t)||(n=n.slice(),J9(n,0,e,t)),n):(sU(n,0,e,t)||(n=n.slice(),nS(n,0,e,t)),n)}function Hee(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>Hee({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return i6(new NA(i,i==="Polygon"?Pbe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function TU(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>TU(r,e));return new lS(i)}const t=Dbe[n.type];return i6(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class Ube extends Vee{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(sM(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(sM(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return zr()}readFeaturesFromObject(e,t){
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function WCe(n,e){const t=ute(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 QCe=class extends e5{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]=GCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=WCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const h=c*a,m=[];for(let y=0,M=r.length;y<M;++y)m.push(r[y].slice(h,h+a));this.workers_[c].postMessage({buffers:m,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},m)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,h=a*s;i.set(new Uint8ClampedArray(c),h),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 Hj={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Zj extends hm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class cte extends ote{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=$Ce(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(Rr.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new OJ(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:bd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:YCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:bd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Vr(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof zx?a:a.getSource();if(!c)continue;const h=c.getAttributions()?.(i);typeof h=="string"?r.push(h):h!==void 0&&r.push(...h)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new QCe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Mf(e);r.size[0]=Math.ceil(cs(e)/t),r.size[1]=Math.ceil($u(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!h1(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameSta
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Ate(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class o_e extends s6{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:s_e,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:Nee,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Zy(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||Zy(t,e)))return this.tileGrid;const i=Vr(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=ste(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),h=c?this.tileUrlFunction(c,r,o):void 0,m=new this.tileClass(a,h!==void 0?ri.IDLE:ri.EMPTY,h!==void 0?h:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return m.key=s,m.addEventListener(Rr.CHANGE,this.handleTileChange.bind(this)),m}getTile(e,t,i,r,o){const s=this.getProjection();if(!s||!o||Zy(s,o))return this.getTileInternal(e,t,i,r,s||o);const a=[e,t,i],c=this.getKey(),h=this.getTileGridForProjection(s),m=this.getTileGridForProjection(o),y=this.getTileCoordForTileUrlFunction(a,o),M=new nte(s,h,o,m,a,y,this.getTilePixelRatio(r),this.getGutter(),(x,k,P,F)=>this.getTileInternal(x,k,P,F,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return M.key=c,M}getTileInternal(e,t,i,r,o){const s=this.getKey();return this.createTile_(e,t,i,r,o,s)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Xs(e);if(i){const r=Vr(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function s_e(n,e){n.getImage().src=e}class hte extends o_e{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Xs("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)HCe(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=Xs("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const h=o5(t,i);r=w0e(e.bounds,h)}const o=o6(i),s=e.minzoom||0,a=e.maxzoom||22,c=DU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=Ate(e.tiles,c),e.attribution&&!this.getAttributions()){const h=r!==void 0?r:o;this.setAttributions(function(m){return Zl(h,m.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class PU extends s6{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||o6(t),r=e.tileGrid||DU({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:dte,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:Gee,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===ri.IDLE){i.setState(ri.LOADING);con
Line truncated
|
||||
`,""),_e;if(Ee==2)return _e.push(lR(be,dn),ue),_e;be=uR(be,ue,$n,dn).split(`
|
||||
`);for(let Le=0,Ve=be.length;Le<Ve;++Le)Le>0&&_e.push(`
|
||||
`,""),_e.push(be[Le],ue);return _e},[]):Pn=mB(It,le).trim(),Bt=Yi(we,"paint","text-opacity",je,T,Ie)}if(Pn&&Bt&&!Dn){it||(++qe,We=V[qe],(!We||!We.getText()||We.getFill()||We.getStroke())&&(We=new mf,V[qe]=We),We.setImage(void 0),We.setGeometry(void 0));const Un=Fj(we,je,"text",T);We.getText()||We.setText(ft),ft=We.getText(),(!ft||"getDeclutterMode"in ft&&ft.getDeclutterMode()!==Un)&&(ft=new xee({padding:[2,2,2,2],declutterMode:Un}),We.setText(ft));const It=Yi(we,"layout","text-transform",je,T,Ie);It=="uppercase"?Pn=Array.isArray(Pn)?Pn.map((Pt,en)=>en%2?Pt:Pt.toUpperCase()):Pn.toUpperCase():It=="lowercase"&&(Pn=Array.isArray(Pn)?Pn.map((Pt,en)=>en%2?Pt:Pt.toLowerCase()):Pn.toLowerCase());const _e=Array.isArray(Pn)?Pn:Ee==2?lR(Pn,dn):uR(Pn,oi,$n,dn);if(ft.setText(_e),ft.setFont(oi),ft.setRotation(dB(Yi(we,"layout","text-rotate",je,T,Ie))),typeof ft.setKeepUpright=="function"){const Pt=Yi(we,"layout","text-keep-upright",je,T,Ie);ft.setKeepUpright(Pt)}const oe=Yi(we,"layout","text-anchor",je,T,Ie),ee=it||Ee==1?"point":Yi(we,"layout","symbol-placement",je,T,Ie);let ne;if(ee==="line-center"?(ft.setPlacement("line"),ne="center"):ft.setPlacement(ee),ee==="line"&&typeof ft.setRepeat=="function"){const Pt=Yi(we,"layout","symbol-spacing",je,T,Ie);ft.setRepeat(Pt*2)}ft.setOverflow(ee==="point");let ue=Yi(we,"paint","text-halo-width",je,T,Ie);const be=Yi(we,"layout","text-offset",je,T,Ie),Le=Yi(we,"paint","text-translate",je,T,Ie);let Ve=0,rt=0;if(ee=="point"){ne="center",oe.indexOf("left")!==-1?(ne="left",rt=ue):oe.indexOf("right")!==-1&&(ne="right",rt=-ue);const Pt=Yi(we,"layout","text-rotation-alignment",je,T,Ie);ft.setRotateWithView(Pt=="map")}else ft.setMaxAngle(dB(Yi(we,"layout","text-max-angle",je,T,Ie))*Pn.length/_e.length),ft.setRotateWithView(!1);ft.setTextAlign(ne);let ye="middle";oe.indexOf("bottom")==0?(ye="bottom",Ve=-ue-.5*(In-1)*Tn):oe.indexOf("top")==0&&(ye="top",Ve=ue+.5*(In-1)*Tn),ft.setTextBaseline(ye);const Be=Yi(we,"layout","text-justify",je,T,Ie);ft.setJustify(Be==="auto"?void 0:Be),ft.setOffsetX(be[0]*Tn+rt+Le[0]),ft.setOffsetY(be[1]*Tn+Ve+Le[1]),q.setColor(Sy(Yi(we,"paint","text-color",je,T,Ie),Bt)),ft.setFill(q);const v=Sy(Yi(we,"paint","text-halo-color",je,T,Ie),Bt);if(v&&ue>0){j.setColor(v),ue*=2;const Pt=.5*Tn;j.setWidth(ue<=Pt?ue:Pt),ft.setStroke(j)}else ft.setStroke(void 0);const yt=Yi(we,"layout","text-padding",je,T,Ie),Mt=ft.getPadding();yt!==Mt[0]&&(Mt[0]=yt,Mt[1]=yt,Mt[2]=yt,Mt[3]=yt),We.setZIndex(at)}}}if(qe>-1)return V.length=qe+1,V};return n.setStyle(H),n.set("mapbox-layers",y),n.set("mapbox-source",F),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),H}class Vee{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=n6,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Hs(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Hs(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return Pr()}readFeature(e,t){return Pr()}readFeatures(e,t){return Pr()}readGeometry(e,t){return Pr()}readProjection(e){return Pr()}writeFeature(e,t){return Pr()}writeFeatures(e,t){return Pr()}writeGeometry(e,t){return Pr()}}function r6(n,e,t){const i=t?Hs(t.featureProjection):null,r=t?Hs(t.dataProjection):null;let o=n;if(i&&r&&!Hy(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(e4(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(c){for(let h=0,m=c.length;h<m;++h)c[h]=Math.round(c[h]*s)/s;return c};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const Dbe={Point:zb,LineString:Nb,Polygon:d1,MultiPoint:d5,MultiLineString:u4,MultiPolygon:c4};function Pbe(n,e,t){return Array.isArray(e[0])?(iee(n,0,e,t)||(n=n.slice(),J9(n,0,e,t)),n):(sU(n,0,e,t)||(n=n.slice(),iS(n,0,e,t)),n)}function Hee(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>Hee({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return r6(new QA(i,i==="Polygon"?Pbe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function TU(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>TU(r,e));return new uS(i)}const t=Dbe[n.type];return r6(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class Ube extends Vee{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(aM(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(aM(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return Pr()}readFeaturesFromObject(e,t){
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function WCe(n,e){const t=ute(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 QCe=class extends t5{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]=GCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=WCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const h=c*a,m=[];for(let y=0,M=r.length;y<M;++y)m.push(r[y].slice(h,h+a));this.workers_[c].postMessage({buffers:m,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},m)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,h=a*s;i.set(new Uint8ClampedArray(c),h),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 Hj={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Zj extends Tm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class cte extends ote{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=$Ce(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(Ir.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new OJ(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:wd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:YCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:wd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:$r(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof jx?a:a.getSource();if(!c)continue;const h=c.getAttributions()?.(i);typeof h=="string"?r.push(h):h!==void 0&&r.push(...h)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new QCe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Ef(e);r.size[0]=Math.ceil(rs(e)/t),r.size[1]=Math.ceil(Ju(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!h1(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameSta
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Ate(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class o_e extends a6{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:s_e,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:Nee,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Hy(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||Hy(t,e)))return this.tileGrid;const i=$r(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=ste(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),h=c?this.tileUrlFunction(c,r,o):void 0,m=new this.tileClass(a,h!==void 0?ai.IDLE:ai.EMPTY,h!==void 0?h:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return m.key=s,m.addEventListener(Ir.CHANGE,this.handleTileChange.bind(this)),m}getTile(e,t,i,r,o){const s=this.getProjection();if(!s||!o||Hy(s,o))return this.getTileInternal(e,t,i,r,s||o);const a=[e,t,i],c=this.getKey(),h=this.getTileGridForProjection(s),m=this.getTileGridForProjection(o),y=this.getTileCoordForTileUrlFunction(a,o),M=new nte(s,h,o,m,a,y,this.getTilePixelRatio(r),this.getGutter(),(x,T,P,F)=>this.getTileInternal(x,T,P,F,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return M.key=c,M}getTileInternal(e,t,i,r,o){const s=this.getKey();return this.createTile_(e,t,i,r,o,s)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Hs(e);if(i){const r=$r(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function s_e(n,e){n.getImage().src=e}class hte extends o_e{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Hs("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)HCe(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=Hs("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const h=s5(t,i);r=w0e(e.bounds,h)}const o=s6(i),s=e.minzoom||0,a=e.maxzoom||22,c=DU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=Ate(e.tiles,c),e.attribution&&!this.getAttributions()){const h=r!==void 0?r:o;this.setAttributions(function(m){return Jl(h,m.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class PU extends a6{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||s6(t),r=e.tileGrid||DU({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:dte,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:Gee,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===ai.IDLE){i.setState(ai.LOADING);con
Line truncated
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/var tN;function M_e(){return tN||(tN=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(MB)),MB.exports}var w_e=M_e();const Yg=Xl(w_e),S_e=/("(?:[^\\"]|\\.)*")|[:,]/g;function E_e(n,e={}){const t=JSON.stringify([1],void 0,e.indent===void 0?2:e.indent).slice(2,-3),i=t===""?1/0:e.maxLength===void 0?80:e.maxLength;let{replacer:r}=e;return(function o(s,a,c){s&&typeof s.toJSON=="function"&&(s=s.toJSON());const h=JSON.stringify(s,r);if(h===void 0)return h;const m=i-a.length-c;if(h.length<=m){const y=h.replace(S_e,(M,x)=>x||`${M} `);if(y.length<=m)return y}if(r!=null&&(s=JSON.parse(h),r=void 0),typeof s=="object"&&s!==null){const y=a+t,M=[];let x=0,k,P;if(Array.isArray(s)){k="[",P="]";const{length:F}=s;for(;x<F;x++)M.push(o(s[x],y,x===F-1?0:1)||"null")}else{k="{",P="}";const F=Object.keys(s),{length:j}=F;for(;x<j;x++){const q=F[x],V=`${JSON.stringify(q)}: `,H=o(s[q],y,V.length+(x===j-1?0:1));H!==void 0&&M.push(V+H)}}if(M.length>0)return[k,t+M.join(`,
|
||||
*/var tN;function M_e(){return tN||(tN=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(MB)),MB.exports}var w_e=M_e();const u0=eu(w_e),S_e=/("(?:[^\\"]|\\.)*")|[:,]/g;function E_e(n,e={}){const t=JSON.stringify([1],void 0,e.indent===void 0?2:e.indent).slice(2,-3),i=t===""?1/0:e.maxLength===void 0?80:e.maxLength;let{replacer:r}=e;return(function o(s,a,c){s&&typeof s.toJSON=="function"&&(s=s.toJSON());const h=JSON.stringify(s,r);if(h===void 0)return h;const m=i-a.length-c;if(h.length<=m){const y=h.replace(S_e,(M,x)=>x||`${M} `);if(y.length<=m)return y}if(r!=null&&(s=JSON.parse(h),r=void 0),typeof s=="object"&&s!==null){const y=a+t,M=[];let x=0,T,P;if(Array.isArray(s)){T="[",P="]";const{length:F}=s;for(;x<F;x++)M.push(o(s[x],y,x===F-1?0:1)||"null")}else{T="{",P="}";const F=Object.keys(s),{length:j}=F;for(;x<j;x++){const q=F[x],V=`${JSON.stringify(q)}: `,H=o(s[q],y,V.length+(x===j-1?0:1));H!==void 0&&M.push(V+H)}}if(M.length>0)return[T,t+M.join(`,
|
||||
${y}`),P].join(`
|
||||
${a}`)}return h})(n,"",0)}let pR=[],Cte=[];(()=>{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?Cte:pR).push(t=t+n[e])})();function O_e(n){if(n<768)return!1;for(let e=0,t=pR.length;;){let i=e+t>>1;if(n<pR[i])t=i;else if(n>=Cte[i])e=i+1;else return!0;if(e==t)return!1}}function nN(n){return n>=127462&&n<=127487}const iN=8205;function B_e(n,e,t=!0,i=!0){return(t?_te:I_e)(n,e,i)}function _te(n,e,t){if(e==n.length)return e;e&&xte(n.charCodeAt(e))&&Mte(n.charCodeAt(e-1))&&e--;let i=wB(n,e);for(e+=rN(i);e<n.length;){let r=wB(n,e);if(i==iN||r==iN||t&&O_e(r))e+=rN(r),i=r;else if(nN(r)){let o=0,s=e-2;for(;s>=0&&nN(wB(n,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function I_e(n,e,t){for(;e>0;){let i=_te(n,e-2,t);if(i<e)return i;e--}return 0}function wB(n,e){let t=n.charCodeAt(e);if(!Mte(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return xte(i)?(t-55296<<10)+(i-56320)+65536:t}function xte(n){return n>=56320&&n<57344}function Mte(n){return n>=55296&&n<56320}function rN(n){return n<65536?1:2}class _s{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]=yx(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),gg.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]=yx(this,e,t);let i=[];return this.decompose(e,t,i,0),gg.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 p3(this),o=new p3(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new p3(this,e)}iterRange(e,t=this.length){return new wte(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 Ste(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]?_s.empty:e.length<=32?new vu(e):gg.from(vu.split(e,[]))}}class vu extends _s{constructor(e,t=k_e(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?i:a)>=e)return new T_e(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let o=e<=0&&t>=this.length?this:new vu(oN(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=cw(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new vu(a,s.length+o.length));else{let c=a.length>>1;i.push(new vu(a.slice(0,c)),new vu(a.slice(c)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof vu))return super.replace(e,t,i);[e,t]=yx(this,e,t);let r=cw(this.text,cw(i.text,oN(this.text,0,e)),t),o=this.length+i.length-(t-e);return r.length<=32?new vu(r,o):gg.from(vu.split(r,[]),o)}sliceString(e,t=this.length,i=`
|
||||
`){[e,t]=yx(this,e,t);let r="";for(let o=0,s=0;o<=t&&s<this.text.length;s++){let a=this.text[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(t.push(new vu(i,r)),i=[],r=-1);return r>-1&&t.push(new vu(i,r)),t}}class gg extends _s{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,c=i+s.lines-1;if((t?c:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let o=0,s=0;s<=t&&o<this.children.length;o++){let a=this.children[o],c=s+a.length;if(e<=c&&t>=s){let h=r&((s<=e?1:0)|(c>=t?2:0));s>=e&&c<=t&&!h?i.push(a):a.decompose(e-s,t-s,i,h)}s=c+1}}replace(e,t,i){if([e,t]=yx(this,e,t),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&t<=a){let c=s.replace(e-o,t-o,i),h=this.lines-s.lines+c.lines;if(c.lines<h>>4&&c.lines>h>>6){let m=this.children.slice();return m[r]=c,new gg(m,this.length-(t-e)+i.length)}return super.replace(o,a,c)}o=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
||||
`){[e,t]=yx(this,e,t);let r="";for(let o=0,s=0;o<this.children.length&&s<=t;o++){let a=this.children[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof gg))return 0;let i=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return i;let c=this.children[r],h=e.children[o];if(c!=h)return i+c.scanIdentical(h,t);i+=c.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let x of e)i+=x.lines;if(i<32){let x=[];for(let k of e)k.flatten(x);return new vu(x,t)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],c=0,h=-1,m=[];function y(x){let k;if(x.lines>o&&x instanceof gg)for(let P of x.children)y(P);else x.lines>s&&(c>s||!c)?(M(),a.push(x)):x instanceof vu&&c&&(k=m[m.length-1])instanceof vu&&x.lines+k.lines<=32?(c+=x.lines,h+=x.length+1,m[m.length-1]=new vu(k.text.concat(x.text),k.length+1+x.length)):(c+x.lines>r&&M(),c+=x.lines,h+=x.length+1,m.push(x))}function M(){c!=0&&(a.push(m.length==1?m[0]:gg.from(m,h)),h=-1,c=m.length=0)}for(let x of e)y(x);return M(),a.length==1?a[0]:new gg(a,t)}}_s.empty=new vu([""],0);function k_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function cw(n,e,t=0,i=1e9){for(let r=0,o=0,s=!0;o<n.length&&r<=i;o++){let a=n[o],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=c+1}return e}function oN(n,e,t){return cw(n,[""],e,t)}class p3{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 vu?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof vu?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
||||
`,this;e--}else if(r instanceof vu){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof vu?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 wte{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new p3(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 Ste{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"&&(_s.prototype[Symbol.iterator]=function(){return this.iter()},p3.prototype[Symbol.iterator]=wte.prototype[Symbol.iterator]=Ste.prototype[Symbol.iterator]=function(){return this});class T_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 yx(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function fA(n,e,t=!0,i=!0){return B_e(n,e,t,i)}function R_e(n){return n>=56320&&n<57344}function D_e(n){return n>=55296&&n<56320}function pd(n,e){let t=n.charCodeAt(e);if(!D_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return R_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 yg(n){return n<65536?1:2}const mR=/\r\n?|\n/;var Th=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Th||(Th={}));class Lg{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){gR(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 Lg(e)}composeDesc(e){return this.empty?e:e.empty?this:Ete(this,e)}mapDesc(e,t=!1){return e.empty?this:yR(this,e,t)}mapPos(e,t=-1,i=Th.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],h=r+a;if(c<0){if(h>e)return o+(e-r);o+=a}else{if(i!=Th.Simple&&h>=e&&(i==Th.TrackDel&&r<e&&h>e||i==Th.TrackBefore&&r<e||i==Th.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=h}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Lg(e)}static create(e){return new Lg(e)}}class Ac extends Lg{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 gR(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return yR(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(_s.empty);i.push(s?e.slice(o,o+s):_s.empty)}o+=s}return new Ac(t,i)}compose(e){return this.empty?e:e.empty?this:Ete(this,e,!0)}map(e,t=!1){return e.empty?this:yR(this,e,t,!0)}iterChanges(e,t=!1){gR(this,e,t)}get desc
Line truncated
|
||||
`}get readOnly(){return this.facet(Pte)}phrase(e,...t){for(let i of this.facet(Cs.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(Ite))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return Q_e(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=fA(t,s,!1);if(o(t.slice(c,s))!=wl.Word)break;s=c}for(;a<r;){let c=fA(t,a);if(o(t.slice(a,c))!=wl.Word)break;a=c}return s==a?null:Sn.range(s+i,a+i)}}Cs.allowMultipleSelections=CR;Cs.tabSize=Bi.define({combine:n=>n.length?n[0]:4});Cs.lineSeparator=kte;Cs.readOnly=Pte;Cs.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])}});Cs.languageData=Ite;Cs.changeFilter=Tte;Cs.transactionFilter=Rte;Cs.transactionExtender=Dte;p5.reconfigure=ho.define();function fm(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class jb{eq(e){return this==e}range(e,t=e){return MR.create(e,t,this)}}jb.prototype.startSide=jb.prototype.endSide=0;jb.prototype.point=!1;jb.prototype.mapMode=Th.TrackDel;let MR=class Lte{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Lte(e,t,i)}};function wR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class FU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,h=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return h>=0?s:a;h>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let h=this.value[c],m=this.from[c]+e,y=this.to[c]+e,M,x;if(m==y){let k=t.mapPos(m,h.startSide,h.mapMode);if(k==null||(M=x=k,h.startSide!=h.endSide&&(x=t.mapPos(m,h.endSide),x<M)))continue}else if(M=t.mapPos(m,h.startSide),x=t.mapPos(y,h.endSide),M>x||M==x&&h.startSide>0&&h.endSide<=0)continue;(x-M||h.endSide-h.startSide)<0||(s<0&&(s=M),h.point&&(a=Math.max(a,x-M)),i.push(h),r.push(M-s),o.push(x-s))}return{mapped:i.length?new FU(r,o,i,a):null,pos:s}}}class rs{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 rs(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(wR)),this.isEmpty)return t.length?rs.of(t):this;let a=new Fte(this,null,-1).goto(0),c=0,h=[],m=new f1;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let y=t[c++];m.addInner(y.from,y.to,y.value)||h.push(y)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&m.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(m.addInner(a.from,a.to,a.value)||h.push(MR.create(a.from,a.to,a.value))),a.next());return m.finishInner(this.nextLayer.isEmpty&&!h.length?rs.empty:this.nextLayer.update({add:h,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],h=e.touchesRange(a,a+c.length);if(h===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(h===!0){let{mapped:m,pos:y}=c.map(a,e);m&&(r=Math.max(r,m.maxPoint),t.push(m),i.push(y))}}let o=this.nextLayer.map(e);return t.length==0?o:new rs(i,t,o||rs.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return A4.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return A4.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(y=>y.maxPoint>0||!y.isEmpty&&y.maxPoint>=o),a=t.filter(y=>y.maxPoint>0||!y.isEmpty&&y.maxPoint>=o
Line truncated
|
||||
${a}`)}return h})(n,"",0)}let pR=[],Cte=[];(()=>{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?Cte:pR).push(t=t+n[e])})();function O_e(n){if(n<768)return!1;for(let e=0,t=pR.length;;){let i=e+t>>1;if(n<pR[i])t=i;else if(n>=Cte[i])e=i+1;else return!0;if(e==t)return!1}}function nN(n){return n>=127462&&n<=127487}const iN=8205;function B_e(n,e,t=!0,i=!0){return(t?_te:I_e)(n,e,i)}function _te(n,e,t){if(e==n.length)return e;e&&xte(n.charCodeAt(e))&&Mte(n.charCodeAt(e-1))&&e--;let i=wB(n,e);for(e+=rN(i);e<n.length;){let r=wB(n,e);if(i==iN||r==iN||t&&O_e(r))e+=rN(r),i=r;else if(nN(r)){let o=0,s=e-2;for(;s>=0&&nN(wB(n,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function I_e(n,e,t){for(;e>0;){let i=_te(n,e-2,t);if(i<e)return i;e--}return 0}function wB(n,e){let t=n.charCodeAt(e);if(!Mte(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return xte(i)?(t-55296<<10)+(i-56320)+65536:t}function xte(n){return n>=56320&&n<57344}function Mte(n){return n>=55296&&n<56320}function rN(n){return n<65536?1:2}class ms{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]=vx(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),Rg.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]=vx(this,e,t);let i=[];return this.decompose(e,t,i,0),Rg.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 m3(this),o=new m3(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new m3(this,e)}iterRange(e,t=this.length){return new wte(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 Ste(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]?ms.empty:e.length<=32?new _u(e):Rg.from(_u.split(e,[]))}}class _u extends ms{constructor(e,t=k_e(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?i:a)>=e)return new T_e(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let o=e<=0&&t>=this.length?this:new _u(oN(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=Aw(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new _u(a,s.length+o.length));else{let c=a.length>>1;i.push(new _u(a.slice(0,c)),new _u(a.slice(c)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof _u))return super.replace(e,t,i);[e,t]=vx(this,e,t);let r=Aw(this.text,Aw(i.text,oN(this.text,0,e)),t),o=this.length+i.length-(t-e);return r.length<=32?new _u(r,o):Rg.from(_u.split(r,[]),o)}sliceString(e,t=this.length,i=`
|
||||
`){[e,t]=vx(this,e,t);let r="";for(let o=0,s=0;o<=t&&s<this.text.length;s++){let a=this.text[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(t.push(new _u(i,r)),i=[],r=-1);return r>-1&&t.push(new _u(i,r)),t}}class Rg extends ms{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,c=i+s.lines-1;if((t?c:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let o=0,s=0;s<=t&&o<this.children.length;o++){let a=this.children[o],c=s+a.length;if(e<=c&&t>=s){let h=r&((s<=e?1:0)|(c>=t?2:0));s>=e&&c<=t&&!h?i.push(a):a.decompose(e-s,t-s,i,h)}s=c+1}}replace(e,t,i){if([e,t]=vx(this,e,t),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&t<=a){let c=s.replace(e-o,t-o,i),h=this.lines-s.lines+c.lines;if(c.lines<h>>4&&c.lines>h>>6){let m=this.children.slice();return m[r]=c,new Rg(m,this.length-(t-e)+i.length)}return super.replace(o,a,c)}o=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
||||
`){[e,t]=vx(this,e,t);let r="";for(let o=0,s=0;o<this.children.length&&s<=t;o++){let a=this.children[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Rg))return 0;let i=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return i;let c=this.children[r],h=e.children[o];if(c!=h)return i+c.scanIdentical(h,t);i+=c.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let x of e)i+=x.lines;if(i<32){let x=[];for(let T of e)T.flatten(x);return new _u(x,t)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],c=0,h=-1,m=[];function y(x){let T;if(x.lines>o&&x instanceof Rg)for(let P of x.children)y(P);else x.lines>s&&(c>s||!c)?(M(),a.push(x)):x instanceof _u&&c&&(T=m[m.length-1])instanceof _u&&x.lines+T.lines<=32?(c+=x.lines,h+=x.length+1,m[m.length-1]=new _u(T.text.concat(x.text),T.length+1+x.length)):(c+x.lines>r&&M(),c+=x.lines,h+=x.length+1,m.push(x))}function M(){c!=0&&(a.push(m.length==1?m[0]:Rg.from(m,h)),h=-1,c=m.length=0)}for(let x of e)y(x);return M(),a.length==1?a[0]:new Rg(a,t)}}ms.empty=new _u([""],0);function k_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function Aw(n,e,t=0,i=1e9){for(let r=0,o=0,s=!0;o<n.length&&r<=i;o++){let a=n[o],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=c+1}return e}function oN(n,e,t){return Aw(n,[""],e,t)}class m3{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 _u?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof _u?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
||||
`,this;e--}else if(r instanceof _u){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof _u?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 wte{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new m3(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 Ste{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"&&(ms.prototype[Symbol.iterator]=function(){return this.iter()},m3.prototype[Symbol.iterator]=wte.prototype[Symbol.iterator]=Ste.prototype[Symbol.iterator]=function(){return this});class T_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 vx(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function CA(n,e,t=!0,i=!0){return B_e(n,e,t,i)}function R_e(n){return n>=56320&&n<57344}function D_e(n){return n>=55296&&n<56320}function bd(n,e){let t=n.charCodeAt(e);if(!D_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return R_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 Dg(n){return n<65536?1:2}const mR=/\r\n?|\n/;var Oh=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Oh||(Oh={}));class e0{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){gR(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 e0(e)}composeDesc(e){return this.empty?e:e.empty?this:Ete(this,e)}mapDesc(e,t=!1){return e.empty?this:yR(this,e,t)}mapPos(e,t=-1,i=Oh.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],h=r+a;if(c<0){if(h>e)return o+(e-r);o+=a}else{if(i!=Oh.Simple&&h>=e&&(i==Oh.TrackDel&&r<e&&h>e||i==Oh.TrackBefore&&r<e||i==Oh.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=h}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new e0(e)}static create(e){return new e0(e)}}class Mc extends e0{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 gR(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return yR(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(ms.empty);i.push(s?e.slice(o,o+s):ms.empty)}o+=s}return new Mc(t,i)}compose(e){return this.empty?e:e.empty?this:Ete(this,e,!0)}map(e,t=!1){return e.empty?this:yR(this,e,t,!0)}iterChanges(e,t=!1){gR(this,e,t)}get desc
Line truncated
|
||||
`}get readOnly(){return this.facet(Pte)}phrase(e,...t){for(let i of this.facet(ps.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(Ite))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return Q_e(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=CA(t,s,!1);if(o(t.slice(c,s))!=ml.Word)break;s=c}for(;a<r;){let c=CA(t,a);if(o(t.slice(a,c))!=ml.Word)break;a=c}return s==a?null:wn.range(s+i,a+i)}}ps.allowMultipleSelections=CR;ps.tabSize=Bi.define({combine:n=>n.length?n[0]:4});ps.lineSeparator=kte;ps.readOnly=Pte;ps.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])}});ps.languageData=Ite;ps.changeFilter=Tte;ps.transactionFilter=Rte;ps.transactionExtender=Dte;m5.reconfigure=ro.define();function Dm(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Gb{eq(e){return this==e}range(e,t=e){return MR.create(e,t,this)}}Gb.prototype.startSide=Gb.prototype.endSide=0;Gb.prototype.point=!1;Gb.prototype.mapMode=Oh.TrackDel;let MR=class Lte{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Lte(e,t,i)}};function wR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class FU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,h=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return h>=0?s:a;h>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let h=this.value[c],m=this.from[c]+e,y=this.to[c]+e,M,x;if(m==y){let T=t.mapPos(m,h.startSide,h.mapMode);if(T==null||(M=x=T,h.startSide!=h.endSide&&(x=t.mapPos(m,h.endSide),x<M)))continue}else if(M=t.mapPos(m,h.startSide),x=t.mapPos(y,h.endSide),M>x||M==x&&h.startSide>0&&h.endSide<=0)continue;(x-M||h.endSide-h.startSide)<0||(s<0&&(s=M),h.point&&(a=Math.max(a,x-M)),i.push(h),r.push(M-s),o.push(x-s))}return{mapped:i.length?new FU(r,o,i,a):null,pos:s}}}class Ho{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 Ho(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(wR)),this.isEmpty)return t.length?Ho.of(t):this;let a=new Fte(this,null,-1).goto(0),c=0,h=[],m=new f1;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let y=t[c++];m.addInner(y.from,y.to,y.value)||h.push(y)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&m.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(m.addInner(a.from,a.to,a.value)||h.push(MR.create(a.from,a.to,a.value))),a.next());return m.finishInner(this.nextLayer.isEmpty&&!h.length?Ho.empty:this.nextLayer.update({add:h,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],h=e.touchesRange(a,a+c.length);if(h===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(h===!0){let{mapped:m,pos:y}=c.map(a,e);m&&(r=Math.max(r,m.maxPoint),t.push(m),i.push(y))}}let o=this.nextLayer.map(e);return t.length==0?o:new Ho(i,t,o||Ho.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return h4.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return h4.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(y=>y.maxPoint>0||!y.isEmpty&&y.maxPoint>=o),a=t.filter(y=>y.maxPoint>0||!y.isEmpty&&y.maxPoint>=o
Line truncated
|
||||
`)}static newName(){let e=AN[cN]||1;return AN[cN]=e+1,OR+e.toString(36)}static mount(e,t,i){let r=e[BR],o=i&&i.nonce;r?o&&r.setNonce(o):r=new Y_e(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let hN=new Map;class Y_e{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=hN.get(i);if(o)return e[BR]=o;this.sheet=new r.CSSStyleSheet,hN.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[BR]=this}mount(e,t){let i=this.sheet,r=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],c=this.modules.indexOf(a);if(c<o&&c>-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,a),i)for(let h=0;h<a.rules.length;h++)i.insertRule(a.rules[h],r++)}else{for(;o<c;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
|
||||
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var rv={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:"'"},h4={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},$_e=typeof navigator<"u"&&/Mac/.test(navigator.platform),V_e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var hA=0;hA<10;hA++)rv[48+hA]=rv[96+hA]=String(hA);for(var hA=1;hA<=24;hA++)rv[hA+111]="F"+hA;for(var hA=65;hA<=90;hA++)rv[hA]=String.fromCharCode(hA+32),h4[hA]=String.fromCharCode(hA);for(var EB in rv)h4.hasOwnProperty(EB)||(h4[EB]=rv[EB]);function H_e(n){var e=$_e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||V_e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?h4:rv)[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 Ia(){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++)zte(n,arguments[e]);return n}function zte(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++)zte(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}function d4(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function IR(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function hw(n,e){if(!e.anchorNode)return!1;try{return IR(n,e.anchorNode)}catch{return!1}}function f4(n){return n.nodeType==3?Gb(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function g3(n,e,t,i){return t?dN(n,e,t,i,-1)||dN(n,e,t,i,1):!1}function Nb(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function gS(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function dN(n,e,t,i,r){for(;;){if(n==t&&e==i)return!0;if(e==(r<0?0:zg(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;e=Nb(n)+(r<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(r<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=r<0?zg(n):0}else return!1}}function zg(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function a6(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function Z_e(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function jte(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function X_e(n,e,t,i,r,o,s,a){let c=n.ownerDocument,h=c.defaultView||window;for(let m=n,y=!1;m&&!y;)if(m.nodeType==1){let M,x=m==c.body,k=1,P=1;if(x)M=Z_e(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(m).position)&&(y=!0),m.scrollHeight<=m.clientHeight&&m.scrollWidth<=m.clientWidth){m=m.assignedSlot||m.parentNode;continue}let q=m.getBoundingClientRect();({scaleX:k,scaleY:P}=jte(m,q)),M={left:q.left,right:q.left+m.clientWidth*k,top:q.top,bottom:q.top+m.clientHeight*P}}let F=0,j=0;if(r=="nearest")e.top<M.top?(j=e.top-(M.top+s),t>0&&e.bottom>M.bottom+j&&(j=e.bottom-M.bottom+s)):e.bottom>M.bottom&&(j=e.bottom-M.bottom+s,t<0&&e.top-j<M.top&&(j=e.top-(M.top+s)));else{let q=e.bottom-e.top,V=M.bottom-M.top;j=(r=="center"&&q<=V?e.top+q/2-V/2:r=="start"||r=="center"&&t<0?e.top-s:e.bottom-V+s)-M.top}if(i=="nearest"?e.left<M.left?(F=e.left-(M.left+o),t>0&&e.right>M.right+F&&(F=e.right-M.right+o)):e.right>M.right&&(F=e.right-M.right+o,t<0&&e.left<M.left+F&&(F=e.left-(M.left+o))):F=(i=="center"?e.left+(e.right-e.left)/2-(M.right-M.left)/2:i=="start"==a?e.left-o:e.right-(M.right-M.left)+o)-M.left,F||j)if(x)h.scrollBy(F,j);else{let q=0,V=0;if(j){let H=m.Line truncated
|
||||
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),h=n.visualLineSide(r,!t)}if(c){if(!c(m))return a}else{if(!i)return h;c=i(m)}a=h}}function Rxe(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==wl.Space&&(r=s),r==s}}function Dxe(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return Sn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(r,e.assoc||-1),m=n.documentTop;if(h)s==null&&(s=h.left-c.left),a=o<0?h.top:h.bottom;else{let x=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-x.from))),a=(o<0?x.top:x.bottom)+m}let y=c.left+s,M=i??n.viewState.heightOracle.textHeight>>1;for(let x=0;;x+=10){let k=a+(M+x)*o,P=_ne(n,{x:y,y:k},!1,o);if(k<c.top||k>c.bottom||(o<0?P<r:P>r)){let F=n.docView.coordsForChar(P),j=!F||k<F.top?-1:1;return Sn.cursor(P,j,void 0,s)}}}function v3(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function Mne(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=v3(n,r.from,0);s!=r.from&&(o=Sn.cursor(s,-1))}else{let s=v3(n,r.from,-1),a=v3(n,r.to,1);(s!=r.from||a!=r.to)&&(o=Sn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?Sn.create(t,e.mainIndex):e}function kB(n,e,t){let i=v3(n.state.facet(y5).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:Sn.cursor(i,i<t.from?1:-1)}const $2="";class Pxe{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Cs.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=$2}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let o=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==t)break;let a=Ta.get(r),c=Ta.get(s);(a&&c?a.breakAfter:(a?a.breakAfter:gS(r))||gS(s)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>o)&&this.lineBreak(),r=s}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(t))&&(o=a.index,s=a[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=s-1);i=o+s}}readNode(e){if(e.cmIgnore)return;let t=Ta.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Uxe(e,i.node,i.offset)?t:0))}}function Uxe(n,e,t){for(;;){if(!e||t<zg(e))return!1;if(e==n)return!0;t=Nb(e)+1,e=e.parentNode}}class SN{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Kxe{constructor(e,t,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=o||s?[]:zxe(e),c=new Pxe(a,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=jxe(a,this.bounds.from)}else{let a=e.observer.selectionRange,c=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!IR(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),h=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!IR(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),m=e.viewport;if((Si.ios||Si.chrome)&&e.state.selection.main.empty&&c!=h&&(m.from>0||m.to<e.state.doc.length)){let y=Math.min(c,h),M=Math.max(c,h),x=m.from-y,k=m.to-M;(x==0||x==1||y==0)&&(k==0||k==-1||M==e.state.doc.length)&&(c=0,h=e.state.doc.length)}this.newSel=Sn.single(h,c)}}}function wne(n,e){let t,{newSel:i}=e,r=n.state.selection.main,o=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,c=r.from,h=null;(o===8||Si.android&&e.text.length<a-s)&&(c=r.to,h="end");let m=Fxe(n.state.doc.sliceString(s,a,$2),e.text,c-s,h);m&&(Si.chrome&&o==13&&m.toB==m.from+2&&e.text.slice(m.from,m.toB)==$2+$2&&m.toB--,t={from:s+m.from,to:s+m.toA,insert:_s.of(e.text.slice(m.from,m.toB).split($2))})}else i&&(!n.hasFocus&&n.state.facet(t1)||i.main.eq(r))&&(i=null);if(!t&&!i)return!1;if(!t&&e.typeOver&&!r.empty&&i&&i.main.empty?t={from:r.from,to:r.to,insert:n.state.doc.slice(r.from,r.to)}:(Si.mac||Si.android)&&t&&t.from==t.to&&t
Line truncated
|
||||
`&&n.lineWrapping&&(i&&(i=Sn.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:_s.of([" "])}),t)return qU(n,t,i,o);if(i&&!i.main.eq(r)){let s=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(s=!0),a=n.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=Mne(n.state.facet(y5).map(c=>c(n)),i))),n.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function qU(n,e,t,i=-1){if(Si.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(Si.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&&q_(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)&&q_(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&q_(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=Lxe(n,e,t));return n.state.facet(Ane).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function Lxe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,h=c<0?o.from:o.to,m=v3(r.facet(y5).map(y=>y(n)),h,c);e.from==m&&(s=m)}if(s>-1)i={changes:e,selection:Sn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",h=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let c=r.changes(e),h=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let m=n.state.sliceDoc(e.from,e.to),y,M=t&&Cne(n,t.main.head);if(M){let P=e.insert.length-(e.to-e.from);y={from:M.from,to:M.to-P}}else y=n.state.doc.lineAt(o.head);let x=o.to-e.to,k=o.to-o.from;i=r.changeByRange(P=>{if(P.from==o.from&&P.to==o.to)return{changes:c,range:h||P.map(c)};let F=P.to-x,j=F-m.length;if(P.to-P.from!=k||n.state.sliceDoc(j,F)!=m||P.to>=y.from&&P.from<=y.to)return{range:P};let q=r.changes({from:j,to:F,insert:e.insert}),V=P.to-o.to;return{changes:q,range:h?Sn.range(Math.max(0,h.anchor+V),Math.max(0,h.head+V)):P.map(q)}})}else i={changes:c,selection:h&&r.selection.replaceRange(h)}}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 Fxe(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function zxe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new SN(t,i)),(r!=t||o!=i)&&e.push(new SN(r,o))),e}function jxe(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?Sn.single(t+e,i+e):null}class Nxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Si.safari&&e.contentDOM.addEventListener("input",()=>null),Si.gecko&&r2e(e.contentDOM.ownerDocument)}handleEvent(e){!Hxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Gxe(e),i=this.handlers,r=this.view.contentDOM;for(let o in t)if(o!="scroll"){let s=!t[o].handlers.length,a=i[o];a&&s!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||
Line truncated
|
||||
`))};if(h.from==this.from&&o<this.from?h.from=o:h.to==this.to&&o>this.to&&(h.to=o),h.from==h.to&&!h.insert.length){let m=Sn.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));m.main.eq(r)||e.dispatch({selection:m,userEvent:"select"});return}if((Si.mac||Si.android)&&h.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:a,to:c,insert:_s.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let m=this.to-this.from+(h.to-h.from+h.insert.length);qU(e,h,Sn.single(this.toEditorPos(i.selectionStart,m),this.toEditorPos(i.selectionEnd,m)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),h.from<h.to&&!h.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),h=this.toEditorPos(o.rangeEnd);if(c<h){let m=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(kr.mark({attributes:{style:m}}).range(c,h))}}}e.dispatch({effects:mne.of(kr.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=d4(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,h)=>{if(i)return;let m=h.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(h)){r=this.pendingContextChange=null,t+=m,this.to+=m;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=m,this.to+=m;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),h.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 Ei{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 thi
Line truncated
|
||||
--\u2028\u2029\uFEFF-]`,$R),j2e={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 DB=null;function N2e(){var n;if(DB==null&&typeof document<"u"&&document.body){let e=document.body.style;DB=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return DB||!1}const mw=Bi.define({combine(n){let e=fm(n,{render:null,specialChars:z2e,addSpecialChars:null});return(e.replaceTabs=!N2e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,$R)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,$R)),e}});function G2e(n={}){return[mw.of(n),W2e()]}let VN=null;function W2e(){return VN||(VN=bu.fromClass(class{constructor(n){this.view=n,this.decorations=kr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(mw)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new F2e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=pd(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=jx(s.text,a,i-s.from);return kr.replace({widget:new $2e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=kr.replace({widget:new Y2e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(mw);n.startState.facet(mw)!=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 Q2e="•";function q2e(n){return n>=32?Q2e:n==10?"":String.fromCharCode(9216+n)}class Y2e extends Av{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=q2e(this.code),i=e.state.phrase("Control character")+" "+(j2e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class $2e extends Av{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 V2e(){return Z2e}const H2e=kr.line({class:"cm-activeLine"}),Z2e=bu.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(H2e.range(r.from)),e=r.from)}return kr.set(t)}},{decorations:n=>n.decorations}),VR=2e3;function X2e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>VR||t.off>VR||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let h=n.doc.line(c);h.length<=a&&o.push(Sn.range(h.from+s,h.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let h=n.doc.line(c),m=ER(h.text,s,n.tabSize,!0);if(m<0)o.push(Sn.cursor(h.to));else{let y=ER(h.text,a,n.tabSize);o.push(Sn.range(h.from+m,h.from+y))}}}return o}function J2e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function HN(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>VR?-1:r==i.length?J2e(n,e.clientX):jx(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function e3e(n,e){let t=HN(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=HN(n,r);if(!a)return i;let c=X2e(n.state,t,a);return c.length?s?Sn.create(c.concat(i.ranges)):Sn.create(c):i}}:null}function t3e(n){let e=(t=>t.altKey&&t.button==0);return Ei.mouseSelectionStyle.of((t,i)=>e(i)?e3e(t,i):null)}const n3e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},i3e={style:"cursor: crosshair"};function r3e(n={}){let[e,t]=n3e[n.key||"Alt"],i=bu.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,Ei.contentAttributes.of(r=>{var o;ret
Line truncated
|
||||
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new lMe(this):new sMe(this)}getCursor(e,t=0,i){let r=e.doc?e:Cs.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?x_(this,r,t,i):__(this,r,t,i)}}class ere{constructor(e){this.spec=e}}function __(n,e,t,i){return new xx(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?oMe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function oMe(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(RS(r,t-o))!=wl.Word||e(DS(r,t-o))!=wl.Word)&&(e(DS(r,i-o))!=wl.Word||e(RS(r,i-o))!=wl.Word))}class sMe extends ere{constructor(e){super(e)}nextMatch(e,t,i){let r=__(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=__(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=__(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=__(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=__(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function x_(n,e,t,i){return new Zie(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?aMe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function RS(n,e){return n.slice(fA(n,e,!1),e)}function DS(n,e){return n.slice(e,fA(n,e))}function aMe(n){return(e,t,i)=>!i[0].length||(n(RS(i.input,i.index))!=wl.Word||n(DS(i.input,i.index))!=wl.Word)&&(n(DS(i.input,i.index+i[0].length))!=wl.Word||n(RS(i.input,i.index+i[0].length))!=wl.Word)}class lMe extends ere{nextMatch(e,t,i){let r=x_(this.spec,e,i,e.doc.length).next();return r.done&&(r=x_(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=x_(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=x_(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=x_(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const C4=ho.define(),lK=ho.define(),Jy=pc.define({create(n){return new YB(lD(n).create(),null)},update(n,e){for(let t of e.effects)t.is(C4)?n=new YB(t.value.create(),n.panel):t.is(lK)&&(n=new YB(n.query,t.value?uK:null));return n},provide:n=>y4.from(n,e=>e.panel)});class YB{constructor(e,t){this.query=e,this.panel=t}}const uMe=kr.mark({class:"cm-searchMatch"}),cMe=kr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),AMe=bu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Jy))}update(n){let e=n.state.field(Jy);(e!=n.startState.field(Jy)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return kr.none;let{view:t}=this,i=new f1;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(h,m)=>{let y=t.state.selection.ranges.some(M=>M.from==h&&M.to==m);i.add(h,m,y?cMe:uMe)})}return i.finish()}},{decorations:n=>n.decorations});function x5(n){return e=>{let t=e.state.field(Jy,!1);return t&&t.query.spec.valid?n(e,t):ire(e)}}const PS=x5((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=Sn.single(i.from,i.to),o=n.state.facet(Gx);return n.dispatch({selection:r,effects:[cK(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),nre(n),!0}),US=x5((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=Sn.single(r.from,r.to),s=n.state.facet(Gx);return n.dispatch({selection:o,effects:[cK(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),nre(n),!0}),hMe=x5((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:Sn.cre
Line truncated
|
||||
`)}var Ln={extraLines:2,tabSize:4},ii=function(Rn,gn,Yn,Dn){Dn=Ot({},Ln,Dn);var Tt=Rn.split(/\r\n?|\n|\f/),_e=Math.max(1,gn-Dn.extraLines)-1,oe=Math.min(gn+Dn.extraLines,Tt.length),ee=String(oe).length,ne=Tn(Tt,_e,gn,ee,Dn),ue=Jt(Tt[gn-1].substring(0,Yn-1),gn,ee,Dn),ye=rt(" ",ue.length)+"^",Ue=Tn(Tt,gn,oe,ee,Dn);return[ne,ye,Ue].filter(Boolean).join(`
|
||||
`)};return ii})}),h=new Error().stack,m=(function(Te){var Se=Object.create(SyntaxError.prototype);return Object.assign(Se,Te,{name:"SyntaxError"}),Object.defineProperty(Se,"stack",{get:function(){return h?h.replace(/^(.+\n){1,3}/,String(Se)+`
|
||||
`):""}}),Se}),y=(function(Te,Se,Ne,ut,rt){throw m({message:ut?Te+`
|
||||
`+c(Se,ut,rt):Te,rawMessage:Te,source:Ne,line:ut,column:rt})}),M={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Se){for(var Ne=arguments.length,ut=Array(Ne>1?Ne-1:0),rt=1;rt<Ne;rt++)ut[rt-1]=arguments[rt];return"Unexpected token <"+Se+"> at "+ut.filter(Boolean).join(":")}},x={unexpectedSymbol:function(Se){for(var Ne=arguments.length,ut=Array(Ne>1?Ne-1:0),rt=1;rt<Ne;rt++)ut[rt-1]=arguments[rt];return"Unexpected symbol <"+Se+"> at "+ut.filter(Boolean).join(":")}},k={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},P={"{":k.LEFT_BRACE,"}":k.RIGHT_BRACE,"[":k.LEFT_BRACKET,"]":k.RIGHT_BRACKET,":":k.COLON,",":k.COMMA},F={true:k.TRUE,false:k.FALSE,null:k.NULL},j={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},q={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},V={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function H(Te){return Te>="1"&&Te<="9"}function G(Te){return Te>="0"&&Te<="9"}function Y(Te){return G(Te)||Te>="a"&&Te<="f"||Te>="A"&&Te<="F"}function z(Te){return Te==="e"||Te==="E"}function se(Te,Se,Ne,ut){var rt=Te.charAt(Se);if(rt==="\r")Se++,Ne++,ut=1,Te.charAt(Se)===`
|
||||
`&&Se++;else if(rt===`
|
||||
`)Se++,Ne++,ut=1;else if(rt===" "||rt===" ")Se++,ut++;else return null;return{index:Se,line:Ne,column:ut}}function le(Te,Se,Ne,ut){var rt=Te.charAt(Se);return rt in P?{type:P[rt],line:Ne,column:ut+1,index:Se+1,value:null}:null}function me(Te,Se,Ne,ut){for(var rt in F)if(F.hasOwnProperty(rt)&&Te.substr(Se,rt.length)===rt)return{type:F[rt],line:Ne,column:ut+rt.length,index:Se+rt.length,value:rt};return null}function de(Te,Se,Ne,ut){for(var rt=Se,pt=j._START_;Se<Te.length;){var Dt=Te.charAt(Se);switch(pt){case j._START_:{if(Dt==='"')Se++,pt=j.START_QUOTE_OR_CHAR;else return null;break}case j.START_QUOTE_OR_CHAR:{if(Dt==="\\")Se++,pt=j.ESCAPE;else{if(Dt==='"')return Se++,{type:k.STRING,line:Ne,column:ut+Se-rt,index:Se,value:Te.slice(rt,Se)};Se++}break}case j.ESCAPE:{if(Dt in q){if(Se++,Dt==="u")for(var Ot=0;Ot<4;Ot++){var Jt=Te.charAt(Se);if(Jt&&Y(Jt))Se++;else return null}pt=j.START_QUOTE_OR_CHAR}else return null;break}}}}function be(Te,Se,Ne,ut){var rt=Se,pt=Se,Dt=V._START_;e:for(;Se<Te.length;){var Ot=Te.charAt(Se);switch(Dt){case V._START_:{if(Ot==="-")Dt=V.MINUS;else if(Ot==="0")pt=Se+1,Dt=V.ZERO;else if(H(Ot))pt=Se+1,Dt=V.DIGIT;else return null;break}case V.MINUS:{if(Ot==="0")pt=Se+1,Dt=V.ZERO;else if(H(Ot))pt=Se+1,Dt=V.DIGIT;else return null;break}case V.ZERO:{if(Ot===".")Dt=V.POINT;else if(z(Ot))Dt=V.EXP;else break e;break}case V.DIGIT:{if(G(Ot))pt=Se+1;else if(Ot===".")Dt=V.POINT;else if(z(Ot))Dt=V.EXP;else break e;break}case V.POINT:{if(G(Ot))pt=Se+1,Dt=V.DIGIT_FRACTION;else break e;break}case V.DIGIT_FRACTION:{if(G(Ot))pt=Se+1;else if(z(Ot))Dt=V.EXP;else break e;break}case V.EXP:{if(Ot==="+"||Ot==="-")Dt=V.EXP_DIGIT_OR_SIGN;else if(G(Ot))pt=Se+1,Dt=V.EXP_DIGIT_OR_SIGN;else break e;break}case V.EXP_DIGIT_OR_SIGN:{if(G(Ot))pt=Se+1;else break e;break}}Se++}return pt>0?{type:k.NUMBER,line:Ne,column:ut+pt-rt,index:pt,value:Te.slice(rt,pt)}:null}var Ee=function(Se,Ne){for(var ut=1,rt=1,pt=0,Dt=[];pt<Se.length;){var Ot=[Se,pt,ut,rt],Jt=se.apply(void 0,Ot);if(Jt){pt=Jt.index,ut=Jt.line,rt=Jt.column;continue}var Tn=le.apply(void 0,Ot)||me.apply(void 0,Ot)||de.apply(void 0,Ot)||be.apply(void 0,Ot);if(Tn){var Ln={type:Tn.type,value:Tn.value,loc:a(ut,rt,pt,Tn.line,Tn.column,Tn.index,Ne.source)};Dt.push(Ln),pt=Tn.index,ut=Tn.line,rt=Tn.column}else y(x.unexpectedSymbol(s(Se,pt,pt+1),Ne.source,ut,rt),Se,Ne.source,ut,rt)}return Dt},De={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},je={_START_:0,KEY:1,COLON:2},Ie={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Qe={loc:!0,source:null};function et(Te,Se,Ne){var ut=Se.length>0?Se[Se.length-1].loc.end:{line:1,column:1};y(M.unexpectedEnd(),Te,Ne.source,ut.line,ut.column)}function dt(Te){for(var Se=0,Ne=0;Ne<4;Ne++)Se=Se*16+parseInt(Te[Ne],16);return String.fromCharCode(Se)}var ke={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},we=['"',"\\","/"];function ze(Te){for(var Se="",Ne=0;Ne<Te.length;Ne++){var ut=Te.charAt(Ne);if(ut==="\\"){Ne++;var rt=Te.charAt(Ne);if(rt==="u")Se+=dt(Te.substr(Ne+1,4)),Ne+=4;else if(we.indexOf(rt)!==-1)Se+=rt;else if(rt in ke)Se+=ke[rt];else break}else Se+=ut}return Se}function xe(Te,Se,Ne,ut){for(var rt=void 0,pt={type:"Object",children:[]},Dt=De._START_;Ne<Se.length;){var Ot=Se[Ne];switch(Dt){case De._START_:{if(Ot.type===k.LEFT_BRACE)rt=Ot,Dt=De.OPEN_OBJECT,Ne++;else return null;break}case De.OPEN_OBJECT:{if(Ot.type===k.RIGHT_BRACE)return ut.loc&&(pt.loc=a(rt.loc.start.line,rt.loc.start.column,rt.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,ut.source)),{value:pt,index:Ne+1};var Jt=At(Te,Se,Ne,ut);pt.children.push(Jt.value),Dt=De.PROPERTY,Ne=Jt.index;break}case De.PROPERTY:{if(Ot.type===k.RIGHT_BRACE)return ut.loc&&(pt.loc=a(rt.loc.start.line,rt.loc.start.column,rt.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,ut.source)),{value:pt,index:Ne+1};Ot.type===k.COMMA?(Dt=De.COMMA,Ne++):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),ut.source,Ot.loc.start.line,Ot.loc.start.column),Te,ut.source,Ot.loc.start.line,Ot.loc.start.column);break}case De.COMMA:{var Tn=At(Te,Se,Ne,ut);Tn?(Ne=Tn.index,pt.children.push(Tn.value),Dt=De.PROPERTY):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),ut.source,Ot.loc.start.line,Ot.loc.start.column),Te,ut.source,Ot.loc.start.line,Ot.loc.start.column);break}}}et(Te,Se,ut)}function At(Te,Se,Ne,ut){for(var rt=void 0,pt={type:"Property",key:null,value:null},Dt=je._START_;Ne<Se.length;){var Ot=Se[Ne];switch(Dt){case je._START_:{if(Ot.type===k.STRING){var Jt={type:"Identifier",value:ze(Te.slice(Ot.loc.start.offset+1,Ot.loc.end.offset-1)),raw:Ot.value};ut.loc&&(Jt.loc=Ot.loc),rt=Ot,pt.key=Jt,Dt=je.KEY,Ne++}else return null;break}case je.KEY:{Ot.type===k.COLON?(Dt=je.COLON,Ne++):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),ut.source,Ot.loc.start.line,Ot.loc.start.column),Te,ut.source,Ot.loc.start.line,Ot.loc.start.column);break}case je.COLON:{var Tn=Bt(Te,Se,Ne,ut);return pt.value=Tn.value,ut.loc&&(pt.loc=a(rt.loc.start.line,rt.loc.start.column,rt.loc.start.offset,Tn.value.loc.end.line,Tn.value.loc.end.column,Tn.value.loc.end.offset,ut.source)),{value:pt,index:Tn.index}}}}}function it(Te,Se,Ne,ut){for(var rt=void 0,pt={type:"Array",children:[]},Dt=Ie._START_,Ot=void 0;Ne<Se.length;)switch(Ot=Se[Ne],Dt){case Ie._START_:{if(Ot.type===k.LEFT_BRACKET)rt=Ot,Dt=Ie.OPEN_ARRAY,Ne++;else return null;break}case Ie.OPEN_ARRAY:{if(Ot.type===k.RIGHT_BRACKET)return ut.loc&&(pt.loc=a(rt.loc.start.line,rt.loc.start.column,rt.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,ut.source)),{value:pt,index:Ne+1};var Jt=Bt(Te,Se,Ne,ut);Ne=Jt.index,pt.children.push(Jt.value),Dt=Ie.VALUE;break}case Ie.VALUE:{if(Ot.type===k.RIGHT_BRACKET)return ut.loc&&(pt.loc=a(rt.loc.start.line,rt.loc.start.column,rt.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,ut.source)),{value:pt,index:Ne+1};Ot.type===k.COMMA?(Dt=Ie.COMMA,Ne++):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),ut.source,Ot.loc.start.line,Ot.loc.start.column),Te,ut.source,Ot.loc.start.line,Ot.loc.start.column);break}case Ie.COMMA:{var Tn=Bt(Te,Se,Ne,ut);Ne=Tn.index,pt.children.push(Tn.value),Dt=Ie.VALUE;break}}et(Te,Se,ut)}function bt(Te,Se,Ne,ut){var rt=Se[Ne],pt=null;switch(rt.type){case k.STRING:{pt=ze(Te.slice(rt.loc.start.offset+1,rt.loc.end.offset-1));break}case k.NUMBER:{pt=Number(rt.value);break}case k.TRUE:{pt=!0;break}case k.FALSE:{pt=!1;break}case k.NULL:{pt=null;break}default:return null}var Dt={type:"Literal",value:pt,raw:rt.value};return ut.loc&&(Dt.loc=rt.loc),{value:Dt,index:Ne+1}}function Bt(Te,Se,Ne,ut){var rt=Se[Ne],pt=bt.apply(void 0,arguments)||xe.apply(void 0,arguments)||it.apply(void 0,arguments);if(pt)return pt;y(M.unexpectedToken(s(Te,rt.loc.start.offset,rt.loc.end.offset),ut.source,rt.loc.start.line,rt.loc.start.column),Te,ut.source,rt.loc.start.line,rt.loc.start.column)}var Ke=(function(Te,Se){Se=Object.assign({},Qe,Se);var Ne=Ee(Te,Se);Ne.length===0&&et(Te,Ne,Se);var ut=Bt(Te,Ne,0,Se);if(ut.index===Ne.length)return ut.value;var rt=Ne[ut.index];y(M.unexpectedToken(s(Te,rt.loc.start.offset,rt.loc.end.offset),Se.source,rt.loc.start.line,rt.loc.start.column),Te,Se.source,rt.loc.start.line,rt.loc.start.column)});return Ke}))})(_w)),_w.exports}var Xwe=Zwe();const mK=Xl(Xwe);function Oa(){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
|
||||
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var iv={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:"'"},d4={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},$_e=typeof navigator<"u"&&/Mac/.test(navigator.platform),V_e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var vA=0;vA<10;vA++)iv[48+vA]=iv[96+vA]=String(vA);for(var vA=1;vA<=24;vA++)iv[vA+111]="F"+vA;for(var vA=65;vA<=90;vA++)iv[vA]=String.fromCharCode(vA+32),d4[vA]=String.fromCharCode(vA);for(var EB in iv)d4.hasOwnProperty(EB)||(d4[EB]=iv[EB]);function H_e(n){var e=$_e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||V_e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?d4:iv)[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 Ba(){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++)zte(n,arguments[e]);return n}function zte(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++)zte(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}function f4(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function IR(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function dw(n,e){if(!e.anchorNode)return!1;try{return IR(n,e.anchorNode)}catch{return!1}}function p4(n){return n.nodeType==3?Qb(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function y3(n,e,t,i){return t?dN(n,e,t,i,-1)||dN(n,e,t,i,1):!1}function Wb(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function yS(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function dN(n,e,t,i,r){for(;;){if(n==t&&e==i)return!0;if(e==(r<0?0:n0(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;e=Wb(n)+(r<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(r<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=r<0?n0(n):0}else return!1}}function n0(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function l6(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function Z_e(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function jte(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function X_e(n,e,t,i,r,o,s,a){let c=n.ownerDocument,h=c.defaultView||window;for(let m=n,y=!1;m&&!y;)if(m.nodeType==1){let M,x=m==c.body,T=1,P=1;if(x)M=Z_e(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(m).position)&&(y=!0),m.scrollHeight<=m.clientHeight&&m.scrollWidth<=m.clientWidth){m=m.assignedSlot||m.parentNode;continue}let q=m.getBoundingClientRect();({scaleX:T,scaleY:P}=jte(m,q)),M={left:q.left,right:q.left+m.clientWidth*T,top:q.top,bottom:q.top+m.clientHeight*P}}let F=0,j=0;if(r=="nearest")e.top<M.top?(j=e.top-(M.top+s),t>0&&e.bottom>M.bottom+j&&(j=e.bottom-M.bottom+s)):e.bottom>M.bottom&&(j=e.bottom-M.bottom+s,t<0&&e.top-j<M.top&&(j=e.top-(M.top+s)));else{let q=e.bottom-e.top,V=M.bottom-M.top;j=(r=="center"&&q<=V?e.top+q/2-V/2:r=="start"||r=="center"&&t<0?e.top-s:e.bottom-V+s)-M.top}if(i=="nearest"?e.left<M.left?(F=e.left-(M.left+o),t>0&&e.right>M.right+F&&(F=e.right-M.right+o)):e.right>M.right&&(F=e.right-M.right+o,t<0&&e.left<M.left+F&&(F=e.left-(M.left+o))):F=(i=="center"?e.left+(e.right-e.left)/2-(M.right-M.left)/2:i=="start"==a?e.left-o:e.right-(M.right-M.left)+o)-M.left,F||j)if(x)h.scrollBy(F,j);else{let q=0,V=0;if(j){let H=m.Line truncated
|
||||
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),h=n.visualLineSide(r,!t)}if(c){if(!c(m))return a}else{if(!i)return h;c=i(m)}a=h}}function Rxe(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==ml.Space&&(r=s),r==s}}function Dxe(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return wn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(r,e.assoc||-1),m=n.documentTop;if(h)s==null&&(s=h.left-c.left),a=o<0?h.top:h.bottom;else{let x=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-x.from))),a=(o<0?x.top:x.bottom)+m}let y=c.left+s,M=i??n.viewState.heightOracle.textHeight>>1;for(let x=0;;x+=10){let T=a+(M+x)*o,P=_ne(n,{x:y,y:T},!1,o);if(T<c.top||T>c.bottom||(o<0?P<r:P>r)){let F=n.docView.coordsForChar(P),j=!F||T<F.top?-1:1;return wn.cursor(P,j,void 0,s)}}}function b3(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function Mne(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=b3(n,r.from,0);s!=r.from&&(o=wn.cursor(s,-1))}else{let s=b3(n,r.from,-1),a=b3(n,r.to,1);(s!=r.from||a!=r.to)&&(o=wn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?wn.create(t,e.mainIndex):e}function kB(n,e,t){let i=b3(n.state.facet(v5).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:wn.cursor(i,i<t.from?1:-1)}const V2="";class Pxe{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(ps.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=V2}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let o=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==t)break;let a=ka.get(r),c=ka.get(s);(a&&c?a.breakAfter:(a?a.breakAfter:yS(r))||yS(s)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>o)&&this.lineBreak(),r=s}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(t))&&(o=a.index,s=a[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=s-1);i=o+s}}readNode(e){if(e.cmIgnore)return;let t=ka.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Uxe(e,i.node,i.offset)?t:0))}}function Uxe(n,e,t){for(;;){if(!e||t<n0(e))return!1;if(e==n)return!0;t=Wb(e)+1,e=e.parentNode}}class SN{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Kxe{constructor(e,t,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=o||s?[]:zxe(e),c=new Pxe(a,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=jxe(a,this.bounds.from)}else{let a=e.observer.selectionRange,c=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!IR(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),h=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!IR(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),m=e.viewport;if((wi.ios||wi.chrome)&&e.state.selection.main.empty&&c!=h&&(m.from>0||m.to<e.state.doc.length)){let y=Math.min(c,h),M=Math.max(c,h),x=m.from-y,T=m.to-M;(x==0||x==1||y==0)&&(T==0||T==-1||M==e.state.doc.length)&&(c=0,h=e.state.doc.length)}this.newSel=wn.single(h,c)}}}function wne(n,e){let t,{newSel:i}=e,r=n.state.selection.main,o=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,c=r.from,h=null;(o===8||wi.android&&e.text.length<a-s)&&(c=r.to,h="end");let m=Fxe(n.state.doc.sliceString(s,a,V2),e.text,c-s,h);m&&(wi.chrome&&o==13&&m.toB==m.from+2&&e.text.slice(m.from,m.toB)==V2+V2&&m.toB--,t={from:s+m.from,to:s+m.toA,insert:ms.of(e.text.slice(m.from,m.toB).split(V2))})}else i&&(!n.hasFocus&&n.state.facet(t1)||i.main.eq(r))&&(i=null);if(!t&&!i)return!1;if(!t&&e.typeOver&&!r.empty&&i&&i.main.empty?t={from:r.from,to:r.to,insert:n.state.doc.slice(r.from,r.to)}:(wi.mac||wi.android)&&t&&t.from==t.to&&t
Line truncated
|
||||
`&&n.lineWrapping&&(i&&(i=wn.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:ms.of([" "])}),t)return qU(n,t,i,o);if(i&&!i.main.eq(r)){let s=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(s=!0),a=n.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=Mne(n.state.facet(v5).map(c=>c(n)),i))),n.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function qU(n,e,t,i=-1){if(wi.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(wi.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&&Y_(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)&&Y_(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Y_(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=Lxe(n,e,t));return n.state.facet(Ane).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function Lxe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,h=c<0?o.from:o.to,m=b3(r.facet(v5).map(y=>y(n)),h,c);e.from==m&&(s=m)}if(s>-1)i={changes:e,selection:wn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",h=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let c=r.changes(e),h=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let m=n.state.sliceDoc(e.from,e.to),y,M=t&&Cne(n,t.main.head);if(M){let P=e.insert.length-(e.to-e.from);y={from:M.from,to:M.to-P}}else y=n.state.doc.lineAt(o.head);let x=o.to-e.to,T=o.to-o.from;i=r.changeByRange(P=>{if(P.from==o.from&&P.to==o.to)return{changes:c,range:h||P.map(c)};let F=P.to-x,j=F-m.length;if(P.to-P.from!=T||n.state.sliceDoc(j,F)!=m||P.to>=y.from&&P.from<=y.to)return{range:P};let q=r.changes({from:j,to:F,insert:e.insert}),V=P.to-o.to;return{changes:q,range:h?wn.range(Math.max(0,h.anchor+V),Math.max(0,h.head+V)):P.map(q)}})}else i={changes:c,selection:h&&r.selection.replaceRange(h)}}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 Fxe(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function zxe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new SN(t,i)),(r!=t||o!=i)&&e.push(new SN(r,o))),e}function jxe(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?wn.single(t+e,i+e):null}class Nxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,wi.safari&&e.contentDOM.addEventListener("input",()=>null),wi.gecko&&r2e(e.contentDOM.ownerDocument)}handleEvent(e){!Hxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Gxe(e),i=this.handlers,r=this.view.contentDOM;for(let o in t)if(o!="scroll"){let s=!t[o].handlers.length,a=i[o];a&&s!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||
Line truncated
|
||||
`))};if(h.from==this.from&&o<this.from?h.from=o:h.to==this.to&&o>this.to&&(h.to=o),h.from==h.to&&!h.insert.length){let m=wn.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));m.main.eq(r)||e.dispatch({selection:m,userEvent:"select"});return}if((wi.mac||wi.android)&&h.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:a,to:c,insert:ms.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let m=this.to-this.from+(h.to-h.from+h.insert.length);qU(e,h,wn.single(this.toEditorPos(i.selectionStart,m),this.toEditorPos(i.selectionEnd,m)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),h.from<h.to&&!h.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),h=this.toEditorPos(o.rangeEnd);if(c<h){let m=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(Or.mark({attributes:{style:m}}).range(c,h))}}}e.dispatch({effects:mne.of(Or.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=f4(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,h)=>{if(i)return;let m=h.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(h)){r=this.pendingContextChange=null,t+=m,this.to+=m;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=m,this.to+=m;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),h.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 Si{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 thi
Line truncated
|
||||
--\u2028\u2029\uFEFF-]`,$R),j2e={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 DB=null;function N2e(){var n;if(DB==null&&typeof document<"u"&&document.body){let e=document.body.style;DB=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return DB||!1}const gw=Bi.define({combine(n){let e=Dm(n,{render:null,specialChars:z2e,addSpecialChars:null});return(e.replaceTabs=!N2e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,$R)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,$R)),e}});function G2e(n={}){return[gw.of(n),W2e()]}let VN=null;function W2e(){return VN||(VN=xu.fromClass(class{constructor(n){this.view=n,this.decorations=Or.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(gw)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new F2e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=bd(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=Nx(s.text,a,i-s.from);return Or.replace({widget:new $2e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=Or.replace({widget:new Y2e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(gw);n.startState.facet(gw)!=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 Q2e="•";function q2e(n){return n>=32?Q2e:n==10?"":String.fromCharCode(9216+n)}class Y2e extends cv{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=q2e(this.code),i=e.state.phrase("Control character")+" "+(j2e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class $2e extends cv{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 V2e(){return Z2e}const H2e=Or.line({class:"cm-activeLine"}),Z2e=xu.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(H2e.range(r.from)),e=r.from)}return Or.set(t)}},{decorations:n=>n.decorations}),VR=2e3;function X2e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>VR||t.off>VR||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let h=n.doc.line(c);h.length<=a&&o.push(wn.range(h.from+s,h.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let h=n.doc.line(c),m=ER(h.text,s,n.tabSize,!0);if(m<0)o.push(wn.cursor(h.to));else{let y=ER(h.text,a,n.tabSize);o.push(wn.range(h.from+m,h.from+y))}}}return o}function J2e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function HN(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>VR?-1:r==i.length?J2e(n,e.clientX):Nx(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function e3e(n,e){let t=HN(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=HN(n,r);if(!a)return i;let c=X2e(n.state,t,a);return c.length?s?wn.create(c.concat(i.ranges)):wn.create(c):i}}:null}function t3e(n){let e=(t=>t.altKey&&t.button==0);return Si.mouseSelectionStyle.of((t,i)=>e(i)?e3e(t,i):null)}const n3e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},i3e={style:"cursor: crosshair"};function r3e(n={}){let[e,t]=n3e[n.key||"Alt"],i=xu.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,Si.contentAttributes.of(r=>{var o;ret
Line truncated
|
||||
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new lMe(this):new sMe(this)}getCursor(e,t=0,i){let r=e.doc?e:ps.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?M_(this,r,t,i):x_(this,r,t,i)}}class ere{constructor(e){this.spec=e}}function x_(n,e,t,i){return new Mx(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?oMe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function oMe(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(DS(r,t-o))!=ml.Word||e(PS(r,t-o))!=ml.Word)&&(e(PS(r,i-o))!=ml.Word||e(DS(r,i-o))!=ml.Word))}class sMe extends ere{constructor(e){super(e)}nextMatch(e,t,i){let r=x_(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=x_(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=x_(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=x_(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=x_(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function M_(n,e,t,i){return new Zie(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?aMe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function DS(n,e){return n.slice(CA(n,e,!1),e)}function PS(n,e){return n.slice(e,CA(n,e))}function aMe(n){return(e,t,i)=>!i[0].length||(n(DS(i.input,i.index))!=ml.Word||n(PS(i.input,i.index))!=ml.Word)&&(n(PS(i.input,i.index+i[0].length))!=ml.Word||n(DS(i.input,i.index+i[0].length))!=ml.Word)}class lMe extends ere{nextMatch(e,t,i){let r=M_(this.spec,e,i,e.doc.length).next();return r.done&&(r=M_(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=M_(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=M_(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=M_(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const _4=ro.define(),lK=ro.define(),Xy=Oc.define({create(n){return new YB(lD(n).create(),null)},update(n,e){for(let t of e.effects)t.is(_4)?n=new YB(t.value.create(),n.panel):t.is(lK)&&(n=new YB(n.query,t.value?uK:null));return n},provide:n=>v4.from(n,e=>e.panel)});class YB{constructor(e,t){this.query=e,this.panel=t}}const uMe=Or.mark({class:"cm-searchMatch"}),cMe=Or.mark({class:"cm-searchMatch cm-searchMatch-selected"}),AMe=xu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Xy))}update(n){let e=n.state.field(Xy);(e!=n.startState.field(Xy)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return Or.none;let{view:t}=this,i=new f1;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(h,m)=>{let y=t.state.selection.ranges.some(M=>M.from==h&&M.to==m);i.add(h,m,y?cMe:uMe)})}return i.finish()}},{decorations:n=>n.decorations});function M5(n){return e=>{let t=e.state.field(Xy,!1);return t&&t.query.spec.valid?n(e,t):ire(e)}}const US=M5((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=wn.single(i.from,i.to),o=n.state.facet(Wx);return n.dispatch({selection:r,effects:[cK(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),nre(n),!0}),KS=M5((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=wn.single(r.from,r.to),s=n.state.facet(Wx);return n.dispatch({selection:o,effects:[cK(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),nre(n),!0}),hMe=M5((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:wn.cre
Line truncated
|
||||
`)}var Pn={extraLines:2,tabSize:4},oi=function(Tn,dn,$n,Un){Un=Ot({},Pn,Un);var It=Tn.split(/\r\n?|\n|\f/),_e=Math.max(1,dn-Un.extraLines)-1,oe=Math.min(dn+Un.extraLines,It.length),ee=String(oe).length,ne=Dn(It,_e,dn,ee,Un),ue=Jt(It[dn-1].substring(0,$n-1),dn,ee,Un),be=it(" ",ue.length)+"^",Le=Dn(It,dn,oe,ee,Un);return[ne,be,Le].filter(Boolean).join(`
|
||||
`)};return oi})}),h=new Error().stack,m=(function(Te){var Se=Object.create(SyntaxError.prototype);return Object.assign(Se,Te,{name:"SyntaxError"}),Object.defineProperty(Se,"stack",{get:function(){return h?h.replace(/^(.+\n){1,3}/,String(Se)+`
|
||||
`):""}}),Se}),y=(function(Te,Se,We,at,it){throw m({message:at?Te+`
|
||||
`+c(Se,at,it):Te,rawMessage:Te,source:We,line:at,column:it})}),M={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Se){for(var We=arguments.length,at=Array(We>1?We-1:0),it=1;it<We;it++)at[it-1]=arguments[it];return"Unexpected token <"+Se+"> at "+at.filter(Boolean).join(":")}},x={unexpectedSymbol:function(Se){for(var We=arguments.length,at=Array(We>1?We-1:0),it=1;it<We;it++)at[it-1]=arguments[it];return"Unexpected symbol <"+Se+"> at "+at.filter(Boolean).join(":")}},T={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},P={"{":T.LEFT_BRACE,"}":T.RIGHT_BRACE,"[":T.LEFT_BRACKET,"]":T.RIGHT_BRACKET,":":T.COLON,",":T.COMMA},F={true:T.TRUE,false:T.FALSE,null:T.NULL},j={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},q={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},V={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function H(Te){return Te>="1"&&Te<="9"}function Q(Te){return Te>="0"&&Te<="9"}function Y(Te){return Q(Te)||Te>="a"&&Te<="f"||Te>="A"&&Te<="F"}function z(Te){return Te==="e"||Te==="E"}function se(Te,Se,We,at){var it=Te.charAt(Se);if(it==="\r")Se++,We++,at=1,Te.charAt(Se)===`
|
||||
`&&Se++;else if(it===`
|
||||
`)Se++,We++,at=1;else if(it===" "||it===" ")Se++,at++;else return null;return{index:Se,line:We,column:at}}function le(Te,Se,We,at){var it=Te.charAt(Se);return it in P?{type:P[it],line:We,column:at+1,index:Se+1,value:null}:null}function pe(Te,Se,We,at){for(var it in F)if(F.hasOwnProperty(it)&&Te.substr(Se,it.length)===it)return{type:F[it],line:We,column:at+it.length,index:Se+it.length,value:it};return null}function de(Te,Se,We,at){for(var it=Se,ft=j._START_;Se<Te.length;){var Dt=Te.charAt(Se);switch(ft){case j._START_:{if(Dt==='"')Se++,ft=j.START_QUOTE_OR_CHAR;else return null;break}case j.START_QUOTE_OR_CHAR:{if(Dt==="\\")Se++,ft=j.ESCAPE;else{if(Dt==='"')return Se++,{type:T.STRING,line:We,column:at+Se-it,index:Se,value:Te.slice(it,Se)};Se++}break}case j.ESCAPE:{if(Dt in q){if(Se++,Dt==="u")for(var Ot=0;Ot<4;Ot++){var Jt=Te.charAt(Se);if(Jt&&Y(Jt))Se++;else return null}ft=j.START_QUOTE_OR_CHAR}else return null;break}}}}function ve(Te,Se,We,at){var it=Se,ft=Se,Dt=V._START_;e:for(;Se<Te.length;){var Ot=Te.charAt(Se);switch(Dt){case V._START_:{if(Ot==="-")Dt=V.MINUS;else if(Ot==="0")ft=Se+1,Dt=V.ZERO;else if(H(Ot))ft=Se+1,Dt=V.DIGIT;else return null;break}case V.MINUS:{if(Ot==="0")ft=Se+1,Dt=V.ZERO;else if(H(Ot))ft=Se+1,Dt=V.DIGIT;else return null;break}case V.ZERO:{if(Ot===".")Dt=V.POINT;else if(z(Ot))Dt=V.EXP;else break e;break}case V.DIGIT:{if(Q(Ot))ft=Se+1;else if(Ot===".")Dt=V.POINT;else if(z(Ot))Dt=V.EXP;else break e;break}case V.POINT:{if(Q(Ot))ft=Se+1,Dt=V.DIGIT_FRACTION;else break e;break}case V.DIGIT_FRACTION:{if(Q(Ot))ft=Se+1;else if(z(Ot))Dt=V.EXP;else break e;break}case V.EXP:{if(Ot==="+"||Ot==="-")Dt=V.EXP_DIGIT_OR_SIGN;else if(Q(Ot))ft=Se+1,Dt=V.EXP_DIGIT_OR_SIGN;else break e;break}case V.EXP_DIGIT_OR_SIGN:{if(Q(Ot))ft=Se+1;else break e;break}}Se++}return ft>0?{type:T.NUMBER,line:We,column:at+ft-it,index:ft,value:Te.slice(it,ft)}:null}var Ee=function(Se,We){for(var at=1,it=1,ft=0,Dt=[];ft<Se.length;){var Ot=[Se,ft,at,it],Jt=se.apply(void 0,Ot);if(Jt){ft=Jt.index,at=Jt.line,it=Jt.column;continue}var Dn=le.apply(void 0,Ot)||pe.apply(void 0,Ot)||de.apply(void 0,Ot)||ve.apply(void 0,Ot);if(Dn){var Pn={type:Dn.type,value:Dn.value,loc:a(at,it,ft,Dn.line,Dn.column,Dn.index,We.source)};Dt.push(Pn),ft=Dn.index,at=Dn.line,it=Dn.column}else y(x.unexpectedSymbol(s(Se,ft,ft+1),We.source,at,it),Se,We.source,at,it)}return Dt},Re={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},je={_START_:0,KEY:1,COLON:2},Ie={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},qe={loc:!0,source:null};function tt(Te,Se,We){var at=Se.length>0?Se[Se.length-1].loc.end:{line:1,column:1};y(M.unexpectedEnd(),Te,We.source,at.line,at.column)}function At(Te){for(var Se=0,We=0;We<4;We++)Se=Se*16+parseInt(Te[We],16);return String.fromCharCode(Se)}var ke={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},we=['"',"\\","/"];function ze(Te){for(var Se="",We=0;We<Te.length;We++){var at=Te.charAt(We);if(at==="\\"){We++;var it=Te.charAt(We);if(it==="u")Se+=At(Te.substr(We+1,4)),We+=4;else if(we.indexOf(it)!==-1)Se+=it;else if(it in ke)Se+=ke[it];else break}else Se+=at}return Se}function Me(Te,Se,We,at){for(var it=void 0,ft={type:"Object",children:[]},Dt=Re._START_;We<Se.length;){var Ot=Se[We];switch(Dt){case Re._START_:{if(Ot.type===T.LEFT_BRACE)it=Ot,Dt=Re.OPEN_OBJECT,We++;else return null;break}case Re.OPEN_OBJECT:{if(Ot.type===T.RIGHT_BRACE)return at.loc&&(ft.loc=a(it.loc.start.line,it.loc.start.column,it.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,at.source)),{value:ft,index:We+1};var Jt=lt(Te,Se,We,at);ft.children.push(Jt.value),Dt=Re.PROPERTY,We=Jt.index;break}case Re.PROPERTY:{if(Ot.type===T.RIGHT_BRACE)return at.loc&&(ft.loc=a(it.loc.start.line,it.loc.start.column,it.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,at.source)),{value:ft,index:We+1};Ot.type===T.COMMA?(Dt=Re.COMMA,We++):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),at.source,Ot.loc.start.line,Ot.loc.start.column),Te,at.source,Ot.loc.start.line,Ot.loc.start.column);break}case Re.COMMA:{var Dn=lt(Te,Se,We,at);Dn?(We=Dn.index,ft.children.push(Dn.value),Dt=Re.PROPERTY):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),at.source,Ot.loc.start.line,Ot.loc.start.column),Te,at.source,Ot.loc.start.line,Ot.loc.start.column);break}}}tt(Te,Se,at)}function lt(Te,Se,We,at){for(var it=void 0,ft={type:"Property",key:null,value:null},Dt=je._START_;We<Se.length;){var Ot=Se[We];switch(Dt){case je._START_:{if(Ot.type===T.STRING){var Jt={type:"Identifier",value:ze(Te.slice(Ot.loc.start.offset+1,Ot.loc.end.offset-1)),raw:Ot.value};at.loc&&(Jt.loc=Ot.loc),it=Ot,ft.key=Jt,Dt=je.KEY,We++}else return null;break}case je.KEY:{Ot.type===T.COLON?(Dt=je.COLON,We++):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),at.source,Ot.loc.start.line,Ot.loc.start.column),Te,at.source,Ot.loc.start.line,Ot.loc.start.column);break}case je.COLON:{var Dn=Bt(Te,Se,We,at);return ft.value=Dn.value,at.loc&&(ft.loc=a(it.loc.start.line,it.loc.start.column,it.loc.start.offset,Dn.value.loc.end.line,Dn.value.loc.end.column,Dn.value.loc.end.offset,at.source)),{value:ft,index:Dn.index}}}}}function nt(Te,Se,We,at){for(var it=void 0,ft={type:"Array",children:[]},Dt=Ie._START_,Ot=void 0;We<Se.length;)switch(Ot=Se[We],Dt){case Ie._START_:{if(Ot.type===T.LEFT_BRACKET)it=Ot,Dt=Ie.OPEN_ARRAY,We++;else return null;break}case Ie.OPEN_ARRAY:{if(Ot.type===T.RIGHT_BRACKET)return at.loc&&(ft.loc=a(it.loc.start.line,it.loc.start.column,it.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,at.source)),{value:ft,index:We+1};var Jt=Bt(Te,Se,We,at);We=Jt.index,ft.children.push(Jt.value),Dt=Ie.VALUE;break}case Ie.VALUE:{if(Ot.type===T.RIGHT_BRACKET)return at.loc&&(ft.loc=a(it.loc.start.line,it.loc.start.column,it.loc.start.offset,Ot.loc.end.line,Ot.loc.end.column,Ot.loc.end.offset,at.source)),{value:ft,index:We+1};Ot.type===T.COMMA?(Dt=Ie.COMMA,We++):y(M.unexpectedToken(s(Te,Ot.loc.start.offset,Ot.loc.end.offset),at.source,Ot.loc.start.line,Ot.loc.start.column),Te,at.source,Ot.loc.start.line,Ot.loc.start.column);break}case Ie.COMMA:{var Dn=Bt(Te,Se,We,at);We=Dn.index,ft.children.push(Dn.value),Dt=Ie.VALUE;break}}tt(Te,Se,at)}function bt(Te,Se,We,at){var it=Se[We],ft=null;switch(it.type){case T.STRING:{ft=ze(Te.slice(it.loc.start.offset+1,it.loc.end.offset-1));break}case T.NUMBER:{ft=Number(it.value);break}case T.TRUE:{ft=!0;break}case T.FALSE:{ft=!1;break}case T.NULL:{ft=null;break}default:return null}var Dt={type:"Literal",value:ft,raw:it.value};return at.loc&&(Dt.loc=it.loc),{value:Dt,index:We+1}}function Bt(Te,Se,We,at){var it=Se[We],ft=bt.apply(void 0,arguments)||Me.apply(void 0,arguments)||nt.apply(void 0,arguments);if(ft)return ft;y(M.unexpectedToken(s(Te,it.loc.start.offset,it.loc.end.offset),at.source,it.loc.start.line,it.loc.start.column),Te,at.source,it.loc.start.line,it.loc.start.column)}var Ke=(function(Te,Se){Se=Object.assign({},qe,Se);var We=Ee(Te,Se);We.length===0&&tt(Te,We,Se);var at=Bt(Te,We,0,Se);if(at.index===We.length)return at.value;var it=We[at.index];y(M.unexpectedToken(s(Te,it.loc.start.offset,it.loc.end.offset),Se.source,it.loc.start.line,it.loc.start.column),Te,Se.source,it.loc.start.line,it.loc.start.column)});return Ke}))})(xw)),xw.exports}var Xwe=Zwe();const mK=eu(Xwe);function Ea(){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.
|
||||
`},ySe={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 vSe(n){let{announcements:e=ySe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=gSe}=n;const{announce:o,announcement:s}=fSe(),a=S5("DndLiveRegion"),[c,h]=St.useState(!1);if(St.useEffect(()=>{h(!0)},[]),pSe(St.useMemo(()=>({onDragStart(y){let{active:M}=y;o(e.onDragStart({active:M}))},onDragMove(y){let{active:M,over:x}=y;e.onDragMove&&o(e.onDragMove({active:M,over:x}))},onDragOver(y){let{active:M,over:x}=y;o(e.onDragOver({active:M,over:x}))},onDragEnd(y){let{active:M,over:x}=y;o(e.onDragEnd({active:M,over:x}))},onDragCancel(y){let{active:M,over:x}=y;o(e.onDragCancel({active:M,over:x}))}}),[o,e])),!c)return null;const m=On.createElement(On.Fragment,null,On.createElement(hSe,{id:i,value:r.draggable}),On.createElement(dSe,{id:a,announcement:s}));return t?Z2.createPortal(m,t):m}var hc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(hc||(hc={}));function WS(){}function bSe(n,e){return St.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function CSe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return St.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const lm=Object.freeze({x:0,y:0});function _Se(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function xSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function MSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function wSe(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function nW(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 SSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=nW(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const h=_Se(nW(c),r);o.push({id:a,data:{droppableContainer:s,value:h}})}}return o.sort(xSe)};function ESe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,h=n.width*n.height,m=s*a,y=m/(c+h-m);return Number(y.toFixed(4))}return 0}const OSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=ESe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort(MSe)};function BSe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Bre(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:lm}function ISe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const kSe=ISe(1);function TSe(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 RSe(n,e,t){const i=TSe(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),h=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),m=r?n.width/r:n.width,y=o?n.height/o:n.height;return{width:m,height:y,top:h,right:c+m,bottom:h+y,left:c}}const DSe={ignoreTransform:!1};function qx(n,e){e===void 0&&(e=DSe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:h,transformOrigin:m}=wd(n).getComputedStyle(n);h&&(t=RSe(t,h,m))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function iW(n){return qx(n,{ignoreTransform:!0})}function PSe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function USe(n,e){return e===void 0&&(e=wd(n).getComputedStyle(n)),e.position==="fixed"}function KSe(n,e){e===void 0&&(e=wd(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function _K(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(vK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!M5(r)||Sre(r)||t.includes(r))return t;const o=wd(n).getComputedStyle(r);return r!==n&&KS
Line truncated
|
||||
`},ySe={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 vSe(n){let{announcements:e=ySe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=gSe}=n;const{announce:o,announcement:s}=fSe(),a=E5("DndLiveRegion"),[c,h]=St.useState(!1);if(St.useEffect(()=>{h(!0)},[]),pSe(St.useMemo(()=>({onDragStart(y){let{active:M}=y;o(e.onDragStart({active:M}))},onDragMove(y){let{active:M,over:x}=y;e.onDragMove&&o(e.onDragMove({active:M,over:x}))},onDragOver(y){let{active:M,over:x}=y;o(e.onDragOver({active:M,over:x}))},onDragEnd(y){let{active:M,over:x}=y;o(e.onDragEnd({active:M,over:x}))},onDragCancel(y){let{active:M,over:x}=y;o(e.onDragCancel({active:M,over:x}))}}),[o,e])),!c)return null;const m=En.createElement(En.Fragment,null,En.createElement(hSe,{id:i,value:r.draggable}),En.createElement(dSe,{id:a,announcement:s}));return t?X2.createPortal(m,t):m}var wc;(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"})(wc||(wc={}));function QS(){}function bSe(n,e){return St.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function CSe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return St.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const Om=Object.freeze({x:0,y:0});function _Se(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function xSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function MSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function wSe(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function nW(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 SSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=nW(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const h=_Se(nW(c),r);o.push({id:a,data:{droppableContainer:s,value:h}})}}return o.sort(xSe)};function ESe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,h=n.width*n.height,m=s*a,y=m/(c+h-m);return Number(y.toFixed(4))}return 0}const OSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=ESe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort(MSe)};function BSe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Bre(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Om}function ISe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const kSe=ISe(1);function TSe(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 RSe(n,e,t){const i=TSe(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),h=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),m=r?n.width/r:n.width,y=o?n.height/o:n.height;return{width:m,height:y,top:h,right:c+m,bottom:h+y,left:c}}const DSe={ignoreTransform:!1};function Yx(n,e){e===void 0&&(e=DSe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:h,transformOrigin:m}=Id(n).getComputedStyle(n);h&&(t=RSe(t,h,m))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function iW(n){return Yx(n,{ignoreTransform:!0})}function PSe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function USe(n,e){return e===void 0&&(e=Id(n).getComputedStyle(n)),e.position==="fixed"}function KSe(n,e){e===void 0&&(e=Id(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function _K(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(vK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!w5(r)||Sre(r)||t.includes(r))return t;const o=Id(n).getComputedStyle(r);return r!==n&&KS
Line truncated
|
||||
* tabbable 6.2.0
|
||||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||||
*/var Yre=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],YS=Yre.join(","),$re=typeof Element>"u",qb=$re?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$S=!$re&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},VS=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),o=r===""||r==="true",s=o||t&&e&&n(e.parentNode);return s},JEe=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},Vre=function(e,t,i){if(VS(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(YS));return t&&qb.call(e,YS)&&r.unshift(e),r=r.filter(i),r},Hre=function n(e,t,i){for(var r=[],o=Array.from(e);o.length;){var s=o.shift();if(!VS(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,h=n(c,!0,i);i.flatten?r.push.apply(r,h):r.push({scopeParent:s,candidates:h})}else{var m=qb.call(s,YS);m&&i.filter(s)&&(t||!e.includes(s))&&r.push(s);var y=s.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(s),M=!VS(y,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(y&&M){var x=n(y===!0?s.children:y.children,!0,i);i.flatten?r.push.apply(r,x):r.push({scopeParent:s,candidates:x})}else o.unshift.apply(o,s.children)}}return r},Zre=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ry=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||JEe(e))&&!Zre(e)?0:e.tabIndex},e6e=function(e,t){var i=Ry(e);return i<0&&t&&!Zre(e)?0:i},t6e=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Xre=function(e){return e.tagName==="INPUT"},n6e=function(e){return Xre(e)&&e.type==="hidden"},i6e=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},r6e=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},o6e=function(e){if(!e.name)return!0;var t=e.form||$S(e),i=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(e.name));else try{r=i(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=r6e(r,e.form);return!o||o===e},s6e=function(e){return Xre(e)&&e.type==="radio"},a6e=function(e){return s6e(e)&&!o6e(e)},l6e=function(e){var t,i=e&&$S(e),r=(t=i)===null||t===void 0?void 0:t.host,o=!1;if(i&&i!==e){var s,a,c;for(o=!!((s=r)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!o&&r;){var h,m,y;i=$S(r),r=(h=i)===null||h===void 0?void 0:h.host,o=!!((m=r)!==null&&m!==void 0&&(y=m.ownerDocument)!==null&&y!==void 0&&y.contains(r))}}return o},mW=function(e){var t=e.getBoundingClientRect(),i=t.width,r=t.height;return i===0&&r===0},u6e=function(e,t){var i=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=qb.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(qb.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var a=e;e;){var c=e.parentElement,h=$S(e);if(c&&!c.shadowRoot&&r(c)===!0)return mW(e);e.assignedSlot?e=e.assignedSlot:!c&&h!==e.ownerDocument?e=h.host:e=c}e=a}if(l6e(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return mW(e);return!1},c6e=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var r=t.children.item(i);if(r.tagName==="LEGEND")return qb.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},HS=function(e,t){return!(t.disabled||VS(t)||n6e(t)||u6e(t,e)||i6e(t)||c6e(t))},gD=function(e,t){return!(a6e(t)||Ry(t)<0||!HS(e,t))},A6e=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},h6e=function n(e){var t=[],i=[];return e.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,c=e6e(a,s),h=s?n(r.candidates):a;c===0?s?t.push.apply(t,h):t.push(a):i.push({documentOrder:o,tabIndex:c,item:r,isScope:s,content:h})}),i.sort(t6e).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.pushLine truncated
|
||||
*/var Yre=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],$S=Yre.join(","),$re=typeof Element>"u",$b=$re?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,VS=!$re&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},HS=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),o=r===""||r==="true",s=o||t&&e&&n(e.parentNode);return s},JEe=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},Vre=function(e,t,i){if(HS(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll($S));return t&&$b.call(e,$S)&&r.unshift(e),r=r.filter(i),r},Hre=function n(e,t,i){for(var r=[],o=Array.from(e);o.length;){var s=o.shift();if(!HS(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,h=n(c,!0,i);i.flatten?r.push.apply(r,h):r.push({scopeParent:s,candidates:h})}else{var m=$b.call(s,$S);m&&i.filter(s)&&(t||!e.includes(s))&&r.push(s);var y=s.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(s),M=!HS(y,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(y&&M){var x=n(y===!0?s.children:y.children,!0,i);i.flatten?r.push.apply(r,x):r.push({scopeParent:s,candidates:x})}else o.unshift.apply(o,s.children)}}return r},Zre=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ty=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||JEe(e))&&!Zre(e)?0:e.tabIndex},e6e=function(e,t){var i=Ty(e);return i<0&&t&&!Zre(e)?0:i},t6e=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Xre=function(e){return e.tagName==="INPUT"},n6e=function(e){return Xre(e)&&e.type==="hidden"},i6e=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},r6e=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},o6e=function(e){if(!e.name)return!0;var t=e.form||VS(e),i=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(e.name));else try{r=i(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=r6e(r,e.form);return!o||o===e},s6e=function(e){return Xre(e)&&e.type==="radio"},a6e=function(e){return s6e(e)&&!o6e(e)},l6e=function(e){var t,i=e&&VS(e),r=(t=i)===null||t===void 0?void 0:t.host,o=!1;if(i&&i!==e){var s,a,c;for(o=!!((s=r)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!o&&r;){var h,m,y;i=VS(r),r=(h=i)===null||h===void 0?void 0:h.host,o=!!((m=r)!==null&&m!==void 0&&(y=m.ownerDocument)!==null&&y!==void 0&&y.contains(r))}}return o},mW=function(e){var t=e.getBoundingClientRect(),i=t.width,r=t.height;return i===0&&r===0},u6e=function(e,t){var i=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=$b.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if($b.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var a=e;e;){var c=e.parentElement,h=VS(e);if(c&&!c.shadowRoot&&r(c)===!0)return mW(e);e.assignedSlot?e=e.assignedSlot:!c&&h!==e.ownerDocument?e=h.host:e=c}e=a}if(l6e(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return mW(e);return!1},c6e=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var r=t.children.item(i);if(r.tagName==="LEGEND")return $b.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},ZS=function(e,t){return!(t.disabled||HS(t)||n6e(t)||u6e(t,e)||i6e(t)||c6e(t))},gD=function(e,t){return!(a6e(t)||Ty(t)<0||!ZS(e,t))},A6e=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},h6e=function n(e){var t=[],i=[];return e.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,c=e6e(a,s),h=s?n(r.candidates):a;c===0?s?t.push.apply(t,h):t.push(a):i.push({documentOrder:o,tabIndex:c,item:r,isScope:s,content:h})}),i.sort(t6e).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.pushLine truncated
|
||||
* focus-trap 7.6.5
|
||||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*/function yD(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=Array(e);t<e;t++)i[t]=n[t];return i}function p6e(n){if(Array.isArray(n))return yD(n)}function m6e(n,e,t){return(e=C6e(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function g6e(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function y6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gW(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 yW(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gW(Object(t),!0).forEach(function(i){m6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):gW(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function v6e(n){return p6e(n)||g6e(n)||_6e(n)||y6e()}function b6e(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function C6e(n){var e=b6e(n,"string");return typeof e=="symbol"?e:e+""}function _6e(n,e){if(n){if(typeof n=="string")return yD(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)?yD(n,e):void 0}}var vW={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)}},x6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},M6e=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},w3=function(e){return e?.key==="Tab"||e?.keyCode===9},w6e=function(e){return w3(e)&&!e.shiftKey},S6e=function(e){return w3(e)&&e.shiftKey},bW=function(e){return setTimeout(e,0)},M2=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},UM=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},E6e=[],O6e=function(e,t){var i=t?.document||document,r=t?.trapStack||E6e,o=yW({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:w6e,isKeyBackward:S6e},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(Ee,De,je){return Ee&&Ee[De]!==void 0?Ee[De]:o[je||De]},h=function(Ee,De){var je=typeof De?.composedPath=="function"?De.composedPath():void 0;return s.containerGroups.findIndex(function(Ie){var Qe=Ie.container,et=Ie.tabbableNodes;return Qe.contains(Ee)||je?.includes(Qe)||et.find(function(dt){return dt===Ee})})},m=function(Ee){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=De.hasFallback,Ie=je===void 0?!1:je,Qe=De.params,et=Qe===void 0?[]:Qe,dt=o[Ee];if(typeof dt=="function"&&(dt=dt.apply(void 0,v6e(et))),dt===!0&&(dt=void 0),!dt){if(dt===void 0||dt===!1)return dt;throw new Error("`".concat(Ee,"` was specified but was not a node, or did not return a node"))}var ke=dt;if(typeof dt=="string"){try{ke=i.querySelector(dt)}catch(we){throw new Error("`".concat(Ee,'` appears to be an invalid selector; error="').concat(we.message,'"'))}if(!ke&&!Ie)throw new Error("`".concat(Ee,"` as selector refers to no known node"))}return ke},y=function(){var Ee=m("initialFocus",{hasFallback:!0});if(Ee===!1)return!1;if(Ee===void 0||Ee&&!Mw(Ee,o.tabbableOptions))if(h(i.activeElement)>=0)Ee=i.activeElement;else{var De=s.tabbableGroups[0],je=De&&De.firstTabbableNode;Ee=je||m("fallbackFocus")}else Ee===null&&(Ee=m("fallbackFocus"));if(!Ee)throw new Error("Your focus-trap needs to have at least one focusable element");return Ee},M=function(){if(s.containerGroups=s.containers.map(function(Ee){var De=Jre(Ee,o.tabbableOptions),je=eoe(Ee,o.tabbableOptions),Ie=De.length>0?De[0]:void 0,Qe=De.length>0?De[De.length-1]:void 0,et=je.find(function(we){return rb(we)}),dt=je.slice().reverse().find(function(we){return rb(we)}),ke=!!De.find(function(we){return Ry(we)>0});return{container:Ee,tabbableNodes:De,focusableNodes:je,posTabIndexesFound:ke,firstTabbableNode:Ie,lastTabbableNode:Qe,firstDomTabbableNode:et,lastDomTabbableNode:dt,nextTabbableNode:function(ze){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,At=De.indexOf(ze);return At<0?xe?je.slice(je.indexOf(ze)+1).find(function(it){return rb(it)}):je.slice(0,je.indexOf(ze)).reverse().find(function(it){return rb(it)}):De[At+(xe?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(Ee){return Ee.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all
Line truncated
|
||||
`,h="/",m="*",y="",M="comment",x="declaration";A8=function(P,F){if(typeof P!="string")throw new TypeError("First argument must be a string");if(!P)return[];F=F||{};var j=1,q=1;function V(Ee){var De=Ee.match(e);De&&(j+=De.length);var je=Ee.lastIndexOf(c);q=~je?Ee.length-je:q+Ee.length}function H(){var Ee={line:j,column:q};return function(De){return De.position=new G(Ee),se(),De}}function G(Ee){this.start=Ee,this.end={line:j,column:q},this.source=F.source}G.prototype.content=P;function Y(Ee){var De=new Error(F.source+":"+j+":"+q+": "+Ee);if(De.reason=Ee,De.filename=F.source,De.line=j,De.column=q,De.source=P,!F.silent)throw De}function z(Ee){var De=Ee.exec(P);if(De){var je=De[0];return V(je),P=P.slice(je.length),De}}function se(){z(t)}function le(Ee){var De;for(Ee=Ee||[];De=me();)De!==!1&&Ee.push(De);return Ee}function me(){var Ee=H();if(!(h!=P.charAt(0)||m!=P.charAt(1))){for(var De=2;y!=P.charAt(De)&&(m!=P.charAt(De)||h!=P.charAt(De+1));)++De;if(De+=2,y===P.charAt(De-1))return Y("End of comment missing");var je=P.slice(2,De-2);return q+=2,V(je),P=P.slice(De),q+=2,Ee({type:M,comment:je})}}function de(){var Ee=H(),De=z(i);if(De){if(me(),!z(r))return Y("property missing ':'");var je=z(o),Ie=Ee({type:x,property:k(De[0].replace(n,y)),value:je?k(je[0].replace(n,y)):y});return z(s),Ie}}function be(){var Ee=[];le(Ee);for(var De;De=de();)De!==!1&&(Ee.push(De),le(Ee));return Ee}return se(),be()};function k(P){return P?P.replace(a,y):y}return A8}var BW;function nOe(){if(BW)return QC;BW=1;var n=QC&&QC.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(QC,"__esModule",{value:!0}),QC.default=t;var e=n(tOe());function t(i,r){var o=null;if(!i||typeof i!="string")return o;var s=(0,e.default)(i),a=typeof r=="function";return s.forEach(function(c){if(c.type==="declaration"){var h=c.property,m=c.value;a?r(h,m,c):m&&(o=o||{},o[h]=m)}}),o}return QC}var w2={},IW;function iOe(){if(IW)return w2;IW=1,Object.defineProperty(w2,"__esModule",{value:!0}),w2.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(h){return!h||t.test(h)||n.test(h)},s=function(h,m){return m.toUpperCase()},a=function(h,m){return"".concat(m,"-")},c=function(h,m){return m===void 0&&(m={}),o(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(r,a):h=h.replace(i,a),h.replace(e,s))};return w2.camelCase=c,w2}var S2,kW;function rOe(){if(kW)return S2;kW=1;var n=S2&&S2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(nOe()),t=iOe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,S2=i,S2}var oOe=rOe();const sOe=Xl(oOe),loe=uoe("end"),BK=uoe("start");function uoe(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 aOe(n){const e=BK(n),t=loe(n);if(e&&t)return{start:e,end:t}}function S3(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?TW(n.position):"start"in n||"end"in n?TW(n):"line"in n||"column"in n?_D(n):""}function _D(n){return RW(n&&n.line)+":"+RW(n&&n.column)}function TW(n){return _D(n&&n.start)+"-"+_D(n&&n.end)}function RW(n){return n&&typeof n=="number"?n:1}class YA extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=S3(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}YA.prototype.file="";YA.prototype.name="";YA.prototype.reason="";YA.prototype.message="";YA.prototype.stack="";YA.prototype.column=void 0;YA.prototype.line=void 0;YA.prototype.ancestors=void 0;YA.prototype.cause=void 0;YA.prototype.fatal=void 0;YA.prototype.place=void 0;YA.prototype.ruleId=void 0;YA.prototype.source=void 0;const IK={}.hasOwnProperty,lOe=new Map,uOe=/[A-Z]/g,cOe=new Set(["table","tbody","thead","tfoot","tr"]),AOe=new Set(["td","th"]),coe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hOe(n,e){if(!e||e.Fragment===void 0)throw new
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gW(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 yW(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gW(Object(t),!0).forEach(function(i){m6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):gW(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function v6e(n){return p6e(n)||g6e(n)||_6e(n)||y6e()}function b6e(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function C6e(n){var e=b6e(n,"string");return typeof e=="symbol"?e:e+""}function _6e(n,e){if(n){if(typeof n=="string")return yD(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)?yD(n,e):void 0}}var vW={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)}},x6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},M6e=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},S3=function(e){return e?.key==="Tab"||e?.keyCode===9},w6e=function(e){return S3(e)&&!e.shiftKey},S6e=function(e){return S3(e)&&e.shiftKey},bW=function(e){return setTimeout(e,0)},w2=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},KM=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},E6e=[],O6e=function(e,t){var i=t?.document||document,r=t?.trapStack||E6e,o=yW({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:w6e,isKeyBackward:S6e},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(Ee,Re,je){return Ee&&Ee[Re]!==void 0?Ee[Re]:o[je||Re]},h=function(Ee,Re){var je=typeof Re?.composedPath=="function"?Re.composedPath():void 0;return s.containerGroups.findIndex(function(Ie){var qe=Ie.container,tt=Ie.tabbableNodes;return qe.contains(Ee)||je?.includes(qe)||tt.find(function(At){return At===Ee})})},m=function(Ee){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=Re.hasFallback,Ie=je===void 0?!1:je,qe=Re.params,tt=qe===void 0?[]:qe,At=o[Ee];if(typeof At=="function"&&(At=At.apply(void 0,v6e(tt))),At===!0&&(At=void 0),!At){if(At===void 0||At===!1)return At;throw new Error("`".concat(Ee,"` was specified but was not a node, or did not return a node"))}var ke=At;if(typeof At=="string"){try{ke=i.querySelector(At)}catch(we){throw new Error("`".concat(Ee,'` appears to be an invalid selector; error="').concat(we.message,'"'))}if(!ke&&!Ie)throw new Error("`".concat(Ee,"` as selector refers to no known node"))}return ke},y=function(){var Ee=m("initialFocus",{hasFallback:!0});if(Ee===!1)return!1;if(Ee===void 0||Ee&&!ww(Ee,o.tabbableOptions))if(h(i.activeElement)>=0)Ee=i.activeElement;else{var Re=s.tabbableGroups[0],je=Re&&Re.firstTabbableNode;Ee=je||m("fallbackFocus")}else Ee===null&&(Ee=m("fallbackFocus"));if(!Ee)throw new Error("Your focus-trap needs to have at least one focusable element");return Ee},M=function(){if(s.containerGroups=s.containers.map(function(Ee){var Re=Jre(Ee,o.tabbableOptions),je=eoe(Ee,o.tabbableOptions),Ie=Re.length>0?Re[0]:void 0,qe=Re.length>0?Re[Re.length-1]:void 0,tt=je.find(function(we){return sb(we)}),At=je.slice().reverse().find(function(we){return sb(we)}),ke=!!Re.find(function(we){return Ty(we)>0});return{container:Ee,tabbableNodes:Re,focusableNodes:je,posTabIndexesFound:ke,firstTabbableNode:Ie,lastTabbableNode:qe,firstDomTabbableNode:tt,lastDomTabbableNode:At,nextTabbableNode:function(ze){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,lt=Re.indexOf(ze);return lt<0?Me?je.slice(je.indexOf(ze)+1).find(function(nt){return sb(nt)}):je.slice(0,je.indexOf(ze)).reverse().find(function(nt){return sb(nt)}):Re[lt+(Me?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(Ee){return Ee.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all
Line truncated
|
||||
`,h="/",m="*",y="",M="comment",x="declaration";A8=function(P,F){if(typeof P!="string")throw new TypeError("First argument must be a string");if(!P)return[];F=F||{};var j=1,q=1;function V(Ee){var Re=Ee.match(e);Re&&(j+=Re.length);var je=Ee.lastIndexOf(c);q=~je?Ee.length-je:q+Ee.length}function H(){var Ee={line:j,column:q};return function(Re){return Re.position=new Q(Ee),se(),Re}}function Q(Ee){this.start=Ee,this.end={line:j,column:q},this.source=F.source}Q.prototype.content=P;function Y(Ee){var Re=new Error(F.source+":"+j+":"+q+": "+Ee);if(Re.reason=Ee,Re.filename=F.source,Re.line=j,Re.column=q,Re.source=P,!F.silent)throw Re}function z(Ee){var Re=Ee.exec(P);if(Re){var je=Re[0];return V(je),P=P.slice(je.length),Re}}function se(){z(t)}function le(Ee){var Re;for(Ee=Ee||[];Re=pe();)Re!==!1&&Ee.push(Re);return Ee}function pe(){var Ee=H();if(!(h!=P.charAt(0)||m!=P.charAt(1))){for(var Re=2;y!=P.charAt(Re)&&(m!=P.charAt(Re)||h!=P.charAt(Re+1));)++Re;if(Re+=2,y===P.charAt(Re-1))return Y("End of comment missing");var je=P.slice(2,Re-2);return q+=2,V(je),P=P.slice(Re),q+=2,Ee({type:M,comment:je})}}function de(){var Ee=H(),Re=z(i);if(Re){if(pe(),!z(r))return Y("property missing ':'");var je=z(o),Ie=Ee({type:x,property:T(Re[0].replace(n,y)),value:je?T(je[0].replace(n,y)):y});return z(s),Ie}}function ve(){var Ee=[];le(Ee);for(var Re;Re=de();)Re!==!1&&(Ee.push(Re),le(Ee));return Ee}return se(),ve()};function T(P){return P?P.replace(a,y):y}return A8}var BW;function nOe(){if(BW)return qC;BW=1;var n=qC&&qC.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(qC,"__esModule",{value:!0}),qC.default=t;var e=n(tOe());function t(i,r){var o=null;if(!i||typeof i!="string")return o;var s=(0,e.default)(i),a=typeof r=="function";return s.forEach(function(c){if(c.type==="declaration"){var h=c.property,m=c.value;a?r(h,m,c):m&&(o=o||{},o[h]=m)}}),o}return qC}var S2={},IW;function iOe(){if(IW)return S2;IW=1,Object.defineProperty(S2,"__esModule",{value:!0}),S2.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(h){return!h||t.test(h)||n.test(h)},s=function(h,m){return m.toUpperCase()},a=function(h,m){return"".concat(m,"-")},c=function(h,m){return m===void 0&&(m={}),o(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(r,a):h=h.replace(i,a),h.replace(e,s))};return S2.camelCase=c,S2}var E2,kW;function rOe(){if(kW)return E2;kW=1;var n=E2&&E2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(nOe()),t=iOe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,E2=i,E2}var oOe=rOe();const sOe=eu(oOe),loe=uoe("end"),BK=uoe("start");function uoe(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 aOe(n){const e=BK(n),t=loe(n);if(e&&t)return{start:e,end:t}}function E3(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?TW(n.position):"start"in n||"end"in n?TW(n):"line"in n||"column"in n?_D(n):""}function _D(n){return RW(n&&n.line)+":"+RW(n&&n.column)}function TW(n){return _D(n&&n.start)+"-"+_D(n&&n.end)}function RW(n){return n&&typeof n=="number"?n:1}class HA extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=E3(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}HA.prototype.file="";HA.prototype.name="";HA.prototype.reason="";HA.prototype.message="";HA.prototype.stack="";HA.prototype.column=void 0;HA.prototype.line=void 0;HA.prototype.ancestors=void 0;HA.prototype.cause=void 0;HA.prototype.fatal=void 0;HA.prototype.place=void 0;HA.prototype.ruleId=void 0;HA.prototype.source=void 0;const IK={}.hasOwnProperty,lOe=new Map,uOe=/[A-Z]/g,cOe=new Set(["table","tbody","thead","tfoot","tr"]),AOe=new Set(["td","th"]),coe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hOe(n,e){if(!e||e.Fragment===void 0)throw new
Line truncated
|
||||
`;break}case-3:{s=`\r
|
||||
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function M8e(n){const i={constructs:kOe([b8e,...(n||{}).extensions||[]]),content:r(FOe),defined:[],document:r(jOe),flow:r(o8e),lazy:{},string:r(l8e),text:r(u8e)};return i;function r(o){return s;function s(a){return C8e(i,o,a)}}}function w8e(n){for(;!voe(n););return n}const WW=/[\0\t\n\r]/g;function S8e(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const c=[];let h,m,y,M,x;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),y=0,e="",t&&(o.charCodeAt(0)===65279&&y++,t=void 0);y<o.length;){if(WW.lastIndex=y,h=WW.exec(o),M=h&&h.index!==void 0?h.index:o.length,x=o.charCodeAt(M),!h){e=o.slice(y);break}if(x===10&&y===M&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),y<M&&(c.push(o.slice(y,M)),n+=M-y),x){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}y=M+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const E8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function O8e(n){return n.replace(E8e,B8e)}function B8e(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return poe(t.slice(o?2:1),o?16:10)}return RK(t)||n}const woe={}.hasOwnProperty;function I8e(n,e,t){return typeof e!="string"&&(t=e,e=void 0),k8e(t)(w8e(M8e(t).document().write(S8e()(n,e,!0))))}function k8e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Ln),autolinkProtocol:le,autolinkEmail:le,atxHeading:o(Dt),blockQuote:o(Se),characterEscape:le,characterReference:le,codeFenced:o(Ne),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ne,s),codeText:o(ut,s),codeTextData:le,data:le,codeFlowValue:le,definition:o(rt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(pt),hardBreakEscape:o(Ot),hardBreakTrailing:o(Ot),htmlFlow:o(Jt,s),htmlFlowData:le,htmlText:o(Jt,s),htmlTextData:le,image:o(Tn),label:s,link:o(Ln),listItem:o(wn),listItemValue:M,listOrdered:o(ii,y),listUnordered:o(ii),paragraph:o(Rn),reference:xe,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Dt),strong:o(gn),thematicBreak:o(Dn)},exit:{atxHeading:c(),atxHeadingSequence:G,autolink:c(),autolinkEmail:Te,autolinkProtocol:Ke,blockQuote:c(),characterEscapeValue:me,characterReferenceMarkerHexadecimal:it,characterReferenceMarkerNumeric:it,characterReferenceValue:bt,characterReference:Bt,codeFenced:c(F),codeFencedFence:P,codeFencedFenceInfo:x,codeFencedFenceMeta:k,codeFlowValue:me,codeIndented:c(j),codeText:c(je),codeTextData:me,data:me,definition:c(),definitionDestinationString:H,definitionLabelString:q,definitionTitleString:V,emphasis:c(),hardBreakEscape:c(be),hardBreakTrailing:c(be),htmlFlow:c(Ee),htmlFlowData:me,htmlText:c(De),htmlTextData:me,image:c(Qe),label:dt,labelText:et,lineEnding:de,link:c(Ie),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:At,resourceDestinationString:ke,resourceTitleString:we,resource:ze,setextHeading:c(se),setextHeadingLineSequence:z,setextHeadingText:Y,strong:c(),thematicBreak:c()}};Soe(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(Tt){let _e={type:"root",children:[]};const oe={stack:[_e],tokenStack:[],config:e,enter:a,exit:h,buffer:s,resume:m,data:t},ee=[];let ne=-1;for(;++ne<Tt.length;)if(Tt[ne][1].type==="listOrdered"||Tt[ne][1].type==="listUnordered")if(Tt[ne][0]==="enter")ee.push(ne);else{const ue=ee.pop();ne=r(Tt,ue,ne)}for(ne=-1;++ne<Tt.length;){const ue=e[Tt[ne][0]];woe.call(ue,Tt[ne][1].type)&&ue[Tt[ne][1].type].call(Object.assign({sliceSerialize:Tt[ne][2].sliceSerialize},oe),Tt[ne][1])}if(oe.tokenStack.length>0){const ue=oe.tokenStack[oe.tokenStack.length-1];(ue[1]||QW).call(oe,void 0,ue[0])}for(_e.position={start:My(Tt.length>0?Tt[0][1].start:{line:1,column:1,offset:0}),end:My(Tt.length>0?Tt[Tt.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne<e.transforms.length;)_e=e.transforms[ne](_e)||_e;return _e}function r(Tt,_e,oe){let ee=_e-1,ne=-1,ue=!1,ye,Ue,Ve,lt;for(;++ee<=oe;){const ge=Tt[ee];switch(ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ge[0]==="enter"?ne++:ne--,lt=void 0;break}case"lineEndingBlank":{ge[0]==="enter"&&(ye&&!lt&&!ne&&!Ve&&(Ve=ee),lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:lt=void 0}if(!ne&&ge[0]==="enter"&&ge[1].type==="listItemPrefix"||ne===-1&&ge[0]==="exit"&&(ge[1].type==="listUnordered"||ge[1].type==="listOrdered")){if(ye){let Be=ee;for(Ue=void 0;Be--;){const v=Tt[Be];if(v[1].type==="lineEnding"||v[1].type==="lineEndingBlank"){if(v[0]==="exit")continue;Ue&&(Tt[Ue][1].type="lineEndingBlank",ue=!0),v[1].type="lineEnding",Ue=Be}else if(!(v[1].type==="linePrefix"||v[1].type==="blockQuotePrLine truncated
|
||||
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function M8e(n){const i={constructs:kOe([b8e,...(n||{}).extensions||[]]),content:r(FOe),defined:[],document:r(jOe),flow:r(o8e),lazy:{},string:r(l8e),text:r(u8e)};return i;function r(o){return s;function s(a){return C8e(i,o,a)}}}function w8e(n){for(;!voe(n););return n}const WW=/[\0\t\n\r]/g;function S8e(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const c=[];let h,m,y,M,x;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),y=0,e="",t&&(o.charCodeAt(0)===65279&&y++,t=void 0);y<o.length;){if(WW.lastIndex=y,h=WW.exec(o),M=h&&h.index!==void 0?h.index:o.length,x=o.charCodeAt(M),!h){e=o.slice(y);break}if(x===10&&y===M&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),y<M&&(c.push(o.slice(y,M)),n+=M-y),x){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}y=M+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const E8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function O8e(n){return n.replace(E8e,B8e)}function B8e(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return poe(t.slice(o?2:1),o?16:10)}return RK(t)||n}const woe={}.hasOwnProperty;function I8e(n,e,t){return typeof e!="string"&&(t=e,e=void 0),k8e(t)(w8e(M8e(t).document().write(S8e()(n,e,!0))))}function k8e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pn),autolinkProtocol:le,autolinkEmail:le,atxHeading:o(Dt),blockQuote:o(Se),characterEscape:le,characterReference:le,codeFenced:o(We),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(We,s),codeText:o(at,s),codeTextData:le,data:le,codeFlowValue:le,definition:o(it),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ft),hardBreakEscape:o(Ot),hardBreakTrailing:o(Ot),htmlFlow:o(Jt,s),htmlFlowData:le,htmlText:o(Jt,s),htmlTextData:le,image:o(Dn),label:s,link:o(Pn),listItem:o(In),listItemValue:M,listOrdered:o(oi,y),listUnordered:o(oi),paragraph:o(Tn),reference:Me,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Dt),strong:o(dn),thematicBreak:o(Un)},exit:{atxHeading:c(),atxHeadingSequence:Q,autolink:c(),autolinkEmail:Te,autolinkProtocol:Ke,blockQuote:c(),characterEscapeValue:pe,characterReferenceMarkerHexadecimal:nt,characterReferenceMarkerNumeric:nt,characterReferenceValue:bt,characterReference:Bt,codeFenced:c(F),codeFencedFence:P,codeFencedFenceInfo:x,codeFencedFenceMeta:T,codeFlowValue:pe,codeIndented:c(j),codeText:c(je),codeTextData:pe,data:pe,definition:c(),definitionDestinationString:H,definitionLabelString:q,definitionTitleString:V,emphasis:c(),hardBreakEscape:c(ve),hardBreakTrailing:c(ve),htmlFlow:c(Ee),htmlFlowData:pe,htmlText:c(Re),htmlTextData:pe,image:c(qe),label:At,labelText:tt,lineEnding:de,link:c(Ie),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:lt,resourceDestinationString:ke,resourceTitleString:we,resource:ze,setextHeading:c(se),setextHeadingLineSequence:z,setextHeadingText:Y,strong:c(),thematicBreak:c()}};Soe(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(It){let _e={type:"root",children:[]};const oe={stack:[_e],tokenStack:[],config:e,enter:a,exit:h,buffer:s,resume:m,data:t},ee=[];let ne=-1;for(;++ne<It.length;)if(It[ne][1].type==="listOrdered"||It[ne][1].type==="listUnordered")if(It[ne][0]==="enter")ee.push(ne);else{const ue=ee.pop();ne=r(It,ue,ne)}for(ne=-1;++ne<It.length;){const ue=e[It[ne][0]];woe.call(ue,It[ne][1].type)&&ue[It[ne][1].type].call(Object.assign({sliceSerialize:It[ne][2].sliceSerialize},oe),It[ne][1])}if(oe.tokenStack.length>0){const ue=oe.tokenStack[oe.tokenStack.length-1];(ue[1]||QW).call(oe,void 0,ue[0])}for(_e.position={start:xy(It.length>0?It[0][1].start:{line:1,column:1,offset:0}),end:xy(It.length>0?It[It.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne<e.transforms.length;)_e=e.transforms[ne](_e)||_e;return _e}function r(It,_e,oe){let ee=_e-1,ne=-1,ue=!1,be,Le,Ve,rt;for(;++ee<=oe;){const ye=It[ee];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?ne++:ne--,rt=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(be&&!rt&&!ne&&!Ve&&(Ve=ee),rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:rt=void 0}if(!ne&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||ne===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(be){let Be=ee;for(Le=void 0;Be--;){const v=It[Be];if(v[1].type==="lineEnding"||v[1].type==="lineEndingBlank"){if(v[0]==="exit")continue;Le&&(It[Le][1].type="lineEndingBlank",ue=!0),v[1].type="lineEnding",Le=Be}else if(!(v[1].type==="linePrefix"||v[1].type==="blockQuotePrLine truncated
|
||||
`}]}function U8e(n,e){const t=e.value?e.value+`
|
||||
`:"",i={};e.lang&&(i.className=["language-"+e.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(r.data={meta:e.meta}),n.patch(e,r),r=n.applyData(e,r),r={type:"element",tagName:"pre",properties:{},children:[r]},n.patch(e,r),r}function K8e(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function L8e(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function F8e(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=$x(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,c);const h={type:"element",tagName:"sup",properties:{},children:[c]};return n.patch(e,h),n.applyData(e,h)}function z8e(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 j8e(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function Eoe(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function N8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Eoe(n,e);const r={src:$x(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function G8e(n,e){const t={src:$x(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 W8e(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 Q8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Eoe(n,e);const r={href:$x(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function q8e(n,e){const t={href:$x(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 Y8e(n,e,t){const i=n.all(e),r=t?$8e(t):Ooe(e),o={},s=[];if(typeof e.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const m=i[a];(r||a!==0||m.type!=="element"||m.tagName!=="p")&&s.push({type:"text",value:`
|
||||
`:"",i={};e.lang&&(i.className=["language-"+e.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(r.data={meta:e.meta}),n.patch(e,r),r=n.applyData(e,r),r={type:"element",tagName:"pre",properties:{},children:[r]},n.patch(e,r),r}function K8e(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function L8e(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function F8e(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=Vx(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,c);const h={type:"element",tagName:"sup",properties:{},children:[c]};return n.patch(e,h),n.applyData(e,h)}function z8e(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 j8e(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function Eoe(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function N8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Eoe(n,e);const r={src:Vx(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function G8e(n,e){const t={src:Vx(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 W8e(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 Q8e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Eoe(n,e);const r={href:Vx(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function q8e(n,e){const t={href:Vx(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 Y8e(n,e,t){const i=n.all(e),r=t?$8e(t):Ooe(e),o={},s=[];if(typeof e.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const m=i[a];(r||a!==0||m.type!=="element"||m.tagName!=="p")&&s.push({type:"text",value:`
|
||||
`}),m.type==="element"&&m.tagName==="p"&&!r?s.push(...m.children):s.push(m)}const c=i[i.length-1];c&&(r||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
||||
`});const h={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,h),n.applyData(e,h)}function $8e(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=Ooe(t[i])}return e}function Ooe(n){const e=n.spread;return e??n.children.length>1}function V8e(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function H8e(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Z8e(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function X8e(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function J8e(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=BK(e.children[1]),c=loe(e.children[e.children.length-1]);a&&c&&(s.position={start:a,end:c}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function e7e(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let c=-1;const h=[];for(;++c<a;){const y=e.children[c],M={},x=s?s[c]:void 0;x&&(M.align=x);let k={type:"element",tagName:o,properties:M,children:[]};y&&(k.children=n.all(y),n.patch(y,k),k=n.applyData(y,k)),h.push(k)}const m={type:"element",tagName:"tr",properties:{},children:n.wrap(h,!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 qW=9,YW=32;function n7e(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push($W(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push($W(e.slice(r),r>0,!1)),o.join("")}function $W(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===qW||o===YW;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===qW||o===YW;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function i7e(n,e){const t={type:"text",value:n7e(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 o7e={blockquote:D8e,break:P8e,code:U8e,delete:K8e,emphasis:L8e,footnoteReference:F8e,heading:z8e,html:j8e,imageReference:N8e,image:G8e,inlineCode:W8e,linkReference:Q8e,link:q8e,listItem:Y8e,list:V8e,paragraph:H8e,root:Z8e,strong:X8e,table:J8e,tableCell:t7e,tableRow:e7e,text:i7e,thematicBreak:r7e,toml:KM,yaml:KM,definition:KM,footnoteDefinition:KM};function KM(){}const Boe=-1,w6=0,O3=1,ZS=2,UK=3,KK=4,LK=5,FK=6,Ioe=7,koe=8,VW=typeof self=="object"?self:globalThis,s7e=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case w6:case Boe:return t(s,r);case O3:{const a=t([],r);for(const c of s)a.push(i(c));return a}case ZS:{const a=t({},r);for(const[c,h]of s)a[i(c)]=i(h);return a}case UK:return t(new Date(s),r);case KK:{const{source:a,flags:c}=s;return t(new RegExp(a,c),r)}case LK:{const a=t(new Map,r);for(const[c,h]of s)a.set(i(c),i(h));return a}case FK:{const a=t(new Set,r);for(const c of s)a.add(i(c));return a}case Ioe:{const{name:a,message:c}=s;return t(new VW[a](c),r)}case koe:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new VW[o](s),r)};return i},HW=n=>s7e(new Map,n)(0),qC="",{toString:a7e}={},{keys:l7e}=Object,O2=n=>{const e=typeof n;if(e!=="object"||!n)return[w6,e];const t=a7e.call(n).slice(8,-1);switch(t){case"Array":return[O3,qC];case"Object":return[ZS,qC];case"Date":return[UK,qC];case"RegExp":return[KK,qC];case"Map":return[LK,qC];case"Set":return[FK,qC];case"DataView":return[O3,t]}return t.includes("Array")?[O3,t]:t.includes("Error")?[Ioe,t]:[ZS,t]},LM=([n,e])=>n===w6&&(e==="function"||e==="symbol"),u7e=(n,e,t,i)=>{const r=(s,a)=>{const c=i.push(s)-1;return t.set(a,c),c},o=s=>{if(t.has(s))return t.get(s);let[a,c]=O2(s);switch(a){case w6:{let m=s;switch(c){case"bigint":a=koe,m=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);m=null;break;case"undefined":return r([Boe],s)}return r([a,m],s)}case O3:{if(c){let M=s;return c==="DataView"?M=new Uint
Line truncated
|
||||
`});const h={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,h),n.applyData(e,h)}function $8e(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=Ooe(t[i])}return e}function Ooe(n){const e=n.spread;return e??n.children.length>1}function V8e(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function H8e(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Z8e(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function X8e(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function J8e(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=BK(e.children[1]),c=loe(e.children[e.children.length-1]);a&&c&&(s.position={start:a,end:c}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function e7e(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let c=-1;const h=[];for(;++c<a;){const y=e.children[c],M={},x=s?s[c]:void 0;x&&(M.align=x);let T={type:"element",tagName:o,properties:M,children:[]};y&&(T.children=n.all(y),n.patch(y,T),T=n.applyData(y,T)),h.push(T)}const m={type:"element",tagName:"tr",properties:{},children:n.wrap(h,!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 qW=9,YW=32;function n7e(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push($W(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push($W(e.slice(r),r>0,!1)),o.join("")}function $W(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===qW||o===YW;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===qW||o===YW;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function i7e(n,e){const t={type:"text",value:n7e(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 o7e={blockquote:D8e,break:P8e,code:U8e,delete:K8e,emphasis:L8e,footnoteReference:F8e,heading:z8e,html:j8e,imageReference:N8e,image:G8e,inlineCode:W8e,linkReference:Q8e,link:q8e,listItem:Y8e,list:V8e,paragraph:H8e,root:Z8e,strong:X8e,table:J8e,tableCell:t7e,tableRow:e7e,text:i7e,thematicBreak:r7e,toml:LM,yaml:LM,definition:LM,footnoteDefinition:LM};function LM(){}const Boe=-1,S6=0,B3=1,XS=2,UK=3,KK=4,LK=5,FK=6,Ioe=7,koe=8,VW=typeof self=="object"?self:globalThis,s7e=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case S6:case Boe:return t(s,r);case B3:{const a=t([],r);for(const c of s)a.push(i(c));return a}case XS:{const a=t({},r);for(const[c,h]of s)a[i(c)]=i(h);return a}case UK:return t(new Date(s),r);case KK:{const{source:a,flags:c}=s;return t(new RegExp(a,c),r)}case LK:{const a=t(new Map,r);for(const[c,h]of s)a.set(i(c),i(h));return a}case FK:{const a=t(new Set,r);for(const c of s)a.add(i(c));return a}case Ioe:{const{name:a,message:c}=s;return t(new VW[a](c),r)}case koe:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new VW[o](s),r)};return i},HW=n=>s7e(new Map,n)(0),YC="",{toString:a7e}={},{keys:l7e}=Object,B2=n=>{const e=typeof n;if(e!=="object"||!n)return[S6,e];const t=a7e.call(n).slice(8,-1);switch(t){case"Array":return[B3,YC];case"Object":return[XS,YC];case"Date":return[UK,YC];case"RegExp":return[KK,YC];case"Map":return[LK,YC];case"Set":return[FK,YC];case"DataView":return[B3,t]}return t.includes("Array")?[B3,t]:t.includes("Error")?[Ioe,t]:[XS,t]},FM=([n,e])=>n===S6&&(e==="function"||e==="symbol"),u7e=(n,e,t,i)=>{const r=(s,a)=>{const c=i.push(s)-1;return t.set(a,c),c},o=s=>{if(t.has(s))return t.get(s);let[a,c]=B2(s);switch(a){case S6:{let m=s;switch(c){case"bigint":a=koe,m=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);m=null;break;case"undefined":return r([Boe],s)}return r([a,m],s)}case B3:{if(c){let M=s;return c==="DataView"?M=new Uint
Line truncated
|
||||
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:`
|
||||
`}]}}const Toe=(function(n){if(n==null)return m7e;if(typeof n=="function")return S6(n);if(typeof n=="object")return Array.isArray(n)?d7e(n):f7e(n);if(typeof n=="string")return p7e(n);throw new Error("Expected function, string, or object as test")});function d7e(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=Toe(n[t]);return S6(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function f7e(n){const e=n;return S6(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function p7e(n){return S6(e);function e(t){return t&&t.type===n}}function S6(n){return e;function e(t,i,r){return!!(g7e(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function m7e(){return!0}function g7e(n){return n!==null&&typeof n=="object"&&"type"in n}const Roe=[],y7e=!0,XW=!1,v7e="skip";function b7e(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=Toe(r),s=i?-1:1;a(n,void 0,[])();function a(c,h,m){const y=c&&typeof c=="object"?c:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(M,"name",{value:"node ("+(c.type+(x?"<"+x+">":""))+")"})}return M;function M(){let x=Roe,k,P,F;if((!e||o(c,h,m[m.length-1]||void 0))&&(x=C7e(t(c,m)),x[0]===XW))return x;if("children"in c&&c.children){const j=c;if(j.children&&x[0]!==v7e)for(P=(i?j.children.length:-1)+s,F=m.concat(j);P>-1&&P<j.children.length;){const q=j.children[P];if(k=a(q,P,F)(),k[0]===XW)return k;P=typeof k[1]=="number"?k[1]:P+s}}return x}}}function C7e(n){return Array.isArray(n)?n:typeof n=="number"?[y7e,n]:n==null?Roe:[n]}function Doe(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),b7e(n,o,a,r);function a(c,h){const m=h[h.length-1],y=m?m.children.indexOf(c):void 0;return s(c,y,m)}}const SD={}.hasOwnProperty,_7e={};function x7e(n,e){const t=e||_7e,i=new Map,r=new Map,o=new Map,s={...o7e,...t.handlers},a={all:h,applyData:w7e,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:c,options:t,patch:M7e,wrap:E7e};return Doe(n,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:r,M=String(m.identifier).toUpperCase();y.has(M)||y.set(M,m)}}),a;function c(m,y){const M=m.type,x=a.handlers[M];if(SD.call(a.handlers,M)&&x)return x(a,m,y);if(a.options.passThrough&&a.options.passThrough.includes(M)){if("children"in m){const{children:P,...F}=m,j=XS(F);return j.children=a.all(m),j}return XS(m)}return(a.options.unknownHandler||S7e)(a,m,y)}function h(m){const y=[];if("children"in m){const M=m.children;let x=-1;for(;++x<M.length;){const k=a.one(M[x],m);if(k){if(x&&M[x-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=JW(k.value)),!Array.isArray(k)&&k.type==="element")){const P=k.children[0];P&&P.type==="text"&&(P.value=JW(P.value))}Array.isArray(k)?y.push(...k):y.push(k)}}}return y}}function M7e(n,e){n.position&&(e.position=aOe(n))}function w7e(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,XS(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function S7e(n,e){const t=e.data||{},i="value"in e&&!(SD.call(t,"hProperties")||SD.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 E7e(n,e){const t=[];let i=-1;for(e&&t.push({type:"text",value:`
|
||||
`}]}}const Toe=(function(n){if(n==null)return m7e;if(typeof n=="function")return E6(n);if(typeof n=="object")return Array.isArray(n)?d7e(n):f7e(n);if(typeof n=="string")return p7e(n);throw new Error("Expected function, string, or object as test")});function d7e(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=Toe(n[t]);return E6(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function f7e(n){const e=n;return E6(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function p7e(n){return E6(e);function e(t){return t&&t.type===n}}function E6(n){return e;function e(t,i,r){return!!(g7e(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function m7e(){return!0}function g7e(n){return n!==null&&typeof n=="object"&&"type"in n}const Roe=[],y7e=!0,XW=!1,v7e="skip";function b7e(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=Toe(r),s=i?-1:1;a(n,void 0,[])();function a(c,h,m){const y=c&&typeof c=="object"?c:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(M,"name",{value:"node ("+(c.type+(x?"<"+x+">":""))+")"})}return M;function M(){let x=Roe,T,P,F;if((!e||o(c,h,m[m.length-1]||void 0))&&(x=C7e(t(c,m)),x[0]===XW))return x;if("children"in c&&c.children){const j=c;if(j.children&&x[0]!==v7e)for(P=(i?j.children.length:-1)+s,F=m.concat(j);P>-1&&P<j.children.length;){const q=j.children[P];if(T=a(q,P,F)(),T[0]===XW)return T;P=typeof T[1]=="number"?T[1]:P+s}}return x}}}function C7e(n){return Array.isArray(n)?n:typeof n=="number"?[y7e,n]:n==null?Roe:[n]}function Doe(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),b7e(n,o,a,r);function a(c,h){const m=h[h.length-1],y=m?m.children.indexOf(c):void 0;return s(c,y,m)}}const SD={}.hasOwnProperty,_7e={};function x7e(n,e){const t=e||_7e,i=new Map,r=new Map,o=new Map,s={...o7e,...t.handlers},a={all:h,applyData:w7e,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:c,options:t,patch:M7e,wrap:E7e};return Doe(n,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:r,M=String(m.identifier).toUpperCase();y.has(M)||y.set(M,m)}}),a;function c(m,y){const M=m.type,x=a.handlers[M];if(SD.call(a.handlers,M)&&x)return x(a,m,y);if(a.options.passThrough&&a.options.passThrough.includes(M)){if("children"in m){const{children:P,...F}=m,j=JS(F);return j.children=a.all(m),j}return JS(m)}return(a.options.unknownHandler||S7e)(a,m,y)}function h(m){const y=[];if("children"in m){const M=m.children;let x=-1;for(;++x<M.length;){const T=a.one(M[x],m);if(T){if(x&&M[x-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=JW(T.value)),!Array.isArray(T)&&T.type==="element")){const P=T.children[0];P&&P.type==="text"&&(P.value=JW(P.value))}Array.isArray(T)?y.push(...T):y.push(T)}}}return y}}function M7e(n,e){n.position&&(e.position=aOe(n))}function w7e(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,JS(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function S7e(n,e){const t=e.data||{},i="value"in e&&!(SD.call(t,"hProperties")||SD.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 E7e(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 JW(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function eQ(n,e){const t=x7e(n,e),i=t.one(n,void 0),r=h7e(t),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
|
||||
`},r),o}function O7e(n,e){return n&&"run"in n?async function(t,i){const r=eQ(t,{file:i,...e});await n.run(r,i)}:function(t,i){return eQ(t,{file:i,...n||e})}}function tQ(n){if(n)throw n}var p8,nQ;function B7e(){if(nQ)return p8;nQ=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},o=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var m=n.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var M;for(M in h);return typeof M>"u"||n.call(h,M)},s=function(h,m){t&&m.name==="__proto__"?t(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},a=function(h,m){if(m==="__proto__")if(n.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return p8=function c(){var h,m,y,M,x,k,P=arguments[0],F=1,j=arguments.length,q=!1;for(typeof P=="boolean"&&(q=P,P=arguments[1]||{},F=2),(P==null||typeof P!="object"&&typeof P!="function")&&(P={});F<j;++F)if(h=arguments[F],h!=null)for(m in h)y=a(P,m),M=a(h,m),P!==M&&(q&&M&&(o(M)||(x=r(M)))?(x?(x=!1,k=y&&r(y)?y:[]):k=y&&o(y)?y:{},s(P,{name:m,newValue:c(q,k,M)})):typeof M<"u"&&s(P,{name:m,newValue:M}));return P},p8}var I7e=B7e();const m8=Xl(I7e);function ED(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 k7e(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(c,...h){const m=n[++o];let y=-1;if(c){s(c);return}for(;++y<r.length;)(h[y]===null||h[y]===void 0)&&(h[y]=r[y]);r=h,m?T7e(m,a)(...h):s(null,...h)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function T7e(n,e){let t;return i;function i(...s){const a=n.length>s.length;let c;a&&s.push(r);try{c=n.apply(this,s)}catch(h){const m=h;if(a&&t)throw m;return r(m)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,r):c instanceof Error?r(c):o(c))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const cg={basename:R7e,dirname:D7e,extname:P7e,join:U7e,sep:"/"};function R7e(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');O5(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function D7e(n){if(O5(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 P7e(n){O5(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function U7e(...n){let e=-1,t;for(;++e<n.length;)O5(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":K7e(t)}function K7e(n){O5(n);const e=n.codePointAt(0)===47;let t=L7e(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function L7e(n,e){let t="",i=0,r=-1,o=0,s=-1,a,c;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function O5(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const F7e={cwd:z7e};function z7e(){return"/"}function OD(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function j7e(n){if(typeof n=="string")n=new URL(n);else if(!OD(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 N7e(n)}function N7e(nLine truncated
|
||||
`},r),o}function O7e(n,e){return n&&"run"in n?async function(t,i){const r=eQ(t,{file:i,...e});await n.run(r,i)}:function(t,i){return eQ(t,{file:i,...n||e})}}function tQ(n){if(n)throw n}var p8,nQ;function B7e(){if(nQ)return p8;nQ=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},o=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var m=n.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var M;for(M in h);return typeof M>"u"||n.call(h,M)},s=function(h,m){t&&m.name==="__proto__"?t(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},a=function(h,m){if(m==="__proto__")if(n.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return p8=function c(){var h,m,y,M,x,T,P=arguments[0],F=1,j=arguments.length,q=!1;for(typeof P=="boolean"&&(q=P,P=arguments[1]||{},F=2),(P==null||typeof P!="object"&&typeof P!="function")&&(P={});F<j;++F)if(h=arguments[F],h!=null)for(m in h)y=a(P,m),M=a(h,m),P!==M&&(q&&M&&(o(M)||(x=r(M)))?(x?(x=!1,T=y&&r(y)?y:[]):T=y&&o(y)?y:{},s(P,{name:m,newValue:c(q,T,M)})):typeof M<"u"&&s(P,{name:m,newValue:M}));return P},p8}var I7e=B7e();const m8=eu(I7e);function ED(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 k7e(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(c,...h){const m=n[++o];let y=-1;if(c){s(c);return}for(;++y<r.length;)(h[y]===null||h[y]===void 0)&&(h[y]=r[y]);r=h,m?T7e(m,a)(...h):s(null,...h)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function T7e(n,e){let t;return i;function i(...s){const a=n.length>s.length;let c;a&&s.push(r);try{c=n.apply(this,s)}catch(h){const m=h;if(a&&t)throw m;return r(m)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,r):c instanceof Error?r(c):o(c))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const Sg={basename:R7e,dirname:D7e,extname:P7e,join:U7e,sep:"/"};function R7e(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');B5(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function D7e(n){if(B5(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 P7e(n){B5(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function U7e(...n){let e=-1,t;for(;++e<n.length;)B5(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":K7e(t)}function K7e(n){B5(n);const e=n.codePointAt(0)===47;let t=L7e(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function L7e(n,e){let t="",i=0,r=-1,o=0,s=-1,a,c;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function B5(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const F7e={cwd:z7e};function z7e(){return"/"}function OD(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function j7e(n){if(typeof n=="string")n=new URL(n);else if(!OD(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 N7e(n)}function N7e(nLine truncated
|
||||
* @license React
|
||||
* react-is.production.min.js
|
||||
*
|
||||
@@ -916,17 +973,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var uQ;function sIe(){if(uQ)return Hs;uQ=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),k;k=Symbol.for("react.module.reference");function P(F){if(typeof F=="object"&&F!==null){var j=F.$$typeof;switch(j){case n:switch(F=F.type,F){case t:case r:case i:case h:case m:return F;default:switch(F=F&&F.$$typeof,F){case a:case s:case c:case M:case y:case o:return F;default:return j}}case e:return j}}}return Hs.ContextConsumer=s,Hs.ContextProvider=o,Hs.Element=n,Hs.ForwardRef=c,Hs.Fragment=t,Hs.Lazy=M,Hs.Memo=y,Hs.Portal=e,Hs.Profiler=r,Hs.StrictMode=i,Hs.Suspense=h,Hs.SuspenseList=m,Hs.isAsyncMode=function(){return!1},Hs.isConcurrentMode=function(){return!1},Hs.isContextConsumer=function(F){return P(F)===s},Hs.isContextProvider=function(F){return P(F)===o},Hs.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===n},Hs.isForwardRef=function(F){return P(F)===c},Hs.isFragment=function(F){return P(F)===t},Hs.isLazy=function(F){return P(F)===M},Hs.isMemo=function(F){return P(F)===y},Hs.isPortal=function(F){return P(F)===e},Hs.isProfiler=function(F){return P(F)===r},Hs.isStrictMode=function(F){return P(F)===i},Hs.isSuspense=function(F){return P(F)===h},Hs.isSuspenseList=function(F){return P(F)===m},Hs.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===t||F===r||F===i||F===h||F===m||F===x||typeof F=="object"&&F!==null&&(F.$$typeof===M||F.$$typeof===y||F.$$typeof===o||F.$$typeof===s||F.$$typeof===c||F.$$typeof===k||F.getModuleId!==void 0)},Hs.typeOf=P,Hs}var cQ;function aIe(){return cQ||(cQ=1,x8.exports=sIe()),x8.exports}aIe();const AQ=n=>typeof n=="object"&&n!=null&&n.nodeType===1,hQ=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",jM=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return hQ(t.overflowY,e)||hQ(t.overflowX,e)||(i=>{const r=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},NM=(n,e,t,i,r,o,s,a)=>o<n&&s>e||o>n&&s<e?0:o<=n&&a<=t||s>=e&&a>=t?o-n-i:s>e&&a<t||o<n&&a>t?s-e+r:0,lIe=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},uIe=(n,e)=>{var t,i,r,o;if(typeof document>"u")return[];const{inline:s,boundary:a,skipOverflowHiddenElements:c}=e,h=typeof a=="function"?a:Ee=>Ee!==a;if(!AQ(n))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,y=[];let M=n;for(;AQ(M)&&h(M);){if(M=lIe(M),M===m){y.push(M);break}M!=null&&M===document.body&&jM(M)&&!jM(document.documentElement)||M!=null&&jM(M,c)&&y.push(M)}const x=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,k=(o=(r=window.visualViewport)==null?void 0:r.height)!=null?o:innerHeight,{scrollX:P,scrollY:F}=window,{height:j,width:q,top:V,right:H,bottom:G,left:Y}=n.getBoundingClientRect(),{top:z,right:se,left:le}=(Ee=>{const De=window.getComputedStyle(Ee);return{top:parseFloat(De.scrollMarginTop)||0,right:parseFloat(De.scrollMarginRight)||0,bottom:parseFloat(De.scrollMarginBottom)||0,left:parseFloat(De.scrollMarginLeft)||0}})(n);let me=V-z,de=s==="center"?Y+q/2-le+se:s==="end"?H+se:Y-le;const be=[];for(let Ee=0;Ee<y.length;Ee++){const De=y[Ee],{height:je,width:Ie,top:Qe,right:et,bottom:dt,left:ke}=De.getBoundingClientRect();if(V>=0&&Y>=0&&G<=k&&H<=x&&(De===m&&!jM(De)||V>=Qe&&G<=dt&&Y>=ke&&H<=et))return be;const we=getComputedStyle(De),ze=parseInt(we.borderLeftWidth,10),xe=parseInt(we.borderTopWidth,10),At=parseInt(we.borderRightWidth,10),it=parseInt(we.borderBottomWidth,10);let bt=0,Bt=0;const Ke="offsetWidth"in De?De.offsetWidth-De.clientWidth-ze-At:0,Te="offsetHeight"in De?De.offsetHeight-De.clientHeight-xe-it:0,Se="offsetWidth"in De?De.offsetWidth===0?0:Ie/De.offsetWidth:0,Ne="offsetHeight"in De?De.offsetHeight===0?0:je/De.offsetHeight:0;if(m===De)bt=NM(F,F+k,k,xe,it,F+me,F+me+j,j),Bt=s==="start"?de:s==="center"?de-x/2:s==="end"?de-x:NM(P,P+x,x,ze,At,P+de,P+de+q,q),bt=Math.max(0,bt+F),Bt=Math.max(0,Bt+P);else{bt=NM(Qe,dt,je,xe,it+Te,me,me+j,j),Bt=s==="start"?de-ke-ze:s==="center"?de-(ke+Ie/2)+Ke/2:s==="end"?de-et+At+Ke:NM(ke,et,Ie,ze,At+Ke,de,de+q,q);const{scrollLeft:ut,scrollTop:rt}=De;bt=Ne===0?0:Math.max(0,Math.min(rt+bt/Ne,De.scrollHeight-je/Ne+Te)),Bt=Se===0?0:Math.max(0,Math.min(ut+Bt/Se,De.scrollWidth-Ie/Se+Ke)),me+=rt-bt,de+=ut-Bt}be.push({el:De,top:bt,left:Bt})}return be};var Sx=function(){return Sx=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var o in t)ObjectLine truncated
|
||||
*/var uQ;function sIe(){if(uQ)return $s;uQ=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),T;T=Symbol.for("react.module.reference");function P(F){if(typeof F=="object"&&F!==null){var j=F.$$typeof;switch(j){case n:switch(F=F.type,F){case t:case r:case i:case h:case m:return F;default:switch(F=F&&F.$$typeof,F){case a:case s:case c:case M:case y:case o:return F;default:return j}}case e:return j}}}return $s.ContextConsumer=s,$s.ContextProvider=o,$s.Element=n,$s.ForwardRef=c,$s.Fragment=t,$s.Lazy=M,$s.Memo=y,$s.Portal=e,$s.Profiler=r,$s.StrictMode=i,$s.Suspense=h,$s.SuspenseList=m,$s.isAsyncMode=function(){return!1},$s.isConcurrentMode=function(){return!1},$s.isContextConsumer=function(F){return P(F)===s},$s.isContextProvider=function(F){return P(F)===o},$s.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===n},$s.isForwardRef=function(F){return P(F)===c},$s.isFragment=function(F){return P(F)===t},$s.isLazy=function(F){return P(F)===M},$s.isMemo=function(F){return P(F)===y},$s.isPortal=function(F){return P(F)===e},$s.isProfiler=function(F){return P(F)===r},$s.isStrictMode=function(F){return P(F)===i},$s.isSuspense=function(F){return P(F)===h},$s.isSuspenseList=function(F){return P(F)===m},$s.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===t||F===r||F===i||F===h||F===m||F===x||typeof F=="object"&&F!==null&&(F.$$typeof===M||F.$$typeof===y||F.$$typeof===o||F.$$typeof===s||F.$$typeof===c||F.$$typeof===T||F.getModuleId!==void 0)},$s.typeOf=P,$s}var cQ;function aIe(){return cQ||(cQ=1,x8.exports=sIe()),x8.exports}aIe();const AQ=n=>typeof n=="object"&&n!=null&&n.nodeType===1,hQ=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",NM=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return hQ(t.overflowY,e)||hQ(t.overflowX,e)||(i=>{const r=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},GM=(n,e,t,i,r,o,s,a)=>o<n&&s>e||o>n&&s<e?0:o<=n&&a<=t||s>=e&&a>=t?o-n-i:s>e&&a<t||o<n&&a>t?s-e+r:0,lIe=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},uIe=(n,e)=>{var t,i,r,o;if(typeof document>"u")return[];const{inline:s,boundary:a,skipOverflowHiddenElements:c}=e,h=typeof a=="function"?a:Ee=>Ee!==a;if(!AQ(n))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,y=[];let M=n;for(;AQ(M)&&h(M);){if(M=lIe(M),M===m){y.push(M);break}M!=null&&M===document.body&&NM(M)&&!NM(document.documentElement)||M!=null&&NM(M,c)&&y.push(M)}const x=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,T=(o=(r=window.visualViewport)==null?void 0:r.height)!=null?o:innerHeight,{scrollX:P,scrollY:F}=window,{height:j,width:q,top:V,right:H,bottom:Q,left:Y}=n.getBoundingClientRect(),{top:z,right:se,left:le}=(Ee=>{const Re=window.getComputedStyle(Ee);return{top:parseFloat(Re.scrollMarginTop)||0,right:parseFloat(Re.scrollMarginRight)||0,bottom:parseFloat(Re.scrollMarginBottom)||0,left:parseFloat(Re.scrollMarginLeft)||0}})(n);let pe=V-z,de=s==="center"?Y+q/2-le+se:s==="end"?H+se:Y-le;const ve=[];for(let Ee=0;Ee<y.length;Ee++){const Re=y[Ee],{height:je,width:Ie,top:qe,right:tt,bottom:At,left:ke}=Re.getBoundingClientRect();if(V>=0&&Y>=0&&Q<=T&&H<=x&&(Re===m&&!NM(Re)||V>=qe&&Q<=At&&Y>=ke&&H<=tt))return ve;const we=getComputedStyle(Re),ze=parseInt(we.borderLeftWidth,10),Me=parseInt(we.borderTopWidth,10),lt=parseInt(we.borderRightWidth,10),nt=parseInt(we.borderBottomWidth,10);let bt=0,Bt=0;const Ke="offsetWidth"in Re?Re.offsetWidth-Re.clientWidth-ze-lt:0,Te="offsetHeight"in Re?Re.offsetHeight-Re.clientHeight-Me-nt:0,Se="offsetWidth"in Re?Re.offsetWidth===0?0:Ie/Re.offsetWidth:0,We="offsetHeight"in Re?Re.offsetHeight===0?0:je/Re.offsetHeight:0;if(m===Re)bt=GM(F,F+T,T,Me,nt,F+pe,F+pe+j,j),Bt=s==="start"?de:s==="center"?de-x/2:s==="end"?de-x:GM(P,P+x,x,ze,lt,P+de,P+de+q,q),bt=Math.max(0,bt+F),Bt=Math.max(0,Bt+P);else{bt=GM(qe,At,je,Me,nt+Te,pe,pe+j,j),Bt=s==="start"?de-ke-ze:s==="center"?de-(ke+Ie/2)+Ke/2:s==="end"?de-tt+lt+Ke:GM(ke,tt,Ie,ze,lt+Ke,de,de+q,q);const{scrollLeft:at,scrollTop:it}=Re;bt=We===0?0:Math.max(0,Math.min(it+bt/We,Re.scrollHeight-je/We+Te)),Bt=Se===0?0:Math.max(0,Math.min(at+Bt/Se,Re.scrollWidth-Ie/Se+Ke)),pe+=it-bt,de+=at-Bt}ve.push({el:Re,top:bt,left:Bt})}return ve};var Ex=function(){return Ex=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var o in t)ObjectLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fke(){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 pke=T6(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,c=a===void 0?!1:a;k6(this,n),al(this,"expanded",void 0),al(this,"allowMultipleExpanded",void 0),al(this,"allowZeroExpanded",void 0),al(this,"toggleExpanded",function(h){if(t.isItemDisabled(h))return t;var m=t.isItemExpanded(h);return m?t.augment({expanded:t.expanded.filter(function(y){return y!==h})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(lke(t.expanded),[h]):[h]})}),al(this,"isItemDisabled",function(h){var m=t.isItemExpanded(h),y=t.expanded.length===1;return!!(m&&!t.allowZeroExpanded&&y)}),al(this,"isItemExpanded",function(h){return t.expanded.indexOf(h)!==-1}),al(this,"getPanelAttributes",function(h,m){var y=m??t.isItemExpanded(h);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!y:void 0,"aria-labelledby":t.getButtonId(h),id:t.getPanelId(h),hidden:y?void 0:!0}}),al(this,"getHeadingAttributes",function(){return{role:"heading"}}),al(this,"getButtonAttributes",function(h,m){var y=m??t.isItemExpanded(h),M=t.isItemDisabled(h);return{id:t.getButtonId(h),"aria-disabled":M,"aria-expanded":y,"aria-controls":t.getPanelId(h),role:"button",tabIndex:0}}),al(this,"getPanelId",function(h){return"accordion__panel-".concat(h)}),al(this,"getButtonId",function(h){return"accordion__heading-".concat(h)}),al(this,"augment",function(h){return new n(RD({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},h))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=c}),ose=St.createContext(null),sse=(function(n){iL(t,n);var e=rL(t);function t(){var i;k6(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),al(Yp(i),"state",new pke({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),al(Yp(i),"toggleExpanded",function(a){i.setState(function(c){return c.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),al(Yp(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),al(Yp(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),al(Yp(i),"getPanelAttributes",function(a,c){return i.state.getPanelAttributes(a,c)}),al(Yp(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),al(Yp(i),"getButtonAttributes",function(a,c){return i.state.getButtonAttributes(a,c)}),i}return T6(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return St.createElement(ose.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t})(St.PureComponent);al(sse,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var ase=(function(n){iL(t,n);var e=rL(t);function t(){var i;k6(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),al(Yp(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return T6(t,[{key:"render",value:function(){return St.createElement(ose.Consumer,null,this.renderChildren)}}]),t})(St.PureComponent),mke=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],gke=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,c=R6(e,mke);return St.createElement(sse,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},St.createElement("div",Wg({"data-accordion-component":"Accordion",className:i},c)))},UD;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(UD||(UD={}));var lse=UD,U8=0;function yke(){var n=U8;return U8=U8+1,"raa-".concat(n)}var vke=St.useId||yke,bke=/[\u0009\u000a\u000c\u000d\u0020]/g;function I4(n){return n===""||bke.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var use=St.createContext(null),Cke=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(h){var m=o??h.isItemExpanded(i),y=h.isItemDisabled(i),M=h.getPanelAttributes(i,o),x=h.getHeadingAttributes(i),k=h.getButtonAttributes(i,o);return St.createElement(use.Provider,{value:{uuid:i,expanded:m,disabled:y,toggleExpanded:s,panelAttributes:M,headingAttributes:x,buttonAttributes:k}},t)};return St.creat
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var pke=R6(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,c=a===void 0?!1:a;T6(this,n),nl(this,"expanded",void 0),nl(this,"allowMultipleExpanded",void 0),nl(this,"allowZeroExpanded",void 0),nl(this,"toggleExpanded",function(h){if(t.isItemDisabled(h))return t;var m=t.isItemExpanded(h);return m?t.augment({expanded:t.expanded.filter(function(y){return y!==h})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(lke(t.expanded),[h]):[h]})}),nl(this,"isItemDisabled",function(h){var m=t.isItemExpanded(h),y=t.expanded.length===1;return!!(m&&!t.allowZeroExpanded&&y)}),nl(this,"isItemExpanded",function(h){return t.expanded.indexOf(h)!==-1}),nl(this,"getPanelAttributes",function(h,m){var y=m??t.isItemExpanded(h);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!y:void 0,"aria-labelledby":t.getButtonId(h),id:t.getPanelId(h),hidden:y?void 0:!0}}),nl(this,"getHeadingAttributes",function(){return{role:"heading"}}),nl(this,"getButtonAttributes",function(h,m){var y=m??t.isItemExpanded(h),M=t.isItemDisabled(h);return{id:t.getButtonId(h),"aria-disabled":M,"aria-expanded":y,"aria-controls":t.getPanelId(h),role:"button",tabIndex:0}}),nl(this,"getPanelId",function(h){return"accordion__panel-".concat(h)}),nl(this,"getButtonId",function(h){return"accordion__heading-".concat(h)}),nl(this,"augment",function(h){return new n(RD({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},h))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=c}),ose=St.createContext(null),sse=(function(n){iL(t,n);var e=rL(t);function t(){var i;T6(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),nl(dm(i),"state",new pke({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),nl(dm(i),"toggleExpanded",function(a){i.setState(function(c){return c.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),nl(dm(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),nl(dm(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),nl(dm(i),"getPanelAttributes",function(a,c){return i.state.getPanelAttributes(a,c)}),nl(dm(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),nl(dm(i),"getButtonAttributes",function(a,c){return i.state.getButtonAttributes(a,c)}),i}return R6(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return St.createElement(ose.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t})(St.PureComponent);nl(sse,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var ase=(function(n){iL(t,n);var e=rL(t);function t(){var i;T6(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),nl(dm(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return R6(t,[{key:"render",value:function(){return St.createElement(ose.Consumer,null,this.renderChildren)}}]),t})(St.PureComponent),mke=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],gke=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,c=D6(e,mke);return St.createElement(sse,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},St.createElement("div",s0({"data-accordion-component":"Accordion",className:i},c)))},UD;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(UD||(UD={}));var lse=UD,U8=0;function yke(){var n=U8;return U8=U8+1,"raa-".concat(n)}var vke=St.useId||yke,bke=/[\u0009\u000a\u000c\u000d\u0020]/g;function k4(n){return n===""||bke.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var use=St.createContext(null),Cke=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(h){var m=o??h.isItemExpanded(i),y=h.isItemDisabled(i),M=h.getPanelAttributes(i,o),x=h.getHeadingAttributes(i),T=h.getButtonAttributes(i,o);return St.createElement(use.Provider,{value:{uuid:i,expanded:m,disabled:y,toggleExpanded:s,panelAttributes:M,headingAttributes:x,buttonAttributes:T}},t)};return St.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.”
|
||||
|
||||
`,hse=(function(n){iL(t,n);var e=rL(t);function t(){var i;k6(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),al(Yp(i),"ref",void 0),al(Yp(i),"setRef",function(a){i.ref=a}),i}return T6(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return St.createElement("div",Wg({"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(Tke)}}]),t})(St.PureComponent);al(hse,"defaultProps",kke);var dse=function(e){return St.createElement(D6,null,function(t){var i=t.headingAttributes;return e.id&&I4(e.id),St.createElement(hse,Wg({},e,i))})};dse.displayName=lse.AccordionItemHeading;var Rke=["className","region","id"],Dke=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=R6(e,Rke),a=function(h){var m=h.panelAttributes;o&&I4(o);var y=RD(RD({},m),{},{"aria-labelledby":r?m["aria-labelledby"]:void 0});return St.createElement("div",Wg({"data-accordion-component":"AccordionItemPanel",className:i},s,y,{role:r?"region":void 0}))};return St.createElement(D6,null,a)};function k4(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="ee4be309accf3b6f15b0a988cbdadd67c7132608",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:18},end:{line:3,column:19}},loc:{start:{line:3,column:29},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,OAAO,eAAsC;AAM7C,MAAM,YAAsC,CAAC,UAAU;AACrD,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee4be309accf3b6f15b0a988cbdadd67c7132608"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return k4=function(){return s},s}k4();k4().s[0]++;const oL=n=>(k4().f[0]++,k4().s[1]++,ie.jsx(wre,{...n}));function T4(n){return To({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 U6(n){return To({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 kb(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return kb=function(){return s},s}kb();const sL=(kb().s[0]++,["all","any","none"]);kb().s[1]++;const Pke=(kb().s[2]++,Object.keys(Jr.filter_operator.values).filter(n=>(kb().f[0]++,kb().s[3]++,sL.indexOf(n)<0)));function qi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="d18e3b448d830733ac17bcacd45f7c08e364baa2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,col
Line truncated
|
||||
`,hse=(function(n){iL(t,n);var e=rL(t);function t(){var i;T6(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),nl(dm(i),"ref",void 0),nl(dm(i),"setRef",function(a){i.ref=a}),i}return R6(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return St.createElement("div",s0({"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(Tke)}}]),t})(St.PureComponent);nl(hse,"defaultProps",kke);var dse=function(e){return St.createElement(P6,null,function(t){var i=t.headingAttributes;return e.id&&k4(e.id),St.createElement(hse,s0({},e,i))})};dse.displayName=lse.AccordionItemHeading;var Rke=["className","region","id"],Dke=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=D6(e,Rke),a=function(h){var m=h.panelAttributes;o&&k4(o);var y=RD(RD({},m),{},{"aria-labelledby":r?m["aria-labelledby"]:void 0});return St.createElement("div",s0({"data-accordion-component":"AccordionItemPanel",className:i},s,y,{role:r?"region":void 0}))};return St.createElement(P6,null,a)};function T4(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="ee4be309accf3b6f15b0a988cbdadd67c7132608",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:18},end:{line:3,column:19}},loc:{start:{line:3,column:29},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,OAAO,eAAsC;AAM7C,MAAM,YAAsC,CAAC,UAAU;AACrD,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ee4be309accf3b6f15b0a988cbdadd67c7132608"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return T4=function(){return s},s}T4();T4().s[0]++;const oL=n=>(T4().f[0]++,T4().s[1]++,ie.jsx(wre,{...n}));function R4(n){return Io({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 K6(n){return Io({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 Rb(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return Rb=function(){return s},s}Rb();const sL=(Rb().s[0]++,["all","any","none"]);Rb().s[1]++;const Pke=(Rb().s[2]++,Object.keys(Zr.filter_operator.values).filter(n=>(Rb().f[0]++,Rb().s[3]++,sL.indexOf(n)<0)));function $i(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="d18e3b448d830733ac17bcacd45f7c08e364baa2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,col
Line truncated
|
||||
rgba(`+H.r+","+H.g+","+H.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:H.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("+H.r+","+H.g+","+H.b+`, 0) 0%,
|
||||
rgba(`+H.r+","+H.g+","+H.b+", 1) 100%)"},pointer:{left:0,top:H.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:G.alpha},i.default.createElement("div",{style:G.checkboard},i.default.createElement(h.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:G.gradient}),i.default.createElement("div",{style:G.container,ref:function(z){return V.container=z},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:G.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:G.slider}))))}}]),j})(t.PureComponent||t.Component);return JC.default=P,JC}var t_={},rV;function tRe(){if(rV)return t_;rV=1,Object.defineProperty(t_,"__esModule",{value:!0}),t_.EditableInput=void 0;var n=(function(){function q(V,H){for(var G=0;G<H.length;G++){var Y=H[G];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(V,Y.key,Y)}}return function(V,H,G){return H&&q(V.prototype,H),G&&q(V,G),V}})(),e=Ya(),t=o(e),i=gm(),r=o(i);function o(q){return q&&q.__esModule?q:{default:q}}function s(q,V,H){return V in q?Object.defineProperty(q,V,{value:H,enumerable:!0,configurable:!0,writable:!0}):q[V]=H,q}function a(q,V){if(!(q instanceof V))throw new TypeError("Cannot call a class as a function")}function c(q,V){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:q}function h(q,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);q.prototype=Object.create(V&&V.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(q,V):q.__proto__=V)}var m=1,y=38,M=40,x=[y,M],k=function(V){return x.indexOf(V)>-1},P=function(V){return Number(String(V).replace(/%/g,""))},F=1,j=t_.EditableInput=(function(q){h(V,q);function V(H){a(this,V);var G=c(this,(V.__proto__||Object.getPrototypeOf(V)).call(this));return G.handleBlur=function(){G.state.blurValue&&G.setState({value:G.state.blurValue,blurValue:null})},G.handleChange=function(Y){G.setUpdatedValue(Y.target.value,Y)},G.handleKeyDown=function(Y){var z=P(Y.target.value);if(!isNaN(z)&&k(Y.keyCode)){var se=G.getArrowOffset(),le=Y.keyCode===y?z+se:z-se;G.setUpdatedValue(le,Y)}},G.handleDrag=function(Y){if(G.props.dragLabel){var z=Math.round(G.props.value+Y.movementX);z>=0&&z<=G.props.dragMax&&G.props.onChange&&G.props.onChange(G.getValueObjectWithLabel(z),Y)}},G.handleMouseDown=function(Y){G.props.dragLabel&&(Y.preventDefault(),G.handleDrag(Y),window.addEventListener("mousemove",G.handleDrag),window.addEventListener("mouseup",G.handleMouseUp))},G.handleMouseUp=function(){G.unbindEventListeners()},G.unbindEventListeners=function(){window.removeEventListener("mousemove",G.handleDrag),window.removeEventListener("mouseup",G.handleMouseUp)},G.state={value:String(H.value).toUpperCase(),blurValue:String(H.value).toUpperCase()},G.inputId="rc-editable-input-"+F++,G}return n(V,[{key:"componentDidUpdate",value:function(G,Y){this.props.value!==this.state.value&&(G.value!==this.props.value||Y.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(G){return s({},this.props.label,G)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||m}},{key:"setUpdatedValue",value:function(G,Y){var z=this.props.label?this.getValueObjectWithLabel(G):G;this.props.onChange&&this.props.onChange(z,Y),this.setState({value:G})}},{key:"render",value:function(){var G=this,Y=(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:Y.wrap},t.default.createElement("input",{id:this.inputId,style:Y.input,ref:function(se){return G.input=se},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:Y.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),V})(e.PureComponent||e.Component);return t_.default=j,t_}var n_={},$M={},oV
Line truncated
|
||||
rgba(`+H.r+","+H.g+","+H.b+", 1) 100%)"},pointer:{left:0,top:H.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:Q.alpha},i.default.createElement("div",{style:Q.checkboard},i.default.createElement(h.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:Q.gradient}),i.default.createElement("div",{style:Q.container,ref:function(z){return V.container=z},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:Q.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:Q.slider}))))}}]),j})(t.PureComponent||t.Component);return e_.default=P,e_}var n_={},rV;function tRe(){if(rV)return n_;rV=1,Object.defineProperty(n_,"__esModule",{value:!0}),n_.EditableInput=void 0;var n=(function(){function q(V,H){for(var Q=0;Q<H.length;Q++){var Y=H[Q];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(V,Y.key,Y)}}return function(V,H,Q){return H&&q(V.prototype,H),Q&&q(V,Q),V}})(),e=Qa(),t=o(e),i=Km(),r=o(i);function o(q){return q&&q.__esModule?q:{default:q}}function s(q,V,H){return V in q?Object.defineProperty(q,V,{value:H,enumerable:!0,configurable:!0,writable:!0}):q[V]=H,q}function a(q,V){if(!(q instanceof V))throw new TypeError("Cannot call a class as a function")}function c(q,V){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:q}function h(q,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);q.prototype=Object.create(V&&V.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(q,V):q.__proto__=V)}var m=1,y=38,M=40,x=[y,M],T=function(V){return x.indexOf(V)>-1},P=function(V){return Number(String(V).replace(/%/g,""))},F=1,j=n_.EditableInput=(function(q){h(V,q);function V(H){a(this,V);var Q=c(this,(V.__proto__||Object.getPrototypeOf(V)).call(this));return Q.handleBlur=function(){Q.state.blurValue&&Q.setState({value:Q.state.blurValue,blurValue:null})},Q.handleChange=function(Y){Q.setUpdatedValue(Y.target.value,Y)},Q.handleKeyDown=function(Y){var z=P(Y.target.value);if(!isNaN(z)&&T(Y.keyCode)){var se=Q.getArrowOffset(),le=Y.keyCode===y?z+se:z-se;Q.setUpdatedValue(le,Y)}},Q.handleDrag=function(Y){if(Q.props.dragLabel){var z=Math.round(Q.props.value+Y.movementX);z>=0&&z<=Q.props.dragMax&&Q.props.onChange&&Q.props.onChange(Q.getValueObjectWithLabel(z),Y)}},Q.handleMouseDown=function(Y){Q.props.dragLabel&&(Y.preventDefault(),Q.handleDrag(Y),window.addEventListener("mousemove",Q.handleDrag),window.addEventListener("mouseup",Q.handleMouseUp))},Q.handleMouseUp=function(){Q.unbindEventListeners()},Q.unbindEventListeners=function(){window.removeEventListener("mousemove",Q.handleDrag),window.removeEventListener("mouseup",Q.handleMouseUp)},Q.state={value:String(H.value).toUpperCase(),blurValue:String(H.value).toUpperCase()},Q.inputId="rc-editable-input-"+F++,Q}return n(V,[{key:"componentDidUpdate",value:function(Q,Y){this.props.value!==this.state.value&&(Q.value!==this.props.value||Y.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(Q){return s({},this.props.label,Q)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||m}},{key:"setUpdatedValue",value:function(Q,Y){var z=this.props.label?this.getValueObjectWithLabel(Q):Q;this.props.onChange&&this.props.onChange(z,Y),this.setState({value:Q})}},{key:"render",value:function(){var Q=this,Y=(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:Y.wrap},t.default.createElement("input",{id:this.inputId,style:Y.input,ref:function(se){return Q.input=se},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:Y.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),V})(e.PureComponent||e.Component);return n_.default=j,n_}var i_={},VM={},oV
Line truncated
|
||||
.hue-horizontal {
|
||||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
@@ -940,8 +997,8 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
||||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
}
|
||||
`),t.default.createElement("div",{style:V.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:V.slider}))))}}]),k})(e.PureComponent||e.Component);return n_.default=M,n_}var i_={},aV;function rRe(){if(aV)return i_;aV=1,Object.defineProperty(i_,"__esModule",{value:!0}),i_.Raised=void 0;var n=Ya(),e=c(n),t=b1(),i=c(t),r=gm(),o=c(r),s=qse(),a=c(s);function c(m){return m&&m.__esModule?m:{default:m}}var h=i_.Raised=function(y){var M=y.zDepth,x=y.radius,k=y.background,P=y.children,F=y.styles,j=F===void 0?{}:F,q=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+M+"px "+M*4+"px rgba(0,0,0,.24)",borderRadius:x,background:k}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},j),{"zDepth-1":M===1});return e.default.createElement("div",{style:q.wrap},e.default.createElement("div",{style:q.bg}),e.default.createElement("div",{style:q.content},P))};return h.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},h.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},i_.default=h,i_}var r_={},Yk,lV;function oRe(){if(lV)return Yk;lV=1;var n=mm(),e=function(){return n.Date.now()};return Yk=e,Yk}var $k,uV;function sRe(){if(uV)return $k;uV=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return $k=e,$k}var Vk,cV;function aRe(){if(cV)return Vk;cV=1;var n=sRe(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return Vk=t,Vk}var Hk,AV;function lRe(){if(AV)return Hk;AV=1;var n=aRe(),e=gp(),t=q6(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(h){if(typeof h=="number")return h;if(t(h))return i;if(e(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=e(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=n(h);var y=o.test(h);return y||s.test(h)?a(h.slice(2),y?2:8):r.test(h)?i:+h}return Hk=c,Hk}var Zk,hV;function Yse(){if(hV)return Zk;hV=1;var n=gp(),e=oRe(),t=lRe(),i="Expected a function",r=Math.max,o=Math.min;function s(a,c,h){var m,y,M,x,k,P,F=0,j=!1,q=!1,V=!0;if(typeof a!="function")throw new TypeError(i);c=t(c)||0,n(h)&&(j=!!h.leading,q="maxWait"in h,M=q?r(t(h.maxWait)||0,c):M,V="trailing"in h?!!h.trailing:V);function H(Ee){var De=m,je=y;return m=y=void 0,F=Ee,x=a.apply(je,De),x}function G(Ee){return F=Ee,k=setTimeout(se,c),j?H(Ee):x}function Y(Ee){var De=Ee-P,je=Ee-F,Ie=c-De;return q?o(Ie,M-je):Ie}function z(Ee){var De=Ee-P,je=Ee-F;return P===void 0||De>=c||De<0||q&&je>=M}function se(){var Ee=e();if(z(Ee))return le(Ee);k=setTimeout(se,Y(Ee))}function le(Ee){return k=void 0,V&&m?H(Ee):(m=y=void 0,x)}function me(){k!==void 0&&clearTimeout(k),F=0,m=P=y=k=void 0}function de(){return k===void 0?x:le(e())}function be(){var Ee=e(),De=z(Ee);if(m=arguments,y=this,P=Ee,De){if(k===void 0)return G(P);if(q)return clearTimeout(k),k=setTimeout(se,c),H(P)}return k===void 0&&(k=setTimeout(se,c)),x}return be.cancel=me,be.flush=de,be}return Zk=s,Zk}var Xk,dV;function uRe(){if(dV)return Xk;dV=1;var n=Yse(),e=gp(),t="Expected a function";function i(r,o,s){var a=!0,c=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),n(r,o,{leading:a,maxWait:o,trailing:c})}return Xk=i,Xk}var VM={},fV;function cRe(){return fV||(fV=1,Object.defineProperty(VM,"__esModule",{value:!0}),VM.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,h=a-(i.getBoundingClientRect().left+window.pageXOffset),m=c-(i.getBoundingClientRect().top+window.pageYOffset);h<0?h=0:h>o&&(h=o),m<0?m=0:m>s&&(m=s);var y=h/o,M=1-m/s;return{h:t.h,s:y,v:M,a:t.a,source:"hsv"}}),VM}var pV;function ARe(){if(pV)return r_;pV=1,Object.defineProperty(r_,"__esModule",{value:!0}),r_.Saturation=void 0;var n=(function(){function P(F,j){for(var q=0;q<j.length;q++){var V=j[q];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(F,V.key,V)}}return function(F,j,q){return j&&P(F.prototype,j),q&&P(F,q),F}})(),e=Ya(),t=m(e),i=gm(),r=m(i),o=uRe(),s=m(o),a=cRe(),c=h(a);function h(P){if(P&&P.__esModule)return P;var F={};if(P!=null)for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&(F[j]=P[j]);return F.default=P,F}function m(P){return P&&P._
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:H,white:G,black:Y,pointer:z,circle:se}},{custom:!!this.props.style});return t.default.createElement("div",{style:le.color,ref:function(de){return q.container=de},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
|
||||
`),t.default.createElement("div",{style:V.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:V.slider}))))}}]),T})(e.PureComponent||e.Component);return i_.default=M,i_}var r_={},aV;function rRe(){if(aV)return r_;aV=1,Object.defineProperty(r_,"__esModule",{value:!0}),r_.Raised=void 0;var n=Qa(),e=c(n),t=b1(),i=c(t),r=Km(),o=c(r),s=qse(),a=c(s);function c(m){return m&&m.__esModule?m:{default:m}}var h=r_.Raised=function(y){var M=y.zDepth,x=y.radius,T=y.background,P=y.children,F=y.styles,j=F===void 0?{}:F,q=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+M+"px "+M*4+"px rgba(0,0,0,.24)",borderRadius:x,background:T}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},j),{"zDepth-1":M===1});return e.default.createElement("div",{style:q.wrap},e.default.createElement("div",{style:q.bg}),e.default.createElement("div",{style:q.content},P))};return h.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},h.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},r_.default=h,r_}var o_={},Yk,lV;function oRe(){if(lV)return Yk;lV=1;var n=Um(),e=function(){return n.Date.now()};return Yk=e,Yk}var $k,uV;function sRe(){if(uV)return $k;uV=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return $k=e,$k}var Vk,cV;function aRe(){if(cV)return Vk;cV=1;var n=sRe(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return Vk=t,Vk}var Hk,AV;function lRe(){if(AV)return Hk;AV=1;var n=aRe(),e=wp(),t=Y6(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(h){if(typeof h=="number")return h;if(t(h))return i;if(e(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=e(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=n(h);var y=o.test(h);return y||s.test(h)?a(h.slice(2),y?2:8):r.test(h)?i:+h}return Hk=c,Hk}var Zk,hV;function Yse(){if(hV)return Zk;hV=1;var n=wp(),e=oRe(),t=lRe(),i="Expected a function",r=Math.max,o=Math.min;function s(a,c,h){var m,y,M,x,T,P,F=0,j=!1,q=!1,V=!0;if(typeof a!="function")throw new TypeError(i);c=t(c)||0,n(h)&&(j=!!h.leading,q="maxWait"in h,M=q?r(t(h.maxWait)||0,c):M,V="trailing"in h?!!h.trailing:V);function H(Ee){var Re=m,je=y;return m=y=void 0,F=Ee,x=a.apply(je,Re),x}function Q(Ee){return F=Ee,T=setTimeout(se,c),j?H(Ee):x}function Y(Ee){var Re=Ee-P,je=Ee-F,Ie=c-Re;return q?o(Ie,M-je):Ie}function z(Ee){var Re=Ee-P,je=Ee-F;return P===void 0||Re>=c||Re<0||q&&je>=M}function se(){var Ee=e();if(z(Ee))return le(Ee);T=setTimeout(se,Y(Ee))}function le(Ee){return T=void 0,V&&m?H(Ee):(m=y=void 0,x)}function pe(){T!==void 0&&clearTimeout(T),F=0,m=P=y=T=void 0}function de(){return T===void 0?x:le(e())}function ve(){var Ee=e(),Re=z(Ee);if(m=arguments,y=this,P=Ee,Re){if(T===void 0)return Q(P);if(q)return clearTimeout(T),T=setTimeout(se,c),H(P)}return T===void 0&&(T=setTimeout(se,c)),x}return ve.cancel=pe,ve.flush=de,ve}return Zk=s,Zk}var Xk,dV;function uRe(){if(dV)return Xk;dV=1;var n=Yse(),e=wp(),t="Expected a function";function i(r,o,s){var a=!0,c=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),n(r,o,{leading:a,maxWait:o,trailing:c})}return Xk=i,Xk}var HM={},fV;function cRe(){return fV||(fV=1,Object.defineProperty(HM,"__esModule",{value:!0}),HM.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,h=a-(i.getBoundingClientRect().left+window.pageXOffset),m=c-(i.getBoundingClientRect().top+window.pageYOffset);h<0?h=0:h>o&&(h=o),m<0?m=0:m>s&&(m=s);var y=h/o,M=1-m/s;return{h:t.h,s:y,v:M,a:t.a,source:"hsv"}}),HM}var pV;function ARe(){if(pV)return o_;pV=1,Object.defineProperty(o_,"__esModule",{value:!0}),o_.Saturation=void 0;var n=(function(){function P(F,j){for(var q=0;q<j.length;q++){var V=j[q];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(F,V.key,V)}}return function(F,j,q){return j&&P(F.prototype,j),q&&P(F,q),F}})(),e=Qa(),t=m(e),i=Km(),r=m(i),o=uRe(),s=m(o),a=cRe(),c=h(a);function h(P){if(P&&P.__esModule)return P;var F={};if(P!=null)for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&(F[j]=P[j]);return F.default=P,F}function m(P){return P&&P._
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:H,white:Q,black:Y,pointer:z,circle:se}},{custom:!!this.props.style});return t.default.createElement("div",{style:le.color,ref:function(de){return q.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));
|
||||
@@ -950,7 +1007,7 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
||||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
}
|
||||
`),t.default.createElement("div",{style:le.white,className:"saturation-white"},t.default.createElement("div",{style:le.black,className:"saturation-black"}),t.default.createElement("div",{style:le.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:le.circle}))))}}]),F})(e.PureComponent||e.Component);return r_.default=k,r_}var o_={},Bh={},Jk,mV;function hRe(){if(mV)return Jk;mV=1;var n=Use(),e=Pse(),t=bse(),i=wf();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return Jk=r,Jk}var eT,gV;function dRe(){return gV||(gV=1,eT=hRe()),eT}var Ew={exports:{}},fRe=Ew.exports,yV;function pRe(){return yV||(yV=1,(function(n,e){(function(t,i){n.exports=i()})(fRe,(function(){function t(Ke){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},t(Ke)}var i=/^\s+/,r=/\s+$/;function o(Ke,Te){if(Ke=Ke||"",Te=Te||{},Ke instanceof o)return Ke;if(!(this instanceof o))return new o(Ke,Te);var Se=s(Ke);this._originalInput=Ke,this._r=Se.r,this._g=Se.g,this._b=Se.b,this._a=Se.a,this._roundA=Math.round(100*this._a)/100,this._format=Te.format||Se.format,this._gradientType=Te.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=Se.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Te=this.toRgb();return(Te.r*299+Te.g*587+Te.b*114)/1e3},getLuminance:function(){var Te=this.toRgb(),Se,Ne,ut,rt,pt,Dt;return Se=Te.r/255,Ne=Te.g/255,ut=Te.b/255,Se<=.03928?rt=Se/12.92:rt=Math.pow((Se+.055)/1.055,2.4),Ne<=.03928?pt=Ne/12.92:pt=Math.pow((Ne+.055)/1.055,2.4),ut<=.03928?Dt=ut/12.92:Dt=Math.pow((ut+.055)/1.055,2.4),.2126*rt+.7152*pt+.0722*Dt},setAlpha:function(Te){return this._a=De(Te),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Te=m(this._r,this._g,this._b);return{h:Te.h*360,s:Te.s,v:Te.v,a:this._a}},toHsvString:function(){var Te=m(this._r,this._g,this._b),Se=Math.round(Te.h*360),Ne=Math.round(Te.s*100),ut=Math.round(Te.v*100);return this._a==1?"hsv("+Se+", "+Ne+"%, "+ut+"%)":"hsva("+Se+", "+Ne+"%, "+ut+"%, "+this._roundA+")"},toHsl:function(){var Te=c(this._r,this._g,this._b);return{h:Te.h*360,s:Te.s,l:Te.l,a:this._a}},toHslString:function(){var Te=c(this._r,this._g,this._b),Se=Math.round(Te.h*360),Ne=Math.round(Te.s*100),ut=Math.round(Te.l*100);return this._a==1?"hsl("+Se+", "+Ne+"%, "+ut+"%)":"hsla("+Se+", "+Ne+"%, "+ut+"%, "+this._roundA+")"},toHex:function(Te){return M(this._r,this._g,this._b,Te)},toHexString:function(Te){return"#"+this.toHex(Te)},toHex8:function(Te){return x(this._r,this._g,this._b,this._a,Te)},toHex8String:function(Te){return"#"+this.toHex8(Te)},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(je(this._r,255)*100)+"%",g:Math.round(je(this._g,255)*100)+"%",b:Math.round(je(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(je(this._r,255)*100)+"%, "+Math.round(je(this._g,255)*100)+"%, "+Math.round(je(this._b,255)*100)+"%)":"rgba("+Math.round(je(this._r,255)*100)+"%, "+Math.round(je(this._g,255)*100)+"%, "+Math.round(je(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:be[M(this._r,this._g,this._b,!0)]||!1},toFilter:function(Te){var Se="#"+k(this._r,this._g,this._b,this._a),Ne=Se,ut=this._gradientType?"GradientType = 1, ":"";if(Te){var rt=o(Te);Ne="#"+k(rt._r,rt._g,rt._b,rt._a)}return"progid:DXImageTransform.Microsoft.gradient("+ut+"startColorstr="+Se+",endColorstr="+Ne+")"},toString:function(Te){var Se=!!Te;Te=Te||this._format;var Ne=!1,ut=this._a<1&&this._a>=0,rt=!Se&&ut&&(Te==="hex"||Te==="hex6"||Te==="hex3"||Te==="hex4"||Te==="hex8"||Te==="name");return rt?Te==="name"&&this._a===0?this.toName():this.toRgbString():(Te==="rgb"&&(Ne=this.toRgbString()),Te==="prgb"&&(Ne=this.toPercentageRgbString()),(Te==="hex"||Te==="hex6")&&(Ne=this.toHexString()),Te==="hex3"&&(Ne=this.toHexString(!0)),Te==="hex4"&&(Ne=this.toHex8String(!0)),Te==="hex8"&&(Ne=this.toHex8String()),Te==="name"&&(Ne=this.toName()),Te==="hsl"&&(Ne=this.toHslString()),Te==="hsv"&&(Ne=this.toHsvString()),Ne||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Te,Se){var Ne=Te.ap
Line truncated
|
||||
`),t.default.createElement("div",{style:le.white,className:"saturation-white"},t.default.createElement("div",{style:le.black,className:"saturation-black"}),t.default.createElement("div",{style:le.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:le.circle}))))}}]),F})(e.PureComponent||e.Component);return o_.default=T,o_}var s_={},wh={},Jk,mV;function hRe(){if(mV)return Jk;mV=1;var n=Use(),e=Pse(),t=bse(),i=Of();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return Jk=r,Jk}var eT,gV;function dRe(){return gV||(gV=1,eT=hRe()),eT}var Ow={exports:{}},fRe=Ow.exports,yV;function pRe(){return yV||(yV=1,(function(n,e){(function(t,i){n.exports=i()})(fRe,(function(){function t(Ke){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},t(Ke)}var i=/^\s+/,r=/\s+$/;function o(Ke,Te){if(Ke=Ke||"",Te=Te||{},Ke instanceof o)return Ke;if(!(this instanceof o))return new o(Ke,Te);var Se=s(Ke);this._originalInput=Ke,this._r=Se.r,this._g=Se.g,this._b=Se.b,this._a=Se.a,this._roundA=Math.round(100*this._a)/100,this._format=Te.format||Se.format,this._gradientType=Te.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=Se.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Te=this.toRgb();return(Te.r*299+Te.g*587+Te.b*114)/1e3},getLuminance:function(){var Te=this.toRgb(),Se,We,at,it,ft,Dt;return Se=Te.r/255,We=Te.g/255,at=Te.b/255,Se<=.03928?it=Se/12.92:it=Math.pow((Se+.055)/1.055,2.4),We<=.03928?ft=We/12.92:ft=Math.pow((We+.055)/1.055,2.4),at<=.03928?Dt=at/12.92:Dt=Math.pow((at+.055)/1.055,2.4),.2126*it+.7152*ft+.0722*Dt},setAlpha:function(Te){return this._a=Re(Te),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Te=m(this._r,this._g,this._b);return{h:Te.h*360,s:Te.s,v:Te.v,a:this._a}},toHsvString:function(){var Te=m(this._r,this._g,this._b),Se=Math.round(Te.h*360),We=Math.round(Te.s*100),at=Math.round(Te.v*100);return this._a==1?"hsv("+Se+", "+We+"%, "+at+"%)":"hsva("+Se+", "+We+"%, "+at+"%, "+this._roundA+")"},toHsl:function(){var Te=c(this._r,this._g,this._b);return{h:Te.h*360,s:Te.s,l:Te.l,a:this._a}},toHslString:function(){var Te=c(this._r,this._g,this._b),Se=Math.round(Te.h*360),We=Math.round(Te.s*100),at=Math.round(Te.l*100);return this._a==1?"hsl("+Se+", "+We+"%, "+at+"%)":"hsla("+Se+", "+We+"%, "+at+"%, "+this._roundA+")"},toHex:function(Te){return M(this._r,this._g,this._b,Te)},toHexString:function(Te){return"#"+this.toHex(Te)},toHex8:function(Te){return x(this._r,this._g,this._b,this._a,Te)},toHex8String:function(Te){return"#"+this.toHex8(Te)},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(je(this._r,255)*100)+"%",g:Math.round(je(this._g,255)*100)+"%",b:Math.round(je(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(je(this._r,255)*100)+"%, "+Math.round(je(this._g,255)*100)+"%, "+Math.round(je(this._b,255)*100)+"%)":"rgba("+Math.round(je(this._r,255)*100)+"%, "+Math.round(je(this._g,255)*100)+"%, "+Math.round(je(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ve[M(this._r,this._g,this._b,!0)]||!1},toFilter:function(Te){var Se="#"+T(this._r,this._g,this._b,this._a),We=Se,at=this._gradientType?"GradientType = 1, ":"";if(Te){var it=o(Te);We="#"+T(it._r,it._g,it._b,it._a)}return"progid:DXImageTransform.Microsoft.gradient("+at+"startColorstr="+Se+",endColorstr="+We+")"},toString:function(Te){var Se=!!Te;Te=Te||this._format;var We=!1,at=this._a<1&&this._a>=0,it=!Se&&at&&(Te==="hex"||Te==="hex6"||Te==="hex3"||Te==="hex4"||Te==="hex8"||Te==="name");return it?Te==="name"&&this._a===0?this.toName():this.toRgbString():(Te==="rgb"&&(We=this.toRgbString()),Te==="prgb"&&(We=this.toPercentageRgbString()),(Te==="hex"||Te==="hex6")&&(We=this.toHexString()),Te==="hex3"&&(We=this.toHexString(!0)),Te==="hex4"&&(We=this.toHex8String(!0)),Te==="hex8"&&(We=this.toHex8String()),Te==="name"&&(We=this.toName()),Te==="hsl"&&(We=this.toHslString()),Te==="hsv"&&(We=this.toHsvString()),We||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Te,Se){var We=Te.ap
Line truncated
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@@ -974,11 +1031,11 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
||||
<\/script>
|
||||
</body>
|
||||
</html>
|
||||
`),r=(si().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(si().s[10]++,this.exportName());si().s[11]++,QV.saveAs(r,o+".html")}async saveStyle(){si().f[3]++;const e=(si().s[12]++,this.tokenizedStyle());if(si().s[13]++,YV)si().b[2][1]++;else{si().b[2][0]++;const r=(si().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(si().s[15]++,this.exportName());si().s[16]++,QV.saveAs(r,o+".json"),si().s[17]++;return}let t=(si().s[18]++,this.props.fileHandle);if(si().s[19]++,t==null)if(si().b[3][0]++,si().s[20]++,t=await this.createFileHandle(),si().s[21]++,this.props.onSetFileHandle(t),si().s[22]++,t==null){si().b[4][0]++,si().s[23]++;return}else si().b[4][1]++;else si().b[3][1]++;const i=(si().s[24]++,await t.createWritable());si().s[25]++,await i.write(e),si().s[26]++,await i.close(),si().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){si().f[4]++;const e=(si().s[28]++,this.tokenizedStyle()),t=(si().s[29]++,await this.createFileHandle());if(si().s[30]++,this.props.onSetFileHandle(t),si().s[31]++,t==null){si().b[5][0]++,si().s[32]++;return}else si().b[5][1]++;const i=(si().s[33]++,await t.createWritable());si().s[34]++,await i.write(e),si().s[35]++,await i.close(),si().s[36]++,this.props.onOpenToggle()}async createFileHandle(){si().f[5]++;const e=(si().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(si().s[38]++,await window.showSaveFilePicker(e));return si().s[39]++,this.props.onSetFileHandle(t),si().s[40]++,t}changeMetadataProperty(e,t){si().f[6]++;const i=(si().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});si().s[42]++,this.props.onStyleChanged(i)}render(){si().f[7]++;const e=(si().s[43]++,this.props.t),t=(si().s[44]++,iae(e));return si().s[45]++,ie.jsx(C1,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:ie.jsxs("section",{className:"maputnik-modal-section",children:[ie.jsx("h1",{children:e("Save Style")}),ie.jsx("p",{children:e("Save the JSON style to your computer.")}),ie.jsxs("div",{children:[ie.jsx(Ad,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(si().b[6][0]++,this.props.mapStyle.metadata||(si().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),ie.jsx(Ad,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(si().b[7][0]++,this.props.mapStyle.metadata||(si().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),ie.jsx(Ad,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(si().b[8][0]++,this.props.mapStyle.metadata||(si().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),ie.jsx(Ad,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(si().b[9][0]++,this.props.mapStyle.metadata||(si().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),ie.jsxs("div",{className:"maputnik-modal-export-buttons",children:[ie.jsxs(Js,{onClick:this.saveStyle.bind(this),children:[ie.jsx(w9,{}),e("Save")]}),(si().b[10][0]++,YV&&(si().b[10][1]++,ie.jsxs(Js,{onClick:this.saveStyleAs.bind(this),children:[ie.jsx(w9,{}),e("Save as")]}))),ie.jsxs(Js,{onClick:this.createHtml.bind(this),children:[ie.jsx(Wfe,{}),e("Create HTML")]})]})]})})}}const iPe=(si().s[46]++,$o()(nPe));function N4(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return N4=function(){return s},s}N4();N4().s[0]++;const aae=n=>(N4().f[0]++,N4().s[1]++,ie.jsx(Dy,{label:n.label,children:ie.jsx(Ow,{...n})}));function G4(){var n="/home/runner/work/maputnik/maputnik/src/components/Fi
Line truncated
|
||||
`)>=0)return!1;return!0}function Ue(ge,Be){var v;if(ge.indent===" ")v=" ";else if(typeof ge.indent=="number"&&ge.indent>0)v=se.call(Array(ge.indent+1)," ");else return null;return{base:v,prev:se.call(Array(Be+1),v)}}function Ve(ge,Be){if(ge.length===0)return"";var v=`
|
||||
`+Be.prev+Be.base;return v+se.call(ge,","+v)+`
|
||||
`+Be.prev}function lt(ge,Be){var v=Bt(ge),yt=[];if(v){yt.length=ge.length;for(var Mt=0;Mt<ge.length;Mt++)yt[Mt]=Jt(ge,Mt)?Be(ge[Mt],ge):""}var Pt=typeof be=="function"?be(ge):[],st;if(De){st={};for(var fn=0;fn<Pt.length;fn++)st["$"+Pt[fn]]=Pt[fn]}for(var Fn in ge)Jt(ge,Fn)&&(v&&String(Number(Fn))===Fn&&Fn<ge.length||De&&st["$"+Fn]instanceof Symbol||(Y.call(/[^\w$]/,Fn)?yt.push(Be(Fn,ge)+": "+Be(ge[Fn],ge)):yt.push(Fn+": "+Be(ge[Fn],ge))));if(typeof be=="function")for(var pn=0;pn<Pt.length;pn++)Ie.call(ge,Pt[pn])&&yt.push("["+Be(Pt[pn])+"]: "+Be(ge[Pt[pn]],ge));return yt}return aT}var lT,JV;function FPe(){if(JV)return lT;JV=1;var n=$6(),e=Hx(),t=function(a,c,h){for(var m=a,y;(y=m.next)!=null;m=y)if(y.key===c)return m.next=y.next,h||(y.next=a.next,a.next=y),y},i=function(a,c){if(a){var h=t(a,c);return h&&h.value}},r=function(a,c,h){var m=t(a,c);m?m.value=h:a.next={key:c,next:a.next,value:h}},o=function(a,c){return a?!!t(a,c):!1},s=function(a,c){if(a)return t(a,c,!0)};return lT=function(){var c,h={assert:function(m){if(!h.has(m))throw new e("Side channel does not contain "+n(m))},delete:function(m){var y=c&&c.next,M=s(c,m);return M&&y&&y===M&&(c=void 0),!!M},get:function(m){return i(c,m)},has:function(m){return o(c,m)},set:function(m,y){c||(c={next:void 0}),r(c,m,y)}};return h},lT}var uT,eH;function hae(){return eH||(eH=1,uT=Object),uT}var cT,tH;function zPe(){return tH||(tH=1,cT=Error),cT}var AT,nH;function jPe(){return nH||(nH=1,AT=EvalError),AT}var hT,iH;function NPe(){return iH||(iH=1,hT=RangeError),hT}var dT,rH;function GPe(){return rH||(rH=1,dT=ReferenceError),dT}var fT,oH;function WPe(){return oH||(oH=1,fT=SyntaxError),fT}var pT,sH;function QPe(){return sH||(sH=1,pT=URIError),pT}var mT,aH;function qPe(){return aH||(aH=1,mT=Math.abs),mT}var gT,lH;function YPe(){return lH||(lH=1,gT=Math.floor),gT}var yT,uH;function $Pe(){return uH||(uH=1,yT=Math.max),yT}var vT,cH;function VPe(){return cH||(cH=1,vT=Math.min),vT}var bT,AH;function HPe(){return AH||(AH=1,bT=Math.pow),bT}var CT,hH;function ZPe(){return hH||(hH=1,CT=Math.round),CT}var _T,dH;function XPe(){return dH||(dH=1,_T=Number.isNaN||function(e){return e!==e}),_T}var xT,fH;function JPe(){if(fH)return xT;fH=1;var n=XPe();return xT=function(t){return n(t)||t===0?t:t<0?-1:1},xT}var MT,pH;function eUe(){return pH||(pH=1,MT=Object.getOwnPropertyDescriptor),MT}var wT,mH;function dae(){if(mH)return wT;mH=1;var n=eUe();if(n)try{n([],"length")}catch{n=null}return wT=n,wT}var ST,gH;function tUe(){if(gH)return ST;gH=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return ST=n,ST}var ET,yH;function nUe(){return yH||(yH=1,ET=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==r||a.enumerable!==!0)return!1}return!0}),ET}var OT,vH;function iUe(){if(vH)return OT;vH=1;var n=typeof Symbol<"u"&&Symbol,e=nUe();return OT=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},OT}var BT,bH;function fae(){return bH||(bH=1,BT=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),BT}var IT,CH;function pae(){if(CH)return IT;CH=1;var n=hae();return IT=n.getPrototypeOf||null,IT}var kT,_H;function rUe(){if(_H)return kT;_H=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(c,h){for(var m=[],y=0;y<c.length;y+=1)m[y]=c[y];for(var M=0;M<h.length;M+=1)m[M+c.length]=h[M];return m},o=function(c,h){for(var m=[],y=h,M=0;y<c.length;y+=1,M+=1)m[M]=c[y];return m},s=function(a,c){for(var h="",m=0;m<a.length;m+=1)h+=a[m],m+1<a.length&&(h+=c);return h};return kT=function(c){var h=this;if(typeof h!="function"||e.apply(h)!==i)throw new TypeError(n+h);for(var m=o(arguments,1),y,M=function(){if(this instanceof y){var j=h.apply(this,r(m,arguments));return Object(j)===j?j:this}return h.apply(c,r(m,arguments))},x=t(0,h.length-m.length),k=[],P=0;P<x;P++)k[P]="$"+P;if(y=Function("binder","return function ("+s(k,",")+"){ return binder.apply(this,arguments); }")(M),h.prototype){var F=function(){};F.prototype=h.prototype,y.prototype=new F,F.prototype=null}return y},kT}var TT,xH;function V6(){if(xH)return TT;xH=1;var n=rUe();return TT=Function.prototype.bind||n,TT}var RT,MH;function IL(){return MH||(MH=1,RT=Function.prototype.call),RT}var DT,wH;fu
Line truncated
|
||||
`," "],s=["{","}","|","\\","^","`"].concat(o),a=["'"].concat(s),c=["%","/","?",";","#"].concat(a),h=["/","?","#"],m=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,M=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},F=fUe();function j(G,Y,z){if(G&&typeof G=="object"&&G instanceof e)return G;var se=new e;return se.parse(G,Y,z),se}e.prototype.parse=function(G,Y,z){if(typeof G!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof G);var se=G.indexOf("?"),le=se!==-1&&se<G.indexOf("#")?"?":"#",me=G.split(le),de=/\\/g;me[0]=me[0].replace(de,"/"),G=me.join(le);var be=G;if(be=be.trim(),!z&&G.split("#").length===1){var Ee=r.exec(be);if(Ee)return this.path=be,this.href=be,this.pathname=Ee[1],Ee[2]?(this.search=Ee[2],Y?this.query=F.parse(this.search.substr(1)):this.query=this.search.substr(1)):Y&&(this.search="",this.query={}),this}var De=t.exec(be);if(De){De=De[0];var je=De.toLowerCase();this.protocol=je,be=be.substr(De.length)}if(z||De||be.match(/^\/\/[^@/]+@[^@/]+/)){var Ie=be.substr(0,2)==="//";Ie&&!(De&&k[De])&&(be=be.substr(2),this.slashes=!0)}if(!k[De]&&(Ie||De&&!P[De])){for(var Qe=-1,et=0;et<h.length;et++){var dt=be.indexOf(h[et]);dt!==-1&&(Qe===-1||dt<Qe)&&(Qe=dt)}var ke,we;Qe===-1?we=be.lastIndexOf("@"):we=be.lastIndexOf("@",Qe),we!==-1&&(ke=be.slice(0,we),be=be.slice(we+1),this.auth=decodeURIComponent(ke)),Qe=-1;for(var et=0;et<c.length;et++){var dt=be.indexOf(c[et]);dt!==-1&&(Qe===-1||dt<Qe)&&(Qe=dt)}Qe===-1&&(Qe=be.length),this.host=be.slice(0,Qe),be=be.slice(Qe),this.parseHost(),this.hostname=this.hostname||"";var ze=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ze)for(var xe=this.hostname.split(/\./),et=0,At=xe.length;et<At;et++){var it=xe[et];if(it&&!it.match(y)){for(var bt="",Bt=0,Ke=it.length;Bt<Ke;Bt++)it.charCodeAt(Bt)>127?bt+="x":bt+=it[Bt];if(!bt.match(y)){var Te=xe.slice(0,et),Se=xe.slice(et+1),Ne=it.match(M);Ne&&(Te.push(Ne[1]),Se.unshift(Ne[2])),Se.length&&(be="/"+Se.join(".")+be),this.hostname=Te.join(".");break}}}this.hostname.length>m?this.hostname="":this.hostname=this.hostname.toLowerCase(),ze||(this.hostname=n.toASCII(this.hostname));var ut=this.port?":"+this.port:"",rt=this.hostname||"";this.host=rt+ut,this.href+=this.host,ze&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),be[0]!=="/"&&(be="/"+be))}if(!x[je])for(var et=0,At=a.length;et<At;et++){var pt=a[et];if(be.indexOf(pt)!==-1){var Dt=encodeURIComponent(pt);Dt===pt&&(Dt=escape(pt)),be=be.split(pt).join(Dt)}}var Ot=be.indexOf("#");Ot!==-1&&(this.hash=be.substr(Ot),be=be.slice(0,Ot));var Jt=be.indexOf("?");if(Jt!==-1?(this.search=be.substr(Jt),this.query=be.substr(Jt+1),Y&&(this.query=F.parse(this.query)),be=be.slice(0,Jt)):Y&&(this.search="",this.query={}),be&&(this.pathname=be),P[je]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ut=this.pathname||"",Tn=this.search||"";this.path=ut+Tn}return this.href=this.format(),this};function q(G){return typeof G=="string"&&(G=j(G)),G instanceof e?G.format():e.prototype.format.call(G)}e.prototype.format=function(){var G=this.auth||"";G&&(G=encodeURIComponent(G),G=G.replace(/%3A/i,":"),G+="@");var Y=this.protocol||"",z=this.pathname||"",se=this.hash||"",le=!1,me="";this.host?le=G+this.host:this.hostname&&(le=G+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(le+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(me=F.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var de=this.search||me&&"?"+me||"";return Y&&Y.substr(-1)!==":"&&(Y+=":"),this.slashes||(!Y||P[Y])&&le!==!1?(le="//"+(le||""),z&&z.charAt(0)!=="/"&&(z="/"+z)):le||(le=""),se&&se.charAt(0)!=="#"&&(se="#"+se),de&&de.charAt(0)!=="?"&&(de="?"+de),z=z.replace(/[?#]/g,function(be){return encodeURIComponent(be)}),de=de.replace("#","%23"),Y+le+z+de+se};function V(G,Y){return j(G,!1,!0).resolve(Y)}e.prototype.resolve=function(G){return this.resolveObject(j(G,!1,!0)).format()};function H(G,Y){return G?j(G,!1,!0).resolveObject(Y):Y}return e.prototype.resolveObject=function(G){if(typeof G=="string"){var Y=new e;Y.parse(G,!1,!0),G=Y}for(var z=new e,se=Object.keys(this),le=0;le<se.length;le++){var me=se[le];z[me]=this[me]}if(z.hash=G.hash,G.href==="")return z.href=z.format(),z;if(G.slashes&&!G.protocol){for(var de=Object.keys(G),be=0;be<de.length;be++){var Ee=de[be];Ee!=="protocol"&&(z[Ee]=G[Ee])}return P[z.protocol]&&z.hostname&&!z.pathname&&(z.pathname="/",z.path=z.pathname),z.href=z.format(),z}if(G.protocol&&G.protocol!==z.protocol){if(!P[G.protocol]){for(var De=Object.keys(G),je=0;je<De.length;je++){var Ie=De[je];z[Ie]=G[Ie]}return z.href=z.format(),z}if(z.protocol=G.protocol,!G.host&&!k[G.protocol]){for(var At=(G.pathname||"").split("/");At.length&&!(G.host=At.shift()););G.host||(G.host=""),G.hostname||(G.hostname=""),At[0]!
Line truncated
|
||||
`),r=(li().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(li().s[10]++,this.exportName());li().s[11]++,QV.saveAs(r,o+".html")}async saveStyle(){li().f[3]++;const e=(li().s[12]++,this.tokenizedStyle());if(li().s[13]++,YV)li().b[2][1]++;else{li().b[2][0]++;const r=(li().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(li().s[15]++,this.exportName());li().s[16]++,QV.saveAs(r,o+".json"),li().s[17]++;return}let t=(li().s[18]++,this.props.fileHandle);if(li().s[19]++,t==null)if(li().b[3][0]++,li().s[20]++,t=await this.createFileHandle(),li().s[21]++,this.props.onSetFileHandle(t),li().s[22]++,t==null){li().b[4][0]++,li().s[23]++;return}else li().b[4][1]++;else li().b[3][1]++;const i=(li().s[24]++,await t.createWritable());li().s[25]++,await i.write(e),li().s[26]++,await i.close(),li().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){li().f[4]++;const e=(li().s[28]++,this.tokenizedStyle()),t=(li().s[29]++,await this.createFileHandle());if(li().s[30]++,this.props.onSetFileHandle(t),li().s[31]++,t==null){li().b[5][0]++,li().s[32]++;return}else li().b[5][1]++;const i=(li().s[33]++,await t.createWritable());li().s[34]++,await i.write(e),li().s[35]++,await i.close(),li().s[36]++,this.props.onOpenToggle()}async createFileHandle(){li().f[5]++;const e=(li().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(li().s[38]++,await window.showSaveFilePicker(e));return li().s[39]++,this.props.onSetFileHandle(t),li().s[40]++,t}changeMetadataProperty(e,t){li().f[6]++;const i=(li().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});li().s[42]++,this.props.onStyleChanged(i)}render(){li().f[7]++;const e=(li().s[43]++,this.props.t),t=(li().s[44]++,iae(e));return li().s[45]++,ie.jsx(C1,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:ie.jsxs("section",{className:"maputnik-modal-section",children:[ie.jsx("h1",{children:e("Save Style")}),ie.jsx("p",{children:e("Save the JSON style to your computer.")}),ie.jsxs("div",{children:[ie.jsx(md,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(li().b[6][0]++,this.props.mapStyle.metadata||(li().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),ie.jsx(md,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(li().b[7][0]++,this.props.mapStyle.metadata||(li().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),ie.jsx(md,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(li().b[8][0]++,this.props.mapStyle.metadata||(li().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),ie.jsx(md,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(li().b[9][0]++,this.props.mapStyle.metadata||(li().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),ie.jsxs("div",{className:"maputnik-modal-export-buttons",children:[ie.jsxs(Zs,{onClick:this.saveStyle.bind(this),children:[ie.jsx(w9,{}),e("Save")]}),(li().b[10][0]++,YV&&(li().b[10][1]++,ie.jsxs(Zs,{onClick:this.saveStyleAs.bind(this),children:[ie.jsx(w9,{}),e("Save as")]}))),ie.jsxs(Zs,{onClick:this.createHtml.bind(this),children:[ie.jsx(Wfe,{}),e("Create HTML")]})]})]})})}}const iPe=(li().s[46]++,No()(nPe));function G4(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return G4=function(){return s},s}G4();G4().s[0]++;const aae=n=>(G4().f[0]++,G4().s[1]++,ie.jsx(Ry,{label:n.label,children:ie.jsx(Bw,{...n})}));function W4(){var n="/home/runner/work/maputnik/maputnik/src/components/Fi
Line truncated
|
||||
`)>=0)return!1;return!0}function Le(ye,Be){var v;if(ye.indent===" ")v=" ";else if(typeof ye.indent=="number"&&ye.indent>0)v=se.call(Array(ye.indent+1)," ");else return null;return{base:v,prev:se.call(Array(Be+1),v)}}function Ve(ye,Be){if(ye.length===0)return"";var v=`
|
||||
`+Be.prev+Be.base;return v+se.call(ye,","+v)+`
|
||||
`+Be.prev}function rt(ye,Be){var v=Bt(ye),yt=[];if(v){yt.length=ye.length;for(var Mt=0;Mt<ye.length;Mt++)yt[Mt]=Jt(ye,Mt)?Be(ye[Mt],ye):""}var Pt=typeof ve=="function"?ve(ye):[],en;if(Re){en={};for(var mt=0;mt<Pt.length;mt++)en["$"+Pt[mt]]=Pt[mt]}for(var Qn in ye)Jt(ye,Qn)&&(v&&String(Number(Qn))===Qn&&Qn<ye.length||Re&&en["$"+Qn]instanceof Symbol||(Y.call(/[^\w$]/,Qn)?yt.push(Be(Qn,ye)+": "+Be(ye[Qn],ye)):yt.push(Qn+": "+Be(ye[Qn],ye))));if(typeof ve=="function")for(var Xn=0;Xn<Pt.length;Xn++)Ie.call(ye,Pt[Xn])&&yt.push("["+Be(Pt[Xn])+"]: "+Be(ye[Pt[Xn]],ye));return yt}return aT}var lT,JV;function FPe(){if(JV)return lT;JV=1;var n=V6(),e=Zx(),t=function(a,c,h){for(var m=a,y;(y=m.next)!=null;m=y)if(y.key===c)return m.next=y.next,h||(y.next=a.next,a.next=y),y},i=function(a,c){if(a){var h=t(a,c);return h&&h.value}},r=function(a,c,h){var m=t(a,c);m?m.value=h:a.next={key:c,next:a.next,value:h}},o=function(a,c){return a?!!t(a,c):!1},s=function(a,c){if(a)return t(a,c,!0)};return lT=function(){var c,h={assert:function(m){if(!h.has(m))throw new e("Side channel does not contain "+n(m))},delete:function(m){var y=c&&c.next,M=s(c,m);return M&&y&&y===M&&(c=void 0),!!M},get:function(m){return i(c,m)},has:function(m){return o(c,m)},set:function(m,y){c||(c={next:void 0}),r(c,m,y)}};return h},lT}var uT,eH;function hae(){return eH||(eH=1,uT=Object),uT}var cT,tH;function zPe(){return tH||(tH=1,cT=Error),cT}var AT,nH;function jPe(){return nH||(nH=1,AT=EvalError),AT}var hT,iH;function NPe(){return iH||(iH=1,hT=RangeError),hT}var dT,rH;function GPe(){return rH||(rH=1,dT=ReferenceError),dT}var fT,oH;function WPe(){return oH||(oH=1,fT=SyntaxError),fT}var pT,sH;function QPe(){return sH||(sH=1,pT=URIError),pT}var mT,aH;function qPe(){return aH||(aH=1,mT=Math.abs),mT}var gT,lH;function YPe(){return lH||(lH=1,gT=Math.floor),gT}var yT,uH;function $Pe(){return uH||(uH=1,yT=Math.max),yT}var vT,cH;function VPe(){return cH||(cH=1,vT=Math.min),vT}var bT,AH;function HPe(){return AH||(AH=1,bT=Math.pow),bT}var CT,hH;function ZPe(){return hH||(hH=1,CT=Math.round),CT}var _T,dH;function XPe(){return dH||(dH=1,_T=Number.isNaN||function(e){return e!==e}),_T}var xT,fH;function JPe(){if(fH)return xT;fH=1;var n=XPe();return xT=function(t){return n(t)||t===0?t:t<0?-1:1},xT}var MT,pH;function eUe(){return pH||(pH=1,MT=Object.getOwnPropertyDescriptor),MT}var wT,mH;function dae(){if(mH)return wT;mH=1;var n=eUe();if(n)try{n([],"length")}catch{n=null}return wT=n,wT}var ST,gH;function tUe(){if(gH)return ST;gH=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return ST=n,ST}var ET,yH;function nUe(){return yH||(yH=1,ET=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==r||a.enumerable!==!0)return!1}return!0}),ET}var OT,vH;function iUe(){if(vH)return OT;vH=1;var n=typeof Symbol<"u"&&Symbol,e=nUe();return OT=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},OT}var BT,bH;function fae(){return bH||(bH=1,BT=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),BT}var IT,CH;function pae(){if(CH)return IT;CH=1;var n=hae();return IT=n.getPrototypeOf||null,IT}var kT,_H;function rUe(){if(_H)return kT;_H=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(c,h){for(var m=[],y=0;y<c.length;y+=1)m[y]=c[y];for(var M=0;M<h.length;M+=1)m[M+c.length]=h[M];return m},o=function(c,h){for(var m=[],y=h,M=0;y<c.length;y+=1,M+=1)m[M]=c[y];return m},s=function(a,c){for(var h="",m=0;m<a.length;m+=1)h+=a[m],m+1<a.length&&(h+=c);return h};return kT=function(c){var h=this;if(typeof h!="function"||e.apply(h)!==i)throw new TypeError(n+h);for(var m=o(arguments,1),y,M=function(){if(this instanceof y){var j=h.apply(this,r(m,arguments));return Object(j)===j?j:this}return h.apply(c,r(m,arguments))},x=t(0,h.length-m.length),T=[],P=0;P<x;P++)T[P]="$"+P;if(y=Function("binder","return function ("+s(T,",")+"){ return binder.apply(this,arguments); }")(M),h.prototype){var F=function(){};F.prototype=h.prototype,y.prototype=new F,F.prototype=null}return y},kT}var TT,xH;function H6(){if(xH)return TT;xH=1;var n=rUe();return TT=Function.prototype.bind||n,TT}var RT,MH;function IL(){return MH||(MH=1,RT=Function.prototype.call),RT}var DT,wH;fu
Line truncated
|
||||
`," "],s=["{","}","|","\\","^","`"].concat(o),a=["'"].concat(s),c=["%","/","?",";","#"].concat(a),h=["/","?","#"],m=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,M=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},F=fUe();function j(Q,Y,z){if(Q&&typeof Q=="object"&&Q instanceof e)return Q;var se=new e;return se.parse(Q,Y,z),se}e.prototype.parse=function(Q,Y,z){if(typeof Q!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof Q);var se=Q.indexOf("?"),le=se!==-1&&se<Q.indexOf("#")?"?":"#",pe=Q.split(le),de=/\\/g;pe[0]=pe[0].replace(de,"/"),Q=pe.join(le);var ve=Q;if(ve=ve.trim(),!z&&Q.split("#").length===1){var Ee=r.exec(ve);if(Ee)return this.path=ve,this.href=ve,this.pathname=Ee[1],Ee[2]?(this.search=Ee[2],Y?this.query=F.parse(this.search.substr(1)):this.query=this.search.substr(1)):Y&&(this.search="",this.query={}),this}var Re=t.exec(ve);if(Re){Re=Re[0];var je=Re.toLowerCase();this.protocol=je,ve=ve.substr(Re.length)}if(z||Re||ve.match(/^\/\/[^@/]+@[^@/]+/)){var Ie=ve.substr(0,2)==="//";Ie&&!(Re&&T[Re])&&(ve=ve.substr(2),this.slashes=!0)}if(!T[Re]&&(Ie||Re&&!P[Re])){for(var qe=-1,tt=0;tt<h.length;tt++){var At=ve.indexOf(h[tt]);At!==-1&&(qe===-1||At<qe)&&(qe=At)}var ke,we;qe===-1?we=ve.lastIndexOf("@"):we=ve.lastIndexOf("@",qe),we!==-1&&(ke=ve.slice(0,we),ve=ve.slice(we+1),this.auth=decodeURIComponent(ke)),qe=-1;for(var tt=0;tt<c.length;tt++){var At=ve.indexOf(c[tt]);At!==-1&&(qe===-1||At<qe)&&(qe=At)}qe===-1&&(qe=ve.length),this.host=ve.slice(0,qe),ve=ve.slice(qe),this.parseHost(),this.hostname=this.hostname||"";var ze=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ze)for(var Me=this.hostname.split(/\./),tt=0,lt=Me.length;tt<lt;tt++){var nt=Me[tt];if(nt&&!nt.match(y)){for(var bt="",Bt=0,Ke=nt.length;Bt<Ke;Bt++)nt.charCodeAt(Bt)>127?bt+="x":bt+=nt[Bt];if(!bt.match(y)){var Te=Me.slice(0,tt),Se=Me.slice(tt+1),We=nt.match(M);We&&(Te.push(We[1]),Se.unshift(We[2])),Se.length&&(ve="/"+Se.join(".")+ve),this.hostname=Te.join(".");break}}}this.hostname.length>m?this.hostname="":this.hostname=this.hostname.toLowerCase(),ze||(this.hostname=n.toASCII(this.hostname));var at=this.port?":"+this.port:"",it=this.hostname||"";this.host=it+at,this.href+=this.host,ze&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ve[0]!=="/"&&(ve="/"+ve))}if(!x[je])for(var tt=0,lt=a.length;tt<lt;tt++){var ft=a[tt];if(ve.indexOf(ft)!==-1){var Dt=encodeURIComponent(ft);Dt===ft&&(Dt=escape(ft)),ve=ve.split(ft).join(Dt)}}var Ot=ve.indexOf("#");Ot!==-1&&(this.hash=ve.substr(Ot),ve=ve.slice(0,Ot));var Jt=ve.indexOf("?");if(Jt!==-1?(this.search=ve.substr(Jt),this.query=ve.substr(Jt+1),Y&&(this.query=F.parse(this.query)),ve=ve.slice(0,Jt)):Y&&(this.search="",this.query={}),ve&&(this.pathname=ve),P[je]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var at=this.pathname||"",Dn=this.search||"";this.path=at+Dn}return this.href=this.format(),this};function q(Q){return typeof Q=="string"&&(Q=j(Q)),Q instanceof e?Q.format():e.prototype.format.call(Q)}e.prototype.format=function(){var Q=this.auth||"";Q&&(Q=encodeURIComponent(Q),Q=Q.replace(/%3A/i,":"),Q+="@");var Y=this.protocol||"",z=this.pathname||"",se=this.hash||"",le=!1,pe="";this.host?le=Q+this.host:this.hostname&&(le=Q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(le+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(pe=F.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var de=this.search||pe&&"?"+pe||"";return Y&&Y.substr(-1)!==":"&&(Y+=":"),this.slashes||(!Y||P[Y])&&le!==!1?(le="//"+(le||""),z&&z.charAt(0)!=="/"&&(z="/"+z)):le||(le=""),se&&se.charAt(0)!=="#"&&(se="#"+se),de&&de.charAt(0)!=="?"&&(de="?"+de),z=z.replace(/[?#]/g,function(ve){return encodeURIComponent(ve)}),de=de.replace("#","%23"),Y+le+z+de+se};function V(Q,Y){return j(Q,!1,!0).resolve(Y)}e.prototype.resolve=function(Q){return this.resolveObject(j(Q,!1,!0)).format()};function H(Q,Y){return Q?j(Q,!1,!0).resolveObject(Y):Y}return e.prototype.resolveObject=function(Q){if(typeof Q=="string"){var Y=new e;Y.parse(Q,!1,!0),Q=Y}for(var z=new e,se=Object.keys(this),le=0;le<se.length;le++){var pe=se[le];z[pe]=this[pe]}if(z.hash=Q.hash,Q.href==="")return z.href=z.format(),z;if(Q.slashes&&!Q.protocol){for(var de=Object.keys(Q),ve=0;ve<de.length;ve++){var Ee=de[ve];Ee!=="protocol"&&(z[Ee]=Q[Ee])}return P[z.protocol]&&z.hostname&&!z.pathname&&(z.pathname="/",z.path=z.pathname),z.href=z.format(),z}if(Q.protocol&&Q.protocol!==z.protocol){if(!P[Q.protocol]){for(var Re=Object.keys(Q),je=0;je<Re.length;je++){var Ie=Re[je];z[Ie]=Q[Ie]}return z.href=z.format(),z}if(z.protocol=Q.protocol,!Q.host&&!T[Q.protocol]){for(var lt=(Q.pathname||"").split("/");lt.length&&!(Q.host=lt.shift()););Q.host||(Q.host=""),Q.hostname||(Q.hostname=""),lt[0]!
Line truncated
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
@@ -996,5 +1053,5 @@ and limitations under the License.
|
||||
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
||||
* https://github.com/pladaria/reconnecting-websocket
|
||||
* License MIT
|
||||
*/var EUe=function(){if(typeof WebSocket<"u")return WebSocket},OUe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},nb={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){r._debug("open event");var s=r._options.minUptime,a=s===void 0?nb.minUptime:s;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},a),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(c){return r._ws.send(c)}),r._messageQueue=[],r.onopen&&r.onopen(o),r._listeners.open.forEach(function(c){return r._callEventListener(o,c)})},this._handleMessage=function(o){r._debug("message event"),r.onmessage&&r.onmessage(o),r._listeners.message.forEach(function(s){return r._callEventListener(o,s)})},this._handleError=function(o){r._debug("error event",o.message),r._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(o),r._debug("exec error listeners"),r._listeners.error.forEach(function(s){return r._callEventListener(o,s)}),r._connect()},this._handleClose=function(o){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(o),r._listeners.close.forEach(function(s){return r._callEventListener(o,s)})},this._url=e,this._protocols=t,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,i=t===void 0?nb.maxEnqueuedMessages:t;this._messageQueue.length<i&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,i,r=this._listeners[e.type];if(r)try{for(var o=_Ue(r),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(e,a)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
|
||||
//# sourceMappingURL=index-BWjjIHLE.js.map
|
||||
*/var EUe=function(){if(typeof WebSocket<"u")return WebSocket},OUe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},rb={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){r._debug("open event");var s=r._options.minUptime,a=s===void 0?rb.minUptime:s;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},a),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(c){return r._ws.send(c)}),r._messageQueue=[],r.onopen&&r.onopen(o),r._listeners.open.forEach(function(c){return r._callEventListener(o,c)})},this._handleMessage=function(o){r._debug("message event"),r.onmessage&&r.onmessage(o),r._listeners.message.forEach(function(s){return r._callEventListener(o,s)})},this._handleError=function(o){r._debug("error event",o.message),r._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(o),r._debug("exec error listeners"),r._listeners.error.forEach(function(s){return r._callEventListener(o,s)}),r._connect()},this._handleClose=function(o){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(o),r._listeners.close.forEach(function(s){return r._callEventListener(o,s)})},this._url=e,this._protocols=t,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,i=t===void 0?rb.maxEnqueuedMessages:t;this._messageQueue.length<i&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,i,r=this._listeners[e.type];if(r)try{for(var o=_Ue(r),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(e,a)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
|
||||
//# sourceMappingURL=index-Dwi5NagZ.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"mappings":";;;;;;;;8CAWA,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;;;;;;;;8CCQnB,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,EAA0BD,EAAc,UAAY,IAAID,EAC5DE,EAAuB,YAAcD,EACrCT,EAAOU,EAAwBR,EAAU,SAAS,EAClDQ,EAAuB,qBAAuB,GAC9C,IAAIC,EAAc,MAAM,QACxB,SAASC,GAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,GAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,GAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,EAAMA,CAAI,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,EAAYJ,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,EAAYuB,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,Line truncated
|
||||
{"version":3,"mappings":";;;;;;;;8CAWA,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;;;;;;;;8CCQnB,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,EAA0BD,EAAc,UAAY,IAAID,EAC5DE,EAAuB,YAAcD,EACrCT,EAAOU,EAAwBR,EAAU,SAAS,EAClDQ,EAAuB,qBAAuB,GAC9C,IAAIC,EAAc,MAAM,QACxB,SAASC,GAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,GAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,GAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,EAAMA,CAAI,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,EAAYJ,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,EAAYuB,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,Line truncated
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-BWjjIHLE.js"></script>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-Dwi5NagZ.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-DvGsSjRx.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user