diff --git a/cgpv-main.js b/cgpv-main.js index e07c02f1e3f..afe776a4115 100644 --- a/cgpv-main.js +++ b/cgpv-main.js @@ -1,4 +1,4 @@ -/*! Package:cgpv-main: 1.0.0 - "6681fca797712ebe27b4e86ce66a0603dc1bb5ba" - 2024-09-12T15:23:04.870Z */(()=>{var e,t,n,r={92394:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--v):0,m--,10===b&&(m=1,g--),b}function C(){return b=v2||_(b)>3?"":" "}function L(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,k()+(t<6&&32==E()&&32==C()))}function R(e){for(;C();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&R(b);break;case 40:41===e&&R(e);break;case 92:C()}return v}function j(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+T(t,v-1)+"*"+o(47===e?e:C())}function F(e){for(;!_(E());)C();return T(e,v)}var D="-ms-",N="-moz-",B="-webkit-",z="comm",V="rule",$="decl",G="@keyframes";function U(e,t){for(var n="",r=p(e),i=0;i0&&h(N)-y&&f(b>32?X(N+";",r,n,y-1):X(l(N," ","")+";",r,n,y-2),p);break;case 59:N+=";";default:if(f(D=Y(N,t,n,g,m,i,d,O,P=[],R=[],y),a),123===_)if(0===m)H(N,t,D,D,P,a,y,d,R);else switch(99===v&&110===u(N,3)?100:v){case 100:case 108:case 109:case 115:H(e,D,D,r&&f(Y(e,D,D,0,0,i,d,O,i,P=[],y),R),i,R,y,d,r?P:R);break;default:H(N,D,D,D,[""],R,0,d,R)}}g=m=b=0,x=T=1,O=N="",y=s;break;case 58:y=1+h(N),b=w;default:if(x<1)if(123==_)--x;else if(125==_&&0==x++&&125==S())continue;switch(N+=o(_),_*x){case 38:T=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(h(N)-1)*T,T=1;break;case 64:45===E()&&(N+=I(C())),v=E(),m=y=h(O=N+=F(k())),_++;break;case 45:45===w&&2==h(N)&&(x=0)}}return a}function Y(e,t,n,r,o,a,c,u,h,f,g){for(var m=o-1,y=0===o?a:[""],v=p(y),b=0,w=0,A=0;b0?y[S]+" "+C:l(C,/&\f/g,y[S])))&&(h[A++]=E);return x(e,t,n,0===o?V:u,h,f,g)}function K(e,t,n){return x(e,t,n,z,o(b),d(e,2,-2),0)}function X(e,t,n,r){return x(e,t,n,$,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!_(i);)C();return T(e,v)},J=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(_(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(O(e),t))},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=ne(e.value,e.length);break;case G:return U([A(e,{value:l(e.value,"@","@"+B)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([A(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([A(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||re,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},10280:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(30538),i=n(92394),o=(n(81930),n(14950),r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null)),a=o.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(o);return e(t,i,n)}))},l=r.createContext({})},1643:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(10280),i=n(30538),o=n(37125),a=n(14950),s=n(81930),l=(n(92394),n(78535),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T)),c=i.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(50098),o=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"},h="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function p(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return f={name:i.name,styles:i.styles,next:f},i.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:f}}},14950:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var i=n(30538),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},37125:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},22784:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(80417),o=n(44928),a=n(97282);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function c(){return!0}function u(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=l,isEnabled:h=c,open:p}=e,f=r.useRef(!1),g=r.useRef(null),m=r.useRef(null),y=r.useRef(null),v=r.useRef(null),b=r.useRef(!1),w=r.useRef(null),x=(0,i.A)(t.ref,w),A=r.useRef(null);r.useEffect((()=>{p&&w.current&&(b.current=!n)}),[n,p]),r.useEffect((()=>{if(!p||!w.current)return;const e=(0,o.A)(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{u||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}}),[p]),r.useEffect((()=>{if(!p||!w.current)return;const e=(0,o.A)(w.current),t=t=>{A.current=t,!s&&h()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(f.current=!0,m.current&&m.current.focus())},n=()=>{const t=w.current;if(null===t)return;if(!e.hasFocus()||!h()||f.current)return void(f.current=!1);if(t.contains(e.activeElement))return;if(s&&e.activeElement!==g.current&&e.activeElement!==m.current)return;if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!b.current)return;let n=[];if(e.activeElement!==g.current&&e.activeElement!==m.current||(n=d(w.current)),n.length>0){var r,i;const e=Boolean((null==(r=A.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=A.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,s,u,h,p,d]);const S=e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0,v.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:m,"data-testid":"sentinelEnd"})]})}},71798:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},63796:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},19:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},54923:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},89426:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},54685:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},49389:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},53817:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},37358:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge")},9010:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},7930:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall")},43673:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle")},3140:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),(0,o.jsx)("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")],"DynamicFeed")},71837:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},58760:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},89840:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt")},98143:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},48502:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z"}),"FilterListOff")},66044:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},11912:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen")},96584:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit")},20348:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"},"0"),(0,o.jsx)("path",{d:"m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"},"1")],"KeyboardDoubleArrowDown")},58978:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},24972:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz")},59675:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},77446:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"}),"PushPin")},48679:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt")},13472:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},53073:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},23592:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),(0,o.jsx)("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff")},15497:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},87019:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"}),"SyncAlt")},6382:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},16440:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},639:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},90698:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},58211:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},53939:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward")},70524:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},74681:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},57e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-5.04-6.71-2.75 3.54-1.96-2.36L6.5 17h11z"}),"CropOriginal")},31626:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},32556:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M21 6.5c-1.66 0-3 1.34-3 3 0 .07 0 .14.01.21l-2.03.68c-.64-1.21-1.82-2.09-3.22-2.32V5.91C14.04 5.57 15 4.4 15 3c0-1.66-1.34-3-3-3S9 1.34 9 3c0 1.4.96 2.57 2.25 2.91v2.16c-1.4.23-2.58 1.11-3.22 2.32l-2.04-.68C6 9.64 6 9.57 6 9.5c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3c1.06 0 1.98-.55 2.52-1.37l2.03.68c-.2 1.29.17 2.66 1.09 3.69l-1.41 1.77Q6.66 17 6 17c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3c0-.68-.22-1.3-.6-1.8l1.41-1.77c1.36.76 3.02.75 4.37 0l1.41 1.77c-.37.5-.59 1.12-.59 1.8 0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3c-.44 0-.85.09-1.23.26l-1.41-1.77c.93-1.04 1.29-2.4 1.09-3.69l2.03-.68c.53.82 1.46 1.37 2.52 1.37 1.66 0 3-1.34 3-3S22.66 6.5 21 6.5m-18 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1M6 21c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m5-18c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m1 12c-1.38 0-2.5-1.12-2.5-2.5S10.62 10 12 10s2.5 1.12 2.5 2.5S13.38 15 12 15m6 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m3-8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"HubOutlined")},43599:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},43373:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27zm0-11.47L17.74 9 12 13.47 6.26 9z"}),"LayersOutlined")},97395:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z"}),"Map")},50800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},88598:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5m-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18z"}),"QueryStats")},11288:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMark")},11896:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M5 4.99h3C8 6.65 6.66 8 5 8zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.87 12 5 12m0 6 3.5-4.5 2.5 3.01L14.5 12l4.5 6z"}),"Satellite")},13162:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M13 10h5l3-3-3-3h-5V2h-2v2H4v6h7v2H6l-3 3 3 3h5v4h2v-4h7v-6h-7z"}),"Signpost")},92940:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},52860:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m0 2v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1z"}),"TableView")},48408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28539)},44912:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(30538),i=n(87286),o=n(41880),a=n(64497),s=n(93909),l=n(1835),c=n(97282);var u=n(20738),d=n(73416),h=n(7950);const p=(0,n(10383).A)("MuiBox",["root"]),f=(0,d.A)(),g=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:u="MuiBox-root",generateClassName:d}=e,h=(0,o.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(a.A);return r.forwardRef((function(e,r){const o=(0,l.A)(n),{className:a,component:p="div",...f}=(0,s.A)(e);return(0,c.jsx)(h,{as:p,ref:r,className:(0,i.A)(a,d?d(u):u),theme:t&&o[t]||o,...f})}))}({themeId:h.A,defaultTheme:f,defaultClassName:p.root,generateClassName:u.A.generate}),m=g},18443:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(30538),i=n(87286),o=n(22554),a=n(12370),s=n(48678),l=n(56239),c=n(22626),u=n(56104),d=n(23846);class h{static create(){return new h}static use(){const e=(0,d.A)(h.create).current,[t,n]=r.useState(!1);return e.shouldMount=t,e.setShouldMount=n,r.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}var p=n(37091),f=n(83108),g=n(1643),m=n(97282);const y=function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:a,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,p]=r.useState(!1),f=(0,i.A)(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:l,height:l,top:-l/2+s,left:-l/2+a},y=(0,i.A)(n.child,h&&n.childLeaving,o&&n.childPulsate);return c||h||p(!0),r.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,m.jsx)("span",{className:f,style:g,children:(0,m.jsx)("span",{className:y})})};var v=n(10383);const b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),w=g.i7` +/*! Package:cgpv-main: 1.0.0 - "db4aefa4af7715f045684f8115f2202893ded423" - 2024-09-13T11:36:40.907Z */(()=>{var e,t,n,r={92394:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--v):0,m--,10===b&&(m=1,g--),b}function C(){return b=v2||_(b)>3?"":" "}function L(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,k()+(t<6&&32==E()&&32==C()))}function R(e){for(;C();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&R(b);break;case 40:41===e&&R(e);break;case 92:C()}return v}function j(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+T(t,v-1)+"*"+o(47===e?e:C())}function F(e){for(;!_(E());)C();return T(e,v)}var D="-ms-",N="-moz-",B="-webkit-",z="comm",V="rule",$="decl",G="@keyframes";function U(e,t){for(var n="",r=p(e),i=0;i0&&h(N)-y&&f(b>32?X(N+";",r,n,y-1):X(l(N," ","")+";",r,n,y-2),p);break;case 59:N+=";";default:if(f(D=Y(N,t,n,g,m,i,d,O,P=[],R=[],y),a),123===_)if(0===m)H(N,t,D,D,P,a,y,d,R);else switch(99===v&&110===u(N,3)?100:v){case 100:case 108:case 109:case 115:H(e,D,D,r&&f(Y(e,D,D,0,0,i,d,O,i,P=[],y),R),i,R,y,d,r?P:R);break;default:H(N,D,D,D,[""],R,0,d,R)}}g=m=b=0,x=T=1,O=N="",y=s;break;case 58:y=1+h(N),b=w;default:if(x<1)if(123==_)--x;else if(125==_&&0==x++&&125==S())continue;switch(N+=o(_),_*x){case 38:T=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(h(N)-1)*T,T=1;break;case 64:45===E()&&(N+=I(C())),v=E(),m=y=h(O=N+=F(k())),_++;break;case 45:45===w&&2==h(N)&&(x=0)}}return a}function Y(e,t,n,r,o,a,c,u,h,f,g){for(var m=o-1,y=0===o?a:[""],v=p(y),b=0,w=0,A=0;b0?y[S]+" "+C:l(C,/&\f/g,y[S])))&&(h[A++]=E);return x(e,t,n,0===o?V:u,h,f,g)}function K(e,t,n){return x(e,t,n,z,o(b),d(e,2,-2),0)}function X(e,t,n,r){return x(e,t,n,$,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!_(i);)C();return T(e,v)},J=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(_(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(O(e),t))},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=ne(e.value,e.length);break;case G:return U([A(e,{value:l(e.value,"@","@"+B)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([A(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([A(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||re,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},10280:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(30538),i=n(92394),o=(n(81930),n(14950),r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null)),a=o.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(o);return e(t,i,n)}))},l=r.createContext({})},1643:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(10280),i=n(30538),o=n(37125),a=n(14950),s=n(81930),l=(n(92394),n(78535),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T)),c=i.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(50098),o=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,i.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"},h="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function p(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return f={name:i.name,styles:i.styles,next:f},i.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:f}}},14950:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var i=n(30538),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},37125:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},22784:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(80417),o=n(44928),a=n(97282);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function c(){return!0}function u(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=l,isEnabled:h=c,open:p}=e,f=r.useRef(!1),g=r.useRef(null),m=r.useRef(null),y=r.useRef(null),v=r.useRef(null),b=r.useRef(!1),w=r.useRef(null),x=(0,i.A)(t.ref,w),A=r.useRef(null);r.useEffect((()=>{p&&w.current&&(b.current=!n)}),[n,p]),r.useEffect((()=>{if(!p||!w.current)return;const e=(0,o.A)(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{u||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}}),[p]),r.useEffect((()=>{if(!p||!w.current)return;const e=(0,o.A)(w.current),t=t=>{A.current=t,!s&&h()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(f.current=!0,m.current&&m.current.focus())},n=()=>{const t=w.current;if(null===t)return;if(!e.hasFocus()||!h()||f.current)return void(f.current=!1);if(t.contains(e.activeElement))return;if(s&&e.activeElement!==g.current&&e.activeElement!==m.current)return;if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!b.current)return;let n=[];if(e.activeElement!==g.current&&e.activeElement!==m.current||(n=d(w.current)),n.length>0){var r,i;const e=Boolean((null==(r=A.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=A.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,s,u,h,p,d]);const S=e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0,v.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:m,"data-testid":"sentinelEnd"})]})}},71798:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},63796:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},19:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},54923:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},89426:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},54685:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},49389:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},53817:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},37358:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge")},9010:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},7930:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall")},43673:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle")},3140:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),(0,o.jsx)("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")],"DynamicFeed")},71837:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},58760:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},89840:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt")},98143:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},48502:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z"}),"FilterListOff")},66044:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},11912:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen")},96584:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit")},20348:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"},"0"),(0,o.jsx)("path",{d:"m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"},"1")],"KeyboardDoubleArrowDown")},58978:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},24972:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz")},59675:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},77446:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"}),"PushPin")},48679:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt")},13472:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},53073:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},23592:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),(0,o.jsx)("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff")},15497:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},87019:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"}),"SyncAlt")},6382:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},16440:(e,t,n)=>{"use strict";var r=n(67975);t.A=void 0;var i=r(n(48408)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},639:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},90698:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},58211:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},53939:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward")},70524:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},74681:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},57e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-5.04-6.71-2.75 3.54-1.96-2.36L6.5 17h11z"}),"CropOriginal")},31626:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},32556:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M21 6.5c-1.66 0-3 1.34-3 3 0 .07 0 .14.01.21l-2.03.68c-.64-1.21-1.82-2.09-3.22-2.32V5.91C14.04 5.57 15 4.4 15 3c0-1.66-1.34-3-3-3S9 1.34 9 3c0 1.4.96 2.57 2.25 2.91v2.16c-1.4.23-2.58 1.11-3.22 2.32l-2.04-.68C6 9.64 6 9.57 6 9.5c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3c1.06 0 1.98-.55 2.52-1.37l2.03.68c-.2 1.29.17 2.66 1.09 3.69l-1.41 1.77Q6.66 17 6 17c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3c0-.68-.22-1.3-.6-1.8l1.41-1.77c1.36.76 3.02.75 4.37 0l1.41 1.77c-.37.5-.59 1.12-.59 1.8 0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3c-.44 0-.85.09-1.23.26l-1.41-1.77c.93-1.04 1.29-2.4 1.09-3.69l2.03-.68c.53.82 1.46 1.37 2.52 1.37 1.66 0 3-1.34 3-3S22.66 6.5 21 6.5m-18 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1M6 21c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m5-18c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m1 12c-1.38 0-2.5-1.12-2.5-2.5S10.62 10 12 10s2.5 1.12 2.5 2.5S13.38 15 12 15m6 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m3-8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"HubOutlined")},43599:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},43373:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27zm0-11.47L17.74 9 12 13.47 6.26 9z"}),"LayersOutlined")},97395:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z"}),"Map")},50800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},88598:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5m-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18z"}),"QueryStats")},11288:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMark")},11896:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M5 4.99h3C8 6.65 6.66 8 5 8zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.87 12 5 12m0 6 3.5-4.5 2.5 3.01L14.5 12l4.5 6z"}),"Satellite")},13162:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M13 10h5l3-3-3-3h-5V2h-2v2H4v6h7v2H6l-3 3 3 3h5v4h2v-4h7v-6h-7z"}),"Signpost")},92940:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},52860:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(33071),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m0 2v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1z"}),"TableView")},48408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28539)},44912:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(30538),i=n(87286),o=n(41880),a=n(64497),s=n(93909),l=n(1835),c=n(97282);var u=n(20738),d=n(73416),h=n(7950);const p=(0,n(10383).A)("MuiBox",["root"]),f=(0,d.A)(),g=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:u="MuiBox-root",generateClassName:d}=e,h=(0,o.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(a.A);return r.forwardRef((function(e,r){const o=(0,l.A)(n),{className:a,component:p="div",...f}=(0,s.A)(e);return(0,c.jsx)(h,{as:p,ref:r,className:(0,i.A)(a,d?d(u):u),theme:t&&o[t]||o,...f})}))}({themeId:h.A,defaultTheme:f,defaultClassName:p.root,generateClassName:u.A.generate}),m=g},18443:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(30538),i=n(87286),o=n(22554),a=n(12370),s=n(48678),l=n(56239),c=n(22626),u=n(56104),d=n(23846);class h{static create(){return new h}static use(){const e=(0,d.A)(h.create).current,[t,n]=r.useState(!1);return e.shouldMount=t,e.setShouldMount=n,r.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}var p=n(37091),f=n(83108),g=n(1643),m=n(97282);const y=function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:a,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,p]=r.useState(!1),f=(0,i.A)(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:l,height:l,top:-l/2+s,left:-l/2+a},y=(0,i.A)(n.child,h&&n.childLeaving,o&&n.childPulsate);return c||h||p(!0),r.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,m.jsx)("span",{className:f,style:g,children:(0,m.jsx)("span",{className:y})})};var v=n(10383);const b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),w=g.i7` 0% { transform: scale(0); opacity: 0.1; @@ -85,7 +85,7 @@ function v(e,t){return y(e,t)}["a","abbr","address","area","article","aside","au || ${s} === "boolean" || ${i} === null`).assign(l,a._`[${i}]`)}}r.else(),f(e),r.endIf(),r.if(a._`${l} !== undefined`,(()=>{r.assign(i,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${n}]`,r)))}(e,l)}))}(e,t,s):f(e)}))}return c};const u=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=l.Correct){const i=r===l.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===l.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function h(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=(0,s.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=(0,a.and)(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=h;const p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,s.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,p)}t.reportTypeError=f},20072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(29775),i=n(98057);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const c=r._`${s}${(0,r.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${c}`);let u=r._`${c} === undefined`;"empty"===l.useDefaults&&(u=r._`${u} || ${c} === null || ${c} === ""`),o.if(u,r._`${c} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},91716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(26093),i=n(42242),o=n(33197),a=n(42242),s=n(20072),l=n(78671),c=n(14821),u=n(29775),d=n(36009),h=n(54533),p=n(98057),f=n(49846);function g({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,u._`${d.default.data}, ${d.default.valCxt}`,r.$async,(()=>{e.code(u._`"use strict"; ${m(n,i)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,u._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,u._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,u._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,u._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,u._`""`),e.var(d.default.parentData,u._`undefined`),e.var(d.default.parentDataProperty,u._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(o)})):e.func(t,u._`${d.default.data}, ${function(e){return u._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?u._`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,r.$async,(()=>e.code(m(n,i)).code(o)))}function m(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function y(e,t){b(e)&&(w(e),v(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&A(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);x(e,o),r.var(t,u._`${o} === ${d.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function w(e){(0,p.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function x(e,t){if(e.opts.jtd)return S(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);S(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function A({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(u._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=u.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function S(e,t,n,r){const{gen:i,schema:s,data:l,allErrors:c,opts:h,self:f}=e,{RULES:g}=f;function m(p){(0,o.shouldUseGroup)(s,p)&&(p.type?(i.if((0,a.checkDataType)(p.type,l,h.strictNumbers)),C(e,p),1===t.length&&t[0]===p.type&&n&&(i.else(),(0,a.reportTypeError)(e)),i.endIf()):C(e,p),c||i.if(u._`${d.default.errors} === ${r||0}`))}!s.$ref||!h.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(s,g)?(h.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{k(e.dataTypes,t)||T(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)k(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&T(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>E(t,e)))&&T(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of g.rules)m(e);m(g.post)}))):i.block((()=>O(e,"$ref",g.all.$ref.definition)))}function C(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&O(e,n.keyword,n.definition,t.type)}))}function E(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function k(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function T(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(w(e),v(e))?function(e){const{schema:t,opts:n,gen:r}=e;g(e,(()=>{n.$comment&&t.$comment&&A(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,p.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",u._`${n}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),x(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(u._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(u._`new ${i}(${d.default.vErrors})`))):(t.assign(u._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof u.Name&&e.assign(u._`${t}.props`,n);r instanceof u.Name&&e.assign(u._`${t}.items`,r)}(e),t.return(u._`${d.default.errors} === 0`))}(e)}))}(e):g(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class _{constructor(e,t,n){if((0,l.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",M(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.failResult((0,u.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=u.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,u.or)(u._`${r} === undefined`,t)),e!==u.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,u.or)(function(){if(n.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return u._`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return u._`!${n}(${t})`}return u.nil}())}subschema(e,t){const n=(0,c.getSubschema)(this.it,e);(0,c.extendSubschemaData)(n,this.it,e),(0,c.extendSubschemaMode)(n,e);const r={...this.it,...n,items:void 0,props:void 0};return y(r,t),r}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=p.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=p.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function O(e,t,n,r){const i=new _(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,l.funcKeywordCode)(i,n):"macro"in n?(0,l.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,l.funcKeywordCode)(i,n)}t.KeywordCxt=_;const P=/^\/(?:[^~]|~0|~1)*$/,I=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function M(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!P.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{const a=I.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=u._`${o}${(0,u.getProperty)((0,p.unescapeJsonPointer)(e))}`,a=u._`${a} && ${o}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=M},78671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(29775),i=n(36009),o=n(75871),a=n(49846);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,c=t.macro.call(s.self,o,a,s),u=l(n,i,c);!1!==s.opts.validateSchema&&s.self.validateSchema(c,!0);const d=n.name("valid");e.subschema({schema:c,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:c,keyword:u,schema:d,parentSchema:h,$data:p,it:f}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(f,t);const g=!p&&t.compile?t.compile.call(f.self,d,h,f):t.validate,m=l(c,u,g),y=c.let("valid");function v(n=(t.async?r._`await `:r.nil)){const a=f.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!p||!1===t.schema);c.assign(y,r._`${n}${(0,o.callValidateCode)(e,m,a,s)}`,t.modifying)}function b(e){var n;c.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&s(e),b((()=>e.error()));else{const n=t.async?function(){const e=c.let("ruleErrs",null);return c.try((()=>v(r._`await `)),(t=>c.assign(y,!1).if(r._`${t} instanceof ${f.ValidationError}`,(()=>c.assign(e,r._`${t}.errors`)),(()=>c.throw(t))))),e}():function(){const e=r._`${m}.errors`;return c.assign(e,null),v(r.nil),e}();t.modifying&&s(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema){if(!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}},14821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(29775),i=n(98057);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;u(c.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${a}${(0,i.getErrorPath)(n,o,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}if(void 0!==a){u(a instanceof r.Name?a:c.let("data",a,!0)),void 0!==l&&(e.propertyName=l)}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},85160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(91716);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(29775);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(21220),a=n(79741),s=n(14934),l=n(14881),c=n(29775),u=n(54533),d=n(42242),h=n(98057),p=n(11971),f=n(84398),g=(e,t)=>new RegExp(e,t);g.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,n,r,i,o,a,s,l,c,u,d,h,p,m,y,v,b,w,x,A,S,C,E,k,T;const _=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,I=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:g,M=null!==(i=e.uriResolver)&&void 0!==i?i:f.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:_)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:_)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:_)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:_)&&void 0!==h?h:"log",strictRequired:null!==(m=null!==(p=e.strictRequired)&&void 0!==p?p:_)&&void 0!==m&&m,code:e.code?{...e.code,optimize:P,regExp:I}:{optimize:P,regExp:I},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(A=e.schemaId)&&void 0!==A?A:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(C=e.validateSchema)||void 0===C||C,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(k=e.unicodeRegExp)||void 0===k||k,int32range:null===(T=e.int32range)||void 0===T||T,uriResolver:M}}class x{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:y,es5:t,lines:n}),this.logger=function(e){if(!1===e)return _;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),A.call(this,v,e,"NOT SUPPORTED"),A.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=T.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),C.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=p;"id"===n&&(r={...p},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await c.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new l.SchemaEnv({schema:{},schemaId:n});if(t=l.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,n,t),!t)return(0,h.eachItem)(n,(e=>I.call(this,e))),this;L.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,h.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=j(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return s=new l.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:c}),this._cache.set(s.schema,s),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function A(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function S(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function C(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function E(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function T(){const e={...this.opts};for(const t of m)delete e[t];return e}x.ValidationError=o.default,x.MissingRefError=a.default,t.default=x;const _={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:n}=this;if((0,h.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?M.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function L(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=j(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function j(e){return{anyOf:[e,R]}}},3948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(92792);r.code='require("ajv/dist/runtime/equal").default',t.default=r},32615:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(37416);r.code='require("ajv/dist/runtime/uri").default',t.default=r},21220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},48207:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(29775),i=n(98057),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:l}=e;l.items=!0;const c=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${c} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(l,o)){const o=n.var("valid",r._`${c} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,c,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},45674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75871),i=n(29775),o=n(36009),a=n(98057),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:l,errsCount:c,it:u}=e;if(!c)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=u;if(u.props=!0,"all"!==h.removeAdditional&&(0,a.alwaysValidSchema)(u,n))return;const p=(0,r.allSchemaProperties)(s.properties),f=(0,r.allSchemaProperties)(s.patternProperties);function g(e){t.code(i._`delete ${l}[${e}]`)}function m(r){if("all"===h.removeAdditional||h.removeAdditional&&!1===n)g(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(u,n)){const n=t.name("valid");"failing"===h.removeAdditional?(y(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),g(r)}))):(y(r,n),d||t.if((0,i.not)(n),(()=>t.break())))}}}function y(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",l,(n=>{p.length||f.length?t.if(function(n){let o;if(p.length>8){const e=(0,a.schemaRefOrVal)(u,s.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=p.length?(0,i.or)(...p.map((e=>i._`${n} === ${e}`))):i.nil;return f.length&&(o=(0,i.or)(o,...f.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>m(n))):m(n)})),e.ok(i._`${c} === ${o.default.errors}`)}};t.default=s},26238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(98057),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)}))}};t.default=i},69727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(75871).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},51063:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let l,c;const{minContains:u,maxContains:d}=o;s.opts.next?(l=void 0===u?1:u,c=d):l=1;const h=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:c}),void 0===c&&0===l)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==c&&l>c)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,n)){let t=r._`${h} >= ${l}`;return void 0!==c&&(t=r._`${t} && ${h} <= ${c}`),void e.pass(t)}s.items=!0;const p=t.name("valid");function f(){const e=t.name("_valid"),n=t.let("count",0);g(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===c?t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0).break())):(t.if(r._`${e} > ${c}`,(()=>t.assign(p,!1).break())),1===l?t.assign(p,!0):t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0))))}(n)))))}function g(n,r){t.forRange("i",0,h,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===c&&1===l?g(p,(()=>t.if(p,(()=>t.break())))):0===l?(t.let(p,!0),void 0!==c&&t.if(r._`${a}.length > 0`,f)):(t.let(p,!1),f()),e.result(p,(()=>e.reset()))}};t.default=o},93919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(29775),i=n(98057),o=n(75871);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, missingProperty: ${i}, depsCount: ${t}, - deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e){if("__proto__"===r)continue;(Array.isArray(e[r])?t:n)[r]=e[r]}return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const c=t[l];if(0===c.length)continue;const u=(0,o.propertyInData)(n,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),a.allErrors?n.if(u,(()=>{for(const t of c)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${u} && (${(0,o.checkMissingProp)(e,c,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const c in t)(0,i.alwaysValidSchema)(s,t[c])||(n.if((0,o.propertyInData)(n,r,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>n.var(l,!0))),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},34617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const c=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,d("then",n),d("else",n))}else s?t.if(u,d("then")):t.if((0,r.not)(u),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},u);t.assign(c,u),e.mergeValidEvaluated(o,c),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(c,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},48368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48207),i=n(73048),o=n(86428),a=n(46588),s=n(51063),l=n(93919),c=n(53551),u=n(45674),d=n(1011),h=n(45127),p=n(20941),f=n(69727),g=n(64485),m=n(26238),y=n(34617),v=n(80264);t.default=function(e=!1){const t=[p.default,f.default,g.default,m.default,y.default,v.default,c.default,u.default,l.default,d.default,h.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},86428:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(29775),i=n(98057),o=n(75871),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:c}=e;!function(e){const{opts:r,errSchemaPath:o}=c,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(c,e,r.strictTuples)}}(a),c.opts.unevaluated&&n.length&&!0!==c.items&&(c.items=i.mergeEvaluated.items(o,n.length,c.items));const u=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(c,t)||(o.if(r._`${d} > ${n}`,(()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=s,t.default=a},46588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(75871),a=n(48207),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},20941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(98057),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},64485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block((function(){s.forEach(((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if(r._`${u} && ${l}`).assign(l,!1).assign(c,r._`[${c}, ${o}]`).else(),t.if(u,(()=>{t.assign(l,!0),t.assign(c,o),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},45127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75871),i=n(29775),o=n(98057),a=n(98057),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:c}=e,{opts:u}=c,d=(0,r.allSchemaProperties)(n),h=d.filter((e=>(0,o.alwaysValidSchema)(c,n[e])));if(0===d.length||h.length===d.length&&(!c.opts.unevaluated||!0===c.props))return;const p=u.strictSchema&&!u.allowMatchingProperties&&l.properties,f=t.name("valid");!0===c.props||c.props instanceof i.Name||(c.props=(0,a.evaluatedPropsToName)(t,c.props));const{props:g}=c;function m(e){for(const t in p)new RegExp(e).test(t)&&(0,o.checkStrictMode)(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){t.forIn("key",s,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=h.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},f),c.opts.unevaluated&&!0!==g?t.assign(i._`${g}[${o}]`,!0):r||c.allErrors||t.if((0,i.not)(f),(()=>t.break()))}))}))}!function(){for(const e of d)p&&m(e),c.allErrors?y(e):(t.var(f,!0),y(e),t.if(f))}()}};t.default=s},73048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(86428),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},1011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91716),i=n(75871),o=n(98057),a=n(45674),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(c,a.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(n);for(const e of u)c.definedProperties.add(e);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),c.props));const d=u.filter((e=>!(0,o.alwaysValidSchema)(c,n[e])));if(0===d.length)return;const h=t.name("valid");for(const n of d)p(n)?f(n):(t.if((0,i.propertyInData)(t,l,n,c.opts.ownProperties)),f(n),c.allErrors||t.else().var(h,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(h);function p(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==n[e].default}function f(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},h)}}};t.default=s},53551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=o},80264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(98057),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},75871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(29775),i=n(98057),o=n(36009),a=n(98057);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function l(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function c(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(l(e,t,n))):o}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(c(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(c(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${l(e,t,n)}`:o},t.noPropertyInData=c,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},c,u,d){const h=d?r._`${e}, ${t}, ${i}${a}`:t,p=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const f=r._`${h}, ${n.object(...p)}`;return u!==r.nil?r._`${c}.call(${u}, ${f})`:r._`${c}(${f})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(s,!0),l((()=>t.break())),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`);e.mergeValidEvaluated(a,l)||t.if((0,r.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},62733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},69622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(62733),i=n(30135),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},30135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(79741),i=n(75871),o=n(29775),a=n(36009),s=n(14881),l=n(98057),c={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:c,opts:h,self:p}=i,{root:f}=l;if(("#"===n||"#/"===n)&&a===f.baseId)return function(){if(l===f)return d(e,c,l,l.$async);const n=t.scopeValue("root",{ref:f});return d(e,o._`${n}.validate`,f,f.$async)}();const g=s.resolveRef.call(p,f,a,n);if(void 0===g)throw new r.default(i.opts.uriResolver,a,n);return g instanceof s.SchemaEnv?function(t){const n=u(e,t);d(e,n,t,t.$async)}(g):function(r){const i=t.scopeValue("schema",!0===h.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(g)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:c}=e,{allErrors:u,schemaEnv:d,opts:h}=c,p=h.passContext?a.default.this:o.nil;function f(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function g(e){var t;if(!c.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==c.props)if(r&&!r.dynamicProps)void 0!==r.props&&(c.props=l.mergeEvaluated.props(s,r.props,c.props));else{const t=s.var("props",o._`${e}.evaluated.props`);c.props=l.mergeEvaluated.props(s,t,c.props,o.Name)}if(!0!==c.items)if(r&&!r.dynamicItems)void 0!==r.items&&(c.items=l.mergeEvaluated.items(s,r.items,c.items));else{const t=s.var("items",o._`${e}.evaluated.items`);c.items=l.mergeEvaluated.items(s,t,c.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,p)}`),g(t),u||s.assign(n,!0)}),(e=>{s.if(o._`!(${e} instanceof ${c.ValidationError})`,(()=>s.throw(e))),f(e),u||s.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,p),(()=>g(t)),(()=>f(t)))}t.getValidate=u,t.callRef=d,t.default=c},74235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(74618),o=n(14881),a=n(79741),s=n(98057),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:l,parentSchema:c,it:u}=e,{oneOf:d}=c;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const h=l.propertyName;if("string"!=typeof h)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const p=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(h)}`);function g(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:h}))),e.ok(p)}};t.default=l},74618:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))},36590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69622),i=n(1722),o=n(48368),a=n(93922),s=n(71123),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},13843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:d,self:h}=l;c.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:h.formats,code:c.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),u=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(l,r._`${a}.type || "string"`).assign(u,r._`${a}.validate`)),(()=>n.assign(l,r._`"string"`).assign(u,a))),e.fail$data((0,r.or)(!1===c.strictSchema?r.nil:r._`${s} && !${u}`,function(){const e=d.$async?r._`(${a}.async ? await ${u}(${i}) : ${u}(${i}))`:r._`${u}(${i})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return r._`${u} && ${u} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=h.formats[a];if(!o)return void function(){if(!1===c.strictSchema)return void h.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[s,l,p]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):c.code.formats?r._`${c.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,r._`${i}.validate`];return["string",e,i]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${p}(${i})`}return"function"==typeof l?r._`${p}(${i})`:r._`${p}.test(${i})`}())}())}};t.default=i},93922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(13843).default];t.default=r},71123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},11169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(3948),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},55045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(3948),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:c}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=c.opts.loopEnum;let d;const h=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let p;if(u||a)p=t.let("valid"),e.block$data(p,(function(){t.assign(p,!1),t.forOf("v",l,(e=>t.if(r._`${h()}(${n}, ${e})`,(()=>t.assign(p,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);p=(0,r.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${h()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(p)}};t.default=a},1722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48664),i=n(60573),o=n(53197),a=n(86992),s=n(96088),l=n(15825),c=n(76405),u=n(8083),d=n(11169),h=n(55045),p=[r.default,i.default,o.default,a.default,s.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,h.default];t.default=p},76405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},53197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(32615),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,c=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${c} ${l} ${a}`)}};t.default=a},48664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},96088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},60573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},86992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75871),i=n(29775),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",c=n?i._`(new RegExp(${a}, ${l}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${c}.test(${t})`)}};t.default=o},15825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75871),i=n(29775),o=n(98057),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:c}=e,{opts:u}=c;if(!l&&0===n.length)return;const d=n.length>=u.loopRequired;if(c.allErrors?function(){if(d||l)e.block$data(i.nil,h);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(o,(0,r.propertyInData)(t,s,n,u.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${c.schemaEnv.baseId+c.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(c,t,c.opts.strictRequired)}}function h(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,u.ownProperties),(()=>e.error()))}))}}};t.default=a},8083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42242),i=n(29775),o=n(98057),a=n(3948),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:c,schemaCode:u,it:d}=e;if(!s&&!l)return;const h=t.let("valid"),p=c.items?(0,r.getSchemaTypes)(c.items):[];function f(o,a){const s=t.name("item"),l=(0,r.checkDataTypes)(p,s,d.opts.strictNumbers,r.DataType.Wrong),c=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),p.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${c}[${s}] == "number"`,(()=>{t.assign(a,i._`${c}[${s}]`),e.error(),t.assign(h,!1).break()})).code(i._`${c}[${s}] = ${o}`)}))}function g(r,s){const l=(0,o.useFunc)(t,a.default),c=t.name("outer");t.label(c).for(i._`;${r}--;`,(()=>t.for(i._`${s} = ${r}; ${s}--;`,(()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(h,!1).break(c)}))))))}e.block$data(h,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(h,!0),t.if(i._`${r} > 1`,(()=>(p.length>0&&!p.some((e=>"object"===e||"array"===e))?f:g)(r,o)))}),i._`${u} === false`),e.ok(h)}};t.default=s},43852:(e,t,n)=>{"use strict";n.d(t,{FU:()=>S,JE:()=>o,JF:()=>i,NA:()=>A,NF:()=>E,Nt:()=>w,OD:()=>m,Su:()=>c,VN:()=>x,Zr:()=>l,fW:()=>s,if:()=>f,ir:()=>d,mq:()=>b,nC:()=>v,ns:()=>h,oR:()=>a,qf:()=>p,t7:()=>C,wJ:()=>y,y5:()=>u});var r=n(91896),i="geoCore",o={VECTOR:"vector",VECTOR_TILE:"vector-tile",RASTER_TILE:"raster-tile",RASTER_IMAGE:"raster-image",GROUP:"group"},a={CSV:"CSV",ESRI_DYNAMIC:"esriDynamic",ESRI_FEATURE:"esriFeature",ESRI_IMAGE:"esriImage",IMAGE_STATIC:"imageStatic",GEOJSON:"GeoJSON",GEOPACKAGE:"GeoPackage",XYZ_TILES:"xyzTiles",VECTOR_TILES:"vectorTiles",OGC_FEATURE:"ogcFeature",WFS:"ogcWfs",WMS:"ogcWms"},s={CSV:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",ESRI_DYNAMIC:"https://cgpv/schema#/definitions/EsriDynamicLayerEntryConfig",ESRI_FEATURE:"https://cgpv/schema#/definitions/EsriFeatureLayerEntryConfig",ESRI_IMAGE:"https://cgpv/schema#/definitions/EsriImageLayerEntryConfig",IMAGE_STATIC:"https://cgpv/schema#/definitions/ImageStaticLayerEntryConfig",GEOJSON:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",GEOPACKAGE:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",XYZ_TILES:"https://cgpv/schema#/definitions/TileLayerEntryConfig",VECTOR_TILES:"Thttps://cgpv/schema#/definitions/TileLayerEntryConfig",OGC_FEATURE:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",WFS:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",WMS:"https://cgpv/schema#/definitions/OgcWmsLayerEntryConfig"},l={CSV:"",ESRI_DYNAMIC:"https://cgpv/schema#/definitions/EsriDynamicLayerConfig",ESRI_FEATURE:"https://cgpv/schema#/definitions/EsriFeatureLayerConfig",ESRI_IMAGE:"",IMAGE_STATIC:"",GEOJSON:"",GEOPACKAGE:"",XYZ_TILES:"",VECTOR_TILES:"",OGC_FEATURE:"",WFS:"",WMS:"https://cgpv/schema#/definitions/WmsLayerConfig"},c="https://cgpv/schema#/definitions/MapFeatureConfig",u="https://cgpv/schema#/definitions/GroupLayerEntryConfig",d=["1.0"],h=["en","fr"],p=["dark","light","geo.ca"],f=[3978,3857],g=["transport","osm","simple","nogeom","shaded","imagery"],m={3857:g,3978:g},y={3857:[!0,!1],3978:[!0,!1]},v={3857:[!0,!1],3978:[!0,!1]},b={3857:{lat:[-90,90],long:[-180,180]},3978:{lat:[40,90],long:[-140,40]}},w={3857:[-170,35,-20,84],3978:[-135,25,-50,89]},x={3857:[-90,55],3978:[-90,60]},A=(0,r.K)({map:{basemapOptions:{basemapId:"transport",shaded:!0,labeled:!0},interaction:"dynamic",listOfGeoviewLayerConfig:[],highlightColor:"black",overlayObjects:{pointMarkers:{}},viewSettings:{initialView:{zoomAndCenter:[3.5,x[3978]]},enableRotation:!0,rotation:0,minZoom:0,maxZoom:50,maxExtent:w[3978],projection:3978},extraOptions:{}},theme:"geo.ca",navBar:["zoom","fullscreen","home","basemap-select"],footerBar:{tabs:{core:["legend","layers","details","data-table"],custom:[]},collapsed:!1},components:["north-arrow","overview-map"],appBar:{tabs:{core:["geolocator"]}},corePackages:[],overviewMap:{hideOnZoom:0},externalPackages:[],serviceUrls:{geocoreUrl:"https://geocore.api.geo.ca",geolocator:"https://geolocator.api.geo.ca?keys=geonames,nominatim,locate",proxyUrl:"https://maps.canada.ca/wmsproxy/ws/wmsproxy/executeFromProxy"},globalSettings:{canRemoveSublayers:!0},schemaVersionUsed:"1.0"}),S={controls:{highlight:!0,hover:!0,opacity:!0,query:!1,remove:!0,table:!0,visibility:!0,zoom:!0},states:{visible:!0,opacity:1,hoverable:!0,queryable:!1}},C=["geolocator","aoi-panel","legend","layers","details","data-table","basemap-panel","guide"],E={GEOLOCATOR:"geolocator",EXPORT:"export",GUIDE:"guide",DETAILS:"details",LEGEND:"legend",DATA_TABLE:"data-table",LAYERS:"layers"}},91896:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,N:()=>o});var r=n(55723);function i(e){return e}function o(e){if(!(e instanceof Object)||e instanceof Array)throw new Error("Can't convert parameter to TypeJsonObject! typeof = ".concat((0,r.A)(e)));return e}},77646:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(96880),i=n(29067),o=n(13718),a=n(47280),s=n(74813),l=n.n(s),c=n(55061),u=n(6883),d=n(76200);function h(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function p(e,t){return e.get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(e,t))}var f=new WeakMap,g=function(){return(0,a.A)((function e(){(0,o.A)(this,e),h(this,f,[])}),[{key:"initialize",value:function(e){var t,n=this.onInitialize(e);n&&(t=p(f,this)).push.apply(t,(0,i.A)(n))}},{key:"onInitialize",value:function(e){}},{key:"destroy",value:function(){this.onDestroy()}},{key:"onDestroy",value:function(){p(f,this).forEach((function(e){return e()}))}}],[{key:"getState",value:function(e){return(0,c.Ic)(e).getState()}},{key:"getStateAsync",value:(t=(0,r.A)(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.gU)(t);case 2:return n=e.sent,e.abrupt("return",n.getState());case 4:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"helperPropagateArrayStoreBatch",value:(e=(0,r.A)(l().mark((function e(t,n,r,i,o,a,s,c){var h,p,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.vF.logTraceDetailed("propagateArrayStoreBatch",t,a),r[t]||(r[t]=[]),r[t].push(n),s&&(h=n.find((function(e){return e.layerPath===s}))),p=!1,h&&("processed"!==h.queryStatus&&"error"!==h.queryStatus||(p=!0,null==c||c(""))),p){e.next=9;break}return e.next=9,(0,d.delay)(i);case 9:r[t].length&&(f=r[t][r[t].length-1],o(f),r[t]=[]);case 10:case"end":return e.stop()}}),e)}))),function(t,n,r,i,o,a,s,l){return e.apply(this,arguments)})}]);var e,t}()},16775:(e,t,n)=>{"use strict";n.d(t,{K:()=>w});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(77646),p=n(76200),f=n(1220),g=n(27991),m=n(6883);function y(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,v()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function b(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var w=function(e){function t(){return(0,i.A)(this,t),y(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getAppState",value:function(e){return b(t,"getState",this,2)([e]).appState}},{key:"getAppStateAsync",value:(s=(0,r.A)(d().mark((function e(n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b(t,"getStateAsync",this,2)([n]);case 2:return e.abrupt("return",e.sent.appState);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"getDisplayLanguage",value:function(e){return this.getAppState(e).displayLanguage}},{key:"getDisplayTheme",value:function(e){return this.getAppState(e).displayTheme}},{key:"addNotification",value:(a=(0,r.A)(d().mark((function e(t,n){var r,i,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAppStateAsync(t);case 2:r=e.sent,i=r.notifications,(o=i.find((function(e){return e.message===n.message&&e.notificationType===n.notificationType})))?o.count+=1:i.push({key:n.key,notificationType:n.notificationType,message:n.message,count:1}),this.getAppState(t).setterActions.setNotifications(i);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"removeNotification",value:function(e,t){var n=this.getAppState(e).notifications.filter((function(e){return e.key!==t}));this.getAppState(e).setterActions.setNotifications(n)}},{key:"removeAllNotifications",value:function(e){this.getAppState(e).setterActions.setNotifications([])}},{key:"setAppIsCrosshairActive",value:function(e,t){this.getAppState(e).setterActions.setCrosshairActive(t)}},{key:"setDisplayLanguage",value:function(e,n){this.getAppState(e).setterActions.setDisplayLanguage(n);var r=g.d.resetBasemap(e),i=t.setGuide(e);return Promise.all([r,i])}},{key:"setDisplayTheme",value:function(e,t){this.getAppState(e).setterActions.setDisplayTheme(t)}},{key:"setFullscreen",value:function(e,t,n){this.getAppState(e).setterActions.setFullScreenActive(t),void 0!==n&&f.F.setFullscreen(t,n)}},{key:"setCircularProgress",value:function(e,t){this.getAppState(e).setterActions.setCircularProgress(t)}},{key:"setGuide",value:(n=(0,r.A)(d().mark((function e(n){var r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m.vF.logMarkerStart("map-guide"),r=t.getDisplayLanguage(n),e.next=4,(0,p.createGuideObject)(n,r,this.getAppState(n).geoviewAssetsURL);case 4:void 0!==(i=e.sent)&&this.getAppState(n).setterActions.setGuide(i),m.vF.logMarkerCheck("map-guide","for guide to be loaded");case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n,a,s}(h.F)},75687:(e,t,n)=>{"use strict";n.d(t,{F:()=>v});var r=n(29067),i=n(42432),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(77646),h=n(6883),p=n(27991);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t=0&&(e.splice(r,1),n(e))}},33663:(e,t,n)=>{"use strict";n.d(t,{h:()=>v});var r,i=n(29067),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(6883),h=n(77646),p=n(7396),f=n(27991);function g(e,t,n){return t=(0,l.A)(t),(0,s.A)(e,m()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function y(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var v=function(e){function t(){return(0,o.A)(this,t),g(this,t,arguments)}return(0,u.A)(t,e),(0,a.A)(t,[{key:"onInitialize",value:function(e){return[e.subscribe((function(e){return e.detailsState.layerDataArray}),(function(n){d.vF.logTraceCoreStoreSubscription("FEATURE-INFO EVENT PROCESSOR - layerDataArray",n),w.call(t,e.getState().mapId,n).catch((function(e){d.vF.logPromiseFailed("propagateFeatureInfoToStoreBatch in layerDataArrayUpdateBatch subscribe in feature-info-event-processor",e)}))}))]}}],[{key:"getFeatureInfoState",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,c.A)((0,l.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).detailsState;var n,r,i,o,a}},{key:"getSelectedLayerPath",value:function(e){return this.getFeatureInfoState(e).selectedLayerPath}},{key:"resetResultSet",value:function(e,n){var r=f.d.getMapViewerLayerAPI(e).featureInfoLayerSet.resultSet;r[n]&&(r[n].features=[],this.propagateFeatureInfoToStore(e,"click",r[n]).catch((function(e){return d.vF.logError("Not able to reset resultSet",e,n)}))),t.getSelectedLayerPath(e)===n&&(f.d.removeHighlightedFeature(e,"all"),f.d.clickMarkerIconHide(e))}},{key:"deleteFeatureInfo",value:function(e,n){var r=this.getFeatureInfoState(e);y(t,this,b).call(this,r.layerDataArray,n,(function(e){r.setterActions.setLayerDataArray(e),d.vF.logInfo("Removed Feature Info in stores for layer path:",n)}))}},{key:"propagateFeatureInfoToStore",value:function(e,t,n){var r=this.getFeatureInfoState(e),o=(0,i.A)(r.layerDataArray);if(o.find((function(e){return e.layerPath===n.layerPath}))||o.push(n),"click"===t){var a=o.find((function(e){var t;return!(null===(t=e.features)||void 0===t||!t.length)}))||!1;r.setterActions.setLayerDataArray(o),a&&(["details","geochart"].includes(p.d.getActiveFooterBarTab(e))||p.d.setActiveFooterBarTab(e,"details"),p.d.getAppBarComponents(e).includes("details")&&p.d.setActiveAppBarTab(e,"".concat(e,"AppbarPanelButtonDetails"),"details",!0,!0))}else"name"===t&&r.setterActions.setLayerDataArray(o);return Promise.resolve()}}])}(h.F);function b(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}function w(e,t){var n=this.getFeatureInfoState(e);return this.helperPropagateArrayStoreBatch(e,t,y(r,this,x)._,y(r,this,A)._,n.setterActions.setLayerDataArrayBatch,"feature-info-processor",n.layerDataArrayBatchLayerPathBypass,n.setterActions.setLayerDataArrayBatchLayerPathBypass)}r=v;var x={_:{}},A={_:1e3}},54497:(e,t,n)=>{"use strict";n.d(t,{U:()=>b});var r,i=n(42432),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(6883),h=n(77646),p=n(7396);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{K:()=>x});var r,i=n(55907),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(51640),h=n(40215),p=n(76200),f=n(77646),g=n(2265),m=n(16775),y=n(27991);function v(e,t,n){return t=(0,l.A)(t),(0,s.A)(e,b()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var x=function(e){function t(){return(0,o.A)(this,t),v(this,t,arguments)}return(0,u.A)(t,e),(0,a.A)(t,null,[{key:"getLayerState",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,c.A)((0,l.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).layerState;var n,r,i,o,a}},{key:"setSelectedLayersTabLayer",value:function(e,t){this.getLayerState(e).setterActions.setSelectedLayerPath(t)}},{key:"getLayerPanelState",value:function(e,t){return this.getLayerState(e)[t]}},{key:"getLegendLayerInfo",value:function(e,n){var r=t.getLayerState(e).legendLayers;return this.findLayerByPath(r,n)}},{key:"getLayerBounds",value:function(e,n){var r,i=t.getLayerState(e).legendLayers,o=this.findLayerByPath(i,n);if(o&&(!o.bounds||null!==(r=o.bounds)&&void 0!==r&&r.includes(1/0))){var a=y.d.getMapViewerLayerAPI(e).calculateBounds(n);!a||a.includes(1/0)&&o.bounds||(o.bounds=a,this.getLayerState(e).setterActions.setLegendLayers(i))}if(o&&o.bounds)return o.bounds}},{key:"setLayerBounds",value:function(e,n,r){var i=t.getLayerState(e).legendLayers,o=this.findLayerByPath(i,n);o&&(o.bounds=r,this.getLayerState(e).setterActions.setLegendLayers(i))}},{key:"getExtentFromFeatures",value:function(e,t,n){var r;return null===(r=y.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t))||void 0===r?void 0:r.getExtentFromFeatures(t,n)}},{key:"getLayerIconImage",value:function(e){var t=[];if(e){if((0,d.XY)(e)||(0,d.Bq)(e)){var n={iconType:"simple"};e.legend?n.iconImage=e.legend.toDataURL():e.styles&&e.styles[0].legend?n.iconImage=e.styles[0].legend.toDataURL():n.iconImage="no data",t.push(n)}else null===e.legend||0===Object.keys(e.legend).length?t[0]={iconImage:"no data"}:(0,d.FB)(e)&&Object.entries(e.legend).forEach((function(n){var r=(0,i.A)(n,2),o=r[0],a=r[1],s=o,l=e.styleConfig[s],c={};if(c.geometryType=s,(0,g.s0)(l)){c.iconType="simple",c.iconImage=a.defaultCanvas.toDataURL(),c.name=l.label;var u={geometryType:s,icon:c.iconImage,name:c.name,isVisible:!0};c.iconList=[u],t.push(c)}else{var d;if(c.iconType="list",(0,g.$h)(l)){if(c.iconList=a.arrayOfCanvas.map((function(e,t){return{geometryType:s,icon:e?e.toDataURL():null,name:l.classBreakStyleInfo[t].label,isVisible:l.classBreakStyleInfo[t].visible}})),a.defaultCanvas){var h={geometryType:s,icon:a.defaultCanvas.toDataURL(),name:l.defaultLabel,isVisible:l.defaultVisible};c.iconList.push(h)}}else if((0,g.IG)(l)&&(c.iconList=a.arrayOfCanvas.map((function(e,t){return{geometryType:s,icon:e?e.toDataURL():null,name:l.uniqueValueStyleInfo[t].label,isVisible:!1!==l.uniqueValueStyleInfo[t].visible}})),a.defaultCanvas)){var p={geometryType:s,icon:a.defaultCanvas.toDataURL(),name:l.defaultLabel,isVisible:l.defaultVisible};c.iconList.push(p)}null!==(d=c.iconList)&&void 0!==d&&d.length&&(c.iconImage=c.iconList[0].icon),c.iconList&&c.iconList.length>1&&(c.iconImageStacked=c.iconList[1].icon),t.push(c)}}));return t}}},{key:"propagateLegendToStore",value:function(e,n){var r=n.layerPath.split("/"),i=function(t){var n,r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,b,w=!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||!1!==(null===(n=y.d.getGeoViewMapConfig(e))||void 0===n||null===(n=n.globalSettings)||void 0===n?void 0:n.canRemoveSublayers);return{highlight:void 0===(null===(r=t.initialSettings)||void 0===r||null===(r=r.controls)||void 0===r?void 0:r.highlight)||(null===(i=t.initialSettings)||void 0===i||null===(i=i.controls)||void 0===i?void 0:i.highlight),hover:void 0===(null===(o=t.initialSettings)||void 0===o||null===(o=o.controls)||void 0===o?void 0:o.hover)||(null===(a=t.initialSettings)||void 0===a||null===(a=a.controls)||void 0===a?void 0:a.hover),opacity:void 0===(null===(s=t.initialSettings)||void 0===s||null===(s=s.controls)||void 0===s?void 0:s.opacity)||(null===(l=t.initialSettings)||void 0===l||null===(l=l.controls)||void 0===l?void 0:l.opacity),query:void 0===(null===(c=t.initialSettings)||void 0===c||null===(c=c.controls)||void 0===c?void 0:c.query)||(null===(u=t.initialSettings)||void 0===u||null===(u=u.controls)||void 0===u?void 0:u.query),remove:void 0!==(null===(d=t.initialSettings)||void 0===d||null===(d=d.controls)||void 0===d?void 0:d.remove)?null===(h=t.initialSettings)||void 0===h||null===(h=h.controls)||void 0===h?void 0:h.remove:w,table:void 0===(null===(p=t.initialSettings)||void 0===p||null===(p=p.controls)||void 0===p?void 0:p.table)||(null===(f=t.initialSettings)||void 0===f||null===(f=f.controls)||void 0===f?void 0:f.table),visibility:void 0===(null===(g=t.initialSettings)||void 0===g||null===(g=g.controls)||void 0===g?void 0:g.visibility)||(null===(m=t.initialSettings)||void 0===m||null===(m=m.controls)||void 0===m?void 0:m.visibility),zoom:void 0===(null===(v=t.initialSettings)||void 0===v||null===(v=v.controls)||void 0===v?void 0:v.zoom)||(null===(b=t.initialSettings)||void 0===b||null===(b=b.controls)||void 0===b?void 0:b.zoom)}},o=function(a,s){if(!(r.length2);if(-1===v){var x,A,S={bounds:b,controls:w,layerId:c.layerId,layerPath:l,layerName:f,layerStatus:n.layerStatus,legendQueryStatus:n.legendQueryStatus,type:c.entryType,canToggle:(null===(x=n.data)||void 0===x?void 0:x.type)!==d.y6.ESRI_IMAGE,opacity:null!==(A=c.initialSettings)&&void 0!==A&&null!==(A=A.states)&&void 0!==A&&A.opacity?c.initialSettings.states.opacity:1,icons:[],items:[],children:[]};s.push(S),v=s.length-1}else s[v].layerStatus=c.layerStatus,s[v].layerName=f,s[v].bounds=b;o(a+1,s[v].children)}else{var C,E,k,T,_;"loaded"===c.layerStatus&&(_=y.d.getMapViewerLayerAPI(e).calculateBounds(c.layerPath));var O={bounds:_,controls:i(c,a>2),layerId:r[a-1],layerPath:l,layerAttribution:null==u?void 0:u.getAttributions(),layerName:f,layerStatus:n.layerStatus,legendQueryStatus:n.legendQueryStatus,styleConfig:null===(C=n.data)||void 0===C?void 0:C.styleConfig,type:(null===(E=n.data)||void 0===E?void 0:E.type)||c.entryType,canToggle:(null===(k=n.data)||void 0===k?void 0:k.type)!==d.y6.ESRI_IMAGE,opacity:(null===(T=c.initialSettings)||void 0===T||null===(T=T.states)||void 0===T?void 0:T.opacity)||1,items:[],children:[],icons:t.getLayerIconImage(n.data)||[]};O.icons.forEach((function(e){e.iconList&&e.iconList.forEach((function(e){O.items.push(e)}))})),-1===v?s.push(O):s[v]=O}}}},a=this.getLayerState(e).legendLayers;o(2,a),this.getLayerState(e).setterActions.setLegendLayers(a)}},{key:"setHighlightLayer",value:function(e,t){var n=this.getLayerState(e).highlightedLayer,r=y.d.changeOrRemoveLayerHighlight(e,t,n);this.getLayerState(e).setterActions.setHighlightLayer(r)}},{key:"findLayerByPath",value:function(e,n){var r;return e.forEach((function(e){var i;if(n===e.layerPath&&(r=e),null!=n&&n.startsWith(e.layerPath)&&(null===(i=e.children)||void 0===i?void 0:i.length)>0){var o=t.findLayerByPath(e.children,n);o&&(r=o)}})),r}},{key:"deleteLayerFromLegendLayers",value:function(e,n){var r=this.getLayerState(e).legendLayers;A.call(t,e,r,n)}},{key:"deleteLayer",value:function(e,t){y.d.getMapViewerLayerAPI(e).removeLayerUsingPath(t)}},{key:"refreshLayer",value:function(e,n){var r,i,o=this,a=y.d.getMapViewerLayerAPI(e).getOLLayer(n);a&&y.d.getMapViewerLayerAPI(e).refreshBaseLayer(a);var s=y.d.getMapViewerLayerAPI(e).getLayerEntryConfig(n);s&&(0,g.KD)(s)&&s.listOfLayerEntryConfig.forEach((function(t){return o.refreshLayer(e,t.layerPath)}));var l=(null==s||null===(r=s.initialSettings.states)||void 0===r?void 0:r.opacity)||1,c=(null==s||null===(i=s.initialSettings.states)||void 0===i?void 0:i.visible)||!0;t.setLayerOpacity(e,n,l),y.d.setOrToggleMapLayerVisibility(e,n,c),c&&t.setAllItemsVisibility(e,n,c)}},{key:"setItemVisibility",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.getLayerState(e).legendLayers;t.isVisible=n,this.getLayerState(e).setterActions.setLegendLayers(r)}},{key:"toggleItemVisibility",value:function(e,t,n){y.d.getMapViewerLayerAPI(e).setItemVisibility(t,n,!n.isVisible)}},{key:"setAllItemsVisibility",value:function(e,t,n){y.d.setOrToggleMapLayerVisibility(e,t,!0);var r=this.getLayerState(e).legendLayers,i=this.findLayerByPath(r,t);i&&i.items.forEach((function(r){y.d.getMapViewerLayerAPI(e).setItemVisibility(t,r,n,!1),r.isVisible=n})),this.getLayerState(e).setterActions.setLegendLayers(r)}},{key:"setLayerOpacity",value:function(e,n,r){var i=this.getLayerState(e).legendLayers;w(t,this,S).call(this,e,i,n,r),this.getLayerState(e).setterActions.setLegendLayers(i)}}])}(f.F);function A(e,t,n){var i=t.findIndex((function(e){return e.layerPath===n}));i>=0?t.splice(i,1):t.forEach((function(t){t.children&&t.children.length>0&&A.call(r,e,t.children,n)}))}function S(e,t,n,i){var o,a=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=r.findLayerByPath(t,n);l&&(l.opacity=i,null===(o=y.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(n))||void 0===o||o.setOpacity(i,n),s&&(l.opacityFromParent=i),l.children&&l.children.length>0&&l.children.forEach((function(n){w(r,a,S).call(a,e,t,n.layerPath,i,!0)})))}r=x},27991:(e,t,n)=>{"use strict";n.d(t,{d:()=>Y});var r=n(55907),i=n(96880),o=n(29067),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(94270),d=n(42432),h=n(74813),p=n.n(h),f=n(80739),g=n(96687),m=n(82512);const y="units",v=[1,2,5],b=25.4/.28;class w extends f.A{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const n=void 0!==e.className?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+g.XI,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==e.minWidth?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(y,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(y)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(y,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=e.center,n=e.projection,r=this.getUnits(),i="degrees"==r?"degrees":"m";let o=(0,m.hO)(n,e.resolution,t,i);const a=this.minWidth_*(this.dpi_||b)/b,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||b)/b:void 0;let l=a*o,c="";if("degrees"==r){const e=m.Ig.degrees;l*=e,l=s){u=p,d=f,h=g;break}if(d>=a)break;p=u,f=d,g=h,++y}const w=this.scaleBar_?this.createScaleBar(d,u,c):u.toFixed(h<0?-h:0)+" "+c;this.renderedHTML_!=w&&(this.innerElement_.innerHTML=w,this.renderedHTML_=w),this.renderedWidth_!=d&&(this.innerElement_.style.width=d+"px",this.renderedWidth_=d),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,n){const r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+" : 1":"1 : "+Math.round(r).toLocaleString(),o=this.scaleBarSteps_,a=e/o,s=[this.createMarker("absolute")];for(let r=0;r
`+this.createMarker("relative")+(r%2==0||2===o?this.createStepText(r,e,!1,t,n):"")+"")}s.push(this.createStepText(o,e,!0,t,n));return(this.scaleBarText_?`
`+i+"
":"")+s.join("")}createMarker(e){return`
`}createStepText(e,t,n,r,i){const o=(0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+i);return`
`+o+"
"}getScaleForResolution(){return(0,m.hO)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m")*(1e3/25.4)*(this.dpi_||b)}render(e){const t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}}const x=w;var A,S=n(31576),C=n(94565),E=n(43852),k=n(68705),T=n(78861),_=n(51640),O=n(8058),P=n(55061),I=n(24258),M=n(6883),L=n(76200),R=n(16775),j=n(77646),F=n(75687),D=n(9145),N=n(7396),B=n(59155),z=n(4401),V=n(17102),$=n(34119),G=n(57366);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:I.Xl;this.getMapViewer(e).map.getView().animate({zoom:t,duration:n})}},{key:"getMapOrderedLayerInfo",value:function(e){return this.getMapStateProtected(e).orderedLayerInfo}},{key:"getMapOrderedLayerInfoForLayer",value:function(e,t){return this.getMapStateProtected(e).orderedLayerInfo.find((function(e){return e.layerPath===t}))}},{key:"getMapIndexFromOrderedLayerInfo",value:function(e,t){for(var n=this.getMapStateProtected(e).orderedLayerInfo,r=0;r2&&void 0!==arguments[2]?arguments[2]:{padding:I.MK,maxZoom:I.Wj,duration:I.Xl};if(!t.some((function(e){return!e||Number.isNaN(e)})))return this.getMapViewer(e).getView().fit(t,n),new Promise((function(e){setTimeout((function(){e()}),(n.duration||I.Xl)+150)}));throw new Error("Couldn't zoom to extent, invalid extent: ".concat(t))}},{key:"zoomToGeoLocatorLocation",value:(n=(0,i.A)(p().mark((function e(t,n,r){var i,a,s,l,c,u,d,h,f;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=document.getElementsByClassName("ol-overviewmap-box"),a=0;a{"use strict";n.d(t,{Z:()=>p});var r=n(29067),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(6883);function d(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,h()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(){return(0,i.A)(this,t),d(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getSwiperState",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).swiperState;var n,r,i,o,a}},{key:"getLayerPaths",value:function(e){var t;return null===(t=this.getSwiperState(e))||void 0===t?void 0:t.layerPaths}},{key:"setLayerPaths",value:function(e,t){var n;null===(n=this.getSwiperState(e))||void 0===n||n.setterActions.setLayerPaths(t),u.vF.logInfo("Added Swiper functionality for layer paths:",t)}},{key:"addLayerPath",value:function(e,t){var n;if(this.getSwiperState(e)&&null!==(n=this.getSwiperState(e))&&void 0!==n&&n.layerPaths)if(this.getSwiperState(e).layerPaths.includes(t))u.vF.logInfo("Swiper functionality already active for layer path:",t);else{var i=(0,r.A)(this.getSwiperState(e).layerPaths);i.push(t),this.getSwiperState(e).setterActions.setLayerPaths(i),u.vF.logInfo("Added Swiper functionality for layer path:",t)}}},{key:"removeLayerPath",value:function(e,t){var n;if(this.getSwiperState(e)&&null!==(n=this.getSwiperState(e))&&void 0!==n&&n.layerPaths){var i=this.getSwiperState(e).layerPaths.findIndex((function(e){return e===t}));if(void 0!==i&&i>=0){var o=(0,r.A)(this.getSwiperState(e).layerPaths);o.splice(i,1),this.getSwiperState(e).setterActions.setLayerPaths(o),u.vF.logInfo("Removed Swiper functionality for layer path:",t)}else u.vF.logInfo("Swiper functionality already inactive for layer path:",t)}}},{key:"removeAll",value:function(e){var t;if(this.getSwiperState(e)&&null!==(t=this.getSwiperState(e))&&void 0!==t&&t.layerPaths){var n=this.getSwiperState(e).layerPaths;this.getSwiperState(e).setterActions.setLayerPaths([]),u.vF.logInfo("Removed Swiper functionality for all layer paths",n)}}}])}(n(77646).F)},9145:(e,t,n)=>{"use strict";n.d(t,{t:()=>C});var r=n(42432),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(77646),d=n(76200),h=n(4401),p=n(2265),f=n(34119),g=n(16775),m=n(27991),y=n(7396),v=n(17102),b=n(57366);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t= date '").concat(new Date(a[0]).toISOString(),"'"),a.length>1&&(c+=" and ".concat(r," <= date '").concat(new Date(a[1]).toISOString(),"'"))):(c="".concat(r," >= date '").concat(new Date(o[0]).toISOString(),"'"),a.length>1&&(c+="and ".concat(r," <= date '").concat(new Date(o[1]).toISOString(),"'")));null===(s=this.getTimesliderState(e))||void 0===s||s.setterActions.setFiltering(t,i),null===(l=this.getTimesliderState(e))||void 0===l||l.setterActions.setValues(t,a),this.addOrUpdateSliderFilter(e,t,c),m.d.applyLayerFilters(e,t)}}])}(u.F);function E(e,t,n){var i;if(this.getTimesliderState(e)){var o=(0,r.A)({},t,n);null===(i=this.getTimesliderState(e))||void 0===i||i.setterActions.addTimeSliderLayer(o);var a=o[t],s=a.defaultValue,l=a.field,c=a.filtering,u=a.minAndMax,d=a.values;this.updateFilters(e,t,s,l,c,u,d),y.d.showTab(e,"time-slider")}}},7396:(e,t,n)=>{"use strict";n.d(t,{d:()=>h});var r=n(29067),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270);function u(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,d()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(){return(0,i.A)(this,t),u(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getUIStateProtected",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).uiState;var n,r,i,o,a}},{key:"getActiveFooterBarTab",value:function(e){return this.getUIStateProtected(e).activeFooterBarTabId}},{key:"getAppBarComponents",value:function(e){return this.getUIStateProtected(e).appBarComponents}},{key:"getCorePackageComponents",value:function(e){return this.getUIStateProtected(e).corePackagesComponents}},{key:"getFooterBarIsCollapsed",value:function(e){return this.getUIStateProtected(e).footerBarIsCollapsed}},{key:"hideTab",value:function(e,t){this.getUIStateProtected(e).hiddenTabs.includes(t)||this.getUIStateProtected(e).setterActions.setHiddenTabs([].concat((0,r.A)(this.getUIStateProtected(e).hiddenTabs),[t]))}},{key:"showTab",value:function(e,t){var n=this.getUIStateProtected(e).hiddenTabs,r=n.indexOf(t);-1!==r&&(n.splice(r,1),this.getUIStateProtected(e).setterActions.setHiddenTabs(n))}},{key:"setActiveFooterBarTab",value:function(e,t){this.getUIStateProtected(e).setterActions.setActiveFooterBarTab(t)}},{key:"setActiveAppBarTab",value:function(e,t,n,r,i){this.getUIStateProtected(e).setterActions.setActiveAppBarTab(t,n,r,i)}},{key:"getActiveAppBarTab",value:function(e){return this.getUIStateProtected(e).activeAppBarTab}},{key:"setFooterBarIsCollapsed",value:function(e,t){this.getUIStateProtected(e).setterActions.setFooterBarIsCollapsed(t)}}])}(n(77646).F)},2358:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(13718),i=n(47280),o=function(){return(0,i.A)((function e(){(0,r.A)(this,e)}),null,[{key:"emitEvent",value:function(e,t,n){return t.map((function(t){return t(e,n)}))}},{key:"onEvent",value:function(e,t){e.push(t)}},{key:"offEvent",value:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}])}()},45973:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(13718),i=n(47280),o=n(42432),a=n(6883),s=function(){return(0,i.A)((function e(t,n){(0,r.A)(this,e),(0,o.A)(this,"pluginId",void 0),(0,o.A)(this,"pluginProps",void 0),(0,o.A)(this,"configObj",void 0),(0,o.A)(this,"api",void 0),(0,o.A)(this,"react",void 0),(0,o.A)(this,"translate",void 0),(0,o.A)(this,"useTheme",void 0),this.pluginId=t,this.pluginProps=n}),[{key:"mapViewer",value:function(){return this.api.maps[this.pluginProps.mapId]}},{key:"displayLanguage",value:function(){var e;return(null===(e=this.translate)||void 0===e?void 0:e.getI18n().language)||"en"}},{key:"added",value:function(){var e;window.cgpv&&(a.vF.logInfo("Plugin ".concat(this.pluginId," loaded, adding it on map ").concat(this.pluginProps.mapId)),this.onAdd(),null===(e=this.onAdded)||void 0===e||e.call(this),a.vF.logInfo("Plugin ".concat(this.pluginId," loaded, and added to map ").concat(this.pluginProps.mapId)))}},{key:"removed",value:function(){var e;window.cgpv&&(a.vF.logInfo("Plugin ".concat(this.pluginId," being removed from map ").concat(this.pluginProps.mapId)),this.onRemove(),null===(e=this.onRemoved)||void 0===e||e.call(this),a.vF.logInfo("Plugin ".concat(this.pluginId," removed from map ").concat(this.pluginProps.mapId)))}}])}()},23220:(e,t,n)=>{"use strict";n.d(t,{k:()=>w});var r=n(55723),i=n(96880),o=n(13718),a=n(47280),s=n(42432),l=n(74813),c=n.n(l),u=n(30538),d=n(68676),h=n(43331),p=n(47001),f=n(87120),g=n.n(f),m=n(76200),y=n(68705),v=n(6883),b=n(27991),w=function(){function e(){(0,o.A)(this,e),(0,s.A)(this,"pluginsLoaded",!1)}return(0,a.A)(e,null,[{key:"loadScript",value:function(e){return new Promise((function(t,n){if(document.getElementById(e))(0,m.whenThisThen)((function(){var t;return null===(t=window.geoviewPlugins)||void 0===t?void 0:t[e]})).then((function(){t(window.geoviewPlugins[e])})).catch((function(e){n(e)}));else{var r=(0,m.getScriptAndAssetURL)(),i=document.createElement("script");i.src="".concat(r,"/corePackages/geoview-").concat(e,".js"),i.id=e,document.body.appendChild(i),i.onload=function(){t(window.geoviewPlugins[e])},i.onerror=function(){t(null)}}}))}},{key:"addPlugin",value:(l=(0,i.A)(c().mark((function e(t,n,i,o){var a,s,l,f,m,w,x,A,S,C,E,k,T,_,O;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.d.getMapViewerPlugins(n);case 2:if((a=e.sent)[t]){e.next=34;break}if(s=null,i&&(s=new i(t,o)),!s){e.next=34;break}if(l={},!s.schema||!s.defaultConfig){e.next=30;break}if(m=s.schema(),w=s.defaultConfig(),x=new(g())({strict:!1,allErrors:!0}),A=x.compile(m),l=w,!(S=null===(f=document.getElementById(n))||void 0===f?void 0:f.getAttribute("data-config-url"))){e.next=28;break}return C="".concat(S.split(".json")[0],"-").concat(t,".json"),e.prev=17,e.next=20,fetch(C);case 20:return e.next=22,e.sent.json();case 22:(E=e.sent)&&(l=E),e.next=28;break;case 26:e.prev=26,e.t0=e.catch(17);case 28:if(!A(l)&&A.errors&&A.errors.length)for(k=0;k{"use strict";n.d(t,{FHQ:()=>_r,Mhq:()=>Ge.getScriptAndAssetURL,WDX:()=>Dr,d1f:()=>Pr});var r=n(96880),i=n(74813),o=n.n(i),a=n(30538),s=n(17004),l=n(86853),c=n(47001),u=n(15559),d=n.n(u),h=n(37892),p=n.n(h),f=n(60520),g=n.n(f),m=n(29423),y=n.n(m),v=n(62339),b=n.n(v),w=n(92944),x=n.n(w),A=n(83492),S={};S.styleTagTransform=x(),S.setAttributes=y(),S.insert=g().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=b();d()(A.A,S);A.A&&A.A.locals&&A.A.locals;var C=n(71560),E={};E.styleTagTransform=x(),E.setAttributes=y(),E.insert=g().bind(null,"head"),E.domAPI=p(),E.insertStyleElement=b();d()(C.A,E);C.A&&C.A.locals&&C.A.locals;var k=n(24481),T={};T.styleTagTransform=x(),T.setAttributes=y(),T.insert=g().bind(null,"head"),T.domAPI=p(),T.insertStyleElement=b();d()(k.A,T);k.A&&k.A.locals&&k.A.locals;var _=n(45306),O={};O.styleTagTransform=x(),O.setAttributes=y(),O.insert=g().bind(null,"head"),O.domAPI=p(),O.insertStyleElement=b();d()(_.A,O);_.A&&_.A.locals&&_.A.locals;var P=n(7605),I={};I.styleTagTransform=x(),I.setAttributes=y(),I.insert=g().bind(null,"head"),I.domAPI=p(),I.insertStyleElement=b();d()(P.A,I);P.A&&P.A.locals&&P.A.locals;var M=n(19248),L={};L.styleTagTransform=x(),L.setAttributes=y(),L.insert=g().bind(null,"head"),L.domAPI=p(),L.insertStyleElement=b();d()(M.A,L);M.A&&M.A.locals&&M.A.locals;var R=n(65822),j={};j.styleTagTransform=x(),j.setAttributes=y(),j.insert=g().bind(null,"head"),j.domAPI=p(),j.insertStyleElement=b();d()(R.A,j);R.A&&R.A.locals&&R.A.locals;var F=n(33828),D=n(94514),N=n(13718),B=n(47280),z=n(42432),V=n(80363),$=n.n(V),G=n(43852),U=n(91896),W=n(55907),q=n(29067),H=n(79950),Y=n.n(H),K=n(75583),X=n(96645),Z=n(94270),J=n(34946),Q=function(e){return null==e?void 0:e.isLayerGroup},ee=function(e){return"lineString"===(null==e?void 0:e.type)},te=function(e){return"filledPolygon"===(null==e?void 0:e.type)},ne=function(e){return"simpleSymbol"===(null==e?void 0:e.type)},re=function(e){return"iconSymbol"===(null==e?void 0:e.type)},ie=n(87120),oe=n.n(ie),ae=n(51042),se=n.n(ae);const le=JSON.parse('{"$id":"https://cgpv/schema","$schema":"http://json-schema.org/draft-07/schema#","title":"GeoView Core Config Schema","type":"object","version":1,"comments":"This schema is used to validate the JSON representation of the input configuration and the internal instance of map features and geoview layers.","additionalProperties":false,"definitions":{"MapFeatureConfig":{"description":"The map feature configuration.","additionalProperties":false,"type":"object","properties":{"map":{"$ref":"#/definitions/TypeMapConfig"},"theme":{"description":"Theme style the viewer uses.","$ref":"#/definitions/TypeDisplayTheme"},"navBar":{"$ref":"#/definitions/TypeNavBarProps"},"footerBar":{"$ref":"#/definitions/TypeFooterBarProps"},"appBar":{"$ref":"#/definitions/TypeAppBarProps"},"overviewMap":{"$ref":"#/definitions/TypeOverviewMapProps"},"components":{"$ref":"#/definitions/TypeMapComponents"},"corePackages":{"$ref":"#/definitions/TypeMapCorePackages"},"externalPackages":{"$ref":"#/definitions/TypeExternalPackages"},"serviceUrls":{"$ref":"#/definitions/TypeServiceUrls"},"schemaVersionUsed":{"$ref":"#/definitions/TypeValidVersions"},"globalSettings":{"$ref":"#/definitions/TypeGlobalSettings"}},"required":["map"]},"TypeMapConfig":{"additionalProperties":false,"type":"object","properties":{"basemapOptions":{"$ref":"#/definitions/TypeBasemapOptions"},"interaction":{"$ref":"#/definitions/TypeInteraction"},"listOfGeoviewLayerConfig":{"description":"List of GeoView Layers in the order which they should be added to the map.","additionalProperties":false,"$ref":"#/definitions/TypeListOfAbstractGeoviewLayerConfig"},"viewSettings":{"$ref":"#/definitions/TypeViewSettings"},"highlightColor":{"$ref":"#/definitions/TypeHighlightColors"},"overlayObjects":{"$ref":"#/definitions/TypeOverlayObjects"},"extraOptions":{"description":"Additional options used for OpenLayers map options","type":"object"}},"required":["basemapOptions","interaction","viewSettings"]},"TypeListOfAbstractGeoviewLayerConfig":{"description":"The list of geoview layer configurations. The map config validation ends here. The only thing we need to verify for the moment is it must be an array.","type":"array"},"TypeDisplayTheme":{"description":"Valid values for the theme property.","additionalProperties":false,"enum":["dark","light","geo.ca"],"default":"geo.ca"},"TypeValidNavBarProps":{"description":"Valid values for the navBar array.","additionalProperties":false,"enum":["zoom","fullscreen","home","location","basemap-select"]},"TypeNavBarProps":{"description":"Controls available on the navigation bar.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidNavBarProps"},"default":["zoom","fullscreen","home","basemap-select"],"minItems":0},"TypeValidFooterBarTabsCoreProps":{"description":"Valid values for the footerBar tabs core array.","additionalProperties":false,"enum":["legend","layers","details","data-table","time-slider","geochart"]},"TypeFooterBarTabsCustomProps":{"description":"Footer bar tabs custom definition.","type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"defaultTabs":{"type":"string"},"contentHTML":{"type":"string"}}},"TypeFooterBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"description":"Available tabs","type":"object","properties":{"core":{"description":"Default core tabs of footer bar to use. NOTE: config from packages for time-slider and geochart are in the same loaction as core config (<>-<>.json).","type":"array","items":{"$ref":"#/definitions/TypeValidFooterBarTabsCoreProps"},"minItems":1,"default":["legend","layers","details","data-table"],"uniqueItems":true},"custom":{"description":"Custom tabs of footer bar to use","type":"array","items":{"$ref":"#/definitions/TypeFooterBarTabsCustomProps"},"minItems":0,"default":[],"uniqueItems":true}},"additionalProperties":false},"collapsed":{"description":"State of footer bar when map is loaded (expanded or collapsed)","type":"boolean","default":false},"selectedTab":{"type":"string","enum":["legend","layers","details","data-table","time-slider","geochart"],"description":"Footer tab to be selected at map load"}},"required":["tabs"]},"TypeValidAppBarCoreProps":{"description":"Valid values for the app bar tabs core array.","additionalProperties":false,"enum":["geolocator","export","basemap-panel","geochart","details","legend","guide","data-table","layers","aoi-panel"]},"TypeAppBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"description":"Available tabs - controls","type":"object","additionalProperties":false,"properties":{"core":{"description":"Default core tabs of app-bar to use. NOTE: config from packages like geochart are in the same loaction as core config (<>-<>.json).","type":"array","items":{"$ref":"#/definitions/TypeValidAppBarCoreProps"},"minItems":0,"default":["geolocator"],"uniqueItems":true}}},"collapsed":{"description":"State of app bar when map is loaded (expanded or collapsed)","type":"boolean","default":true},"selectedTab":{"type":"string","enum":["geolocator","basemap-panel","geochart","details","legend","guide","data-table","layers","aoi-panel"],"description":"App bar tab to be selected at map load"}},"required":["tabs"]},"TypeOverviewMapProps":{"type":"object","additionalProperties":false,"properties":{"hideOnZoom":{"description":"Minimum zoom level to show overview map","type":"number","minimum":0,"maximum":10,"default":0}}},"TypeValidMapComponentProps":{"description":"Valid values for the map component array.","additionalProperties":false,"enum":["overview-map","north-arrow"]},"TypeMapComponents":{"description":"Core components to initialize on viewer load. The schema for those are inside this file.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidMapComponentProps"},"default":["overview-map","north-arrow"],"minItems":0},"TypeValidMapCorePackageProps":{"description":"Valid values for the map core package array.","additionalProperties":false,"enum":["swiper"]},"TypeMapCorePackages":{"description":"Core map packages to initialize on viewer load. The schema for those are on their own package. NOTE: config from packages are in the same loaction as core config (<>-<>.json).","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidMapCorePackageProps"},"default":[],"minItems":0},"TypeExternalPackagesProps":{"additionalProperties":false,"type":"object","properties":{"name":{"description":"External Package name. The name must be identical to the window external package object to load.","type":"string"},"configUrl":{"description":"The url to the external package configuration setting. The core package will read the configuration and pass it inside the package.","type":"string"}},"required":["name"]},"TypeExternalPackages":{"description":"List of external packages to initialize on viewer load.","additionalProperties":false,"type":"array","items":{"$ref":"#/definitions/TypeExternalPackagesProps"},"default":[],"minItems":0},"TypeServiceUrls":{"description":"Service endpoint urls","additionalProperties":false,"type":"object","properties":{"geocoreUrl":{"description":"Service end point to access API for layers specification (loading and plugins parameters). By default it is GeoCore but can be another endpoint with similar output.","type":"string","default":"https://geocore.api.geo.ca"},"proxyUrl":{"description":"An optional proxy to be used for dealing with same-origin issues. URL must either be a relative path on the same server or an absolute path on a server which sets CORS headers.","type":"string","default":"https://maps.canada.ca/wmsproxy/ws/wmsproxy/executeFromProxy"},"geolocator":{"description":"Service end point to access geo location of searched value.","type":"string","default":"https://geolocator.api.geo.ca?keys=geonames,nominatim,locate"}}},"TypeValidVersions":{"description":"The schema version that can be used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer.","enum":["1.0"]},"TypeGlobalSettings":{"additionalProperties":false,"type":"object","description":"Universal map settings","properties":{"canRemoveSublayers":{"description":"Whether or not sublayers can be removed from layer groups.","type":"boolean","default":true}}},"TypeBasemapOptions":{"additionalProperties":false,"type":"object","properties":{"basemapId":{"$ref":"#/definitions/TypeBasemapId"},"shaded":{"description":"Enable or disable shaded basemap (if basemap id is set to shaded then this should be false).","type":"boolean","default":true},"labeled":{"description":"Enable or disable basemap labels","type":"boolean","default":true}},"required":["basemapId","shaded","labeled"]},"TypeBasemapId":{"description":"Id of the basemap to use.","enum":["transport","osm","simple","nogeom","shaded","imagery"],"default":"transport"},"TypeInteraction":{"description":"If map is dynamic (pan/zoom) or static to act as a thumbnail (no nav bar).","additionalProperties":false,"enum":["static","dynamic"],"default":"dynamic"},"AbstractGeoviewLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\').","type":"string"},"useInternalSchema":{"description":"Flag used to select the type of schema validation to apply (input/internal).","type":"boolean"},"geoviewLayerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"isGeocore":{"description":"A flag used to indicate that the layer is a GeoCore layer.","type":"boolean"},"metadataAccessPath":{"description":"The GeoView layer service access path (English/French).","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"geoviewLayerType":{"description":"Type of GeoView layer.","$ref":"#/definitions/TypeGeoviewLayerType"},"serviceDateFormat":{"description":"Date format used by the service endpoint.","type":"string","default":"DD/MM/YYYY HH:MM:SSZ"},"externalDateFormat":{"description":"Date format used by the getFeatureInfo to output date variable.","type":"string","default":"DD/MM/YYYY HH:MM:SSZ"},"isTimeAware":{"description":"Flag to mention if layer will use its time dimension if provided. Used to remove a layer from time enabled functions like time slider.","type":"boolean","default":true},"listOfLayerEntryConfig":{"description":"The layer entries to use from the GeoView layer.","$ref":"#/definitions/TypeListOfLayerEntryConfig"}},"if":{"properties":{"useInternalSchema":{"description":"The useInternalSchema property is not defined by the user but by the viewer when we want to use the internal schema.","const":true}},"required":["useInternalSchema"]},"then":{"description":"Use Internal Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer.","type":"string"},"metadataAccessPath":{"description":"The GeoView layer service access path (English/French).","type":"string"}}},"else":{"description":"Use Input Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","$ref":"#/definitions/TypeLocalizedString"},"metadataAccessPath":{"description":"The GeoView layer service access path (English/French).","$ref":"#/definitions/TypeLocalizedString"}}},"required":["geoviewLayerType","metadataAccessPath","listOfLayerEntryConfig"]},"TypeListOfLayerEntryConfig":{"description":"The list of layer configurations. The AbstractGeoviewLayerConfig validation ends here. The only thing we need to verify for the moment is it must be an array of at least one element.","type":"array"},"TypeViewSettings":{"additionalProperties":false,"type":"object","properties":{"initialView":{"description":"Settings for the initial viewing area of the map.","$ref":"#/definitions/TypeMapViewSettings"},"enableRotation":{"description":"Enable rotation. If false, a rotation constraint that always sets the rotation to zero is used.","type":"boolean","default":true},"rotation":{"description":"The initial rotation for the view in degree (positive rotation clockwise, 0 means North). Will be converted to radiant by the viewer.","type":"integer","minimum":-360,"maximum":360,"default":0},"maxExtent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"default":[-125,30,-60,89]},"minZoom":{"description":"The minimum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","type":"integer","minimum":0,"maximum":50},"maxZoom":{"description":"The maximum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","type":"integer","minimum":0,"maximum":50},"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes","default":3978}}},"TypeHighlightColors":{"description":"Color to use for feature highlights.","additionalProperties":false,"enum":["black","white","red","green"],"default":"black"},"TypeOverlayObjects":{"type":"object","properties":{"pointMarkers":{"$ref":"#/definitions/TypePointMarkers"}}},"TypePointMarkers":{"type":"object","patternProperties":{"[^]*":{"type":"array","items":{"$ref":"#/definitions/TypePointMarker"}}}},"TypePointMarker":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string","description":"ID for point marker. Must be unique in group."},"coordinate":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"description":"The coordinates of the marker."},"color":{"type":"string","default":"green","description":"Marker color."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"projection":{"description":"The projection code of the coordinates.","type":"number","default":4326}},"required":["id","coordinate"]},"TypeDisplayLanguage":{"description":"Display languages supported.","enum":["en","fr"]},"TypeLocalizedString":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"en":{"description":"The English version of the string.","type":"string"},"fr":{"description":"The French version of the string.","type":"string"}}},"TypeGeoviewLayerType":{"description":"Type of GeoView layer.","type":"string","enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","GeoPackage","imageStatic","ogcFeature","ogcWfs","ogcWms","vectorTiles","xyzTiles"]},"TypeLayerInitialSettings":{"additionalProperties":false,"type":"object","properties":{"controls":{"description":"The status of various controls for the layer (available/unavailable).","$ref":"#/definitions/TypeLayerControls"},"bounds":{"description":"The geographic bounding box that contains all the layer\'s features.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"extent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"minZoom":{"description":"The minimum view zoom level (exclusive) above which this layer will be visible.","type":"integer","minimum":0,"maximum":50},"maxZoom":{"description":"The maximum view zoom level (inclusive) above which this layer will be visible.","type":"integer","minimum":0,"maximum":50},"className":{"description":"A CSS class name to set to the layer element.","type":"string"},"states":{"description":"The status of initial states for the layer.","$ref":"#/definitions/TypeLayerStates"}}},"TypeLayerControls":{"description":"Which UI controls are available.","additionalProperties":false,"type":"object","properties":{"highlight":{"type":"boolean","default":true},"hover":{"type":"boolean","default":true},"opacity":{"type":"boolean","default":true},"query":{"type":"boolean","default":false},"remove":{"type":"boolean","default":true},"table":{"type":"boolean","default":true},"visibility":{"type":"boolean","default":true},"zoom":{"type":"boolean","default":true}}},"TypeLayerStates":{"description":"Initial layer states.","additionalProperties":false,"type":"object","properties":{"visible":{"description":"Initial visibility setting.","type":"boolean","default":true},"legendCollapsed":{"description":"Is the layer\'s legend collapsed","type":"boolean","default":false},"opacity":{"description":"Initial opacity setting.","type":"number","minimum":0,"maximum":1,"default":1},"hoverable":{"description":"Is the layer hoverable.","type":"boolean"},"queryable":{"description":"Is the layer queryable.","type":"boolean"}}},"TypeMapViewSettings":{"type":"object","maxItems":1,"properties":{"zoomAndCenter":{"$ref":"#/definitions/TypeZoomAndCenter"},"extent":{"description":"The extent for the initial view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"layerIds":{"description":"Geoview layer ID(s) or layer path(s) of layer(s) to use as initial map focus. If empty, will use all layers.","type":"array","items":{"type":"string"}}}},"TypeZoomAndCenter":{"description":"Initial zoom and center coordinates to set map view.","type":"array","prefixItems":[{"type":"number","description":"Initial map zoom level. Zoom level are define by the basemap zoom levels. Levels between whole numbers are supported to fine tune initial view.","minimum":0,"maximum":28,"default":3.5},[{"type":"number","description":"Initial longitude value for map center.","minimum":-160,"maximum":160,"default":-90},{"type":"number","description":"Initial latitude value for map center.","minimum":-80,"maximum":80,"default":60}]],"default":[4.5,[-90,67]]},"TypeValidMapProjectionCodes":{"description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada.","enum":[3978,3857],"default":3978},"EsriDynamicLayerConfig":{"description":"Structure used by the viewer to describe the configuration of an ESRI dynamic layer.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriDynamic"]}}}]},"EsriFeatureLayerConfig":{"description":"Structure used by the viewer to describe the configuration of an ESRI feature layer.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriFeature"]}}}]},"WmsLayerConfig":{"description":"Structure used by the viewer to describe the configuration of a WMS layer.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["ogcWms"]}}}]},"EntryConfigBaseClass":{"description":"Base class from which we derive all the nodes (group and leaves) in the layer tree.","type":"object","properties":{"isLayerGroup":{"description":"Flag used to distinguish layer group nodes.","type":"boolean"},"layerId":{"description":"The id of the layer to display on the map.","type":"string"},"useInternalSchema":{"description":"Flag used to select the type of schema validation to apply (input/internal).","type":"boolean"},"layerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"attributions":{"type":"array","items":{"type":"string"}},"bounds":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"minScale":{"description":"Minimum scale the layer can display.","type":"number","default":0},"maxScale":{"description":"Maximum scale the layer can display.","type":"number","default":0},"initialSettings":{"description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree.","$ref":"#/definitions/TypeLayerInitialSettings"},"entryType":{"description":"The node data type.","$ref":"#/definitions/TypeLayerEntryType"}},"if":{"properties":{"useInternalSchema":{"description":"The useInternalSchema property is not defined by the user but programmatically by the viewer when we want to use the internal schema.","const":true}},"required":["useInternalSchema"]},"then":{"description":"Use Internal Schema","properties":{"layerName":{"description":"The display name of the layer.","type":"string"},"entryType":{"description":"The node data type.","$ref":"#/definitions/TypeLayerEntryType"}},"required":["entryType","layerId","layerName"]},"else":{"description":"Use Input Schema","properties":{"layerName":{"description":"Used by the input schema. The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","$ref":"#/definitions/TypeLocalizedString"},"entryType":{"description":"Input schema does not allow the user to specify the entryType property.","not":{},"errorMessage":{"not":"Property entryType is not allowed in user data."}}},"required":["layerId"]},"errorMessage":{"if":"The data does not respect the EntryConfigBaseClass schema definition."}},"AbstractBaseLayerEntryConfig":{"description":"Base class from which we derive all the leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/EntryConfigBaseClass"},{"type":"object","properties":{"geometryType":{"description":"The geometry type of the leaf node.","$ref":"#/definitions/TypeStyleGeometry"},"source":{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},"temporalDimension":{"$ref":"#/definitions/TypeTemporalDimension"}}}]},"GroupLayerEntryConfig":{"description":"Class from which we derive all the layer group nodes in the layer tree.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/EntryConfigBaseClass"},{"type":"object","properties":{"entryType":{"enum":["group"]},"listOfLayerEntryConfig":{"description":"The list of layer entry configurations to use from the GeoView layer group.","$ref":"#/definitions/TypeListOfLayerEntryConfig"}}}]},"EsriDynamicLayerEntryConfig":{"description":"Class from which we derive all the ESRI Dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The actual parent class is AbstractBaseEsriLayerEntryConfig, whose parent class is AbstractBaseLayerEntryConfig. Both classes have the same properties.","$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"layerId":{"type":"string","pattern":"^[0-9]+$","errorMessage":{"pattern":"The layer identifier (layerId) must be a numeric string."}},"entryType":{"enum":["raster-image"]},"source":{"$ref":"#/definitions/TypeSourceEsriDynamicInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"EsriFeatureLayerEntryConfig":{"description":"Class from which we derive all the ESRI Feature leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The actual parent class is AbstractBaseEsriLayerEntryConfig, whose parent class is AbstractBaseLayerEntryConfig. Both classes have the same properties.","$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"layerId":{"type":"string","pattern":"^[0-9]+$","errorMessage":{"pattern":"The layer identifier (layerId) must be a numeric string."}},"source":{"$ref":"#/definitions/TypeSourceEsriFeatureInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"OgcWmsLayerEntryConfig":{"description":"Class from which we derive all the WMS leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"source":{"$ref":"#/definitions/TypeSourceWmsInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"TypeStyleGeometry":{"description":"Valid keys for the geometryType property.","enum":["point","linestring","polygon"]},"TypeBaseSourceInitialConfig":{"description":"Base type from which we derive the source properties for all the leaf nodes in the layer tree.","type":"object","properties":{"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes"},"crossOrigin":{"description":"The crossOrigin attribute if needed to load the data.","type":"string","default":"Anonymous"}}},"TypeSourceTileInitialConfig":{"description":"Initial settings for tile image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"tileGrid":{"description":"Tile grid parameters to use.","$ref":"#/definitions/TypeTileGrid"}}}]},"TypeSourceWmsInitialConfig":{"description":"Initial settings for tile image sources.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"serverType":{"description":"The type of the remote WMS server.","$ref":"#/definitions/TypeOfServer"},"wmsStyle":{"description":"Array of style to choose from.","type":"array","items":{"type":"string"}}}}]},"TypeOfServer":{"description":"The type of the remote WMS server.","enum":["mapserver","geoserver","qgis"],"default":"mapserver"},"TypeSourceImageStaticInitialConfig":{"description":"Initial settings for static image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"extent":{"description":"The extent of the static image. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}}}}]},"TypeBaseVectorSourceInitialConfig":{"description":"Base type from which we derive the source properties for all the vector leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch.","type":"number","default":0},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"strategy":{"description":"The loading strategy to use. By default an all strategy is used, a one-off strategy which loads all features at once.","enum":["all","bbox"],"default":"all"}}}]},"TypeVectorSourceInitialConfig":{"description":"Initial settings to apply to the GeoView vector layer source at creation time.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"separator":{"description":"The character used to separate columns of csv file.","type":"string"}}}]},"TypeVectorTileSourceInitialConfig":{"description":"Initial settings to apply to layer sources providing vector data divided into a tile grid.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}}]},"TypeTileGrid":{"additionalProperties":false,"type":"object","properties":{"extent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"origin":{"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided.","type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},"resolutions":{"description":"Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1.","type":"array","items":{"type":"number"}},"tileSize":{"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided.","type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"default":[256,256]}},"required":["origin","resolutions"]},"TypeVectorSourceFormats":{"description":"The feature format used by the XHR feature loader when access path is set.","enum":["GeoJSON","EsriJSON","KML","WFS","featureAPI","GeoPackage","CSV"]},"TypeSourceEsriDynamicInitialConfig":{"description":"Type from which we derive the source properties for all the ESRI dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch.","type":"number","default":0},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeEsriFormatParameter"},"transparent":{"description":"If true, the image will be exported with the background color of the map set as its transparent color. Only the .png and .gif formats support transparency.","type":"boolean","default":true}}}]},"TypeEsriFormatParameter":{"description":"The format of the exported image.","enum":["png","jpg","gif","svg"],"default":"png"},"TypeSourceEsriFeatureInitialConfig":{"description":"Type from which we derive the source properties for all the ESRI feature leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch.","type":"number","default":0},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"enum":["EsriJSON"]}}}]},"TypeFeatureInfoLayerConfig":{"type":"object","properties":{"queryable":{"description":"Allow querying.","type":"boolean","default":false},"nameField":{"description":"The display field of the layer. If it is not present the viewer will make an attempt to find the first valid field.","type":"string"},"outfields":{"type":"array","items":{"$ref":"#/definitions/TypeOutfields"}}},"required":["queryable"]},"TypeOutfields":{"type":"object","properties":{"name":{"description":"The field name.","type":"string"},"alias":{"description":"The field alias that replaces the name when comes time to display it.","type":"string"},"type":{"description":"The field type.","$ref":"#/definitions/TypeOutfieldsType"},"domain":{"description":"The domain of values.","oneOf":[{"type":"null"},{"$ref":"#/definitions/codedValueType"},{"$ref":"#/definitions/rangeDomainType"}]}},"required":["name","alias","type","domain"]},"TypeOutfieldsType":{"description":"The types supported by the outfields object.","additionalProperties":false,"enum":["string","number","date","url"]},"codedValueType":{"description":"Coded value definition.","additionalProperties":false,"type":"object","properties":{"type":{"enum":["codedValue"]},"name":{"description":"The domain name.","type":"string"},"description":{"description":"A description of the domain.","type":"string"},"codedValues":{"description":"The list of coded values.","$ref":"#/definitions/codeValueEntryType"}}},"codeValueEntryType":{"description":"The structure of a code value.","additionalProperties":false,"type":"object","properties":{"name":{"type":"string"},"code":{"description":"The code property has an unknown type."}}},"rangeDomainType":{"description":"The structure of a range domain.","additionalProperties":false,"type":"object","properties":{"type":{"enum":["range"]},"name":{"description":"The domain name.","type":"string"},"range":{"type":"array","minItems":2,"maxItems":2,"items":{"description":"The code property has an unknown type."}}},"required":["type","name","range"]},"TypeLayerEntryType":{"description":"Layer entry data type.","enum":["vector","vector-tile","raster-tile","raster-image","group"]},"TypeTemporalDimension":{"additionalProperties":false,"type":"object","description":"OGC time dimension definition.","properties":{"field":{"type":"string"},"default":{"type":"string"},"unitSymbol":{"type":"string"},"range":{"$ref":"#/definitions/TypeRangeItems"},"nearestValues":{"enum":["discrete","absolute"]},"singleHandle":{"type":"boolean"}}},"TypeRangeItems":{"description":"Definition of the range object in the OGC time dimension.","additionalProperties":false,"type":"object","properties":{"type":{"type":"string"},"range":{"type":"array","items":{"type":"string"}}}},"TypeStyleConfig":{"type":"object","properties":{"type":{"description":"The type of style used by the layer.","$ref":"#/definitions/TypeStyleConfigType"},"fields":{"type":"array","items":{"type":"string"}},"hasDefault":{"description":"Flag used to indicate that the symbology has a default value.","type":"boolean"},"info":{"description":"Array of style information.","type":"array","items":{"$ref":"#/definitions/TypeStyleConfigInfo"}}}},"TypeStyleConfigType":{"description":"Valid keys for the type property of style configurations.","enum":["simple","uniqueValue","classBreaks"]},"TypeStyleConfigInfo":{"type":"object","properties":{"visible":{"description":"Flag used to show/hide features associated to the label.","type":"boolean","default":true},"label":{"type":"string"},"values":{"description":"Simple type has an empty array; uniqueValue type has many entries (up to 3 for ESRI) and classBreaks type has two entries (index 0 for min and index 1 for max).","type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]}},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"TypeKindOfVectorSettings":{"description":"The type of geometry settings. It must respect the base type and one of the children types.","allOf":[{"description":"Base type for the vector geometry.","$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"description":"One of the chid type.","anyOf":[{"$ref":"#/definitions/TypeLineStringVectorConfig"},{"$ref":"#/definitions/TypePolygonVectorConfig"},{"$ref":"#/definitions/TypeSimpleSymbolVectorConfig"},{"$ref":"#/definitions/TypeIconSymbolVectorConfig"}]}]},"TypeBaseVectorGeometryConfig":{"description":"Base type for the vector geometry types.","type":"object","properties":{"type":{"description":"Type of vector config.","$ref":"#/definitions/TypeBaseVectorType"}}},"TypeBaseVectorType":{"description":"Valid values for the type property of the base vector settings.","enum":["lineString","filledPolygon","simpleSymbol","iconSymbol"]},"TypeLineStringVectorConfig":{"description":"Definition of the line symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["lineString"]},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"}}}]},"TypeStrokeSymbolConfig":{"description":"Stroke style for vector features.","minProperties":1,"additionalProperties":false,"type":"object","properties":{"color":{"type":"string"},"lineStyle":{"$ref":"#/definitions/TypeLineStyle"},"width":{"type":"number"}}},"TypeLineStyle":{"description":"Line style to use for the feature.","enum":["dash","dash-dot","dash-dot-dot","dot","longDash","longDash-dot","null","shortDash","shortDash-dot","shortDash-dot-dot","solid"]},"TypePolygonVectorConfig":{"description":"Definition of the polygon symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["filledPolygon"]},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"paternSize":{"description":"Distance between patern lines.","type":"number","default":8},"paternWidth":{"description":"Patern line width.","type":"number","default":1},"fillStyle":{"description":"Kind of filling for vector features.","$ref":"#/definitions/TypeFillStyle","default":"solid"}}}]},"TypeFillStyle":{"description":"Valid values to specify fill styles.","enum":["null","solid","backwardDiagonal","cross","diagonalCross","forwardDiagonal","horizontal","vertical"]},"TypeSimpleSymbolVectorConfig":{"description":" Definition of the simple symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["simpleSymbol"]},"rotation":{"description":"Symbol rotation in radians.","type":"number"},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"size":{"type":"number"},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"symbol":{"$ref":"#/definitions/TypeSymbol"}}}]},"TypeSymbol":{"description":"Valid values to specify symbol shapes.","enum":["circle","+","diamond","square","triangle","X","star"]},"TypeIconSymbolVectorConfig":{"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["iconSymbol"]},"mimeType":{"type":"string"},"src":{"type":"string"},"width":{"description":"Icon width in pixel.","type":"integer"},"height":{"description":"Icon height in pixel.","type":"integer"},"rotation":{"description":"Icon rotation in radians.","type":"number"},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"crossOrigin":{"description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer.","type":"string","default":"Anonymous"}}}]},"TypePostSettings":{"description":"Definition of the post settings type needed when the GeoView GeoJSON layers need to use a POST instead of a GET.","additionalProperties":false,"type":"object","properties":{"header":{"description":"An optional header object with string keys and string values.","type":"object","additionalProperties":{"type":"string"}},"data":{"description":"A required property that can be any type.","type":["object","array","string","number","boolean","null"]}},"required":["data"]}}}');var ce=n(6883);function ue(e,t){var n,r,i=new(oe())({strict:!1,allErrors:!0});se()(i),i.compile(le);var o=i.getSchema(e);if(o){if(!o(t)){for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],r=$()(t);return n&&Object.assign(r,{useInternalSchema:n}),ue(e,r)}function he(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function pe(e,t){return e.get(ge(e,t))}function fe(e,t,n){return e.set(ge(e,t),n),n}function ge(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var me=new WeakMap,ye=new WeakMap,ve=new WeakMap,be=new WeakMap,we=new WeakMap,xe=function(){return(0,B.A)((function e(t,n,r,i){var o;(0,N.A)(this,e),he(this,me,void 0),he(this,ye,void 0),he(this,ve,void 0),he(this,be,!1),he(this,we,{}),(0,z.A)(this,"isLayerGroup",void 0),(0,z.A)(this,"layerId",void 0),(0,z.A)(this,"layerName",void 0),(0,z.A)(this,"attributions",[]),(0,z.A)(this,"bounds",void 0),(0,z.A)(this,"entryType",void 0),(0,z.A)(this,"minScale",void 0),(0,z.A)(this,"maxScale",void 0),(0,z.A)(this,"initialSettings",void 0),this.validateLayerConfig(t),fe(me,this,n),fe(ye,this,r),fe(ve,this,i),this.layerId=t.layerId,this.layerName=(null==t||null===(o=t.layerName)||void 0===o?void 0:o[pe(me,this)])||"undefined",this.entryType=this.getEntryType(),this.isLayerGroup=t.isLayerGroup||!1,this.applyDefaultValues()}),[{key:"validateLayerConfig",value:function(e){ue(this.getSchemaPath(),e)||this.setErrorDetectedFlag()}},{key:"setLayerMetadata",value:function(e){fe(we,this,e)}},{key:"getLayerMetadata",value:function(){return pe(we,this)}},{key:"getGeoviewLayerType",value:function(){return pe(ye,this).geoviewLayerType}},{key:"getGeoviewLayerConfig",value:function(){return pe(ye,this)}},{key:"getLayerPath",value:function(){var e=function(t){return pe(ve,t)?"".concat(e(pe(ve,t)),"/").concat(t.layerId):t.layerId};return"".concat(pe(ye,this).geoviewLayerId,"/").concat(e(this))}},{key:"setErrorDetectedFlag",value:function(){fe(be,this,!0)}},{key:"getErrorDetectedFlag",value:function(){return pe(be,this)}},{key:"getParentNode",value:function(){return pe(ve,this)}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}},{key:"applyDefaultValues",value:function(){this.initialSettings=$()(G.FU),this.minScale=0,this.maxScale=0}}])}();function Ae(e,t,n){return t=(0,X.A)(t),(0,K.A)(e,Se()?Reflect.construct(t,n||[],(0,X.A)(e).constructor):t.apply(e,n))}function Se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Se=function(){return!!e})()}var Ce=function(e){function t(e,n,r,i){var o;return(0,N.A)(this,t),o=Ae(this,t,[e,n,r,i]),(0,z.A)(o,"entryType",G.JE.GROUP),(0,z.A)(o,"listOfLayerEntryConfig",[]),o.listOfLayerEntryConfig=e.listOfLayerEntryConfig.map((function(e){return Q(e)?r.createGroupNode(e,n,r,o):r.createLeafNode(e,n,r,o)})).filter((function(e){return e})),o.findDuplicatesAndMarkThemAsErrors(),o}return(0,Z.A)(t,e),(0,B.A)(t,[{key:"getSchemaPath",value:function(){return G.y5}},{key:"getEntryType",value:function(){return G.JE.GROUP}},{key:"fetchListOfLayerMetadata",value:(n=(0,r.A)(o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.listOfLayerEntryConfig.forEach((function(e){t.push(e.fetchLayerMetadata())})),e.next=4,Promise.allSettled(t);case 4:e.sent.forEach((function(e,t){"rejected"===e.status&&n.listOfLayerEntryConfig[t].setErrorDetectedFlag()}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"findDuplicatesAndMarkThemAsErrors",value:function(){var e=this;this.listOfLayerEntryConfig.forEach((function(t,n){for(var r=n+1;r in the metadata.",LayerIdInvalidType:"The layerId of entry <=> must be an integer string."}),(0,z.A)(r,"messageKey",void 0),(0,z.A)(r,"messageVariables",void 0),r.messageKey=e,r.messageVariables=n;var i=r.messageList[e].split("<=>").reduce((function(e,t,r){return r0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}}]);var e}();function rt(e,t,n){return t=(0,X.A)(t),(0,K.A)(e,it()?Reflect.construct(t,n||[],(0,X.A)(e).constructor):t.apply(e,n))}function it(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(it=function(){return!!e})()}function ot(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function at(e,t){return e.get(st(e,t))}function st(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var lt=new WeakSet,ct=new WeakMap,ut=function(e){function t(e,n){var r,i,o;(0,N.A)(this,t),r=rt(this,t,[e,n]),ot(i=r,o=lt),o.add(i),function(e,t,n){ot(e,t),t.set(e,n)}(r,ct,(function(e,n){var i=r.getServiceMetadata().layers.reduce((function(n,i){return i.parentLayerId===e&&("Group Layer"===i.type?n.push(at(ct,r).call(r,i.id,i.name)):n.push((0,U.N)({layerId:i.id.toString(),layerName:{en:i.name,fr:i.name},geometryType:t.convertEsriGeometryTypeToOLGeometryType(i.geometryType)}))),n}),[]);return(0,U.N)({layerId:-1===e?n:"".concat(e),layerName:{en:n,fr:n},isLayerGroup:!0,listOfLayerEntryConfig:i})}));var a=r.metadataAccessPath.split("/"),s=a[a.length-1];return/^\d+$/.test(s)&&(r.metadataAccessPath=a.slice(0,-1).join("/"),r.listOfLayerEntryConfig.length&&(r.setErrorDetectedFlag(),ce.vF.logError("When an ESRI metadataAccessPath ends with a layer index, the listOfLayerEntryConfig must be empty.")),r.listOfLayerEntryConfig=[r.createLeafNode((0,U.N)({layerId:s}),n,r)]),r}return(0,Z.A)(t,e),(0,B.A)(t,[{key:"fetchServiceMetadata",value:(n=(0,r.A)(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ge.getXMLHttpRequest)("".concat(this.metadataAccessPath,"?f=json"));case 2:if("{}"===(t=e.sent)){e.next=18;break}try{n=JSON.parse(t)}catch(e){n=(0,U.N)({error:e})}if(!("error"in n)){e.next=11;break}this.setErrorDetectedFlag(),this.setErrorDetectedFlagForAllLayers(this.listOfLayerEntryConfig),ce.vF.logError("Error detected while reading ESRI metadata for geoview layer ".concat(this.geoviewLayerId,"."),n.error),e.next=16;break;case 11:return this.setServiceMetadata(n),this.listOfLayerEntryConfig=st(lt,this,dt).call(this,this.listOfLayerEntryConfig),this.setMetadataLayerTree(this.listOfLayerEntryConfig.length?this.listOfLayerEntryConfig:this.createLayerTree()),e.next=16,this.fetchListOfLayerMetadata();case 16:e.next=21;break;case 18:this.setErrorDetectedFlag(),this.setErrorDetectedFlagForAllLayers(this.listOfLayerEntryConfig),ce.vF.logError("Error detected while reading ESRI metadata for geoview layer ".concat(this.geoviewLayerId,". An empty object was returned."));case 21:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"createLayerTree",value:function(){var e=this.getServiceMetadata().layers;if(e.length>1){var n=this.getServiceMetadata().mapName;return[new Ne(at(ct,this).call(this,-1,n),this.getLanguage(),this)]}return 1===e.length?[this.createLeafNode((0,U.N)({layerId:e[0].id.toString(),layerName:{en:e[0].name,fr:e[0].name},geometryType:t.convertEsriGeometryTypeToOLGeometryType(e[0].geometryType)}),this.getLanguage(),this)]:[]}}],[{key:"convertEsriGeometryTypeToOLGeometryType",value:function(e){switch(e){case"esriGeometryPoint":case"esriGeometryMultipoint":return"point";case"esriGeometryPolyline":return"linestring";case"esriGeometryPolygon":case"esriGeometryMultiPolygon":return"polygon";default:throw new Error("Unsupported geometry type: ".concat(e))}}}]);var n}(nt);function dt(e){var t=this;return e.map((function(e){if(e.getErrorDetectedFlag())return e;if(Q(e))return e.listOfLayerEntryConfig=st(lt,t,dt).call(t,e.listOfLayerEntryConfig),e;try{return st(lt,t,ht).call(t,parseInt(e.layerId,10),e.getParentNode())}catch(t){return e.setErrorDetectedFlag(),ce.vF.logError(t.message,t),e}}))}function ht(e,t){var n=this.getServiceMetadata().layers,r=void 0!==e&&n.find((function(t){return t.id===e}));if(!r)throw new Pe("LayerIdNotFound",[null==e?void 0:e.toString()]);if(r&&"Group Layer"!==r.type){var i=(0,U.N)({layerId:r.id.toString(),layerName:{en:r.name,fr:r.name},geometryType:Xe.convertEsriGeometryTypeToOLGeometryType(r.geometryType)});return this.createLeafNode(i,this.getLanguage(),this,t)}var o=at(ct,this).call(this,parseInt(r.id,10),null==r?void 0:r.name);return this.createGroupNode(o,this.getLanguage(),this,t)}Xe=ut;var pt=n(6620);function ft(e,t,n){return t=(0,X.A)(t),(0,K.A)(e,gt()?Reflect.construct(t,n||[],(0,X.A)(e).constructor):t.apply(e,n))}function gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gt=function(){return!!e})()}var mt=function(e){function t(){var e;(0,N.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i2&&void 0!==arguments[2]?arguments[2]:[],r=(0,q.A)(n);if(Array.isArray(t))for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:this.getServiceMetadata().Capability.Layer;e&&n&&(void 0===n.EX_GeographicBoundingBox&&(n.EX_GeographicBoundingBox=e.EX_GeographicBoundingBox),void 0===n.queryable&&(n.queryable=e.queryable),void 0===n.cascaded&&(n.cascaded=e.cascaded),void 0===n.opaque&&(n.opaque=e.opaque),void 0===n.noSubsets&&(n.noSubsets=e.noSubsets),void 0===n.fixedWidth&&(n.fixedWidth=e.fixedWidth),void 0===n.fixedHeight&&(n.fixedHeight=e.fixedHeight),void 0===n.MinScaleDenominator&&(n.MinScaleDenominator=e.MinScaleDenominator),void 0===n.MaxScaleDenominator&&(n.MaxScaleDenominator=e.MaxScaleDenominator),void 0===n.BoundingBox&&(n.BoundingBox=e.BoundingBox),void 0===n.Dimension&&(n.Dimension=e.Dimension),void 0===n.Attribution&&(n.Attribution=e.Attribution),void 0===n.MaxScaleDenominator&&(n.MaxScaleDenominator=e.MaxScaleDenominator),void 0===n.MaxScaleDenominator&&(n.MaxScaleDenominator=e.MaxScaleDenominator),e.Style&&(n.Style||(n.Style=[]),e.Style.forEach((function(e){n.Style.find((function(t){return t.Name===e.Name}))||n.Style.push(e)}))),e.CRS&&(n.CRS||(n.CRS=[]),e.CRS.forEach((function(e){n.CRS.find((function(t){return t.Name===e}))||n.CRS.push(e)})))),void 0!==(null==n?void 0:n.Layer)&&n.Layer.forEach((function(e){return mn(yn,t,Ln).call(t,n,e)}))}function Rn(e,t,n){jn(e,t),t.set(e,n)}function jn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fn(e,t){return e.get(Nn(e,t))}function Dn(e,t,n){return e.set(Nn(e,t),n),n}function Nn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}sn=bn;var Bn=new WeakMap,zn=new WeakMap,Vn=new WeakMap,$n=new WeakSet,Gn=function(){return(0,B.A)((function e(t,n){var r,i,o,a=this;(0,N.A)(this,e),jn(i=this,o=$n),o.add(i),Rn(this,Bn,void 0),Rn(this,zn,!1),Rn(this,Vn,{}),(0,z.A)(this,"map",void 0),(0,z.A)(this,"theme",void 0),(0,z.A)(this,"navBar",void 0),(0,z.A)(this,"footerBar",void 0),(0,z.A)(this,"appBar",void 0),(0,z.A)(this,"overviewMap",void 0),(0,z.A)(this,"components",void 0),(0,z.A)(this,"corePackages",void 0),(0,z.A)(this,"externalPackages",void 0),(0,z.A)(this,"globalSettings",void 0),(0,z.A)(this,"serviceUrls",void 0),(0,z.A)(this,"schemaVersionUsed",void 0),Dn(zn,this,!ue(G.Su,t)),Dn(Bn,this,n);var s=$()(t.map);this.map=(0,U.K)(Y()(s,Un.call(e,null==s||null===(r=s.viewSettings)||void 0===r?void 0:r.projection))),this.map.listOfGeoviewLayerConfig=this.map.listOfGeoviewLayerConfig.map((function(t){return e.nodeFactory((0,U.N)(t),Fn(Bn,a))})).filter((function(e){return e&&(e.geoviewLayerId in Fn(Vn,a)?(e.setErrorDetectedFlag(),e.setErrorDetectedFlagForAllLayers(e.listOfLayerEntryConfig),ce.vF.logError("ERROR: The GeoView layer ".concat(e.geoviewLayerId," is duplicated."))):Fn(Vn,a)[e.geoviewLayerId]=e),e})),this.serviceUrls=(0,U.K)(Y()(t.serviceUrls,G.NA.serviceUrls)),this.theme=t.theme||G.NA.theme,this.navBar=(0,q.A)(t.navBar||G.NA.navBar),this.appBar=(0,U.K)(Y()(t.appBar,G.NA.appBar)),this.footerBar=(0,U.K)(t.footerBar),this.overviewMap=(0,U.K)(Y()(t.overviewMap,G.NA.overviewMap)),this.components=(0,q.A)(t.components||G.NA.components),this.corePackages=(0,q.A)(t.corePackages||G.NA.corePackages),this.externalPackages=(0,q.A)(t.externalPackages||G.NA.externalPackages),this.globalSettings=t.globalSettings||G.NA.globalSettings,this.schemaVersionUsed=t.schemaVersionUsed||G.NA.schemaVersionUsed,Fn(zn,this)&&Nn($n,this,Wn).call(this,t),de(G.Su,this)||this.setErrorDetectedFlag()}),[{key:"getErrorDetectedFlag",value:function(){return Fn(zn,this)}},{key:"setErrorDetectedFlag",value:function(){Dn(zn,this,!0)}},{key:"getGeoviewLayer",value:function(e){var t;return null===(t=Fn(Vn,this))||void 0===t?void 0:t[e]}},{key:"fetchAllServiceMetadata",value:(e=(0,r.A)(o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.map.listOfGeoviewLayerConfig.forEach((function(e){t.push(e.fetchServiceMetadata())})),e.next=4,Promise.allSettled(t);case 4:e.sent.forEach((function(e,t){"rejected"===e.status&&n.map.listOfGeoviewLayerConfig[t].setErrorDetectedFlag()}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}},{key:"applyUserConfigToGeoviewLayers",value:function(e){this.map.listOfGeoviewLayerConfig.forEach((function(t){if(null!=e&&e.length){var n=e.find((function(e){return e.geoviewLayerId===t.geoviewLayerId}));n&&t.applyUserConfig(n)}else t.applyUserConfig()}))}}],[{key:"nodeFactory",value:function(e,t){switch(e.geoviewLayerType){case G.oR.ESRI_DYNAMIC:return new zt(e,t);case G.oR.ESRI_FEATURE:return new Ht(e,t);case G.oR.WMS:return new bn(e,t);default:Qn.devMode&&ce.vF.logError("Invalid GeoView layerType (".concat(e.geoviewLayerType,")."))}}}]);var e}();function Un(e){var t=e&&G.if.includes(e)?e:G.NA.map.viewSettings.projection,n=$()(G.NA.map);return n.viewSettings.maxExtent=(0,q.A)(G.Nt[t]),n.viewSettings.initialView={zoomAndCenter:[3.5,G.VN[t]]},n}function Wn(e){this.map.viewSettings.projection=this.map.viewSettings.projection&&G.if.includes(this.map.viewSettings.projection)?this.map.viewSettings.projection:G.NA.map.viewSettings.projection,Nn($n,this,qn).call(this);var t=this.map.viewSettings.initialView.zoomAndCenter[0];this.map.viewSettings.initialView.zoomAndCenter[0]=!Number.isNaN(t)&&t>=0&&t<=28?t:G.NA.map.viewSettings.initialView.zoomAndCenter[0],Nn($n,this,Hn).call(this),this.schemaVersionUsed=G.ir.includes(this.schemaVersionUsed)?this.schemaVersionUsed:G.NA.schemaVersionUsed;var n=this.map.viewSettings.minZoom;this.map.viewSettings.minZoom=!Number.isNaN(n)&&n>=0&&n<=50?n:G.NA.map.viewSettings.minZoom;var r=this.map.viewSettings.maxZoom;this.map.viewSettings.maxZoom=!Number.isNaN(r)&&r>=0&&r<=50?r:G.NA.map.viewSettings.maxZoom,Nn($n,this,Yn).call(this),Nn($n,this,Kn).call(this,e)}function qn(){var e=this.map.viewSettings.initialView.zoomAndCenter[1][0],t=this.map.viewSettings.initialView.zoomAndCenter[1][1],n=this.map.viewSettings.projection;this.map.viewSettings.initialView.zoomAndCenter[1][0]=!Number.isNaN(e)&&e>G.mq[n].long[0]&&eG.mq[n].lat[0]&&tt[0]?a:G.mq[e].long[1],d=!Number.isNaN(s)&&s>t[1]?s:G.mq[e].lat[1];this.map.viewSettings.maxExtent=[l,c,u,d]}function Kn(e){var t,n,r,i,o,a,s,l,c,u,d=this;(Object.keys(e).forEach((function(e){e in d||ce.vF.logWarning("- Key '".concat(e,"' is invalid -"))})),(null==e||null===(t=e.map)||void 0===t||null===(t=t.viewSettings)||void 0===t?void 0:t.projection)!==this.map.viewSettings.projection)&&ce.vF.logWarning("- Invalid projection code ".concat(null==e||null===(l=e.map)||void 0===l||null===(l=l.viewSettings)||void 0===l?void 0:l.projection," replaced by ").concat(this.map.viewSettings.projection," -"));null!=e&&null!==(n=e.map)&&void 0!==n&&null!==(n=n.viewSettings)&&void 0!==n&&null!==(n=n.initialView)&&void 0!==n&&n.zoomAndCenter&&null!==(r=this.map.viewSettings.initialView)&&void 0!==r&&r.zoomAndCenter&&(null==e||null===(i=e.map)||void 0===i||null===(i=i.viewSettings)||void 0===i||null===(i=i.initialView)||void 0===i?void 0:i.zoomAndCenter[0])!==(null===(o=this.map.viewSettings.initialView)||void 0===o?void 0:o.zoomAndCenter[0])&&ce.vF.logWarning("- Invalid zoom level ".concat(null==e||null===(c=e.map)||void 0===c||null===(c=c.viewSettings)||void 0===c||null===(c=c.initialView)||void 0===c?void 0:c.zoomAndCenter[0],"\n replaced by ").concat(null===(u=this.map.viewSettings.initialView)||void 0===u?void 0:u.zoomAndCenter[0]," -"));var h,p=null==e||null===(a=e.map)||void 0===a||null===(a=a.viewSettings)||void 0===a||null===(a=a.initialView)||void 0===a?void 0:a.zoomAndCenter;(p&&Array.isArray(p)&&2===p.length&&Array.isArray(p[1])&&2===p[1].length&&(0,U.K)(p[1])!==this.map.viewSettings.initialView.zoomAndCenter[1]&&ce.vF.logWarning("- Invalid center ".concat(p[1],"\n replaced by ").concat(this.map.viewSettings.initialView.zoomAndCenter[1])),JSON.stringify(null==e||null===(s=e.map)||void 0===s?void 0:s.basemapOptions)!==JSON.stringify(this.map.basemapOptions))&&ce.vF.logWarning("- Invalid basemap options ".concat(JSON.stringify(null==e||null===(h=e.map)||void 0===h?void 0:h.basemapOptions)," replaced by ").concat(JSON.stringify(this.map.basemapOptions)," -"))}function Xn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Zn=function(){function e(){(0,N.A)(this,e)}return(0,B.A)(e,null,[{key:"getGVConfigFromUUIDs",value:(t=(0,r.A)(o().mark((function t(n,r,i){var a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="".concat(n,"/vcs?lang=").concat(r,"&id=").concat(i.toString()),t.next=3,J.A.get(a);case 3:return s=t.sent,t.abrupt("return",Xn(e,this,Jn).call(this,s,r));case 5:case"end":return t.stop()}}),t,this)}))),function(e,n,r){return t.apply(this,arguments)})}]);var t}();function Jn(e,t){if(!(null!=e&&e.data&&e.data.reponse&&e.data.reponse.rcs&&e.data.reponse.rcs[t])){var n,r=(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)||"";throw new Error("Invalid response from GeoCore service\n".concat(r,"\n"))}if(0===e.data.reponse.rcs[t].length)throw new Error("No layers returned by GeoCore service");for(var i=[],o=function(){var n=e.data.reponse.rcs[t][a];if(null!=n&&n.layers&&n.layers.length>0){var r=n.layers[0];if(r){var o=r.layerType,s=r.layerEntries,l=r.name,c=r.url,u=r.id,d=r.serverType,h=r.isTimeAware,p=c.indexOf("FeatureServer")>-1;if(o!==G.oR.ESRI_DYNAMIC||p)if(p){var f=c.split("/").slice(0,-1).join("/"),g=c.split("/").pop(),m=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(f),geoviewLayerType:G.oR.ESRI_FEATURE,isGeocore:!0,isTimeAware:h});m.listOfLayerEntryConfig=[(0,U.N)({layerId:g})],i.push(m)}else if(o===G.oR.ESRI_FEATURE){var y=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.ESRI_FEATURE,isGeocore:!0,isTimeAware:h});y.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.index)})})),i.push(y)}else if(o===G.oR.WMS){var v=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.WMS,isGeocore:!0,isTimeAware:h});v.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{serverType:void 0===d?"mapserver":d}})})),i.push(v)}else if(o===G.oR.WFS){var b=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.WFS,isGeocore:!0,isTimeAware:h});b.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"WFS",strategy:"all"}})})),i.push(b)}else if(o===G.oR.OGC_FEATURE){var w=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.OGC_FEATURE,isGeocore:!0,isTimeAware:h});w.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"featureAPI"}})})),i.push(w)}else if(o===G.oR.GEOJSON){var x=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.GEOJSON,isGeocore:!0,isTimeAware:h});x.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"GeoJSON"}})})),i.push(x)}else if(o===G.oR.XYZ_TILES){var A=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.XYZ_TILES,isGeocore:!0,isTimeAware:h});A.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id)})})),i.push(A)}else if(o===G.oR.VECTOR_TILES){var S=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.VECTOR_TILES,isGeocore:!0,isTimeAware:h});S.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),tileGrid:e.tileGrid,source:{dataAccessPath:(0,Ge.createLocalizedString)(c)}})})),i.push(S)}else if(o===G.oR.GEOPACKAGE){var C=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.GEOPACKAGE,isGeocore:!0,isTimeAware:h});C.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"GeoPackage"}})})),i.push(C)}else if(o===G.oR.IMAGE_STATIC){var E=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.IMAGE_STATIC,isTimeAware:h});E.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id)})})),i.push(E)}else if(o===G.oR.ESRI_IMAGE){var k=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.ESRI_IMAGE,isGeocore:!0,isTimeAware:h});k.listOfLayerEntryConfig=[(0,U.N)({layerId:c.split("/").slice(-2,-1)[0]})],i.push(k)}else ce.vF.logWarning("Layer type ".concat(o," not supported"));else{var T=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.ESRI_DYNAMIC,isGeocore:!0,isTimeAware:h});T.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.index)})})),i.push(T)}}}},a=0;a3&&void 0!==d[3])||d[3],a=Array.isArray(n)?n:[n],s=r||G.NA.serviceUrls.geocoreUrl,!(l=a.filter((function(e){return e.geoviewLayerType===G.JF})).map((function(e){return e.geoviewLayerId}))).length){e.next=19;break}return e.prev=5,e.next=8,Zn.getGVConfigFromUUIDs(s,t,l);case 8:return c=e.sent,u=(u=a.map((function(e){if(e.geoviewLayerType===G.JF){var n=c.find((function(n){return n.geoviewLayerId==="rcs.".concat(e.geoviewLayerId,".").concat(t)}));if(n)return n.geoviewLayerId=e.geoviewLayerId,n.isGeocore=!0,n}return e}))).filter((function(e){return e.geoviewLayerType!==G.JF||(ce.vF.logError("Unable to convert GeoCore layer (Id=".concat(e.geoviewLayerId,").")),!(i||!Array.isArray(n)))})),e.abrupt("return",Array.isArray(n)?u:u[0]);case 14:e.prev=14,e.t0=e.catch(5),ce.vF.logError("Failed to process the array of GeoCore layers",l,r,e.t0);case 17:e.next=20;break;case 19:return e.abrupt("return",n);case 20:return e.abrupt("return",void 0);case 21:case"end":return e.stop()}}),e,null,[[5,14]])}))),function(e,t,n){return a.apply(this,arguments)})},{key:"validateMapConfig",value:function(t,n){var r="string"==typeof t?nr.call(e,t):t;try{if(!r)throw new _e("The string configuration provided cannot be translated to a json object");if(!r.map)throw new _e("The map property is mandatory");e.lastMapConfigCreated=new Gn(r,n)}catch(t){t instanceof _e?ce.vF.logError(t.message):ce.vF.logError("ConfigApi.validateMapConfig - An error occured",t);var i=e.getDefaultMapFeatureConfig(n);i.setErrorDetectedFlag(),e.lastMapConfigCreated=i}return e.lastMapConfigCreated}},{key:"createMapConfig",value:(i=(0,r.A)(o().mark((function t(n,r){var i,a,s,l,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i="string"==typeof n?nr.call(e,n):$()(n),t.prev=1,i){t.next=4;break}throw new _e("The string configuration provided cannot be translated to a json object");case 4:if(i.map){t.next=6;break}throw new _e("The map property is mandatory");case 6:return i.map.listOfGeoviewLayerConfig=i.map.listOfGeoviewLayerConfig||[],s=i.map.listOfGeoviewLayerConfig.length,t.next=10,e.convertGeocoreToGeoview(r,i.map.listOfGeoviewLayerConfig,null==i||null===(a=i.serviceUrls)||void 0===a?void 0:a.geocoreUrl);case 10:i.map.listOfGeoviewLayerConfig=t.sent,l=s!==i.map.listOfGeoviewLayerConfig.length,e.lastMapConfigCreated=new Gn(i,r),l&&e.lastMapConfigCreated.setErrorDetectedFlag(),t.next=22;break;case 16:t.prev=16,t.t0=t.catch(1),t.t0 instanceof _e?ce.vF.logError(t.t0.message):ce.vF.logError("ConfigApi.createMapConfig - An error occured",t.t0),(c=e.getDefaultMapFeatureConfig(r)).setErrorDetectedFlag(),e.lastMapConfigCreated=c;case 22:return t.abrupt("return",e.lastMapConfigCreated);case 23:case"end":return t.stop()}}),t,null,[[1,16]])}))),function(e,t){return i.apply(this,arguments)})},{key:"createLayerConfig",value:(n=(0,r.A)(o().mark((function t(n,r){var i,a,s,l,c=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=c.length>2&&void 0!==c[2]?c[2]:[],a=c.length>3&&void 0!==c[3]?c[3]:"en",r!==G.JF){t.next=18;break}return t.prev=3,l={geoviewLayerId:n,geoviewLayerType:r},t.next=7,e.convertGeocoreToGeoview(a,(0,U.N)(l));case 7:if(s=t.sent){t.next=10;break}return t.abrupt("return",void 0);case 10:t.next=16;break;case 12:return t.prev=12,t.t0=t.catch(3),ce.vF.logError("Unable to convert GeoCore layer (Id=".concat(n,").")),t.abrupt("return",void 0);case 16:t.next=19;break;case 18:s=(0,U.N)({geoviewLayerId:(0,Ge.generateId)(),geoviewLayerName:{en:"unknown",fr:"inconnu"},geoviewLayerType:r,metadataAccessPath:{en:n,fr:n},listOfLayerEntryConfig:i.map((function(e){return{layerId:e}}))});case 19:return e.lastLayerConfigCreated=Gn.nodeFactory(s,a),t.abrupt("return",e.lastLayerConfigCreated);case 21:case"end":return t.stop()}}),t,null,[[3,12]])}))),function(e,t){return n.apply(this,arguments)})},{key:"createMetadataLayerTree",value:(t=(0,r.A)(o().mark((function t(n,r){var i,a,s,l=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=l.length>2&&void 0!==l[2]?l[2]:[],a=l.length>3&&void 0!==l[3]?l[3]:"en",t.next=4,e.createLayerConfig(n,r,i,a);case 4:if(!(s=t.sent)||s.getErrorDetectedFlag()){t.next=10;break}return t.next=8,s.fetchServiceMetadata();case 8:if(s.getErrorDetectedFlag()){t.next=10;break}return t.abrupt("return",s.getMetadataLayerTree());case 10:throw new _e("Unable to build metadata layer tree.");case 11:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]);var t,n,i,a,s}();function er(e){var t={};if(void 0!==e)for(var n=e.split("&"),r=0;r{"use strict";n.d(t,{w:()=>R,A:()=>j});var r=n(30538),i=(n(63629),n(68676)),o=n(43331),a=n(21451),s=n(10280),l=n(92394),c=n(97282);let u;function d(e){const{injectFirst:t,children:n}=e;return t&&u?(0,c.jsx)(s.C,{value:u,children:n}):n}"object"==typeof document&&(u=(0,l.A)({key:"css",prepend:!0}));var h=n(87286),p=n(22554),f=n(48678),g=n(11367),m=n(56239),y=n(8826);const v="function"==typeof(0,y.Dp)({}),b=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),w=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),x=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach((([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}}));let r={html:b(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...w(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},A="mui-ecs";(0,y.Dp)(v?({theme:e,enableColorScheme:t})=>x(e,t):({theme:e})=>(e=>{const t=x(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${A})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={[`:root:not(:has(.${A}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${A}))`]:{colorScheme:r.palette?.mode}}})),t})(e));var S=n(10383),C=n(59644);function E(e){return(0,C.Ay)("MuiScopedCssBaseline",e)}(0,S.A)("MuiScopedCssBaseline",["root"]);const k=(0,f.Ay)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((0,g.A)((({theme:e})=>{const t={};return e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([n,r])=>{const i=e.getColorSchemeSelector(n);i.startsWith("@")?t[i]={colorScheme:r.palette?.mode}:t[`&${i.replace(/\s*&/,"")}`]={colorScheme:r.palette?.mode}})),{...b(e,!1),...w(e),"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold},variants:[{props:{enableColorScheme:!0},style:e.vars?t:{colorScheme:e.palette.mode}}]}}))),T=r.forwardRef((function(e,t){const n=(0,m.b)({props:e,name:"MuiScopedCssBaseline"}),{className:r,component:i="div",enableColorScheme:o,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return(0,p.A)({root:["root"]},E,t)})(s);return(0,c.jsx)(k,{as:i,className:(0,h.A)(l.root,r),ref:t,ownerState:s,...a})}));var _=n(21978),O=n(71229),P=n(1220),I=n(68705),M=n(6883),L=n(15205),R=(0,r.createContext)({mapId:"",mapFeaturesConfig:void 0});const j=function(e){M.vF.logTraceRender("components/app-start");var t=e.mapFeaturesConfig,n=e.onMapViewerInit,s=t.mapId,l=(0,r.useMemo)((function(){return M.vF.logTraceUseMemo("APP-START - mapContextValue",s),{mapId:s}}),[s]),u=(0,L.lk)(s),h=(0,L.iO)(s);return(0,c.jsx)(d,{injectFirst:!0,children:(0,c.jsx)(a.A,{theme:O.w,children:(0,c.jsx)(T,{children:(0,c.jsx)(r.Suspense,{fallback:"",children:function(){var e=i.Ay.cloneInstance({lng:u,fallbackLng:u});if(!(s in I.FHQ.maps)){var d=new P.F(t,e);I.FHQ.maps[s]=d}return I.FHQ.maps[s].onMapInit((function(e){null==n||n(e)})),(0,c.jsx)(o.I18nextProvider,{i18n:e,children:(0,c.jsx)(R.Provider,{value:l,children:(0,c.jsx)(a.A,{theme:(0,O.O)(h),children:(0,c.jsx)(r.StrictMode,{children:(0,c.jsx)(_.$,{mapViewer:I.FHQ.maps[s]})})})})})}()})})})})}},95985:(e,t,n)=>{"use strict";n.d(t,{r:()=>w});var r=n(13718),i=n(47280),o=n(42432),a=n(63436),s=n(76200),l=n(2358),c=n(7396),u=n(6883);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.d.setActiveAppBarTab(this.mapId,e,t,n,r)}}])}();function x(e){l.A.emitEvent(this,g(y,this),e)}function A(e){l.A.emitEvent(this,g(v,this),e)}function S(){this.buttons.default={}}},76099:(e,t,n)=>{"use strict";n.d(t,{h:()=>B});var r=n(42432),i=n(55907),o=n(76390),a=n.n(o),s=n(46900),l=n.n(s),c=n(43331),u=n(30538),d=n(47001),h=n(33828),p=n(23220),f=n(43798),g=n(72845),m=n(73854),y=n(74816),v=n(15205),b=n(17755),w=n(6883),x=n(26899),A=n(57145),S=n(45831),C=function(e){return{appBar:{display:"flex",flexDirection:"row",justifyContent:"space-between",zIndex:e.zIndex.appBar,pointerEvents:"all",backgroundColor:e.palette.geoViewColor.bgColor.main,border:e.palette.geoViewColor.primary.light[100],"&.interaction-static":{position:"absolute",left:0,top:0,height:"100%",backgroundColor:"unset",border:"unset",paddingBottom:"60px","&>div":{border:"unset !important"}}},appBarList:{width:60,"& li":{backgroundColor:"transparent",justifyContent:"center",margin:"16px 0",padding:0,"&:hover":{backgroundColor:"transparent",color:e.palette.geoViewColor.primary.light[300]}},"& hr":{width:"80%",marginLeft:"7px"}},appBarButtons:{borderRightColor:e.palette.geoViewColor.primary.light[100],borderRightWidth:1,borderRightStyle:"solid",width:64},appBarButton:{backgroundColor:e.palette.geoViewColor.primary.main,color:e.palette.geoViewColor.primary.light[700],height:44,width:44,transition:"background-color 0.3s ease-in-out",border:"2px solid transparent","&:hover":{backgroundColor:e.palette.geoViewColor.primary.light[100],color:e.palette.geoViewColor.primary.light[700]},"&:focus":{backgroundColor:e.palette.geoViewColor.primary.light[150],color:e.palette.geoViewColor.primary.light[700]},"&:active":{backgroundColor:e.palette.geoViewColor.primary.light[100],color:e.palette.geoViewColor.primary.light[700]},"&.active":{border:"2px solid ".concat(e.palette.geoViewColor.primary.light[100]),backgroundColor:"transparent",color:e.palette.geoViewColor.primary.light[100]},"& .MuiSvgIcon-root":{height:20,width:20}},versionButtonDiv:{position:"absolute",bottom:0},appBarPanels:{}}},E=n(29067);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var r=n(55907),i=n(30538),o=n(43331),a=n(59149),s=n(44912),l=n(18803),c=n(95197),u=n(71505),d=n(28275),h=n(24258),p=n(33828),f=n(17755),g=n(74816),m=n(31626),y=n(97282);function v(){var e=(0,o.useTranslation)().t,t=(0,f.Jh)(),n=(0,g.GT)(),v=document.getElementById("shell-".concat(t)),b=(0,i.useState)(null),w=(0,r.A)(b,2),x=w[0],A=w[1],S=(0,i.useState)(!1),C=(0,r.A)(S,2),E=C[0],k=C[1],T=function(){E&&(k(!1),A(null))},_={versionInfoPanel:{width:"200px",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.light[200]},borderRadius:"5px",boxShadow:2,marginLeft:"15px","& a":{color:function(e){return"light"===e.palette.mode?e.palette.secondary.contrastText:e.palette.geoViewColor.primary.light[300]},textDecoration:"underLine"}},versionsInfoTitle:{fontSize:function(e){return e.palette.geoViewFontSize.default},fontWeight:"700",padding:"20px",color:function(e){return e.palette.geoViewColor.textColor.main},borderBottom:function(e){return"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[100],"}")},marginBottom:"10px"},versionInfoContent:{padding:"20px",gap:"5px",display:"flex",flexDirection:"column"}};return(0,y.jsx)(a.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:T,children:(0,y.jsxs)(s.A,{children:[(0,y.jsx)(p.IconButton,{id:"version-button",tooltip:"appbar.version",tooltipPlacement:"bottom-end",onClick:function(e){A(e.currentTarget),k(!E)},className:"".concat("dynamic"===n?"buttonFilled":"style4"," ").concat(E?"active":""),"aria-label":"appbar.version",children:(0,y.jsx)(l.A,{viewBox:"-4 -2 38 36",children:(0,y.jsx)(p.GeoCaIcon,{})})}),(0,y.jsx)(p.Popper,{open:E,anchorEl:x,placement:"right-end",onClose:T,container:v,children:(0,y.jsxs)(c.A,{sx:_.versionInfoPanel,children:[(0,y.jsx)(u.A,{sx:_.versionsInfoTitle,component:"h3",children:e("appbar.version")}),(0,y.jsxs)(s.A,{sx:_.versionInfoContent,children:[(0,y.jsxs)(s.A,{sx:{display:"flex",flexDirection:"row",alignContent:"center",gap:"6px"},children:[(0,y.jsx)(l.A,{viewBox:"-4 -2 38 36",children:(0,y.jsx)(p.GeoCaIcon,{})}),(0,y.jsx)(d.A,{rel:"noopener",href:h.un.url,target:"_black",children:h.un.text})]}),(0,y.jsxs)(s.A,{sx:{display:"flex",flexDirection:"row",alignContent:"center",gap:"6px"},children:[(0,y.jsx)(m.A,{}),(0,y.jsx)(d.A,{rel:"noopener",href:h.Dy,target:"_black",children:e("appbar.repoLink")})]}),(0,y.jsx)(u.A,{component:"div",children:"v.".concat(1,".").concat(0,".").concat(0)}),(0,y.jsx)(u.A,{component:"div",children:new Date(1726154585897).toLocaleDateString()})]})]})})]})})}},57692:(e,t,n)=>{"use strict";n.d(t,{m:()=>f});var r=n(42432),i=n(55907),o=n(30538),a=n(47001),s=n(33828),l=n(73854),c=n(74816),u=n(76200),d=n(17755),h=n(6883),p=n(97282);function f(){h.vF.logTraceRender("components/attribution/attribution");var e=(0,a.A)(),t=(0,d.Jh)(),n=document.getElementById("shell-".concat(t)),f=(0,o.useState)(null),g=(0,i.A)(f,2),m=g[0],y=g[1],v=Boolean(m),b=(0,c.re)(),w=(0,l.dY)(),x=(0,o.useCallback)((function(e){y(e.currentTarget)}),[]),A=(0,o.useCallback)((function(){y(null)}),[]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.IconButton,{id:"attribution",onClick:x,className:v?"active":"",tooltipPlacement:"top",tooltip:"mapctrl.attribution.tooltip","aria-label":"mapctrl.attribution.tooltip",sx:(0,r.A)((0,r.A)((0,r.A)({color:e.palette.geoViewColor.bgColor.light[800],marginTop:w?"0.75rem":"0.25rem"},e.breakpoints.up("md"),{marginTop:w?"1.4375rem":"none"}),"width","30px"),"height","30px"),children:(0,p.jsx)(s.MoreHorizIcon,{})}),(0,p.jsx)(s.Popover,{open:v,anchorEl:m,container:n,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"},onClose:A,children:(0,p.jsx)(s.Box,{sx:{padding:"1rem",width:"28.125rem"},children:b.map((function(e){return(0,p.jsx)(s.Typography,{children:e},(0,u.generateId)())}))})})]})}},21712:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(30538),i=n(33828),o=n(74816),a=n(6883),s=n(17755),l=n(97282);function c(){a.vF.logTraceRender("components/click-marker/click-marker");var e=(0,s.Jh)(),t=(0,r.useRef)(null),n="".concat(e,"-clickmarker"),c=(0,o.yC)(),u=(0,o.Rs)(),d=(0,o.U6)(),h=d.setOverlayClickMarkerRef,p=d.showClickMarker;return setTimeout((function(){return h(t.current)}),0),(0,r.useEffect)((function(){a.vF.logTraceUseEffect("CLICK-MARKER - clickCoordinates"),u&&p({lnglat:u.lnglat})}),[u,p]),(0,l.jsx)(i.Box,{ref:t,id:n,sx:{position:"absolute",visibility:void 0!==c?"visible":"hidden"},children:(0,l.jsx)(i.ClickMapMarker,{sx:{animation:"opacity 1s ease-in","@keyframes opacity":{from:{opacity:0},to:{opacity:1}}},fontSize:"large",color:"warning"})})}},1732:(e,t,n)=>{"use strict";n.d(t,{Pe:()=>C,PE:()=>b,Wu:()=>w.W,xk:()=>S});n(46700);var r=n(30538),i=n(47001),o=n(43331),a=n(38811),s=n(33828),l=function(e){return{list:{overflowY:"auto",color:"text.primary",width:"100%",paddingRight:"14px","& .MuiListItemText-primary":{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600"},"& .MuiListItem-root":{height:"100%","& .MuiListItemButton-root":{padding:"0 0 0 16px",height:"100%",backgroundColor:e.palette.geoViewColor.bgColor.light[500]}},"& .MuiListItemButton-root":{minHeight:"73px"},"& .MuiListItemIcon-root":{minWidth:"2rem"},"& .MuiListItemText-root":{">span":{fontSize:e.palette.geoViewFontSize.default},"> p":{fontSize:e.palette.geoViewFontSize.sm,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},listPrimaryText:{minWidth:"0",marginTop:"0.5rem",marginBottom:"0.5rem",marginLeft:"10px",flex:"1 1 auto",display:"flex",flexDirection:"column","& .layerTitle":{fontSize:e.palette.geoViewFontSize.default,fontWeight:"600",lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},">div":{display:"flex",alignItems:"center",marginTop:"4px",">p":{fontSize:"".concat(e.palette.geoViewFontSize.sm," !important"),color:e.palette.text.secondary,fontWeight:400}," svg":{width:"0.75em",height:"0.75em"}}},borderWithIndex:"2px solid ".concat(e.palette.geoViewColor.primary.main," !important"),borderNone:"none",headline:{fontSize:e.palette.geoViewFontSize.md,fontWeight:"bold"},layersInstructionsPaper:{padding:"2rem",cursor:"pointer"},layersInstructionsTitle:{fontSize:e.palette.geoViewFontSize.md,fontWeight:"600",lineHeight:"1.5em"},layersInstructionsBody:{fontSize:e.palette.geoViewFontSize.default}}},c=n(60521),u=n(97282),d=(0,r.memo)((function(e){var t=e.id,n=e.isSelected,d=e.layer,h=e.onListItemClick,p=e.layerIndex,f=(0,i.A)(),g=l(f),m=(0,o.useTranslation)().t,y=0===(null==d?void 0:d.numOffeatures)||null===(null==d?void 0:d.features),v=0===(null==d?void 0:d.numOffeatures)||null===(null==d?void 0:d.features)||"processing"===d.queryStatus||"loading"===d.layerStatus||"processing"===d.layerStatus,b=(0,r.useCallback)((function(){var e;return"error"===d.layerStatus||"error"===(null==d?void 0:d.queryStatus)?"".concat(m("legend.layerError")):["init","processing"].includes(d.queryStatus)?"".concat(m("layers.querying"),"..."):(0,u.jsxs)(u.Fragment,{children:[d.layerFeatures," ",null!==(e=null==d?void 0:d.mapFilteredIcon)&&void 0!==e?e:""]})}),[d,m]);var w,x,A=(0,a.zh)({delay:150*p,from:{opacity:.1},to:{opacity:1}}),S=(0,r.useCallback)((function(e,t){"Enter"!==e.key||y||(h(t),e.preventDefault())}),[y,h]),C=(0,a.CS)(s.Paper);return(0,u.jsx)(C,{sx:{marginBottom:"1rem"},style:A,className:(x=["layer-panel","bordered",null!==(w=d.layerStatus)&&void 0!==w?w:"","query-".concat(d.queryStatus)],n&&x.push("selectedLayer bordered-primary"),x.join(" ")),children:(0,u.jsx)(s.Tooltip,{title:d.tooltip,placement:"top",arrow:!0,children:(0,u.jsx)(s.Box,{children:(0,u.jsx)(s.ListItem,{disablePadding:!0,onKeyDown:function(e){return S(e,d)},onClick:function(){return h(d)},tabIndex:0,id:t,children:(0,u.jsxs)(s.ListItemButton,{tabIndex:-1,selected:n,disabled:y||v,"aria-label":d.layerName,children:[d.layerPath&&!d.content?(0,u.jsx)(c.B,{layer:d}):null,(0,u.jsxs)(s.Box,{sx:g.listPrimaryText,children:[(0,u.jsx)(s.Typography,{className:"layerTitle",children:d.layerName}),(0,u.jsx)(s.Box,{display:"flex",alignContent:"center",children:(0,u.jsx)(s.Typography,{component:"p",variant:"subtitle1",noWrap:!0,display:"block",children:b()})})]})]})})})})})}));function h(e){var t=e.layerList,n=e.selectedLayerPath,r=e.onListItemClick,a=(0,i.A)(),c=l(a),h=(0,o.useTranslation)().t;return(0,u.jsxs)(s.List,{sx:c.list,children:[!!t.length&&t.map((function(e,t){var i,o;return(0,u.jsx)(d,{id:"".concat(null!==(i=null==e?void 0:e.layerUniqueId)&&void 0!==i?i:""),isSelected:(null!==(o=null==e?void 0:e.numOffeatures)&&void 0!==o?o:1)>0&&e.layerPath===n,layer:e,onListItemClick:r,layerIndex:t},e.layerPath)})),!t.length&&(0,u.jsx)(d,{id:"dummyPath",isSelected:!1,layerIndex:0,layer:{layerPath:"",layerName:h("layers.instructionsNoLayersTitle"),layerFeatures:h("layers.instructionsNoLayersBody"),layerStatus:"processed",queryStatus:"processed",numOffeatures:0},onListItemClick:r},"dummyPath")]})}var p=n(42432),f=n(6883),g=n(66054),m=n(24258),y=n(73854);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){var t=e.children,n=e.guideContentIds,o=e.layerList,a=e.selectedLayerPath,l=e.onLayerListClicked,c=e.onIsEnlargeClicked,d=e.fullWidth,b=e.onGuideIsOpen,w=e.containerType,x=void 0===w?m.vB.FOOTER_BAR:w,A=(0,r.useRef)(null),S=(0,i.A)(),C=(0,y.A6)().setSelectedFooterLayerListItem,E=(0,r.useCallback)((function(e){var t,n;null==l||l(e),null===(t=A.current)||void 0===t||t.setIsRightPanelVisible(!0),null===(n=A.current)||void 0===n||n.setRightPanelFocus(),C("".concat(e.layerUniqueId))}),[l,C]),k=(0,r.useCallback)((function(){return f.vF.logTraceUseCallback("LAYOUT - renderLayerList"),(0,u.jsx)(h,{selectedLayerPath:a,onListItemClick:E,layerList:o})}),[a,o,E]),T=(0,r.useMemo)((function(){var e,t;return null!==(e=null===(t=o.find((function(e){return e.layerPath===a})))||void 0===t?void 0:t.layerName)&&void 0!==e?e:""}),[o,a]),_=(0,r.useCallback)((function(){var e=function(e){for(var t=1;t{"use strict";n.d(t,{B:()=>c});var r=n(47001),i=n(33828),o=function(e){return{legendIconTransparent:{display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24},iconPreviewHoverable:{width:24,height:24,position:"absolute",left:-3,top:-2,padding:0,borderRadius:0,boxShadow:2,transition:"transform .3s ease-in-out","&:hover":{transform:"rotate(-18deg) translateX(-8px)"}},iconPreviewStacked:{width:24,height:24,padding:0,borderRadius:0,border:"1px solid",borderColor:e.palette.geoViewColor.bgColor.dark[600],boxShadow:2,backgroundColor:e.palette.geoViewColor.white},maxIconImg:{maxWidth:24,maxHeight:24},legendIcon:{display:"flex",justifyContent:"center",alignItems:"center",width:24,height:"24px !important",backgroundColor:e.palette.geoViewColor.white,border:"1px solid",borderColor:e.palette.geoViewColor.bgColor.dark[600],borderRadius:.5},stackIconsBox:{width:24,height:24,position:"relative","&:focus":{outlineColor:e.palette.geoViewColor.bgColor.dark[600]}},iconPreview:{padding:0,borderRadius:0,boxShadow:2,"&:focus":{border:"revert"}}}},a=n(24795),s=n(97282);function l(e){var t=e.layerPath,n=e.onIconClick,l=e.onStackIconClick,c=(0,r.A)(),u=o(c),d=(0,a.Uk)(t),h=(null==d?void 0:d.length)>0?d[0]:"",p=(null==d?void 0:d.length)>1?d[1]:"",f=null==d?void 0:d.length;return 1===f?(0,s.jsx)(i.IconButton,{tabIndex:-1,sx:u.iconPreview,color:"primary",size:"small",onClick:"no data"===h?void 0:n,"aria-hidden":"true",children:"no data"===h?(0,s.jsx)(i.BrowserNotSupportedIcon,{}):(0,s.jsx)(i.Box,{sx:u.legendIcon,children:(0,s.jsx)(i.Box,{component:"img",alt:"icon",src:h,sx:u.maxIconImg})})}):f&&f>0?(0,s.jsxs)(i.Box,{tabIndex:-1,onClick:n,sx:u.stackIconsBox,onKeyPress:function(e){return null==l?void 0:l(e)},"aria-hidden":"true",children:[(0,s.jsx)(i.IconButton,{sx:u.iconPreviewStacked,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIconTransparent,children:p&&(0,s.jsx)(i.Box,{component:"img",alt:"icon",src:p,sx:u.maxIconImg})})}),(0,s.jsx)(i.IconButton,{sx:u.iconPreviewHoverable,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIcon,children:h&&(0,s.jsx)(i.Box,{component:"img",alt:"icon",src:h,sx:u.maxIconImg})})})]}):""!==t&&0===d.length&&"!"!==t.charAt(0)?(0,s.jsx)(i.Box,{tabIndex:-1,onClick:n,sx:u.stackIconsBox,onKeyPress:function(e){return null==l?void 0:l(e)},"aria-hidden":"true",children:(0,s.jsx)(i.IconButton,{sx:u.iconPreviewStacked,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIconTransparent,children:(0,s.jsx)(i.BrowserNotSupportedIcon,{})})})}):null}function c(e){var t=e.layer;return"error"===t.layerStatus||"queryStatus"in t&&"error"===t.queryStatus?(0,s.jsx)(i.ErrorIcon,{color:"error"}):"processing"===t.layerStatus||"loading"===t.layerStatus||"queryStatus"in t&&"processing"===t.queryStatus?(0,s.jsx)(i.Box,{sx:{padding:"5px",marginRight:"10px"},children:(0,s.jsx)(i.CircularProgressBase,{size:20})}):"children"in t&&null!=t&&t.children.length?(0,s.jsx)(i.GroupWorkOutlinedIcon,{color:"primary"}):(0,s.jsx)(l,{layerPath:t.layerPath})}},66054:(e,t,n)=>{"use strict";n.d(t,{z:()=>C});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(34089),c=n(33828),u=n(46700),d=n(60325),h=n(97282);const p=function(e){var t=e.open,n=e.onClose,r=e.children;return(0,h.jsx)(c.Dialog,{fullScreen:!0,maxWidth:"xl",open:t,onClose:n,disablePortal:!0,children:(0,h.jsxs)(c.DialogContent,{sx:{display:"flex",flexDirection:"column",alignItems:"end"},children:[(0,h.jsx)(c.IconButton,{onClick:n,color:"primary",className:"buttonFilledOutline",sx:{marginBottom:"1.5rem"},children:(0,h.jsx)(c.CloseIcon,{})}),r]})})};var f=n(6883),g=n(58211),m=n(639),y=n(74681),v=n(11288),b=n(15205),w=n(73854),x=n(24258);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t div":{maxHeight:"calc(100vh - 120px)",overflow:"auto"},"& .MuiTableContainer-root":{maxHeight:"calc(100vh - 260px)"},"& .guidebox-container":{maxHeight:"calc(100vh - 120px)",overflow:"auto"}},"& .MuiPaper-root":{border:"none"},"& .guideBox":{color:"".concat(e.palette.geoViewColor.grey.dark[800]," !important"),margin:"1rem",img:{maxWidth:"100%"},td:{width:"auto",paddingLeft:"15px"},th:{textAlign:"left",paddingLeft:"15px"},"& h3":{"&:first-of-type":{display:"flex",alignItems:"center",gap:"0.325rem"}}}}}}(B),V=(0,a.useTranslation)().t,$=(0,b.DR)(),G=(0,b.kv)(),U=(0,w.Qy)(),W=(0,o.useState)(!1),q=(0,i.A)(W,2),H=q[0],Y=q[1],K=(0,o.useState)(!1),X=(0,i.A)(K,2),Z=X[0],J=X[1],Q=(0,o.useState)(!1),ee=(0,i.A)(Q,2),te=ee[0],ne=ee[1],re=(0,o.useState)(!1),ie=(0,i.A)(re,2),oe=ie[0],ae=ie[1],se=(0,d.W)({footerPanelTab:"default"}),le=se.leftPanelRef,ce=se.rightPanelRef,ue=se.panelTitleRef,de=(0,o.useRef)();(0,o.useImperativeHandle)(t,(function(){return{setIsRightPanelVisible:function(e){return Y(e)},setRightPanelFocus:function(){var e;de.current&&(de.current.tabIndex=0,null===(e=de.current)||void 0===e||e.focus())}}})),(0,o.useEffect)((function(){J(!O&&!!L)}),[O,L]),(0,o.useEffect)((function(){null==j||j(Z)}),[Z,j]),(0,o.useEffect)((function(){D&&te&&ne(!1)}),[D,te]),(0,o.useEffect)((function(){var e=function(e){var t;"Escape"===e.key&&U.length&&de.current&&(de.current.tabIndex=-1,null===(t=document.getElementById(U))||void 0===t||t.focus())},t=de.current;return null==t||t.addEventListener("keydown",e),function(){null==t||t.removeEventListener("keydown",e)}}),[U]);var he=(0,o.useCallback)((function(e){f.vF.logTraceUseCallback("LAYOUT - handleIsEnlarge"),ne(e),null==R||R(e)}),[R]),pe=(0,o.useCallback)((function(){var e;L&&(J(!0),null===(e=de.current)||void 0===e||e.focus())}),[J,L]);B.breakpoints.down("md")&&(E||A||H||I||Y(!0));var fe,ge;return(0,h.jsxs)(c.Box,{ref:t,children:[(0,h.jsxs)(u.N.Root,{sx:{pt:8,pb:0},ref:ue,children:[!I&&(0,h.jsx)(u.N.Left,{isRightPanelVisible:H,isEnlarged:te,"aria-hidden":!H,sxProps:{zIndex:oe?"unset":200},className:"responsive-layout-left-top",children:A}),(0,h.jsx)(u.N.Right,{isRightPanelVisible:H,isEnlarged:te,fullWidth:I,sxProps:{zIndex:oe?"unset":100},className:"responsive-layout-right-top",children:(0,h.jsxs)(c.Box,{sx:(0,r.A)((0,r.A)({display:"flex",alignItems:I||N===x.vB.APP_BAR?"end":"center",flexDirection:I||N===x.vB.APP_BAR?"column":"row",gap:I||N===x.vB.APP_BAR?"10px":"0"},B.breakpoints.up("md"),{justifyContent:I||N===x.vB.APP_BAR?"space-between":"right"}),B.breakpoints.down("md"),{justifyContent:"space-between"}),children:[null!=T?T:(0,h.jsx)(c.Box,{}),(0,h.jsx)(c.Box,{sx:z.rightButtonsContainer,children:(0,h.jsxs)(c.ButtonGroup,{size:"small",variant:"outlined","aria-label":"outlined button group",children:[!I&&!D&&(window.innerWidth<=B.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",startIcon:te?(0,h.jsx)(g.A,{}):(0,h.jsx)(m.A,{}),sx:{boxShadow:"none"},onClick:function(){return he(!te)},tooltip:V(te?"dataTable.reduceBtn":"dataTable.enlargeBtn"),children:V(te?"dataTable.reduceBtn":"dataTable.enlargeBtn")})),!(null==L||!L.length)&&(window.innerWidth<=B.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",disabled:Z,variant:"outlined",size:"small",onClick:function(){return pe()},tooltip:V("general.openGuide"),startIcon:(0,h.jsx)(v.A,{}),children:V("general.guide")})),!G&&(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",variant:"outlined",size:"small",onClick:function(){return ae(!oe)},tooltip:V(oe?"general.closeFullscreen":"general.openFullscreen"),startIcon:(0,h.jsx)(c.FullscreenIcon,{}),children:V("general.fullScreen")}),!(!E&&!A)&&(I||!(window.innerWidth>=B.breakpoints.values.md)&&H?(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",color:"primary",className:"buttonFilledOutline",startIcon:(0,h.jsx)(y.A,{fontSize:B.palette.geoViewFontSize.sm}),sx:S({},I?z.appBarEnlargeButton:z.footerBarEnlargeButton),onClick:function(){return Y(!1)},tooltip:null!==(ge=V("dataTable.close"))&&void 0!==ge?ge:"",children:V("dataTable.close")}):null)]})})]})})]}),(0,h.jsxs)(u.N.Root,{children:[(0,h.jsx)(u.N.Left,S(S({},!I&&{ref:le}),{},{isEnlarged:te,isRightPanelVisible:H,fullWidth:I,"aria-hidden":!H,sxProps:{zIndex:oe?"unset":200},className:"responsive-layout-left-main",children:E})),(0,h.jsx)(u.N.Right,S(S({},!I&&{ref:ce}),{},{isEnlarged:te,isRightPanelVisible:H,fullWidth:I,sxProps:{zIndex:oe?"unset":100},className:"responsive-layout-right-main",children:(fe=Z?function(){var e=null==L?void 0:L.map((function(e){var t;return function(e,t){if(null!=e){var n=t.split("."),r=e;return n.forEach((function(e){r=e in r?r[e]:void 0})),r}}(null==$||null===(t=$.footerPanel)||void 0===t?void 0:t.children,"".concat(e,".content"))})).filter((function(e){return void 0!==e})).join("\n");return e?(0,h.jsx)(c.Box,{sx:{padding:"20px",overflow:"auto"},children:(0,h.jsx)(c.Box,{className:"guideBox",children:(0,h.jsx)(l.Ay,{options:{wrapper:"article"},children:e})})}):null}():O,(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p,{open:oe,onClose:function(){return ae(!1)},children:(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:"responsive-layout-right-main-content fullscreen-mode",children:fe})}),(0,h.jsx)(c.Box,{ref:de,sx:z.rightGridContent,tabIndex:-1,className:Z?"responsive-layout-right-main-content guide-container":"responsive-layout-right-main-content",children:fe})]}))}))]})]})}));C.displayName="ResponsiveGridLayout"},46700:(e,t,n)=>{"use strict";n.d(t,{N:()=>b});var r=n(42432),i=n(25968),o=n(30538),a=n(47001),s=n(33828),l=n(97282),c=["children"],u=["children","className","isRightPanelVisible","sxProps","isEnlarged","fullWidth"],d=["children","className","isRightPanelVisible","sxProps","isEnlarged","fullWidth"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t{"use strict";n.d(t,{W:()=>g});var r=n(30538),i=n(47001),o=n(86853),a=n(15205),s=n(73854),l=n(44837),c=n(43381),u=n(6883),d=n(24258),h=n(17755),p=n(43852),f=n(74816);function g(e){var t=e.footerPanelTab,n=void 0===t?"default":t,g=600,m=(0,i.A)(),y=(0,h.Jh)(),v=(0,r.useRef)(null),b=(0,r.useRef)(null),w=(0,r.useRef)(0),x=(0,o.A)(m.breakpoints.down("md")),A=(0,r.useCallback)((function(e){var t,n;e&&(w.current=null!==(t=null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)&&void 0!==t?t:0)}),[]),S=(0,a.kv)(),C=(0,f.ht)(),E=(0,s.ex)(),k=(0,s.g_)(),T=(0,l.yU)(),_=(0,c.Xh)(),O=(0,c.eQ)().setTableHeight,P=(0,s.bd)().tabGroup,I=function(e){var t,n,r=null!==(t=null===(n=b.current)||void 0===n?void 0:n.firstElementChild)&&void 0!==t?t:null;r&&(r.style.maxHeight=null!=e?e:"".concat(g,"px"),r.style.overflowY="auto")};return(0,r.useEffect)((function(){if(u.vF.logTraceUseEffect("USE-FOOTER-PANEL-HEIGHT - footerPanelResizeValue",E,S),v.current&&S&&(k===n||"default"===n)){var e,t,r=document.getElementById("".concat(y,"-tabsContainer")),i=null==r||null===(e=r.firstElementChild)||void 0===e?void 0:e.firstElementChild,o=null!==(t=null==i?void 0:i.clientHeight)&&void 0!==t?t:0,a=window.screen.height*E/100-w.current-o-10;if(P!==p.NF.DATA_TABLE&&P!==p.NF.LAYERS||(a=window.screen.height-200),v.current.style.maxHeight="".concat(a,"px"),v.current.style.overflow="auto",v.current.style.paddingBottom="24px",k===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)I("".concat(a,"px")),O("".concat(a-100,"px"));else if(k===d.DF.GEO_CHART&&b.current){var s,l=null===(s=b.current)||void 0===s?void 0:s.firstElementChild;l&&(l.style.maxHeight="".concat(a,"px"),l.style.overflowY="auto")}else I("".concat(a,"px"))}if(!S&&v.current)if(v.current.style.maxHeight="".concat(g,"px"),v.current.style.overflow="auto",I(),k===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)O("".concat(500,"px"));else if(k===d.DF.GEO_CHART&&b.current){var c,h=null===(c=b.current)||void 0===c?void 0:c.firstElementChild;h&&(h.style.maxHeight="".concat(g,"px"),h.style.overflowY="auto")}}),[E,S,k,n,y,O,T,_,P]),(0,r.useEffect)((function(){v.current&&!S&&(P!==p.NF.DATA_TABLE&&P!==p.NF.LAYERS||!x?v.current.style.maxHeight="".concat(g,"px"):v.current.style.maxHeight="100%")}),[C,S,P,x]),{leftPanelRef:v,rightPanelRef:b,panelTitleRef:A,activeFooterBarTabId:k}}},61656:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(97282);function i(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 275 275",focusable:"false",children:(0,r.jsx)("g",{fill:"none",stroke:"#616161",strokeWidth:"1px",id:"crosshairs",transform:"translate(0 -1824.72) scale(2)",children:(0,r.jsx)("path",{d:"m136.18 983.66-130.93-0.00001m65.467-65.467v130.93m32.2-65.466c0 17.784-14.417 32.2-32.2 32.2-17.784 0-32.2-14.417-32.2-32.2 0-17.784 14.417-32.2 32.2-32.2 17.784 0 32.2 14.417 32.2 32.2z"})})})}},86430:(e,t,n)=>{"use strict";n.d(t,{B:()=>m});var r=n(42432),i=n(30538),o=n(47001),a=n(43331),s=n(33828),l=function(e){var t;return{crosshairContainer:{position:"absolute",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),bottom:e.spacing(0),paddingBottom:e.spacing(6),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none !important",zIndex:e.zIndex.olControl},crosshairInfo:{position:"absolute",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),height:"calc(1em + 8px)",padding:e.spacing(2,1,4,1),backgroundColor:e.palette.geoViewColor.grey.lighten(.1,.9),"& span":{paddingLeft:70}},crosshairIcon:{width:e.overrides.crosshairIcon.size.width,height:null===(t=e.overrides.crosshairIcon)||void 0===t?void 0:t.size.height}}},c=n(61656),u=n(15205),d=n(74816),h=n(6883),p=n(97282);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{t:()=>k});var r=n(42432),i=n(55907),o=n(75299),a=n.n(o),s=n(30538),l=n(43331),c=n(47001),u=n(33828),d=n(56757),h=n(43381),p=n(74816),f=n(73854),g=n(17755),m=n(1732),y=n(6883),v=n(99707),b=n(24258),w=n(43852),x=n(29067),A=n(97282);function S(){var e=(0,c.A)();return(0,A.jsx)(u.TableContainer,{component:u.Paper,children:(0,A.jsxs)(u.Table,{children:[(0,A.jsx)(u.TableHead,{children:(0,A.jsx)(u.TableRow,{children:(0,x.A)(Array(5).keys()).map((function(t){return(0,A.jsx)(u.TableCell,{sx:{width:"20%"},children:(0,A.jsx)(u.Skeleton,{variant:"text",width:"100%",height:"25px",sx:{bgcolor:e.palette.grey[400]}})},t)}))})}),(0,A.jsx)(u.TableBody,{children:(0,x.A)(Array(6).keys()).map((function(t){return(0,A.jsx)(u.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:(0,x.A)(Array(5).keys()).map((function(t){return(0,A.jsx)(u.TableCell,{sx:{width:"20%"},children:(0,A.jsx)(u.Skeleton,{variant:"text",width:"100%",height:"25px",sx:{bgcolor:e.palette.grey[400]}})},t)}))},t)}))})]})})}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0&&(r="".concat(i," ").concat(x("dataTable.features"))),r}),[j,W,x]),K=(0,s.useCallback)((function(e,t){return y.vF.logTraceUseCallback("DATA-PANEL - getLayerTooltip"),(0,A.jsxs)(u.Box,{sx:{display:"flex",alignContent:"center","& svg ":{width:"0.75em",height:"0.75em"}},children:["".concat(e,", ").concat(Y(t)),H(t)&&(0,A.jsx)(u.FilterAltIcon,{})]})}),[Y,H]),X=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - isLayerDisabled",R),function(){return!!W.find((function(e){return e.layerPath===R&&null===e.features}))}}),[W,R]),Z=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - isSelectedLayerHasFeatures",R),function(){return W.find((function(e){var t;return e.layerPath===R&&(null==e||null===(t=e.features)||void 0===t?void 0:t.length)}))}}),[R,W]);(0,s.useEffect)((function(){y.vF.logTraceUseEffect("DATA-PANEL - isLoading",O,R);var e=a()((function(){P(!1)}),100);return function(){return clearTimeout(e)}}),[O,R]),(0,s.useEffect)((function(){y.vF.logTraceUseEffect("DATA-PANEL - unmount",R),N!==b.DF.DATA_TABLE&&F("")}),[N]),(0,s.useEffect)((function(){V===w.NF.DATA_TABLE&&$||!G.includes(w.NF.DATA_TABLE)||F("")}),[V,$,F,G]);var J=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - order layer status processing."),function(){return!!W.find((function(e){return e.queryStatus===b.RI.PROCESSING}))}}),[W]),Q=(0,s.useCallback)((function(e){e&&F("")}),[F]),ee=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - memoLayersList",W),W.map((function(e){var t;return E(E({},e),{},{layerUniqueId:"".concat(I,"-").concat(b.DF.DATA_TABLE,"-").concat(e.layerPath),layerFeatures:Y(e.layerPath),tooltip:K(null!==(t=e.layerName)&&void 0!==t?t:"",e.layerPath),mapFilteredIcon:H(e.layerPath)&&(0,A.jsx)(u.FilterAltIcon,{sx:{color:C.palette.geoViewColor.grey.main,verticalAlign:"middle"}})})}))}),[H,W]);return(0,A.jsx)(m.PE,{containerType:o,selectedLayerPath:R||"",layerList:ee,onLayerListClicked:q,fullWidth:n,onGuideIsOpen:Q,guideContentIds:["dataTable","dataTable.children.filterData","dataTable.children.sortingAndReordering","dataTable.children.keyboardNavigation"],children:O||J()?(0,A.jsx)(S,{}):!X()&&Z()?(0,A.jsx)(A.Fragment,{children:W.filter((function(e){return e.layerPath===R})).map((function(e){return(0,A.jsx)(u.Box,{ref:k,children:(0,A.jsx)(d.A,{data:e,layerPath:e.layerPath,tableHeight:L})},e.layerPath)}))}):null})}},71068:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{dataPanel:{background:e.palette.geoViewColor.bgColor.main,paddingBottom:"1rem"},gridContainer:{paddingLeft:"1rem",paddingRight:"1rem"},selectedRows:{transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",fontWeight:400,fontSize:e.palette.geoViewFontSize.sm,linHeight:1.43,letterSpacing:"0.01071em",display:"flex",padding:"6px"},selectedRowsDirection:{display:"flex",flexDirection:"column"},tableCell:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},dataTableWrapper:{"& .MuiTableContainer-root":{borderRadius:"6px"},"& .MuiToolbar-root ":{borderRadius:"6px"}},filterMap:{"& .Mui-checked":{"& .MuiTouchRipple-root":{color:e.palette.action.active}},"& .MuiTouchRipple-root":{color:e.palette.geoViewColor.grey.dark[900]}},tableHeadCell:{"& .MuiCollapse-wrapperInner":{"& .MuiBox-root":{gridTemplateColumns:"1fr"}},"& .MuiInput-root":{fontSize:e.palette.geoViewFontSize.sm,"& .MuiSvgIcon-root":{width:"0.75em",height:"0.75em"}},"& .MuiBadge-root":{marginLeft:"0.5rem",">span":{width:"100%"},svg:{marginTop:"0.25rem",marginBottom:"0.25rem"},"& .keyboard-focused":{backgroundColor:"rgba(81, 91, 165, 0.08)",borderRadius:"50%",border:"1px solid black !important","> svg":{opacity:1}}}},dataTableInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},dataTableInstructionsBody:{fontSize:e.palette.geoViewFontSize.sm},rightPanelContainer:{overflowY:"auto",color:e.palette.geoViewColor.textColor.main}}}},56757:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=n(55723),i=n(96880),o=n(42432),a=n(55907),s=n(74813),l=n.n(s),c=n(30538),u=n(43331),d=n(44481),h=n.n(d),p=n(61170),f=n(53813),g=n(85315),m=n.n(g),y=n(80112),v=n.n(y),b=n(34663),w=n.n(b),x=n(1360),A=n.n(x),S=n(82842),C=n.n(S),E=n(75781),k=n.n(E);m().extend(A()),m().extend(v()),m().extend(C()),m().extend(k());const T={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},_={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},O=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),P=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class I{constructor({locale:e,formats:t}={}){var n,r;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=T,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==m().utc,this.hasTimezonePlugin=()=>void 0!==m().tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return m().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=m().tz.guess();return"UTC"!==t?m().tz(e,t):m()(e)}return m()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(O);return m().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(O);if(!this.hasTimezonePlugin())throw new Error(P);const n=void 0!==e&&!e.endsWith("Z");return m()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=m().Ls;let t=e[this.locale||"en"];return void 0===t&&(t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){const n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e},this.date=(e,t="default")=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getInvalidDate=()=>m()(new Date("Invalid date")),this.getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(O);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(P)}return m().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const i=r&&r.toUpperCase();return n||t[r]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.isValid=e=>null!=e&&e.isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>ethis.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,i=t;const o=[];for(;ie.week(),this.getYearRange=([e,t])=>{const n=this.startOfYear(e),r=this.endOfYear(t),i=[];let o=n;for(;this.isBefore(o,r);)i.push(o),o=this.addYears(o,1);return i},this.dayjs=(n=m(),(r=e)?(...e)=>n(...e).locale(r):n),this.locale=e,this.formats=(0,f.A)({},_,t),m().extend(w())}getDayOfWeek(e){return e.day()+1}}var M=n(88192);const L={actions:"Actions",and:"et",cancel:"Annuler",changeFilterMode:"Changer le mode de filtre",changeSearchMode:"Changer le mode de recherche",clearFilter:"Effacer le filtre",clearSearch:"Effacer la recherche",clearSelection:"Effacer la sélection",clearSort:"Effacer le tri",clickToCopy:"Cliquer pour copier",copy:"Copier",collapse:"Réduire",collapseAll:"Réduire tout",columnActions:"Actions de colonne",copiedToClipboard:"Copié dans le presse-papier",dropToGroupBy:"Déposer pour grouper par {column}",edit:"Editer",expand:"Développer",expandAll:"Tout développer",filterArrIncludes:"Inclure",filterArrIncludesAll:"Tout inclure",filterArrIncludesSome:"Inclure",filterBetween:"Entre",filterBetweenInclusive:"Entre inclus",filterByColumn:"Filtrer par {column}",filterContains:"Contient",filterEmpty:"Vide",filterEndsWith:"Se termine par",filterEquals:"Egale",filterEqualsString:"Egale",filterFuzzy:"Flou",filterGreaterThan:"Plus grand que",filterGreaterThanOrEqualTo:"Plus grand que ou égale à",filterInNumberRange:"Entre",filterIncludesString:"Contient",filterIncludesStringSensitive:"Contient",filterLessThan:"Plus petit que",filterLessThanOrEqualTo:"Plus petit que ou égale à",filterMode:"Mode filtre: {filterType}",filterNotEmpty:"Pas vide",filterNotEquals:"Pas égal",filterStartsWith:"Commence avec",filterWeakEquals:"Egale",filteringByColumn:"Filtrage par {column} - {filterType} {filterValue}",goToFirstPage:"Aller à la première page",goToLastPage:"Aller à la dernière page",goToNextPage:"Aller à la page suivante",goToPreviousPage:"Aller à la page précédente",grab:"Saisir",groupByColumn:"Grouper par {column}",groupedBy:"Groupé par ",hideAll:"Cacher tout",hideColumn:"Cacher colonne {column}",max:"Max",min:"Min",move:"Déplacer",noRecordsToDisplay:"Aucun enregistrement à afficher",noResultsFound:"Aucun résultat trouvé",of:"de",or:"ou",pin:"Attacher",pinToLeft:"Épingler à gauche",pinToRight:"Épingler à droite",resetColumnSize:"Réinitialiser la taille de la colonne",resetOrder:"Réinitialiser l'ordre",rowActions:"Actions de ligne",rowNumber:"#",rowNumbers:"Numéros de ligne",rowsPerPage:"Lignes par page",save:"Sauvegarder",search:"Rechercher",selectedCountOfRowCountRowsSelected:"{selectedCount} sur {rowCount} ligne(s)",select:"Sélectionner",showAll:"Afficher tous",showAllColumns:"Afficher toutes les colonnes",showHideColumns:"Afficher/Masquer les colonnes",showHideFilters:"Afficher/Masquer les filtres",showHideSearch:"Afficher/Masquer la recherche",sortByColumnAsc:"Trier par {column} croissant",sortByColumnDesc:"Trier par {column} décroissant",sortedByColumnAsc:"Trié par {column} croissant",sortedByColumnDesc:"Trié par {column} décroissant",thenBy:", puis par ",toggleDensity:"Changer la densité",toggleFullScreen:"Passer en plein écran",toggleSelectAll:"Basculer tout sélectionner",toggleSelectRow:"Basculer la sélection de ligne",toggleVisibility:"Basculer la visibilité",ungroupByColumn:"Dissocier par {column}",unpin:"Détacher",unpinAll:"Tout détacher"},R={actions:"Actions",and:"and",cancel:"Cancel",changeFilterMode:"Change filter mode",changeSearchMode:"Change search mode",clearFilter:"Clear filter",clearSearch:"Clear search",clearSelection:"Clear selection",clearSort:"Clear sort",clickToCopy:"Click to copy",copy:"Copy",collapse:"Collapse",collapseAll:"Collapse all",columnActions:"Column Actions",copiedToClipboard:"Copied to clipboard",dropToGroupBy:"Drop to group by {column}",edit:"Edit",expand:"Expand",expandAll:"Expand all",filterArrIncludes:"Includes",filterArrIncludesAll:"Includes all",filterArrIncludesSome:"Includes",filterBetween:"Between",filterBetweenInclusive:"Between Inclusive",filterByColumn:"Filter by {column}",filterContains:"Contains",filterEmpty:"Empty",filterEndsWith:"Ends With",filterEquals:"Equals",filterEqualsString:"Equals",filterFuzzy:"Fuzzy",filterGreaterThan:"Greater Than",filterGreaterThanOrEqualTo:"Greater Than Or Equal To",filterInNumberRange:"Between",filterIncludesString:"Contains",filterIncludesStringSensitive:"Contains",filterLessThan:"Less Than",filterLessThanOrEqualTo:"Less Than Or Equal To",filterMode:"Filter Mode: {filterType}",filterNotEmpty:"Not Empty",filterNotEquals:"Not Equals",filterStartsWith:"Starts With",filterWeakEquals:"Equals",filteringByColumn:"Filtering by {column} - {filterType} {filterValue}",goToFirstPage:"Go to first page",goToLastPage:"Go to last page",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page",grab:"Grab",groupByColumn:"Group by {column}",groupedBy:"Grouped by ",hideAll:"Hide all",hideColumn:"Hide {column} column",max:"Max",min:"Min",move:"Move",noRecordsToDisplay:"No records to display",noResultsFound:"No results found",of:"of",or:"or",pin:"Pin",pinToLeft:"Pin to left",pinToRight:"Pin to right",resetColumnSize:"Reset column size",resetOrder:"Reset order",rowActions:"Row Actions",rowNumber:"#",rowNumbers:"Row Numbers",rowsPerPage:"Rows per page",save:"Save",search:"Search",selectedCountOfRowCountRowsSelected:"{selectedCount} of {rowCount} row(s) selected",select:"Select",showAll:"Show all",showAllColumns:"Show all columns",showHideColumns:"Show/Hide columns",showHideFilters:"Show/Hide filters",showHideSearch:"Show/Hide search",sortByColumnAsc:"Sort by {column} ascending",sortByColumnDesc:"Sort by {column} descending",sortedByColumnAsc:"Sorted by {column} ascending",sortedByColumnDesc:"Sorted by {column} descending",thenBy:", then by ",toggleDensity:"Toggle density",toggleFullScreen:"Toggle full screen",toggleSelectAll:"Toggle select all",toggleSelectRow:"Toggle select row",toggleVisibility:"Toggle visibility",ungroupByColumn:"Ungroup by {column}",unpin:"Unpin",unpinAll:"Unpin all"};var j=n(47001),F=n(59293),D=n(33828),N=n(74816),B=n(24795),z=n(43381),V=n(15205),$=n(73854),G=n(25079),U=n(76200),W=n(6883),q=n(99707),H=n(71068),Y=n(76976),K=n(87605),X=n(89484),Z=n(1732),J=n(24258),Q=n(43852),ee=n(51640),te=n(97282);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t td":{backgroundColor:e.palette.geoViewColor.bgColor.darken(.1)},"& tr:hover > td":{backgroundColor:e.palette.secondary.light},"& .Mui-selected > td":{backgroundColor:"".concat(e.palette.secondary.light," !important")}}}}});(0,c.useEffect)((function(){W.vF.logTraceUseEffect("DATA-TABLE - sorting",C);var e=Me.getRowCount();try{var t,n;if(e>0)null===(t=x.current)||void 0===t||null===(n=t.scrollToIndex)||void 0===n||n.call(t,0)}catch(e){W.vF.logError("Data table error on sorting action",e)}}),[C]);var Le=(0,c.useCallback)((function(e){W.vF.logTraceUseEffect("DATA-TABLE - buildFilterList");var t=Me.getState();return e.length?e.map((function(e){var n,i=e.value,o=e.id;if(Array.isArray(i)){var a="",s=""===i[0]?void 0:Number(i[0]),l=""===i[1]?void 0:Number(i[1]),c="betweenInclusive"===(null==t?void 0:t.columnFilterFns[o])?"=":"";return s&&l?a="".concat(o," >").concat(c," ").concat(s," and ").concat(o," <").concat(c," ").concat(l):s?a="".concat(o," >").concat(c," ").concat(s):l&&(a="".concat(o," <").concat(c," ").concat(l)),a}if(!Number.isNaN(Number(i)))return"".concat(o," ").concat(J.LK[null==t?void 0:t.columnFilterFns[o]]," ").concat(Number(i));if("empty"===(null==t?void 0:t.columnFilterFns[o]))return"".concat(o," is null");if("notEmpty"===(null==t?void 0:t.columnFilterFns[o]))return"".concat(o," is not null");if("object"===(0,r.A)(i)&&i){var u=(null==t?void 0:t.columnFilterFns[o])||"equals",d=J.Ax[u],h=G.P.applyInputDateFormat("".concat(i.toISOString().slice(0,-5),"Z")).slice(0,-1);return"".concat(o," ").concat(d.replace("value",h))}var p=null!==(n=null==t?void 0:t.columnFilterFns[o])&&void 0!==n?n:"contains",f=J.Fz[p];return"".concat(f.replace("filterId",o).replace("value",i))})):[""]}),[]),Re=h()((function(e){var t=Le(e).filter((function(e){return e.length})).join(" and ");ae(t)}),1e3),je=(0,c.useCallback)((function(e){return Re(e)}),[null===(t=ue[o])||void 0===t?void 0:t.mapFilteredRecord]);return(0,c.useEffect)((function(){W.vF.logTraceUseEffect("DATA-TABLE - columnFilters",be),be&&ue[o].mapFilteredRecord&&je(be)}),[be]),(0,c.useEffect)((function(){W.vF.logTraceUseEffect("DATA-TABLE - mapFilteredRecord",ue[o].mapFilteredRecord),Re(be)}),[ue[o].mapFilteredRecord]),(0,q.iI)({data:n,columnFilters:be,globalFilter:Ae,layerPath:o,tableInstance:Me}),(0,te.jsxs)(D.Box,{sx:m.dataTableWrapper,children:[(0,te.jsx)(M.$,{dateAdapter:I,adapterLocale:ce,children:(0,te.jsx)(D.MaterialReactTable,{table:Me})}),(0,te.jsx)(ye,{})]})}const oe=(0,c.memo)(ie)},76976:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(55907),i=n(30538),o=n(43331),a=n(68312),s=n(33828),l=n(6883),c=n(97282);const u=function(e){var t=e.rows,n=e.columns,u=e.children;l.vF.logTraceRender("components/data-table/export-button");var d=(0,o.useTranslation)().t,h=(0,i.useState)(null),p=(0,r.A)(h,2),f=p[0],g=p[1],m=Boolean(f),y=(0,i.useCallback)((function(e){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleClick"),g(e.currentTarget)}),[]),v=(0,i.useCallback)((function(){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleClose"),g(null)}),[]),b=(0,i.useMemo)((function(){return l.vF.logTraceUseMemo("DATA-TABLE - EXPORT BUTTON - getCsvOptions",n),function(){return{fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!0,useBom:!0,useKeysAsHeaders:!1,headers:n.map((function(e){return e.id}))}}}),[n]),w=(0,i.useCallback)((function(){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleExportData");var e=t.map((function(e){return Object.keys(e).reduce((function(t,n){var r,i;return t[n]=null!==(r=null===(i=e[n])||void 0===i?void 0:i.value)&&void 0!==r?r:"",t}),{})}));new a.ExportToCsv(b()).generateCsv(e),g(null)}),[b,t]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.IconButton,{onClick:y,className:"buttonOutline",children:(0,c.jsx)(s.Tooltip,{title:d("dataTable.exportBtn"),placement:"bottom",enterDelay:100,children:(0,c.jsx)(s.DownloadIcon,{})})}),(0,c.jsxs)(s.Menu,{anchorEl:f,open:m,onClose:v,children:[(0,c.jsx)(s.MenuItem,{onClick:w,children:d("dataTable.downloadAsCSV")}),u]})]})}},89484:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(43331),i=n(24495),o=n(47001),a=n(33828),s=n(71068),l=n(43381),c=n(6883),u=n(97282);const d=function(e){var t=e.layerPath,n=e.isGlobalFilterOn;c.vF.logTraceRender("components/data-table/filter-map");var d=(0,o.A)(),h=(0,s.S)(d),p=(0,l._M)(),f=(0,l.eQ)().setMapFilteredEntry,g=(0,r.useTranslation)().t;return(0,u.jsx)(a.Tooltip,{title:p[t].mapFilteredRecord?g("dataTable.stopFilterMap"):g("dataTable.filterMap"),children:(0,u.jsx)(i.A,{size:"medium",onChange:function(){var e;return f(null===(e=!p[t].mapFilteredRecord)||void 0===e||e,t)},checked:!!p[t].mapFilteredRecord,sx:h.filterMap,disabled:n})})}},99707:(e,t,n)=>{"use strict";n.d(t,{bc:()=>p,j8:()=>s,bv:()=>f,iI:()=>c});var r=n(55907),i=n(30538),o=n(43381),a=n(6883);function s(e){var t=e.layerPath,n=(0,o._M)(),s=(0,o.eQ)().setColumnFiltersEntry,l=(0,i.useState)(n[t].columnFiltersRecord||[]),c=(0,r.A)(l,2),u=c[0],d=c[1];return(0,i.useEffect)((function(){a.vF.logTraceUseEffect("USEFILTERROWS - columnFilters",u),s(u,t)}),[u]),{columnFilters:u,setColumnFilters:d}}var l=n(43331);function c(e){var t=e.data,n=e.columnFilters,r=e.globalFilter,s=e.layerPath,c=e.tableInstance,u=(0,l.useTranslation)().t,d=(0,o._M)(),h=(0,o.eQ)(),p=h.setToolbarRowSelectedMessageEntry,f=h.setRowsFilteredEntry;(0,i.useEffect)((function(){var e,n;a.vF.logTraceUseEffect("USETOOLBARACTIONMESSAGE - rowSelection");var r,i,o=null!==(e=d[s].toolbarRowSelectedMessageRecord)&&void 0!==e?e:"";c&&c.getFilteredRowModel().rows.length!==(null===(n=t.features)||void 0===n?void 0:n.length)?o=u("dataTable.rowsFiltered").replace("{rowsFiltered}",c.getFilteredRowModel().rows.length.toString()).replace("{totalRows}",null!==(r=null===(i=t.features)||void 0===i?void 0:i.length.toString())&&void 0!==r?r:""):o="";p(o,s)}),[t.features,r]),(0,i.useEffect)((function(){var e;a.vF.logTraceUseEffect("USETOOLBARACTIONMESSAGE - columnFilters",n);var r=null!==(e=d[s].toolbarRowSelectedMessageRecord)&&void 0!==e?e:"",i=0;if(c){var o,l,h,g=c.getFilteredRowModel();if(g.rows.length!==(null==t||null===(o=t.features)||void 0===o?void 0:o.length))i=g.rows.length,r=u("dataTable.rowsFiltered").replace("{rowsFiltered}",g.rows.length.toString()).replace("{totalRows}",null!==(l=null==t||null===(h=t.features)||void 0===h?void 0:h.length.toString())&&void 0!==l?l:"");else r="",i=0;f(i,s)}p(r,s)}),[n,t.features,r])}var u=n(42432);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{A:()=>h});var r=n(30538),i=n(43331),o=n(59119),a=n(43910),s=n(64383),l=n(87620),c=n(33828),u=n(74816),d=n(97282);const h=function(e){var t=e.features,n=e.layerPath,h=(0,i.useTranslation)().t,p=(0,u.U6)().transformPoints,f=(0,r.useCallback)((function(e){var t={};return e instanceof o.Ay?t={type:"Polygon",coordinates:e.getCoordinates().map((function(e){return e.map((function(e){return p([e],4326)[0]}))}))}:e instanceof a.A?t={type:"LineString",coordinates:e.getCoordinates().map((function(e){return p([e],4326)[0]}))}:e instanceof s.A?t={type:"Point",coordinates:p([e.getCoordinates()],4326)[0]}:e instanceof l.A&&(t={type:"MultiPoint",coordinates:e.getCoordinates().map((function(e){return p([e],4326)[0]}))}),t}),[p]),g=(0,r.useCallback)((function(){var e=t.map((function(e){var t=e.geometry,n=e.fieldInfo;return{type:"Feature",geometry:f(null==t?void 0:t.getGeometry()),properties:n}}));return JSON.stringify({type:"FeatureCollection",features:e},null,2)}),[f,t]),m=(0,r.useCallback)((function(e,t){var n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,r.click(),URL.revokeObjectURL(n)}),[]),y=(0,r.useCallback)((function(){var e=g(),t=new Blob([e],{type:"text/json"});m(t,"table-".concat(n,".json"))}),[m,g,n]);return(0,d.jsx)(c.MenuItem,{onClick:y,children:h("dataTable.jsonExportBtn")})}},58229:(e,t,n)=>{"use strict";n.d(t,{r:()=>O});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(33828),c=n(44837),u=n(17755),d=n(74816),h=n(6883),p=n(1732),f=n(63744),g=n(96880),m=n(74813),y=n.n(m),v=n(61170),b=n(76200),w=n(98068),x=n(97282);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t1?"s":"")}),[g]),ee=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoLayersList",S,w),S.map((function(e){return w.find((function(t){return t.layerPath===e}))})).filter((function(e){return e})).map((function(e){var t,n,r,i;return{layerName:null!==(t=e.layerName)&&void 0!==t?t:"",layerPath:e.layerPath,layerStatus:e.layerStatus,queryStatus:e.queryStatus,numOffeatures:null!==(n=null===(r=e.features)||void 0===r?void 0:r.length)&&void 0!==n?n:0,layerFeatures:Q(e),tooltip:"".concat(e.layerName,", ").concat(Q(e)),layerUniqueId:"".concat(v,"-").concat(E.DF.DETAILS,"-").concat(null!==(i=null==e?void 0:e.layerPath)&&void 0!==i?i:"")}}))}),[S,w,Q,v]),te=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoLayerSelectedItem",ee,b),ee.find((function(e){return e.layerPath===b}))}),[ee,b]),ne=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerData",w,b),w.find((function(e){return e.layerPath===b}))}),[w,b]),re=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerDataFeatures",null==ne?void 0:ne.features),null==ne?void 0:ne.features}),[null==ne?void 0:ne.features]),ie=(0,o.useCallback)((function(e,t){var n,r,i;(h.vF.logTraceUseCallback("DETAILS-PANEL - updateFeatureSelected"),null!=t&&t.features)&&(r=null==t||null===(i=t.features)||void 0===i?void 0:i[X.current]);r&&!Z(r)&&j(r);var o=null==ne||null===(n=ne.features)||void 0===n?void 0:n[e];o&&R(o),B(e)}),[ne,Z,j,R]);(0,o.useEffect)((function(){h.vF.logTraceUseEffect("DETAILS-PANEL - memoLayersList changed",ee),j("all"),ee.length||P("")}),[ee,P,j]),(0,o.useEffect)((function(){h.vF.logTraceUseEffect("DETAILS-PANEL - memoSelectedLayerDataFeatures changed",ee,re),J(K.current),J(re),re&&re.length&&R(re[N])}),[ee,re,N,R,j,J]),(0,o.useEffect)((function(){h.vF.logTraceUseEffect("DETAILS-PANEL - update layer data bypass",b),M(b)}),[b,M]),(0,o.useEffect)((function(){if(h.vF.logTraceUseEffect("DETAILS-PANEL - check selection",te),(!te||"processed"===te.queryStatus||"error"===te.queryStatus)&&""!==b)if(null!=te&&te.numOffeatures)h.vF.logDebug("DETAILS-PANEL","keep selection",te),M(te.layerPath);else{var e=ee.find((function(e){return ee.find((function(t){return e.layerPath===t.layerPath&&t.numOffeatures}))}));e?(h.vF.logDebug("DETAILS-PANEL","select another",te,e.layerPath),P(e.layerPath)):h.vF.logDebug("DETAILS-PANEL","select none",te)}}),[te,ee]);var oe=(0,o.useCallback)((function(e){h.vF.logTraceUseCallback("DETAILS PANEL - handleFeatureNavigateChange",N),X.current=N,ie(N+e,ne)}),[N,ne,ie]),ae=(0,o.useCallback)((function(e){h.vF.logTraceUseCallback("DETAILS-PANEL - handleLayerChange",e.layerPath),P(e.layerPath)}),[P]),se=function(){var e;Y.current=w.find((function(e){return e.layerPath===$})),K.current=null===(e=Y.current)||void 0===e?void 0:e.features,X.current=N,B(0)};q!==ee&&(H(ee),se()),$!==b&&(G(b),se());var le=(0,o.useCallback)((function(e){h.vF.logTraceUseCallback("DETAILS PANEL - handleGuideIsOpen"),e&&P("")}),[P]);(0,o.useEffect)((function(){if(h.vF.logTraceUseEffect("DETAILS-PANEL- mapClickCoordinates",T),T&&null!=ee&&ee.length&&!b.length){var e,t=ee.find((function(e){return!!e.numOffeatures}));P(null!==(e=null==t?void 0:t.layerPath)&&void 0!==e?e:"")}}),[T,ee]);var ce=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - order layer status processing."),w&&0!==(null==w?void 0:w.length)?function(){return!(null==w||!w.every((function(e){return e.queryStatus===E.RI.PROCESSING})))}:function(){return!1}}),[w]);return(0,x.jsx)(p.PE,{selectedLayerPath:b||"",layerList:ee,onLayerListClicked:function(e){return ae(e)},fullWidth:n,onGuideIsOpen:le,guideContentIds:["details"],children:ce()?(0,x.jsx)(k,{}):re&&re.length>0?(0,x.jsxs)(l.Box,{sx:n?y.rightPanelContainer:_({},y.rightPanelContainer),children:[(0,x.jsxs)(l.Grid,{container:!0,sx:y.rightPanelBtnHolder,children:[(0,x.jsx)(l.Grid,{size:{xs:6},children:(0,x.jsxs)(l.Box,{style:{marginLeft:"1.375rem"},children:[g("details.featureDetailsTitle").replace("{count}","".concat(N+1)).replace("{total}","".concat(null==re?void 0:re.length)),(0,x.jsx)(l.IconButton,{sx:(0,r.A)({marginLeft:"1.25rem"},m.breakpoints.down("sm"),{display:"none"}),"aria-label":"clear-all-features",tooltip:"details.clearAllfeatures",tooltipPlacement:"top",onClick:function(){return j("all"),I("all"),void R(null==ne||null===(e=ne.features)||void 0===e?void 0:e[N]);var e},className:"buttonOutline",disabled:0===A.length,children:(0,x.jsx)(l.LayersClearOutlinedIcon,{})})]})}),(0,x.jsx)(l.Grid,{size:{xs:6},children:(0,x.jsxs)(l.Box,{sx:{textAlign:"right",marginRight:"1.625rem"},children:[(0,x.jsx)(l.IconButton,{"aria-label":"backward",tooltip:"details.previousFeatureBtn",tooltipPlacement:"top",onClick:function(){return oe(-1)},disabled:N<=0,className:"buttonOutline",children:(0,x.jsx)(l.ArrowBackIosOutlinedIcon,{})}),(0,x.jsx)(l.IconButton,{sx:{marginLeft:"1.25rem"},"aria-label":"forward",tooltip:"details.nextFeatureBtn",tooltipPlacement:"top",onClick:function(){return oe(1)},disabled:!(null!=ne&&ne.features)||N+1>=ne.features.length,className:"buttonOutline",children:(0,x.jsx)(l.ArrowForwardIosOutlinedIcon,{})})]})})]}),(0,x.jsx)(C,{features:null==ne?void 0:ne.features,currentFeatureIndex:N})]}):null})}},63744:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{detailsContainer:{background:e.palette.geoViewColor.bgColor.main,paddingBottom:"1rem"},detailsInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},detailsInstructionsBody:{fontSize:e.palette.geoViewFontSize.default},panelHeaders:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600"},rightPanelContainer:{color:e.palette.geoViewColor.textColor.main},rightPanelBtnHolder:{marginTop:"20px",paddingBottom:"9px",boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.dark[200])},featureInfoListContainer:{paddingLeft:"25px",paddingRight:"25px",paddingBottom:"25px",overflowY:"auto",overflowX:"hidden"},featureDetailListContainer:{overflowY:"auto",overflowX:"hidden"},selectFeatureCheckbox:{color:e.palette.geoViewColor.primary.main,"&.Mui-checked":{color:e.palette.geoViewColor.primary.main}},featureInfoItemValue:{marginRight:0,wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis"},boxContainerFeatureInfo:{wordWrap:"break-word",fontSize:e.palette.geoViewFontSize.default,lineHeight:"19px"},flexBoxAlignCenter:{display:"flex",flexDirection:"row",alignItems:"center"},featureDetailModal:{"& .MuiDialog-container":{"& .MuiPaper-root":{minWidth:"40rem"}}}}}},98068:(e,t,n)=>{"use strict";n.d(t,{P:()=>Mt});var r=n(42432),i=n(30538),o=n(43331),a=n(47001);const s="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",l="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",c=(e,t)=>{for(const n in t)e[n]=t[n];return e},u="numeric",d="ascii",h="alpha",p="asciinumeric",f="alphanumeric",g="domain",m="emoji",y="scheme",v="slashscheme",b="whitespace";function w(e,t){return e in t||(t[e]=[]),t[e]}function x(e,t,n){t[u]&&(t[p]=!0,t[f]=!0),t[d]&&(t[p]=!0,t[h]=!0),t[p]&&(t[f]=!0),t[h]&&(t[f]=!0),t[f]&&(t[g]=!0),t[m]&&(t[g]=!0);for(const r in t){const t=w(r,n);t.indexOf(e)<0&&t.push(e)}}function A(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}A.groups={},A.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n=0&&(n[r]=!0);return n}(a.t,r),n);x(o,e,r)}else n&&x(o,n,r);a.t=o}return i.j[e]=a,a}};const S=(e,t,n,r,i)=>e.ta(t,n,r,i),C=(e,t,n,r,i)=>e.tr(t,n,r,i),E=(e,t,n,r,i)=>e.ts(t,n,r,i),k=(e,t,n,r,i)=>e.tt(t,n,r,i),T="WORD",_="UWORD",O="LOCALHOST",P="TLD",I="UTLD",M="SCHEME",L="SLASH_SCHEME",R="NUM",j="WS",F="NL",D="OPENBRACE",N="CLOSEBRACE",B="OPENBRACKET",z="CLOSEBRACKET",V="OPENPAREN",$="CLOSEPAREN",G="OPENANGLEBRACKET",U="CLOSEANGLEBRACKET",W="FULLWIDTHLEFTPAREN",q="FULLWIDTHRIGHTPAREN",H="LEFTCORNERBRACKET",Y="RIGHTCORNERBRACKET",K="LEFTWHITECORNERBRACKET",X="RIGHTWHITECORNERBRACKET",Z="FULLWIDTHLESSTHAN",J="FULLWIDTHGREATERTHAN",Q="AMPERSAND",ee="APOSTROPHE",te="ASTERISK",ne="AT",re="BACKSLASH",ie="BACKTICK",oe="CARET",ae="COLON",se="COMMA",le="DOLLAR",ce="DOT",ue="EQUALS",de="EXCLAMATION",he="HYPHEN",pe="PERCENT",fe="PIPE",ge="PLUS",me="POUND",ye="QUERY",ve="QUOTE",be="SEMI",we="SLASH",xe="TILDE",Ae="UNDERSCORE",Se="EMOJI",Ce="SYM";var Ee=Object.freeze({__proto__:null,WORD:T,UWORD:_,LOCALHOST:O,TLD:P,UTLD:I,SCHEME:M,SLASH_SCHEME:L,NUM:R,WS:j,NL:F,OPENBRACE:D,CLOSEBRACE:N,OPENBRACKET:B,CLOSEBRACKET:z,OPENPAREN:V,CLOSEPAREN:$,OPENANGLEBRACKET:G,CLOSEANGLEBRACKET:U,FULLWIDTHLEFTPAREN:W,FULLWIDTHRIGHTPAREN:q,LEFTCORNERBRACKET:H,RIGHTCORNERBRACKET:Y,LEFTWHITECORNERBRACKET:K,RIGHTWHITECORNERBRACKET:X,FULLWIDTHLESSTHAN:Z,FULLWIDTHGREATERTHAN:J,AMPERSAND:Q,APOSTROPHE:ee,ASTERISK:te,AT:ne,BACKSLASH:re,BACKTICK:ie,CARET:oe,COLON:ae,COMMA:se,DOLLAR:le,DOT:ce,EQUALS:ue,EXCLAMATION:de,HYPHEN:he,PERCENT:pe,PIPE:fe,PLUS:ge,POUND:me,QUERY:ye,QUOTE:ve,SEMI:be,SLASH:we,TILDE:xe,UNDERSCORE:Ae,EMOJI:Se,SYM:Ce});const ke=/[a-z]/,Te=/\p{L}/u,_e=/\p{Emoji}/u,Oe=/\d/,Pe=/\s/;const Ie="\n",Me="️",Le="‍";let Re=null,je=null;function Fe(e,t,n,r,i){let o;const a=t.length;for(let n=0;n=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}const Ne={defaultProtocol:"http",events:null,format:ze,formatHref:ze,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Be(e,t){void 0===t&&(t=null);let n=c({},Ne);e&&(n=c(n,e instanceof Be?e.o:e));const r=n.ignoreTags,i=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let i=this.o[e];return i?("object"==typeof i?(i=n.t in i?i[n.t]:Ne[e],"function"==typeof i&&r&&(i=i(t,n))):"function"==typeof i&&r&&(i=i(t,n.t,n)),i):i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Ve(e,t){this.t="token",this.v=e,this.tk=t}function $e(e,t){class n extends Ve{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}Ve.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=Ne.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),d=e.getObj("attributes",n,t),h=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),d&&c(a,d),{tagName:i,attributes:a,content:o,eventListeners:h}}};const Ge=$e("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ue=$e("text"),We=$e("nl"),qe=$e("url",{isLink:!0,toHref(e){return void 0===e&&(e=Ne.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==O&&e[1].t===ae}});const He=e=>new A(e);function Ye(e,t,n){const r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}"undefined"!=typeof console&&console&&console.warn;const Ke={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Xe(){Ke.scanner=function(e){void 0===e&&(e=[]);const t={};A.groups=t;const n=new A;null==Re&&(Re=De(s)),null==je&&(je=De(l)),k(n,"'",ee),k(n,"{",D),k(n,"}",N),k(n,"[",B),k(n,"]",z),k(n,"(",V),k(n,")",$),k(n,"<",G),k(n,">",U),k(n,"(",W),k(n,")",q),k(n,"「",H),k(n,"」",Y),k(n,"『",K),k(n,"』",X),k(n,"<",Z),k(n,">",J),k(n,"&",Q),k(n,"*",te),k(n,"@",ne),k(n,"`",ie),k(n,"^",oe),k(n,":",ae),k(n,",",se),k(n,"$",le),k(n,".",ce),k(n,"=",ue),k(n,"!",de),k(n,"-",he),k(n,"%",pe),k(n,"|",fe),k(n,"+",ge),k(n,"#",me),k(n,"?",ye),k(n,'"',ve),k(n,"/",we),k(n,";",be),k(n,"~",xe),k(n,"_",Ae),k(n,"\\",re);const r=C(n,Oe,R,{[u]:!0});C(r,Oe,r);const i=C(n,ke,T,{[d]:!0});C(i,ke,i);const o=C(n,Te,_,{[h]:!0});C(o,ke),C(o,Te,o);const a=C(n,Pe,j,{[b]:!0});k(n,Ie,F,{[b]:!0}),k(a,Ie),C(a,Pe,a);const f=C(n,_e,Se,{[m]:!0});C(f,_e,f),k(f,Me,f);const w=k(f,Le);C(w,_e,f);const S=[[ke,i]],Ne=[[ke,null],[Te,o]];for(let e=0;ee[0]>t[0]?1:-1));for(let t=0;t=0?i[g]=!0:ke.test(r)?Oe.test(r)?i[p]=!0:i[d]=!0:i[u]=!0,E(n,r,r,i)}return E(n,"localhost",O,{ascii:!0}),n.jd=new A(Ce),{start:n,tokens:c({groups:t},Ee)}}(Ke.customSchemes);for(let e=0;e=0&&h++,i++,u++;if(h<0)i-=u,i0&&(o.push(Ye(Ue,t,a)),a=[]),i-=h,u-=h;const e=d.t,r=n.slice(i-u,i);o.push(Ye(e,t,r))}}return a.length>0&&o.push(Ye(Ue,t,a)),o}(Ke.parser.start,e,function(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),r=n.length,i=[];let o=0,a=0;for(;a=0&&(d+=n[a].length,h++),c+=n[a].length,o+=n[a].length,a++;o-=d,a-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}(Ke.scanner.start,e))}var Je={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},Qe=/^#[xX]([A-Fa-f0-9]+)$/,et=/^#([0-9]+)$/,tt=/^([A-Za-z0-9]+)$/,nt=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(Qe);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(et))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(tt))?this.named[t[1]]||"&"+t[1]+";":void 0}},e}(),rt=/[\t\n\f ]/,it=/[A-Za-z]/,ot=/\r\n?/g;function at(e){return rt.test(e)}function st(e){return it.test(e)}var lt=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||st(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){at(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();at(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();at(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!at(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();at(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();at(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();at(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();at(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();at(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();at(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();at(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();at(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();at(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();at(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();at(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();at(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||st(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(ot,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),ct=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new lt(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t=0))continue;let a=r.length;vt(i,n,++e,r),e+=r.length-a-1}else if(t.type!==pt)r.push(t);else{const e=yt(t.chars,o);r.push.apply(r,e)}}for(let e=0;e0&&(e+=" "+At(t.attributes).join(" ")),t.selfClosing&&(e+=" /"),e+=">",i.push(e);break}case ht:i.push(``);break;case pt:i.push(wt(t.chars));break;case ft:i.push(`\x3c!--${wt(t.chars)}--\x3e`);break;case gt:{let e=`",i.push(e);break}}}return i.join("")}function yt(e,t){const n=Ze(e),r=[];for(let e=0;e0;){let o=t[n];o.type===dt&&o.tagName.toUpperCase()===e?i++:o.type===ht&&o.tagName.toUpperCase()===e&&i--,r.push(o),n++}return r}function bt(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${function(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${xt(r)}"`)}return t.join(" ")}(n)}>${wt(r)}`}function wt(e){return e.replace(//g,">")}function xt(e){return e.replace(/"/g,""")}function At(e){const t=[];for(let n=0;n50?"".concat(e.slice(0,40),"…").concat(e.slice(e.length-10,e.length)):e}},ignoreTags:["script","style","img"],target:"_blank"}}),[n]);function h(e){function t(t,n,r){return"string"==typeof t&&(0,Ct.isImage)(t)?(0,Ot.jsx)(St.CardMedia,{sx:It(It({},s.featureInfoItemValue),{},{cursor:"pointer"}),alt:"".concat(n," ").concat(r),src:t,tabIndex:0,click:function(){return c(e.value,e.alias,r)},keyDown:function(t){"Enter"===t.key&&c(e.value,e.alias,r)}},(0,Ct.generateId)()):(0,Ot.jsx)(St.Box,{sx:s.featureInfoItemValue,children:(0,Ot.jsx)(Et.S,{htmlContent:(0,Ct.sanitizeHtmlContent)(mt(t,d))})},(0,Ct.generateId)())}var n=e.alias,r=e.value,i=Array.isArray(r)?String(r.map(Ct.stringify)):String((0,Ct.stringify)(r));return i=i.toString().split(";"),Array.isArray(i)?i.map((function(e,r){return t(e,n,r)})):t(i,n,0)}return(0,Ot.jsxs)(St.Box,{sx:s.boxContainerFeatureInfo,children:[t.map((function(e,t){return(0,Ot.jsxs)(St.Grid,{container:!0,spacing:5,sx:{backgroundColor:t%2>0?r.palette.geoViewColor.bgColor.darken(.1):"",color:t%2>0?r.palette.geoViewColor.bgColor.darken(.9):"",marginBottom:"1.25rem"},children:[(0,Ot.jsx)(St.Grid,{size:{xs:"auto"},sx:{fontWeight:"bold",width:"80% !important"},children:e.alias}),(0,Ot.jsx)(St.Grid,{sx:{ml:"auto",wordWrap:"break-word",pr:"0.3125rem"},children:h(e)})]},"".concat(e.alias," ").concat(t.toString()))})),(0,Ot.jsx)(u,{})]})}},72845:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(33828),i=n(73854),o=n(17755),a=n(97282);function s(e){var t=e.className,n=void 0===t?"":t,s=e.sxDetails,l=(0,o.Jh)(),c=(0,i.A6)().enableFocusTrap;return(0,a.jsx)(r.IconButton,{id:"".concat(l,"-export-btn"),tooltip:"appbar.export",tooltipPlacement:"bottom-end",onClick:function(){return c({activeElementId:"export",callbackElementId:"".concat(l,"-export-btn")})},sx:s,className:n,"aria-label":"appbar.export",children:(0,a.jsx)(r.DownloadIcon,{})})}},59480:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=n(55907),i=n(30538),o=n(43331),a=n(47001);const s=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)})();function l(e){const t=[];for(let n=0,r=e.length;n{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e}))}async function p(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),async function(e){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}(i)}const f=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||f(n,t))};function g(e,t,n){const r=`.${e}:${t}`,i=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return l(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}function m(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const o=s();try{t.className=`${t.className} ${o}`}catch(e){return}const a=document.createElement("style");a.appendChild(g(o,n,r)),t.appendChild(a)}const y="application/font-woff",v="image/jpeg",b={woff:y,woff2:y,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:v,jpeg:v,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function w(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return b[t]||""}function x(e){return-1!==e.search(/^(data:)/)}function A(e,t){return`data:${t};base64,${e}`}async function S(e,t,n){const r=await fetch(e,t);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise(((e,t)=>{const o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(n({res:r,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)}))}const C={};async function E(e,t,n){const r=function(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}(e,t,n.includeQueryParams);if(null!=C[r])return C[r];let i;n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const r=await S(e,n.fetchRequestInit,(({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(n))));i=A(r,t)}catch(t){i=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;t&&(r="string"==typeof t?t:t.message),r&&console.warn(r)}return C[r]=i,i}async function k(e,t){return f(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):h(t)}(e):f(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),h(t.toDataURL())}const n=e.poster,r=w(n);return h(await E(n,r,t))}(e,t):f(e,HTMLIFrameElement)?async function(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await O(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}(e):e.cloneNode(!1)}const T=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();function _(e,t){return f(t,Element)&&(function(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):l(r).forEach((i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){const e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}f(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))}))}(e,t),function(e,t){m(e,t,":before"),m(e,t,":after")}(e,t),function(e,t){f(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),f(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(f(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find((t=>e.value===t.getAttribute("value")));r&&r.setAttribute("selected","")}}(e,t)),t}async function O(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>k(e,t))).then((n=>async function(e,t,n){var r,i;let o=[];return o=T(e)&&e.assignedNodes?l(e.assignedNodes()):f(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?l(e.contentDocument.body.childNodes):l((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===o.length||f(e,HTMLVideoElement)||await o.reduce(((e,r)=>e.then((()=>O(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve()),t}(e,n,t))).then((t=>_(e,t))).then((e=>async function(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;const r={};for(let i=0;i{for(;;){const[n,,r]=I.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n),i=function(e){const t=[];return e.replace(P,((e,n,r)=>(t.push(r),e))),t.filter((e=>!x(e)))}(r);return i.reduce(((e,r)=>e.then((e=>L(e,r,t,n)))),Promise.resolve(r))}async function F(e,t,n){var r;const i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){const r=await j(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function D(e,t){f(e,Element)&&(await async function(e,t){await F("background",e,t)||await F("background-image",e,t),await F("mask",e,t)||await F("mask-image",e,t)}(e,t),await async function(e,t){const n=f(e,HTMLImageElement);if((!n||x(e.src))&&(!f(e,SVGImageElement)||x(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await E(r,w(r),t);await new Promise(((t,r)=>{e.onload=t,e.onerror=r;const o=e;o.decode&&(o.decode=t),"lazy"===o.loading&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i}))}(e,t),await async function(e,t){const n=l(e.childNodes).map((e=>D(e,t)));await Promise.all(n).then((()=>e))}(e,t))}const N={};async function B(e){let t=N[e];if(null!=t)return t;const n=await fetch(e);return t={url:e,cssText:await n.text()},N[e]=t,t}async function z(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map((async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),S(o,t.fetchRequestInit,(({result:e})=>(n=n.replace(i,`url(${e})`),[i,e])))}));return Promise.all(i).then((()=>n))}function V(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(e=o.exec(n),null===e)break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function $(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const n=l(e.ownerDocument.styleSheets),r=await async function(e,t){const n=[],r=[];return e.forEach((n=>{if("cssRules"in n)try{l(n.cssRules||[]).forEach(((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1;const a=B(e.href).then((e=>z(e,t))).then((e=>V(e).forEach((e=>{try{n.insertRule(e,e.startsWith("@import")?o+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})))).catch((e=>{console.error("Error loading remote css",e.toString())}));r.push(a)}}))}catch(i){const o=e.find((e=>null==e.href))||document.styleSheets[0];null!=n.href&&r.push(B(n.href).then((e=>z(e,t))).then((e=>V(e).forEach((e=>{o.insertRule(e,n.cssRules.length)})))).catch((e=>{console.error("Error loading remote stylesheet",e)}))),console.error("Error inlining remote css file",i)}})),Promise.all(r).then((()=>(e.forEach((e=>{if("cssRules"in e)try{l(e.cssRules||[]).forEach((e=>{n.push(e)}))}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}})),n)))}(n,t);return function(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>R(e.style.getPropertyValue("src"))))}(r)}async function G(e,t){const n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await async function(e,t){const n=await $(e,t);return(await Promise.all(n.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return j(e.cssText,n,t)})))).join("\n")}(e,t);if(n){const t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function U(e,t={}){const{width:n,height:r}=u(e,t),i=await O(e,t,!0);await G(i,t),await D(i,t),function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]}))}(i,t);return await p(i,n,r)}async function W(e,t={}){const{width:n,height:r}=u(e,t),i=await U(e,t),o=await h(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),c=t.canvasWidth||n,p=t.canvasHeight||r;return a.width=c*l,a.height=p*l,t.skipAutoScale||function(e){(e.width>d||e.height>d)&&(e.width>d&&e.height>d?e.width>e.height?(e.height*=d/e.width,e.width=d):(e.width*=d/e.height,e.height=d):e.width>d?(e.height*=d/e.width,e.width=d):(e.width*=d/e.height,e.height=d))}(a),a.style.width=`${c}`,a.style.height=`${p}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function q(e,t={}){return(await W(e,t)).toDataURL()}var H=n(33828),Y=n(76200),K=n(25079),X=n(73854),Z=n(17755),J=n(15205),Q=n(31680),ee=n(74816),te=n(25969),ne=n(6883),re=n(97282);function ie(){var e=(0,o.useTranslation)().t,t=(0,Z.Jh)(),n=(0,J.sd)(),s=n.getElementsByClassName("ol-viewport")[0],l=n.querySelector('[id^="'.concat(t,'-footerBar-legendContainer"]')),c=n.querySelector('[id^="'.concat(t,'-appBar-legendContainer"]')),u="".concat(t,"AppbarPanelButtonLegend"),d=(0,a.A)(),h=(0,i.useState)(!0),p=(0,r.A)(h,2),f=p[0],g=p[1],m=(0,i.useState)(!0),y=(0,r.A)(m,2),v=y[0],b=y[1],w=(0,i.useState)(!1),x=(0,r.A)(w,2),A=x[0],S=x[1],C=(0,i.useState)(""),E=(0,r.A)(C,2),k=E[0],T=E[1],_=(0,i.useRef)(null),O=(0,i.useRef)(null),P=(0,i.useRef)(null),I=(0,i.useRef)(null),M=(0,i.useRef)(null),L=(0,i.useRef)(null),R=(0,ee.Mk)(),j=(0,ee.gx)(),F=(0,ee.re)(),D=(0,te.A)().rotationAngle,N=(0,X.A6)(),B=N.disableFocusTrap,z=N.setActiveAppBarTab,V=(0,X.NP)().activeElementId,$=(0,X.bd)().isOpen,G=function(e){var t=window.getComputedStyle(e),n=Number(t.getPropertyValue("padding-left").match(/\d+/)[0]),r=Number(t.getPropertyValue("padding-left").match(/\d+/)[0]);return e.clientWidth-n-r};return(0,i.useEffect)((function(){var e;if(ne.vF.logTraceUseEffect("Export Modal - mount"),"export"===V&&O.current&&P.current){var n=O.current,r=P.current;c&&!l&&z(u,"legend",!0,!1),e=setTimeout((function(){g(!0),q(s,{fontEmbedCSS:""}).then((function(e){g(!1);var t=new Image;t.src=e,t.style.maxWidth="".concat(G(r),"px"),n.appendChild(t)})).catch((function(e){ne.vF.logError("Error occured while converting map to image",e)}));var e=null!=l?l:c;if(e&&I.current){var i;e.removeAttribute("style"),b(!0);var o=document.getElementById("shell-".concat(t,"-legend")),a=null!==(i=null==o?void 0:o.hasAttribute("hidden"))&&void 0!==i?i:null;a&&o.removeAttribute("hidden"),q(e,{fontEmbedCSS:""}).then((function(e){var t;b(!1);var n=new Image;n.src=e,n.style.maxWidth="".concat(G(r),"px"),null===(t=I.current)||void 0===t||t.appendChild(n),a&&(o.hidden=!0)})).catch((function(e){ne.vF.logError("Error occured while converting legend to image",e)}))}else b(!1)}),500)}return function(){e&&clearTimeout(e),g(!0),b(!0)}}),[V,$]),(0,re.jsxs)(H.Dialog,{open:"export"===V,onClose:B,fullWidth:!0,maxWidth:"xl",disablePortal:!0,children:[(0,re.jsx)(H.DialogTitle,{children:e("exportModal.title")}),(0,re.jsx)(H.DialogContent,{dividers:!0,ref:P,children:(0,re.jsxs)(H.Box,{ref:_,textAlign:"center",children:[(0,re.jsx)(H.Box,{ref:M,children:(0,re.jsx)(H.TextField,{label:e("exportModal.exportTitle"),variant:"standard",value:k,onChange:function(e){return T(e.target.value)},sx:{paddingBottom:"1rem",minWidth:300}})}),(0,re.jsx)(H.Box,{ref:L}),(0,re.jsx)(H.Box,{ref:O,children:f&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:d.palette.grey[500]}})}),(0,re.jsxs)(H.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",sx:{padding:"1rem",paddingBottom:0},children:[(0,re.jsx)(H.Box,{children:!!j.labelGraphic.length&&(0,re.jsxs)(H.Box,{children:[j.labelGraphic," ",e("exportModal.approx")," ",(0,re.jsx)("hr",{})]})}),R&&(0,re.jsx)(H.Box,{textAlign:"right",style:{transform:"rotate(".concat(D.angle,"deg)")},children:(0,re.jsx)(Q.e,{width:44,height:44})})]}),(0,re.jsx)(H.Box,{ref:I,children:v&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:d.palette.grey[500]}})}),(0,re.jsx)(H.Box,{textAlign:"center",children:F.map((function(e){return(0,re.jsx)(H.Box,{component:"p",sx:{margin:0},children:e},e)}))}),(0,re.jsx)(H.Box,{textAlign:"center",sx:{marginBottom:"1rem"},children:K.P.formatDate(new Date,"YYYY-MM-DD, hh:mm:ss A")})]})}),(0,re.jsxs)(H.DialogActions,{children:[(0,re.jsx)(H.Button,{onClick:function(){z(u,"legend",!1,!1),B()},type:"text",size:"small",role:"button",tabIndex:-1,autoFocus:!0,"aria-hidden":"true",sx:{width:"inherit",fontSize:d.palette.geoViewFontSize.sm,color:d.palette.common.white,padding:"0.7rem 1rem",backgroundColor:d.palette.geoViewColor.primary.main,"&:hover":{backgroundColor:d.palette.geoViewColor.primary.dark[200]}},children:e("exportModal.cancelBtn")}),(0,re.jsx)(H.LoadingButton,{loading:A,variant:"contained",onClick:function(){_.current&&M.current&&L.current&&(M.current.style.display="none",L.current.style.padding="1rem",L.current.innerHTML=k,S(!0),q(_.current,{backgroundColor:d.palette.common.white,fontEmbedCSS:""}).then((function(e){S(!1),(0,Y.exportPNG)(e,t),z(u,"legend",!1,!1),B()})).catch((function(e){ne.vF.logError("Error while exporting the image",e)})))},size:"small",sx:{fontSize:d.palette.geoViewFontSize.sm,padding:"0.7rem 1rem",backgroundColor:d.palette.geoViewColor.primary.main,height:"47px"},disabled:v||f,children:e("exportModal.exportBtn")})]})]})}},51801:(e,t,n)=>{"use strict";n.d(t,{x:()=>m});var r=n(13718),i=n(47280),o=n(42432),a=n(7396),s=n(2358),l=n(76200);function c(e,t,n){u(e,t),t.set(e,n)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(h(e,t))}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakSet,m=function(){return(0,i.A)((function e(t){var n,i;(0,r.A)(this,e),u(n=this,i=g),i.add(n),(0,o.A)(this,"mapId",void 0),(0,o.A)(this,"tabs",[]),c(this,p,[]),c(this,f,[]),this.mapId=t}),[{key:"onFooterTabCreated",value:function(e){s.A.onEvent(d(p,this),e)}},{key:"offFooterTabCreated",value:function(e){s.A.offEvent(d(p,this),e)}},{key:"onFooterTabRemoved",value:function(e){s.A.onEvent(d(f,this),e)}},{key:"offFooterTabRemoved",value:function(e){s.A.offEvent(d(f,this),e)}},{key:"createTab",value:function(e){e&&(this.tabs.find((function(t){return t.id===e.id}))||("string"==typeof e.content&&(e.content=(0,l.sanitizeHtmlContent)(e.content)),this.tabs.push(e),h(g,this,y).call(this,{tab:e})))}},{key:"removeTab",value:function(e){this.tabs.find((function(t){return t.id===e}))&&(this.tabs=this.tabs.filter((function(t){return t.id!==e})),h(g,this,v).call(this,{tabid:e}))}},{key:"selectTab",value:function(e){a.d.setActiveFooterBarTab(this.mapId,e)}}])}();function y(e){s.A.emitEvent(this,d(p,this),e)}function v(e){s.A.emitEvent(this,d(f,this),e)}},1102:(e,t,n)=>{"use strict";n.d(t,{N:()=>F});var r=n(42432),i=n(55907),o=n(76390),a=n.n(o),s=n(30538),l=n(47001),c=n(33828),u=n(23220),d=function(e){return{tabsContainer:{position:"relative",background:e.palette.geoViewColor.bgColor.dark[50],boxShadow:2,width:"100%",transition:"height 0.2s ease-out",height:"55px","&.MuiGrid-container":{background:e.palette.geoViewColor.bgColor.dark[50]},"& .MuiTab-root":{minHeight:"56px"},"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root.Mui-selected":{color:"".concat(e.palette.geoViewColor.white," !important"),background:e.palette.geoViewColor.primary.main,borderRadius:"0.5rem",margin:"0.5rem",minHeight:0}}}},h=n(83605),p=n(17755),f=function(){return{slider:{height:300,padding:"1.5rem 0.5rem 1.5rem 1rem","& .MuiSlider-markLabel":{left:"33px","&:nth-of-type(1)":{bottom:"3%"},"&:last-of-type":{bottom:"98%",left:"30px"}}}}},g=n(73854),m=n(6883),y=n(97282);function v(){var e=f(),t=(0,p.Jh)(),n=document.getElementById("shell-".concat(t)),r=(0,g.ex)(),o=(0,g.r4)(),a=(0,g.A6)().setFooterPanelResizeValue,l=(0,s.useState)(null),u=(0,i.A)(l,2),d=u[0],v=u[1],b=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("RESIZE-FOOTER-PANEL - marks",o),o.map((function(e){return{value:e,label:"".concat(e,"%")}}))}),[o]),w=function(){v(null)},x=Boolean(d);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.IconButton,{onClick:function(e){return function(e){e.preventDefault(),v(e.currentTarget)}(e)},tooltip:"footerBar.resizeTooltip",children:(0,y.jsx)(c.HeightIcon,{})}),(0,y.jsx)(c.Popover,{open:x,anchorEl:d,onClose:w,container:n,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:(0,y.jsx)(c.Box,{sx:e.slider,children:(0,y.jsx)(h.Ay,{sx:{'& input[type="range"]':{WebkitAppearance:"slider-vertical"}},orientation:"vertical",value:r,step:null,valueLabelDisplay:"off",marks:b,onChange:function(e,t){a(t),w()},min:o[0],max:o[o.length-1]})})})]})}var b=n(15205),w=n(44837),x=n(23853),A=n(32556),S=n(43373),C=n(43599),E=n(92940),k=n(11288),T=n(60439),_=n(75545),O=n(58229),P=n(87993),I=n(23591),M=n(27991),L=n(24258);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0?(0,y.jsx)(c.Box,{ref:z,sx:R.tabsContainer,className:"tabsContainer",id:"".concat(h,"-tabsContainer"),children:(0,y.jsx)(c.Tabs,{shellContainer:Y,activeTrap:q,isCollapsed:H,onToggleCollapse:function(){ee(!H)},onSelectedTabChanged:function(e){Z(e.id),ee(!1)},onOpenKeyboard:J,onCloseKeyboard:Q,selectedTab:le.findIndex((function(e){return e.id===W})),tabProps:{disableRipple:!0},tabs:le,TabContentVisibilty:H?"hidden":"visible",containerType:L.vB.FOOTER_BAR,rightButtons:(0,y.jsxs)(y.Fragment,{children:[!H&&V&&(0,y.jsx)(v,{}),(0,y.jsx)(c.IconButton,{onClick:he,tooltip:N?"footerBar.focusToMap":"footerBar.focusToFooter",className:"buttonFilled",disabled:H||V||U[U.length-1]===G,children:N?(0,y.jsx)(c.MoveUpRoundedIcon,{}):(0,y.jsx)(c.MoveDownRoundedIcon,{})})]})})}):null}},24255:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(30538),i=n(33828),o=n(12e3),a=n(74816),s=n(59293),l=n(6883),c=n(97282);function u(e){var t=e.geoListItems,n=e.searchValue,u=(0,a.U6)().zoomToGeoLocatorLocation,d=(0,r.useCallback)((function(e){var t=e.name,n=e.province,r=e.category,i=t;return r&&"null"!==r&&(i+=", ".concat(r)),n&&"null"!==n&&(i+=", ".concat(n)),i}),[]),h=(0,r.useCallback)((function(e,t,n){var r=e.toUpperCase(),i=t.toUpperCase(),o=r.indexOf(i),a=i.length;return i&&-1!==o?(0,c.jsx)(s.S,{extraOptions:{component:"span"},itemOptions:{component:"span"},htmlContent:"".concat(e.slice(0,o),"").concat(e.slice(o,o+a),"").concat(e.slice(o+a)).concat(n)}):e}),[]);return(0,c.jsx)(i.Box,{children:t.map((function(e,t){return(0,c.jsx)(i.Tooltip,{title:d(e),placement:"right",children:(0,c.jsx)(i.ListItem,{component:"div",disablePadding:!0,children:(0,c.jsx)(i.ListItemButton,{onClick:function(){return t=[e.lng,e.lat],n=e.bbox,void u(t,n).catch((function(e){l.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in data-panel.GeoList.handleZoomToGeoLocator",e)}));var t,n},children:(0,c.jsxs)(i.Grid,{container:!0,children:[(0,c.jsx)(i.Grid,{size:{xs:12,sm:8},children:(0,c.jsx)(i.Typography,{sx:o.aP.listStyle,children:h(e.name,n,e.province&&"null"!==e.province?", ".concat(e.province):"")})}),(0,c.jsx)(i.Grid,{size:{xs:12,sm:4},sx:{textAlign:"right"},children:!!e.category&&"null"!==e.category&&(0,c.jsx)(i.Typography,{component:"p",sx:o.aP.main,children:(0,c.jsxs)(i.Typography,{component:"span",children:[" ",e.category]})})})]})})})},"".concat(e.name,"-").concat(e.lat,"-").concat(t.toString()))}))})}},12e3:(e,t,n)=>{"use strict";n.d(t,{K9:()=>o,aP:()=>a,cm:()=>s});var r=n(48678),i=n(80769),o={root:{position:"absolute",top:12,left:80,maxWidth:350,width:350},geolocator:{position:"relative",display:"flex",zIndex:1100,"& form":{display:"flex",width:"100%",paddingLeft:5},"& .MuiPaper-root":{backgroundColor:"background.default",color:"text.primary","& .MuiToolbar-root":{justifyContent:"space-between"}}},progressBar:{position:"relative",zIndex:1100,"& span":{width:"100%"}},filter:{display:"flex",flexDirection:"row",alignItems:"end",padding:6,paddingTop:2,"& .MuiInputLabel-formControl":{fontSize:function(e){return e.palette.geoViewFontSize.default},marginTop:0},"& .MuiSelect-select":{padding:"0px 12px 4px 0px !important"}},searchResult:{position:"relative",display:"flex",flexDirection:"column",zIndex:1100,marginTop:6},filterListError:{listStyleType:"disc",listStylePosition:"inside","& li":{display:"list-item",paddingLeft:12,"& .MuiListItemText-root":{display:"inline-flex",marginLeft:"-8px"}}}},a={listStyle:{fontSize:function(e){return e.palette.geoViewFontSize.sm},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},main:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& span":{fontSize:function(e){return e.palette.geoViewFontSize.xs},":first-of-type":{fontSize:function(e){return e.palette.geoViewFontSize.sm}}}}},s=(0,r.Ay)(i.A)((function(e){var t=e.theme;return{color:"inherit",width:"100%",fontSize:t.palette.geoViewFontSize.default,"& .MuiInputBase-input":{transition:t.transitions.create("width"),width:"100%"}}}))},43798:(e,t,n)=>{"use strict";n.d(t,{u:()=>k});var r=n(96880),i=n(55907),o=n(74813),a=n.n(o),s=n(30538),l=n(43331),c=n(44481),u=n.n(c),d=n(47001),h=n(33828),p=n(12e3),f=n(24258),g=n(73854),m=n(15205),y=n(29067),v=n(24255),b=n(74816),w=n(6883),x=n(97282);function A(e){var t=e.geoLocationData,n=e.searchValue,r=e.error,o=(0,l.useTranslation)().t,a=(0,s.useState)(""),c=(0,i.A)(a,2),u=c[0],f=c[1],g=(0,s.useState)(""),m=(0,i.A)(g,2),A=m[0],S=m[1],C=(0,s.useState)(t),E=(0,i.A)(C,2),k=E[0],T=E[1],_=(0,b.ht)(),O=(0,d.A)(),P=(0,s.useMemo)((function(){w.vF.logTraceUseMemo("GEOLOCATOR-RESULT - provinces",t);var e=t.reduce((function(e,t){return t.province&&!e.includes(t.province)&&e.push(t.province),e}),[]).sort();return[""].concat((0,y.A)(new Set(e))).map((function(e){return{type:"item",item:{value:e.length?e:"",children:e.length?e:o("geolocator.noFilter")}}}))}),[t]),I=(0,s.useMemo)((function(){w.vF.logTraceUseMemo("GEOLOCATOR-RESULT - categories",t);var e=t.reduce((function(e,t){return t.category&&e.push(t.category),e}),[]).sort();return[""].concat((0,y.A)(new Set(e))).map((function(e){return{type:"item",item:{value:e.length?e:"",children:e.length?e:o("geolocator.noFilter")}}}))}),[t]),M=(0,s.useMemo)((function(){return w.vF.logTraceUseMemo("GEOLOCATOR-RESULT - memoFilterData",t,u,A),t.filter((function(e){var t=!0;return u.length&&!A.length?t=e.province.toLowerCase()===u.toLowerCase():u.length&&A.length?t=e.province.toLowerCase()===u.toLowerCase()&&e.category.toLowerCase()===A.toLowerCase():!u.length&&A.length&&(t=e.category.toLowerCase()===A.toLowerCase()),t}))}),[A,t,u]);return(0,s.useEffect)((function(){w.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData",t),T(t)}),[t]),(0,s.useEffect)((function(){w.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData province category",M),T(M)}),[M]),(0,s.useEffect)((function(){w.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData reset",t),t.length||(f(""),S(""))}),[t]),(0,x.jsxs)(h.Paper,{component:"div",elevation:4,square:!0,sx:{width:350},children:[!r&&(0,x.jsxs)(h.Box,{sx:p.K9.filter,children:[(0,x.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,x.jsx)(h.Select,{labelId:"provinceGeolocatorFiltersLabel",formControlProps:{variant:"standard",size:"small"},id:"provinceGeolocatorFilters",fullWidth:!0,value:null!=u?u:"",onChange:function(e){return f(e.target.value)},label:o("geolocator.province"),inputLabel:{id:"geolocationProvinceFilter"},menuItems:P,disabled:!t.length,variant:"standard"})}),(0,x.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,x.jsx)(h.Select,{labelId:"categoryGeolocatorFiltersLabel",id:"typeGeolocatorFilters",formControlProps:{variant:"standard",size:"small"},value:null!=A?A:"",fullWidth:!0,onChange:function(e){return S(e.target.value)},label:o("geolocator.category"),inputLabel:{id:"geolocationCategoryFilter"},menuItems:I,disabled:!t.length,variant:"standard"})}),(0,x.jsx)(h.Box,{children:(0,x.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",tooltip:"geolocator.clearFilters",onClick:function(){(u||A)&&(f(""),S(""),T(t))},disabled:!t.length,children:(0,x.jsx)(h.FilterAltOffIcon,{fontSize:O.palette.geoViewFontSize.sm})})})]}),(0,x.jsx)(h.Divider,{}),(0,x.jsxs)(h.Box,{sx:{maxHeight:_[1]-160,overflowY:"auto"},children:[!!k.length&&(0,x.jsx)(v.A,{geoListItems:k,searchValue:n}),(!k.length||r)&&(0,x.jsxs)(h.Box,{sx:{p:10},children:[(0,x.jsxs)(h.Typography,{component:"p",sx:{fontSize:O.palette.geoViewFontSize.md},children:[o("geolocator.errorMessage")," ",(0,x.jsx)("b",{children:n})]}),!(!u.length&&!A.length)&&(0,x.jsxs)(h.List,{sx:p.K9.filterListError,children:[!!u.length&&(0,x.jsx)(h.ListItem,{children:(0,x.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.province"),": ").concat(u)})}),!!A.length&&(0,x.jsx)(h.ListItem,{children:(0,x.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.category"),": ").concat(A)})})]})]})]})]})}var S=n(43852),C=n(1732),E=n(17755);function k(){w.vF.logTraceRender("components/geolocator/geolocator");var e=(0,l.useTranslation)().t,t=(0,d.A)(),n=(0,E.Jh)(),o=(0,s.useState)(),c=(0,i.A)(o,2),y=c[0],v=c[1],b=(0,s.useState)(null),k=(0,i.A)(b,2),T=k[0],_=k[1],O=(0,s.useState)(!1),P=(0,i.A)(O,2),I=P[0],M=P[1],L=(0,s.useState)(""),R=(0,i.A)(L,2),j=R[0],F=R[1],D=(0,m.t)(),N=(0,m._V)(),B=(0,g.A6)().setActiveAppBarTab,z=(0,g.bd)(),V=z.tabGroup,$=z.isOpen,G=(0,s.useRef)("".concat(N,"&lang=").concat(D)),U=(0,s.useRef)(null),W=(0,s.useRef)(),q=function(e){if(!/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/.test(e))return null;var t=e.split(/[\s|,|;|]/).filter((function(e){return!Number.isNaN(e)&&""!==e})).map((function(e){return parseFloat(e)})),n=.015,r=[t[1]-n,t[0]-n,t[1]+n,t[0]+n];return{key:"coordinates",name:"".concat(t[0],",").concat(t[1]),lat:t[0],lng:t[1],bbox:r,province:"",category:"Latitude/Longitude"}},H=function(){var e=(0,r.A)(a().mark((function e(t){var n,r,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,M(!0),U.current&&(U.current.abort(),clearTimeout(W.current)),n=new AbortController,U.current=n,e.next=7,fetch("".concat(G.current,"&q=").concat(encodeURIComponent("".concat(t,"*"))),{signal:U.current.signal});case 7:if((r=e.sent).ok){e.next=10;break}throw new Error("Error");case 10:return e.next=12,r.json();case 12:i=e.sent,(o=q(t))&&i.unshift(o),v(i),_(null),M(!1),clearTimeout(null==W?void 0:W.current),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),_(e.t0);case 24:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(t){return e.apply(this,arguments)}}(),Y=function(){M(!1),v([]),clearTimeout(W.current)},K=(0,s.useCallback)((function(){F(""),v(void 0),B("".concat(n,"AppbarPanelButtonGeolocator"),S.NF.GEOLOCATOR,!1,!1)}),[B]),X=u()((function(e){H(e).catch((function(e){w.vF.logPromiseFailed("getGeolocations in deRequest in Geolocator",e)}))}),f.Xl),Z=(0,s.useCallback)((function(e){return X(e)}),[]),J=(0,s.useCallback)((function(){j.length>=3&&H(j).catch((function(e){w.vF.logPromiseFailed("getGeolocations in Geolocator",e)}))}),[j]);return(0,s.useEffect)((function(){return function(){U.current&&(U.current.abort(),clearTimeout(W.current))}}),[]),(0,s.useEffect)((function(){return I&&(W.current=setTimeout((function(){Y(),_(new Error("No result found."))}),15e3)),function(){clearTimeout(W.current)}}),[I]),(0,x.jsx)(C.Pe,{open:V===S.NF.GEOLOCATOR&&$,id:"geolocator-focus-trap",children:(0,x.jsxs)(h.Box,{sx:p.K9.root,visibility:V===S.NF.GEOLOCATOR&&$?"visible":"hidden",id:"geolocator-search",tabIndex:V===S.NF.GEOLOCATOR&&$?0:-1,children:[(0,x.jsx)(h.Box,{sx:p.K9.geolocator,children:(0,x.jsx)(h.AppBarUI,{position:"static",children:(0,x.jsx)(h.Toolbar,{variant:"dense",children:(0,x.jsxs)("form",{onSubmit:function(e){e.preventDefault(),I||J()},children:[(0,x.jsx)(p.cm,{placeholder:e("geolocator.search"),autoFocus:!0,onChange:function(e){var t=e.target.value;F(t),t.length>=3&&Z(t),(!t.length||t.length<3)&&(U.current&&U.current.abort(),Y(),X.cancel(),v(void 0))},value:j}),(0,x.jsxs)(h.Box,{sx:{display:"flex",marginLeft:"auto",alignItems:"center"},children:[(0,x.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:4},disabled:!j.length,onClick:J,children:(0,x.jsx)(h.SearchIcon,{fontSize:t.palette.geoViewFontSize.sm})}),(0,x.jsx)(h.Divider,{orientation:"vertical",variant:"middle",flexItem:!0}),(0,x.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:2,ml:4},onClick:K,children:(0,x.jsx)(h.CloseIcon,{fontSize:t.palette.geoViewFontSize.sm})})]})]})})})}),I&&(0,x.jsx)(h.Box,{sx:p.K9.progressBar,children:(0,x.jsx)(h.ProgressBar,{})}),!!y&&(null==j?void 0:j.length)>=3&&(0,x.jsx)(h.Box,{sx:p.K9.searchResult,children:(0,x.jsx)(A,{geoLocationData:y,searchValue:j,error:T})})]})})}},23591:(e,t,n)=>{"use strict";n.d(t,{r:()=>m});var r=n(55907),i=n(30538),o=n(34089),a=n(43331),s=n(47001),l=n(33828),c=n(15205),u=n(6883),d=function(e){return{guideContainer:{"& .responsive-layout-right-main-content":{backgroundColor:e.palette.geoViewColor.white,"&:focus-visible":{border:"2px solid inherit"}}},rightPanelContainer:{color:e.palette.geoViewColor.textColor.main},footerGuideListItemText:{"&:hover":{cursor:"pointer"},"& .MuiListItemText-primary":{padding:"15px",fontSize:"".concat(e.palette.geoViewFontSize.lg," !important"),lineHeight:1.5,fontWeight:"700",textTransform:"capitalize"}},footerGuideListItemCollapse:{"& .MuiListItemText-primary":{padding:"15px 15px 15px 30px",fontSize:"".concat(e.palette.geoViewFontSize.md," !important"),lineHeight:1.5,whiteSpace:"unset"}},errorMessage:{marginLeft:"60px",marginTop:"30px",marginBottom:"12px"}}},h=n(1732),p=n(17755),f=n(24258),g=n(97282);function m(e){var t,n=e.fullWidth,m=(0,a.useTranslation)().t,y=(0,s.A)(),v=d(y),b=(0,c.DR)(),w=(0,p.Jh)(),x=(0,i.useState)(""),A=(0,r.A)(x,2),S=A[0],C=A[1],E=(0,i.useState)(0),k=(0,r.A)(E,2),T=k[0],_=k[1],O=(0,i.useCallback)((function(){return u.vF.logTraceUseCallback("GUIDE_PANEL - getListOfGuides"),b?Object.keys(b).map((function(e){var t=b[e].content;return b[e].children&&Object.keys(b[e].children).forEach((function(n){t+="\n".concat(b[e].children[n].content),b[e].children[n].children&&Object.keys(b[e].children[n].children).forEach((function(r){t+="\n".concat(b[e].children[n].children[r].content)}))})),{layerName:b[e].heading,layerPath:e,layerStatus:"loaded",queryStatus:"processed",content:(0,g.jsx)(o.Ay,{options:{wrapper:"article"},children:t}),layerUniqueId:"".concat(w,"-").concat(f.DF.GUIDE,"-").concat(null!=e?e:"")}})):[]}),[b,w]),P=(0,i.useMemo)((function(){return u.vF.logTraceUseMemo("GUIDE_PANEL - layerlist"),C("navigationControls"),O()}),[O]),I=(0,i.useCallback)((function(e){u.vF.logTraceUseCallback("GUIDE PANEL - handleGuideItemClick",e);var t=P.findIndex((function(t){return t.layerName===e.layerName}));_(t),C(e.layerPath)}),[P]);return(0,g.jsx)(l.Box,{sx:v.guideContainer,children:(0,g.jsx)(h.PE,{selectedLayerPath:S||"",layerList:P,onLayerListClicked:I,fullWidth:n,"aria-label":m("guide.title"),children:(0,g.jsx)(l.Box,{sx:v.rightPanelContainer,"aria-label":m("guide.title"),className:"guidebox-container",children:(0,g.jsx)(l.Box,{className:"guideBox",children:null===(t=P[T])||void 0===t?void 0:t.content})})})})}},2682:(e,t,n)=>{"use strict";n.d(t,{s:()=>f});var r=n(55907),i=n(30538),o=n(43331),a=n(47001),s=n(33828),l=n(6883),c=n(74816),u=function(e){return{tooltipItem:{color:e.palette.geoViewColor.bgColor.light[900],background:e.palette.geoViewColor.bgColor.dark[900],opacity:.9,fontSize:e.palette.geoViewFontSize.default,padding:"3px 8px",borderRadius:"5px",textAlign:"center",maxWidth:"350px",maxHeight:"60px",position:"absolute",display:"flex",top:"-5px",left:"3px"},tooltipText:{fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[900],textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",padding:"5px"}}},d=n(17755),h=n(15205),p=n(97282);function f(){var e=(0,o.useTranslation)().t,t=(0,d.Jh)(),n=(0,a.A)(),f=(0,i.useState)(""),g=(0,r.A)(f,2),m=g[0],y=g[1],v=(0,i.useState)(""),b=(0,r.A)(v,2),w=b[0],x=b[1],A=(0,i.useState)(!1),S=(0,r.A)(A,2),C=S[0],E=S[1],k=u(n),T=(0,c.kI)(),_=(0,c.KE)(),O=(0,h.sd)().querySelector('[id^="mapTargetElement-'.concat(t,'"]')),P=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;(l.vF.logTraceUseEffect("HOVER-TOOLTIP - hoverFeatureInfo",T),T)&&(y(null===(e=T.fieldInfo)||void 0===e?void 0:e.value),x(T.featureIcon.toDataURL()),E(!0))}),[T]),(0,i.useEffect)((function(){y(""),x(""),E(!1)}),[_]),(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("HOVER-TOOLTIP - tooltipValue changed",m),O&&P.current&&_&&_.pixel&&m){var e=O.getBoundingClientRect(),t=P.current.getBoundingClientRect(),n=_.pixel[0]+10,r=_.pixel[1]-35;_.pixel[0]+t.width>e.width&&(n=_.pixel[0]-t.width-10),_.pixel[1]-t.height{"use strict";n.d(t,{$:()=>s.$,re:()=>o.r,rn:()=>i.r,s$:()=>a.s,tk:()=>r.t});n(45831),n(76099),n(95985),n(57692),n(21712),n(61656),n(86430),n(76976),n(89484),n(87605),n(56757);var r=n(87993),i=n(58229),o=(n(72845),n(59480),n(26034),n(35944),n(47764),n(9036),n(51801),n(1102),n(24255),n(43798),n(12e3),n(23591)),a=(n(2682),n(60439)),s=n(75545);n(89013),n(65988),n(74890),n(5281),n(58150),n(95864),n(13604),n(11282),n(9951),n(83609),n(26028),n(31680),n(20354),n(57145),n(73518),n(42984),n(91564)},75545:(e,t,n)=>{"use strict";n.d(t,{$:()=>Ce});var r=n(42432),i=n(55907),o=n(30538),a=n(47001),s=n(33828),l=n(24795),c=n(43331),u=n(97282);function d(){var e=(0,a.A)(),t=(0,c.useTranslation)().t,n={padding:"8px 18px 4px 8px","& .MuiButton-startIcon":(0,r.A)({},e.breakpoints.down("md"),{margin:0,padding:"0 0.25rem"})},i=(0,l.y5)(),o=(0,l.Yo)(),d=(0,l.$T)().setDisplayState,h=function(e){d(e)};return(0,u.jsx)(s.Box,{id:"layers-toolbar",sx:n,children:(0,u.jsxs)(s.ButtonGroup,{size:"small",variant:"outlined","aria-label":"outlined button group",children:[(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!o.length,size:"small",tooltip:"general.view",variant:"view"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.VisibilityOutlinedIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("view")},children:t("general.view")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",size:"small",tooltip:"legend.addLayer",variant:"add"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.AddCircleOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("add")},children:t("general.add")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!o.length,size:"small",tooltip:"legend.sortLayers",variant:"order"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.HandleIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("order")},children:t("legend.sort")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!o.length,size:"small",tooltip:"legend.removeLayer",variant:"remove"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.DeleteOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("remove")},children:t("general.remove")})]})})}var h=n(89255),p=n.n(h),f=function(e){return{categoryTitle:{textAlign:"left",fontWeight:"600",fontSize:e.palette.geoViewFontSize.lg},layerDetails:{padding:"20px"},buttonDescriptionContainer:{display:"flex",flexDirection:"row",alignItems:"center"},layerOpacityControlContainer:{display:"flex",flexDirection:"row",alignItems:"right",justifyContent:"right","& #layerOpacity":{width:{xs:"100%",sm:"100%",md:"50%",lg:"40%",xl:"40%"}}},itemsGrid:{width:"100%","& .MuiGrid-container":{"&:first-of-type":{fontWeight:"bold",borderTop:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300]),borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300])},"& .MuiGrid-item":{padding:"3px 6px","&:first-of-type":{width:"80px"},"&:nth-of-type(2)":{flexGrow:1,textAlign:"left",display:"flex",flexDirection:"row",alignItems:"center"}}}},tableIconLabel:{color:e.palette.geoViewColor.textColor.main,fontSize:e.palette.geoViewFontSize.default,noWrap:!0,marginLeft:20},wmsImage:{maxWidth:"100%",height:"auto"}}},g=n(73854),m=n(43381),y=n(76200),v=n(60521),b=function(e){return{layerOpacityControl:{display:"flex",alignItems:"center",gap:"15px",padding:"8px 20px 7px 15px",backgroundColor:e.palette.geoViewColor.bgColor.main,borderRadius:"10px","& .MuiSlider-mark":{width:"9px",height:"9px",opacity:1,backgroundColor:e.palette.geoViewColor.primary.light[600],border:"2px solid ".concat(e.palette.geoViewColor.primary.main),borderRadius:"50%"},"& .MuiSlider-markLabel":{fontSize:e.palette.geoViewFontSize.xs,color:e.palette.geoViewColor.textColor.main}}}},w=n(6883);function x(e){w.vF.logTraceRender("components/layers/right-panel/layer-opacity-control/layer-opacity-control");var t=e.layerDetails,n=(0,c.useTranslation)().t,r=(0,a.A)(),i=b(r),o=(0,l.$T)().setLayerOpacity,d=[];t.opacityFromParent&&1!==t.opacityFromParent&&(d=[{value:100*t.opacityFromParent,label:n("layers.opacityMax")}]);return(0,u.jsx)(s.Box,{style:{padding:"16px 17px 16px 23px"},children:(0,u.jsxs)(s.Box,{sx:i.layerOpacityControl,children:[(0,u.jsx)(s.Typography,{sx:{fontWeight:"bold"},children:n("layers.opacity")}),(0,u.jsx)(s.Slider,{min:0,max:100,step:1,value:100*(t.opacity?t.opacity:1),onChange:function(e,n){var r=Array.isArray(e)?e[0]:e;t.opacityFromParent&&1!==t.opacityFromParent&&r/100>=t.opacityFromParent?o(t.layerPath,t.opacityFromParent):o(t.layerPath,r/100)},marks:d})]})})}var A=n(24258);function S(e){var t,n;w.vF.logTraceRender("components/layers/right-panel/layer-details");var d=e.layerDetails,h=(0,c.useTranslation)().t,b=(0,a.A)(),S=f(b),C=(0,o.useState)(!1),E=(0,i.A)(C,2),k=E[0],T=E[1],_=(0,l.Zt)(),O=(0,l.$T)(),P=O.setAllItemsVisibility,I=O.toggleItemVisibility,M=O.setHighlightLayer,L=O.refreshLayer,R=O.zoomToLayerExtent,j=O.getLayerBounds,F=(0,g.A6)().enableFocusTrap,D=(0,m.eQ)().triggerGetAllFeatureInfo,N=(0,m._M)(),B=(0,m.Xh)(),z=B.find((function(e){return e.layerPath===(null==d?void 0:d.layerPath)}));(0,o.useEffect)((function(){var e;return w.vF.logTraceUseEffect("LAYER DETAILS",z,d),z?e=setTimeout((function(){T(!0)}),100):T(!0),function(){T(!1),e&&clearTimeout(e)}}),[B,d,z]);var V=function(){R(d.layerPath).catch((function(e){w.vF.logPromiseFailed("in zoomToLayerExtent in layer-details.handleZoomTo",e)}))},$=function(){B.filter((function(e){var t;return e.layerPath===d.layerPath&&!(null==e||null===(t=e.features)||void 0===t||!t.length)})).length&&d.layerStatus!==A.RI.ERROR||D(d.layerPath).catch((function(e){w.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in single-layer.handleLayerClick",e)})),F({activeElementId:"layerDataTable",callbackElementId:"table-details"})};if(void 0===d.bounds||d.bounds[0]===1/0){var G=j(d.layerPath);G&&(d.bounds=G)}var U=function(){L(d.layerPath)},W=function(){M(d.layerPath)},q=function(){return p()(d.items,(function(e){return!1!==e.isVisible}))};function H(e){var t,n,r;return"simple"===(null===(t=d.styleConfig)||void 0===t||null===(t=t.LineString)||void 0===t?void 0:t.styleType)||"simple"===(null===(n=d.styleConfig)||void 0===n||null===(n=n.Point)||void 0===n?void 0:n.styleType)||"simple"===(null===(r=d.styleConfig)||void 0===r||null===(r=r.Polygon)||void 0===r?void 0:r.styleType)?null:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return I(d.layerPath,e)},children:!0===e.isVisible?(0,u.jsx)(s.CheckBoxIcon,{}):(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{})}):(0,u.jsxs)(s.IconButton,{disabled:!0,tooltip:"layers.visibilityIsAlways",children:[" ",(0,u.jsx)(s.CheckBoxIcon,{color:"disabled"})," "]})}var Y,K,X;return(0,u.jsx)(s.Paper,{sx:S.layerDetails,children:void 0!==d&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(s.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[(0,u.jsxs)(s.Box,{sx:(0,r.A)({textAlign:"left"},b.breakpoints.down("md"),{display:"none"}),children:[(0,u.jsxs)(s.Typography,{sx:S.categoryTitle,children:[" ",d.layerName," "]}),(0,u.jsxs)(s.Typography,{sx:{fontSize:b.palette.geoViewFontSize.sm},children:[" ",function(){if(d.children.length>0)return h("legend.subLayersCount").replace("{count}",d.children.length.toString());var e=d.items.filter((function(e){return!1!==e.isVisible})).length,t=d.items.length;return t<=1?null:h("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString())}()," "]})]}),(0,u.jsxs)(s.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"15px"},children:[k&&N[d.layerPath]&&(!1!==(null===(X=d.controls)||void 0===X?void 0:X.table)?(0,u.jsx)(s.IconButton,{id:"table-details",tooltip:"legend.tableDetails",className:"buttonOutline",onClick:$,children:(0,u.jsx)(s.TableViewIcon,{})}):(0,u.jsx)(s.IconButton,{id:"table-details",className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.TableViewIcon,{color:"disabled"})})),(0,u.jsx)(s.IconButton,{tooltip:"legend.refreshLayer",className:"buttonOutline",onClick:U,children:(0,u.jsx)(s.RestartAltIcon,{})}),!1!==(null===(K=d.controls)||void 0===K?void 0:K.highlight)?(0,u.jsx)(s.IconButton,{tooltip:"legend.highlightLayer",onClick:W,className:_===d.layerPath?"buttonOutline active":"buttonOutline",children:(0,u.jsx)(s.HighlightOutlinedIcon,{})}):(0,u.jsx)(s.IconButton,{className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.HighlightOutlinedIcon,{color:"disabled"})}),!1!==(null===(Y=d.controls)||void 0===Y?void 0:Y.zoom)?(0,u.jsx)(s.IconButton,{tooltip:"legend.zoomTo",onClick:V,className:"buttonOutline",disabled:void 0===d.bounds,children:(0,u.jsx)(s.ZoomInSearchIcon,{})}):(0,u.jsx)(s.IconButton,{className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.ZoomInSearchIcon,{color:"disabled"})})]})]}),!1!==(null===(t=d.controls)||void 0===t?void 0:t.opacity)&&(0,u.jsx)(s.Box,{sx:S.layerOpacityControlContainer,children:(0,u.jsx)(s.Box,{id:"layerOpacity",children:(0,u.jsx)(x,{layerDetails:d})})}),"ogcWms"===d.type&&d.icons.length&&d.icons[0].iconImage&&"no data"!==d.icons[0].iconImage?(0,u.jsx)(s.Grid,{sx:S.itemsGrid,children:(0,u.jsx)(s.Grid,{container:!0,pt:6,pb:6,children:(0,u.jsx)(s.Box,{component:"img",alt:"icon",src:d.icons[0].iconImage,style:S.wmsImage})})}):null,(0,u.jsxs)(s.Box,{sx:{marginTop:"20px"},children:[(null===(n=d.items)||void 0===n?void 0:n.length)>0&&(0,u.jsxs)(s.Grid,{container:!0,direction:"column",spacing:0,sx:S.itemsGrid,justifyContent:"left",justifyItems:"stretch",children:[d.items.length>1&&(0,u.jsxs)(s.Grid,{container:!0,direction:"row",justifyContent:"center",alignItems:"stretch",justifyItems:"stretch",children:[(0,u.jsx)(s.Grid,{size:{xs:"auto"},children:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return P(d.layerPath,!q())},children:q()?(0,u.jsx)(s.CheckBoxIcon,{}):(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{})}):(0,u.jsxs)(s.IconButton,{disabled:!0,children:[" ",(0,u.jsx)(s.CheckBoxIcon,{color:"disabled"})," "]})}),(0,u.jsx)(s.Grid,{size:{xs:"auto"},children:(0,u.jsx)(s.Box,{component:"span",children:h("general.name")})})]}),d.items.map((function(e){return(0,u.jsxs)(s.Grid,{container:!0,direction:"row",justifyContent:"center",alignItems:"stretch",children:[(0,u.jsx)(s.Grid,{size:{xs:"auto"},children:H(e)}),(0,u.jsxs)(s.Grid,{size:{xs:"auto"},children:[e.icon?(0,u.jsx)(s.Box,{component:"img",alt:e.name,src:e.icon}):(0,u.jsx)(s.BrowserNotSupportedIcon,{}),(0,u.jsx)(s.Box,{component:"span",style:S.tableIconLabel,children:e.name})]})]},"".concat(e.name,"/").concat(d.items.indexOf(e)))}))]}),d.children.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Typography,{sx:{fontWeight:"bold",textAlign:"left",margin:"10px 0px"},children:h("layers.subLayersList")}),function e(t){return(0,u.jsx)(s.List,{children:t.children.map((function(t){return(0,u.jsxs)(o.Fragment,{children:[(0,u.jsxs)(s.ListItem,{sx:{padding:"6px 0px",borderTop:"1px solid ".concat(b.palette.geoViewColor.bgColor.dark[50])},children:[(0,u.jsx)(s.ListItemIcon,{children:(0,u.jsx)(v.B,{layer:t})}),(0,u.jsx)(s.ListItemText,{primary:t.layerName})]}),t.children.length>0&&(0,u.jsx)(s.Box,{sx:{paddingLeft:"30px",width:"100%"},children:e(t)})]},t.layerId)}))})}(d)]})]}),(0,u.jsx)(s.Divider,{sx:{marginTop:"50px",marginBottom:"10x"},variant:"middle"}),d.layerAttribution&&d.layerAttribution.map((function(e){return(0,u.jsx)(s.Typography,{sx:{marginTop:"10px",color:b.palette.geoViewColor.textColor.light[200],fontSize:b.palette.geoViewFontSize.sm,textAlign:"center"},children:-1===e.indexOf("©")?"© ".concat(e):e},(0,y.generateId)())}))]})})}var C=n(74816),E=n(17755),k=n(30886),T=n.n(k),_=n(38811);function O(e){w.vF.logTraceRender("components/layers/left-panel/delete-undo-button/UndoButtonWithProgress");var t=e.progressValue,n=e.onUndo,r=e.handleKeyDown;return(0,u.jsxs)(s.Box,{sx:{position:"relative",display:"inline-flex"},onClick:n,children:[(0,u.jsx)(s.CircularProgressBase,{variant:"determinate",size:40,value:t}),(0,u.jsx)(s.Box,{style:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(s.IconButton,{edge:"end",size:"small",onKeyDown:function(e){return r(e)},children:(0,u.jsx)(s.UndoIcon,{})})})]})}function P(e){var t;w.vF.logTraceRender("components/layers/left-panel/delete-undo-button/DeleteUndoButton");var n=e.layer,r=(0,o.useState)(10),a=(0,i.A)(r,2),c=a[0],d=a[1],h=(0,o.useState)(!1),p=(0,i.A)(h,2),f=p[0],m=p[1],y=(0,l.$T)(),v=y.deleteLayer,b=y.setLayerDeleteInProgress,x=y.getLayerDeleteInProgress,S=(0,C.U6)(),E=S.getVisibilityFromOrderedLayerInfo,k=S.setOrToggleLayerVisibility,T=(0,g.A6)().setSelectedFooterLayerListItem,_=function(){E(n.layerPath)&&k(n.layerPath),m(!0),b(!0)},P=function(){k(n.layerPath),m(!1),b(!1)};return(0,o.useEffect)((function(){100===c&&(v(n.layerPath),m(!1))}),[c]),(0,o.useEffect)((function(){if(f){var e=setInterval((function(){d((function(e){return e>=100?0:e+5}))}),90);return function(){clearInterval(e)}}d(0)}),[f]),n.layerStatus===A.RI.LOADING||n.layerStatus===A.RI.PROCESSING?(0,u.jsx)(s.Box,{}):f||!1===(null===(t=n.controls)||void 0===t?void 0:t.remove)||x()?f?(0,u.jsx)(O,{progressValue:c,onUndo:P,handleKeyDown:function(e){"Enter"===e.key&&(P(),T(""),e.preventDefault())}}):(0,u.jsx)(s.IconButton,{onClick:_,edge:"end",size:"small",disabled:!0,children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{onClick:_,edge:"end",size:"small",onKeyDown:function(e){return function(e){"Enter"===e.key&&(e.preventDefault(),_(),T(n.layerId))}(e)},children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"error"})})}var I=n(52860),M=n(53939),L=n(90698),R=n(49919);function j(e){var t=e.depth,n=e.layer,r=e.showLayerDetailsPanel,i=e.index,a=e.isFirst,d=e.isLast,h=e.isLayoutEnlarged;w.vF.logTraceRender("components/layers/left-panel/single-layer");var p=(0,c.useTranslation)().t,f=(0,l.$T)(),y=f.setSelectedLayerPath,b=f.setSelectedLayerSortingArrowId,x=(0,C.U6)(),A=x.getVisibilityFromOrderedLayerInfo,S=x.setOrToggleLayerVisibility,k=x.getLegendCollapsedFromOrderedLayerInfo,O=x.setLegendCollapsed,j=x.reorderLayer,F=(0,E.Jh)(),D=(0,l.u1)(),N=(0,l.y5)(),B=(0,m._M)(),V=(0,l.q5)(),$=(0,g.Qy)(),G=(0,l.Yo)();(0,m.eQ)();var U=!k(n.layerPath),W=function(e){return"view"===N&&(!!(e.children&&e.children.length>0)&&(e.children.filter((function(e){return e.layerPath===D})).length>0||T()(e.children,(function(e){return W(e)}))))},q=W(n),H=n.layerPath===D&&"view"===N,Y=function(e){var t;if(!1===(null===(t=e.controls)||void 0===t?void 0:t.visibility))return!0;var n=!1;return e.children&&e.children.length>0&&(n=e.children.some((function(e){return Y(e)}))),n},K=Y(n),X=function(){O(n.layerPath)},Z=function(){["processed","loaded"].includes(n.layerStatus)&&(y(n.layerPath),r&&r(n))};var J=(0,_.zh)({delay:150*i+150*t/2,from:{opacity:.1},to:{opacity:1}});(0,o.useEffect)((function(){if(V.length){var e,t,n=document.getElementById(V);if(null!=n&&n.disabled)if(V.split("-").includes("up"))null==n||null===(e=n.nextSibling)||void 0===e||e.focus();else null==n||null===(t=n.previousSibling)||void 0===t||t.focus();else null==n||n.focus()}}),[V]),(0,o.useEffect)((function(){if("remove"===N&&$.length){var e,t=document.getElementById("layers-left-panel");if(null!=t&&t.getElementsByTagName("li"))null===(e=(null==t?void 0:t.getElementsByTagName("li"))[0])||void 0===e||e.focus()}}),[G,N]);var Q,ee,te,ne,re=(0,_.CS)(s.Paper);return(0,u.jsxs)(re,{className:(ne=["layer-panel ",null!==(te=n.layerStatus)&&void 0!==te?te:""],0===t&&ne.push("bordered"),!q||H||U||ne.push("selectedLayer bordered-primary"),H&&ne.push("selectedLayer bordered-primary"),ne.join(" ")),style:J,"data-layer-depth":t,children:[(0,u.jsx)(s.Tooltip,{title:n.layerName,placement:"top",enterDelay:1e3,arrow:!0,children:(0,u.jsx)(s.ListItem,{id:n.layerId,divider:!0,tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&e.currentTarget===e.target&&Z()},children:(0,u.jsxs)(s.ListItemButton,{selected:H||q&&!U,tabIndex:-1,sx:{minHeight:"4.51rem"},children:[(0,u.jsx)(v.B,{layer:n}),(0,u.jsx)(s.ListItemText,{primary:void 0!==n.layerName?n.layerName:n.layerId,secondary:function(){if("error"===n.layerStatus)return p("legend.layerError");if("processing"===n.layerStatus||"loading"===n.layerStatus)return p("legend.layerLoading");if(n.children.length>0)return p("legend.subLayersCount").replace("{count}",n.children.length.toString());var e=n.items.filter((function(e){return!1!==e.isVisible})).length,t=n.items.length,r=p("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString());return t<=1&&(r=""),B[n.layerPath]?(0,u.jsxs)(s.Typography,{sx:{color:"unset",fontSize:"unset"},component:"span",children:[r,"  ",(0,u.jsx)(I.A,{sx:{marginBottom:"-5px"},fontSize:"small"})]}):r}(),onClick:Z}),!h&&(0,u.jsxs)(s.ListItemIcon,{className:"rightIcons-container",children:["processing"===n.layerStatus||"loading"===n.layerStatus||"view"!==N?null:"error"===n.layerStatus?(0,u.jsx)(P,{layer:n}):K?(0,u.jsx)(s.IconButton,{edge:"end",size:"small",tooltip:"layers.visibilityIsAlways",className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.VisibilityOutlinedIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{edge:"end",size:"small",onClick:function(){S(n.layerPath)},tooltip:"layers.toggleVisibility",className:"buttonOutline",children:A(n.layerPath)?(0,u.jsx)(s.VisibilityOutlinedIcon,{}):(0,u.jsx)(s.VisibilityOffOutlinedIcon,{})}),null!==(ee=n.children)&&void 0!==ee&&ee.length?(0,u.jsx)(s.IconButton,{color:"primary",edge:"end",size:"small",onClick:X,tooltip:"layers.toggleCollapse",className:"buttonOutline",children:U?(0,u.jsx)(s.KeyboardArrowUpIcon,{}):(0,u.jsx)(s.KeyboardArrowDownIcon,{})}):null,"remove"===N?(0,u.jsx)(P,{layer:n}):"order"===N?(0,u.jsxs)(u.Fragment,{children:[(null===(Q=n.children)||void 0===Q?void 0:Q.length)>0&&(0,u.jsx)(R.c,{orientation:"vertical",sx:{marginLeft:"0.4rem",height:"1.5rem",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.dark[300]}},variant:"middle",flexItem:!0}),(0,u.jsx)(s.IconButton,{id:"".concat(F,"-").concat(n.layerPath,"-up-order"),disabled:a,edge:"end",size:"small",onClick:function(){return j(n.layerPath,-1)},onKeyDown:function(e){"Enter"===e.key&&(b("".concat(F,"-").concat(n.layerPath,"-up-order")),j(n.layerPath,-1),e.preventDefault())},children:(0,u.jsx)(M.A,{})}),(0,u.jsx)(s.IconButton,{id:"".concat(F,"-").concat(n.layerPath,"-down-order"),disabled:d,edge:"end",size:"small",onKeyDown:function(e){"Enter"===e.key&&(b("".concat(F,"-").concat(n.layerPath,"-down-order")),j(n.layerPath,1),e.preventDefault())},onClick:function(){return j(n.layerPath,1)},children:(0,u.jsx)(L.A,{})})]}):null]})]})},n.layerName)}),n.children&&n.children.length?(0,u.jsx)(s.Collapse,{in:U,timeout:"auto",children:(0,u.jsx)(z,{depth:1+t,layersList:n.children,isLayoutEnlarged:h,showLayerDetailsPanel:r})}):null]})}var F=function(e){return{list:{color:"text.primary",width:"100%",paddingLeft:"8px",paddingRight:"14px !important",overflowY:"auto","& .MuiListItemText-primary":{fontWeight:"600",padding:"5px 0px",fontSize:"".concat(e.palette.geoViewFontSize.default," !important"),lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .layer-panel":{"& .MuiListItemText-root":{marginLeft:"12px"},"& .rightIcons-container":{display:"flex",flexDirection:"row",justifyContent:"right",alignItems:"center","& .MuiIconButton-root":{margin:"0px 5px"}}},"& .MuiListItem-root":{height:"100%","& .MuiListItemButton-root":{padding:"0 0 0 16px",height:"100%"},"& .MuiBox-root":{height:"100%",borderTopRightRadius:"4px",borderBottomRightRadius:"4px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center"}},"& .MuiListItemIcon-root":{minWidth:"2.5rem",marginRight:"20px"},"& .MuiListItemText-root":{">span":{fontSize:e.palette.geoViewFontSize.default},"> p":{fontSize:e.palette.geoViewFontSize.sm,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},evenDepthList:{background:e.palette.geoViewColor.bgColor.main,boxShadow:2,padding:"0px",margin:"20px",width:"unset",boxSizing:"border-box","& .layerItemContainer":{backgroundColor:"transparent",marginBottom:"0px"}},oddDepthList:{background:"white",boxShadow:2,padding:"0px",margin:"20px",width:"unset",boxSizing:"border-box","& .layerItemContainer":{backgroundColor:"transparent",marginBottom:"0px"}}}},D=n(26265);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;td(t.layerPath)?1:-1})),p=h.map((function(e,t){var o=0===t,a=t===h.length-1;return(0,u.jsx)(j,{depth:i,layer:B(B({},e),{},{layerId:"".concat(c,"-").concat(A.DF.LAYERS,"-").concat(e.layerPath)}),showLayerDetailsPanel:n,index:t,isFirst:o,isLast:a,isLayoutEnlarged:r},"layerKey-".concat(t,"-").concat(e.layerPath).toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-"))}));return(0,u.jsx)(s.Box,{sx:0===i?l.list:i%2?l.evenDepthList:l.oddDepthList,children:p})}var V=n(96880),$=n(74813),G=n.n($),U=n(8058),W=n(4078),q=n(4401),H=n(66582),Y=n(41506),K=n(23853),X=n(68705),Z=n(34119),J=n(27991),Q=n(17921),ee=n(30762),te=n(7383),ne=n(7358),re=n(12989),ie=n(58420),oe=n(6552),ae=n(28126),se=n(58118),le=n(3248),ce=n(44894),ue=n(46850),de=n(51640),he=n(2265),pe=n(73611),fe=n(93555),ge=n(42942),me=n(85849),ye=n(26323);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t0&&e.Layer.forEach((function(e){var t=e.Name;(0===u.length||u.includes(t))&&(w.vF.logDebug("NAME",t),f.push(new le.Q({geoviewLayerConfig:d,layerId:e.Name,layerName:(0,y.createLocalizedString)(e.Title)}))),m(e)}))},p.Capability.Layer&&m(p.Capability.Layer),1===f.length?(Te(f[0].layerName.en),Ie([f[0]])):Se(f),e.next=32;break;case 28:return e.prev=28,e.t0=e.catch(2),"proj"===e.t0.message?st("WMS",t,n):at("WMS"),e.abrupt("return",!1);case 32:return e.abrupt("return",!0);case 33:case"end":return e.stop()}}),e,null,[[2,28]])})));return function(){return e.apply(this,arguments)}}(),ct=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:m,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L)},n=new H.dS(Qe,t),t.geoviewLayerId=n.geoviewLayerId,k(n),e.next=7,n.createGeoViewLayers();case 7:if(n.metadata){e.next=9;break}throw new Error("Cannot get metadata");case 9:Ge(!0),r=n.metadata,1===(i=r.FeatureTypeList.FeatureType.map((function(e){return new Q.q({geoviewLayerConfig:t,layerId:e.Name["#text"].split(":")[1],layerName:(0,y.createLocalizedString)(e.Title["#text"])})}))).length?(Te(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=19;break;case 15:return e.prev=15,e.t0=e.catch(0),at("WFS"),e.abrupt("return",!1);case 19:return e.abrupt("return",!0);case 20:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}(),ut=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:v,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L.split("collections")[0])},n=new W.ke(Qe,t),t.geoviewLayerId=n.geoviewLayerId,k(n),e.next=7,n.createGeoViewLayers();case 7:if(r=n.metadata,n.metadata){e.next=10;break}throw new Error("Cannot get metadata");case 10:if(Ge(!0),Object.keys(r).length){e.next=14;break}return at("OGC API Feature"),e.abrupt("return",!1);case 14:if(["collections","links"].every((function(e){return Object.keys(r).includes(e)}))){e.next=18;break}throw new Error("err");case 18:i=[],2===L.split("/collections/").length&&r.collections.forEach((function(e){L.split("/collections/")[1]===e.id&&i.push(new ee.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)}))})),0===i.length&&(i=r.collections.map((function(e){return new ee.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)})}))),1===i.length?(Te(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(0),at("OGC API Feature"),e.abrupt("return",!1);case 28:return e.abrupt("return",!0);case 29:case"end":return e.stop()}}),e,null,[[0,24]])})));return function(){return e.apply(this,arguments)}}(),dt=function(){var e=(0,V.A)(G().mark((function e(){var t,n;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,-1===L.indexOf("/")&&32===L.replaceAll("-","").length){e.next=4;break}throw new Error("err");case 4:return t=new ue.h(Qe,X.FHQ.maps[Qe].getDisplayLanguage()),e.next=7,t.createLayersFromUUID(L);case 7:1===(n=e.sent).length&&(1===n.length?(Te(n[0].geoviewLayerName.en),Ie(n)):Se(n)),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(0),at("GeoCore UUID"),e.abrupt("return",!1);case 15:return e.abrupt("return",!0);case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),ht=function(){var e=(0,V.A)(G().mark((function e(t){var n,i,o,a;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=t===r?{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L)}:{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L.substring(0,L.lastIndexOf("/")))},i=t===r?new pe.zt(Qe,n):new ge.Uw(Qe,n),n.geoviewLayerId=i.geoviewLayerId,k(i),e.next=7,i.createGeoViewLayers();case 7:if(o=i.metadata){e.next=10;break}throw new Error("Cannot get metadata");case 10:if(Ge(!0),null===o||!o.capabilities.includes(it(t).capability)){e.next=15;break}"layers"in o&&(a=[],t===r?o.layers.forEach((function(e){return a.push(new ae.q({geoviewLayerConfig:n,layerId:e.id,layerName:(0,y.createLocalizedString)(e.name)}))})):a.push(new re.h({geoviewLayerConfig:n,layerId:o.layers[0].id,layerName:(0,y.createLocalizedString)(o.layers[0].name)})),1===a.length?(Te(a[0].layerName.en),Ie([a[0]])):Se(a)),e.next=16;break;case 15:throw new Error("err");case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(0),at(it(t).err),e.abrupt("return",!1);case 22:return e.abrupt("return",!0);case 23:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t){return e.apply(this,arguments)}}(),pt=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i,o;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={geoviewLayerType:h,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L)},i=new Z.$x(Qe,r),r.geoviewLayerId=i.geoviewLayerId,k(i),e.next=7,i.createGeoViewLayers();case 7:o=[new se.Q({geoviewLayerConfig:r,layerId:r.geoviewLayerId,layerName:(0,y.createLocalizedString)("string"==typeof(null===(t=i.metadata)||void 0===t?void 0:t.name)?null===(n=i.metadata)||void 0===n?void 0:n.name:""),source:{dataAccessPath:(0,y.createLocalizedString)(L)}})],Te(o[0].layerName.en),Ie([o[0]]),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(0),at("ESRI Image"),e.abrupt("return",!1);case 16:return e.abrupt("return",!0);case 17:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),ft=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i,o;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=["{x}","{y}","{z}"],n=0;case 3:if(!(n1?Ae.forEach((function(t){var n=X.FHQ.maps[Qe].layer.addGeoviewLayer(t);n&&e.push(n)})):Pe.length>0&&Pe.forEach((function(t){var n=X.FHQ.maps[Qe].layer.addGeoviewLayer(t);n&&e.push(n)})),Promise.allSettled(e.map((function(e){return e.promiseLayer}))).then((function(){yt(),e.forEach((function(e){return vt(e.layer)}))})).catch((function(e){w.vF.logPromiseFailed("Promise.allSettled in handleStepLast in AddNewLayer",e)}))}else if(C){var t=Pe[0].geoviewLayerConfig;t.listOfLayerEntryConfig=Pe,t.geoviewLayerName=(0,y.createLocalizedString)(ke),$===b&&(Pe[0].layerName=(0,y.createLocalizedString)(ke)),1===t.listOfLayerEntryConfig.length&&(t.listOfLayerEntryConfig[0].layerName=t.geoviewLayerName);var n=X.FHQ.maps[Qe].layer.addGeoviewLayer(t);n?n.promiseLayer.then((function(){yt(),vt(n.layer)})).catch((function(e){w.vF.logPromiseFailed("addedLayer.promiseLayer in handleStepLast in AddNewLayer",e)})):je(!1)}},wt=function(){P((function(e){return e-1})),He(!1)},xt=function(e){var t=URL.createObjectURL(e);N(e.name),R(t);var n=e.name.split(".")[0];ve(""),Se([]),Te(n),Ie([])},At=function(e,t){He(!0),tt()?0!==t.length&&(Ie(t),Te(t.map((function(e){return e.layerName.en})).join(", ")),He(!1)):(Ie([t]),Te(t.layerName.en),He(!1))},St=function(e){He(!1),Te(e.target.value)};(0,o.useEffect)((function(){2===O&&Pe.length>0&&He(!1)}),[ke,O,Pe]),(0,o.useEffect)((function(){var e,t,n;0===O&&(null===(e=Ke.current)||void 0===e||e.focus());1===O&&(null===(t=Xe.current)||void 0===t?void 0:t.getElementsByTagName("input")[0].previousSibling).focus();if(2===O&&Ze.current){var r,i,o,a=null===(r=Ze.current)||void 0===r||null===(r=r.dataset)||void 0===r?void 0:r.id,s=null===(i=Ze.current)||void 0===i?void 0:i.querySelector("#service-layer-label");if("autocomplete"===a&&s)s.focus();else null===(o=Je.current)||void 0===o||null===(o=o.getElementsByTagName("input")[0])||void 0===o||o.focus()}3===O&&(null===(n=Je.current)||void 0===n||null===(n=n.getElementsByTagName("input")[0])||void 0===n||n.focus())}),[O]);var Ct=function(e){var t;if(e.preventDefault(),e.stopPropagation(),Be(!1),null!==(t=e.dataTransfer)&&void 0!==t&&t.files){var n=e.dataTransfer.files[0],r=n.name.toUpperCase();r.endsWith(".JSON")||r.endsWith(".GEOJSON")||r.endsWith(".GPKG")||r.endsWith(".CSV")?xt(n):X.FHQ.maps[Qe].notifications.showError("layers.errorFile",[],!1)}};function Et(t){var n=t.isFirst,r=void 0!==n&&n,i=t.isLast,o=void 0!==i&&i,a=t.handleNext;return Re?(0,u.jsx)(s.Box,{sx:{padding:10},children:(0,u.jsx)(s.CircularProgressBase,{})}):(0,u.jsxs)(s.ButtonGroup,{sx:rt.buttonGroup,children:[(0,u.jsx)(s.Button,{variant:"contained",className:"buttonOutlineFilled",size:"small",type:"text",disabled:qe,onClick:a,children:e(o?"layers.finish":"layers.continue")}),!r&&(0,u.jsx)(s.Button,{variant:"contained",className:"buttonOutlineFilled",size:"small",type:"text",onClick:wt,onKeyDown:function(e){return function(e){"Enter"===e.key&&(wt(),e.preventDefault())}(e)},children:e("layers.back")})]})}var kt=(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{fontSize:t.palette.geoViewFontSize.sm}),Tt=(0,u.jsx)(s.CheckBoxIcon,{fontSize:t.palette.geoViewFontSize.sm});return(0,u.jsx)(s.Paper,{sx:{padding:"20px",gap:"8"},children:(0,u.jsx)(s.Stepper,{activeStep:O,orientation:"vertical",steps:[{stepLabel:{children:e("layers.stepOne")},stepContent:{children:(0,u.jsxs)(s.Box,{className:"dropzone",style:{position:"relative"},onDrop:function(e){return Ct(e)},onDragOver:function(e){return function(e){e.preventDefault(),e.stopPropagation()}(e)},onDragEnter:function(e){return function(e){e.preventDefault(),e.stopPropagation(),e.target!==Ye.current&&Be(!0)}(e)},onDragLeave:function(e){return function(e){e.preventDefault(),e.stopPropagation(),e.target===Ye.current&&Be(!1)}(e)},children:[Ne&&(0,u.jsx)(s.Box,{ref:Ye,style:{backgroundColor:"rgba(128,128,128,.95)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:9999,textAlign:"center",color:"black",fontSize:24},children:(0,u.jsxs)("h3",{children:[(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),e("layers.dropzone")]})}),(0,u.jsx)(s.Box,{children:(0,u.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(e){e.target.files&&xt(e.target.files[0])},accept:".gpkg, .json, .geojson, .csv"})}),(0,u.jsxs)(s.Button,{fullWidth:!0,variant:"outlined",size:"small",sx:{width:"100%"},type:"text",onClick:function(){var e;return null===(e=document.getElementById("fileUpload"))||void 0===e?void 0:e.click()},className:"buttonOutlineFilled",ref:Ke,children:[(0,u.jsx)(s.FileUploadIcon,{}),(0,u.jsx)(s.Box,{component:"span",children:e("layers.upload")})]}),(0,u.jsx)("p",{style:{textAlign:"center"},children:(0,u.jsx)("small",{children:e("layers.drop")})}),(0,u.jsx)("p",{style:{textAlign:"center"},children:e("layers.or")}),(0,u.jsx)(s.TextField,{sx:{width:"100%"},label:e("layers.url"),variant:"standard",value:D,onChange:function(e){N(e.target.value.trim()),R(e.target.value.trim()),ve(""),Se([]),Te(""),Ie([]),He(!(e.target.value.trim().startsWith("https://")||35!==e.target.value.trim().length))},multiline:!0}),(0,u.jsx)("br",{}),(0,u.jsx)(Et,{isFirst:!0,handleNext:function(){var e,t,i=!0;""===L.trim()&&(i=!1,je(!1),X.FHQ.maps[Qe].notifications.showError("layers.errorNone",[],!1)),i&&(e=D.toUpperCase().split("/"),t=parseInt(e[e.length-1],10),D.toUpperCase().endsWith("MAPSERVER")||D.toUpperCase().endsWith("MAPSERVER/")?ve(r):-1!==D.toUpperCase().indexOf("FEATURESERVER")||-1!==D.toUpperCase().indexOf("MAPSERVER")&&!Number.isNaN(t)?ve(d):-1!==D.toUpperCase().indexOf("IMAGESERVER")?ve(h):-1!==e.indexOf("WFS")?ve(m):D.toUpperCase().endsWith(".JSON")||D.toUpperCase().endsWith(".GEOJSON")?ve(p):D.toUpperCase().endsWith(".GPKG")?ve(f):-1!==D.toUpperCase().indexOf("{Z}/{X}/{Y}")||-1!==D.toUpperCase().indexOf("{Z}/{Y}/{X}")?ve(b):-1===D.indexOf("/")&&32===D.replaceAll("-","").length?ve(x):-1!==D.toUpperCase().indexOf("WMS")?ve(g):D.toUpperCase().endsWith(".CSV")?ve(n):(ve(""),He(!0)),P(1))}})]})}},{stepLabel:{children:e("layers.stepTwo")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Select,{fullWidth:!0,labelId:"service-type-label",value:$,onChange:function(e){ve(e.target.value),Se([]),Ie([]),He(!1)},label:e("layers.service"),variant:"standard",inputLabel:{id:"service-type-label"},ref:Xe,menuItems:nt.map((function(e){var t=(0,i.A)(e,2),n=t[0];return{key:n,item:{value:n,children:t[1]}}}))}),(0,u.jsx)(Et,{handleNext:function(){var t;je(!0),void 0===$?(je(!1),ot(e("layers.service"))):$===g?t=lt():$===m?t=ct():$===v?t=ut():$===b?t=ft():$===r?t=ht(r):$===d?t=ht(d):$===h?t=pt():$===p?t=mt():$===f?t=Promise.resolve(function(){try{Ge(!1);var e={geoviewLayerType:f,listOfLayerEntryConfig:[]},t=new ce.OH(Qe,e);e.geoviewLayerId=t.geoviewLayerId,k(t);var n=[new ie.X({geoviewLayerConfig:e,layerId:e.geoviewLayerId,layerName:(0,y.createLocalizedString)(""),source:{dataAccessPath:(0,y.createLocalizedString)(L)}})];Te(n[0].layerName.en),Ie([n[0]])}catch(e){return at("GeoPackage"),!1}return!0}()):$===x?t=dt():$===n&&(t=gt()),t&&t.then((function(e){e&&(je(!1),P(2),He(!0))})).catch((function(e){w.vF.logPromiseFailed("promise of layer validation in handleStep2 in AddNewLayer",e)}))}})]})}},{stepLabel:{children:e("layers.stepThree")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[0===Ae.length&&(0,u.jsx)(s.TextField,{label:e("layers.name"),variant:"standard",value:ke,onChange:St,ref:Je}),Ae.length>1&&Ae[0].layerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:tt(),disableClearable:!tt(),disableCloseOnSelect:!0,id:"service-layer-label",options:Ae,getOptionLabel:function(e){return"".concat(e.layerName.en," (").concat(e.layerId,")")},renderOption:function(e,t,n){var r=n.selected;return(0,o.createElement)("li",be(be({},e),{},{key:t.layerName.en}),(0,u.jsx)(s.Checkbox,{icon:kt,checkedIcon:Tt,style:{marginRight:8},checked:r}),t.layerName.en)},onChange:At,ref:Ze,renderInput:function(t){return(0,u.jsx)(s.TextField,be(be({},t),{},{label:e("layers.layerSelect")}))}}),Ae.length>1&&Ae[0].geoviewLayerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:tt(),disableClearable:!tt(),id:"service-layer-label",options:Ae,getOptionLabel:function(e){return"".concat(e.geoviewLayerName.en," (").concat(e.geoviewLayerId,")")},disableCloseOnSelect:!0,renderOption:function(e,t,n){var r=n.selected;return(0,o.createElement)("li",be(be({},e),{},{key:t.geoviewLayerName.en}),(0,u.jsx)(s.Checkbox,{icon:kt,checkedIcon:Tt,style:{marginRight:8},checked:r}),t.geoviewLayerName.en)},onChange:At,ref:Ze,renderInput:function(t){return(0,u.jsx)(s.TextField,be(be({},t),{},{label:e("layers.layerSelect")}))}}),(0,u.jsx)("br",{}),(0,u.jsx)(Et,{isLast:!tt(),handleNext:tt()?function(){var t=!0;0===Pe.length&&(t=!1,ot(e("layers.layer"))),t&&P(3)}:bt})]})}},tt()?{stepLabel:{children:e("layers.stepFour")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.TextField,{sx:{width:"100%"},label:e("layers.name"),variant:"standard",value:ke,onChange:St,ref:Je}),(0,u.jsx)("br",{}),(0,u.jsx)(Et,{isLast:!0,handleNext:bt})]})}}:null]})})}function xe(e){var t=e.showLayerDetailsPanel,n=e.isLayoutEnlarged;w.vF.logTraceRender("components/layers/left-panel/left-panel");var r=(0,l.Yo)(),a=(0,l.y5)(),s=(0,C._I)(),c=(0,E.oy)(),d=(0,C.U6)().getIndexFromOrderedLayerInfo,h=(0,l.$T)().setDisplayState,p=(0,o.useState)([]),f=(0,i.A)(p,2),g=f[0],m=f[1];return(0,o.useEffect)((function(){var e=r.sort((function(e,t){return d(e.layerPath)>d(t.layerPath)?1:-1}));m(e)}),[s,r,d]),(0,o.useEffect)((function(){var e;"add"!==a&&!r.length&&null!=c&&null!==(e=c.footerBar)&&void 0!==e&&e.tabs.core.includes("legend")&&h("add")}),[a,r,h,c]),"add"===a?(0,u.jsx)(we,{}):(0,u.jsx)(z,{layersList:g,depth:0,showLayerDetailsPanel:t,isLayoutEnlarged:n})}var Ae=n(66054),Se=n(8148);function Ce(e){var t=e.containerType,n=(0,a.A)();w.vF.logTraceRender("components/layers/layers-panel");var c,h=(0,l.wU)(),p=(0,l.y5)(),f=(0,o.useState)(!1),m=(0,i.A)(f,2),y=m[0],v=m[1],b=(0,l.$T)().setSelectedLayerPath,x=(0,g.A6)().setSelectedFooterLayerListItem,A=(0,o.useRef)(null),C=function(e){var t,n;null===(t=A.current)||void 0===t||t.setIsRightPanelVisible(!0),null===(n=A.current)||void 0===n||n.setRightPanelFocus(),x("".concat(e.layerId))},E=(0,o.useCallback)((function(e){e&&b("")}),[b]),k=(0,o.useCallback)((function(e){v(e)}),[v]);return(0,u.jsx)(Ae.z,{ref:A,leftTop:(0,u.jsx)(d,{}),leftMain:(0,u.jsx)(s.Box,{id:"layers-left-panel",children:(0,u.jsx)(xe,{showLayerDetailsPanel:C,isLayoutEnlarged:y})}),rightTop:(0,u.jsx)(Se.o,{sx:(0,r.A)({fontSize:n.palette.geoViewFontSize.lg,fontWeight:"600",marginTop:"12px"},n.breakpoints.up("md"),{display:"none"}),component:"div",children:null!==(c=null==h?void 0:h.layerName)&&void 0!==c?c:""}),rightMain:h&&"view"===p?(0,u.jsx)(S,{layerDetails:h}):null,guideContentIds:"view"===p?["layers.children.view","layers.children.layerSettings"]:"remove"===p?["layers.children.remove"]:"order"===p?["layers.children.sort"]:"add"===p?["layers.children.add"]:[],fullWidth:!1,onGuideIsOpen:E,hideEnlargeBtn:"view"!==p,containerType:t,onIsEnlargeClicked:k})}},60439:(e,t,n)=>{"use strict";n.d(t,{s:()=>A});var r=n(42432),i=n(55907),o=n(47001),a=n(30538),s=n(43331),l=n(33828),c=n(26265),u=n(24795),d=n(74816),h=n(6883),p=function(e){return{container:{padding:"20px",display:"flex",flexDirection:"column"},title:{textAlign:"left",fontWeight:"600",color:e.palette.geoViewColor.textColor.main,fontSize:e.palette.geoViewFontSize.md},subtitle:{fontWeight:"normal",fontSize:e.palette.geoViewFontSize.md,textAlign:"left",marginBottom:"15px"},layersListContainer:(0,r.A)((0,r.A)((0,r.A)({padding:"20px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},e.breakpoints.down("sm"),{width:"100%"}),e.breakpoints.up("md"),{width:"50%"}),e.breakpoints.up("lg"),{width:"33.33%"}),legendLayerListItem:{padding:"6px 4px","& .layerTitle":{fontSize:e.palette.geoViewFontSize.md,fontWeight:"600",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",">p":{margin:0,color:e.palette.geoViewColor.textColor.light[400],fontSize:e.palette.geoViewFontSize.sm,lineHeight:1.43}},"& .layerTitle > .MuiListItemText-secondary":{color:e.palette.geoViewColor.textColor.light[400]},"& .layerTitle > div":{color:e.palette.geoViewColor.textColor.light[400]},"& .MuiListItemText-root":{marginLeft:"12px"},"& .MuiCollapse-vertical":{marginLeft:"6px","& ul":{marginTop:0,padding:0},"& li":{borderLeft:"5px solid ".concat(e.palette.geoViewColor.bgColor.dark[200]),paddingLeft:"6px",marginBottom:"3px",fontWeight:"400","&.unchecked":{borderLeft:"5px solid ".concat(e.palette.geoViewColor.bgColor.dark[600]),fontStyle:"italic",color:e.palette.geoViewColor.textColor.light[600]}}}},collapsibleContainer:{width:"100%",padding:"10px 0",margin:"0px 10px"},legendInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},legendInstructionsBody:{fontSize:e.palette.geoViewFontSize.default},subList:{width:"100%","& .MuiListItemIcon-root":{minWidth:"1rem"},"& img":{maxWidth:"1.5rem"}},layerStackIcons:{flexWrap:"wrap","& button":{padding:"0.25rem",marginRight:0,"& svg":{width:"1.25rem",height:"1.25rem"}}}}},f=n(60521),g=n(43852),m=n(1732),y=n(97282);function v(e){var t,n,r,i,a=e.layer;h.vF.logTraceRender("components/legend/legend-layer");var d=(0,s.useTranslation)().t,b=(0,o.A)(),w=p(b),x=(0,m.xk)(),A=x.initLightBox,S=x.LightBoxComponent,C=(0,u.Zt)(),E=(0,c.U6)(),k=E.getVisibilityFromOrderedLayerInfo,T=E.setOrToggleLayerVisibility,_=E.getLegendCollapsedFromOrderedLayerInfo,O=E.setLegendCollapsed,P=(0,u.$T)(),I=P.setHighlightLayer,M=P.zoomToLayerExtent,L=function(){var e;return null===(e=a.children)||void 0===e?void 0:e.filter((function(e){var t;return["processed","loaded"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")}))},R=!_(a.layerPath),j=!k(a.layerPath),F=null!==(t=null===(n=a.controls)||void 0===n?void 0:n.visibility)&&void 0!==t&&t;return(0,y.jsxs)(l.Box,{sx:w.legendLayerListItem,children:[(0,y.jsxs)(l.ListItem,{divider:!0,onClick:function(){O(a.layerPath)},children:[(0,y.jsx)(f.B,{layer:a}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.Tooltip,{title:a.layerName,placement:"top",children:(0,y.jsx)(l.ListItemText,{sx:{"&:hover":{cursor:"pointer"}},primary:a.layerName,className:"layerTitle",disableTypography:!0,secondary:function(){var e;if(!["processed","loaded"].includes(null!==(e=a.layerStatus)&&void 0!==e?e:""))return(0,y.jsx)(l.Box,{});var t="";return L().length?t=d("legend.subLayersCount").replace("{count}",L().length.toString()):a.items.length>1&&(t=d("legend.itemsCount").replace("{count}",a.items.length.toString()).replace("{totalCount}",a.items.length.toString())),(0,y.jsxs)(l.Stack,{direction:"row",alignItems:"center",sx:w.layerStackIcons,children:[!!t.length&&(0,y.jsx)(l.Typography,{fontSize:14,children:t}),(0,y.jsxs)(l.Box,{children:[(0,y.jsx)(l.IconButton,{edge:"end",tooltip:"layers.toggleVisibility",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),T(a.layerPath)}(e)},disabled:!F,children:j?(0,y.jsx)(l.VisibilityOffOutlinedIcon,{}):(0,y.jsx)(l.VisibilityOutlinedIcon,{})}),(0,y.jsx)(l.IconButton,{tooltip:"legend.highlightLayer",sx:{marginTop:"-0.3125rem"},className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),I(a.layerPath)}(e)},children:C===a.layerPath?(0,y.jsx)(l.HighlightIcon,{}):(0,y.jsx)(l.HighlightOutlinedIcon,{})}),(0,y.jsx)(l.IconButton,{tooltip:"legend.zoomTo",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),M(a.layerPath).catch((function(e){h.vF.logPromiseFailed("in zoomToLayerExtent in legend-layer.handleZoomTo",e)}))}(e)},children:(0,y.jsx)(l.ZoomInSearchIcon,{})})]})]})}()})}),!!((null===(r=a.children)||void 0===r?void 0:r.length)>1||(null===(i=a.items)||void 0===i?void 0:i.length)>1)&&(0,y.jsx)(l.IconButton,{sx:{marginBottom:"20px"},className:"buttonOutline",edge:"end",size:"small",tooltip:"layers.toggleCollapse",children:R?(0,y.jsx)(l.KeyboardArrowUpIcon,{}):(0,y.jsx)(l.KeyboardArrowDownIcon,{})})]})]},a.layerName),function(){var e,t,n,r;if(a.type===g.oR.WMS&&a.icons.length&&a.icons[0].iconImage&&"no data"!==a.icons[0].iconImage){var i=a.icons[0].iconImage;return(0,y.jsx)(l.Collapse,{in:R,sx:w.collapsibleContainer,timeout:"auto",children:(0,y.jsx)(l.Box,{component:"img",src:i,sx:{maxWidth:"100%",cursor:"pointer"},onClick:function(){return A(i,"",0,2)}})})}return(null===(e=a.children)||void 0===e?void 0:e.length)>1||(null===(t=a.items)||void 0===t?void 0:t.length)>1?(0,y.jsxs)(l.Collapse,{in:R,sx:w.collapsibleContainer,timeout:"auto",children:[null!==(r=a.children)&&void 0!==r&&r.length?(0,y.jsx)(l.List,{sx:{width:"100%",padding:"20px",margin:"20px 0px"},children:a.children.filter((function(e){var t;return!["error","processing"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")})).map((function(e){return(0,y.jsx)(v,{layer:e},e.layerPath)}))}):null,null!==(n=a.items)&&void 0!==n&&n.length?(0,y.jsx)(l.List,{sx:w.subList,children:a.items.map((function(e){return(0,y.jsxs)(l.ListItem,{className:e.isVisible?"":"unchecked",children:[(0,y.jsx)(l.ListItemIcon,{children:e.icon?(0,y.jsx)(l.Box,{component:"img",alt:e.name,src:e.icon}):(0,y.jsx)(l.BrowserNotSupportedIcon,{})}),(0,y.jsx)(l.Tooltip,{title:e.name,placement:"top",enterDelay:1e3,children:(0,y.jsx)(l.ListItemText,{primary:e.name})})]},"".concat(e.icon,"/").concat(e.name,"/").concat(a.items.indexOf(e)))}))}):null]}):null}(),(0,y.jsx)(S,{})]})}var b=n(24258);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{"use strict";n.d(t,{h:()=>Kt});var r=n(55907),i=n(30538),o=n(43331);const a="carousel",s="controller",l="portal",c="toolbar",u="download",d="loading",h="error",p="complete",f="placeholder",g=e=>`active-slide-${e}`,m=(g(d),g("playing"),g(h),g(p),"flex_center"),y="no_scroll_padding",v="slide_wrapper",b="prev",w="next",x="swipe",A="close",S="onPointerDown",C="onPointerMove",E="onPointerUp",k="onPointerLeave",T="onPointerCancel",_="onKeyDown",O="onKeyUp",P="onWheel",I="Escape",M="ArrowLeft",L="ArrowRight",R="icon",j="contain",F="cover",D="Unknown action type";var N=n(95491);const B="yarl__";function z(...e){return[...e].filter(Boolean).join(" ")}function V(e){return`${B}${e}`}function $(e){return`--${B}${e}`}function G(e,t){return`${e}${t?`_${t}`:""}`}function U(e){return t=>G(e,t)}function W(...e){return()=>{e.forEach((e=>{e()}))}}function q(e,t,n){return()=>{const r=i.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function H(){return"undefined"!=typeof window}function Y(e){return void 0===e.type||"image"===e.type}function K(e){return"string"==typeof e?Number.parseInt(e,10):e}function X(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=K(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Z(e,t){const n=X(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function J(e,t){return t>0?(e%t+t)%t:0}function Q(e){return e.length>0}function ee(e,t){return e[J(t,e.length)]}function te(e,t){return Q(e)?ee(e,t):void 0}function ne(e){return Y(e)?e.src:void 0}function re(e,t,n){if(!n)return e;const{buttons:r,...o}=e,a=r.findIndex((e=>e===t)),s=i.isValidElement(n)?i.cloneElement(n,{key:t},null):n;if(a>=0){const e=[...r];return e.splice(a,1,s),{buttons:e,...o}}return{buttons:[s,...r],...o}}const ie={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[A]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:j,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function oe(e,t){return{name:e,component:t}}function ae(e,t){return{module:e,children:t}}function se(e,t,n){return e.module.name===t?n(e):e.children?[ae(e.module,e.children.flatMap((e=>{var r;return null!==(r=se(e,t,n))&&void 0!==r?r:[]})))]:[e]}function le(e,t,n){return e.flatMap((e=>{var r;return null!==(r=se(e,t,n))&&void 0!==r?r:[]}))}const ce=i.createContext(null),ue=q("useDocument","DocumentContext",ce);function de({nodeRef:e,children:t}){const n=i.useMemo((()=>{const t=t=>{var n;return(null===(n=t||e.current)||void 0===n?void 0:n.ownerDocument)||document};return{getOwnerDocument:t,getOwnerWindow:e=>{var n;return(null===(n=t(e))||void 0===n?void 0:n.defaultView)||window}}}),[e]);return i.createElement(ce.Provider,{value:n},t)}const he=i.createContext(null),pe=q("useEvents","EventsContext",he);function fe({children:e}){const[t]=i.useState({});i.useEffect((()=>()=>{Object.keys(t).forEach((e=>delete t[e]))}),[t]);const n=i.useMemo((()=>{const e=(e,n)=>{var r;null===(r=t[e])||void 0===r||r.splice(0,t[e].length,...t[e].filter((e=>e!==n)))};return{publish:(...[e,n])=>{var r;null===(r=t[e])||void 0===r||r.forEach((e=>e(n)))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}}),[t]);return i.createElement(he.Provider,{value:n},e)}const ge=i.createContext(null),me=q("useLightboxProps","LightboxPropsContext",ge);function ye({children:e,...t}){return i.createElement(ge.Provider,{value:t},e)}const ve=i.createContext(null),be=q("useLightboxState","LightboxStateContext",ve),we=i.createContext(null),xe=q("useLightboxDispatch","LightboxDispatchContext",we);function Ae(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,i=e.globalIndex+r,o=J(i,n.length);return{slides:n,currentIndex:o,globalIndex:i,currentSlide:te(n,o),animation:r||t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:te(t.slides,t.index)}:e;default:throw new Error(D)}}function Se({slides:e,index:t,children:n}){const[r,o]=i.useReducer(Ae,{slides:e,currentIndex:t,globalIndex:t,currentSlide:te(e,t)});i.useEffect((()=>{o({type:"update",slides:e,index:t})}),[e,t]);const a=i.useMemo((()=>({...r,state:r,dispatch:o})),[r,o]);return i.createElement(we.Provider,{value:o},i.createElement(ve.Provider,{value:a},n))}const Ce=i.createContext(null),Ee=q("useTimeouts","TimeoutsContext",Ce);function ke({children:e}){const[t]=i.useState([]);i.useEffect((()=>()=>{t.forEach((e=>window.clearTimeout(e))),t.splice(0,t.length)}),[t]);const n=i.useMemo((()=>{const e=e=>{t.splice(0,t.length,...t.filter((t=>t!==e)))};return{setTimeout:(n,r)=>{const i=window.setTimeout((()=>{e(i),n()}),r);return t.push(i),i},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}}),[t]);return i.createElement(Ce.Provider,{value:n},e)}const Te=i.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:a,...s},l){const{styles:c,labels:u}=me(),d=function(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}(u,e);return i.createElement("button",{ref:l,type:"button",title:d,"aria-label":d,className:z(V("button"),t),onClick:o,style:{...a,...c.button},...s},r?r():i.createElement(n,{className:V(R),style:c.icon}))}));function _e(e,t){const n=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}function Oe(e,t){return _e(e,i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Pe=Oe("Close",i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ie=Oe("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Me=Oe("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Le=Oe("Loading",i.createElement(i.Fragment,null,Array.from({length:8}).map(((e,t,n)=>i.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`}))))),Re=Oe("Error",i.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),je=H()?i.useLayoutEffect:i.useEffect;function Fe(){const[e,t]=i.useState(!1);return i.useEffect((()=>{var e,n;const r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);const i=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",i),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",i)}}),[]),e}function De(e,t){const n=i.useRef(),r=i.useRef(),o=Fe();return je((()=>{var i,a,s;if(e.current&&void 0!==n.current&&!o){const{keyframes:o,duration:l,easing:c,onfinish:u}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const e=i[1].split(",").map(K);6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(o&&l){null===(i=r.current)||void 0===i||i.cancel(),r.current=void 0;try{r.current=null===(s=(a=e.current).animate)||void 0===s?void 0:s.call(a,o,{duration:l,easing:c})}catch(e){console.error(e)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==u||u()})}}n.current=void 0})),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return"running"===(null===(e=r.current)||void 0===e?void 0:e.playState)}}}function Ne(){const e=i.useRef(null),t=i.useRef(),[n,r]=i.useState(),o=i.useCallback((n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);const i=()=>{if(n){const e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;r({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else r(void 0)};i(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(i),t.current.observe(n))}),[]);return{setContainerRef:o,containerRef:e,containerRect:n}}function Be(){const e=i.useRef(),{setTimeout:t,clearTimeout:n}=Ee();return i.useCallback(((r,i)=>{n(e.current),e.current=t(r,i>0?i:0)}),[t,n])}function ze(e){const t=i.useRef(e);return je((()=>{t.current=e})),i.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Ve(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function $e(e,t){return i.useMemo((()=>null==e&&null==t?null:n=>{Ve(e,n),Ve(t,n)}),[e,t])}function Ge(e,t=!1){const n=i.useRef();je((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]);return{onFocus:i.useCallback((()=>{n.current=!0}),[]),onBlur:i.useCallback((()=>{n.current=!1}),[])}}function Ue(){const[e,t]=i.useState(!1);return je((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function We(e,t){const n=i.useRef(0),r=Be(),o=ze(((...t)=>{n.current=Date.now(),e(t)}));return i.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const qe=U("slide"),He=U("slide_image");function Ye({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:a,onClick:s,onLoad:l,onError:c,style:u}){var m,y,v,b,w,x,A;const[S,C]=i.useState(d),{publish:E}=pe(),{setTimeout:k}=Ee(),T=i.useRef(null);i.useEffect((()=>{0===t&&E(g(S))}),[t,S,E]);const _=ze((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(C(p),k((()=>{null==l||l(e)}),0))}))})),O=i.useCallback((e=>{T.current=e,(null==e?void 0:e.complete)&&_(e)}),[_]),P=i.useCallback((e=>{_(e.currentTarget)}),[_]),I=ze((()=>{C(h),null==c||c()})),M=function(e,t){return e.imageFit===F||e.imageFit!==j&&t===F}(e,o),L=(e,t)=>Number.isFinite(e)?e:t,D=L(Math.max(...(null!==(y=null===(m=e.srcSet)||void 0===m?void 0:m.map((e=>e.width)))&&void 0!==y?y:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(v=T.current)||void 0===v?void 0:v.naturalWidth)||0),N=L(Math.max(...(null!==(w=null===(b=e.srcSet)||void 0===b?void 0:b.map((e=>e.height)))&&void 0!==w?w:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(x=T.current)||void 0===x?void 0:x.naturalHeight)||0),B=D&&N?{maxWidth:`min(${D}px, 100%)`,maxHeight:`min(${N}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},$=null===(A=e.srcSet)||void 0===A?void 0:A.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),G=$&&r&&H()?`${Math.round(Math.min(r&&!M&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:U,className:W,...q}=a||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:O,onLoad:P,onError:I,onClick:s,draggable:!1,className:z(V(He()),M&&V(He("cover")),S!==p&&V(He("loading")),W),style:{...B,...u,...U},...q,alt:e.alt,sizes:G,srcSet:$,src:e.src}),S!==p&&i.createElement("div",{className:V(qe(f))},S===d&&((null==n?void 0:n.iconLoading)?n.iconLoading():i.createElement(Le,{className:z(V(R),V(qe(d)))})),S===h&&((null==n?void 0:n.iconError)?n.iconError():i.createElement(Re,{className:z(V(R),V(qe(h)))}))))}const Ke=i.forwardRef((function({className:e,children:t,...n},r){const o=i.useRef(null);return i.createElement(de,{nodeRef:o},i.createElement("div",{ref:$e(r,o),className:z(V("root"),e),...n},t))}));var Xe,Ze;!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(Xe||(Xe={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(Ze||(Ze={}));const Je=30;function Qe(e,t,n,r,o,a,s,l,c,u,d,h,p,f){const g=i.useRef(0),m=i.useRef([]),y=i.useRef(),v=i.useRef(0),b=i.useRef(Ze.NONE),w=i.useCallback((e=>{y.current===e.pointerId&&(y.current=void 0,b.current=Ze.NONE);const t=m.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),x=i.useCallback((e=>{w(e),e.persist(),m.current.push(e)}),[w]),A=ze((e=>{x(e)})),_=(e,t)=>u&&e>t||c&&e<-t,O=ze((e=>{if(m.current.find((t=>t.pointerId===e.pointerId))&&y.current===e.pointerId){const e=Date.now()-v.current,t=g.current;b.current===Ze.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&eo?()=>{}:W(e(S,t),e(C,n),e(E,r),e(k,r),e(T,r))),[e,t,n,r,o])}(e,A,ze((e=>{const n=m.current.find((t=>t.pointerId===e.pointerId));if(n){const r=y.current===e.pointerId;if(0===e.buttons)return void(r&&0!==g.current?O(e):w(n));const i=e.clientX-n.clientX,s=e.clientY-n.clientY;if(void 0===y.current){const n=t=>{x(e),y.current=e.pointerId,v.current=Date.now(),b.current=t};Math.abs(i)>Math.abs(s)&&Math.abs(i)>Je&&t(i)?(n(Ze.SWIPE),o()):Math.abs(s)>Math.abs(i)&&_(s,Je)&&(n(Ze.PULL),d())}else r&&(b.current===Ze.SWIPE?(g.current=i,a(i)):b.current===Ze.PULL&&(g.current=s,h(s)))}})),O)}const et=U("container"),tt=i.createContext(null),nt=q("useController","ControllerContext",tt);const rt=oe(s,(function({children:e,...t}){var n;const{carousel:r,animation:o,controller:a,on:s,styles:c,render:u}=t,{closeOnPullUp:d,closeOnPullDown:h,preventDefaultWheelX:p,preventDefaultWheelY:f}=a,[g,y]=i.useState(),v=be(),I=xe(),[M,L]=i.useState(Xe.NONE),R=i.useRef(0),j=i.useRef(0),F=i.useRef(1),{registerSensors:D,subscribeSensors:N}=function(){const[e]=i.useState({}),t=i.useCallback(((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach((e=>{n.isPropagationStopped()||e(n)}))}),[e]);return{registerSensors:i.useMemo((()=>({onPointerDown:e=>t(S,e),onPointerMove:e=>t(C,e),onPointerUp:e=>t(E,e),onPointerLeave:e=>t(k,e),onPointerCancel:e=>t(T,e),onKeyDown:e=>t(_,e),onKeyUp:e=>t(O,e),onWheel:e=>t(P,e)})),[t]),subscribeSensors:i.useCallback(((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{const r=e[t];r&&r.splice(0,r.length,...r.filter((e=>e!==n)))})),[e])}}(),{subscribe:B,publish:G}=pe(),U=Be(),q=Be(),H=Be(),{containerRef:Y,setContainerRef:K,containerRect:J}=Ne(),Q=$e(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=i.useRef(null),r=ze((n=>{const r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()}));return i.useCallback((e=>{var t;e?e.addEventListener("wheel",r,{passive:!1}):null===(t=n.current)||void 0===t||t.removeEventListener("wheel",r),n.current=e}),[r])}({preventDefaultWheelX:p,preventDefaultWheelY:f}),K),ee=i.useRef(null),te=$e(ee,void 0),{getOwnerDocument:ne}=ue(),re=Ue(),ie=e=>(re?-1:1)*("number"==typeof e?e:1),oe=ze((()=>{var e;return null===(e=Y.current)||void 0===e?void 0:e.focus()})),ae=ze((()=>t)),se=ze((()=>v)),le=i.useCallback((e=>G(b,e)),[G]),ce=i.useCallback((e=>G(w,e)),[G]),de=i.useCallback((()=>G(A)),[G]),he=e=>!(r.finite&&(ie(e)>0&&0===v.currentIndex||ie(e)<0&&v.currentIndex===v.slides.length-1)),fe=e=>{var t;R.current=e,null===(t=Y.current)||void 0===t||t.style.setProperty($("swipe_offset"),`${Math.round(e)}px`)},ge=e=>{var t,n;j.current=e,F.current=(()=>{const t=h&&e>0?e:d&&e<0?-e:0;return Math.min(Math.max(function(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}(1-t/60*.5,2),.5),1)})(),null===(t=Y.current)||void 0===t||t.style.setProperty($("pull_offset"),`${Math.round(e)}px`),null===(n=Y.current)||void 0===n||n.style.setProperty($("pull_opacity"),`${F.current}`)},{prepareAnimation:me}=De(ee,((e,t,n)=>{if(ee.current&&J)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:o.easing.fade}})),ye=(e,t)=>{if(d||h){ge(e);let n=0;ee.current&&(n=o.fade*(t?2:1),me({rect:ee.current.getBoundingClientRect(),opacity:F.current,duration:n})),H((()=>{ge(0),L(Xe.NONE)}),n),L(Xe.ANIMATION),t||de()}},{prepareAnimation:ve,isAnimationPlaying:we}=De(ee,((e,t,n)=>{var i;if(ee.current&&J&&(null===(i=v.animation)||void 0===i?void 0:i.duration)){const i=X(r.spacing),o=(i.percent?i.percent*J.width/100:i.pixel)||0;return{keyframes:[{transform:`translate(${ie(v.globalIndex-e.index)*(J.width+o)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:v.animation.duration,easing:v.animation.easing}}})),Ae=ze((e=>{var t,n;const r=e.offset||0,i=r?o.swipe:null!==(t=o.navigation)&&void 0!==t?t:o.swipe,a=r||we()?o.easing.swipe:o.easing.navigation;let{direction:s}=e;const l=null!==(n=e.count)&&void 0!==n?n:1;let c=Xe.ANIMATION,u=i*l;if(!s){const t=null==J?void 0:J.width,n=e.duration||0,o=t?i/t*Math.abs(r):i;0!==l?(n0?b:w):u=i/2}let d=0;s===b?he(ie(1))?d=-l:(c=Xe.NONE,u=i):s===w&&(he(ie(-1))?d=l:(c=Xe.NONE,u=i)),u=Math.round(u),q((()=>{fe(0),L(Xe.NONE)}),u),ee.current&&ve({rect:ee.current.getBoundingClientRect(),index:v.globalIndex}),L(c),G(x,{type:"swipe",increment:d,duration:u,easing:a})}));i.useEffect((()=>{var e,t;(null===(e=v.animation)||void 0===e?void 0:e.increment)&&(null===(t=v.animation)||void 0===t?void 0:t.duration)&&U((()=>I({type:"swipe",increment:0})),v.animation.duration)}),[v.animation,I,U]);const Se=[N,he,(null==J?void 0:J.width)||0,o.swipe,()=>L(Xe.SWIPE),e=>fe(e),(e,t)=>Ae({offset:e,duration:t,count:1}),e=>Ae({offset:e,count:0})],Ce=[()=>{h&&L(Xe.PULL)},e=>ge(e),e=>ye(e),e=>ye(e,!0)];Qe(...Se,d,h,...Ce),function(e,t,n,r,o,a,s,l,c){const u=i.useRef(0),d=i.useRef(0),h=i.useRef(),p=i.useRef(),f=i.useRef(0),g=i.useRef(0),{setTimeout:m,clearTimeout:y}=Ee(),v=i.useCallback((()=>{h.current&&(y(h.current),h.current=void 0)}),[y]),b=i.useCallback((()=>{p.current&&(y(p.current),p.current=void 0)}),[y]),w=ze((()=>{e!==Xe.SWIPE&&(u.current=0,g.current=0,v(),b())}));i.useEffect(w,[e,w]);const x=ze((e=>{p.current=void 0,u.current===e&&c(u.current)})),A=ze((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===Xe.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(f.current))return void(f.current=t.deltaX);if(!n(-t.deltaX))return;if(d.current+=t.deltaX,v(),Math.abs(d.current)>30)d.current=0,f.current=0,g.current=Date.now(),a();else{const e=d.current;h.current=m((()=>{h.current=void 0,e===d.current&&(d.current=0)}),o)}}else if(e===Xe.SWIPE){let e=u.current-t.deltaX;if(e=Math.min(Math.abs(e),r)*Math.sign(e),u.current=e,s(e),b(),Math.abs(e)>.2*r)return f.current=t.deltaX,void l(e,Date.now()-g.current);p.current=m((()=>x(e)),2*o)}else f.current=t.deltaX}));i.useEffect((()=>t(P,A)),[t,A])}(M,...Se);const ke=ze((()=>{a.focus&&ne().querySelector(`.${V(l)} .${V(et())}`)&&oe()}));i.useEffect(ke,[ke]);const Te=ze((()=>{var e;null===(e=s.view)||void 0===e||e.call(s,{index:v.currentIndex})}));i.useEffect(Te,[v.globalIndex,Te]),i.useEffect((()=>W(B(b,(e=>Ae({direction:b,...e}))),B(w,(e=>Ae({direction:w,...e}))),B(x,(e=>I(e))))),[B,Ae,I]);const _e=i.useMemo((()=>({prev:le,next:ce,close:de,focus:oe,slideRect:J?Z(J,r.padding):{width:0,height:0},containerRect:J||{width:0,height:0},subscribeSensors:N,containerRef:Y,setCarouselRef:te,toolbarWidth:g,setToolbarWidth:y})),[le,ce,de,oe,N,J,Y,te,g,y,r.padding]);return i.useImperativeHandle(a.ref,(()=>({prev:le,next:ce,close:de,focus:oe,getLightboxProps:ae,getLightboxState:se})),[le,ce,de,oe,ae,se]),i.createElement("div",{ref:Q,className:z(V(et()),V(m)),style:{...M===Xe.SWIPE?{[$("swipe_offset")]:`${Math.round(R.current)}px`}:null,...M===Xe.PULL?{[$("pull_offset")]:`${Math.round(j.current)}px`,[$("pull_opacity")]:`${F.current}`}:null,..."none"!==a.touchAction?{[$("controller_touch_action")]:a.touchAction}:null,...c.container},...a.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...D},J&&i.createElement(tt.Provider,{value:_e},e,null===(n=u.controls)||void 0===n?void 0:n.call(u)))}));function it(e){return G(a,e)}function ot(e){return G("slide",e)}function at({slide:e,offset:t}){const n=i.useRef(null),{currentIndex:r}=be(),{slideRect:o,close:a}=nt(),{render:s,carousel:{imageFit:l,imageProps:c},on:{click:u},controller:{closeOnBackdropClick:d},styles:{slide:h}}=me();return i.createElement("div",{ref:n,className:z(V(ot()),0===t&&V(ot("current")),V(m)),"aria-hidden":0!==t,onClick:e=>{const t=n.current,r=e.target instanceof HTMLElement?e.target:void 0;d&&r&&t&&(r===t||Array.from(t.children).find((e=>e===r))&&r.classList.contains(V(v)))&&a()},style:h},(()=>{var n,a,d,h;let p=null===(n=s.slide)||void 0===n?void 0:n.call(s,{slide:e,offset:t,rect:o});return!p&&Y(e)&&(p=i.createElement(Ye,{slide:e,offset:t,render:s,rect:o,imageFit:l,imageProps:c,onClick:0===t?()=>null==u?void 0:u({index:r}):void 0})),p?i.createElement(i.Fragment,null,null===(a=s.slideHeader)||void 0===a?void 0:a.call(s,{slide:e}),(null!==(d=s.slideContainer)&&void 0!==d?d:({children:e})=>e)({slide:e,children:p}),null===(h=s.slideFooter)||void 0===h?void 0:h.call(s,{slide:e})):null})())}function st(){const e=me().styles.slide;return i.createElement("div",{className:V("slide"),style:e})}const lt=oe(a,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=be(),{setCarouselRef:o}=nt(),a=X(e.spacing),s=X(e.padding),l=function(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(e,t,1),c=[];if(Q(t))for(let i=n-l;i<=n+l;i+=1){const o=ee(t,i),a=r-n+i,s=e.finite&&(i<0||i>t.length-1);c.push(s?{key:a}:{key:[`${a}`,ne(o)].filter(Boolean).join("|"),offset:i-n,slide:o})}return i.createElement("div",{ref:o,className:z(V(it()),c.length>0&&V(it("with_slides"))),style:{[`${$(it("slides_count"))}`]:c.length,[`${$(it("spacing_px"))}`]:a.pixel||0,[`${$(it("spacing_percent"))}`]:a.percent||0,[`${$(it("padding_px"))}`]:s.pixel||0,[`${$(it("padding_percent"))}`]:s.percent||0}},c.map((({key:e,slide:t,offset:n})=>t?i.createElement(at,{key:e,slide:t,offset:n}):i.createElement(st,{key:e}))))}));function ct(){const{carousel:e}=me(),{slides:t,currentIndex:n}=be();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function ut({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:a,style:s}){return i.createElement(Te,{label:e,icon:t,renderIcon:n,className:V(`navigation_${r}`),disabled:a,onClick:o,style:s,...Ge(nt().focus,a)})}const dt=oe("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:a,next:s,subscribeSensors:l}=nt(),{prevDisabled:c,nextDisabled:u}=ct();return function(e){var t;const n=Ue(),{publish:r}=pe(),{animation:o}=me(),{prevDisabled:a,nextDisabled:s}=ct(),l=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,c=We((()=>r(b)),l),u=We((()=>r(w)),l),d=ze((e=>{switch(e.key){case I:r(A);break;case M:(n?s:a)||(n?u:c)();break;case L:(n?a:s)||(n?c:u)()}}));i.useEffect((()=>e(_,d)),[e,d])}(l),i.createElement(i.Fragment,null,e?e():i.createElement(ut,{label:"Previous",action:b,icon:Ie,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:a}),t?t():i.createElement(ut,{label:"Next",action:w,icon:Me,renderIcon:r,style:o.navigationNext,disabled:u,onClick:s}))})),ht=V("no_scroll"),pt=V(y);function ft(e){return"style"in e}function gt(e,t,n){const r=window.getComputedStyle(e),i=n?"padding-left":"padding-right",o=n?r.paddingLeft:r.paddingRight,a=e.style.getPropertyValue(i);return e.style.setProperty(i,`${(K(o)||0)+t}px`),()=>{a?e.style.setProperty(i,a):e.style.removeProperty(i)}}const mt=oe("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=Ue(),{getOwnerDocument:r,getOwnerWindow:o}=ue();return i.useEffect((()=>{if(e)return()=>{};const t=[],i=o(),{body:a,documentElement:s}=r(),l=Math.round(i.innerWidth-s.clientWidth);if(l>0){t.push(gt(a,l,n));const e=a.getElementsByTagName("*");for(let r=0;r{a.classList.remove(ht),t.forEach((e=>e()))}}),[n,e,r,o]),i.createElement(i.Fragment,null,t)}));function yt(e){return G(l,e)}function vt(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const bt=oe(l,(function({children:e,animation:t,styles:n,className:r,on:o,portal:a,close:s}){const[l,c]=i.useState(!1),[u,d]=i.useState(!1),h=i.useRef([]),p=i.useRef(null),{setTimeout:f}=Ee(),{subscribe:g}=pe(),m=Fe()?0:t.fade;i.useEffect((()=>(c(!0),()=>{c(!1),d(!1)})),[]);const v=ze((()=>{h.current.forEach((e=>e())),h.current=[]})),b=ze((()=>{var e;d(!1),v(),null===(e=o.exiting)||void 0===e||e.call(o),f((()=>{var e;null===(e=o.exited)||void 0===e||e.call(o),s()}),m)}));i.useEffect((()=>g(A,b)),[g,b]);const w=ze((e=>{var t,n,r;e.scrollTop,d(!0),null===(t=o.entering)||void 0===t||t.call(o);const i=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let t=0;t{var e,t;null===(t=null===(e=p.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)})),f((()=>{var e;null===(e=o.entered)||void 0===e||e.call(o)}),m)})),x=i.useCallback((e=>{e?w(e):v()}),[w,v]);return l?(0,N.createPortal)(i.createElement(Ke,{ref:x,className:z(r,V(yt()),V(y),u&&V(yt("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==ie.animation.fade?{[$("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==ie.animation.easing.fade?{[$("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{p.current||(p.current=e.relatedTarget)}},e),a.root||document.body):null}));const wt=oe("root",(function({children:e}){return i.createElement(i.Fragment,null,e)}));const xt=oe(c,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:a}=nt(),{setContainerRef:s,containerRect:l}=Ne();return je((()=>{a(null==l?void 0:l.width)}),[a,null==l?void 0:l.width]),i.createElement("div",{ref:s,style:r.toolbar,className:V(G(c,u))},null==e?void 0:e.map((e=>e===A?t?t():i.createElement(Te,{key:A,label:"Close",icon:Pe,renderIcon:n,onClick:o}):e)));var u}));function At(e,t){var n;return i.createElement(e.module.component,{key:e.module.name,...t},null===(n=e.children)||void 0===n?void 0:n.map((e=>At(e,t))))}function St(e,t={}){const{easing:n,...r}=e,{easing:i,...o}=t;return{easing:{...n,...i},...r,...o}}function Ct({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:a,on:l,plugins:c,slides:u,index:d,...h}){const{animation:p,carousel:f,render:g,toolbar:m,controller:y,noScroll:v,on:b,slides:w,index:x,plugins:A,...S}=ie,{config:C,augmentation:E}=function(e,t=[],n=[]){let r=e;const i=e=>{const t=[...r];for(;t.length>0;){const n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},o=(e,t)=>{r=""!==e?le(r,e,(e=>[ae(t,[e])])):[ae(t,r)]},a=(e,t)=>{r=le(r,e,(e=>[ae(e.module,[ae(t,e.children)])]))},l=(e,t,n)=>{r=le(r,e,(e=>{var r;return[ae(e.module,[...n?[ae(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[ae(t)]])]}))},c=(e,t,n)=>{r=le(r,e,(e=>[...n?[ae(t)]:[],e,...n?[]:[ae(t)]]))},u=e=>{a(s,e)},d=(e,t)=>{r=le(r,e,(e=>[ae(t,e.children)]))},h=e=>{r=le(r,e,(e=>e.children))},p=e=>{n.push(e)};return t.forEach((e=>{e({contains:i,addParent:o,append:a,addChild:l,addSibling:c,addModule:u,replace:d,remove:h,augment:p})})),{config:r,augmentation:e=>n.reduce(((e,t)=>t(e)),e)}}([ae(bt,[ae(mt,[ae(rt,[ae(lt),ae(xt),ae(dt)])])])],c||A),k=E({animation:St(p,t),carousel:{...f,...e},render:{...g,...n},toolbar:{...m,...r},controller:{...y,...o},noScroll:{...v,...a},on:{...b,...l},...S,...h});return k.open?i.createElement(ye,{...k},i.createElement(Se,{slides:u||w,index:K(d||x)},i.createElement(ke,null,i.createElement(fe,null,At(ae(wt,C),k))))):null}const Et={download:void 0},kt=e=>({...Et,...e});function Tt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}function _t(e,t){const n=document.createElement("a");n.rel="noopener",n.download=t||"",n.download||(n.target="_blank"),"string"==typeof e?(n.href=e,n.origin!==window.location.origin?function(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}(n.href)?function(e,t){const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=()=>{_t(n.response,t)},n.onerror=()=>{console.error("Failed to download file")},n.send()}(e,t):(n.target="_blank",Tt(n)):Tt(n)):(n.href=URL.createObjectURL(e),setTimeout((()=>URL.revokeObjectURL(n.href)),3e4),setTimeout((()=>Tt(n)),0))}const Ot=Oe("DownloadIcon",i.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}));function Pt(){const{render:e,on:t,download:n}=me(),{download:r}=kt(n),{currentSlide:o,currentIndex:a}=be();if(e.buttonDownload)return i.createElement(i.Fragment,null,e.buttonDownload());const s=o&&(o.downloadUrl||"string"==typeof o.download&&o.download||"object"==typeof o.download&&o.download.url||Y(o)&&o.src)||void 0,l=r?!1!==(null==o?void 0:o.download):Boolean(s),c=()=>{if(o&&s){const e=o.downloadFilename||"object"==typeof o.download&&o.download.filename||void 0;_t(s,e)}};return i.createElement(Te,{label:"Download",icon:Ot,renderIcon:e.iconDownload,disabled:!l,onClick:()=>{var e;o&&((r||c)({slide:o,saveAs:_t}),null===(e=t.download)||void 0===e||e.call(t,{index:a}))}})}function It({augment:e}){e((({toolbar:e,download:t,...n})=>({toolbar:re(e,u,i.createElement(Pt,null)),download:kt(t),...n})))}var Mt=n(15559),Lt=n.n(Mt),Rt=n(37892),jt=n.n(Rt),Ft=n(60520),Dt=n.n(Ft),Nt=n(29423),Bt=n.n(Nt),zt=n(62339),Vt=n.n(zt),$t=n(92944),Gt=n.n($t),Ut=n(26855),Wt={};Wt.styleTagTransform=Gt(),Wt.setAttributes=Bt(),Wt.insert=Dt().bind(null,"head"),Wt.domAPI=jt(),Wt.insertStyleElement=Vt();Lt()(Ut.A,Wt);Ut.A&&Ut.A.locals&&Ut.A.locals;var qt=n(33828),Ht=n(6883),Yt=n(97282);function Kt(e){Ht.vF.logTraceRender("components/lightbox/lightbox");var t=e.open,n=e.slides,a=e.index,s=e.exited,l=e.scale,c=void 0===l?1:l,u=(0,o.useTranslation)().t,d=(0,i.useState)(t),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useState)(!0),m=(0,r.A)(g,1)[0],y=(0,i.useState)(!0),v=(0,r.A)(y,1)[0],b=(0,i.useState)(250),w=(0,r.A)(b,1)[0],x=(0,i.useState)(500),A=(0,r.A)(x,1)[0];return(0,i.useEffect)((function(){Ht.vF.logTraceUseEffect("LIGHTBOX - open",t),f(t)}),[t]),(0,Yt.jsx)(Ct,{styles:{root:{width:"90%",height:"90%",margin:"auto"},container:{backgroundColor:"rgba(0, 0, 0, .9)"},slide:{transform:"scale(".concat(c,")")}},open:p,close:function(){return f(!1)},slides:n,index:a,carousel:{finite:!0},controller:{closeOnPullDown:m,closeOnBackdropClick:v},animation:{fade:w,swipe:A},labels:{Next:u("lightbox.next")||void 0,Previous:u("lightbox.previous")||void 0,Close:u("lightbox.close")||void 0,Download:u("lightbox.download")||void 0},on:{entered:function(){},exited:s},render:{iconClose:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.close"),placement:"top",children:(0,Yt.jsx)(qt.CloseIcon,{})})},iconNext:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.next"),placement:"top",children:(0,Yt.jsx)(qt.ArrowRightIcon,{})})},iconPrev:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.previous"),placement:"top",children:(0,Yt.jsx)(qt.ArrowLeftIcon,{})})},iconDownload:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.download"),placement:"top",children:(0,Yt.jsx)(qt.DownloadIcon,{})})}},plugins:[It]})}},26034:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(30538),i=n(47001),o=n(33828),a=n(1268),s=n(73854),l=n(6883),c=n(17755),u=n(97282);function d(){var e=(0,i.A)(),t=(0,a.S)(e),n=(0,c.Jh)(),d=(0,s.dY)(),h=(0,s.A6)().setMapInfoExpanded,p="layers.toggleCollapse",f=function(){h(!0)};return(0,r.useEffect)((function(){return l.vF.logTraceUseEffect("MAP-INFO-EXPAND-BUTTON - mount"),function(){var e=document.getElementById("".concat(n,"-mapInfo"));e&&e.removeEventListener("transitionend",f)}}),[]),(0,u.jsx)(o.Box,{children:(0,u.jsx)(o.IconButton,{"aria-label":p,tooltip:p,sx:t.expandButton,onClick:function(){return d?function(){var e=document.getElementById("".concat(n,"-mapInfo"));if(e){var t=e.querySelector(".ol-attribution ul");t&&(t.style.width="0px"),e.style.transition="max-height 300ms ease-out",e.style.maxHeight="25px",e.style.height="25px"}h(!1)}():function(){var e=document.getElementById("".concat(n,"-mapInfo"));if(e){e.style.transition="max-height 300ms ease-in 0s",e.style.maxHeight="80px",e.style.height="80px";var t=e.querySelector(".ol-attribution ul");t&&(t.style.width="100%"),e.addEventListener("transitionend",f,{once:!0})}}()},children:d?(0,u.jsx)(o.ExpandMoreIcon,{}):(0,u.jsx)(o.ExpandLessIcon,{})})})}},35944:(e,t,n)=>{"use strict";n.d(t,{F:()=>f});var r=n(42432),i=n(30538),o=n(43331),a=n(47001),s=n(86853),l=n(33828),c=n(8058),u=n(73854),d=n(74816),h=n(6883),p=n(97282);function f(){var e=(0,o.useTranslation)().t,t=(0,a.A)(),n=(0,s.A)(t.breakpoints.down("md")),f=(0,u.dY)(),g=(0,d.Mk)(),m=(0,d.C0)(),y=(0,d.HA)(),v=(0,d.U6)(),b=v.setFixNorth,w=v.setRotation;return(0,i.useEffect)((function(){h.vF.logTraceUseEffect("MAP-INFO-FIXNORTH-SWITCH - deviceSizeMedUp",n),n&&b(!1)}),[n,b]),(0,p.jsx)(l.Box,{sx:(0,r.A)({},t.breakpoints.down("md"),{display:"none"}),children:f&&"EPSG:".concat(y)===c.M.PROJECTION_NAMES.LCC&&g?(0,p.jsx)(l.Switch,{size:"small",onChange:function(e){b(e.target.checked),e.target.checked||w(0)},title:e("mapctrl.rotation.fixedNorth"),checked:m}):null})}},47764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(30538),i=n(47001),o=n(33828),a=n(1268),s=n(74816),l=n(97282);function c(){var e=(0,i.A)(),t=(0,a.S)(e),n=(0,r.useRef)(null),c=(0,s.uE)(),u=(0,s.U6)().setRotation;return(0,l.jsx)(o.IconButton,{sx:t.rotationButton.rotationButton,tooltipPlacement:"top",tooltip:"mapctrl.rotation.resetRotation","aria-label":"mapctrl.rotation.resetRotation",onClick:function(){return u(0)},children:(0,l.jsx)(o.ArrowUpIcon,{ref:n,sx:t.rotationButton.rotationIcon,style:{transform:"rotate(".concat(c,"rad)")}})})}},1268:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{mapInfoContainer:{flexGrow:1,zIndex:200,display:"flex",flexDirection:"row",alignItems:"center",width:"calc(100%)",minHeight:"35px",maxHeight:"35px",backdropFilter:"blur(5px)",backgroundColor:e.palette.geoViewColor.bgColor.dark[800],color:"".concat(e.palette.geoViewColor.bgColor.light[800]," !important"),pointerEvents:"all",gap:.5,order:3,fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),position:"absolute",bottom:0,left:"0px","&.interaction-static":{backdropFilter:"unset",backgroundColor:"unset",color:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),position:"absolute",width:"calc(100% - 60px)",bottom:0,left:"60px","& button svg":{fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important")},"& button span":{color:"".concat(e.palette.geoViewColor.grey.dark[900]," !important")}}},mouseScaleControlsContainer:{display:"flex",flexDirection:"row",flexWrap:"noWrap","& button":{cursor:"pointer",margin:"auto 0 auto auto"},justifyContent:"end"},rotationControlsContainer:{display:"flex",flexDirection:"column",marginLeft:"20px",alignItems:"flex-end"},expandButton:{display:{xs:"none",sm:"none",md:"flex",lg:"flex",xl:"flex"},alignItems:"center",justifyContent:"center",color:e.palette.geoViewColor.bgColor.light[800],height:"30px",width:"30px",marginLeft:"5px"},rotationButton:{rotationButton:{height:25,width:25,marginRight:5},rotationIcon:{width:"1.5em",height:"1.5em",fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[800]}}}}},9036:(e,t,n)=>{"use strict";n.d(t,{p:()=>x});var r=n(42432),i=n(30538),o=n(47001),a=n(33828),s=n(57692),l=n(74890),c=n(91564),u=n(26034),d=n(47764),h=n(35944),p=n(1268),f=n(74816),g=n(73854),m=n(6883),y=n(17755),v=n(97282);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t{"use strict";n.d(t,{T:()=>b});var r=n(30538),i=n(86853),o=n(44912),a=n(47001),s=n(20354),l=n(86430),c=n(42984),u=n(21712),d=n(2682),h={mapContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative","& .ol-overviewmap.ol-custom-overviewmap":{bottom:"auto",left:"auto",right:"5px",top:"5px",margin:5,order:1,padding:0,position:"absolute",borderRadius:4,"& .ol-overviewmap-map":{border:"none",display:"block !important",WebkitTransition:"300ms linear",MozTransition:"300ms linear",OTransition:"300ms linear",msTransition:"300ms linear",transition:"300ms linear"},"&.ol-uncollapsible":{bottom:"auto",left:"auto",right:100,top:100,margin:5},"&:not(.ol-collapsed)":{boxShadow:"0 1px 5px rgb(0 0 0 / 65%)",borderRadius:"4px",border:"none"},"&:is(.ol-collapsed)":{boxShadow:"0 1px 5px rgb(0 0 0 / 65%)",borderRadius:4,border:"none"},"& button":{zIndex:100,position:"absolute",top:0,right:0,left:"auto !important",bottom:"auto !important",backgroundColor:"#cccccc"},"&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,borderRadius:2,zIndex:100,right:0,top:0},"& .ol-overviewmap-box":{backgroundColor:"rgba(0, 0, 0, 0.2)"},"& .ol-viewport":{borderRadius:"4px","& .ol-layer":{backgroundColor:"#FFF"}}}}},p=n(74816),f=n(17755),g=n(23220),m=n(6883),y=n(23853),v=n(97282);function b(e){m.vF.logTraceRender("components/map/map");var t=e.viewer,n=(0,a.A)(),b=(0,r.useRef)(),w=(0,i.A)(n.breakpoints.up("md")),x=(0,f.Jh)(),A=(0,p.JQ)(),S=(0,p.Mk)(),C=(0,p.Nt)(),E=(0,f.oy)(),k=(0,r.useRef)(!1),T=(0,r.useCallback)((function(){var e;m.vF.logTraceUseCallback("map.initCGPVMap"),null==E||null===(e=E.corePackages)||void 0===e||e.forEach((function(e){g.k.loadScript(e).then((function(n){g.k.addPlugin(e,x,n,(0,y.NK)({mapId:x,viewer:t})).catch((function(e){m.vF.logPromiseFailed("api.plugin.addPlugin in useCallback in map",e)}))})).catch((function(e){m.vF.logPromiseFailed("api.plugin.addPlugin in useCallback in map",e)}))}))}),[x,null==E?void 0:E.corePackages,t]);return(0,r.useEffect)((function(){m.vF.logTraceUseEffect("map.initMap"),k.current||(t.createMap(b.current),T(),k.current=!0)}),[T,t]),(0,v.jsx)(o.A,{id:"mapTargetElement-".concat(x),ref:b,sx:h.mapContainer,tabIndex:0,children:C&&(0,v.jsxs)(v.Fragment,{children:[S&&(0,v.jsx)(s.l,{}),(0,v.jsx)(s.g,{}),(0,v.jsx)(l.B,{mapTargetElement:b.current}),(0,v.jsx)(u.n,{}),(0,v.jsx)(d.s,{}),w&&A&&t.map&&(0,v.jsx)(c.G,{olMap:t.map})]})})}},74890:(e,t,n)=>{"use strict";n.d(t,{d:()=>m});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(33828),c=n(73854),u=n(74816),d=n(35415),h=function(e){return{mousePosition:{display:"flex",minWidth:"fit-content",padding:e.spacing(0,4),textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",alignItems:"center",width:"auto",backgroundColor:"transparent !important",height:"inherit !important",color:e.palette.geoViewColor.bgColor.light[800],lineHeight:1.5,":hover":{backgroundColor:"transparent !important",color:e.palette.geoViewColor.bgColor.light[600]}},mousePositionTextContainer:(0,r.A)({display:"flex",flexDirection:"column"},e.breakpoints.down("md"),{display:"none"}),mousePositionTextCheckmarkContainer:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center","& span":{fontSize:e.palette.geoViewFontSize.default,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},mousePositionCheckmark:{paddingRight:5},mousePositionText:{fontSize:e.palette.geoViewFontSize.default,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}},p=n(97282);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var r=n(55907),i=n(30538),o=n(43331),a=n(74816),s=n(33828),l=n(6883),c=n(99868),u=n(88927),d=n(33796),h=n(13162),p=n(11896),f=n(50800),g=n(70524),m=n(97282),y={transport:{basemapId:"transport",shaded:!0,labeled:!0},imagery:{basemapId:"imagery",shaded:!1,labeled:!1},simple:{basemapId:"simple",shaded:!1,labeled:!1},nogeom:{basemapId:"nogeom",shaded:!1,labeled:!1}};function v(){l.vF.logTraceRender("components/nav-bar/buttons/basemap");var e=(0,o.useTranslation)().t,t=(0,a.U6)().createBasemapFromOptions,n=(0,a.NZ)(),v=Object.keys(y).includes(n.basemapId)&&JSON.stringify(n)===JSON.stringify(y[n.basemapId]),b=(0,i.useState)(v?n.basemapId:"default"),w=(0,r.A)(b,2),x=w[0],A=w[1],S=function(e){A(e),t("default"===e?n:y[e]).catch((function(e){l.vF.logPromiseFailed("setBaseMap in basemaps.ts",e)}))},C={tooltip:"mapnav.basemap",children:(0,i.createElement)(s.MapIcon),tooltipPlacement:"left"},E={title:"Select a basemap",icon:(0,i.createElement)(s.MapIcon),content:(0,m.jsxs)(u.B8,{children:[!v&&(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-default","aria-label":"basemaps.default",tooltip:"basemaps.default",tooltipPlacement:"left",size:"small",onClick:function(){return S("default")},disabled:"default"===x,children:[(0,m.jsx)(s.MapIcon,{}),e("basemaps.default")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-transport","aria-label":"basemaps.transport",tooltip:"basemaps.transport",tooltipPlacement:"left",size:"small",onClick:function(){return S("transport")},disabled:"transport"===x,children:[(0,m.jsx)(h.A,{}),e("basemaps.transport")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-imagery","aria-label":"basemaps.imagery",tooltip:"basemaps.imagery",tooltipPlacement:"left",size:"small",onClick:function(){return S("imagery")},disabled:"imagery"===x,children:[(0,m.jsx)(p.A,{}),e("basemaps.imagery")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-simple","aria-label":"basemaps.simple",tooltip:"basemaps.simple",tooltipPlacement:"left",size:"small",onClick:function(){return S("simple")},disabled:"simple"===x,children:[(0,m.jsx)(f.A,{}),e("basemaps.simple")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-nogeom","aria-label":"basemaps.nogeom",tooltip:"basemaps.nogeom",tooltipPlacement:"left",size:"small",onClick:function(){return S("nogeom")},disabled:"nogeom"===x,children:[(0,m.jsx)(g.A,{}),e("basemaps.nogeom")]})})]},"basemapButtons"),width:"flex"};return(0,m.jsx)(c.A,{buttonPanel:{buttonPanelId:"basemapSelect",button:C,panel:E}})}},58150:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(30538),i=n(47001),o=n(33828),a=n(27604),s=n(15205),l=n(73854),c=n(17755),u=n(6883),d=n(97282);function h(){u.vF.logTraceRender("components/nav-bar/buttons/fullscreen");var e=(0,c.Jh)(),t=(0,i.A)(),n=(0,a.S)(t),h=(0,s.kv)(),p=(0,s.dD)().setFullScreenActive,f=(0,l.A6)().setFooterBarIsCollapsed;return(0,r.useEffect)((function(){function e(){document.fullscreenElement||p(!1)}return u.vF.logTraceUseEffect("FULLSCREEN - mount"),document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),function(){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}),[]),(0,d.jsx)(o.IconButton,{id:"fullscreen",tooltip:"mapnav.fullscreen",tooltipPlacement:"left",onClick:function(){var t;(t=document.getElementById("shell-".concat(e)))&&(p(!h,t),f(!0))},sx:n.navButton,children:h?(0,d.jsx)(o.FullscreenExitIcon,{}):(0,d.jsx)(o.FullscreenIcon,{})})}},95864:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(6883),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/home");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.U6)().zoomToInitialExtent;return(0,l.jsx)(i.IconButton,{id:"home",tooltip:"mapnav.home",tooltipPlacement:"left",onClick:function(){n().catch((function(e){s.vF.logPromiseFailed("Failed to zoomToInitialExtent in home.handleZoom",e)}))},sx:t.navButton,children:(0,l.jsx)(i.HomeIcon,{})})}},13604:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(15205),l=n(6883),c=n(97282);function u(){l.vF.logTraceRender("components/nav-bar/buttons/location");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.U6)().zoomToMyLocation,u=(0,s.dD)().addNotification,d=function(e){n(e).catch((function(e){l.vF.logPromiseFailed("Failed to zoomToMyLocation in location.successCallback",e)}))},h=function(e){u({key:"location",message:"ERROR(".concat(e.code,"): ").concat(e.message),notificationType:"warning",count:0})};return(0,c.jsx)(i.IconButton,{id:"location",tooltip:"mapnav.location",tooltipPlacement:"left",onClick:function(){navigator.geolocation.getCurrentPosition(d,h)},sx:t.navButton,children:(0,c.jsx)(i.EmojiPeopleIcon,{})})}},11282:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(6883),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/zoom-in");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.Bm)(),c=(0,a.U6)().setZoom;return(0,l.jsx)(i.IconButton,{id:"zoomIn",tooltip:"mapnav.zoomIn",tooltipPlacement:"left",onClick:function(){return c(n+.5)},sx:t.navButton,children:(0,l.jsx)(i.ZoomInIcon,{})})}},9951:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(6883),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/zoom-out");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.Bm)(),c=(0,a.U6)().setZoom;return(0,l.jsx)(i.IconButton,{id:"zoomOut",tooltip:"mapnav.zoomOut",tooltipPlacement:"left",onClick:function(){return c(n-.5)},sx:t.navButton,children:(0,l.jsx)(i.ZoomOutIcon,{})})}},83609:(e,t,n)=>{"use strict";n.d(t,{v:()=>y});var r=n(13718),i=n(47280),o=n(42432),a=n(2358),s=n(76200);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";n.d(t,{A:()=>f});var r=n(55907),i=n(30538),o=n(59149),a=n(47001),s=n(27604),l=n(33828),c=n(15205),u=n(17755),d=n(6883),h=n(59293),p=n(97282);function f(e){var t,n,f,g,m,y,v,b=e.buttonPanel;d.vF.logTraceRender("components/nav-bar/nav-bar-panel-button");var w=(0,a.A)(),x=(0,s.S)(w),A=(0,u.Jh)(),S=(0,c.sd)().querySelector('[id^="shell-'.concat(A,'"]')),C=(0,i.useState)(null),E=(0,r.A)(C,2),k=E[0],T=E[1],_=(0,i.useState)(!1),O=(0,r.A)(_,2),P=O[0],I=O[1],M=function(){P&&(I(!1),T(null))};return(0,p.jsx)(o.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:M,children:(0,p.jsxs)(l.Box,{children:[(0,p.jsx)(l.IconButton,{id:b.button.id,tooltip:b.button.tooltip,tooltipPlacement:b.button.tooltipPlacement,sx:x.navButton,onClick:function(e){return function(e){P?(I(!1),T(null)):(T(e.currentTarget),I(!0))}(e)},className:P?"highlighted active":"",children:b.button.children},b.button.id),(0,p.jsx)(l.Popper,{open:P,anchorEl:k,placement:"left-end",onClose:M,container:S,sx:{marginRight:"5px !important"},children:(0,p.jsxs)(l.Paper,{sx:{width:"".concat(null!==(t=null===(n=b.panel)||void 0===n?void 0:n.width)&&void 0!==t?t:300,"px"),maxHeight:"500px"},children:[(0,p.jsx)(l.DialogTitle,{sx:x.popoverTitle,children:null!==(f=null===(g=b.panel)||void 0===g?void 0:g.title)&&void 0!==f?f:""}),(0,p.jsx)(l.DialogContent,{children:null!==(m=b.panel)&&void 0!==m&&m.convertHtmlContent?(0,p.jsx)(h.S,{htmlContent:null===(y=b.panel)||void 0===y?void 0:y.content}):null===(v=b.panel)||void 0===v?void 0:v.content})]})})]})},b.button.id)}},27604:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{navBarRef:{position:"absolute",right:e.spacing(7),padding:"6px",display:"flex",flexDirection:"column-reverse",marginRight:0,zIndex:150,pointerEvents:"all",justifyContent:"center",backgroundColor:"transparent",transition:"bottom 300ms ease-in-out",bottom:"6rem",alignItems:"flex-start",flexWrap:"wrap-reverse",maxHeight:"60%",gap:"15px"},navBtnGroupContainer:{display:"flex",position:"relative",pointerEvents:"auto",overflowY:"hidden",padding:5,flexDirection:"column"},navBtnGroup:{borderRadius:e.spacing(5),backgroundColor:e.palette.geoViewColor.bgColor.light[500],"& .MuiButtonGroup-grouped:not(:last-child)":{borderColor:e.palette.geoViewColor.bgColor.light[900]}},navButton:{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[900],borderRadius:e.spacing(5),width:"44px",height:"44px",maxWidth:"44px",minWidth:"44px",padding:"initial",transition:"background-color 0.3s ease-in-out","&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.light[900])},"&:not(:first-of-type)":{borderTopLeftRadius:0,borderTopRightRadius:0},"&:hover":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[700]},"&:focus":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[700]},"&:active":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[950]}},popoverTitle:{fontSize:e.palette.geoViewFontSize.default,fontWeight:"700",color:e.palette.geoViewColor.textColor.main,borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[100],"}")}}}},26028:(e,t,n)=>{"use strict";n.d(t,{j:()=>A});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(5281),c=n(11282),u=n(9951),d=n(58150),h=n(95864),p=n(13604),f=n(33828),g=n(27604),m=n(73854),y=n(6883),v=n(99868),b=n(97282);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{"use strict";n.d(t,{A:()=>c});var r=n(55907),i=n(30538),o=n(8058),a=n(24258),s=n(74816),l=n(6883);const c=function(){var e=(0,i.useState)({angle:0}),t=(0,r.A)(e,2),n=t[0],c=t[1],u=(0,i.useState)(0),d=(0,r.A)(u,2),h=d[0],p=d[1],f=(0,i.useRef)(0),g=(0,s.HA)(),m=(0,s.ej)(),y=(0,s.C0)(),v=(0,s.Bm)(),b=(0,s.uE)(),w=(0,s.a7)(),x=(0,s.ht)(),A=(0,s.U6)(),S=A.getPixelFromCoordinate,C=A.setRotation;return(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("USEMANAGEARROW - northArrowElement",m,y),"EPSG:".concat(g)===o.M.PROJECTION_NAMES.LCC&&!m.isNorthVisible){var e=parseFloat(m.degreeRotation),t=270-e;if(y&&(Math.round(f.current)!==Math.round(e)||v>7))f.current=e,C((180-e)*(2*Math.PI)/360),c({angle:0});else{var n=y?b*(180/Math.PI):0;c({angle:90-t+n})}!function(e){var t=x[0]/2,n=t-12;if(y||null===S(a.Tg))p(n);else{var i=S(a.Tg),o=i[1],s={x:n,y:S(w)[1],m:1};if(i[0]<2400&&i[1]>-1300&&-i[1]<3e3){var l=(0,r.A)(i,2);s.x=l[0],s.y=l[1],s.m=-1}var c=s.y/Math.sin(.01745329252*e),u=o<0?s.x+s.m*(Math.sin(.01745329252*(90-e))*c)-12:i[0]-24;u=Math.max(n-.25*t,Math.min(u,n+.25*t)),p(u)}}(t)}}),[m,y]),{rotationAngle:n,northOffset:h}}},31680:(e,t,n)=>{"use strict";n.d(t,{d:()=>o,e:()=>i});var r=n(97282);function i(e){var t=e.width,n=e.height;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",focusable:"false",style:{width:t,height:n},children:(0,r.jsxs)("g",{id:"northarrow",transform:"translate(-285.24 -142.234)",children:[(0,r.jsx)("path",{id:"path3770-7",d:"M305.91 156.648a8.652 8.652 0 0 1-8.654 8.653 8.652 8.652 0 0 1-8.653-8.653 8.653 8.653 0 0 1 8.653-8.653 8.653 8.653 0 0 1 8.653 8.653z",fill:"#fff",stroke:"#fff",strokeWidth:".895"}),(0,r.jsx)("path",{id:"path3770",d:"M304.982 156.648a7.725 7.725 0 0 1-7.726 7.726 7.725 7.725 0 0 1-7.726-7.726 7.725 7.725 0 0 1 7.726-7.726 7.725 7.725 0 0 1 7.726 7.726z",fill:"none",stroke:"#6d6d6d",strokeWidth:".799"}),(0,r.jsx)("path",{id:"path3774",d:"M297.256 156.648v-8.525",fill:"none",stroke:"#000",strokeWidth:".067"}),(0,r.jsx)("path",{d:"M297.258 143.48l8.793 22.432-8.811-8.812-8.812 8.812z",id:"path3778",fill:"#fff",stroke:"#fff",strokeWidth:".912"}),(0,r.jsx)("path",{d:"M297.256 144.805l7.726 19.568-7.726-7.726-7.726 7.726z",id:"path3780",fill:"#d6d6d6",stroke:"#000",strokeWidth:".266",strokeLinecap:"square"}),(0,r.jsx)("path",{id:"path6038",d:"M297.256 144.666l-7.726 19.568 7.726-7.726",fill:"#6d6d6d",strokeWidth:".296",strokeLinecap:"square"})]})})}function o(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[(0,r.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"})]})}},20354:(e,t,n)=>{"use strict";n.d(t,{l:()=>f,g:()=>g});var r=n(30538),i=n(47001),o=n(33828),a=n(8058),s=n(31680),l=function(e){var t,n;return{northArrowContainer:{left:"50%",position:"absolute"},northArrow:{width:null===(t=e.overrides)||void 0===t||null===(t=t.northArrow)||void 0===t?void 0:t.size.width,height:null===(n=e.overrides)||void 0===n||null===(n=n.northArrow)||void 0===n?void 0:n.size.height}}},c=n(74816),u=n(25969),d=n(17755),h=n(6883),p=n(97282);function f(){h.vF.logTraceRender("components/north-arrow/north-arrow");var e=(0,i.A)(),t=l(e),n=(0,r.useRef)(null),d=(0,c.HA)(),f=(0,c.ej)(),g=(0,u.A)(),m=g.rotationAngle,y=g.northOffset;return"EPSG:".concat(d)===a.M.PROJECTION_NAMES.LCC?(0,p.jsx)(o.Box,{ref:n,sx:t.northArrowContainer,style:{transition:e.transitions.create(["all","transform"],{duration:e.transitions.duration.standard,easing:e.transitions.easing.easeOut}),transform:"rotate(".concat(m.angle,"deg)"),visibility:f.isNorthVisible?"hidden":"visible",left:y},children:(0,p.jsx)(s.e,{width:t.northArrow.width,height:t.northArrow.height})}):(0,p.jsx)(o.Box,{})}function g(){var e=(0,d.Jh)(),t="".concat(e,"-northpole"),n=(0,r.useRef)(null),i=(0,c.HA)(),l=(0,c.U6)().setOverlayNorthMarkerRef;return setTimeout((function(){return l(n.current)}),0),(0,p.jsx)(o.Box,{ref:n,id:t,style:{visibility:"EPSG:".concat(i)===a.M.PROJECTION_NAMES.LCC?"visible":"hidden"},children:(0,p.jsx)(s.d,{})})}},57145:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(55907),i=n(67970),o=n.n(i),a=n(30538),s=n(43331),l=n(47001),c=n(59149),u=n(38811),d=n(33828),h=function(e){return{notificationPanel:{display:"flex",flexDirection:"column",width:"350px",maxHeight:"500px",overflowY:"hidden",gap:"8px",marginLeft:"18px",backgroundColor:e.palette.geoViewColor.bgColor.light[200],borderRadius:"5px",boxShadow:2},notificationsHeader:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"20px",borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[100],"}")},notificationsTitle:{fontSize:e.palette.geoViewFontSize.default,fontWeight:"700",color:e.palette.geoViewColor.textColor.main},notificationsList:{overflowY:"auto",padding:"0px 0px 20px 0px"},notificationItem:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",padding:"10px 15px","&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300])},"& .MuiIconButton-root":{color:e.palette.geoViewColor.textColor.lighten(.2,.4),"&:hover":{color:e.palette.geoViewColor.textColor.lighten(.2,.6)}}},notificationsCount:{backgroundColor:e.palette.geoViewColor.bgColor.dark[800],color:e.palette.geoViewColor.bgColor.light[800],fontSize:e.palette.geoViewFontSize.sm,borderRadius:"10px",height:"20px",width:"40px",textAlign:"center",lineHeight:"20px"}}},p=n(15205),f=n(17755),g=n(6883),m=n(74816),y=n(39561),v=n(97282);function b(){var e;g.vF.logTraceRender("components/notifications/notifications");var t=(0,s.useTranslation)().t,n=(0,l.A)(),i=h(n),b=(0,f.Jh)(),w=document.getElementById("shell-".concat(b)),x=(0,a.useState)(null),A=(0,r.A)(x,2),S=A[0],C=A[1],E=(0,a.useState)(!1),k=(0,r.A)(E,2),T=k[0],_=k[1],O=(0,a.useState)(0),P=(0,r.A)(O,2),I=P[0],M=P[1],L=(0,a.useState)(!1),R=(0,r.A)(L,2),j=R[0],F=R[1],D=(0,p.v9)(),N=(0,m.GT)(),B=(0,p.dD)(),z=B.removeNotification,V=B.removeAllNotifications;(0,a.useEffect)((function(){g.vF.logTraceUseEffect("Notifications - notifications list changed",I,D);var e=o()(D,(function(e){return e.count}));e>I&&_(!0),M(e)}),[D,I]),(0,a.useEffect)((function(){if(g.vF.logTraceUseEffect("Notifications - hasNewNotification change",T),T){var e=setTimeout((function(){return _(!1)}),1e3);return function(){return clearTimeout(e)}}}),[T,I]);var $=function(){j&&F(!1)},G=(0,y.yb)(),U=(0,u.CS)(d.Box);function W(e){switch(e.notificationType){case"success":return(0,v.jsx)(d.CheckCircleIcon,{color:"success"});case"info":return(0,v.jsx)(d.InfoIcon,{color:"info"});case"warning":return(0,v.jsx)(d.WarningIcon,{color:"warning"});default:return(0,v.jsx)(d.ErrorIcon,{color:"error"})}}function q(e,t){return(0,v.jsxs)(d.Box,{sx:i.notificationItem,children:[(0,v.jsx)(d.Box,{children:W(e)}),(0,v.jsx)(d.Box,{sx:{flexGrow:1,fontSize:n.palette.geoViewFontSize.sm,color:n.palette.geoViewColor.textColor.light[250]},children:(0,v.jsx)(d.Box,{component:"span",children:e.message})}),e.count>1?(0,v.jsx)(d.Box,{children:(0,v.jsx)(d.Box,{sx:i.notificationsCount,children:e.count})}):null,(0,v.jsx)(d.IconButton,{onClick:function(){return function(e){z(e.key)}(e)},children:(0,v.jsx)(d.CloseIcon,{})})]},t)}return(0,v.jsx)(c.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:$,children:(0,v.jsxs)(d.Box,{children:[(0,v.jsx)(d.Badge,{badgeContent:I>99?"99+":I,color:"error",children:(0,v.jsxs)(d.IconButton,{id:"notification",tooltip:"appbar.notifications","aria-label":"appbar.notifications",tooltipPlacement:"bottom-end",onClick:function(e){C(e.currentTarget),F(!j)},className:"".concat("dynamic"===N?"buttonFilled":"style4"," ").concat(j?"active":""),color:"primary",sx:{width:"2.375rem",height:"2.375rem"},children:[!T&&(0,v.jsx)(d.Box,{sx:{display:"inline-flex",alignItems:"center"},children:(0,v.jsx)(d.NotificationsIcon,{})}),T&&(0,v.jsx)(U,{sx:{display:"inline-flex",alignItems:"center"},style:G,children:(0,v.jsx)(d.NotificationsActiveIcon,{})})]})}),(0,v.jsx)(d.Popper,{open:j,anchorEl:S,placement:"right-end",onClose:$,container:w,children:(0,v.jsxs)(d.Paper,{sx:i.notificationPanel,children:[(0,v.jsxs)(d.Box,{sx:i.notificationsHeader,children:[(0,v.jsx)(d.Typography,{component:"h3",sx:i.notificationsTitle,children:t("appbar.notifications")}),(0,v.jsx)(d.Button,{type:"text",variant:"contained",disabled:0===D.length,size:"small",onClick:function(){V()},"aria-label":null!==(e=t("appbar.removeAllNotifications"))&&void 0!==e?e:"",children:t("appbar.removeAllNotifications")})]}),(0,v.jsx)(d.Box,{sx:i.notificationsList,children:D.length>0?D.map((function(e,t){return q(e,t)})):(0,v.jsx)(d.Typography,{component:"div",sx:{padding:"10px 15px"},children:t("appbar.no_notifications_available")})})]})})]})})}},73518:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r=n(55907),i=n(30538),o=n(43331),a=n(33828),s=n(6883),l=n(44912),c={toggleBtn:{transform:"rotate(45deg)",color:"black",zIndex:150,"&:hover":{cursor:"pointer"},"&.minimapOpen":{transform:"rotate(-45deg)"},"&.minimapClosed":{transform:"rotate(135deg)"}},toggleBtnContainer:{zIndex:150,position:"absolute",top:0,right:0}},u=n(97282);function d(e){var t=e.overviewMap,n=(0,(0,o.useTranslation)().t)("mapctrl.overviewmap.toggle"),d=(0,i.useState)(!0),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useRef)(null);return(0,i.useEffect)((function(){if(s.vF.logTraceUseEffect("OVERVIEW-MAP-TOGGLE - mount"),g&&g.current){var e=g.current.closest("button");e&&(e.setAttribute("aria-label",n),e.addEventListener("click",(function(){var e=t.getCollapsed();f(!e);var n=t.getOverviewMap().getTargetElement();n&&(e?(n.style.width="40px",n.style.height="40px",n.style.margin="0px"):(n.style.width="150px",n.style.height="150px"))})))}}),[]),(0,u.jsx)(a.Tooltip,{title:n,children:(0,u.jsx)(l.A,{ref:g,sx:c.toggleBtnContainer,children:(0,u.jsx)(l.A,{component:"div",sx:c.toggleBtn,className:p?"minimapOpen":"minimapClosed",style:{margin:0,padding:0,height:"initial",minWidth:"initial"},children:(0,u.jsx)(a.ChevronLeftIcon,{})})})})}},42984:(e,t,n)=>{"use strict";n.d(t,{G:()=>D});var r=n(30538),i=n(17004),o=n(68676),a=n(43331),s=n(21451),l=n(90932),c=n(11738),u=n(80739),d=n(85208),h=n(50375),p=n(35552),f=n(73715),g=n(15617),m=n(31576),y=n(27387),v=n(258),b=n(96687),w=n(61170),x=n(15355),A=n(59119),S=n(47064);const C=.75,E=.1;class k extends u.A{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=void 0===e.collapsed||e.collapsed,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=void 0!==e.rotateWithView&&e.rotateWithView,this.viewExtent_=void 0;const t=void 0!==e.className?e.className:"ol-overviewmap",n=void 0!==e.tipLabel?e.tipLabel:"Overview map",r=void 0!==e.collapseLabel?e.collapseLabel:"‹";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r):this.collapseLabel_=r;const i=void 0!==e.label?e.label:"›";"string"==typeof i?(this.label_=document.createElement("span"),this.label_.textContent=i):this.label_=i;const o=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,a=document.createElement("button");a.setAttribute("type","button"),a.title=n,a.appendChild(o),a.addEventListener(d.A.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const s=new h.A({view:e.view,controls:new c.A,interactions:new c.A});this.ovmap_=s,e.layers&&e.layers.forEach((function(e){s.addLayer(e)}));const l=document.createElement("div");l.className="ol-overviewmap-box",l.style.boxSizing="border-box",this.boxOverlay_=new m.A({position:[0,0],positioning:"center-center",element:l}),this.ovmap_.addOverlay(this.boxOverlay_);const u=t+" "+b.XI+" "+b.$N+(this.collapsed_&&this.collapsible_?" "+b.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),p=this.element;p.className=u,p.appendChild(this.ovmapDiv_),p.appendChild(a);const f=this,g=this.boxOverlay_,y=this.boxOverlay_.getElement(),v=function(e){const t={clientX:(n=e).clientX,clientY:n.clientY};var n;const r=s.getEventCoordinate(t);g.setPosition(r)},w=function(e){const t=s.getEventCoordinateInternal(e);f.getMap().getView().setCenterInternal(t),window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",w)};this.ovmapDiv_.addEventListener("pointerdown",(function(){event.target===y&&window.addEventListener("pointermove",v),window.addEventListener("pointerup",w)}))}setMap(e){const t=this.getMap();if(e!==t){if(t){const e=t.getView();e&&this.unbindView_(e),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push((0,x.KT)(e,g.A.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const t=e.getView();t&&this.bindView_(t),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===f.A.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const n=this.getMap().getView();this.bindView_(n)}else this.ovmap_.isRendered()||e.key!==f.A.TARGET&&e.key!==f.A.SIZE||this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new y.Ay({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(v.A.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_(),e.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())}unbindView_(e){e.removeChangeListener(v.A.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&(0,w.equals)(r,this.viewExtent_))return;this.viewExtent_=r;const i=t.getSize(),o=t.getView().calculateExtentInternal(i),a=t.getPixelFromCoordinateInternal((0,w.getTopLeft)(r)),s=t.getPixelFromCoordinateInternal((0,w.getBottomRight)(r)),l=Math.abs(a[0]-s[0]),c=Math.abs(a[1]-s[1]),u=i[0],d=i[1];lu*C||c>d*C?this.resetExtent_():(0,w.containsExtent)(o,r)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtentInternal(n),i=t.getView(),o=Math.log(7.5)/Math.LN2,a=1/(Math.pow(2,o/2)*E);(0,w.scaleFromCenter)(r,a),i.fitInternal((0,A.VY)(r))}recenter_(){const e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView(),i=t.getView(),o=this.rotateWithView_?0:-r.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=r.getCenter(),c=r.getResolution(),u=i.getResolution(),d=n[0]*c/u,h=n[1]*c/u;if(a.setPosition(l),s){s.style.width=d+"px",s.style.height=h+"px";const e="rotate("+o+"rad)";s.style.transform=e}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,x.Jz)(this.ovmap_,p.A.POSTRENDER,(e=>{delete this.ovmapPostrenderKey_,this.updateBox_()})))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(b.nT),this.collapsed_?(0,S.fo)(this.collapseLabel_,this.label_):(0,S.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered())return this.viewExtent_=void 0,void e.render();e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}}const T=k;var _=n(71229),O=n(73518),P=n(17755),I=n(15205),M=n(74816),L=n(27991),R=n(6883),j=n(44912),F=n(97282);function D(e){R.vF.logTraceRender("components/overview-map/overview-map");var t=e.olMap,n=(0,P.Jh)(),c=(0,M.kg)(),u=(0,M.Bm)(),d=(0,M.HA)(),h=(0,I.t)(),p=(0,I.MF)();return(0,r.useEffect)((function(){R.vF.logTraceUseEffect("OVERVIEW-MAP - zoom level changed");var e=t.getControls().getArray().filter((function(e){return e instanceof T}))[0];e&&(u{"use strict";n.d(t,{F:()=>y});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(33828),c=function(e){return{scaleControl:{display:"none"},scaleContainer:{display:"flex",backgroundColor:"transparent",border:"none",height:"100%",":hover":{backgroundColor:"transparent",color:e.palette.geoViewColor.white},"&.interaction-static":{padding:"5px",backdropFilter:"blur(5px)"}},scaleExpandedContainer:{display:"flex",flexDirection:"column",justifyContent:"center",height:"100%",gap:e.spacing(5)},scaleExpandedCheckmarkText:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"18px",maxHeight:"18px"},scaleText:{fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[800],whiteSpace:"nowrap",borderBottom:"2px solid ".concat(e.palette.geoViewColor.primary.light[300]),textTransform:"lowercase",position:"relative",display:"inline-block","&.interaction-static":{fontSize:e.palette.geoViewFontSize.md,fontWeight:"bold",borderBottom:"2px solid","&.hasScaleLine::before, &.hasScaleLine::after":{backgroundColor:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),width:"2px !important"}},"&.hasScaleLine::before, &.hasScaleLine::after":{content:'""',position:"absolute",bottom:"-1px",width:"1px",height:"8px",backgroundColor:e.palette.geoViewColor.bgColor.light[800]},"&.hasScaleLine::before":{left:"0px"},"&.hasScaleLine::after":{right:"0px"}},scaleCheckmark:{paddingRight:5,color:e.palette.geoViewColor.bgColor.light[800]}}},u=n(74816),d=n(73854),h=n(17755),p=n(6883),f=n(97282);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t{"use strict";n.d(t,{V:()=>r,e:()=>i});var r=function(e){var t="light"===e.palette.mode?e.palette.geoViewColor.primary.dark[300]:e.palette.geoViewColor.primary.light[300];return{trap:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:e.spacing(0),left:e.spacing(0),width:"100%",zIndex:e.zIndex.focusDialog,overflow:"hidden"},exitFocus:{border:"unset"},enableFocus:{border:"5px solid ".concat(t,"\n }")}}},i=function(e){return{all:{height:"100%",width:"100%","& .layer-icon":{padding:3,borderRadius:0,border:"1px solid",borderColor:e.palette.geoViewColor.grey.dark[100],boxShadow:2,background:e.palette.geoViewColor.white,objectFit:"scale-down",width:"35px",height:"35px",marginRight:"10px"},"& a[href]":{color:e.palette.geoViewColor.primary.main,"*:hover":{color:e.palette.geoViewColor.primary.dark[300]}},"& *::-webkit-scrollbar":{width:"8px",height:"8px"},"& *::-webkit-scrollbar-track":{background:e.palette.geoViewColor.bgColor.darken(.5,.5),borderRadius:"5px"},"& *::-webkit-scrollbar-thumb":{background:e.palette.geoViewColor.bgColor.darken(.5),borderRadius:"5px"},".bordered":{border:"1px solid ".concat(e.palette.geoViewColor.bgColor.darken(.5,.5)),boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.darken(.2,.5))},".bordered-primary":{border:"1px solid ".concat(e.palette.geoViewColor.primary.darken(.1,.9)),boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.dark[200])}},shell:{display:"flex",flexDirection:"column",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),bottom:e.spacing(0),overflow:"hidden",zIndex:0,height:"100%"},mapShellContainer:{display:"flex",flexDirection:"row",minHeight:"100%",width:"100%",position:"relative",alignItems:"stretch"},mapContainer:{display:"flex",flexDirection:"column",minHeight:"100%",width:"100%",position:"relative",alignItems:"stretch"},skip:{position:"absolute",left:-1e3,height:"1px",width:"1px",textAlign:"left",overflow:"hidden",backgroundColor:e.palette.geoViewColor.white,zIndex:e.zIndex.tooltip,"&:active, &:focus":{left:e.spacing(0),zIndex:e.zIndex.tooltip,width:"auto",height:"auto",overflow:"visible"}}}}},11089:(e,t,n)=>{"use strict";n.d(t,{S:()=>m});var r=n(55907),i=n(30538),o=n(43331),a=n(47001),s=n(86853),l=n(33828),c=n(59293),u=n(86543),d=n(24258),h=n(15205),p=n(73854),f=n(6883),g=n(97282);function m(e){f.vF.logTraceRender("containers/focus-trap/focus-trap");var t=e.mapId,n=e.focusTrapId,m=(0,o.useTranslation)().t,y=(0,a.A)(),v=(0,u.V)(y),b=(0,s.A)(y.breakpoints.down("md")),w=(0,i.useState)(!1),x=(0,r.A)(w,2),A=x[0],S=x[1],C=(0,i.useRef)(),E=(0,h.dD)().setCrosshairActive,k=(0,p.A6)().setActiveTrapGeoView,T=(0,h.sd)(),_=T.querySelector('[id^="mapTargetElement-"]'),O=(0,i.useRef)(_);O.current=_;var P=(0,i.useRef)();function I(e){var t;t=e,O.current===document.activeElement&&"Space"===t.code&&t.preventDefault()}function M(){k(!1),T.classList.remove("map-focus-trap"),T.querySelector(".geoview-shell").removeEventListener("keydown",L),document.removeEventListener("keydown",I),setTimeout((function(){var e;return null===(e=document.getElementById("toplink-".concat(n)))||void 0===e?void 0:e.focus()}),0),E(!1)}void 0!==O.current&&(P.current=O.current);var L=function(e){d.xb.includes(e.code)||(_.style.border=v.exitFocus.border),"KeyQ"===e.code&&e.ctrlKey&&M()};function R(e){var r=e.target.id.split("-")[0];("Tab"===e.code&&!e.shiftKey&&"toplink"===r||"Tab"===e.code&&e.shiftKey&&"bottomlink"===r)&&(e.preventDefault(),e.stopPropagation(),C.current="toplink"===r?"bottomlink-".concat(n):"toplink-".concat(n),S(!0),document.addEventListener("keydown",I),T.querySelector(".geoview-shell").addEventListener("mousemove",(function(){S(!1),M(),document.getElementById("mapTargetElement-".concat(t)).style.border=v.exitFocus.border}),{once:!0}))}return(0,i.useEffect)((function(){var e,t;return null===(e=document.getElementById("bottomlink-".concat(n)))||void 0===e||e.addEventListener("keydown",R),null===(t=document.getElementById("toplink-".concat(n)))||void 0===t||t.addEventListener("keydown",R),function(){var e,t;null===(e=document.getElementById("bottomlink-".concat(n)))||void 0===e||e.removeEventListener("keydown",R),null===(t=document.getElementById("toplink-".concat(n)))||void 0===t||t.removeEventListener("keydown",R),document.removeEventListener("keydown",I)}}),[]),(0,g.jsx)(l.Modal,{container:document.getElementById(n),modalId:n,open:A,"aria-labelledby":"wcag-dialog-title","aria-describedby":"wcag-dialog-description",fullScreen:b,sx:v.trap,titleId:"wcag-dialog-title",title:m("keyboardnav.focusdialog.title"),contentTextId:"wcag-dialog-description",contentModal:(0,g.jsx)(c.S,{htmlContent:m("keyboardnav.focusdialog.main")}),actions:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Button,{id:"enable-focus",tooltip:m("keyboardnav.focusdialog.button.enable"),tooltipPlacement:"top-end",autoFocus:!0,onClick:function(){var e;S(!1),e=T.querySelector(".geoview-shell"),k(!0),e.classList.add("map-focus-trap"),e.addEventListener("keydown",L),setTimeout((function(){var e;return null===(e=document.getElementById("mapTargetElement-".concat(t)))||void 0===e?void 0:e.focus()}),0),E(!0),document.getElementById("mapTargetElement-".concat(t)).style.border=v.enableFocus.border},type:"text",sx:{width:"initial",textTransform:"none"},children:m("keyboardnav.focusdialog.button.enable")}),(0,g.jsx)(l.Button,{id:"skip-focus",tooltip:m("keyboardnav.focusdialog.button.skip"),tooltipPlacement:"top-end",onClick:function(){S(!1),setTimeout((function(){var e;return null===(e=document.getElementById(C.current))||void 0===e?void 0:e.focus()}),0)},type:"text",sx:{width:"initial",textTransform:"none"},children:m("keyboardnav.focusdialog.button.skip")})]})})}},59293:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var r=n(42432),i=n(55723),o=n(31082);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const a=o;var s=n(44912),l=n(97282);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{$:()=>R});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(22784),c=n(65988),u=n(76099),d=n(26028),h=n(1102),p=n(9036),f=n(33828),g=n(86543),m=n(74816),y=n(15205),v=n(73854),b=n(59480),w=n(24795),x=n(71068),A=n(6883),S=n(43381),C=n(99707),E=n(97282);function k(){var e,t,n,r,l;A.vF.logTraceRender("components/data-table/data-table-modal");var c=(0,a.useTranslation)().t,u=(0,s.A)(),d=(0,x.S)(u),h=(0,o.useState)(!0),p=(0,i.A)(h,2),g=p[0],m=p[1],y=(0,v.A6)().disableFocusTrap,b=(0,v.NP)().activeElementId,k=(0,w.u1)(),T=(0,S.Xh)(),_=(0,C.bc)(T),O=(0,o.useMemo)((function(){return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - layer",_,k),null==_?void 0:_.find((function(e){return e.layerPath===k}))}),[_,k]),P=(0,o.useCallback)((function(e){return A.vF.logTraceUseCallback("DATA-TABLE-MODAL - getCellValue"),(0,E.jsx)(f.Box,{component:"div",sx:d.tableCell,children:e})}),[d.tableCell]),I=(0,o.useCallback)((function(e){return A.vF.logTraceUseCallback("DATA-TABLE-MODAL - getTableHeader"),(0,E.jsx)(f.Box,{component:"span",sx:{whiteSpace:"nowrap"},children:e})}),[]),M=(0,o.useMemo)((function(){var e;if(A.vF.logTraceUseMemo("DATA-TABLE-MODAL - columns",null==O?void 0:O.features),null==O||!O.fieldInfos)return[];var t=Object.entries(null!==(e=null==O?void 0:O.fieldInfos)&&void 0!==e?e:{}),n=[];return t.forEach((function(e){var t,r=(0,i.A)(e,2),a=r[0],s=r[1];n.push({id:a,accessorFn:function(e){var t,n,r,i;return(0,o.isValidElement)(e[a])?e[a]:("string"==typeof(null===(t=e[a])||void 0===t?void 0:t.value)||"number"==typeof(null===(n=e[a])||void 0===n?void 0:n.value))&&null!==(r=null===(i=e[a])||void 0===i?void 0:i.value)&&void 0!==r?r:""},header:null!==(t=null==s?void 0:s.alias)&&void 0!==t?t:"",Cell:function(e){var t=e.cell;return P(t.getValue())},Header:function(e){var t=e.column;return I(t.columnDef.header)},maxSize:120})})),n}),[null==O?void 0:O.fieldInfos]),L=(0,o.useMemo)((function(){var e,t;return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - rows",null==O?void 0:O.fieldInfos),null!==(e=null==O||null===(t=O.features)||void 0===t?void 0:t.map((function(e){return e.fieldInfo})))&&void 0!==e?e:[]}),[null==O?void 0:O.features,null==O?void 0:O.fieldInfos]);return(0,o.useEffect)((function(){A.vF.logTraceUseEffect("DATA-TABLE-MODAL - query status");var e=T.find((function(e){return e.layerPath===k}));"error"!==(null==e?void 0:e.queryStatus)&&"processed"!==(null==e?void 0:e.queryStatus)?m(!0):m(!1)}),[T,k]),(0,E.jsxs)(f.Dialog,{open:"layerDataTable"===b,onClose:y,maxWidth:"xl",children:[(0,E.jsx)(f.DialogTitle,{children:"".concat(c("legend.tableDetails")," ").concat(null!==(e=null==O?void 0:O.layerName)&&void 0!==e?e:k)}),(0,E.jsxs)(f.DialogContent,{sx:{overflow:"hidden"},children:[g&&(0,E.jsx)(f.Box,{sx:{minHeight:"300px",minWidth:"450px",position:"relative"},children:(0,E.jsx)(f.CircularProgress,{isLoaded:!g,sx:{backgroundColor:"inherit"}})}),!g&&(0,E.jsx)(f.MRTTable,{columns:M,data:L,enableColumnActions:!1,enablePagination:(null!==(t=null==O||null===(n=O.features)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>50,enableBottomToolbar:(null!==(r=null==O||null===(l=O.features)||void 0===l?void 0:l.length)&&void 0!==r?r:0)>50,initialState:{density:"compact",pagination:{pageSize:50,pageIndex:0}},muiPaginationProps:{rowsPerPageOptions:[50,100]},muiTableContainerProps:{sx:{maxHeight:"60vh"}},enableStickyHeader:!0,enableSorting:!0,positionToolbarAlertBanner:"none",enableGlobalFilter:!1,enableColumnFilters:!1,enableDensityToggle:!1,enableFilters:!1,enableFullScreenToggle:!1,enableHiding:!1,enableTopToolbar:!1})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:y,type:"text",autoFocus:!0,children:c("general.close")})})]})}var T=n(63744),_=n(98068);function O(){var e;A.vF.logTraceRender("components/details/feature-detail-modal");var t=(0,a.useTranslation)().t,n=(0,s.A)(),r=(0,T.S)(n),l=(0,v.A6)().disableFocusTrap,c=(0,v.NP)().activeElementId,u=(0,S.j3)(),d=(0,o.useState)(""),h=(0,i.A)(d,2),p=h[0],g=h[1],m=(0,o.useMemo)((function(){var e;A.vF.logTraceUseMemo("DETAILS PANEL - Feature Detail Modal - featureInfoList");var t=u.fieldInfo[null!==u.nameField?u.nameField:0];return g(void 0!==t?t.value:""),Object.keys(null!==(e=null==u?void 0:u.fieldInfo)&&void 0!==e?e:{}).map((function(e){return{fieldKey:u.fieldInfo[e].fieldKey,value:u.fieldInfo[e].value,dataType:u.fieldInfo[e].dataType,alias:u.fieldInfo[e].alias?u.fieldInfo[e].alias:e,domain:null}}))}),[u]);return(0,E.jsxs)(f.Dialog,{open:"featureDetailDataTable"===c&&!!u,onClose:l,maxWidth:"lg",disablePortal:!0,sx:r.featureDetailModal,children:[(0,E.jsx)(f.DialogTitle,{children:t("details.featureDetailModalTitle")}),(0,E.jsxs)(f.DialogContent,{children:[(0,E.jsxs)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",pb:10,children:[(0,E.jsx)(f.Box,{component:"img",alt:null!==(e=null==u?void 0:u.nameField)&&void 0!==e?e:"",src:u.featureIcon.toDataURL().toString(),className:"layer-icon"}),(0,E.jsx)(f.Typography,{sx:{display:"inline-block"},component:"div",children:p})]}),(0,E.jsx)(f.List,{sx:r.featureDetailListContainer,children:(0,E.jsx)(_.P,{featureInfoList:m})})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:l,type:"text",size:"small",autoFocus:!0,children:t("general.close")})})]})}var P=n(17755),I=n(11089);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t{"use strict";n.d(t,{O7:()=>b,oy:()=>x,Jh:()=>w});var r=n(92902);const i=e=>(t,n,r)=>{const i=r.subscribe;r.subscribe=(e,t,n)=>{let o=e;if(t){const i=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());o=n=>{const r=e(n);if(!i(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return i(o)};return e(t,n,r)};var o=n(80363),a=n.n(o),s=n(55061),l=n(15205),c=n(44837),u=n(24795),d=n(74816),h=n(43381),p=n(84287),f=n(29131),g=n(38880),m=n(73854),y=n(6883),v=n(2265),b=i((function(e,t){return y.vF.logTraceCore("Initializing store core states..."),{mapConfig:void 0,setMapConfig:function(n){var r,i,o;y.vF.logDebug("Sending the map config to the store...",n.mapId);for(var s=a()(n),l=0;l<((null===(c=s.map)||void 0===c||null===(c=c.listOfGeoviewLayerConfig)||void 0===c?void 0:c.length)||0);l++){var c,u=(0,v.si)(s.map.listOfGeoviewLayerConfig[l]);s.map.listOfGeoviewLayerConfig[l]=u}e({mapConfig:s,mapId:n.mapId}),t().appState.setDefaultConfigValues(n),t().mapState.setDefaultConfigValues(n),t().uiState.setDefaultConfigValues(n),null!==(r=n.footerBar)&&void 0!==r&&r.tabs.core.includes("time-slider")&&e({timeSliderState:(0,p.mU)(e,t)}),null!==(i=n.footerBar)&&void 0!==i&&i.tabs.core.includes("geochart")&&e({geochartState:(0,f.Dj)(e,t)}),null!==(o=n.corePackages)&&void 0!==o&&o.includes("swiper")&&e({swiperState:(0,g.eC)(e,t)})},appState:(0,l.$g)(e,t),detailsState:(0,c.yw)(e,t),dataTableState:(0,h.Mo)(e,t),layerState:(0,u.tK)(e,t),mapState:(0,d.aM)(e,t),uiState:(0,m.Oz)(e,t)}})),w=((0,r.vt)()(b),function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapId}))}),x=function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapConfig}))}},26265:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>r.Jh,U6:()=>i.U6});var r=n(17755),i=(n(15205),n(43381),n(44837),n(29131),n(24795),n(74816));n(84287),n(73854),n(55061)},15205:(e,t,n)=>{"use strict";n.d(t,{$g:()=>p,D4:()=>f,DR:()=>x,MF:()=>y,_V:()=>b,dD:()=>E,e_:()=>g,iO:()=>C,kv:()=>v,lk:()=>S,sd:()=>w,t:()=>m,v9:()=>A});var r=n(29067),i=n(42432),o=n(92902),a=n(16775),s=n(55061),l=n(6883),c=n(76200),u=n(43852);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{D5:()=>d,Mo:()=>c,Xh:()=>u,_M:()=>h,eQ:()=>g,j3:()=>f,x9:()=>p});var r=n(42432),i=n(92902),o=n(75687),a=n(55061);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{Jr:()=>p,MQ:()=>f,SK:()=>h,aU:()=>u,yU:()=>d,yw:()=>c});var r=n(29067),i=n(42432),o=n(92902),a=n(55061);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{Dj:()=>l,N3:()=>h,bS:()=>u,eq:()=>d,if:()=>c});var r=n(42432),i=n(92902),o=n(55061);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{$T:()=>v,Uk:()=>w,Yo:()=>f,Zt:()=>p,q5:()=>y,tK:()=>h,u1:()=>g,wU:()=>b,y5:()=>m});var r=n(29067),i=n(42432),o=n(92902),a=n(55061),s=n(24258),l=n(27991),c=n(59155);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{Bm:()=>L,C0:()=>v,GT:()=>b,HA:()=>_,JQ:()=>E,KE:()=>T,Mk:()=>A,NZ:()=>f,Nt:()=>x,Rs:()=>y,U6:()=>R,_I:()=>C,a7:()=>g,aM:()=>h,ej:()=>S,gx:()=>P,ht:()=>I,kI:()=>w,kg:()=>k,re:()=>p,uE:()=>O,wE:()=>M,yC:()=>m});var r=n(29067),i=n(42432),o=n(92902),a=n(55061),s=n(8058),l=n(27991),c=n(43852);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t-1||!1,overviewMap:n.components.indexOf("overview-map")>-1||!1,overviewMapHideZoom:void 0!==n.overviewMap?n.overviewMap.hideOnZoom:0,pointMarkers:(null===(i=n.map.overlayObjects)||void 0===i?void 0:i.pointMarkers)||{},rotation:n.map.viewSettings.rotation||0,zoom:null!==(o=n.map.viewSettings.initialView)&&void 0!==o&&o.zoomAndCenter?n.map.viewSettings.initialView.zoomAndCenter[0]:3.5})})},actions:{createBasemapFromOptions:function(e){return l.d.setBasemap(t().mapId,e)},getPixelFromCoordinate:function(e){return l.d.getPixelFromCoordinate(t().mapId,e)},getIndexFromOrderedLayerInfo:function(e){return l.d.getMapIndexFromOrderedLayerInfo(t().mapId,e)},getLegendCollapsedFromOrderedLayerInfo:function(e){return l.d.getMapLegendCollapsedFromOrderedLayerInfo(t().mapId,e)},getVisibilityFromOrderedLayerInfo:function(e){return l.d.getMapVisibilityFromOrderedLayerInfo(t().mapId,e)},showClickMarker:function(e){l.d.clickMarkerIconShow(t().mapId,e)},hideClickMarker:function(){l.d.clickMarkerIconHide(t().mapId)},highlightBBox:function(e,n){l.d.highlightBBox(t().mapId,e,n)},addHighlightedFeature:function(e){l.d.addHighlightedFeature(t().mapId,e)},removeHighlightedFeature:function(e){l.d.removeHighlightedFeature(t().mapId,e)},addPointMarkers:function(e,n){return l.d.addPointMarkers(t().mapId,e,n)},removePointMarkersOrGroup:function(e,n){return l.d.removePointMarkersOrGroup(t().mapId,e,n)},reorderLayer:function(e,n){l.d.reorderLayer(t().mapId,e,n)},resetBasemap:function(){return l.d.resetBasemap(t().mapId)},setCurrentBasemapOptions:function(e){t().mapState.setterActions.setCurrentBasemapOptions(e)},setLegendCollapsed:function(e,n){t().mapState.setterActions.setLegendCollapsed(e,n)},setOrToggleLayerVisibility:function(e,n){l.d.setOrToggleMapLayerVisibility(t().mapId,e,n)},setMapKeyboardPanInteractions:function(e){l.d.setMapKeyboardPanInteractions(t().mapId,e)},setZoom:function(e,n){l.d.zoom(t().mapId,e,n)},setInteraction:function(e){l.d.setInteraction(t().mapId,e)},setRotation:function(e){l.d.rotate(t().mapId,e)},zoomToExtent:function(e,n){return l.d.zoomToExtent(t().mapId,e,n)},zoomToInitialExtent:function(){return l.d.zoomToInitialExtent(t().mapId)},zoomToGeoLocatorLocation:function(e,n){return l.d.zoomToGeoLocatorLocation(t().mapId,e,n)},zoomToMyLocation:function(e){return l.d.zoomToMyLocation(t().mapId,e)},transformPoints:function(e,n){return s.M.transformPoints(e,"EPSG:".concat(t().mapState.currentProjection),"EPSG:".concat(n))},setClickCoordinates:function(e){return l.d.setClickCoordinates(t().mapId,e)},setFixNorth:function(e){t().mapState.setterActions.setFixNorth(e)},setOverlayClickMarkerRef:function(e){var n=t().mapState.overlayClickMarker;void 0!==n&&n.setElement(e)},setOverlayNorthMarkerRef:function(e){var n=t().mapState.overlayNorthMarker;void 0!==n&&n.setElement(e)}},setterActions:{setMapChangeSize:function(n,r){e({mapState:d(d({},t().mapState),{},{size:n,scale:r})})},setMapLoaded:function(n){e({mapState:d(d({},t().mapState),{},{mapLoaded:n})})},setAttribution:function(n){e({mapState:d(d({},t().mapState),{},{attribution:n})})},setCurrentBasemapOptions:function(n){e({mapState:d(d({},t().mapState),{},{currentBasemapOptions:n})})},setInitialFilters:function(n){e({mapState:d(d({},t().mapState),{},{initialFilters:n})})},setInteraction:function(n){e({mapState:d(d({},t().mapState),{},{interaction:n})})},setZoom:function(n){e({mapState:d(d({},t().mapState),{},{zoom:n})})},setRotation:function(n){e({mapState:d(d({},t().mapState),{},{rotation:n})})},setOverlayClickMarker:function(n){e({mapState:d(d({},t().mapState),{},{overlayClickMarker:n})})},setOverlayNorthMarker:function(n){e({mapState:d(d({},t().mapState),{},{overlayNorthMarker:n})})},setProjection:function(n){e({mapState:d(d({},t().mapState),{},{currentProjection:n})})},setPointMarkers:function(n){e({mapState:d(d({},t().mapState),{},{pointMarkers:n})})},setMapMoveEnd:function(n,r,i,o,a,s){e({mapState:d(d({},t().mapState),{},{centerCoordinates:n,northArrowElement:{degreeRotation:i,isNorthVisible:o},mapExtent:a,scale:s})}),t().mapState.setterActions.setClickMarker(void 0),t().appState.isCrosshairsActive&&t().mapState.setterActions.setPointerPosition(r)},setPointerPosition:function(n){e({mapState:d(d({},t().mapState),{},{pointerPosition:n})})},setClickCoordinates:function(n){e({mapState:d(d({},t().mapState),{},{clickCoordinates:n})})},setFixNorth:function(n){e({mapState:d(d({},t().mapState),{},{fixNorth:n})})},setHighlightedFeatures:function(n){e({mapState:d(d({},t().mapState),{},{highlightedFeatures:n})})},setVisibleLayers:function(n){e({mapState:d(d({},t().mapState),{},{visibleLayers:n})})},setOrderedLayerInfo:function(n){e({mapState:d(d({},t().mapState),{},{orderedLayerInfo:(0,r.A)(n)})})},setHoverable:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));i&&(i.hoverable=n,t().mapState.setterActions.setOrderedLayerInfo(r))},setLegendCollapsed:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));if(i){var o=n||!i.legendCollapsed;i.legendCollapsed=o,t().mapState.setterActions.setOrderedLayerInfo(r)}},setQueryable:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));i&&(i.queryable=n,n&&(i.hoverable=n),t().mapState.setterActions.setOrderedLayerInfo(r))},setClickMarker:function(n){e({mapState:d(d({},t().mapState),{},{clickMarker:n?{lnglat:n}:void 0})})},setHoverFeatureInfo:function(n){e({mapState:d(d({},t().mapState),{},{hoverFeatureInfo:n})})}}}}var p=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.attribution}))},f=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.basemapOptions}))},g=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.centerCoordinates}))},m=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickMarker}))},y=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickCoordinates}))},v=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.fixNorth}))},b=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.interaction}))},w=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.hoverFeatureInfo}))},x=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.mapLoaded}))},A=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrow}))},S=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrowElement}))},C=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.orderedLayerInfo}))},E=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMap}))},k=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMapHideZoom}))},T=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.pointerPosition}))},_=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.currentProjection}))},O=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.rotation}))},P=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.scale}))},I=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.size}))},M=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.visibleLayers}))},L=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.zoom}))},R=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.actions}))}},38880:(e,t,n)=>{"use strict";n.d(t,{eC:()=>c,lT:()=>u});var r=n(42432),i=n(92902),o=n(55061),a=n(50570);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{Gg:()=>h,h4:()=>d,ky:()=>u,mU:()=>c});var r=n(42432),i=n(92902),o=n(55061),a=n(9145);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{A6:()=>E,NP:()=>p,OZ:()=>y,Oz:()=>h,PK:()=>S,Qy:()=>C,Uu:()=>w,XP:()=>m,bd:()=>g,dY:()=>x,ex:()=>v,g_:()=>f,m:()=>A,r4:()=>b});var r=n(29067),i=n(42432),o=n(46900),a=n.n(o),s=n(92902),l=n(55061),c=n(7396);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3];e({uiState:d(d({},t().uiState),{},{activeAppBarTab:{tabId:n,tabGroup:r,isOpen:i,isFocusTrapped:o}})})},setSelectedFooterLayerListItem:function(n){e({uiState:d(d({},t().uiState),{},{selectedFooterLayerListItem:n})})}}};return n}var p=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.focusItem}))},f=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.activeFooterBarTabId}))},g=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.activeAppBarTab}))},m=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.activeTrapGeoView}))},y=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.appBarComponents}))},v=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.footerPanelResizeValue}))},b=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.footerPanelResizeValues}))},w=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.hiddenTabs}))},x=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.mapInfoExpanded}))},A=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.navBarComponents}))},S=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.footerBarIsCollapsed}))},C=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.selectedFooterLayerListItem}))},E=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.actions}))}},55061:(e,t,n)=>{"use strict";n.d(t,{dE:()=>I,Ic:()=>M,gU:()=>L,e4:()=>R,Ni:()=>j});var r=n(42432),i=n(30538),o=n(13871),a=n(92902),s=n(17004);var l=n(16775),c=n(33663),u=n(59155),d=n(27991),h=n(9145),p=n(54497),f=n(75687),g=n(50570),m=new l.K,y=new c.h,v=new u.K,b=new d.d,w=new f.F,x=new h.t,A=new p.U,S=new g.Z;var C=n(17755),E=n(94514),k=n(6883),T=n(76200);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t{const n=(0,i.useRef)(r.count);return(0,i.useEffect)((()=>{n.current+=1,n.current===r.count+1&&(n.current-=1,t.setState(e))})),null};if(o.displayName=`((${e})) devtool`,"undefined"==typeof document)return;if(!n){let t=document.getElementById(`simple-zustand-devtools-${e}`);t||(t=document.createElement("div"),t.id=`simple-zustand-devtools-${e}`),document.body.appendChild(t),n=t}const a=(0,s.H)(n),l=e=>{e&&(a.render(i.createElement(o,Object.assign({},e))),r.count+=1)};l(t.getState()),t.subscribe(l)}("getViewStore-".concat(e.mapId),c)}},M=function(e){return P.getState().stores[null!=e?e:"unknown"]},L=function(e){return(0,T.whenThisThen)((function(){return M(e)}))},R=function(e){var t,n,r,i;t=M(e),m.destroy(),y.destroy(),v.destroy(),b.destroy(),w.destroy(),null!==(n=t.getState().mapConfig.footerBar)&&void 0!==n&&n.tabs.core.includes("time-slider")&&x.destroy(),null!==(r=t.getState().mapConfig.footerBar)&&void 0!==r&&r.tabs.core.includes("geochart")&&A.destroy(),null!==(i=t.getState().mapConfig.corePackages)&&void 0!==i&&i.includes("swiper")&&S.destroy(),delete P.getState().stores[e]},j=function(){var e=(0,i.useContext)(E.w).mapId;return P.getState().stores[null!=e?e:"unknown"]}},63629:(e,t,n)=>{"use strict";var r=n(68676),i=n(43331);const o=JSON.parse('{"general":{"add":"Add","close":"Close","exit":"Exit","layers":"Layers","name":"Name","open":"Open","remove":"Remove","view":"View","openFullscreen":"Open in fullscreen","closeFullscreen":"Close fullscreen","openGuide":"Open guide","guide":"Guide","fullScreen":"Full screen"},"mapnav":{"arianavbar":"Vertical button group for map navigation","basemap":"Change basemap","fullscreen":"Full screen","home":"Reset to initial view","zoomIn":"Zoom in","zoomOut":"Zoom out","coordinates":"Toggle coordinates format","scale":"Toggle between scale and resolution","location":"Zoom to my location"},"basemaps":{"select":"Select a basemap","default":"Default","transport":"Transport","imagery":"Imagery","simple":"Simple","nogeom":"None"},"mapctrl":{"rotation":{"resetRotation":"Reset Rotation","fixedNorth":"Fix North"},"mouseposition":{"east":"E","west":"W","north":"N","south":"S"},"overviewmap":{"toggle":"Toggle overview map","error":"Error loading overview map"},"attribution":{"defaultnrcan":"© His Majesty the King in Right of Canada, as represented by the Minister of Natural Resources","tooltip":"Attribution"},"crosshair":"Use Arrows, + and - keys to navigate the map, Enter to select and Shift+Arrow Up or Down to modify the pan value."},"appbar":{"export":"Export","notifications":"Notification","no_notifications_available":"No notifications available","layers":"Layers","share":"Share","version":"About GeoView","repoLink":"Github","removeAllNotifications":"Remove all"},"legend":{"title":"Legend","removeLayer":"Remove layer","zoomTo":"Zoom to layer","addLayer":"Add layer","sortLayers":"Sort layers","sort":"Sort","layerError":"Layer has an error...","layerLoading":"Layer is loading...","tableDetails":"Table details","refreshLayer":"Refresh layer","highlightLayer":"Highlight layer","subLayersCount":"{count} sublayers","itemsCount":"{count} of {totalCount} classes","legendInstructions":"Legend Instructions","noLayersAdded":"No layers added to the map","noLayersAddedDescription":"Add layers to the map by clicking on the \'Layers\' button and adding the layers you want to display."},"layers":{"title":"Layers","subLayersList":"Sublayers list","finish":"Finish","continue":"Continue","back":"Back","or":"or","dropzone":"Drop here","upload":"Choose a file","drop":"Drop the file to upload","url":"Enter URL or Geocore id","layer":"Layer","stepOne":"Upload a file or enter URL/Geocore id","stepTwo":"Select format","stepThree":"Configure layer","stepFour":"Enter name","service":"Service type","name":"Name","layerSelect":"Select layer(s)","errorEmpty":"cannot be empty","errorNone":"No file or source added","errorFile":"Only geoJSON, CSV and GeoPackage files can be used","errorServer":"source is not valid","errorNotLoaded":"An error occured when loading the layer","errorProj":"does not support current map projection","only":"only","opacity":"Opacity","opacityMax":"Maximum from parent","reloadLayer":"Reload layer","visibilityIsAlways":"Visibility is always enabled","toggleVisibility":"Toggle visibility","toggleCollapse":"Toggle collapse","querying":"Querying","layerAdded":"Layer __param__ added","instructionsNoLayersTitle":"No layers visible","instructionsNoLayersBody":"Add visible layers on the map."},"details":{"title":"Details","zoomTo":"Zoom to feature","select":"Highlight feature on map","externalLink":"External Link","feature":"feature","clickOnMap":"Click on map","nextFeatureBtn":"Next feature","previousFeatureBtn":"Previous feature","clearAllfeatures":"Clear all feature highlights","keepFeatureSelected":"Keep feature highlighted","featureDetailsTitle":"Feature {count} of {total}","featureDetailModalTitle":"Feature Detail"},"lightbox":{"next":"Next","previous":"Previous","close":"Close","download":"Download"},"keyboardnav":{"start":"Skip after map element","end":"Skip before map element","focusdialog":{"title":"Keyboard navigation","main":"If enable, we will keep focus locked on the viewer.\\nTo exit, press CTRL + Q","button":{"enable":"Enable","skip":"Skip"}}},"validation":{"layer":{"loadfailed":"Layer [__param__] failed to load on map __param__.","notfound":"The sublayer __param__ of the layer __param__ does not exist on the server","createtwice":"Can not execute the createGeoViewRasterLayers method twice for the layer __param__ on map __param__","usedtwice":"Duplicate use of layer identifier [__param__] on map __param__","multipleUUID":"GeoCore layers may only have one GeoCore id per layer"},"schema":{"notFound":"A schema error was found, check the console to see what is wrong.","wrongPath":"Cannot find schema ([__param__])"},"changeDisplayLanguageLayers":"Layers can not be relaoded because the configuration does not support this language","changeDisplayLanguage":"Only \'en\' and \'fr\' are supported","changeDisplayTheme":"Theme unsupported","changeDisplayProjection":"Projection unsupported","invalidConfig":"Invalid JSON config, default configuration applied."},"exportModal":{"title":"Export map as PNG","cancelBtn":"Cancel","exportBtn":"Export","exportTitle":"Title","approx":"approx"},"geolocator":{"title":"Geolocator","search":"Search","errorMessage":"No matches found for","province":"Province","category":"Category","clearFilters":"Clear filters","noFilter":"No filter"},"hovertooltip":{"alticon":"Selected feature icon"},"dataTable":{"title":"Data Table","icon":"ICON","zoom":"ZOOM","details":"DETAILS","exportBtn":"Export","jsonExportBtn":"Download GeoJSON","downloadAsCSV":"Download CSV","filterMap":"Filter map","stopFilterMap":"Stop filter map","rowsSelected":"{rowsSelected} of {totalRows} row(s) selected","rowsFiltered":"{rowsFiltered} of {totalRows} row(s) filtered","enlargeBtn":"Enlarge","reduceBtn":"Reduce","features":"feature(s)","featureFiltered":"features filtered","images":"Images","close":"Close","noFeatures":"unknown..."},"geoChart":{"noChartAvailable":"Click on the map on a layer with chart"},"guide":{"title":"Guide","errorMessage":"Sorry, unable to find the help document!"},"footerBar":{"focusToMap":"Focus to map","focusToFooter":"Focus to footer","resizeTooltip":"Resize","noTab":"No tab"}}'),a=JSON.parse('{"general":{"add":"Ajouter","close":"Fermer","layers":"Couches","name":"Nom","exit":"Sortir","open":"Ouvrir","remove":"Retirer","view":"Vue","openFullscreen":"Ouvrir en plein écran","closeFullscreen":"Fermer le plein écran","openGuide":"Ouvrir le guide","guide":"Guide","fullScreen":"Plein écran"},"mapnav":{"arianavbar":"Groupe de buttons vertical pour navigation sur la carte","basemap":"Changer la carte de base","fullscreen":"Plein écran","home":"Retour à la vue initiale","zoomIn":"Zoom avant","zoomOut":"Zoom arrière","coordinates":"Basculer le format des coordonnées","scale":"Basculer entre l\'échelle et la résolution","location":"Zoom sur ma position"},"basemaps":{"select":"Choisir une carte de base","default":"Défaut","transport":"Transport","imagery":"Imagerie Satellitaire","simple":"Simple","nogeom":"Aucun"},"mapctrl":{"rotation":{"resetRotation":"Réinitialiser la rotation","fixedNorth":"Nord fixe"},"mouseposition":{"east":"E","west":"O","north":"N","south":"S"},"overviewmap":{"toggle":"Basculer la carte d\'aperçu","error":"Erreur lors du chargement de la carte d\'aperçu"},"attribution":{"defaultnrcan":"© Sa Majesté le Roi du Chef du Canada, représentée par le ministre des Ressources naturelle","tooltip":"Attribution"},"crosshair":"Utiliser les touches fléchées, + et - pour naviguer sur la carte, Entrée pour sélectionner et Shift+fléchées Haut et Bas pour modfier le déplacement."},"appbar":{"export":"Exporter","notifications":"Notification","no_notifications_available":"Aucune notification disponible","layers":"Couches","share":"Partager","version":"À propos de GéoView","repoLink":"Github","removeAllNotifications":"Effacer tout"},"legend":{"title":"Légende","removeLayer":"Retirer la couche","zoomTo":"Zoom sur la couche","addLayer":"Ajouter une couche","sortLayers":"Trier les couches","sort":"Trier","layerError":"La couche a une erreur...","layerLoading":"La couche se charge...","tableDetails":"Table détaillée","refreshLayer":"Rafraîchir la couche","highlightLayer":"Couche mise en évidence","subLayersCount":"{count} sous-couches","itemsCount":"{count} sur {totalCount} classes","legendInstructions":"Legend Instructions","noLayersAdded":"Aucune couche ajoutée","noLayersAddedDescription":"Ajoutez des couches à la carte en cliquant sur le bouton \'Couches\' et en sélectionnant les couches que vous souhaitez afficher."},"layers":{"title":"Couches","subLayersList":"Liste des sous-couches","finish":"Terminer","continue":"Continuer","back":"Retour","or":"ou","dropzone":"Déposer ici","upload":"Choisir un fichier","drop":"Déposer le fichier à télécharger","url":"Entrer l\'URL ou l\'identifiant Geocore","layer":"Couche","stepOne":"Ajouter un fichier ou entrer l\'URL/ l\'identifiant Geocore","stepTwo":"Sélectionner le format","stepThree":"Configurer la couche","stepFour":"Entrer le nom","service":"Type de service","name":"Nom","layerSelect":"Sélectionner couche(s)","errorEmpty":"ne peut être vide","errorNone":"Pas de fichier ou de source ajouté","errorFile":"Seuls les fichiers geoJSON, CSV et GeoPackage peuvent être utilisés","errorServer":"source n\'est pas valide","errorNotLoaded":"Une erreur s\'est produite lors du chargement de la couche","errorProj":"ne prend pas en charge la projection cartographique actuelle","only":"seulement","opacity":"Opacité","opacityMax":"Maximum du parent","reloadLayer":"Recharger la couche","visibilityIsAlways":"La visibilité est toujours activée","toggleVisibility":"Basculer la visibilité","toggleCollapse":"Basculer la fermeture","querying":"Requête en cours","layerAdded":"Couche __param__ ajoutée","instructionsNoLayersTitle":"Aucune couche visible","instructionsNoLayersBody":"Ajoutez des couches visibles sur la carte."},"details":{"title":"Détails","zoomTo":"Zoom à l\'élément","select":"Sélectionner l\'élément sur la carte","externalLink":"Lien externe","feature":"élément","clickOnMap":"Cliquer sur la carte","nextFeatureBtn":"Élément suivant","previousFeatureBtn":"Élément précédent","clearAllfeatures":"Déselctionner tout les Élément","keepFeatureSelected":"Garder l\'élément sélectionné","featureDetailsTitle":"Élément {count} sur {total}","featureDetailModalTitle":"Détails de l\'élément"},"lightbox":{"next":"Prochaine","previous":"Précédente","close":"Fermer","download":"Télécharger"},"keyboardnav":{"start":"Aller après l\'élément carte","end":"Aller avant l\'élément carte","focusdialog":{"title":"Navigation clavier","main":"Si activé, le focus sera verrouillé sur le visualiseur. \\nPour sortir, appuyez sur CTRL + Q.","button":{"enable":"Activer","skip":"Sauter"}}},"validation":{"layer":{"loadfailed":"Le chargement de la couche [__param__] a échoué sur la carte __param__.","notfound":"La sous couche __param__ de la couche __param__ n\'existe pas sur le sereur","createtwice":"On ne peut exécuter deux fois la méthode createGeoViewRasterLayers pour la couche __param__ sur la carte __param__","usedtwice":"Utilisation en double de l\'identifiant de couche [__param__] sur la carte __param__","multipleUUID":"Les couches GeoCore ne peuvent avoir qu\'un seul identifiant par couche."},"schema":{"notFound":"Une erreur de schéma a été trouvée, vérifiez la console pour voir ce qui ne va pas.","wrongPath":"Impossible de trouver le schéma ([__param__])"},"changeDisplayLanguageLayers":"Les couches ne peuvent être chargée(s) de nouveau car la configuration ne supporte pas ce langage","changeDisplayLanguage":"Seulement \'en\' et \'fr\' sont supporées","changeDisplayTheme":"Theme non supporté","changeDisplayProjection":"Projection non supportée","invalidConfig":"Configuration JSON non valide, configuration par défaut appliquée."},"exportModal":{"title":"Exporter la carte en PNG","cancelBtn":"Annuler","exportBtn":"Exporter","exportTitle":"Titre","approx":"approx"},"geolocator":{"title":"Géolocalisation","search":"Texte à rechercher","errorMessage":"Aucun résultat correspondant à","province":"Province","category":"Catégorie","clearFilters":"Effacer les filtres","noFilter":"Aucun Filtre"},"hovertooltip":{"alticon":"Symbol de l\'élément sélectionné"},"dataTable":{"title":"Données","icon":"ICÔNE","zoom":"ZOOM","details":"DÉTAILS","exportBtn":"Exporter","jsonExportBtn":"Télécharger GeoJSON","downloadAsCSV":"Télécharger CSV","filterMap":"Filtrer la carte","stopFilterMap":"Arrêt des filtres","rowsSelected":"{rowsSelected} sur {totalRows} ligne(s) sélectionnée(s)","rowsFiltered":"{rowsFiltered} sur {totalRows} ligne(s) filtrée(s)","enlargeBtn":"Agrandir","reduceBtn":"Réduire","features":"Élément(s)","featureFiltered":"élément filtré(s)","images":"Images","close":"Fermer","noFeatures":"inconnue..."},"geochart":{"noChartAvailable":"Cliquer sur une couche de la carte qui contient un graphique"},"guide":{"title":"Guide","errorMessage":"Désolé, impossible de trouver le document d\'aide!"},"footerBar":{"focusToMap":"Aller à la carte","focusToFooter":"Aller au pied de page","resizeTooltip":"Redimensionner","noTab":"Pas d\'onglet"}}');var s=n(6883);r.Ay.use(i.initReactI18next).init({debug:!1,lng:"en",fallbackLng:["en","fr"],supportedLngs:["en","fr"],interpolation:{escapeValue:!1},resources:{en:{translation:o},fr:{translation:a}},react:{useSuspense:!0}}).catch((function(e){s.vF.logPromiseFailed("in init in translation/i18n",e)}))},23853:(e,t,n)=>{"use strict";n.d(t,{KX:()=>i,NK:()=>o});var r=n(55723);n(55061);function i(e){return e}function o(e){if(!(e instanceof Object)||e instanceof Array)throw new Error("Can't convert parameter to TypeJsonObject! typeof = ".concat((0,r.A)(e)));return e}},82527:(e,t,n)=>{"use strict";n.d(t,{z:()=>w});var r=n(96880),i=n(13718),o=n(47280),a=n(74813),s=n.n(a);function l(e,t,n){c(e,t),t.set(e,n)}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t){return e.get(h(e,t))}function d(e,t,n){return e.set(h(e,t),n),n}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakSet,w=function(){return(0,o.A)((function e(t){var n,r;if((0,i.A)(this,e),c(n=this,r=b),r.add(n),l(this,p,void 0),l(this,f,void 0),l(this,g,void 0),l(this,m,void 0),l(this,y,void 0),l(this,v,void 0),t<=0)throw new Error("workersCount must be positive");d(f,this,t),d(p,this,t),d(g,this,[]),d(m,this,[]),h(b,this,k).call(this)}),[{key:"withLock",value:(t=(0,r.A)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h(b,this,C).call(this);case 2:return e.abrupt("return",h(b,this,x).call(this,t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"withLockRunAndForget",value:(e=(0,r.A)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h(b,this,C).call(this);case 2:h(b,this,x).call(this,t);case 3:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"awaitTerminate",value:function(){return u(p,this)0)){var e=function(){},t=new Promise((function(t){e=t}));return u(g,this).push(e),t}d(p,this,u(p,this)-1)}function E(){var e=h(b,this,S).call(this);if(e.length){var t=e.pop();t&&t()}else if(d(p,this,u(p,this)+1),u(p,this)>=u(f,this)){var n=u(y,this);h(b,this,k).call(this),n()}}function k(){var e=function(){};d(v,this,new Promise((function(t){e=t}))),d(y,this,e)}},26323:(e,t,n)=>{"use strict";n.d(t,{O:()=>K});var r=n(55723),i=n(13718),o=n(47280),a=n(42432),s=n(87120),l=n.n(s),c=n(79950),u=n.n(c),d=n(4401),h=n(65372),p=n(93555),f=n(92187),g=n(73611),m=n(42942),y=n(66582),v=n(4078),b=n(85849),w=n(41506),x=n(44894),A=n(2265),S=n(23853),C=n(51640),E=n(34119),k=n(6883),T=n(76200);const _=JSON.parse('{"$id":"https://cgpv/schema","$schema":"http://json-schema.org/draft-07/schema#","title":"GeoView Core Config Schema","type":"object","version":1,"comments":"Configuration for GeoView core packages, each packages manages it own schema. It correspond to the TypeMapFeaturesInstance type.","additionalProperties":false,"definitions":{"TypeLocalizedString":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"en":{"type":"string","description":"The English version of the string."},"fr":{"type":"string","description":"The French version of the string. "}}},"TypeFeatureInfoLayerConfig":{"additionalProperties":false,"type":"object","properties":{"queryable":{"type":"boolean","default":true,"description":"Allow querying. Default = false."},"nameField":{"$ref":"#/definitions/TypeLocalizedString","description":"The display field (English/French) of the layer. If it is not present the viewer will make an attempt to find the first valid field."},"outfields":{"$ref":"#/definitions/TypeLocalizedString","description":"A comma separated list of attribute names (English/French) that should be requested on query (all by default)."},"fieldTypes":{"type":"string","description":"A comma separated list of types. Type at index i is associated to the variable at index i."},"aliasFields":{"$ref":"#/definitions/TypeLocalizedString","description":"A comma separated list of attribute names (English/French) that should be use for alias. If empty, no alias will be set if not found."}},"required":["queryable"]},"TypeFeatureInfoNotQueryable":{"additionalProperties":false,"type":"object","properties":{"queryable":{"type":"boolean","const":false,"description":"Do not allow querying."}},"required":["queryable"]},"TypeStrokeSymbolConfig":{"minProperties":1,"additionalProperties":false,"type":"object","description":"Stroke style for vector features.","properties":{"color":{"type":"string"},"lineStyle":{"enum":["dash","dash-dot","dash-dot-dot","dot","longDash","longDash-dot","null","shortDash","shortDash-dot","shortDash-dot-dot","solid"]},"width":{"type":"number"}}},"TypeLineStringVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["lineString"]},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"}},"required":["type","stroke"]},"TypePolygonVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["filledPolygon"]},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"paternSize":{"type":"number","description":"Distance between patern lines. Default = 8"},"paternWidth":{"type":"number","description":"Patern line width.default = 1."},"fillStyle":{"enum":["solid","backwardDiagonal","cross","diagonalCross","forwardDiagonal","horizontal","null","vertical"],"description":"Kind of filling for vector features. Default = solid. "}},"required":["type","stroke"]},"TypeSimpleSymbolVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["simpleSymbol"]},"rotation":{"type":"number","description":"Symbol rotation in radians."},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"size":{"type":"number"},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"symbol":{"enum":["circle","+","diamond","square","triangle","X","star"]}},"required":["type","symbol"]},"TypeIconSymbolVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["iconSymbol"]},"mimeType":{"type":"string"},"src":{"type":"string"},"width":{"type":"integer","description":"Icon width in pixel."},"height":{"type":"integer","description":"Icon height in pixel."},"rotation":{"type":"number","description":"Icon rotation in radians."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."}},"required":["type","mimeType","src"]},"TypeSimpleStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["simple"]},"label":{"type":"string"},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}},"required":["styleType","label","settings"]},"TypeUniqueValueStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["uniqueValue"]},"defaultLabel":{"type":"string","description":"Label used if field/value association is not found."},"defaultVisible":{"type":"boolean","description":"Flag used to show/hide features associated to the default label (default: true)."},"defaultSettings":{"$ref":"#/definitions/TypeKindOfVectorSettings","description":"Settings used if field/value association is not found."},"fields":{"type":"array","items":{"type":"string"},"minItems":1},"uniqueValueStyleInfo":{"$ref":"#/definitions/TypeUniqueValueStyleInfo"}},"required":["styleType","fields","uniqueValueStyleInfo"]},"TypeUniqueValueStyleInfo":{"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"label":{"type":"string"},"visible":{"type":"boolean","description":"Flag used to show/hide features associated to the label (default: true)."},"values":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"minItems":1},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"minItems":1,"required":["label","values","options"]},"TypeClassBreakStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["classBreaks"]},"defaultLabel":{"type":"string","description":"Label used if field/value association is not found."},"defaultVisible":{"type":"boolean","description":"Flag used to show/hide features associated to the default label (default: true)."},"defaultSettings":{"$ref":"#/definitions/TypeKindOfVectorSettings","description":"Settings used if field/value association is not found."},"field":{"type":"string"},"classBreakStyleInfo":{"$ref":"#/definitions/TypeClassBreakStyleInfo"}},"required":["styleType","field","classBreakStyleInfo"]},"TypeClassBreakStyleInfo":{"additionalProperties":false,"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"label":{"type":"string"},"visible":{"type":"boolean","description":"Flag used to show/hide features associated to the label (default: true)."},"minValue":{"oneOf":[{"type":"string"},{"type":"number"}]},"maxValue":{"oneOf":[{"type":"string"},{"type":"number"}]},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"minItems":1,"required":["label","minValue","maxValue","settings"]},"TypeKindOfVectorSettings":{"oneOf":[{"$ref":"#/definitions/TypeLineStringVectorConfig"},{"$ref":"#/definitions/TypePolygonVectorConfig"},{"$ref":"#/definitions/TypeSimpleSymbolVectorConfig"},{"$ref":"#/definitions/TypeIconSymbolVectorConfig"}]},"TypeStyleSettings":{"oneOf":[{"$ref":"#/definitions/TypeSimpleStyleConfig"},{"$ref":"#/definitions/TypeUniqueValueStyleConfig"},{"$ref":"#/definitions/TypeClassBreakStyleConfig"}]},"TypeStyleConfig":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"Point":{"$ref":"#/definitions/TypeStyleSettings"},"LineString":{"$ref":"#/definitions/TypeStyleSettings"},"Polygon":{"$ref":"#/definitions/TypeStyleSettings"}}},"TypeLayerControls":{"additionalProperties":false,"type":"object","properties":{"highlight":{"type":"boolean","default":true},"hover":{"type":"boolean","default":true},"opacity":{"type":"boolean","default":true},"query":{"type":"boolean","default":true},"remove":{"type":"boolean","default":true},"table":{"type":"boolean","default":true},"visibility":{"type":"boolean","default":true},"zoom":{"type":"boolean","default":true}},"description":"Which UI controls are available."},"TypeLayerStates":{"additionalProperties":false,"type":"object","properties":{"visible":{"type":"boolean","default":true,"description":"Initial visibility setting."},"legendCollapsed":{"type":"boolean","description":"Is the layer\'s legend initially collapsed."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1,"description":"Initial opacity setting."},"hoverable":{"type":"boolean","description":"Is the layer hoverable."},"queryable":{"type":"boolean","description":"Is the layer queryable."}},"description":"Initial layer states."},"TypeLayerInitialSettings":{"additionalProperties":false,"type":"object","properties":{"controls":{"$ref":"#/definitions/TypeLayerControls","description":"The status of various controls for the layer (available/unavailable)."},"bounds":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The geographic bounding box that contains all the layer\'s features."},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"minZoom":{"type":"integer","minimum":0,"maximum":50,"description":"The minimum view zoom level (exclusive) above which this layer will be visible."},"maxZoom":{"type":"integer","minimum":0,"maximum":50,"description":"The maximum view zoom level (inclusive) above which this layer will be visible."},"className":{"type":"string","description":"A CSS class name to set to the layer element."},"states":{"$ref":"#/definitions/TypeLayerStates","description":"The status of initial states for the layer."}}},"TypeVectorSourceFormats":{"enum":["GeoJSON","EsriJSON","KML","WFS","featureAPI","GeoPackage","CSV"],"description":"The feature format used by the XHR feature loader when access path is set."},"TypeVectorSourceInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadataAccessPath will be assigned to it."},"postSettings":{"type":"object","properties":{"header":{"type":"object"},"data":{"type":"object"}}},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"dataProjection":{"type":"string","description":"The projection code of the source. Used only for GeoJSON format. Default value is EPSG:4326."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"strategy":{"enum":["all","bbox"],"default":"all","description":"The loading strategy to use. By default an all strategy is used, a one-off strategy which loads all features at once."},"separator":{"type":"string","description":"The character used to separate columns of csv file"}}},"TypeSourceImageWmsInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"serverType":{"$ref":"#/definitions/TypeOfServer","description":"The type of the remote WMS server. The default value is mapserver."},"style":{"oneOf":[{"type":"string","description":"Single style to apply"},{"type":"array","items":{"type":"string"},"description":"Array of style to choose."}]}}},"TypeOfServer":{"enum":["mapserver","geoserver","qgis"],"description":"The type of the remote WMS server. The default value is mapserver."},"TypeSourceImageStaticInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoNotQueryable"},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent of the static image. Called with [minX, minY, maxX, maxY] extent coordinates."}}},"TypeSourceImageEsriInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeEsriFormatParameter"},"transparent":{"type":"boolean","default":true,"description":"If true, the image will be exported with the background color of the map set as its transparent color. Only the .png and .gif formats support transparency."}}},"TypeEsriFormatParameter":{"enum":["png","jpg","gif","svg"],"default":"png","description":"The format of the exported image. The default format is png."},"TypeSourceTileInitialConfig":{"additionalProperties":false,"properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoNotQueryable"},"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}},"TypeTileGrid":{"additionalProperties":false,"type":"object","properties":{"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"origin":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided."},"resolutions":{"type":"array","items":{"type":"number"},"description":"Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1."},"tileSize":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"default":[256,256],"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided."}},"required":["origin","resolutions"]},"TypeVectorLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["CSV","GeoJSON","esriFeature","ogcWfs","ogcFeature","GeoPackage"]},"entryType":{"enum":["vector"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeVectorSourceInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeVectorTileLayerEntryConfig":{"additionalProperties":false,"type":"object","description":"Layer sources providing vector data divided into a tile grid.","properties":{"schemaTag":{"enum":["not used yet"]},"entryType":{"enum":["vector-tile"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeVectorTileSourceInitialConfig","description":"Information used to configure the source of a vector tile layer."},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeVectorTileSourceInitialConfig":{"additionalProperties":false,"type":"object","description":"Layer sources providing vector data divided into a tile grid.","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"format":{"enum":["GeoJSON","EsriJSON","KML","WFS","MVT","featureAPI"],"description":"The feature format used by the XHR feature loader when access path is set."},"dataProjection":{"type":"string","description":"The projection code of the source. Used only for GeoJSON format. Default value is EPSG:4326."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}},"TypeOgcWmsLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["ogcWms"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageWmsInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeEsriDynamicLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["esriDynamic"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageEsriInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeEsriImageLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["esriImage"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageEsriInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeImageStaticLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["imageStatic"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageStaticInitialConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeTileLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["ogcWms","xyzTiles","vectorTiles"]},"entryType":{"enum":["raster-tile"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceTileInitialConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeLayerEntryType":{"enum":["vector","vector-tile","raster-tile","raster-image","geoCore"],"description":"Layer entry data type."},"TypeLayerGroupEntryConfig":{"additionalProperties":false,"type":"object","description":"Entry used to define a layer Group.","properties":{"entryType":{"enum":["group"]},"layerId":{"type":"string","description":"The id of the layer group to display on the map."},"not":{"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."}},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer group (English/French)."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer group entries at creation time. Initial settings are inherited from the parent in the configuration tree."},"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}},"required":["entryType","layerId","listOfLayerEntryConfig"]},"TypeLayerEntryConfig":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorTileLayerEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"},{"$ref":"#/definitions/TypeOgcWmsLayerEntryConfig"},{"$ref":"#/definitions/TypeEsriDynamicLayerEntryConfig"},{"$ref":"#/definitions/TypeEsriImageLayerEntryConfig"},{"$ref":"#/definitions/TypeTileLayerEntryConfig"}]},"TypeListOfOgcWmsLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeOgcWmsLayerEntryConfig"}]}},"TypeListOfImageStaticLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeImageStaticLayerEntryConfig"}]}},"TypeListOfXyzTilesLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeTileLayerEntryConfig"}]}},"TypeListOfEsriDynamicLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeEsriDynamicLayerEntryConfig"}]}},"TypeListOfEsriFeatureLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfEsriImageLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeEsriImageLayerEntryConfig"}]}},"TypeListOfGeoJSONLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfOgcWfsLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfOgcFeatureLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfGeoPackageLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfCsvLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeCsvLayerEntryConfig"}]}},"TypeListOfLayerEntryConfig":{"type":"array","minItems":1},"TypeMapConfig":{"additionalProperties":false,"type":"object","properties":{"basemapOptions":{"$ref":"#/definitions/TypeBasemapOptions"},"interaction":{"$ref":"#/definitions/TypeInteraction"},"listOfGeoviewLayerConfig":{"$ref":"#/definitions/TypeListOfGeoviewLayerConfig"},"viewSettings":{"$ref":"#/definitions/TypeViewSettings"},"highlightColor":{"$ref":"#/definitions/TypeHighlightColors"},"overlayObjects":{"$ref":"#/definitions/TypeOverlayObjects"},"extraOptions":{"type":"object","description":"Additional options used for OpenLayers map options"}},"required":["basemapOptions","interaction","viewSettings"]},"TypeBasemapOptions":{"additionalProperties":false,"type":"object","properties":{"basemapId":{"$ref":"#/definitions/TypeBasemapId"},"shaded":{"type":"boolean","default":true,"description":"Enable or disable shaded basemap (if basemap id is set to shaded then this should be false)."},"labeled":{"type":"boolean","default":true,"description":"Enable or disable basemap labels"}},"required":["basemapId","shaded","labeled"]},"TypeBasemapId":{"enum":["transport","osm","simple","nogeom","shaded","imagery"],"default":"transport","description":"Id of the basemap to use."},"TypeInteraction":{"enum":["static","dynamic"],"default":"dynamic","description":"If map is dynamic (pan/zoom) or static to act as a thumbnail (no nav bar)."},"TypeHighlightColors":{"enum":["black","white","red","green"],"default":"black","description":"Color to use for feature highlights."},"TypeOverlayObjects":{"type":"object","properties":{"pointMarkers":{"$ref":"#/definitions/TypePointMarkers"}}},"TypePointMarkers":{"type":"object","patternProperties":{"[^]*":{"type":"array","items":{"$ref":"#/definitions/TypePointMarker"}}}},"TypePointMarker":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string","description":"ID for point marker. Must be unique in group."},"coordinate":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"description":"The coordinates of the marker."},"color":{"type":"string","default":"green","description":"Marker color."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"projection":{"type":"number","description":"The projection code of the coordinates. Default value is 4326."}},"required":["id","coordinate"]},"TypeListOfGeoviewLayerConfig":{"description":"List of GeoView Layers in the order which they should be added to the map.","type":"array","additionalProperties":false,"items":{"anyOf":[{"$ref":"#/definitions/TypeGeoviewLayerConfig"},{"$ref":"#/definitions/TypeGeoCoreLayerConfig"}]}},"TypeGeoviewLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"type":"string","description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\')."},"geoviewLayerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"metadataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The GeoView layer access path (English/French)."},"geoviewLayerType":{"$ref":"#/definitions/TypeGeoviewLayerType","description":"Type of GeoView layer."},"serviceDateFormat":{"type":"string","description":"Date format used by the service endpoint."},"externalDateFormat":{"type":"string","description":"Date format used by the getFeatureInfo to output date variable."},"isTimeAware":{"type":"boolean","description":"Flag to mention if layer will use its time dimension if provided. Used to remove a layer from time enabled functions like time slider."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the GeoView layer at creation time."},"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The layer entries to use from the GeoView layer."}},"required":["geoviewLayerType","listOfLayerEntryConfig"]},"TypeGeoCoreLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"type":"string","description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\')."},"geoviewLayerType":{"$ref":"#/definitions/TypeGeoCoreLayerType","description":"Type of GeoCore layer."},"geoviewLayerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the GeoView layer at creation time."}},"required":["geoviewLayerId","geoviewLayerType"]},"TypeGeoviewLayerType":{"type":"string","items":{"enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","GeoPackage","xyzTiles","ogcFeature","ogcWfs","ogcWms","imageStatic","vectorTiles"]},"description":"Type of GeoView layer."},"TypeGeoCoreLayerType":{"type":"string","items":{"enum":["geoCore"]},"description":"Type of GeoCore layer."},"TypeViewSettings":{"additionalProperties":false,"type":"object","properties":{"initialView":{"$ref":"#/definitions/TypeInitialViewSettings","description":"Settings for the initial viewing area of the map."},"enableRotation":{"type":"boolean","default":true,"description":"Enable rotation. If false, a rotation constraint that always sets the rotation to zero is used."},"maxExtent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"default":[-125,30,-60,89],"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"minZoom":{"type":"integer","description":"The minimum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","minimum":0,"maximum":50},"maxZoom":{"type":"integer","description":"The maximum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","minimum":0,"maximum":50},"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes"},"rotation":{"type":"integer","minimum":-360,"maximum":360,"default":0,"description":"The initial rotation for the view in degree (positive rotation clockwise, 0 means North). Will be converted to radiant by the viewer."}}},"TypeInitialViewSettings":{"additionalProperties":false,"type":"object","maxItems":1,"properties":{"zoomAndCenter":{"$ref":"#/definitions/TypeZoomAndCenter"},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent for the initial view. Called with [minX, minY, maxX, maxY] extent coordinates."},"layerIds":{"type":"array","items":{"type":"string"},"description":"Geoview layer ID(s) or layer path(s) of layer(s) to use as initial map focus. If empty, will use all layers."}}},"TypeZoomAndCenter":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":28,"default":3.5,"description":"Initial map zoom level. Zoom level are define by the basemap zoom levels. Levels between whole numbers are supported to fine tune initial view."},[{"type":"number","minimum":-160,"maximum":160,"default":-90,"description":"Initial longitude value for map center."},{"type":"number","minimum":-80,"maximum":80,"default":60,"description":"Initial latitude value for map center."}]],"description":"Initial zoom and center coordinates to set map view."},"TypeValidMapProjectionCodes":{"enum":[3978,3857],"default":3978,"description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"TypeNavBarProps":{"type":"array","uniqueItems":true,"items":{"enum":["zoom","fullscreen","home","location"]},"default":["zoom","fullscreen","home"],"description":"Controls available on the navigation bar.","minItems":0},"TypeFooterBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"type":"object","description":"Available tabs","properties":{"core":{"type":"array","items":{"type":"string","enum":["legend","layers","details","data-table","time-slider","geochart"]},"minItems":1,"default":["legend","layers","details","data-table"],"uniqueItems":true,"description":"Default core tabs of footer bar to use. NOTE: config from packages for time-slider and geochart are in the same loaction as core config (<>-<>.json)."},"custom":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"defaultTabs":{"type":"string"},"contentHTML":{"type":"string"}}},"minItems":0,"default":[],"uniqueItems":true,"description":"Custom tabs of footer bar to use"}},"additionalProperties":false},"collapsed":{"type":"boolean","default":false,"description":"State of footer bar when map is loaded (expanded or collapsed)"},"selectedTab":{"type":"string","enum":["legend","layers","details","data-table","time-slider","geochart"],"description":"Footer tab to be selected at map load"}},"required":["tabs"]},"TypeAppBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"type":"object","description":"Available tabs - controls","properties":{"core":{"type":"array","items":{"type":"string","enum":["geolocator","export","basemap-panel","geochart","details","legend","guide"]},"minItems":0,"default":["geolocator"],"uniqueItems":true,"description":"Default core tabs of app-bar to use. NOTE: config from packages like geochart are in the same loaction as core config (<>-<>.json)."}},"additionalProperties":false},"collapsed":{"description":"State of app bar when map is loaded (expanded or collapsed)","type":"boolean","default":true},"selectedTab":{"type":"string","enum":["geolocator","basemap-panel","geochart","details","legend","guide"],"description":"App bar tab to be selected at map load"}},"required":["tabs"]},"TypeOverviewMapProps":{"type":"object","additionalProperties":false,"properties":{"hideOnZoom":{"type":"number","minimum":0,"maximum":10,"default":0,"description":"Minimum zoom level to show overview map"}}},"TypeMapComponents":{"type":"array","uniqueItems":true,"items":{"enum":["overview-map","north-arrow"]},"default":["overview-map","north-arrow"],"description":"Core components to initialize on viewer load. The schema for those are inside this file.","minItems":0},"TypeMapCorePackages":{"type":"array","uniqueItems":true,"items":{"enum":["swiper"]},"default":[],"description":"Core map packages to initialize on viewer load. The schema for those are on their own package. NOTE: config from packages are in the same loaction as core config (<>-<>.json).","minItems":0},"TypeExternalPackages":{"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"name":{"type":"string","description":"External Package name. The name must be identical to the window external package object to load."},"configUrl":{"type":"string","description":"The url to the external package configuration setting. The core package will read the configuration and pass it inside the package."}},"required":["name"]},"default":[],"description":"List of external packages to initialize on viewer load.","minItems":0},"TypeServiceUrls":{"additionalProperties":false,"type":"object","description":"Service endpoint urls","properties":{"geocoreUrl":{"type":"string","default":"https://geocore.api.geo.ca","description":"Service end point to access API for layers specification (loading and plugins parameters). By default it is GeoCore but can be another endpoint with similar output."},"proxyUrl":{"type":"string","description":"An optional proxy to be used for dealing with same-origin issues. URL must either be a relative path on the same server or an absolute path on a server which sets CORS headers."},"geolocator":{"type":"string","description":"Service end point to access geo location of searched value."}},"required":["geocoreUrl"]},"TypeDisplayLanguage":{"enum":["en","fr"],"description":"Display languages supported."},"TypeLocalizedLanguages":{"enum":["en","fr"],"description":"ISO 639-1 code indicating the languages supported by the configuration file."},"TypeListOfLocalizedLanguages":{"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeLocalizedLanguages"},"default":["en","fr"],"description":"ISO 639-1 code indicating the languages supported by the configuration file. It will use value(s) provided here to access bilangual configuration nodes. For value(s) provided here, each bilingual configuration node MUST provide a value.","minItems":1},"TypeValidVersions":{"enum":["1.0"],"description":"The schema version that can be used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer."},"TypeGlobalSettings":{"additionalProperties":false,"type":"object","description":"Universal map settings","properties":{"canRemoveSublayers":{"type":"boolean","description":"Whether or not sublayers can be removed from layer groups. Default = true."}}},"TypeMapFeaturesInstance":{"description":"The map features configuration. This type is used by the IsValidTypeMapFeaturesInstance method coded in config-validation.ts file. It does the validation down to the list of layer entry config.","additionalProperties":false,"type":"object","properties":{"mapId":{"type":"string"},"map":{"$ref":"#/definitions/TypeMapConfig"},"theme":{"enum":["dark","light","geo.ca"],"default":"dark","description":"Theme style the viewer."},"navBar":{"$ref":"#/definitions/TypeNavBarProps"},"footerBar":{"$ref":"#/definitions/TypeFooterBarProps"},"appBar":{"$ref":"#/definitions/TypeAppBarProps"},"overviewMap":{"$ref":"#/definitions/TypeOverviewMapProps"},"components":{"$ref":"#/definitions/TypeMapComponents"},"corePackages":{"$ref":"#/definitions/TypeMapCorePackages"},"externalPackages":{"$ref":"#/definitions/TypeExternalPackages"},"serviceUrls":{"$ref":"#/definitions/TypeServiceUrls"},"schemaVersionUsed":{"$ref":"#/definitions/TypeValidVersions"},"globalSettings":{"$ref":"#/definitions/TypeGlobalSettings"}},"required":["map"]}}}');var O,P=n(17921),I=n(30762),M=n(7383),L=n(74388),R=n(7358),j=n(12989),F=n(58420),D=n(6552),N=n(3248),B=n(73095),z=n(28126),V=n(58118),$=n(36267),G=n(68705);function U(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function W(e,t,n){return e.set(q(e,t),n),n}function q(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var H=new WeakMap,Y=new WeakSet,K=function(){function e(t){var n,r;(0,i.A)(this,e),U(n=this,r=Y),r.add(n),function(e,t,n){U(e,t),t.set(e,n)}(this,H,void 0),(0,a.A)(this,"displayLanguage",void 0),W(H,this,(0,T.generateId)()),this.displayLanguage=t}return(0,o.A)(e,[{key:"mapId",get:function(){return t=this,(e=H).get(q(e,t));var e,t},set:function(e){W(H,this,e)}},{key:"validateMapConfigAgainstSchema",value:function(t){var n=new(l())({strict:!1,allErrors:!1});n.compile(_);for(var r=!0,i=0;i{"use strict";n.d(t,{d:()=>b});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(42432),u=n(40215);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function f(e,t,n){return e.set(m(e,t),n),n}function g(e,t){return e.get(m(e,t))}function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var y=new WeakMap,v=new WeakMap,b=function(e){function t(e){var n;return(0,r.A)(this,t),n=d(this,t,[e]),(0,c.A)(n,"layerIdExtension",void 0),p(n,y,void 0),p(n,v,void 0),(0,c.A)(n,"filterEquation",void 0),(0,c.A)(n,"legendFilterIsOff",!1),(0,c.A)(n,"source",void 0),(0,c.A)(n,"style",void 0),"style"in n||(n.style=void 0),Object.assign(n,e),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getServiceMetadata",value:function(){return g(y,this)}},{key:"setServiceMetadata",value:function(e){f(y,this,e)}},{key:"getLayerMetadata",value:function(){return g(v,this)}},{key:"setLayerMetadata",value:function(e){f(v,this,e)}},{key:"getTypeGeometries",value:function(){return Object.keys(this.style||{})}},{key:"getFirstStyleSettings",value:function(){var e=this.getTypeGeometries();if(e.length>0)return this.style[e[0]]}},{key:"onSerialize",value:function(){var e,n,r,i,o,l=(e=t,n="onSerialize",r=this,i=3,o=(0,s.A)((0,a.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);return l.initialSettings=this.initialSettings,l.source=this.source,l}}])}(u.c)},40215:(e,t,n)=>{"use strict";n.d(t,{c:()=>y});var r,i=n(13718),o=n(47280),a=n(42432),s=n(2358),l=n(2265),c=n(6883);function u(e,t,n){d(e,t),t.set(e,n)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(p(e,t))}function p(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,g=new WeakMap,m=new WeakSet,y=function(){function e(t){var n,r;(0,i.A)(this,e),d(n=this,r=m),r.add(n),(0,a.A)(this,"_layerId",""),(0,a.A)(this,"_layerPath",""),(0,a.A)(this,"_layerStatus","newInstance"),(0,a.A)(this,"layerIdExtension",void 0),(0,a.A)(this,"layerName",void 0),(0,a.A)(this,"schemaTag",void 0),(0,a.A)(this,"entryType",void 0),(0,a.A)(this,"geoviewLayerConfig",{}),(0,a.A)(this,"initialSettings",{}),(0,a.A)(this,"isMetadataLayerGroup",void 0),(0,a.A)(this,"parentLayerConfig",void 0),u(this,f,!1),u(this,g,[]),Object.assign(this,t),this.geoviewLayerConfig?this._layerPath=v.call(e,t):c.vF.logError("Couldn't calculate layerPath because geoviewLayerConfig has an invalid value")}return(0,o.A)(e,[{key:"layerId",get:function(){return this._layerId},set:function(t){this._layerId=t,this._layerPath=v.call(e,this)}},{key:"layerPath",get:function(){return this._layerPath=v.call(e,this),this._layerPath}},{key:"layerStatus",get:function(){return this._layerStatus},set:function(e){if("loaded"===e&&!(0,l.KD)(this)&&!this.isGreaterThanOrEqualTo("loading")&&!h(f,this))return n=this,r=!0,void(t=f).set(p(t,n),r);var t,n,r;this.isGreaterThanOrEqualTo(e)||(this._layerStatus=e,p(m,this,b).call(this,{layerStatus:e})),"processed"===e&&h(f,this)&&(this.layerStatus="loaded")}},{key:"isGreaterThanOrEqualTo",value:function(e){return w._[this.layerStatus]>=w._[e]}},{key:"serialize",value:function(){return this.onSerialize()}},{key:"onSerialize",value:function(){return{layerName:this.layerName,layerId:this.layerId,layerIdExtension:this.layerIdExtension,schemaTag:this.schemaTag,entryType:this.entryType,layerStatus:this.layerStatus,isMetadataLayerGroup:this.isMetadataLayerGroup}}},{key:"onLayerStatusChanged",value:function(e){s.A.onEvent(h(g,this),e)}},{key:"offLayerStatusChanged",value:function(e){s.A.offEvent(h(g,this),e)}}],[{key:"allLayerStatusAreGreaterThanOrEqualTo",value:function(e,t){var n=this;return!t.find((function(t){return(0,l.KD)(t)?!n.allLayerStatusAreGreaterThanOrEqualTo(e,t.listOfLayerEntryConfig):!t.isGreaterThanOrEqualTo(e||"newInstance")}))}}])}();function v(e,t){var n=t;return void 0===n&&(n=void 0===e.layerIdExtension?e.layerId:"".concat(e.layerId,".").concat(e.layerIdExtension)),e.parentLayerConfig?p(r,this,v).call(this,e.parentLayerConfig,"".concat(e.parentLayerConfig.layerId,"/").concat(n)):"".concat(e.geoviewLayerConfig.geoviewLayerId,"/").concat(n)}function b(e){s.A.emitEvent(this,h(g,this),e)}r=y;var w={_:{newInstance:10,registered:20,processing:30,processed:40,loading:50,loaded:60,error:70}}},36267:(e,t,n)=>{"use strict";n.d(t,{x:()=>p});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(42432),u=n(2265);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n;return(0,r.A)(this,t),n=d(this,t,[e]),(0,c.A)(n,"entryType",u.hJ.GROUP),(0,c.A)(n,"listOfLayerEntryConfig",[]),Object.assign(n,e),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"onSerialize",value:function(){var e,n,r,i,o,l=(e=t,n="onSerialize",r=this,i=3,o=(0,s.A)((0,a.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);return l.listOfLayerEntryConfig=this.listOfLayerEntryConfig.map((function(e){return e.serialize()})),l}}])}(n(40215).c)},28126:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;return(0,i.A)(this,t),n=h(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.ESRI_DYNAMIC),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{Q:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;if((0,i.A)(this,t),n=h(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.ESRI_IMAGE),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),Number.isNaN(n.layerId))throw new Error("The layer entry with layerId equal to ".concat(n.layerPath," must be an integer string"));return n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{V:()=>p});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n;if((0,i.A)(this,t),n=d(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.IMAGE_STATIC),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),!n.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(42930).d)},3248:(e,t,n)=>{"use strict";n.d(t,{Q:()=>g});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265),d=n(42930),h=n(76200);function p(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,f()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var g=function(e){function t(e){var n;return(0,i.A)(this,t),n=p(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.WMS),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=(0,h.createLocalizedString)(""),".xml"!==n.geoviewLayerConfig.metadataAccessPath.en.slice(-4).toLowerCase()&&(n.source.dataAccessPath.en=n.geoviewLayerConfig.metadataAccessPath.en),".xml"!==n.geoviewLayerConfig.metadataAccessPath.fr.slice(-4).toLowerCase()&&(n.source.dataAccessPath.fr=n.geoviewLayerConfig.metadataAccessPath.fr)),n.source.serverType||(n.source.serverType="mapserver"),n}return(0,s.A)(t,e),(0,r.A)(t)}(d.d)},74388:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432);function c(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}var d=function(e){function t(e){var n;if((0,i.A)(this,t),n=c(this,t,[e]),(0,l.A)(n,"tileGrid",void 0),Object.assign(n,e),!e.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(40824).q)},6552:(e,t,n)=>{"use strict";n.d(t,{m:()=>u});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270);function l(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,c()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var u=function(e){function t(e){var n;if((0,i.A)(this,t),n=l(this,t,[e]),Object.assign(n,e),!n.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(40824).q)},40824:(e,t,n)=>{"use strict";n.d(t,{q:()=>h});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(2265);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;return(0,i.A)(this,t),n=u(this,t,[e]),(0,l.A)(n,"entryType",c.hJ.RASTER_TILE),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(42930).d)},39453:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(2265);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;return(0,i.A)(this,t),n=u(this,t,[e]),(0,l.A)(n,"entryType",c.hJ.VECTOR),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(42930).d)},7383:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(39453),u=n(2265),d=n(8058);function h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n,r,o,a,s;if((0,i.A)(this,t),s=h(this,t,[e]),(0,l.A)(s,"valueSeparator",","),Object.assign(s,e),!(s.geoviewLayerConfig.metadataAccessPath||null!==(n=s.source)&&void 0!==n&&n.dataAccessPath))throw new Error("dataAccessPath is mandatory for GeoView layer ".concat(s.geoviewLayerConfig.geoviewLayerId," of type CSV when the metadataAccessPath is undefined."));if(void 0===s.entryType&&(s.entryType=u.hJ.VECTOR),s.source||(s.source={format:"CSV",separator:","}),s.source.format||(s.source.format="CSV"),s.source.separator||(s.source.separator=","),!s.source.dataAccessPath){var c=s.geoviewLayerConfig.metadataAccessPath,p=c.en,f=c.fr;p=p.split("/").length>1?p.split("/").slice(0,-1).join("/"):"./",f=f.split("/").length>1?f.split("/").slice(0,-1).join("/"):"./",s.source.dataAccessPath={en:p,fr:f}}return null!==(r=s.source.dataAccessPath.en)&&void 0!==r&&r.startsWith("blob")&&(null===(o=s.source.dataAccessPath.en)||void 0===o||!o.endsWith("/"))||null!==(a=s.source.dataAccessPath.en)&&void 0!==a&&a.toUpperCase().endsWith(".CSV")||(s.source.dataAccessPath.en=s.source.dataAccessPath.en.endsWith("/")?"".concat(s.source.dataAccessPath.en).concat(s.layerId):"".concat(s.source.dataAccessPath.en,"/").concat(s.layerId),s.source.dataAccessPath.fr=s.source.dataAccessPath.fr.endsWith("/")?"".concat(s.source.dataAccessPath.fr).concat(s.layerId):"".concat(s.source.dataAccessPath.fr,"/").concat(s.layerId)),s.source.dataProjection||(s.source.dataProjection=d.M.PROJECTION_NAMES.LNGLAT),s}return(0,s.A)(t,e),(0,r.A)(t)}(c.T)},12989:(e,t,n)=>{"use strict";n.d(t,{h:()=>h});var r=n(42432),i=n(47280),o=n(13718),a=n(75583),s=n(96645),l=n(94270);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,d()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;if((0,o.A)(this,t),n=u(this,t,[e]),Object.assign(n,e),Number.isNaN(n.layerId))throw new Error("The layer entry with layerId equal to ".concat(n.layerPath," must be an integer string"));return n.source||(n.source={format:"EsriJSON"}),n.source.format||(n.source.format="EsriJSON"),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{d:()=>p});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(39453),c=n(2265),u=n(8058);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n,r,o,a,s,l,h;if((0,i.A)(this,t),h=d(this,t,[e]),Object.assign(h,e),!(h.geoviewLayerConfig.metadataAccessPath||null!==(n=h.source)&&void 0!==n&&n.dataAccessPath))throw new Error("dataAccessPath is mandatory for GeoView layer ".concat(h.geoviewLayerConfig.geoviewLayerId," of type GeoJSON when the metadataAccessPath is undefined."));if(void 0===h.entryType&&(h.entryType=c.hJ.VECTOR),h.source||(h.source={format:"GeoJSON"}),h.source.format||(h.source.format="GeoJSON"),!h.source.dataAccessPath){var p=h.geoviewLayerConfig.metadataAccessPath,f=p.en,g=p.fr;f=f.split("/").length>1?f.split("/").slice(0,-1).join("/"):"./",g=g.split("/").length>1?g.split("/").slice(0,-1).join("/"):"./",h.source.dataAccessPath={en:f,fr:g}}return null!==(r=h.source.dataAccessPath.en)&&void 0!==r&&r.startsWith("blob")&&(null===(o=h.source.dataAccessPath.en)||void 0===o||!o.endsWith("/"))||null!==(a=h.source.dataAccessPath.en)&&void 0!==a&&a.toUpperCase().endsWith(".JSON")||null!==(s=h.source.dataAccessPath.en)&&void 0!==s&&s.toUpperCase().endsWith(".GEOJSON")||null!==(l=h.source.dataAccessPath.en)&&void 0!==l&&l.toUpperCase().endsWith("=JSON")||(h.source.dataAccessPath.en=h.source.dataAccessPath.en.endsWith("/")?"".concat(h.source.dataAccessPath.en).concat(h.layerId):"".concat(h.source.dataAccessPath.en,"/").concat(h.layerId),h.source.dataAccessPath.fr=h.source.dataAccessPath.fr.endsWith("/")?"".concat(h.source.dataAccessPath.fr).concat(h.layerId):"".concat(h.source.dataAccessPath.fr,"/").concat(h.layerId)),h.source.dataProjection||(h.source.dataProjection=u.M.PROJECTION_NAMES.LNGLAT),h}return(0,s.A)(t,e),(0,r.A)(t)}(l.T)},58420:(e,t,n)=>{"use strict";n.d(t,{X:()=>p});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(39453),c=n(2265),u=n(8058);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n,r,o,a,s;if((0,i.A)(this,t),s=d(this,t,[e]),Object.assign(s,e),void 0===s.entryType&&(s.entryType=c.hJ.VECTOR),s.source||(s.source={format:"GeoPackage"}),s.source.format||(s.source.format="GeoPackage"),!s.source.dataAccessPath){var l=s.geoviewLayerConfig.metadataAccessPath,h=l.en,p=l.fr;h=h.split("/").length>1?h.split("/").slice(0,-1).join("/"):"./",p=p.split("/").length>1?p.split("/").slice(0,-1).join("/"):"./",s.source.dataAccessPath={en:h,fr:p}}return null!==(n=s.source.dataAccessPath.en)&&void 0!==n&&n.startsWith("blob")&&(null===(r=s.source.dataAccessPath.en)||void 0===r||!r.endsWith("/"))||null!==(o=s.source.dataAccessPath.en)&&void 0!==o&&o.toLowerCase().endsWith(".gpkg")||(s.source.dataAccessPath.en=s.source.dataAccessPath.en.endsWith("/")?"".concat(s.source.dataAccessPath.en).concat(s.layerId):"".concat(s.source.dataAccessPath.en,"/").concat(s.layerId),s.source.dataAccessPath.fr=s.source.dataAccessPath.fr.endsWith("/")?"".concat(s.source.dataAccessPath.fr).concat(s.layerId):"".concat(s.source.dataAccessPath.fr,"/").concat(s.layerId)),null!==(a=s)&&void 0!==a&&null!==(a=a.source)&&void 0!==a&&a.dataProjection||(s.source.dataProjection=u.M.PROJECTION_NAMES.LNGLAT),s}return(0,s.A)(t,e),(0,r.A)(t)}(l.T)},30762:(e,t,n)=>{"use strict";n.d(t,{j:()=>f});var r=n(42432),i=n(47280),o=n(13718),a=n(75583),s=n(96645),l=n(94270),c=n(39453),u=n(8058);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,p()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n,i;return(0,o.A)(this,t),i=h(this,t,[e]),Object.assign(i,e),i.source||(i.source={format:"featureAPI"}),null!==(n=i)&&void 0!==n&&null!==(n=n.source)&&void 0!==n&&n.format||(i.source.format="featureAPI"),i.source.dataAccessPath||(i.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{q:()=>f});var r=n(42432),i=n(47280),o=n(13718),a=n(75583),s=n(96645),l=n(94270),c=n(39453),u=n(8058);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,p()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;return(0,o.A)(this,t),n=h(this,t,[e]),Object.assign(n,e),n.source||(n.source={format:"WFS"}),n.source.format||(n.source.format="WFS"),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{$r:()=>d,Ax:()=>f,DF:()=>h,Dy:()=>r,Fz:()=>g,LK:()=>p,MK:()=>l,RI:()=>c,Tg:()=>s,Wj:()=>a,Xl:()=>o,un:()=>i,vB:()=>m,xb:()=>u});var r="https://github.com/Canadian-Geospatial-Platform/geoview",i={url:"https://geo.ca/",text:"Geo.ca"},o=500,a=11,s=[90,-95],l=[100,100,100,100],c={NEW_INSTANCE:"newInstance",PROCESSING:"processing",LOADING:"loading",LOADED:"loaded",ERROR:"error"},u=["ArrowUp","ArrowRight","ArrowDown","ArrowLefts"],d=[].concat(u,["Space"]),h={LEGEND:"legend",DETAILS:"details",LAYERS:"layers",DATA_TABLE:"data-table",GUIDE:"guide",TIME_SLIDER:"time-slider",GEO_CHART:"geochart"},p={lessThanOrEqualTo:"<=",lessThan:"<",greaterThan:">",greaterThanOrEqualTo:">=",empty:"is null",notEmpty:"is not null",between:">",betweenInclusive:">=",equals:"=",notEquals:"<>"},f={greaterThan:"> date 'value'",greaterThanOrEqualTo:">= date 'value'",lessThan:"< date 'value'",lessThanOrEqualTo:"<= date 'value'",equals:"= date 'value'",empty:"is null",notEmpty:"is not null",notEquals:"<> date 'value'",between:"> date 'value'",betweenInclusive:">= date 'value'"},g={contains:"(filterId) like ('%value%')",startsWith:"(filterId) like ('value%')",endsWith:"(filterId) like ('%value')",empty:"(filterId) is null",notEmpty:"(filterId) is not null",equals:"filterId = 'value'",notEquals:"filterId <> 'value'"},m={APP_BAR:"appBar",FOOTER_BAR:"footerBar"}},25079:(e,t,n)=>{"use strict";n.d(t,{P:()=>E});var r=n(29067),i=n(55723),o=n(55907),a=n(13718),s=n(47280),l=n(85315),c=n.n(l),u=n(92288),d=n.n(u),h=n(14636),p=n.n(h),f=n(1360),g=n.n(f);n(58765),n(99064);function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}c().extend(p());var y=[[0,1,2,3],[0,1,2,3],["-","-","T","+","00:00"]],v={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD"},b={hour:"THHZ",minute:"THH:mmZ",second:"THH:mm:ssZ"},w={esriTimeUnitsHours:"H",esriTimeUnitsDays:"D",esriTimeUnitsWeeks:"W",esriTimeUnitsMonths:"M",esriTimeUnitsYears:"Y"};c().extend(d()),c().extend(p()),c().extend(g());var x="Invalid Date",A="Invalid Time Dimension Duration",S=function(e){return c()(e).isValid()},C=function(e){return c().isDuration(c().duration(e))},E=function(){function e(){(0,a.A)(this,e)}return(0,s.A)(e,null,[{key:"convertToLocal",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (convertToLocal)"));return c()(e).local().format()}},{key:"formatDate",value:function(e,t){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (convertToLocal)"));return c()(e).format(t)}},{key:"convertToUTC",value:function(e){return"string"!=typeof e||S(e)?c()(e).utc(!1).format():""}},{key:"format",value:function(e,t,n){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (format)"));var r="".concat(v[t]).concat(void 0!==n?b[n]:"");return c()(e).utc(!1).format(r)}},{key:"convertToMilliseconds",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (convertToMilliseconds)"));return c()(e).valueOf()}},{key:"convertMilisecondsToDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DDTHH:mm:ss";return c()(e).utc(!1).format(t)}},{key:"extractDateFormat",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (extractDateFormat)"));var t,n,r=e.split("T"),i=(0,o.A)(r,2),a=i[0],s=i[1];if(t=3===a.split("-").length?"day":2===a.split("-").length?"month":"year",s){var l=s.slice(0,8).split(":").length;return n=3===l?"second":2===l?"minute":"hour","".concat(v[t]).concat(b[n])}return v[t]}},{key:"createDimensionFromESRI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.startTimeField,i=e.timeExtent,o=e.timeInterval,a=e.timeIntervalUnits,s="".concat(this.convertMilisecondsToDate(i[0]),"Z/").concat(this.convertMilisecondsToDate(i[1]),"Z").concat((t="",void 0!==a&&void 0!==o&&void 0!==w[a]&&(t="/P".concat(o).concat(w[a])),t)),l=this.createRangeOGC(s);return{field:r,default:l.range[l.range.length-1],unitSymbol:"",range:l,nearestValues:""===r?"absolute":"discrete",singleHandle:n}}},{key:"createDimensionFromOGC",value:function(e){var t="object"===(0,i.A)(e)?e:JSON.parse(e);return{field:t.name,default:t.default,unitSymbol:t.unitSymbol||"",range:this.createRangeOGC(t.values),nearestValues:!1!==t.nearestValues?"absolute":"discrete",singleHandle:!0}}},{key:"createRangeOGC",value:function(t){var n={type:"none",range:[]};if(t.split(",").length>1?n={type:"discrete",range:t.replace(/\s/g,"").split(",")}:!function(e){return 2===e.split("/").length}(t)?function(e){return 3===e.split("/").length}(t)&&(n={type:"discrete",range:m(e,this,k).call(this,t)}):n={type:"relative",range:m(e,this,T).call(this,t)},0===n.range.length)throw"Invalid Time Dimension";return n}},{key:"createDateLocaleTooltip",value:function(e,t){return c()(e).locale("".concat(t,"-CA")).format("".concat(e.split("T").length>1?"LLL":"LL"))}},{key:"getDateFragmentsOrder",value:function(e){var t=[-1,-1,-1,-1],n=[-1,-1,-1,-1],i=[],a=[t,n,i];if(e){var s=e.toUpperCase().replace(/Z/,"+00:00"),l=s,c=(0,r.A)(l.matchAll(/[[\]]/g));if(!(l.startsWith("Y")?[0,2]:[0,2,4]).includes(c.length))throw new Error('The string "'.concat(e,'" is an invalid date format.'));if(l=(l=(l=l.replace(/YYYY\[?[-/]MM\[?[-/]DD\[?[\sT]HH:MM:SS\[?[+-]\d\d:\d\d]?/,"")).replace(/\[?DD[-/]]?MM[-/]]?YYYY\[?[\sT]HH:MM:SS\[?[+-]\d\d:\d\d]?/,"")).replace(/MM[-/]DD[-/]YYYY\[?[\sT]HH:MM:SS[+-]\d\d:\d\d]?|(\[MM[-/]DD[-/]]|MM[-/]\[DD[-/]])YYYY\[[T\s]HH:MM:SS[+-]\d\d:\d\d]/,""))throw new Error('The string "'.concat(e,'" is an invalid date format.'));l=s;for(var u=0;u=0&&(n[t[r]]=r)})),f&&(t[3]=3,n[3]=3,i[4]=f.split(/[+-]/)[1]);for(var m=s.replace(/\[[YMDHMS\d\-+/\sT:]*\]|\[[\sTHMS:]*\]/g,"").split(/-|\/|\s|T|\+/g).length;m<4;m++)n[t[m]]=-1;return a}return y}},{key:"applyInputDateFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return e;var r=t[0],i=t[2],a=e.toUpperCase().replace("Z","+00:00").replaceAll(" ","T").split("T"),s=(0,o.A)(a,2),l=s[0],c=s[1];c||(c="00:00:00");var u=l.replaceAll("/","-").toUpperCase().split("-").map((function(e){return 1===e.length?"0".concat(e):e})),d=[];3===u.length?d=u:(u[0].length<3?d[r[1]]=u[0]:d[r[0]]=u[0],u[1]?u[1].length<3?d[r[1]]=u[1]:d[r[0]]=u[1]:d[r[1]]="01",d[r[2]]="01");var h="".concat(d[r[0]],"-").concat(d[r[1]],"-").concat(d[r[2]],"T").concat(c);return 19===h.length&&(h="".concat(h).concat(i[3]).concat(i[4])),h.endsWith("+00:00")?"Z"===e.slice(-1).toUpperCase()&&(h=h.replace("+00:00","Z")):(n&&(h="".concat(h.slice(0,19)).concat("+"===h.slice(19,20)?"-":"+").concat(h.slice(20))),h=this.convertToUTC(h)),h}},{key:"applyOutputDateFormat",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return e;if(t){var r=t[1],i=t[2],a=this.convertToUTC(e);"Z"===a.slice(-1).toUpperCase()&&(a="".concat(a.slice(0,-1),"+00:00"));var s="+"===i[3]?"-":"+",l=this.convertToUTC("".concat(a.toUpperCase().slice(0,-6)).concat(n?s:i[3]).concat(i[4])).split("T"),c=(0,o.A)(l,2),u=c[0],d=c[1],h=u.toUpperCase().split("-"),p="".concat(r[0]+1?"".concat(h[r[0]]):"");return p&&r[1]+1&&(p="".concat(p).concat(i[0])),r[1]+1&&(p="".concat(p).concat(h[r[1]])),p&&r[2]+1&&(p="".concat(p).concat(i[0])),r[2]+1&&(p="".concat(p).concat(h[r[2]])),r[3]+1&&(p="".concat(p).concat(i[2]).concat(d.slice(0,8))),p}return e}},{key:"deduceDateFormat",value:function(e){var t=null!==e?e.toUpperCase().replaceAll("/","-").replaceAll(" ","T"):"YYYY-MM-DD";return 4===(t=t.replace(/\d{4}/,"YYYY").replace(/^\d{1,2}(?=-\d{1,2}-YYYY)|((?<=^YYYY-\d-)|(?<=^YYYY-\d\d-))\d{1,2}/,"DD").replace(/(?<=^DD-)\d{1,2}(?=-YYYY)|(?<=^YYYY-)\d{1,2}(?=-DD)/,"MM").replace(/(?<=T)\d{1,2}/,"HH").replace(/(?<=THH:)\d{1,2}/,"MM").replace(/(?<=THH:MM:)\d{1,2}/,"SS")).length?t="".concat(t,"-MM-DDTHH:MM:SSZ"):7===t.length?t=t.startsWith("YYYY")?"".concat(t,"-DDTHH:MM:SSZ"):"DD-".concat(t,"THH:MM:SSZ"):10===t.length?t="".concat(t,"THH:MM:SSZ"):19===t.length&&(t="".concat(t,"Z")),t}},{key:"getDayjsDate",value:function(e){return c()(e)}}])}();function k(e){var t=e.split("/"),n=(0,o.A)(t,3),r=n[0],i=n[1],a=n[2];if(!S(r))throw new Error("".concat(x," (createAbsoluteInterval)"));if(!S(i))throw new Error("".concat(x," (createAbsoluteInterval)"));if(!C(a))throw A;var s,l="Z"===r.slice(-1).toUpperCase(),u=this.extractDateFormat(r),d=l?"".concat(c()(r).utc(!1).format(u).slice(0,-6),"Z"):c()(r).utc(!1).format(u),h=l?"".concat(c()(i).utc(!1).format(u).slice(0,-6),"Z"):c()(i).utc(!1).format(u),p=c().duration(a).asMilliseconds(),f=c().duration(p),g=[],m=0;g.push(d);do{if(a.endsWith("M")){var y=g[m].split("-"),v=Number(y[1])+f.months(),b=v<=12?y[0]:String(Number(y[0])+1),w=v<=12?v:v-12;s=c()("".concat(b,"-").concat(String(w).padStart(2,"0"),"-").concat(y[2])).utc(!1).format(u)}else s=c()(g[m]).add(f).utc(!1).format(u);l&&(s="".concat(s.slice(0,-6),"Z")),g.push(s),31536e6===p&&g[m].slice(4,10)!==g[m+1].slice(4,10)&&(s=c()(g[m]).add(c().duration({milliseconds:316224e5})).utc(!1).format(u),l&&(s="".concat(s.slice(0,-6),"Z")),g[m+1]=s),m++}while(c()(g[g.length-1]).isBefore(h));return g[g.length-1]!==h&&g.push(h),g}function T(e){var t=e.split("/"),n=(0,o.A)(t,2),r=n[0],i=n[1];if(!C(i)&&!S(i))throw A;if(!S(r))throw new Error("".concat(x," (createRelativeIntervale)"));var a=this.extractDateFormat(r),s=c().duration(i),l=c()(r).utc(!1).format(a),u=S(i)?c()(i):c()(r).add(s);return[l,c()(u).utc(!1).format(a)]}},6883:(e,t,n)=>{"use strict";n.d(t,{vF:()=>D});var r,i=n(13718),o=n(47280),a=n(42432),s=n(86973),l=n.n(s),c=function(e,t){try{var n=localStorage.getItem(e),r=Number(n);if(r&&!Number.isNaN(r))return r}catch(e){}return t};function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function d(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h,p,f,g=1,m=2,y=3,v=4,b=5,w=6,x=8,A=9,S=10,C=20,E=30,k=40,T=50,_=!!c("GEOVIEW_LOG_ACTIVE"),O=(p=C,f=function(e,t){try{var n=localStorage.getItem(e);if(null!=n&&n.includes(","))return n.split(",").map((function(e){return Number(e.trim())})).filter((function(e){return!!e&&!Number.isNaN(e)}));var r=Number(n);if(r&&!Number.isNaN(r))return r}catch(e){}return t}(h="GEOVIEW_LOG_LEVEL"),void 0!==f?f:(localStorage.setItem(h,p.toString()),p)),P=new WeakSet,I=function(){return(0,o.A)((function e(t){(0,i.A)(this,e),u(this,P),(0,a.A)(this,"loggingLevel",void 0),(0,a.A)(this,"markers",{}),(0,a.A)(this,"trackers",{}),(0,a.A)(this,"trackerInterval",100),this.loggingLevel=t}),[{key:"logTraceDetailed",value:function(){var e;if(_){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?s-1:0),c=1;c1?t-1:0),r=1;r=C||this.loggingLevel.includes(e):this.loggingLevel<=e}function L(e,t,n){for(var i,o=arguments.length,a=new Array(o>3?o-3:0),s=3;s1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";n.d(t,{T$:()=>d,yb:()=>h});var r=n(96880),i=n(42432),o=n(74813),a=n.n(o),s=n(38811);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{addUiComponent:()=>A,createGuideObject:()=>F,createLocalizedString:()=>h,delay:()=>L,escapeRegExp:()=>R,exportPNG:()=>k,findPropertyNameByRegex:()=>T,generateId:()=>m,getLocalizedMessage:()=>f,getLocalizedValue:()=>p,getScriptAndAssetURL:()=>g,getXMLHttpRequest:()=>x,isImage:()=>_,isJsonString:()=>b,parseJSONConfig:()=>E,removeCommentsFromJSON:()=>C,replaceParams:()=>y,sanitizeHtmlContent:()=>S,setAlphaColor:()=>v,stringify:()=>O,whenThisThen:()=>M,whenThisThenThat:()=>I,xmlToJson:()=>w});var r=n(96880),i=n(74813),o=n.n(i),a=n(17004),s=n(68676),l=n(17309),c=n.n(l),u=n(23853),d=n(6883);function h(e){return{en:e,fr:e}}function p(e,t){if(e)return e[t]}function f(e,t){return s.Ay.getFixedT(t)(e)}function g(){var e=document.getElementsByTagName("script"),t="";if(e&&e.length)for(var n=0;n0?e:(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()}function y(e,t){var n=t;return e.forEach((function(e){n=n.replace("__param__",e)})),n}function v(e,t){var n=e;return n[3]=t,n}function b(e){try{if(""===e)return!1;JSON.parse(e)}catch(t){return d.vF.logError("- Invalid JSON string. String passed to the JSON parser:",e,"- JSON Parser error:",t.message,"- See text above."),!1}return!0}function w(e){var t={};if(1===e.nodeType){var n=(0,u.KX)(e);if(n.attributes&&n.attributes.length>0){t["@attributes"]={};for(var r=0;r=400&&t("{}")},n.onerror=function(){t("{}")},n.send(null)}catch(e){t("{}")}}))}function A(e,t){var n=(0,a.H)(document.getElementById(e));return n.render(t),n}function S(e){return c()(e)}function C(e){return e.split(/(?3&&void 0!==arguments[3]?arguments[3]:1e4,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100;P(e,t,n,new Date,r,i)}function M(e,t,n){return new Promise((function(r,i){I(e,r,i,t,n)}))}var L=function(e){return new Promise((function(t){setTimeout(t,e)}))};function R(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function j(e){return e.split("\n")[0].trim().split(" ").filter((function(e){return!e.startsWith("#")&&!e.startsWith("!")})).join(" ")}function F(e,t,n){return D.apply(this,arguments)}function D(){return(D=(0,r.A)(o().mark((function e(t,n,r){var i,a,s,l,c,u,h,p,f,g,m,y,v,b,w,x,A,S,C,E,k,T;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(r,"/locales/").concat(n,"/guide.md"));case 3:return i=e.sent,e.next=6,i.text();case 6:for(a=e.sent,(s=a.replaceAll("{{assetsURL}}",r).split(/=(?=1!)(.*?)=/))[0].trim()||s.shift(),l={},c=0;c1)for(y=1;y{"use strict";n.d(t,{X:()=>de});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(7809),u=n(39488),d=n(85208),h=n(98246),p=n(42669),f=n(96422),g=n(43910),m=n(45866),y=n(9410),v=n(67103),b=n(87620),w=n(32332),x=n(64383),A=n(43806),S=n(59119),C=n(67287),E=n(15877),k=n(20633),T=n(17341),_=n(61170),O=n(32596),P=n(3451),I=n(34520),M=n(82512),L=n(66739);const R="drawstart",j="drawend",F="drawabort";class D extends u.Ay{constructor(e,t){super(e),this.feature=t}}function N(e,t){return(0,O.hG)(e[0],e[1],t[0],t[1])}function B(e,t){const n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function z(e,t,n){let r,i;ta){return N(q(e,r),q(e,i))}let s=0;if(r=n?r-=n:r<0&&(r+=n);let o=r+1;o>=n&&(o-=n);const a=e[r],s=a[0],l=a[1],c=e[o];return[s+(c[0]-s)*i,l+(c[1]-l)*i]}class H extends A.A{constructor(e){const t=e;t.stopDown||(t.stopDown=k.W8),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(e){switch(e){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";case"Circle":return"Circle";default:throw new Error("Invalid type: "+e)}}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:k.rT,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=(e,t,n)=>{const r=t||new c.A([NaN,NaN]),i=(0,M.Ad)(e[0],n),o=(0,I.hG)(i,(0,M.Ad)(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);const a=(0,M.Tf)();return a&&r.transform(n,a),r};else{let t;"Point"===e?t=x.A:"LineString"===e?t=g.A:"Polygon"===e&&(t=S.Ay),n=(n,r,i)=>(r?"Polygon"===e?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r)}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new C.A({source:new E.A({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:Y(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:T.TS,this.freehandCondition_,e.freehand?this.freehandCondition_=T.Gk:this.freehandCondition_=e.freehandCondition?e.freehandCondition:T.Kg,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(f.A.ACTIVE,this.updateState_)}setTrace(e){let t;t=e?!0===e?T.Gk:e:T.Zm,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===d.A.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);let t=e.type===y.A.POINTERMOVE,n=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===y.A.POINTERDRAG){Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===y.A.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===y.A.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===y.A.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===y.A.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===y.A.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout((()=>{this.handlePointerMove_(new m.A(y.A.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active)return void this.deactivateTrace_();const t=this.getMap(),n=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),r=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),i=(0,_.boundingExtent)([n,r]),o=this.traceSource_.getFeaturesInExtent(i);if(0===o.length)return;const a=function(e,t){const n=[];for(let r=0;re.endIndex||!n&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const r=[];if(t=o;--t)r.push(B(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active)return;if(-1===t.targetIndex&&(0,I.Io)(t.startPx,e.pixel)n.startIndex?cn.startIndex&&(c-=r.length)),l=c,s=e)}const c=t.targets[s];let u=c.ring;if(t.targetIndex===s&&u){const e=q(c.coordinates,l),i=n.getPixelFromCoordinate(e);(0,I.Io)(i,t.startPx)>r&&(u=!1)}if(u){const e=c.coordinates,t=e.length,n=c.startIndex,r=l;if(nthis.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(e),this.modifyDrawing_(e.coordinate)):this.createOrUpdateSketchPoint_(e.coordinate.slice())}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)r=!t&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){const t=this.getMap();for(let r=0,o=i.length;r=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):"Polygon"===o&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i=2){this.finishCoordinate_=e[e.length-2].slice();const t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if("Polygon"===r){e=this.sketchCoords_[0],e.splice(-2,1);const r=this.sketchLine_.getGeometry();if(e.length>=2){const t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(1===e.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_;const n=e.getGeometry(),r=this.getMap().getView().getProjection();return"LineString"===this.mode_?(t.pop(),this.geometryFunction_(t,n,r)):"Polygon"===this.mode_&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new b.A([t])):"MultiLineString"===this.type_?e.setGeometry(new v.A([t])):"MultiPolygon"===this.type_&&e.setGeometry(new w.A([t])),this.dispatchEvent(new D(j,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new D(F,e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;let r;if(n&&this.startDrawing_(e[0]),"LineString"===t||"Circle"===t)r=this.sketchCoords_;else{if("Polygon"!==t)return;r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&r.shift(),r.pop();for(let t=0;t{"use strict";n.d(t,{z:()=>G});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(39488),u=n(98246),d=n(9410),h=n(64383),p=n(43806),f=n(67287),g=n(15877),m=n(17341),y=n(61170),v=n(34520),b=n(3451),w=n(59119),x=n(82512);const A="extentchanged";class S extends c.Ay{constructor(e){super(A),this.extent=e}}class C extends p.A{constructor(e){super(e=e||{}),this.on,this.once,this.un,this.condition_=e.condition?e.condition:m.Gk,this.extent_=null,this.pointerHandler_=null,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.extentFeature_=null,this.vertexFeature_=null,e||(e={}),this.extentOverlay_=new f.A({source:new g.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:E(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.vertexOverlay_=new f.A({source:new g.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:k(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&this.setExtent(e.extent)}snapToVertex_(e,t){const n=t.getCoordinateFromPixelInternal(e),r=function(e,t){return(0,v.$x)(n,e)-(0,v.$x)(n,t)},i=this.getExtentInternal();if(i){const o=function(e){return[[[e[0],e[1]],[e[0],e[3]]],[[e[0],e[3]],[e[2],e[3]]],[[e[2],e[3]],[e[2],e[1]]],[[e[2],e[1]],[e[0],e[1]]]]}(i);o.sort(r);const a=o[0];let s=(0,v.sG)(n,a);const l=t.getPixelFromCoordinateInternal(s);if((0,v.Io)(e,l)<=this.pixelTolerance_){const e=t.getPixelFromCoordinateInternal(a[0]),n=t.getPixelFromCoordinateInternal(a[1]),r=(0,v.hG)(l,e),i=(0,v.hG)(l,n),o=Math.sqrt(Math.min(r,i));return this.snappedToVertex_=o<=this.pixelTolerance_,this.snappedToVertex_&&(s=r>i?a[1]:a[0]),s}}return null}handlePointerMove_(e){const t=e.pixel,n=e.map;let r=this.snapToVertex_(t,n);r||(r=n.getCoordinateFromPixelInternal(t)),this.createOrUpdatePointerFeature_(r)}createOrUpdateExtentFeature_(e){let t=this.extentFeature_;return t?e?t.setGeometry((0,w.VY)(e)):t.setGeometry(void 0):(t=e?new u.A((0,w.VY)(e)):new u.A({}),this.extentFeature_=t,this.extentOverlay_.getSource().addFeature(t)),t}createOrUpdatePointerFeature_(e){let t=this.vertexFeature_;if(t){t.getGeometry().setCoordinates(e)}else t=new u.A(new h.A(e)),this.vertexFeature_=t,this.vertexOverlay_.getSource().addFeature(t);return t}handleEvent(e){return!e.originalEvent||!this.condition_(e)||(e.type!=d.A.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),super.handleEvent(e),!1)}handleDownEvent(e){const t=e.pixel,n=e.map,r=this.getExtentInternal();let i=this.snapToVertex_(t,n);const o=function(e){let t=null,n=null;return e[0]==r[0]?t=r[2]:e[0]==r[2]&&(t=r[0]),e[1]==r[1]?n=r[3]:e[1]==r[3]&&(n=r[1]),null!==t&&null!==n?[t,n]:null};if(i&&r){const e=i[0]==r[0]||i[0]==r[2]?i[0]:null,t=i[1]==r[1]||i[1]==r[3]?i[1]:null;null!==e&&null!==t?this.pointerHandler_=T(o(i)):null!==e?this.pointerHandler_=_(o([e,r[1]]),o([e,r[3]])):null!==t&&(this.pointerHandler_=_(o([r[0],t]),o([r[2],t])))}else i=n.getCoordinateFromPixelInternal(t),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=T(i);return!0}handleDragEvent(e){if(this.pointerHandler_){const t=e.coordinate;this.setExtent(this.pointerHandler_(t)),this.createOrUpdatePointerFeature_(t)}}handleUpEvent(e){this.pointerHandler_=null;const t=this.getExtentInternal();return t&&0!==(0,y.getArea)(t)||this.setExtent(null),!1}setMap(e){this.extentOverlay_.setMap(e),this.vertexOverlay_.setMap(e),super.setMap(e)}getExtent(){return(0,x.JR)(this.getExtentInternal(),this.getMap().getView().getProjection())}getExtentInternal(){return this.extent_}setExtent(e){this.extent_=e||null,this.createOrUpdateExtentFeature_(e),this.dispatchEvent(new S(this.extent_))}}function E(){const e=(0,b.mY)();return function(t,n){return e.Polygon}}function k(){const e=(0,b.mY)();return function(t,n){return e.Point}}function T(e){return function(t){return(0,y.boundingExtent)([e,t])}}function _(e,t){return e[0]==t[0]?function(n){return(0,y.boundingExtent)([e,[n[0],t[1]]])}:e[1]==t[1]?function(n){return(0,y.boundingExtent)([e,[t[0],n[1]]])}:null}const O=C;var P=n(2358),I=n(35415),M=n(25293);function L(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,R()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function j(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function F(e,t,n){D(e,t),t.set(e,n)}function D(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function N(e,t){return e.get(B(e,t))}function B(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var z=new WeakMap,V=new WeakMap,$=new WeakSet,G=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=L(this,t,[e]),D(i=n,o=$),o.add(i),F(n,z,void 0),F(n,V,[]);var a={condition:m.Kg,boxStyle:(0,I.convertTypeFeatureStyleToOpenLayersStyle)(e.boxStyle),pixelTolerance:e.pixelTolerance||0};return function(e,t,n){e.set(B(e,t),n)}(z,n,new O(a)),N(z,n).on("extentchanged",B($,n,U).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){j(t,"startInteraction",this,3)([N(z,this)])}},{key:"stopInteraction",value:function(){j(t,"stopInteraction",this,3)([N(z,this)])}},{key:"onExtentChanged",value:function(e){P.A.onEvent(N(V,this),e)}},{key:"offExtentChanged",value:function(e){P.A.offEvent(N(V,this),e)}}])}(M.N);function U(e){P.A.emitEvent(this,N(V,this),e)}},25293:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(13718),i=n(47280),o=n(42432),a=function(){return(0,i.A)((function e(t){(0,r.A)(this,e),(0,o.A)(this,"mapViewer",void 0),this.mapViewer=t.mapViewer}),[{key:"startInteraction",value:function(e){this.mapViewer.map.addInteraction(e)}},{key:"stopInteraction",value:function(e){this.mapViewer.map.removeInteraction(e)}}])}()},72412:(e,t,n)=>{"use strict";n.d(t,{B:()=>ee});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(11738),u=n(43400),d=n(39488),h=n(85208),p=n(98246),f=n(9410),g=n(64383),m=n(43806),y=n(61517),v=n(13481),b=n(67287),w=n(15877),x=n(17341),A=n(61170),S=n(34520),C=n(3451),E=n(47505),k=n(59119),T=n(82512),_=n(45282);const O=[0,0,0,0],P=[],I="modifystart",M="modifyend";class L extends d.Ay{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}}class R extends m.A{constructor(e){let t;if(super(e),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=e.condition?e.condition:x.fs,this.defaultDeleteCondition_=function(e){return(0,x.Js)(e)&&(0,x.t5)(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:x.Gk,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new y.A,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new b.A({source:new w.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:N(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null,e.features?t=e.features:e.source&&(this.source_=e.source,t=new c.A(this.source_.getFeatures()),this.source_.addEventListener(v.A.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(v.A.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!t)throw new Error("The modify interaction requires features, a source or a layer");e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=t,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(u.A.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(u.A.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=void 0===e.snapToPointer?!this.hitDetection_:e.snapToPointer}addFeature_(e){const t=e.getGeometry();if(t){const n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}const n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(h.A.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new c.A;const n=this.featuresBeingModified_.getArray();for(let e=0,r=t.length;e=0;--e){const r=n[e];for(let e=this.dragSegments_.length-1;e>=0;--e)this.dragSegments_[e][0]===r&&this.dragSegments_.splice(e,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){e.feature&&this.features_.push(e.feature)}handleSourceRemove_(e){e.feature&&this.features_.remove(e.feature)}handleFeatureAdd_(e){this.addFeature_(e.element)}handleFeatureChange_(e){if(!this.changingFeature_){const t=e.target;this.removeFeature_(t),this.addFeature_(t)}}handleFeatureRemove_(e){this.removeFeature_(e.element)}writePointGeometry_(e,t){const n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)}writeMultiPointGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r=0;--e)this.insertVertex_(i[e],o)}return!!this.vertexFeature_}handleUpEvent(e){for(let t=this.dragSegments_.length-1;t>=0;--t){const n=this.dragSegments_[t][0],r=n.geometry;if("Circle"===r.getType()){const t=r.getCenter(),i=n.featureSegments[0],o=n.featureSegments[1];i.segment[0]=t,i.segment[1]=t,o.segment[0]=t,o.segment[1]=t,this.rBush_.update((0,A.createOrUpdateFromCoordinate)(t),i);let a=r;const s=(0,T.Tf)();if(s){const t=e.map.getView().getProjection();a=a.clone().transform(s,t),a=(0,k.nD)(a).transform(t,s)}this.rBush_.update(a.getExtent(),o)}else this.rBush_.update((0,A.boundingExtent)(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new L(M,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}handlePointerMove_(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)}handlePointerAtPixel_(e,t,n){const r=n||t.getCoordinateFromPixel(e),i=t.getView().getProjection(),o=function(e,t){return F(r,e,i)-F(r,t,i)};let a,s;if(this.hitDetection_){const n="object"==typeof this.hitDetection_?e=>e===this.hitDetection_:void 0;t.forEachFeatureAtPixel(e,((e,t,n)=>{n&&"Point"===n.getType()&&(n=new g.A((0,T.te)(n.getCoordinates(),i)));const r=n||e.getGeometry();if(e instanceof p.A&&this.features_.getArray().includes(e)){s=r;const t=e.getGeometry().getFlatCoordinates().slice(0,2);a=[{feature:e,geometry:s,segment:[t,t]}]}return!0}),{layerFilter:n})}if(!a){const e=(0,T.SD)((0,A.createOrUpdateFromCoordinate)(r,O),i),n=t.getView().getResolution()*this.pixelTolerance_,o=(0,T.JR)((0,A.buffer)(e,n,O),i);a=this.rBush_.getInExtent(o)}if(a&&a.length>0){const n=a.sort(o)[0],l=n.segment;let c=D(r,n,i);const u=t.getPixelFromCoordinate(c);let d=(0,S.Io)(e,u);if(s||d<=this.pixelTolerance_){const e={};if(e[(0,_.v6)(l)]=!0,this.snapToPointer_||(this.delta_[0]=c[0]-r[0],this.delta_[1]=c[1]-r[1]),"Circle"===n.geometry.getType()&&1===n.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);else{const r=t.getPixelFromCoordinate(l[0]),i=t.getPixelFromCoordinate(l[1]),o=(0,S.hG)(u,r),s=(0,S.hG)(u,i);d=Math.sqrt(Math.min(o,s)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(c=o>s?l[1]:l[0]),this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);const h={};h[(0,_.v6)(n.geometry)]=!0;for(let t=1,n=a.length;t=0;--a)i=e[a],d=i[0],h=(0,_.v6)(d.feature),d.depth&&(h+="-"+d.depth.join("-")),h in t||(t[h]={}),0===i[1]?(t[h].right=d,t[h].index=d.index):1==i[1]&&(t[h].left=d,t[h].index=d.index+1);for(h in t){switch(u=t[h].right,l=t[h].left,s=t[h].index,c=s-1,d=void 0!==l?l:u,c<0&&(c=0),o=d.geometry,r=o.getCoordinates(),n=r,p=!1,o.getType()){case"MultiLineString":r[d.depth[0]].length>2&&(r[d.depth[0]].splice(s,1),p=!0);break;case"LineString":r.length>2&&(r.splice(s,1),p=!0);break;case"MultiPolygon":n=n[d.depth[1]];case"Polygon":n=n[d.depth[0]],n.length>4&&(s==n.length-1&&(s=0),n.splice(s,1),p=!0,0===s&&(n.pop(),n.push(n[0]),c=n.length-1))}if(p){this.setGeometryCoordinates_(o,r);const t=[];if(void 0!==l&&(this.rBush_.remove(l),t.push(l.segment[0])),void 0!==u&&(this.rBush_.remove(u),t.push(u.segment[1])),void 0!==l&&void 0!==u){const e={depth:d.depth,feature:d.feature,geometry:d.geometry,index:c,segment:t};this.rBush_.insert((0,A.boundingExtent)(e.segment),e)}this.updateSegmentIndices_(o,s,d.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.length=0}}return p}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===n||void 0===i.depth||(0,E.aI)(i.depth,n))&&i.index>t&&(i.index+=r)}))}}function j(e,t){return e.index-t.index}function F(e,t,n){const r=t.geometry;if("Circle"===r.getType()){let i=r;if(1===t.index){const t=(0,T.Tf)();t&&(i=i.clone().transform(t,n));const r=(0,S.hG)(i.getCenter(),(0,T.Ad)(e,n)),o=Math.sqrt(r)-i.getRadius();return o*o}}const i=(0,T.Ad)(e,n);return P[0]=(0,T.Ad)(t.segment[0],n),P[1]=(0,T.Ad)(t.segment[1],n),(0,S.$x)(i,P)}function D(e,t,n){const r=t.geometry;if("Circle"===r.getType()&&1===t.index){let t=r;const i=(0,T.Tf)();return i&&(t=t.clone().transform(i,n)),(0,T.te)(t.getClosestPoint((0,T.Ad)(e,n)),n)}const i=(0,T.Ad)(e,n);return P[0]=(0,T.Ad)(t.segment[0],n),P[1]=(0,T.Ad)(t.segment[1],n),(0,T.te)((0,S.sG)(i,P),n)}function N(){const e=(0,C.mY)();return function(t,n){return e.Point}}const B=R;var z=n(2358),V=n(35415),$=n(25293);function G(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,U()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function W(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function q(e,t,n){H(e,t),t.set(e,n)}function H(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Y(e,t){return e.get(K(e,t))}function K(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var X=new WeakMap,Z=new WeakMap,J=new WeakMap,Q=new WeakSet,ee=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=G(this,t,[e]),H(i=n,o=Q),o.add(i),q(n,X,void 0),q(n,Z,[]),q(n,J,[]);var a={style:(0,V.convertTypeFeatureStyleToOpenLayersStyle)(e.style)};if(e.features)a.features=e.features;else if(e.geometryGroupKey){var s,l=null===(s=n.mapViewer.layer.geometry)||void 0===s?void 0:s.createGeometryGroup(e.geometryGroupKey);a.source=null==l?void 0:l.vectorSource}return function(e,t,n){e.set(K(e,t),n)}(X,n,new B(a)),Y(X,n).on("modifystart",K(Q,n,te).bind(n)),Y(X,n).on("modifyend",K(Q,n,ne).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){W(t,"startInteraction",this,3)([Y(X,this)])}},{key:"stopInteraction",value:function(){W(t,"stopInteraction",this,3)([Y(X,this)])}},{key:"onModifyStarted",value:function(e){z.A.onEvent(Y(Z,this),e)}},{key:"offModifyStarted",value:function(e){z.A.offEvent(Y(Z,this),e)}},{key:"onModifyEnded",value:function(e){z.A.onEvent(Y(J,this),e)}},{key:"offModifyEnded",value:function(e){z.A.offEvent(Y(J,this),e)}}])}($.N);function te(e){z.A.emitEvent(this,Y(Z,this),e)}function ne(e){z.A.emitEvent(this,Y(J,this),e)}},73802:(e,t,n)=>{"use strict";n.d(t,{P:()=>F});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(43400),u=n(85208),d=n(43806),h=n(61517),p=n(13481),f=n(20633),g=n(39488);const m="snap";class y extends g.Ay{constructor(e,t){super(e),this.vertex=t.vertex,this.vertexPixel=t.vertexPixel,this.feature=t.feature,this.segment=t.segment}}var v=n(61170),b=n(34520),w=n(59119),x=n(82512),A=n(45282),S=n(15355);function C(e){return e.feature?e.feature:e.element?e.element:null}const E=[];class k extends d.A{constructor(e){const t=e=e||{};t.handleDownEvent||(t.handleDownEvent=f.rT),t.stopDown||(t.stopDown=f.W8),super(t),this.on,this.once,this.un,this.source_=e.source?e.source:null,this.vertex_=void 0===e.vertex||e.vertex,this.edge_=void 0===e.edge||e.edge,this.features_=e.features?e.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.rBush_=new h.A,this.GEOMETRY_SEGMENTERS_={Point:this.segmentPointGeometry_.bind(this),LineString:this.segmentLineStringGeometry_.bind(this),LinearRing:this.segmentLineStringGeometry_.bind(this),Polygon:this.segmentPolygonGeometry_.bind(this),MultiPoint:this.segmentMultiPointGeometry_.bind(this),MultiLineString:this.segmentMultiLineStringGeometry_.bind(this),MultiPolygon:this.segmentMultiPolygonGeometry_.bind(this),GeometryCollection:this.segmentGeometryCollectionGeometry_.bind(this),Circle:this.segmentCircleGeometry_.bind(this)}}addFeature(e,t){t=void 0===t||t;const n=(0,A.v6)(e),r=e.getGeometry();if(r){const t=this.GEOMETRY_SEGMENTERS_[r.getType()];if(t){this.indexedFeaturesExtents_[n]=r.getExtent((0,v.createEmpty)());const i=[];if(t(i,r),1===i.length)this.rBush_.insert((0,v.boundingExtent)(i[0]),{feature:e,segment:i[0]});else if(i.length>1){const t=i.map((e=>(0,v.boundingExtent)(e))),n=i.map((t=>({feature:e,segment:t})));this.rBush_.load(t,n)}}}t&&(this.featureChangeListenerKeys_[n]=(0,S.KT)(e,u.A.CHANGE,this.handleFeatureChange_,this))}getFeatures_(){let e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}handleEvent(e){const t=this.snapTo(e.pixel,e.coordinate,e.map);return t&&(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel,this.dispatchEvent(new y(m,{vertex:e.coordinate,vertexPixel:e.pixel,feature:t.feature,segment:t.segment}))),super.handleEvent(e)}handleFeatureAdd_(e){const t=C(e);t&&this.addFeature(t)}handleFeatureRemove_(e){const t=C(e);t&&this.removeFeature(t)}handleFeatureChange_(e){const t=e.target;if(this.handlingDownUpSequence){const e=(0,A.v6)(t);e in this.pendingFeatures_||(this.pendingFeatures_[e]=t)}else this.updateFeature_(t)}handleUpEvent(e){const t=Object.values(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1}removeFeature(e,t){const n=void 0===t||t,r=(0,A.v6)(e),i=this.indexedFeaturesExtents_[r];if(i){const t=this.rBush_,n=[];t.forEachInExtent(i,(function(t){e===t.feature&&n.push(t)}));for(let e=n.length-1;e>=0;--e)t.remove(n[e])}n&&((0,S.JH)(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])}setMap(e){const t=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();t&&(n.forEach(S.JH),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(S.JH),this.featureChangeListenerKeys_={}),super.setMap(e),e&&(this.features_?n.push((0,S.KT)(this.features_,c.A.ADD,this.handleFeatureAdd_,this),(0,S.KT)(this.features_,c.A.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push((0,S.KT)(this.source_,p.A.ADDFEATURE,this.handleFeatureAdd_,this),(0,S.KT)(this.source_,p.A.REMOVEFEATURE,this.handleFeatureRemove_,this)),r.forEach((e=>this.addFeature(e))))}snapTo(e,t,n){const r=n.getView().getProjection(),i=(0,x.Ad)(t,r),o=(0,x.JR)((0,v.buffer)((0,v.boundingExtent)([i]),n.getView().getResolution()*this.pixelTolerance_),r),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;let l,c,u=1/0,d=null;const h=this.pixelTolerance_*this.pixelTolerance_,p=()=>{if(l){const t=n.getPixelFromCoordinate(l);if((0,b.hG)(e,t)<=h)return{vertex:l,vertexPixel:[Math.round(t[0]),Math.round(t[1])],feature:c,segment:d}}return null};if(this.vertex_){for(let e=0;e{const n=(0,x.Ad)(e,r),o=(0,b.hG)(i,n);o{e.push([t])}))}segmentMultiPolygonGeometry_(e,t){const n=t.getCoordinates();for(let t=0,r=n.length;t{"use strict";n.d(t,{H:()=>F});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(11738),u=n(39488),d=n(98246),h=n(96422),p=n(43806),f=n(20633),g=n(17341),m=n(82512);const y="translatestart",v="translating",b="translateend";class w extends u.Ay{constructor(e,t,n,r,i){super(e),this.features=t,this.coordinate=n,this.startCoordinate=r,this.mapBrowserEvent=i}}class x extends p.A{constructor(e){let t;if(super(e=e||{}),this.on,this.once,this.un,this.lastCoordinate_=null,this.startCoordinate_=null,this.features_=void 0!==e.features?e.features:null,e.layers&&!this.features_)if("function"==typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=f.rT;this.layerFilter_=t,this.filter_=e.filter&&!this.features_?e.filter:f.rT,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.condition_=e.condition?e.condition:g.Gk,this.lastFeature_=null,this.addChangeListener(h.A.ACTIVE,this.handleActiveChanged_)}handleDownEvent(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);const t=this.features_||new c.A([this.lastFeature_]);return this.dispatchEvent(new w(y,t,e.coordinate,this.startCoordinate_,e)),!0}return!1}handleUpEvent(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);const t=this.features_||new c.A([this.lastFeature_]);return this.dispatchEvent(new w(b,t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1}handleDragEvent(e){if(this.lastCoordinate_){const t=e.coordinate,n=e.map.getView().getProjection(),r=(0,m.Ad)(t,n),i=(0,m.Ad)(this.lastCoordinate_,n),o=r[0]-i[0],a=r[1]-i[1],s=this.features_||new c.A([this.lastFeature_]),l=(0,m.Tf)();s.forEach((function(e){const t=e.getGeometry();l?(t.transform(l,n),t.translate(o,a),t.transform(n,l)):t.translate(o,a),e.setGeometry(t)})),this.lastCoordinate_=t,this.dispatchEvent(new w(v,s,t,this.startCoordinate_,e))}}handleMoveEvent(e){const t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),t.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):t.classList.remove("ol-grab","ol-grabbing")}featuresAtPixel_(e,t){return t.forEachFeatureAtPixel(e,((e,t)=>{if(e instanceof d.A&&this.filter_(e,t)&&(!this.features_||this.features_.getArray().includes(e)))return e}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})}getHitTolerance(){return this.hitTolerance_}setHitTolerance(e){this.hitTolerance_=e}setMap(e){const t=this.getMap();super.setMap(e),this.updateState_(t)}handleActiveChanged_(){this.updateState_(null)}updateState_(e){let t=this.getMap();const n=this.getActive();if((!t||!n)&&(t=t||e,t)){t.getViewport().classList.remove("ol-grab","ol-grabbing")}}}const A=x;var S=n(2358),C=n(25293);function E(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,k()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function T(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function _(e,t,n){O(e,t),t.set(e,n)}function O(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(e,t){return e.get(I(e,t))}function I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakSet,F=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=E(this,t,[e]),O(i=n,o=j),o.add(i),_(n,M,void 0),_(n,L,[]),_(n,R,[]);var a={};return e.features&&(a.features=e.features),function(e,t,n){e.set(I(e,t),n)}(M,n,new A(a)),P(M,n).on("translatestart",I(j,n,D).bind(n)),P(M,n).on("translateend",I(j,n,N).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){T(t,"startInteraction",this,3)([P(M,this)])}},{key:"stopInteraction",value:function(){T(t,"stopInteraction",this,3)([P(M,this)])}},{key:"onTranslateStarted",value:function(e){S.A.onEvent(P(L,this),e)}},{key:"offTranslateStarted",value:function(e){S.A.offEvent(P(L,this),e)}},{key:"onTranslateEnded",value:function(e){S.A.onEvent(P(R,this),e)}},{key:"offTranslateEnded",value:function(e){S.A.offEvent(P(R,this),e)}}])}(C.N);function D(e){S.A.emitEvent(this,P(L,this),e)}function N(e){S.A.emitEvent(this,P(R,this),e)}},18354:(e,t,n)=>{"use strict";n.d(t,{i:()=>I});var r=n(96880),i=n(13718),o=n(47280),a=n(42432),s=n(74813),l=n.n(s),c=n(34946),u=n(47031);class d extends u.A{constructor(e){let t;t=void 0!==(e=e||{}).attributions?e.attributions:['© OpenStreetMap contributors.'];const n=void 0!==e.crossOrigin?e.crossOrigin:"anonymous",r=void 0!==e.url?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:t,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:void 0!==e.maxZoom?e.maxZoom:19,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}}const h=d;var p,f=n(15901),g=n(90932),m=n(68705),y=n(23853),v=n(76200),b=n(8058),w=n(27991),x=n(16775),A=n(6883),S=n(2358);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0||0===i.length&&"nogeom"===m.basemapId)){e.next=39;break}return O={basemapId:o.join(""),layers:i,type:o.join("-"),basemapOptions:m,attribution:"osm"===m.basemapId?["© OpenStreetMap",(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",x.K.getDisplayLanguage(this.mapId))]:[(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",x.K.getDisplayLanguage(this.mapId))],zoomLevels:{min:d,max:p},defaultExtent:c,defaultOrigin:s,defaultResolutions:u,name:"",description:"",descSummary:"",altText:"",thumbnailUrl:""},e.abrupt("return",O);case 39:return e.abrupt("return",void 0);case 40:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"createCustomBasemap",value:function(e,t,n){var r=this,i=e.name,o=e.description,a=e.thumbnailUrl,s=e.attribution,l=void 0===n?x.K.getDisplayLanguage(this.mapId):n,c=E({},e);return c.name="en"===l?i.en:i.fr,c.layers=e.layers.map((function(e){return E(E({},e),{},{url:"en"===l?e.url.en:e.url.fr,source:new u.A({attributions:s[l],projection:b.M.PROJECTIONS[t],url:"en"===l?e.url.en:e.url.fr,crossOrigin:"Anonymous",tileGrid:new f.A({extent:r.defaultExtent,origin:r.defaultOrigin,resolutions:r.defaultResolutions})})})})),c.type="test",c.description="en"===l?o.en:o.fr,c.altText="en"===l?o.en:o.fr,c.thumbnailUrl="en"===l?a.en:a.fr,c.attribution="en"===l?[s.en]:[s.fr],c}},{key:"loadDefaultBasemaps",value:(e=(0,r.A)(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCoreBasemap(w.d.getBasemapOptions(this.mapId),t,n);case 2:(r=e.sent)&&(this.defaultOrigin=null==r?void 0:r.defaultOrigin,this.defaultResolutions=null==r?void 0:r.defaultResolutions,this.defaultExtent=null==r?void 0:r.defaultExtent,this.setBasemap(r));case 4:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"setBasemap",value:function(e){var t=this;if(this.activeBasemap=e,w.d.setMapAttribution(this.mapId,e?e.attribution:[""]),null!=e&&e.layers){for(var n=w.d.getMapViewer(this.mapId).map.getAllLayers(),r=0;r{"use strict";n.d(t,{Kz:()=>g,ns:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432);function c(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e,n){var r;return(0,i.A)(this,t),r=d(this,t,[n]),(0,l.A)(r,"geoviewLayerId",void 0),r.message="A generic error happened for layer ".concat(e," on map ").concat(n),r.geoviewLayerId=e,Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(function(e){function t(e){var n;return(0,i.A)(this,t),n=c(this,t,["An error happened on map ".concat(e)]),(0,l.A)(n,"mapId",void 0),n.mapId=e,Object.setPrototypeOf(n,t.prototype),n}return(0,s.A)(t,e),(0,r.A)(t)}((0,n(88621).A)(Error))),f=function(e){function t(e,n){var r;return(0,i.A)(this,t),(r=d(this,t,[e,n])).message="Failed to create the layer ".concat(e," on map ").concat(n),Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(p),g=function(e){function t(e,n){var r;return(0,i.A)(this,t),r=d(this,t,[e.geoviewLayerId,n]),(0,l.A)(r,"geoviewLayer",void 0),r.message="Can not execute twice the createGeoViewLayers method for layer ".concat(e.geoviewLayerId," on map ").concat(n),r.geoviewLayer=e,Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(p)},96997:(e,t,n)=>{"use strict";n.d(t,{p:()=>M});var r=n(13718),i=n(47280),o=n(42432),a=n(67287),s=n(98246),l=n(15877),c=n(43910),u=n(59119),d=n(7809),h=n(64383),p=n(95005),f=n(58952),g=n(3451),m=n(58373),y=n(57054),v=n(2358),b=n(76200),w=n(8058),x=n(27991),A=n(6883);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t{"use strict";n.d(t,{Bq:()=>me,FB:()=>fe,XY:()=>ge,_B:()=>he,qt:()=>J,y6:()=>de});var r=n(96880),i=n(13718),o=n(47280),a=n(42432),s=n(74813),l=n.n(s),c=n(11738),u=n(37013),d=n(37632),h=n(76200),p=n(23853),f=n(25079),g=n(6883),m=n(82527),y=n(42930),v=n(36267),b=n(2358),w=n(16775),x=n(59155),A=n(27991),S=n(2265),C=n(46363),E=n(58748),k=n(40215),T=n(78861);function _(e,t,n){O(e,t),t.set(e,n)}function O(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(e,t){return e.get(M(e,t))}function I(e,t,n){return e.set(M(e,t),n),n}function M(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var L={CSV:"CSV Layer",esriDynamic:"Esri Dynamic Layer",esriFeature:"Esri Feature Layer",esriImage:"Esri Image Layer",imageStatic:"Static Image Layer",GeoJSON:"GeoJson Layer",GeoPackage:"GeoPackage Layer",xyzTiles:"XYZ Tiles",vectorTiles:"Vector Tiles",ogcFeature:"OGC Feature Layer",ogcWfs:"WFS Layer",ogcWms:"WMS Layer"},R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,B=new WeakMap,z=new WeakMap,V=new WeakMap,$=new WeakMap,G=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakMap,Y=new WeakMap,K=new WeakMap,X=new WeakMap,Z=new WeakSet,J=function(){return(0,o.A)((function e(t,n,r){var o,s,l,c,u,d;(0,i.A)(this,e),O(u=this,d=Z),d.add(u),(0,a.A)(this,"hitTolerance",e.DEFAULT_HIT_TOLERANCE),(0,a.A)(this,"mapId",void 0),(0,a.A)(this,"type",void 0),(0,a.A)(this,"geoviewLayerId",void 0),(0,a.A)(this,"geoviewLayerName",(0,h.createLocalizedString)("")),(0,a.A)(this,"metadataAccessPath",(0,h.createLocalizedString)("")),(0,a.A)(this,"listOfLayerEntryConfig",[]),(0,a.A)(this,"initialSettings",void 0),(0,a.A)(this,"layerLoadError",[]),(0,a.A)(this,"olRootLayer",void 0),(0,a.A)(this,"metadata",null),_(this,R,{}),_(this,j,{}),_(this,F,{}),_(this,D,{}),_(this,N,[]),(0,a.A)(this,"serverDateFragmentsOrder",void 0),(0,a.A)(this,"externalFragmentsOrder",void 0),_(this,B,!0),_(this,z,[]),_(this,V,[]),_(this,$,[]),_(this,G,[]),_(this,U,[]),_(this,W,[]),_(this,q,[]),_(this,H,[]),_(this,Y,[]),_(this,K,[]),_(this,X,[]),this.mapId=r,this.type=t,this.geoviewLayerId=n.geoviewLayerId||(0,h.generateId)(""),this.geoviewLayerName.en=null!=n&&null!==(o=n.geoviewLayerName)&&void 0!==o&&o.en?n.geoviewLayerName.en:L[t],this.geoviewLayerName.fr=null!=n&&null!==(s=n.geoviewLayerName)&&void 0!==s&&s.fr?n.geoviewLayerName.fr:L[t],null!==(l=n.metadataAccessPath)&&void 0!==l&&l.en&&(this.metadataAccessPath.en=n.metadataAccessPath.en.trim()),null!==(c=n.metadataAccessPath)&&void 0!==c&&c.fr&&(this.metadataAccessPath.fr=n.metadataAccessPath.fr.trim()),this.initialSettings=n.initialSettings,this.serverDateFragmentsOrder=n.serviceDateFormat?f.P.getDateFragmentsOrder(n.serviceDateFormat):void 0,this.externalFragmentsOrder=f.P.getDateFragmentsOrder(n.externalDateFormat),I(B,this,void 0===n.isTimeAware||n.isTimeAware),M(Z,this,Q).call(this,n,n.listOfLayerEntryConfig)}),[{key:"getMapViewer",value:function(){return A.d.getMapViewer(this.mapId)}},{key:"getLayerConfig",value:function(e){return this.getMapViewer().layer.getLayerEntryConfig(e)}},{key:"getOLLayer",value:function(e){return this.getMapViewer().layer.getOLLayer(e)}},{key:"getGeoviewLayerId",value:function(){return this.geoviewLayerId}},{key:"getGeoviewLayerName",value:function(){return this.geoviewLayerName}},{key:"getLayerStatus",value:function(e){return this.getLayerConfig(e).layerStatus}},{key:"getLayerName",value:function(e){var t;return P(R,this)[e]?P(R,this)[e]:null===(t=this.getLayerConfig(e))||void 0===t?void 0:t.layerName}},{key:"setLayerName",value:function(e,t){P(R,this)[e]=t,M(Z,this,re).call(this,{layerPath:e,layerName:t})}},{key:"getStyle",value:function(e){return P(D,this)[e]}},{key:"setStyle",value:function(e,t){P(D,this)[e]=t,M(Z,this,le).call(this,{style:t,layerPath:e})}},{key:"getAttributions",value:function(){return P(N,this)}},{key:"setAttributions",value:function(e){I(N,this,e)}},{key:"getLayerMetadata",value:function(e){return P(j,this)[e]}},{key:"setLayerMetadata",value:function(e,t){P(j,this)[e]=t}},{key:"getTemporalDimension",value:function(e){return P(F,this)[e]}},{key:"setTemporalDimension",value:function(e,t){P(F,this)[e]=t}},{key:"getIsTimeAware",value:function(){return P(B,this)}},{key:"countErrorStatus",value:function(){var e=this;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.listOfLayerEntryConfig).reduce((function(t,n){return(0,S.KD)(n)?t+e.countErrorStatus(n.listOfLayerEntryConfig):"error"===n.layerStatus?t+1:t}),0)}},{key:"createGeoViewLayers",value:(pe=(0,r.A)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.olRootLayer){e.next=13;break}return g.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - createGeoViewLayers",this.listOfLayerEntryConfig),this.listOfLayerEntryConfig.length>0&&(t="".concat(this.mapId," | ").concat(this.listOfLayerEntryConfig[0].layerPath)),t&&g.vF.logMarkerStart(t),e.next=6,this.getAdditionalServiceDefinition();case 6:return t&&g.vF.logMarkerCheck(t,"to get additional service definition"),e.next=9,this.processListOfLayerEntryConfig(this.listOfLayerEntryConfig);case 9:this.olRootLayer=e.sent,t&&g.vF.logMarkerCheck(t,"to process list of layer entry config"),e.next=14;break;case 13:throw new C.Kz(this,this.mapId);case 14:case"end":return e.stop()}}),e,this)}))),function(){return pe.apply(this,arguments)})},{key:"getAdditionalServiceDefinition",value:(he=(0,r.A)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchServiceMetadata();case 3:if(!this.listOfLayerEntryConfig.length){e.next=6;break}return e.next=6,this.validateAndExtractLayerMetadata();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),g.vF.logError(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return he.apply(this,arguments)})},{key:"validateAndExtractLayerMetadata",value:(de=(0,r.A)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.validateListOfLayerEntryConfig(this.listOfLayerEntryConfig),e.next=4,this.processListOfLayerEntryMetadata(this.listOfLayerEntryConfig);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),g.vF.logError(e.t0);case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return de.apply(this,arguments)})},{key:"fetchServiceMetadata",value:(te=(0,r.A)(l().mark((function e(){var t,n,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,h.getLocalizedValue)(this.metadataAccessPath,w.K.getDisplayLanguage(this.mapId)))){e.next=13;break}return e.prev=2,e.next=5,(0,h.getXMLHttpRequest)("".concat(t,"?f=json"));case 5:"{}"===(n=e.sent)?this.metadata=null:(this.metadata=(0,p.NK)(JSON.parse(n)),r=this.metadata.copyrightText,i=this.getAttributions(),r&&!i.includes(r)&&(i.push(r),this.setAttributions(i))),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),g.vF.logError(e.t0),this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata");case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return te.apply(this,arguments)})},{key:"processListOfLayerEntryMetadata",value:(J=(0,r.A)(l().mark((function e(t){var n,r,i,o=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,n=[],r=0;case 3:if(!(r2&&void 0!==u[2]?u[2]:null,e.prev=1,null!=(o=this.getLayerConfig(n))&&null!==(i=o.source)&&void 0!==i&&null!==(i=i.featureInfo)&&void 0!==i&&i.queryable){e.next=6;break}return g.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:g.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - getFeatureInfo",t,n),a="".concat(t," | ").concat(n),g.vF.logMarkerStart(a),e.t0=t,e.next="all"===e.t0?12:"at_pixel"===e.t0?14:"at_coordinate"===e.t0?16:"at_long_lat"===e.t0?18:"using_a_bounding_box"===e.t0?20:"using_a_polygon"===e.t0?22:24;break;case 12:return s=this.getAllFeatureInfo(n),e.abrupt("break",26);case 14:return s=this.getFeatureInfoAtPixel(r,n),e.abrupt("break",26);case 16:return s=this.getFeatureInfoAtCoordinate(r,n),e.abrupt("break",26);case 18:return s=this.getFeatureInfoAtLongLat(r,n),e.abrupt("break",26);case 20:return s=this.getFeatureInfoUsingBBox(r,n),e.abrupt("break",26);case 22:return s=this.getFeatureInfoUsingPolygon(r,n),e.abrupt("break",26);case 24:s=Promise.resolve([]),g.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return c=e.sent,g.vF.logMarkerCheck(a,"to getFeatureInfo",c),e.abrupt("return",c);case 33:return e.prev=33,e.t1=e.catch(1),g.vF.logError(e.t1),e.abrupt("return",null);case 37:case"end":return e.stop()}}),e,this,[[1,33]])}))),function(e,t){return s.apply(this,arguments)})},{key:"getAllFeatureInfo",value:function(e){return g.vF.logError("getAllFeatureInfo is not implemented! for ".concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtPixel",value:function(e,t){return g.vF.logError("getFeatureInfoAtPixel is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){return g.vF.logError("getFeatureInfoAtCoordinate is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtLongLat",value:function(e,t){return g.vF.logError("getFeatureInfoAtLongLat is not implemented for ".concat(t," - ").concat(e,"!")),Promise.resolve(null)}},{key:"getFeatureInfoUsingBBox",value:function(e,t){return g.vF.logError("getFeatureInfoUsingBBox is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoUsingPolygon",value:function(e,t){return g.vF.logError("getFeatureInfoUsingPolygon is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"queryLegend",value:function(e){var t=this;M(Z,this,ie).call(this,{layerPath:e});var n=this.getLegend(e);return n.then((function(n){n&&(t.updateIconImageCache(n),M(Z,t,oe).call(t,{layerPath:e,legend:n}))})).catch((function(e){g.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGeoviewLayer",e)})),n}},{key:"updateIconImageCache",value:function(e){var t=this.getMapViewer().iconImageCacheSize;e.styleConfig&&Object.keys(e.styleConfig).forEach((function(n){var r,i,o,a;!e.styleConfig||"uniqueValue"!==(null===(r=e.styleConfig[n])||void 0===r?void 0:r.styleType)&&"classBreaks"!==(null===(i=e.styleConfig[n])||void 0===i?void 0:i.styleType)||(null!==(o=e.styleConfig[n].uniqueValueStyleInfo)&&void 0!==o&&o.length&&(t+=e.styleConfig[n].uniqueValueStyleInfo.length),null!==(a=e.styleConfig[n].classBreakStyleInfo)&&void 0!==a&&a.length&&(t+=e.styleConfig[n].classBreakStyleInfo.length))})),d.ue.setSize(t),this.getMapViewer().iconImageCacheSize=t}},{key:"createLayerGroup",value:function(e,t){var n,r={layers:new c.A,properties:{layerConfig:e}};void 0!==(null==t?void 0:t.extent)&&(r.extent=t.extent),void 0!==(null==t?void 0:t.maxZoom)&&(r.maxZoom=t.maxZoom),void 0!==(null==t?void 0:t.minZoom)&&(r.minZoom=t.minZoom),void 0!==(null==t||null===(n=t.states)||void 0===n?void 0:n.opacity)&&(r.opacity=t.states.opacity);var i=new u.A(r);return this.emitLayerCreation({config:e,layer:i}),i}},{key:"getFieldDomain",value:function(e,t){return g.vF.logWarning("getFieldDomain is not implemented for ".concat(e," - ").concat(t)),null}},{key:"getFieldType",value:function(e,t){return g.vF.logWarning("getFieldType is not implemented for ".concat(e," - ").concat(t)),"string"}},{key:"getExtent",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getExtent()}},{key:"setExtent",value:function(e,t){var n=this.getOLLayer(t);n&&n.setExtent(e)}},{key:"getOpacity",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getOpacity()}},{key:"setOpacity",value:function(e,t){var n=this.getOLLayer(t);n&&(n.setOpacity(e),M(Z,this,ce).call(this,{layerPath:t,opacity:e}))}},{key:"getVisible",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getVisible()}},{key:"setVisible",value:function(e,t){var n=this.getOLLayer(t);if(n){var r=this.getVisible(t);n.setVisible(e),e!==r&&M(Z,this,ae).call(this,{layerPath:t,visible:e})}}},{key:"getMinZoom",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getMinZoom()}},{key:"setMinZoom",value:function(e,t){var n=this.getOLLayer(t);n&&n.setMinZoom(e)}},{key:"getMaxZoom",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getMaxZoom()}},{key:"setMaxZoom",value:function(e,t){var n=this.getOLLayer(t);n&&n.setMaxZoom(e)}},{key:"getLegend",value:(n=(0,r.A)(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this.type,e.t1=this.getStyle(t),e.next=5,(0,E.qC)(this.getStyle(t));case 5:return e.t2=e.sent,n={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",n);case 10:return e.prev=10,e.t3=e.catch(0),g.vF.logError(e.t3),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return n.apply(this,arguments)})},{key:"getFieldValue",value:function(e,t,n){var r,i=e.get(t);if("date"===n){"string"==typeof i?(this.serverDateFragmentsOrder||(this.serverDateFragmentsOrder=f.P.getDateFragmentsOrder(f.P.deduceDateFormat(i))),r=f.P.applyInputDateFormat(i,this.serverDateFragmentsOrder)):r=f.P.convertToUTC("".concat(f.P.convertMilisecondsToDate(i),"Z"));return this.externalFragmentsOrder&&(r=f.P.applyOutputDateFormat(r,this.externalFragmentsOrder,!0)),r}return i}},{key:"formatFeatureInfoResult",value:(t=(0,r.A)(l().mark((function e(t,n){var i,o,a,s,c,u,d,p,f,y,v,b,A,S,C,k,T,_=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.length){e.next=3;break}return e.abrupt("return",[]);case 3:return u=new m.z(1),d=function(){return u.withLock((0,r.A)(l().mark((function e(){var t,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==c){e.next=7;break}return c=null,e.next=4,_.queryLegend(n.layerPath);case 4:t=e.sent,(r=x.K.getLayerIconImage(t))&&(c=r[0].iconImage||null);case 7:return e.abrupt("return",c);case 8:case"end":return e.stop()}}),e)}))))},p=null==n||null===(i=n.source)||void 0===i?void 0:i.featureInfo,f=null==p||null===(o=p.fieldTypes)||void 0===o?void 0:o.split(","),y=null===(a=(0,h.getLocalizedValue)(null==p?void 0:p.outfields,w.K.getDisplayLanguage(this.mapId)))||void 0===a?void 0:a.split(","),v=null===(s=(0,h.getLocalizedValue)(null==p?void 0:p.aliasFields,w.K.getDisplayLanguage(this.mapId)))||void 0===s?void 0:s.split(","),b=[],t.forEach((function(e){b.push(new Promise((function(t){(0,E.$G)(e,_.getStyle(n.layerPath),n.filterEquation,n.legendFilterIsOff,!0,d).then((function(n){t({feature:e,canvas:n})})).catch((function(e){g.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGeoViewLayer",e)}))})))})),A={},S={},C=0,k=0,T=[],e.next=18,Promise.all(b);case 18:return e.sent.forEach((function(e){var t,r,i=e.feature,o=e.canvas;i.getGeometry()&&(r=i.getGeometry().getExtent());var a={featureKey:C++,geoviewLayerType:_.type,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,h.getLocalizedValue)(null==n||null===(t=n.source)||void 0===t||null===(t=t.featureInfo)||void 0===t?void 0:t.nameField,w.K.getDisplayLanguage(_.mapId))||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=_.getFieldDomain(e,n));var t=A[e];e in S||(S[e]=_.getFieldType(e,n));var r=S[e];if(null!=y&&y.includes(e)){var o=y.indexOf(e);a.fieldInfo[e]={fieldKey:k++,value:_.getFieldValue(i,e,f[o]),dataType:f[o],alias:v[o],domain:t}}else y||(a.fieldInfo[e]={fieldKey:k++,value:_.getFieldValue(i,e,r),dataType:r,alias:e,domain:t})}})),T.push(a)})),e.abrupt("return",T);case 23:return e.prev=23,e.t0=e.catch(0),g.vF.logError(e.t0),e.abrupt("return",[]);case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e,n){return t.apply(this,arguments)})},{key:"getLayerFilter",value:function(e){var t=this.getLayerConfig(e);return null==t?void 0:t.layerFilter}},{key:"onLoaded",value:function(e){var t;e.layerStatus="loaded",M(Z,this,ue).call(this,{layerPath:e.layerPath}),this.setVisible(!1!==(null===(t=e.initialSettings)||void 0===t||null===(t=t.states)||void 0===t?void 0:t.visible),e.layerPath)}},{key:"onError",value:function(e){e.layerStatus="error"}},{key:"getExtentFromFeatures",value:function(e,t){return g.vF.logError("Feature geometry for ".concat(t," is unavailable from ").concat(e)),Promise.resolve(void 0)}},{key:"setAllLayerStatusTo",value:function(e,t,n){var r=this;t.forEach((function(t){if((0,S.KD)(t))r.setAllLayerStatusTo(e,t.listOfLayerEntryConfig,n);else{if("error"===t.layerStatus)return;if(t.layerStatus=e,"error"===e){var i=t.layerPath;r.layerLoadError.push({layer:i,loggerMessage:"".concat(n," for layer ").concat(i," of map ").concat(r.mapId)})}}}))}},{key:"allLayerStatusAreGreaterThanOrEqualTo",value:function(e){return k.c.allLayerStatusAreGreaterThanOrEqualTo(e,this.listOfLayerEntryConfig)}},{key:"waitForAllLayerStatusAreGreaterThanOrEqualTo",value:(e=(0,r.A)(l().mark((function e(t,n){var r=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.whenThisThen)((function(){return r.allLayerStatusAreGreaterThanOrEqualTo("processed")}),t,n);case 2:return e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})},{key:"setLayerAndLoadEndListeners",value:function(e,t,n){var r=this;if(!t)throw new Error("An OpenLayer must be provided to register listeners. Layer path ".concat(e.layerPath));if(!n)throw new Error("A listenerType must be provided to register listeners. Layer path ".concat(e.layerPath));if(!T.A.LAYERS_HYBRID_MODE&&e.entryType!==S.hJ.GROUP){var i,o=function(){r.onLoaded(e),t.get("source").un("".concat(n,"loaderror"),i)};i=function(){r.onError(e),t.get("source").un("".concat(n,"loadend"),o)},t.get("source").once("".concat(n,"loaderror"),i),t.get("source").once("".concat(n,"loadend"),o)}}},{key:"getAllLayerEntryConfigs",value:function(){var e=this,t=[];return this.listOfLayerEntryConfig.forEach((function(n){M(Z,e,ne).call(e,t,n)})),t}},{key:"onLayerNameChanged",value:function(e){b.A.onEvent(P(z,this),e)}},{key:"offLayerNameChanged",value:function(e){b.A.offEvent(P(z,this),e)}},{key:"onLegendQuerying",value:function(e){b.A.onEvent(P($,this),e)}},{key:"offLegendQuerying",value:function(e){b.A.offEvent(P($,this),e)}},{key:"onLegendQueried",value:function(e){b.A.onEvent(P(G,this),e)}},{key:"offLegendQueried",value:function(e){b.A.offEvent(P(G,this),e)}},{key:"onVisibleChanged",value:function(e){b.A.onEvent(P(U,this),e)}},{key:"offVisibleChanged",value:function(e){b.A.offEvent(P(U,this),e)}},{key:"onLayerEntryProcessed",value:function(e){b.A.onEvent(P(W,this),e)}},{key:"offLayerEntryProcessed",value:function(e){b.A.offEvent(P(W,this),e)}},{key:"emitLayerRequesting",value:function(e){return b.A.emitEvent(this,P(q,this),e)}},{key:"onLayerRequesting",value:function(e){b.A.onEvent(P(q,this),e)}},{key:"offLayerRequesting",value:function(e){b.A.offEvent(P(q,this),e)}},{key:"emitLayerCreation",value:function(e){b.A.emitEvent(this,P(H,this),e)}},{key:"onLayerCreation",value:function(e){b.A.onEvent(P(H,this),e)}},{key:"offLayerCreation",value:function(e){b.A.offEvent(P(H,this),e)}},{key:"emitLayerFilterApplied",value:function(e){b.A.emitEvent(this,P(Y,this),e)}},{key:"onLayerFilterApplied",value:function(e){b.A.onEvent(P(Y,this),e)}},{key:"offLayerFilterApplied",value:function(e){b.A.offEvent(P(Y,this),e)}},{key:"onLayerStyleChanged",value:function(e){b.A.onEvent(P(V,this),e)}},{key:"offLayerStyleChanged",value:function(e){b.A.offEvent(P(V,this),e)}},{key:"onLayerOpacityChanged",value:function(e){b.A.onEvent(P(K,this),e)}},{key:"offLayerOpacityChanged",value:function(e){b.A.offEvent(P(K,this),e)}},{key:"onIndividualLayerLoaded",value:function(e){b.A.onEvent(P(X,this),e)}},{key:"offIndividualLayerLoaded",value:function(e){b.A.offEvent(P(X,this),e)}}]);var e,t,n,s,v,J,te,de,he,pe}();function Q(e,t){if(0!==t.length){if(1===t.length)this.listOfLayerEntryConfig=t;else{var n=new v.x({geoviewLayerConfig:t[0].geoviewLayerConfig,layerId:this.geoviewLayerId,layerName:this.geoviewLayerName,isMetadataLayerGroup:!1,initialSettings:e.initialSettings,listOfLayerEntryConfig:t});this.listOfLayerEntryConfig=[n],n.listOfLayerEntryConfig.forEach((function(e){e.parentLayerConfig=n}))}this.listOfLayerEntryConfig[0].geoviewLayerConfig.listOfLayerEntryConfig=t}}function ee(e){return te.apply(this,arguments)}function te(){return(te=(0,r.A)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.processListOfLayerEntryMetadata(t.listOfLayerEntryConfig);case 3:return t.layerStatus="processed",M(Z,this,se).call(this,{config:t}),e.abrupt("return",t);case 8:e.prev=8,e.t0=e.catch(0),g.vF.logError(e.t0);case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,this,[[0,8]])})))).apply(this,arguments)}function ne(e,t){var n,r=this;e.push(t),null===(n=t.listOfLayerEntryConfig)||void 0===n||n.forEach((function(t){M(Z,r,ne).call(r,e,t)}))}function re(e){b.A.emitEvent(this,P(z,this),e)}function ie(e){b.A.emitEvent(this,P($,this),e)}function oe(e){b.A.emitEvent(this,P(G,this),e)}function ae(e){b.A.emitEvent(this,P(U,this),e)}function se(e){b.A.emitEvent(this,P(W,this),e)}function le(e){b.A.emitEvent(this,P(V,this),e)}function ce(e){b.A.emitEvent(this,P(K,this),e)}function ue(e){b.A.emitEvent(this,P(X,this),e)}(0,a.A)(J,"DEFAULT_HIT_TOLERANCE",4);var de={CSV:"CSV",ESRI_DYNAMIC:"esriDynamic",ESRI_FEATURE:"esriFeature",ESRI_IMAGE:"esriImage",IMAGE_STATIC:"imageStatic",GEOJSON:"GeoJSON",GEOPACKAGE:"GeoPackage",XYZ_TILES:"xyzTiles",VECTOR_TILES:"vectorTiles",OGC_FEATURE:"ogcFeature",WFS:"ogcWfs",WMS:"ogcWms"},he={CSV:"TypeVectorLayerEntryConfig",imageStatic:"TypeImageStaticLayerEntryConfig",esriDynamic:"TypeEsriDynamicLayerEntryConfig",esriFeature:"TypeVectorLayerEntryConfig",esriImage:"TypeEsriImageLayerEntryConfig",GeoJSON:"TypeVectorLayerEntryConfig",GeoPackage:"TypeVectorLayerEntryConfig",xyzTiles:"TypeTileLayerEntryConfig",vectorTiles:"TypeTileLayerEntryConfig",ogcFeature:"TypeVectorLayerEntryConfig",ogcWfs:"TypeVectorLayerEntryConfig",ogcWms:"TypeOgcWmsLayerEntryConfig"},pe=[de.CSV,de.GEOJSON,de.ESRI_DYNAMIC,de.ESRI_FEATURE,de.ESRI_IMAGE,de.OGC_FEATURE,de.WFS,de.GEOPACKAGE],fe=function(e){return pe.includes(null==e?void 0:e.type)},ge=function(e){return(null==e?void 0:e.type)===de.WMS},me=function(e){return(null==e?void 0:e.type)===de.IMAGE_STATIC}},92409:(e,t,n)=>{"use strict";n.d(t,{$A:()=>R,KS:()=>I,Nf:()=>F,RW:()=>L,Sh:()=>P,YX:()=>M,gm:()=>j,mF:()=>_});var r=n(42432),i=n(96880),o=n(74813),a=n.n(o),s=n(34946),l=n(80363),c=n.n(l),u=n(27991),d=n(23853),h=n(76200),p=n(35415),f=n(8058),g=n(25079),m=n(6883),y=n(12989),v=n(28126),b=n(36267),w=n(2265),x=n(51640),A=n(73611),S=n(42942),C=n(501),E=n(16775);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t{"use strict";n.d(t,{A:()=>p});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(51640),u=n(8058);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(){return(0,r.A)(this,t),d(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getSourceProjection",value:function(e){var n,r,i,o,l,c;return(null===(n=(r=t,i="getOLLayer",o=this,l=3,c=(0,s.A)((0,a.A)(1&l?r.prototype:r),i,o),2&l&&"function"==typeof c?function(e){return c.apply(o,e)}:c)([e]).getSource())||void 0===n?void 0:n.getProjection())||void 0}},{key:"getMetadataProjection",value:function(){var e;return u.M.getProjection("EPSG:".concat(null===(e=this.metadata)||void 0===e||null===(e=e.fullExtent)||void 0===e||null===(e=e.spatialReference)||void 0===e?void 0:e.wkid))||void 0}},{key:"getMetadataExtent",value:function(){var e,t,n,r,i;if(null!==(e=this.metadata)&&void 0!==e&&e.fullExtent)return[null===(t=this.metadata)||void 0===t?void 0:t.fullExtent.xmin,null===(n=this.metadata)||void 0===n?void 0:n.fullExtent.ymin,null===(r=this.metadata)||void 0===r?void 0:r.fullExtent.xmax,null===(i=this.metadata)||void 0===i?void 0:i.fullExtent.ymax]}}])}(c.qt)},73611:(e,t,n)=>{"use strict";n.d(t,{IU:()=>N,xM:()=>B,zt:()=>V});var r=n(29067),i=n(55907),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(42432),p=n(74813),f=n.n(p),g=n(88752),m=n(39684),y=n(58699),v=n(98246),b=n(96997),w=n(76200),x=n(51640),A=n(1691),S=n(35415),C=n(8058),E=n(6883),k=n(25079),T=n(28126),_=n(2265),O=n(92409),P=n(16775);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t0&&(l=s[0]),l||(y={source:a,properties:{layerConfig:n}},void 0!==(null===(c=n.initialSettings)||void 0===c?void 0:c.className)&&(y.className=n.initialSettings.className),void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.extent)&&(y.extent=n.initialSettings.extent),void 0!==(null===(d=n.initialSettings)||void 0===d?void 0:d.maxZoom)&&(y.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(h=n.initialSettings)||void 0===h?void 0:h.minZoom)&&(y.minZoom=n.initialSettings.minZoom),void 0!==(null===(p=n.initialSettings)||void 0===p||null===(p=p.states)||void 0===p?void 0:p.opacity)&&(y.opacity=n.initialSettings.states.opacity),l=new m.A(y),this.setLayerAndLoadEndListeners(n,l,"image")),this.emitLayerCreation({config:n,layer:l}),e.abrupt("return",Promise.resolve(l));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"getAllFeatureInfo",value:(c=(0,o.A)(f().mark((function e(t){var n,o,a,s,l,c,u,d,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getLayerConfig(t),o=n.getTypeGeometries(),a=(0,i.A)(o,1),s=a[0],(l=n.geoviewLayerConfig.metadataAccessPath[P.K.getDisplayLanguage(this.mapId)]).endsWith("/")||(l+="/"),c="".concat(l).concat(n.layerId,"/query?where=1=1&outFields=*&f=json&returnGeometry=false"),e.next=8,fetch(c);case 8:return u=e.sent,e.next=11,u.json();case 11:if(!(d=e.sent).features){e.next=20;break}if(h=d.features.map((function(e){var t;if(e.geometry){var n=e.geometry.points||e.geometry.paths||e.geometry.rings||[e.geometry.x,e.geometry.y];t=b.p.createGeometryFromType(s,n)}var r=e.attributes;return new v.A(M(M({},r),{},{geometry:t}))})),!d.exceededTransferLimit){e.next=19;break}return e.next=17,D(z,this,$).call(this,n,c,h.length);case 17:e.sent.forEach((function(e){var t=e.features.map((function(e){var t;if(e.geometry){var n=e.geometry.points||e.geometry.paths||e.geometry.rings||[e.geometry.x,e.geometry.y];t=b.p.createGeometryFromType(s,n)}var r=e.attributes;return new v.A(M(M({},r),{},{geometry:t}))}));h.push.apply(h,(0,r.A)(t))}));case 19:return e.abrupt("return",this.formatFeatureInfoResult(h,n));case 20:throw new Error("Error querying service. No features were returned.");case 23:return e.prev=23,e.t0=e.catch(0),E.vF.logError("esri-dynamic.getAllFeatureInfo()\n",e.t0),e.abrupt("return",null);case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return c.apply(this,arguments)})},{key:"getFeatureInfoAtPixel",value:function(e,t){return this.getFeatureInfoAtCoordinate(this.getMapViewer().map.getCoordinateFromPixel(e),t)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){var n=this.getMapViewer().convertCoordinateMapProjToLngLat(e);return this.getFeatureInfoAtLongLat(n,t)}},{key:"getFeatureInfoAtLongLat",value:(l=(0,o.A)(f().mark((function e(t,n){var r,i,o,a,s,l,c,u,d,h,p,g,m,v,b,x,A;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.getVisible(n)){e.next=3;break}return e.abrupt("return",[]);case 3:if(o=this.getLayerConfig(n),a=this.getOLLayer(n),null!==(r=o.source)&&void 0!==r&&null!==(r=r.featureInfo)&&void 0!==r&&r.queryable){e.next=7;break}return e.abrupt("return",[]);case 7:if(s=(0,w.getLocalizedValue)(null===(i=o.source)||void 0===i?void 0:i.dataAccessPath,P.K.getDisplayLanguage(this.mapId))){e.next=10;break}return e.abrupt("return",[]);case 10:return s=s.endsWith("/")?s:"".concat(s,"/"),l=this.getMapViewer(),c=l.getView().calculateExtent(),u=l.convertCoordinateMapProjToLngLat([c[0],c[1]]),d=l.convertCoordinateMapProjToLngLat([c[2],c[3]]),h={xmin:u[0],ymin:u[1],xmax:d[0],ymax:d[1]},p=a.getSource(),g=(null==p?void 0:p.getParams().layerDefs)||"",m=l.map.getSize(),s="".concat(s,"identify?f=json&tolerance=").concat(this.hitTolerance)+"&mapExtent=".concat(h.xmin,",").concat(h.ymin,",").concat(h.xmax,",").concat(h.ymax)+"&imageDisplay=".concat(m[0],",").concat(m[1],",96")+"&layers=visible:".concat(o.layerId)+"&layerDefs=".concat(g)+"&returnFieldName=true&sr=4326&returnGeometry=true"+"&geometryType=esriGeometryPoint&geometry=".concat(t[0],",").concat(t[1]),e.next=22,fetch(s);case 22:return v=e.sent,e.next=25,v.json();case 25:if(!(b=e.sent).error){e.next=29;break}throw E.vF.logInfo("There is a problem with this query: ",s),new Error("Error code = ".concat(b.error.code," ").concat(b.error.message)||0);case 29:return x=(new y.A).readFeatures({features:b.results},{dataProjection:C.M.PROJECTION_NAMES.LNGLAT,featureProjection:l.getProjection().getCode()}),e.next=32,this.formatFeatureInfoResult(x,o);case 32:return A=e.sent,e.abrupt("return",A);case 36:return e.prev=36,e.t0=e.catch(0),E.vF.logError("esri-dynamic.getFeatureInfoAtLongLat()\n",e.t0),e.abrupt("return",null);case 40:case"end":return e.stop()}}),e,this,[[0,36]])}))),function(e,t){return l.apply(this,arguments)})},{key:"getViewFilter",value:function(e){var n=this.getLayerConfig(e),r=n.layerFilter;if(this.getStyle(n.layerPath)){var i=function(e){void 0===e.defaultVisible&&(e.defaultVisible=!0);for(var t=(0,_.IG)(e)?e.uniqueValueStyleInfo:e.classBreakStyleInfo,n=0;n= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[0].minValue,n.source.featureInfo))):!1===a.classBreakStyleInfo[0].visible&&!1!==a.defaultVisible&&(d.push("".concat(a.field," < ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[0].minValue,n.source.featureInfo))),h=p):!1!==a.classBreakStyleInfo[p].visible&&!1===a.defaultVisible?(d.push("".concat(a.field," > ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo)))):!1===a.classBreakStyleInfo[p].visible&&!1!==a.defaultVisible&&(d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),h=p):!1===a.defaultVisible?!1===a.classBreakStyleInfo[p].visible?d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))):p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo))):!1!==a.classBreakStyleInfo[p].visible?(d.push("".concat(a.field," > ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))),h=-1):h=p;if(-1!==h&&d.push("".concat(a.field," > ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[h].maxValue,n.source.featureInfo))),!1!==a.defaultVisible){var f="".concat(d.slice(0,-1).reduce((function(e,t,n){return 0===n?"(".concat(t," or "):n%2==0?"".concat(e," and ").concat(t,") or "):"".concat(e,"(").concat(t)}),"")).concat(d.slice(-1)[0],")");return"".concat(f).concat(r?" and (".concat(r,")"):"")}var g=d.length?"".concat(d.reduce((function(e,t,n){return 0===n?"((".concat(t," and "):n%2==0?"".concat(e," or (").concat(t," and "):"".concat(e).concat(t,")")}),""),")"):"(1=0)";return"".concat(g).concat(r?" and (".concat(r,")"):"")}}return"(1=1)"}},{key:"onLoaded",value:function(e){j(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n,i=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];E.vF.logTraceCore("ESRI-DYNAMIC - applyViewFilter",e);var a=this.getLayerConfig(e),s=this.getOLLayer(e),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,a.layerFilter=l,o&&(l=this.getViewFilter(e));var c=(0,r.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=k.P.applyInputDateFormat(e[0],i.externalFragmentsOrder,t);n=(n=n.slice(0,20===n.length?-1:-6)).replace("T"," "),l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))})),null==s||s.getSource().updateParams({layerDefs:'{"'.concat(a.layerId,'": "').concat(l,'"}')}),null==s||s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,S.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}},{key:"getExtentFromFeatures",value:(n=(0,o.A)(f().mark((function e(t,n){var r,i,o,a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getLayerConfig(t),i=(0,w.getLocalizedValue)(r.source.dataAccessPath,P.K.getDisplayLanguage(this.mapId)),o=n.join("%2C"),!i){e.next=21;break}return i.endsWith("/")||(i+="/"),a="".concat(i).concat(r.layerId,"/query?&f=json&where=&objectIds=").concat(o,"&returnGeometry=true"),e.prev=6,e.next=9,fetch(a);case 9:return s=e.sent,e.next=12,s.json();case 12:return l=e.sent,(new y.A).readFeatures({features:l.features},{dataProjection:"EPSG:".concat(l.spatialReference.wkid),featureProjection:this.getMapViewer().getProjection().getCode()}).forEach((function(e){var t,n=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();n&&(c?(0,S.getMinOrMaxExtents)(c,n):c=n)})),e.abrupt("return",c);case 18:e.prev=18,e.t0=e.catch(6),E.vF.logError("Error fetching geometry from ".concat(a),e.t0);case 21:return e.abrupt("return",void 0);case 22:case"end":return e.stop()}}),e,this,[[6,18]])}))),function(e,t){return n.apply(this,arguments)})}]);var n,l,c,u}(A.A);function $(e,t,n,r){return G.apply(this,arguments)}function G(){return(G=(0,o.A)(f().mark((function e(t,n,i,o){var a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],s="".concat(n,"&resultOffset=").concat(o||i),e.prev=2,e.next=5,fetch(s);case 5:return l=e.sent,e.next=8,l.json();case 8:if(c=e.sent,a.push(c),!c.exceededTransferLimit){e.next=19;break}return e.t0=a.push,e.t1=a,e.t2=r.A,e.next=16,D(z,this,$).call(this,t,n,i,o?o+i:2*i);case 16:e.t3=e.sent,e.t4=(0,e.t2)(e.t3),e.t0.apply.call(e.t0,e.t1,e.t4);case 19:e.next=24;break;case 21:e.prev=21,e.t5=e.catch(2),E.vF.logError("Error loading additional features for ".concat(t.layerPath," from ").concat(s),e.t5);case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[2,21]])})))).apply(this,arguments)}function U(e){return e.uniqueValueStyleInfo.reduce((function(t,n){return(!1===n.visible&&!1!==e.defaultVisible||!1!==n.visible&&!1===e.defaultVisible)&&n.values.forEach((function(e,n){var r=t[n].find((function(t){return t.value===e}));r?r.nbOccurence++:t[n].push({value:e,nbOccurence:1})})),t}),e.fields.map((function(){return[]})))}function W(e,t){for(var n=e.fields.map((function(){return!0})),r=[],i=0;-1!==i;i=n.findIndex((function(e){return e}))){for(var o=t[i].reduce((function(e,t){return e+t.nbOccurence}),0),a=0;at[a].length||t[i].length===t[a].length&&o{"use strict";n.d(t,{$x:()=>M,sV:()=>I,yl:()=>P});var r=n(42432),i=n(29067),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(74813),p=n.n(h),f=n(88752),g=n(39684),m=n(76200),y=n(25079),v=n(6883),b=n(58118),w=n(51640),x=n(1691),A=n(2265),S=n(92409),C=n(16775),E=n(35415),k=n(58748);function T(e,t,n){return t=(0,c.A)(t),(0,l.A)(e,_()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function O(e,t,n,r){var i=(0,u.A)((0,c.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var P=function(e){return(null==e?void 0:e.geoviewLayerType)===w.y6.ESRI_IMAGE},I=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===w.y6.ESRI_IMAGE},M=function(e){function t(e,n){return(0,a.A)(this,t),n.serviceDateFormat||(n.serviceDateFormat="DD/MM/YYYY HH:MM:SSZ"),T(this,t,[w.y6.ESRI_IMAGE,n,e])}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getLegend",value:(l=(0,o.A)(p().mark((function e(t){var n,r,i,o,a,s,l,c,u,d;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=4;break}return e.abrupt("return",null);case 4:return r="".concat((0,m.getLocalizedValue)(n.geoviewLayerConfig.metadataAccessPath,C.K.getDisplayLanguage(this.mapId)),"/legend?f=json"),e.next=7,fetch(r);case 7:return i=e.sent,e.next=10,i.json();case 10:if((o=e.sent).layers&&1===o.layers.length?a=o.layers[0].legend:o.layers.length&&(s=o.layers.find((function(e){return e.layerId===n.layerId})))&&(a=s.legend),a){e.next=15;break}return l={type:w.y6.ESRI_IMAGE,styleConfig:this.getStyle(t),legend:null},e.abrupt("return",l);case 15:return c=[],a.forEach((function(e){var t={label:e.label,values:e.label.split(","),settings:{type:"iconSymbol",mimeType:e.contentType,src:e.imageData,width:e.width,height:e.height}};c.push(t)})),u={Point:{styleType:"uniqueValue",fields:["default"],uniqueValueStyleInfo:c}},this.setStyle(t,u),e.t0=w.y6.ESRI_IMAGE,e.t1=u,e.next=24,(0,k.qC)(this.getStyle(t));case 24:return e.t2=e.sent,d={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",d);case 29:return e.prev=29,e.t3=e.catch(0),v.vF.logError("Get Legend for ".concat(t," error"),e.t3),e.abrupt("return",null);case 33:case"end":return e.stop()}}),e,this,[[0,29]])}))),function(e){return l.apply(this,arguments)})},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n=e.layerPath;(0,A.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),e.listOfLayerEntryConfig.length||(t.layerLoadError.push({layer:n,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),e.layerStatus="error"))}))}},{key:"getFieldType",value:function(e,t){return(0,S.KS)(this,e,t)}},{key:"getFieldDomain",value:function(e,t){return(0,S.YX)(this,e,t)}},{key:"processTemporalDimension",value:function(e,t){(0,S.RW)(this,e,t,!0)}},{key:"processFeatureInfoConfig",value:function(e){(0,S.$A)(this,e)}},{key:"processInitialSettings",value:function(e){(0,S.gm)(this,e)}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof b.Q))throw new Error("Invalid layer configuration type provided");return(0,S.Nf)(this,e)}},{key:"processOneLayerEntry",value:(n=(0,o.A)(p().mark((function e(n){var r,i,o,a,s,l,c,u,d,h;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(t,"processOneLayerEntry",this,3)([n]);case 2:if(n instanceof b.Q){e.next=4;break}throw new Error("Invalid layer configuration type provided");case 4:return(r={}).attributions=[this.metadata.copyrightText?this.metadata.copyrightText:""],r.url=(0,m.getLocalizedValue)(n.source.dataAccessPath,C.K.getDisplayLanguage(this.mapId)),r.params={LAYERS:"show:".concat(n.layerId)},n.source.transparent&&Object.defineProperty(r.params,"transparent",n.source.transparent),n.source.format&&Object.defineProperty(r.params,"format",n.source.format),n.source.crossOrigin?r.crossOrigin=n.source.crossOrigin:r.crossOrigin="Anonymous",n.source.projection&&(r.projection="EPSG:".concat(n.source.projection)),i=new f.A(r),(o=this.emitLayerRequesting({config:n,source:i})).length>0&&(a=o[0]),a||(h={source:i,properties:{layerConfig:n}},void 0!==(null===(s=n.initialSettings)||void 0===s?void 0:s.className)&&(h.className=n.initialSettings.className),void 0!==(null===(l=n.initialSettings)||void 0===l?void 0:l.extent)&&(h.extent=n.initialSettings.extent),void 0!==(null===(c=n.initialSettings)||void 0===c?void 0:c.maxZoom)&&(h.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.minZoom)&&(h.minZoom=n.initialSettings.minZoom),void 0!==(null===(d=n.initialSettings)||void 0===d||null===(d=d.states)||void 0===d?void 0:d.opacity)&&(h.opacity=n.initialSettings.states.opacity),a=new g.A(h),this.setLayerAndLoadEndListeners(n,a,"image")),this.emitLayerCreation({config:n,layer:a}),e.abrupt("return",Promise.resolve(a));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"onLoaded",value:function(e){O(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t,n){var o=this;v.vF.logTraceCore("ESRIImage - applyViewFilter",e);var a=this.getLayerConfig(e),s=this.getOLLayer(e),l=s.getSource();if(l){var c=t;if(a.legendFilterIsOff=!n,n&&(a.layerFilter=t),c){var u=(c=c.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),d=u[0].trim();c=u[1].trim();var h=(0,i.A)("".concat(c," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));h.reverse(),h.forEach((function(e){var t=![20,25].includes(e[0].length),n=y.P.applyInputDateFormat(e[0],o.externalFragmentsOrder,t);c="".concat(c.slice(0,e.index-6)).concat(n).concat(c.slice(e.index+e[0].length+2))})),l.updateParams((0,r.A)({},d,c.replace(/\s*/g,""))),s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:c})}}}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,E.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}}]);var n,l}(x.A)},65372:(e,t,n)=>{"use strict";n.d(t,{HO:()=>O,Qn:()=>P,S6:()=>M});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(34946),p=n(33069),f=n(39684),g=n(23853),m=n(51640),y=n(1691),v=n(2265),b=n(76200),w=n(6883),x=n(73095),A=n(16775),S=n(58748);function C(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,E()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}function k(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function T(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function _(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var O=function(e){return(null==e?void 0:e.geoviewLayerType)===m.y6.IMAGE_STATIC},P=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===m.y6.IMAGE_STATIC},I=new WeakSet,M=function(e){function t(e,n){var r;return(0,i.A)(this,t),T(r=C(this,t,[m.y6.IMAGE_STATIC,n,e]),I),r}return(0,c.A)(t,e),(0,o.A)(t,[{key:"fetchServiceMetadata",value:function(){return new Promise((function(e){e()}))}},{key:"getLegend",value:(a=(0,r.A)(d().mark((function e(t){var n,r,i,o,a,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,_(I,this,L).call(this,n);case 6:if(r=e.sent){e.next=10;break}return i={type:m.y6.IMAGE_STATIC,legend:null},e.abrupt("return",i);case 10:return e.next=12,(0,S.yt)(r);case 12:if(!(o=e.sent)){e.next=21;break}return(a=document.createElement("canvas")).width=o.width,a.height=o.height,a.getContext("2d").drawImage(o,0,0),s={type:m.y6.IMAGE_STATIC,legend:a},e.abrupt("return",s);case 21:return l={type:m.y6.IMAGE_STATIC,legend:null},e.abrupt("return",l);case 25:return e.prev=25,e.t0=e.catch(0),w.vF.logError("Error getting legend for ".concat(t),e.t0),e.abrupt("return",null);case 29:case"end":return e.stop()}}),e,this,[[0,25]])}))),function(e){return a.apply(this,arguments)})},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r=e.layerPath;if((0,v.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:r,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",t.metadata){var i;if(Array.isArray(null===(n=t.metadata)||void 0===n?void 0:n.listOfLayerEntryConfig))return(0,g.KX)(null===(i=t.metadata)||void 0===i?void 0:i.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId}))?void 0:(t.layerLoadError.push({layer:r,loggerMessage:"GeoJSON layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error"));throw new Error("Invalid GeoJSON metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")"))}}))}},{key:"processOneLayerEntry",value:(n=(0,r.A)(d().mark((function e(n){var r,i,o,a,s,l,c,u,h,g,m,y;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t,"processOneLayerEntry",this,3)([n]);case 2:if(n instanceof x.V){e.next=4;break}throw new Error("Invalid layer configuration type provided");case 4:if(null!=n&&null!==(r=n.source)&&void 0!==r&&r.extent){e.next=6;break}throw new Error("Parameter extent is not defined in source element of layerConfig.");case 6:if(a={url:(0,b.getLocalizedValue)(n.source.dataAccessPath,A.K.getDisplayLanguage(this.mapId))||"",imageExtent:n.source.extent},null!=n&&null!==(i=n.source)&&void 0!==i&&i.crossOrigin?a.crossOrigin=n.source.crossOrigin:a.crossOrigin="Anonymous",null==n||null===(o=n.source)||void 0===o||!o.projection){e.next=12;break}a.projection="EPSG:".concat(n.source.projection),e.next=13;break;case 12:throw new Error("Parameter projection is not define in source element of layerConfig.");case 13:return s=new p.A(a),(l=this.emitLayerRequesting({config:n,source:s})).length>0&&(c=l[0]),c||(y={source:s},void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.extent)&&(y.extent=n.initialSettings.extent),void 0!==(null===(h=n.initialSettings)||void 0===h?void 0:h.maxZoom)&&(y.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(g=n.initialSettings)||void 0===g?void 0:g.minZoom)&&(y.minZoom=n.initialSettings.minZoom),void 0!==(null===(m=n.initialSettings)||void 0===m||null===(m=m.states)||void 0===m?void 0:m.opacity)&&(y.opacity=n.initialSettings.states.opacity),c=new f.A(y),this.setLayerAndLoadEndListeners(n,c,"image")),this.emitLayerCreation({config:n,layer:c}),e.abrupt("return",Promise.resolve(c));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e),r=this.getSourceProjection(e),i=null==n||null===(t=n.getSource())||void 0===t?void 0:t.getImageExtent();return i&&(i=this.getMapViewer().convertExtentFromProjToMapProj(i,r)),i}}]);var n,a}(y.A);function L(e){var t=this;return new Promise((function(n){var r=(0,b.getLocalizedValue)(e.source.dataAccessPath,A.K.getDisplayLanguage(t.mapId));r?(r=r.toLowerCase().startsWith("http:")?"https".concat(r.slice(4)):r,h.A.get(r,{responseType:"blob",withCredentials:!1}).then((function(e){var t;n((t=(0,g.KX)(e.data),new Promise((function(e){var n=new FileReader;n.onloadend=function(){return e(n.result)},n.onerror=function(){return e(null)},n.readAsDataURL(t)}))))})).catch((function(){return n(null)}))):n(null)}))}},92187:(e,t,n)=>{"use strict";n.d(t,{RZ:()=>uo,Pg:()=>co,c9:()=>lo});var r=n(42432),i=n(96880),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(74813),h=n.n(d),p=n(77796),f=n(97446),g=n(15901),m=n(92368),y=n(95005),v=n(58373),b=n(22527),w=n(58952),x=n(3451),A=n(10851),S=n(20633),C=n(53029),E=n(98765),k=n(58033),T=n(75894),_=n(45282),O=n(7725),P=(n(70003),n(37013),n(4472)),I=n(43910),M=n(67103),L=n(87620),R=n(32332);const j=4294967296,F=1/j,D="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");class N{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(e,t,n=this.length){for(;this.pos>3,i=this.pos;this.type=7&n,e(r,t,this),this.pos===i&&this.skip(n)}return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){const e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){const e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*j;return this.pos+=8,e}readSFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*j;return this.pos+=8,e}readFloat(){const e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){const e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){const t=this.buf;let n,r;return r=t[this.pos++],n=127&r,r<128?n:(r=t[this.pos++],n|=(127&r)<<7,r<128?n:(r=t[this.pos++],n|=(127&r)<<14,r<128?n:(r=t[this.pos++],n|=(127&r)<<21,r<128?n:(r=t[this.pos],n|=(15&r)<<28,function(e,t,n){const r=n.buf;let i,o;if(o=r[n.pos++],i=(112&o)>>4,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<3,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<10,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<17,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<24,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(1&o)<<31,o<128)return B(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(n,e,this)))))}readVarint64(){return this.readVarint(!0)}readSVarint(){const e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return Boolean(this.readVarint())}readString(){const e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&D?D.decode(this.buf.subarray(t,e)):function(e,t,n){let r="",i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+c>n)break;1===c?t<128&&(l=t):2===c?(o=e[i+1],128==(192&o)&&(l=(31&t)<<6|63&o,l<=127&&(l=null))):3===c?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&t)<<12|(63&o)<<6|63&a,(l<=2047||l>=55296&&l<=57343)&&(l=null))):4===c&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&t)<<18|(63&o)<<12|(63&a)<<6|63&s,(l<=65535||l>=1114112)&&(l=null))),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=c}return r}(this.buf,t,e)}readBytes(){const e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){const n=this.readPackedEnd();for(;this.pos127;);else if(2===t)this.pos=this.readVarint()+this.pos;else if(5===t)this.pos+=4;else{if(1!==t)throw new Error(`Unimplemented type: ${t}`);this.pos+=8}}writeTag(e,t){this.writeVarint(e<<3|t)}realloc(e){let t=this.length||16;for(;t268435455||e<0?function(e,t){let n,r;e>=0?(n=e%4294967296|0,r=e/4294967296|0):(n=~(-e%4294967296),r=~(-e/4294967296),4294967295^n?n=n+1|0:(n=0,r=r+1|0));if(e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){const n=(7&e)<<4;if(t.buf[t.pos++]|=n|((e>>>=3)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;t.buf[t.pos++]=127&e}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))}writeSVarint(e){this.writeVarint(e<0?2*-e-1:2*e)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(4*e.length),this.pos++;const t=this.pos;this.pos=function(e,t,n){for(let r,i,o=0;o55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);const n=this.pos-t;n>=128&&z(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){const t=e.length;this.writeVarint(t),this.realloc(t);for(let n=0;n=128&&z(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r}writeMessage(e,t,n){this.writeTag(e,2),this.writeRawMessage(t,n)}writePackedVarint(e,t){t.length&&this.writeMessage(e,V,t)}writePackedSVarint(e,t){t.length&&this.writeMessage(e,$,t)}writePackedBoolean(e,t){t.length&&this.writeMessage(e,W,t)}writePackedFloat(e,t){t.length&&this.writeMessage(e,G,t)}writePackedDouble(e,t){t.length&&this.writeMessage(e,U,t)}writePackedFixed32(e,t){t.length&&this.writeMessage(e,q,t)}writePackedSFixed32(e,t){t.length&&this.writeMessage(e,H,t)}writePackedFixed64(e,t){t.length&&this.writeMessage(e,Y,t)}writePackedSFixed64(e,t){t.length&&this.writeMessage(e,K,t)}writeBytesField(e,t){this.writeTag(e,2),this.writeBytes(t)}writeFixed32Field(e,t){this.writeTag(e,5),this.writeFixed32(t)}writeSFixed32Field(e,t){this.writeTag(e,5),this.writeSFixed32(t)}writeFixed64Field(e,t){this.writeTag(e,1),this.writeFixed64(t)}writeSFixed64Field(e,t){this.writeTag(e,1),this.writeSFixed64(t)}writeVarintField(e,t){this.writeTag(e,0),this.writeVarint(t)}writeSVarintField(e,t){this.writeTag(e,0),this.writeSVarint(t)}writeStringField(e,t){this.writeTag(e,2),this.writeString(t)}writeFloatField(e,t){this.writeTag(e,5),this.writeFloat(t)}writeDoubleField(e,t){this.writeTag(e,1),this.writeDouble(t)}writeBooleanField(e,t){this.writeVarintField(e,+t)}}function B(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function z(e,t,n){const r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(let t=n.pos-1;t>=e;t--)n.buf[t+r]=n.buf[t]}function V(e,t){for(let n=0;n>3}if(a--,1===o||2===o)s+=e.readSVarint(),l+=e.readSVarint(),1===o&&c>u&&(r.push(c),u=c),n.push(s,l),c+=2;else{if(7!==o)throw new Error("Invalid command found in the PBF");c>u&&(n.push(n[u],n[u+1]),c+=2)}}c>u&&(r.push(c),u=c)}createFeature_(e,t,n){const r=t.type;if(0===r)return null;let i;const o=t.properties;let a;this.idProperty_?(a=o[this.idProperty_],delete o[this.idProperty_]):a=t.id,o[this.layerName_]=t.layer.name;const s=[],l=[];this.readRawGeometry_(e,t,s,l);const c=function(e,t){let n;1===e?n=1===t?"Point":"MultiPoint":2===e?n=1===t?"LineString":"MultiLineString":3===e&&(n="Polygon");return n}(r,l.length);if(this.featureClass===b.Ay)i=new this.featureClass(c,s,l,2,o,a),i.transform(n.dataProjection);else{let e;if("Polygon"==c){const t=(0,ee.yJ)(s,l);e=t.length>1?new R.A(s,"XY",t):new Z.Ay(s,"XY",l)}else e="Point"===c?new X.A(s,"XY"):"LineString"===c?new I.A(s,"XY"):"MultiPoint"===c?new L.A(s,"XY"):"MultiLineString"===c?new M.A(s,"XY",l):null;i=new(0,this.featureClass),this.geometryName_&&i.setGeometryName(this.geometryName_);const t=(0,P.hX)(e,!1,n);i.setGeometry(t),void 0!==a&&i.setId(a),i.setProperties(o,!0)}return i}getType(){return"arraybuffer"}readFeatures(e,t){const n=this.layers_;t=this.adaptOptions(t);const r=(0,Q.Jt)(t.dataProjection);r.setWorldExtent(t.extent),t.dataProjection=r;const i=new N(e),o=i.readFields(ne,{}),a=[];for(const e in o){if(n&&!n.includes(e))continue;const s=o[e],l=s?[0,0,s.extent,s.extent]:null;r.setExtent(l);for(let e=0,n=s.length;e>3)?n.readString():2===e?n.readFloat():3===e?n.readDouble():4===e?n.readVarint64():5===e?n.readVarint():6===e?n.readSVarint():7===e?n.readBoolean():null;t.values.push(r)}}function ie(e,t,n){if(1==e)t.id=n.readVarint();else if(2==e){const e=n.readVarint()+n.pos;for(;n.pos=200&&t.status<300){let e;try{e=JSON.parse(t.responseText)}catch(e){return void this.handleTileJSONError()}this.handleTileJSONResponse(e)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=(0,Q.Jt)("EPSG:4326"),n=this.getProjection();let r;if(void 0!==e.bounds){const i=(0,Q.FO)(t,n);r=(0,le.applyTransform)(e.bounds,i)}const i=(0,ue.kZ)(n),o=e.minzoom||0,a=e.maxzoom||22,s=(0,ue.EN)({extent:i,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=(0,ce.Qz)(e.tiles,s),e.attribution&&!this.getAttributions()){const t=void 0!==r?r:i;this.setAttributions((function(n){return(0,le.intersects)(t,n.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const he=de;var pe=n(67287),fe=n(15877),ge=n(50273),me=n(16597),ye=n(39488);n(85208);function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var be,we={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function xe(e){return(e=Math.round(e))<0?0:e>255?255:e}function Ae(e){return e<0?0:e>1?1:e}function Se(e){return"%"===e[e.length-1]?xe(parseFloat(e)/100*255):xe(parseInt(e))}function Ce(e){return"%"===e[e.length-1]?Ae(parseFloat(e)/100):Ae(parseFloat(e))}function Ee(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{be={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in we)return we[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var r=n.indexOf("("),i=n.indexOf(")");if(-1!==r&&i+1===n.length){var o=n.substr(0,r),a=n.substr(r+1,i-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=Ce(a.pop());case"rgb":return 3!==a.length?null:[Se(a[0]),Se(a[1]),Se(a[2]),s];case"hsla":if(4!==a.length)return null;s=Ce(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,c=Ce(a[1]),u=Ce(a[2]),d=u<=.5?u*(c+1):u+c-u*c,h=2*u-d;return[xe(255*Ee(h,d,l+1/3)),xe(255*Ee(h,d,l)),xe(255*Ee(h,d,l-1/3)),s];default:return null}}return null}}catch(e){}class ke{constructor(e,t,n,r=1){this.r=e,this.g=t,this.b=n,this.a=r}static parse(e){if(!e)return;if(e instanceof ke)return e;if("string"!=typeof e)return;const t=be(e);return t?new ke(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,r]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${r})`}toArray(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]}toArray01(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[e/r,t/r,n/r,r]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:r}=this;return[e,t,n,r]}}ke.black=new ke(0,0,0,1),ke.white=new ke(1,1,1,1),ke.transparent=new ke(0,0,0,0),ke.red=new ke(1,0,0,1),ke.blue=new ke(0,0,1,1);var Te=ke;function _e(e){return"object"==typeof e?["literal",e]:e}function Oe(e,t){let n=e.stops;if(!n)return function(e,t){const n=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",n]:n;if("enum"===t.type)return["match",n,Object.keys(t.values),n,e.default];{const r=["color"===t.type?"to-color":t.type,n,_e(e.default)];return"array"===t.type&&r.splice(1,0,t.value,t.length||null),r}}(e,t);const r=n&&"object"==typeof n[0][0],i=r||void 0!==e.property,o=r||!i;return n=n.map((e=>!i&&t.tokens&&"string"==typeof e[1]?[e[0],Fe(e[1])]:[e[0],_e(e[1])])),r?function(e,t,n){const r={},i={},o=[];for(let t=0;t3&&t===e[e.length-2]||(r&&2===e.length||e.push(t),e.push(n))}function je(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function Fe(e){const t=["concat"],n=/{([^{}]+)}/g;let r=0;for(let i=n.exec(e);null!==i;i=n.exec(e)){const o=e.slice(r,n.lastIndex-i[0].length);r=n.lastIndex,o.length>0&&t.push(o),t.push(["get",i[1]])}if(1===t.length)return e;if(r`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Qe=[Ve,$e,Ge,Ue,We,Ke,qe,Ze(He),Xe];function et(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!et(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Qe)if(!et(e,t))return null}return`Expected ${Je(e)} but found ${Je(t)} instead.`}function tt(e,t){return t.some((t=>t.kind===e.kind))}function nt(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}class rt{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class it{constructor(e,t,n,r,i){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i}}class ot{constructor(e){this.sections=e}static fromString(e){return new ot([new it(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.name.length))}static factory(e){return e instanceof ot?e:ot.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class at{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new at({name:e,available:!1}):null}serialize(){return["image",this.name]}}function st(e,t,n,r){if(!("number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255)){return`Invalid rgba value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}return void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`}function lt(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Te)return!0;if(e instanceof rt)return!0;if(e instanceof ot)return!0;if(e instanceof at)return!0;if(Array.isArray(e)){for(const t of e)if(!lt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!lt(e[t]))return!1;return!0}return!1}function ct(e){if(null===e)return Ve;if("string"==typeof e)return Ge;if("boolean"==typeof e)return Ue;if("number"==typeof e)return $e;if(e instanceof Te)return We;if(e instanceof rt)return Ye;if(e instanceof ot)return Ke;if(e instanceof at)return Xe;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=ct(t);if(n){if(n===e)continue;n=He;break}n=e}return Ze(n||He,t)}return qe}function ut(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Te||e instanceof ot||e instanceof at?e.toString():JSON.stringify(e)}class dt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!lt(e[1]))return t.error("invalid value");const n=e[1];let r=ct(n);const i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new dt(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Te?["rgba"].concat(this.value.toArray()):this.value instanceof ot?this.value.serialize():this.value}}var ht=dt;var pt=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const ft={string:Ge,number:$e,boolean:Ue,object:qe};class gt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,r=1;const i=e[0];if("array"===i){let i,o;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in ft)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=ft[n],r++}else i=He;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=Ze(i,o)}else n=ft[i];const o=[];for(;re.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((e=>e.serialize())))}}var mt=gt;class yt{constructor(e){this.type=Ke,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const r=[];let i=!1;for(let n=1;n<=e.length-1;++n){const o=e[n];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;let e=null;if(o["font-scale"]&&(e=t.parse(o["font-scale"],1,$e),!e))return null;let n=null;if(o["text-font"]&&(n=t.parse(o["text-font"],1,Ze(Ge)),!n))return null;let a=null;if(o["text-color"]&&(a=t.parse(o["text-color"],1,We),!a))return null;const s=r[r.length-1];s.scale=e,s.font=n,s.textColor=a}else{const o=t.parse(e[n],1,He);if(!o)return null;const a=o.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new yt(r)}evaluate(e){return new ot(this.sections.map((t=>{const n=t.content.evaluate(e);return ct(n)===Xe?new it("",n,null,null,null):new it(ut(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class vt{constructor(e){this.type=Xe,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,Ge);return n?new vt(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=at.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const bt={"to-boolean":Ue,"to-color":We,"to-number":$e,"to-string":Ge};class wt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const r=bt[n],i=[];for(let n=1;n4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:st(t[0],t[1],t[2],t[3]),!n))return new Te(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new pt(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const r=Number(t);if(!isNaN(r))return r}throw new pt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?ot.fromString(ut(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?at.fromString(ut(this.args[0].evaluate(e))):ut(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new yt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new vt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var xt=wt;const At=["Unknown","Point","LineString","Polygon"];var St=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?At[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:r}=this.featureTileCoord,i=n*t-e[0],o=r*t-e[1];return this.featureDistanceData.bearing[0]*i+this.featureDistanceData.bearing[1]*o}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Te.parse(e)),t}};class Ct{constructor(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const n=e[0],r=Ct.definitions[n];if(!r)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,a=o.filter((([t])=>!Array.isArray(t)||t.length===e.length-1));let s=null;for(const[r,o]of a){s=new Jt(t.registry,t.path,null,t.scope);const a=[];let l=!1;for(let t=1;t{return t=e,Array.isArray(t)?`(${t.map(Je).join(", ")})`:`(${Je(t.type)}...)`;var t})).join(" | "),r=[];for(let n=1;n=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function Pt(e,t){const n=(180+e[0])/360;const r=(i=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360);var i;const o=Math.pow(2,t.z);return[Math.round(n*o*Tt),Math.round(r*o*Tt)]}function It(e,t,n){const r=e[0]-t[0],i=e[1]-t[1],o=e[0]-n[0],a=e[1]-n[1];return r*a-o*i==0&&r*o<=0&&i*a<=0}function Mt(e,t){let n=!1;for(let a=0,s=t.length;ar[1]!=o[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]&&(n=!n)}}var r,i,o;return n}function Lt(e,t){for(let n=0;n0&&d<0||u<0&&d>0}function jt(e,t,n,r){const i=[t[0]-e[0],t[1]-e[1]],o=[r[0]-n[0],r[1]-n[1]];return 0!=(a=o)[0]*(s=i)[1]-a[1]*s[0]&&!(!Rt(e,t,n,r)||!Rt(n,r,e,t));var a,s}function Ft(e,t,n){for(const r of n)for(let n=0;nn[2]){const t=.5*r;let i=e[0]-n[0]>t?-r:n[0]-e[0]>t?r:0;0===i&&(i=e[0]-n[2]>t?-r:n[2]-e[0]>t?r:0),e[0]+=i}_t(t,e)}function $t(e,t,n,r){const i=Math.pow(2,r.z)*Tt,o=[r.x*Tt,r.y*Tt],a=[];if(!e)return a;for(const r of e)for(const e of r){const r=[e.x+o[0],e.y+o[1]];Vt(r,t,n,i),a.push(r)}return a}function Gt(e,t,n,r){const i=Math.pow(2,r.z)*Tt,o=[r.x*Tt,r.y*Tt],a=[];if(!e)return a;for(const n of e){const e=[];for(const r of n){const n=[r.x+o[0],r.y+o[1]];_t(t,n),e.push(n)}a.push(e)}if(t[2]-t[0]<=i/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of a)for(const r of e)Vt(r,t,n,i)}var s;return a}class Ut{constructor(e,t){this.type=Ue,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(lt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e{t&&!qt(e)&&(t=!1)})),t}function Ht(e){if(e instanceof Et&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!Ht(e)&&(t=!1)})),t}function Yt(e,t){if(e instanceof Et&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!Yt(e,t)&&(n=!1)})),n}class Kt{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new Kt(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Xt=Kt;class Zt{constructor(e,t=[],n,r=new ze,i=[]){this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=r,this.errors=i,this.expectedType=n}parse(e,t,n,r,i={}){return t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)}_parse(e,t){function n(e,t,n){return"assert"===n?new mt(t,[e]):"coerce"===n?new xt(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[r];if(i){let r=i.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,i=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==i.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(e,i))return null}else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"assert")}if(!(r instanceof ht)&&"resolvedImage"!==r.type.kind&&Qt(r)){const e=new St;try{r=new ht(r.type,r.evaluate(e))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new Zt(this.registry,r,t||null,i,this.errors)}error(e,...t){const n=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new Ne(n,e))}checkSubtype(e,t){const n=et(e,t);return n&&this.error(n),n}}var Jt=Zt;function Qt(e){if(e instanceof Xt)return Qt(e.boundExpression);if(e instanceof Et&&"error"===e.name)return!1;if(e instanceof kt)return!1;if(e instanceof Wt)return!1;const t=e instanceof xt||e instanceof mt;let n=!0;return e.eachChild((e=>{n=t?n&&Qt(e):n&&e instanceof ht})),!!n&&(qt(e)&&Yt(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function en(e,t){const n=e.length-1;let r,i,o=0,a=n,s=0;for(;o<=a;)if(s=Math.floor((o+a)/2),r=e[s],i=e[s+1],r<=t){if(s===n||tt))throw new pt("Input is not a number.");a=s-1}return 0}class tn{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,$e);if(!n)return null;const r=[];let i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(let n=1;n=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const c=t.parse(a,l,i);if(!c)return null;i=i||c.type,r.push([o,c])}return new tn(i,n,r)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);return n[en(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var nn=tn,rn=on;function on(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}on.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},on.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},on.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},on.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)(r=1))return r;for(;no?n=i:r=i,i=.5*(r-n)+n}return i},on.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var an=ve(rn);function sn(e,t,n){return e*(1-n)+t*n}var ln=Object.freeze({__proto__:null,number:sn,color:function(e,t,n){return new Te(sn(e.r,t.r,n),sn(e.g,t.g,n),sn(e.b,t.b,n),sn(e.a,t.a,n))},array:function(e,t,n){return e.map(((e,r)=>sn(e,t[r],n)))}});const cn=.95047,un=1,dn=1.08883,hn=4/29,pn=6/29,fn=3*pn*pn,gn=pn*pn*pn,mn=Math.PI/180,yn=180/Math.PI;function vn(e){return e>gn?Math.pow(e,1/3):e/fn+hn}function bn(e){return e>pn?e*e*e:fn*(e-hn)}function wn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function An(e){const t=xn(e.r),n=xn(e.g),r=xn(e.b),i=vn((.4124564*t+.3575761*n+.1804375*r)/cn),o=vn((.2126729*t+.7151522*n+.072175*r)/un);return{l:116*o-16,a:500*(i-o),b:200*(o-vn((.0193339*t+.119192*n+.9503041*r)/dn)),alpha:e.a}}function Sn(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=un*bn(t),n=cn*bn(n),r=dn*bn(r),new Te(wn(3.2404542*n-1.5371385*t-.4985314*r),wn(-.969266*n+1.8760108*t+.041556*r),wn(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Cn(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const En={forward:An,reverse:Sn,interpolate:function(e,t,n){return{l:sn(e.l,t.l,n),a:sn(e.a,t.a,n),b:sn(e.b,t.b,n),alpha:sn(e.alpha,t.alpha,n)}}},kn={forward:function(e){const{l:t,a:n,b:r}=An(e),i=Math.atan2(r,n)*yn;return{h:i<0?i+360:i,c:Math.sqrt(n*n+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*mn,n=e.c;return Sn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Cn(e.h,t.h,n),c:sn(e.c,t.c,n),l:sn(e.l,t.l,n),alpha:sn(e.alpha,t.alpha,n)}}};class Tn{constructor(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,n,r){let i=0;if("exponential"===e.name)i=_n(t,e.base,n,r);else if("linear"===e.name)i=_n(t,1,n,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;i=new an(o[0],o[1],o[2],o[3]).solve(_n(t,1,n,r))}return i}static parse(e,t){let[n,r,i,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(i=t.parse(i,2,$e),!i)return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=We:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let e=0;e=n)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const c=t.parse(r,l,s);if(!c)return null;s=s||c.type,a.push([n,c])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new Tn(s,n,r,i,a):t.error(`Type ${Je(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);const o=en(t,r),a=t[o],s=t[o+1],l=Tn.interpolationFactor(this.interpolation,r,a,s),c=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?ln[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?kn.reverse(kn.interpolate(kn.forward(c),kn.forward(u),l)):En.reverse(En.interpolate(En.forward(c),En.forward(u),l))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;eet(r,e.type)));return new Pn(o?He:n,i)}evaluate(e){let t,n=null,r=0;for(const i of this.args){if(r++,n=i.evaluate(e),n&&n instanceof at&&!n.available&&(t||(t=n),n=null,r===this.args.length))return t;if(null!==n)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var In=Pn;class Mn{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let r=1;r=n.length)throw new pt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new pt(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var jn=Rn;class Fn{constructor(e,t){this.type=Ue,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,He),r=t.parse(e[2],2,He);return n&&r?tt(n.type,[Ue,Ge,$e,Ve,He])?new Fn(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!nt(t,["boolean","string","number","null"]))throw new pt(`Expected first argument to be of type boolean, string, number or null, but found ${Je(ct(t))} instead.`);if(!nt(n,["string","array"]))throw new pt(`Expected second argument to be of type array or string, but found ${Je(ct(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Dn=Fn;class Nn{constructor(e,t,n){this.type=$e,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,He),r=t.parse(e[2],2,He);if(!n||!r)return null;if(!tt(n.type,[Ue,Ge,$e,Ve,He]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,$e);return i?new Nn(n,r,i):null}return new Nn(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!nt(t,["boolean","string","number","null"]))throw new pt(`Expected first argument to be of type boolean, string, number or null, but found ${Je(ct(t))} instead.`);if(!nt(n,["string","array"]))throw new pt(`Expected second argument to be of type array or string, but found ${Je(ct(n))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Bn=Nn;class zn{constructor(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const i={},o=[];for(let a=2;aNumber.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,ct(e)))return null}else n=ct(e);if(void 0!==i[String(e)])return c.error("Branch labels must be unique.");i[String(e)]=o.length}const u=t.parse(l,a,r);if(!u)return null;r=r||u.type,o.push(u)}const a=t.parse(e[1],1,He);if(!a)return null;const s=t.parse(e[e.length-1],e.length-1,r);return s?"value"!==a.type.kind&&t.concat(1).checkSubtype(n,a.type)?null:new zn(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(ct(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],r={};for(const e of t){const t=r[this.cases[e]];void 0===t?(r[this.cases[e]]=n.length,n.push([this.cases[e],[e]])):n[t][1].push(e)}const i=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,r]of n)1===r.length?e.push(i(r[0])):e.push(r.map(i)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}var Vn=zn;class $n{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r=[];for(let i=1;it.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Gn=$n;class Un{constructor(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,He),r=t.parse(e[2],2,$e);if(!n||!r)return null;if(!tt(n.type,[Ze(He),Ge,He]))return t.error(`Expected first argument to be of type array or string, but found ${Je(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,$e);return i?new Un(n.type,n,r,i):null}return new Un(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!nt(t,["string","array"]))throw new pt(`Expected first argument to be of type array or string, but found ${Je(ct(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Wn=Un;function qn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Hn(e,t,n,r){return 0===r.compare(t,n)}function Yn(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=Ue,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let o=t.parse(e[1],1,He);if(!o)return null;if(!qn(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${Je(o.type)}'.`);let a=t.parse(e[2],2,He);if(!a)return null;if(!qn(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${Je(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${Je(o.type)}' and '${Je(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new mt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new mt(o.type,[a])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,Ye),!s)return null}return new i(o,a,s)}evaluate(i){const o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){const t=ct(o),n=ct(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new pt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=ct(o),n=ct(a);if("string"!==e.kind||"string"!==n.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const Kn=Yn("==",(function(e,t,n){return t===n}),Hn),Xn=Yn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!Hn(0,t,n,r)})),Zn=Yn("<",(function(e,t,n){return t",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),Qn=Yn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),er=Yn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0}));class tr{constructor(e,t,n,r,i,o){this.type=Ge,this.number=e,this.locale=t,this.currency=n,this.unit=r,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,$e);if(!n)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let i=null;if(r.locale&&(i=t.parse(r.locale,1,Ge),!i))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,Ge),!o))return null;let a=null;if(r.unit&&(a=t.parse(r.unit,1,Ge),!a))return null;let s=null;if(r["min-fraction-digits"]&&(s=t.parse(r["min-fraction-digits"],1,$e),!s))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,$e),!l)?null:new tr(n,i,o,a,s,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class nr{constructor(e){this.type=$e,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${Je(n.type)} instead.`):new nr(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new pt(`Expected value to be of type string or array, but found ${Je(ct(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const rr={"==":Kn,"!=":Xn,">":Jn,"<":Zn,">=":er,"<=":Qn,array:mt,at:jn,boolean:mt,case:Gn,coalesce:In,collator:kt,format:yt,image:vt,in:Dn,"index-of":Bn,interpolate:On,"interpolate-hcl":On,"interpolate-lab":On,length:nr,let:Ln,literal:ht,match:Vn,number:mt,"number-format":tr,object:mt,slice:Wn,step:nn,string:mt,"to-boolean":xt,"to-color":xt,"to-number":xt,"to-string":xt,var:Xt,within:Wt};function ir(e,[t,n,r,i]){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,a=st(t,n,r,o);if(a)throw new pt(a);return new Te(t/255*o,n/255*o,r/255*o,o)}function or(e,t){return e in t}function ar(e,t){const n=t[e];return void 0===n?null:n}function sr(e){return{type:e}}Et.register(rr,{error:[{kind:"error"},[Ge],(e,[t])=>{throw new pt(t.evaluate(e))}],typeof:[Ge,[He],(e,[t])=>Je(ct(t.evaluate(e)))],"to-rgba":[Ze($e,4),[We],(e,[t])=>t.evaluate(e).toArray()],rgb:[We,[$e,$e,$e],ir],rgba:[We,[$e,$e,$e,$e],ir],has:{type:Ue,overloads:[[[Ge],(e,[t])=>or(t.evaluate(e),e.properties())],[[Ge,qe],(e,[t,n])=>or(t.evaluate(e),n.evaluate(e))]]},get:{type:He,overloads:[[[Ge],(e,[t])=>ar(t.evaluate(e),e.properties())],[[Ge,qe],(e,[t,n])=>ar(t.evaluate(e),n.evaluate(e))]]},"feature-state":[He,[Ge],(e,[t])=>ar(t.evaluate(e),e.featureState||{})],properties:[qe,[],e=>e.properties()],"geometry-type":[Ge,[],e=>e.geometryType()],id:[He,[],e=>e.id()],zoom:[$e,[],e=>e.globals.zoom],pitch:[$e,[],e=>e.globals.pitch||0],"distance-from-center":[$e,[],e=>e.distanceFromCenter()],"heatmap-density":[$e,[],e=>e.globals.heatmapDensity||0],"line-progress":[$e,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[$e,[],e=>e.globals.skyRadialProgress||0],accumulated:[He,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[$e,sr($e),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[$e,sr($e),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:$e,overloads:[[[$e,$e],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[$e],(e,[t])=>-t.evaluate(e)]]},"/":[$e,[$e,$e],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[$e,[$e,$e],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[$e,[],()=>Math.LN2],pi:[$e,[],()=>Math.PI],e:[$e,[],()=>Math.E],"^":[$e,[$e,$e],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[$e,[$e],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[$e,[$e],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[$e,[$e],(e,[t])=>Math.log(t.evaluate(e))],log2:[$e,[$e],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[$e,[$e],(e,[t])=>Math.sin(t.evaluate(e))],cos:[$e,[$e],(e,[t])=>Math.cos(t.evaluate(e))],tan:[$e,[$e],(e,[t])=>Math.tan(t.evaluate(e))],asin:[$e,[$e],(e,[t])=>Math.asin(t.evaluate(e))],acos:[$e,[$e],(e,[t])=>Math.acos(t.evaluate(e))],atan:[$e,[$e],(e,[t])=>Math.atan(t.evaluate(e))],min:[$e,sr($e),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[$e,sr($e),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[$e,[$e],(e,[t])=>Math.abs(t.evaluate(e))],round:[$e,[$e],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[$e,[$e],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[$e,[$e],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ue,[Ge,He],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[Ue,[He],(e,[t])=>e.id()===t.value],"filter-type-==":[Ue,[Ge],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r{const n=e.id(),r=t.value;return typeof n==typeof r&&n":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[Ue,[He],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[Ue,[He],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[Ue,[He],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[Ue,[He],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ue,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ue,[Ze(Ge)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ue,[Ze(He)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ue,[Ge,Ze(He)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ue,[Ge,Ze(He)],(e,[t,n])=>function(e,t,n,r){for(;n<=r;){const i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:Ue,overloads:[[[Ue,Ue],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[sr(Ue),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:Ue,overloads:[[[Ue,Ue],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[sr(Ue),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[Ue,[Ue],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ue,[Ge],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[Ge,[Ge],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Ge,[Ge],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Ge,sr(He),(e,t)=>t.map((t=>ut(t.evaluate(e)))).join("")],"resolved-locale":[Ge,[Ye],(e,[t])=>t.evaluate(e).resolvedLocale()]});var lr=rr;function cr(e){return{result:"success",value:e}}function ur(e){return{result:"error",value:e}}function dr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}class hr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new St,this._defaultValue=t?function(e){return"color"===e.type&&(dr(e.default)||Array.isArray(e.default))?new Te(0,0,0,0):"color"===e.type?Te.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,r,i,o,a,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,r,i,o,a,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new pt(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function pr(e,t){const n=new Jt(lr,[],t?function(e){const t={color:We,string:Ge,number:$e,enum:Ge,boolean:Ue,formatted:Ke,resolvedImage:Xe};if("array"===e.type)return Ze(t[e.value]||He,e.length);return t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?cr(new hr(r,t)):ur(n.errors)}class fr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Ht(t.expression)}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}}class gr{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Ht(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}interpolationFactor(e,t,n){return this.interpolationType?On.interpolationFactor(this.interpolationType,e,t,n):0}}function mr(e,t){if("error"===(e=pr(e,t)).result)return e;const n=e.value.expression,r=qt(n);if(!r&&!function(e){return"data-driven"===e["property-type"]}(t))return ur([new Ne("","data expressions not supported")]);const i=Yt(n,["zoom","pitch","distance-from-center"]);if(!i&&!function(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}(t))return ur([new Ne("","zoom expressions not supported")]);const o=yr(n);if(!o&&!i)return ur([new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof Ne)return ur([o]);if(o instanceof On&&!function(e){return!!e.expression&&e.expression.interpolated}(t))return ur([new Ne("",'"interpolate" expressions cannot be used with this property')]);if(!o)return cr(new fr(r?"constant":"source",e.value));const a=o instanceof On?o.interpolation:void 0;return cr(new gr(r?"camera":"composite",e.value,o.labels,a))}function yr(e){let t=null;if(e instanceof Ln)t=yr(e.result);else if(e instanceof In){for(const n of e.args)if(t=yr(n),t)break}else(e instanceof nn||e instanceof On)&&e.input instanceof Et&&"zoom"===e.input.name&&(t=e);return t instanceof Ne||e.eachChild((e=>{const n=yr(e);n instanceof Ne?t=n:!t&&n?t=new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new Ne("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function vr(e){if(Array.isArray(e))return e.map(vr);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=vr(e[n]);return t}return function(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}(e)}var br={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],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",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function wr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!wr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function xr(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};wr(e)||(e=_r(e));const n=e;let r=!0;try{r=function(e){if(!Cr(e))return e;let t=vr(e);return Sr(t),t=Ar(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n `)}const i=br[`filter_${t}`],o=pr(r,i);let a=null;if("error"===o.result)throw new Error(o.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(e,t,n)=>o.value.evaluate(e,t,{},n);let s=null,l=null;if(r!==n){const e=pr(n,i);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s=(t,n,r,i,o)=>e.value.evaluate(t,n,{},r,void 0,void 0,i,o),l=!qt(e.value.expression)}return{filter:a,dynamicFilter:s||void 0,needGeometry:Tr(r),needFeature:!!l}}function Ar(e){if(!Array.isArray(e))return e;const t=function(e){if(Er.has(e[0]))for(let t=1;tAr(e)))}function Sr(e){let t=!1;const n=[];if("case"===e[0]){for(let r=1;r",">=","<","<=","to-boolean"]);function kr(e,t){return et?1:0}function Tr(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t"===t||"<="===t||">="===t?Or(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(_r))):"all"===t?["all"].concat(e.slice(1).map(_r)):"none"===t?["all"].concat(e.slice(1).map(_r).map(Mr)):"in"===t?Pr(e[1],e.slice(2)):"!in"===t?Mr(Pr(e[1],e.slice(2))):"has"===t?Ir(e[1]):"!has"===t?Mr(Ir(e[1])):"within"!==t||e}function Or(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function Pr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(kr)]]:["filter-in-small",e,["literal",t]]}}function Ir(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Mr(e){return["!",e]}var Lr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Rr(e,t){const n={};for(const t in e)"ref"!==t&&(n[t]=e[t]);return Lr.forEach((e=>{e in t&&(n[e]=t[e])})),n}function jr(e){e=e.slice();const t=Object.create(null);for(let n=0;n1?d[d.length-2].toLowerCase():"";if(h==p||h==p.replace("-","")||f+"-"+h==p){a=i?a:Fr[p],d.pop(),f&&p.startsWith(f)&&d.pop();break}}i||"number"!=typeof h||(a=h,i=!0);var g=d.join(Dr).replace("Klokantech Noto Sans","Noto Sans");-1!==g.indexOf(Dr)&&(g='"'+g+'"'),l.push(g)}r=Br[e]=[s,a,l]}return r[0]+Dr+r[1]+Dr+t+"px"+(n?"/"+n:"")+Dr+r[2]}));const Vr="https://api.mapbox.com";function $r(e){const t="mapbox://";return 0!==e.indexOf(t)?"":e.slice(9)}function Gr(e,t){const n=$r(e);if(!n)return decodeURI(new URL(e,location.href).href);const r="styles/";if(0!==n.indexOf(r))throw new Error(`unexpected style url: ${e}`);const i=n.slice(7);return`${Vr}/styles/v1/${i}?&access_token=${t}`}function Ur(e,t,n,r){const i=new URL(e,r),o=$r(e);if(!o)return t?(i.searchParams.has(n)||i.searchParams.set(n,t),decodeURI(i.href)):decodeURI(i.href);if("mapbox.satellite"===o){return`https://api.mapbox.com/v4/${o}/{z}/{x}/{y}${window.devicePixelRatio>=1.5?"@2x":""}.webp?access_token=${t}`}return`https://{a-d}.tiles.mapbox.com/v4/${o}/{z}/{x}/{y}.vector.pbf?access_token=${t}`}const Wr={},qr={};let Hr=0;function Yr(e){return e.id||(e.id=Hr++),e.id}function Kr(e,t){return Yr(e)+"."+(0,_.v6)(t)}function Xr(e){let t=Wr[e.id];return t||(t={},Wr[Yr(e)]=t),t}function Zr(e){let t=qr[e.id];return t||(t={},qr[Yr(e)]=t),t}function Jr(e){return e*Math.PI/180}const Qr=function(){const e=[];for(let t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function ei(e,t){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(e,t);const n=document.createElement("canvas");return n.width=e,n.height=t,n}function ti(e,t){let n=0;const r=t.length;for(;ni)).then((e=>(e instanceof Request||(e=new Request(e)),e.headers.get("Accept")||e.headers.set("Accept","application/json"),r&&(r.request=e),fetch(e).then((function(e){return delete ri[t],e.ok?e.json():Promise.reject(new Error("Error fetching source "+t))})).catch((function(e){return delete ri[t],Promise.reject(new Error("Error fetching source "+t))})))));return ri[t]=[i,o],o}function oi(e,t){if("string"!=typeof e)return Promise.resolve(e);if(!e.trim().startsWith("{"))return ii("Style",e=Gr(e,t.accessToken),t);try{const t=JSON.parse(e);return Promise.resolve(t)}catch(e){return Promise.reject(e)}}const ai={};function si(e,t,n={}){const r=[t,JSON.stringify(e)].toString();let i=ai[r];if(!i||n.transformRequest){let o;n.transformRequest&&(o=(e,t)=>{const r=n.transformRequest&&n.transformRequest(t,"Tiles")||t;if(e instanceof k.A)e.setLoader(((t,n,i)=>{(0,S.hq)((()=>r)).then((n=>{fetch(n).then((e=>e.arrayBuffer())).then((n=>{const r=e.getFormat().readFeatures(n,{extent:t,featureProjection:i});e.setFeatures(r)})).catch((t=>e.setState(E.A.ERROR)))}))}));else{const t=e.getImage();(0,S.hq)((()=>r)).then((n=>{n instanceof Request?fetch(n).then((e=>e.blob())).then((e=>{const n=URL.createObjectURL(e);t.addEventListener("load",(()=>URL.revokeObjectURL(n))),t.addEventListener("error",(()=>URL.revokeObjectURL(n))),t.src=n})).catch((t=>e.setState(E.A.ERROR))):t.src=n}))}});const a=e.url;if(a&&!e.tiles){const r=Ur(a,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(a.startsWith("mapbox://"))i=Promise.resolve({tileJson:Object.assign({},e,{url:void 0,tiles:(0,T.Uu)(r)}),tileLoadFunction:o});else{const e={};i=ii("Source",r,n,e).then((function(t){return t.tiles=t.tiles.map((function(r){return"tms"===t.scheme&&(r=r.replace("{y}","{-y}")),Ur(r,n.accessToken,n.accessTokenParam||"access_token",e.request.url)})),Promise.resolve({tileJson:t,tileLoadFunction:o})}))}}else e=Object.assign({},e,{tiles:e.tiles.map((function(r){return"tms"===e.scheme&&(r=r.replace("{y}","{-y}")),Ur(r,n.accessToken,n.accessTokenParam||"access_token",t||location.href)}))}),i=Promise.resolve({tileJson:Object.assign({},e),tileLoadFunction:o});ai[r]=i}return i}function li(e,t,n,r){const i=[2*n*t.pixelRatio+t.width,2*n*t.pixelRatio+t.height],o=ei(i[0],i[1]),a=o.getContext("2d");a.drawImage(e,t.x,t.y,t.width,t.height,n*t.pixelRatio,n*t.pixelRatio,t.width,t.height);const s=a.getImageData(0,0,i[0],i[1]);a.globalCompositeOperation="destination-over",a.fillStyle=`rgba(${255*r.r},${255*r.g},${255*r.b},${r.a})`;const l=s.data;for(let e=0,r=s.width;e0&&a.arc(e,i,n*t.pixelRatio,0,2*Math.PI)}return a.fill(),o}function ci(e,t,n){const r=Math.max(0,Math.min(1,(n-e)/(t-e)));return r*r*(3-2*r)}function ui(e,t,n){const r=ei(t.width,t.height),i=r.getContext("2d");i.drawImage(e,t.x,t.y,t.width,t.height,0,0,t.width,t.height);const o=i.getImageData(0,0,t.width,t.height),a=o.data;for(let e=0,t=o.width;e0?(a[i+0]=Math.round(255*n.r*l),a[i+1]=Math.round(255*n.g*l),a[i+2]=Math.round(255*n.b*l),a[i+3]=Math.round(255*l)):a[i+3]=0}return i.putImageData(o,0,0),r}const di=Array(256).join(" ");function hi(e,t){if(t>=.05){let n="";const r=e.split("\n"),i=di.slice(0,Math.round(t/.1));for(let e=0,t=r.length;e0&&(n+="\n"),n+=r[e].split("").join(i);return n}return e}let pi;function fi(){return pi||(pi=ei(1,1).getContext("2d")),pi}function gi(e,t){return fi().measureText(e).width+(e.length-1)*t}const mi={};function yi(e,t,n,r){if(-1!==e.indexOf("\n")){const i=e.split("\n"),o=[];for(let e=0,a=i.length;e1){const e=fi();e.font=t;const i=e.measureText("M").width*n;let s="";const l=[];for(let e=0,t=a.length;e1;++e){const n=l[e];if(gi(n,r)<.35*i){const i=e>0?gi(l[e-1],r):1/0,o=e.7*i&&gi(o,r)<.6*i){const a=n.split(" "),s=a.pop();gi(s,r)<.2*i&&(l[e]=a.join(" "),l[e+1]=s+" "+o),t-=1}}o=l.join("\n")}else o=e;o=hi(o,r),mi[i]=o}return o}const vi=/font-family: ?([^;]*);/,bi=/("|')/g;let wi;function xi(e){if(!wi){wi={};const e=document.styleSheets;for(let t=0,n=e.length;t`${e.key}: ${e.message}`)).join(", "));return n.value},ki={},Ti={zoom:0};let _i,Oi;function Pi(e,t,n,r,i,o,a){const s=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});const l=o[s];if(!l[n]){let r=(e[t]||ki)[n];const i=br[`${t}_${e.type}`][n];void 0===r&&(r=i.default);let o=(c=r,Array.isArray(c)&&c.length>0&&"string"==typeof c[0]&&c[0]in lr);if(!o&&dr(r)&&(r=Oe(r,i),o=!0),o){const e=Ei(r,i);l[n]=e.evaluate.bind(e)}else"color"==i.type&&(r=Te.parse(r)),l[n]=function(){return r}}var c;return Ti.zoom=r,l[n](Ti,i,a)}function Ii(e,t,n,r,i){if(!Pi(e,"layout",`${r}-allow-overlap`,t,n,i))return"declutter";return Pi(e,"layout",`${r}-ignore-placement`,t,n,i)?"none":"obstacle"}function Mi(e,t,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=xr(t).filter),Ti.zoom=r,i[e](Ti,n)}let Li=!1;function Ri(e,t){if(e){if(!Li&&(0===e.a||0===t))return;const n=e.a;return t=void 0===t?1:t,0===n?"transparent":"rgba("+Math.round(255*e.r/n)+","+Math.round(255*e.g/n)+","+Math.round(255*e.b/n)+","+n*t+")"}return e}const ji=/\{[^{}}]*\}/g;function Fi(e,t){return e.replace(ji,(function(e){return t[e.slice(1,-1)]||""}))}let Di=!1;const Ni={};function Bi(e,t,n,r=Qr,i=void 0,o=void 0,a=void 0,s=void 0){if("string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");let l,c,u;if(Ni[Kr(t,e)]=Array.from(arguments),o)if("undefined"!=typeof Image){const t=new Image;let n;(0,S.hq)((()=>o)).then((e=>{e instanceof Request?fetch(e).then((e=>e.blob())).then((e=>{n=URL.createObjectURL(e),t.src=n})).catch((()=>{})):(t.crossOrigin="anonymous",t.src=e,n&&URL.revokeObjectURL(n))})),t.onload=function(){l=t,c=[t.width,t.height],e.changed(),t.onload=null}}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){const e=self;e.postMessage({action:"loadImage",src:o}),e.addEventListener("message",(function(e){"imageLoaded"===e.data.action&&e.data.src===o&&(l=e.data.image,c=[l.width,l.height])}))}const d=jr(t.layers),h={},p=[],f={},g={},C=Xr(t),E=Zr(t);let k;for(let e=0,r=d.length;e=j.maxzoom)continue;const B=j.filter;if(!B||Mi(F,B,I,k,E)){let r,d,S,E,F,B;L=j;const z=h.index;if(3==P&&("fill"==j.type||"fill-extrusion"==j.type))if(d=Pi(j,"paint",j.type+"-opacity",k,I,C,M),j.type+"-pattern"in N){const e=Pi(j,"paint",j.type+"-pattern",k,I,C,M);if(e){const t="string"==typeof e?Fi(e,p):e.toString();if(l&&i&&i[t]){++R,B=O[R],B&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new x.Ay({fill:new y.A}),O[R]=B),S=B.getFill(),B.setZIndex(z);const e=t+"."+d;let n=g[e];if(!n){const r=i[t],o=ei(r.width,r.height),a=o.getContext("2d");a.globalAlpha=d,a.drawImage(l,r.x,r.y,r.width,r.height,0,0,r.width,r.height),n=a.createPattern(o,"repeat"),g[e]=n}S.setColor(n)}}}else r=Ri(Pi(j,"paint",j.type+"-color",k,I,C,M),d),j.type+"-outline-color"in N&&(F=Ri(Pi(j,"paint",j.type+"-outline-color",k,I,C,M),d)),F||(F=r),(r||F)&&(++R,B=O[R],(!B||r&&!B.getFill()||!r&&B.getFill()||F&&!B.getStroke()||!F&&B.getStroke()||B.getText())&&(B=new x.Ay({fill:r?new y.A:void 0,stroke:F?new w.A:void 0}),O[R]=B),r&&(S=B.getFill(),S.setColor(r)),F&&(E=B.getStroke(),E.setColor(F),E.setWidth(.5)),B.setZIndex(z));if(1!=P&&"line"==j.type){r="line-pattern"in N?void 0:Ri(Pi(j,"paint","line-color",k,I,C,M),Pi(j,"paint","line-opacity",k,I,C,M));const e=Pi(j,"paint","line-width",k,I,C,M);r&&e>0&&(++R,B=O[R],B&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new x.Ay({stroke:new w.A}),O[R]=B),E=B.getStroke(),E.setLineCap(Pi(j,"layout","line-cap",k,I,C,M)),E.setLineJoin(Pi(j,"layout","line-join",k,I,C,M)),E.setMiterLimit(Pi(j,"layout","line-miter-limit",k,I,C,M)),E.setColor(r),E.setWidth(e),E.setLineDash(N["line-dasharray"]?Pi(j,"paint","line-dasharray",k,I,C,M).map((function(t){return t*e})):null),B.setZIndex(z))}let V,$,G,U,W,q,H,Y,K,X=!1,Z=null,J=0;if((1==P||2==P)&&"icon-image"in D){const t=Pi(j,"layout","icon-image",k,I,C,M);if(t){let r;V="string"==typeof t?Fi(t,p):t.toString();const a=s?s(e,V):void 0;if(l&&i&&i[V]||a){const e=Pi(j,"layout","icon-rotation-alignment",k,I,C,M);if(2==P){const t=n.getGeometry();if(t.getFlatMidpoint||t.getFlatMidpoints){const n=t.getExtent();if(Math.sqrt(Math.max(Math.pow((n[2]-n[0])/o,2),Math.pow((n[3]-n[1])/o,2)))>150){const n="MultiLineString"===t.getType()?t.getFlatMidpoints():t.getFlatMidpoint();Oi||(_i=[NaN,NaN],Oi=new b.Ay("Point",_i,[],2,{},void 0)),r=Oi,_i[0]=n[0],_i[1]=n[1];if("line"===Pi(j,"layout","symbol-placement",k,I,C,M)&&"map"===e){const e=t.getStride(),r=t.getFlatCoordinates();for(let t=0,i=r.length-e;t=l&&n[0]<=u&&n[1]>=c&&n[1]<=d){J=Math.atan2(o-s,a-i);break}}}}}}if(2!==P||r){const t=Pi(j,"layout","icon-size",k,I,C,M),n=void 0!==N["icon-color"]?Pi(j,"paint","icon-color",k,I,C,M):null;if(!n||0!==n.a){const r=Pi(j,"paint","icon-halo-color",k,I,C,M),o=Pi(j,"paint","icon-halo-width",k,I,C,M);let s=`${V}.${t}.${o}.${r}`;if(null!==n&&(s+=`.${n}`),$=f[s],!$){const d=Ii(j,k,I,"icon",C);let h;"icon-offset"in D&&(h=Pi(j,"layout","icon-offset",k,I,C,M).slice(0),h[0]*=t,h[1]*=-t);let p=n?[255*n.r,255*n.g,255*n.b,n.a]:void 0;if(a){const n={color:p,rotateWithView:"map"===e,displacement:h,declutterMode:d,scale:t};"string"==typeof a?n.src=a:(n.img=a,n.imgSize=[a.width,a.height]),$=new v.A(n)}else{const a=i[V];let s,f,g;o?a.sdf?(s=li(ui(l,a,n||[0,0,0,1]),{x:0,y:0,width:a.width,height:a.height,pixelRatio:a.pixelRatio},o,r),p=void 0):s=li(l,a,o,r):(a.sdf?(u||(u=ui(l,{x:0,y:0,width:c[0],height:c[1]},{r:1,g:1,b:1,a:1})),s=u):s=l,f=[a.width,a.height],g=[a.x,a.y]),$=new v.A({color:p,img:s,imgSize:c,size:f,offset:g,rotateWithView:"map"===e,scale:t/a.pixelRatio,displacement:h,declutterMode:d})}f[s]=$}}$&&(++R,B=O[R],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new x.Ay,O[R]=B),B.setGeometry(r),$.setRotation(J+Jr(Pi(j,"layout","icon-rotate",k,I,C,M))),$.setOpacity(Pi(j,"paint","icon-opacity",k,I,C,M)),$.setAnchor(Ci[Pi(j,"layout","icon-anchor",k,I,C,M)]),B.setImage($),Z=B.getText(),B.setText(void 0),B.setZIndex(z),X=!0,G=!1)}else G=!0}}}if(1==P&&"circle"===j.type){++R,B=O[R],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new x.Ay,O[R]=B);const e="circle-radius"in N?Pi(j,"paint","circle-radius",k,I,C,M):5,t=Ri(Pi(j,"paint","circle-stroke-color",k,I,C,M),Pi(j,"paint","circle-stroke-opacity",k,I,C,M)),n=Pi(j,"paint","circle-translate",k,I,C,M),r=Ri(Pi(j,"paint","circle-color",k,I,C,M),Pi(j,"paint","circle-opacity",k,I,C,M)),i=Pi(j,"paint","circle-stroke-width",k,I,C,M),o=e+"."+t+"."+r+"."+i+"."+n[0]+"."+n[1];$=f[o],$||($=new m.A({radius:e,displacement:[n[0],-n[1]],stroke:t&&i>0?new w.A({width:i,color:t}):void 0,fill:r?new y.A({color:r}):void 0,declutterMode:"none"}),f[o]=$),B.setImage($),Z=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(z),X=!0}if("text-field"in D){H=Math.round(Pi(j,"layout","text-size",k,I,C,M));const e=Pi(j,"layout","text-font",k,I,C,M);q=Pi(j,"layout","text-line-height",k,I,C,M),W=zr(a?a(e,t.metadata?t.metadata["ol:webfonts"]:void 0):e,H,q),W.includes("sans-serif")||(W+=",sans-serif"),Y=Pi(j,"layout","text-letter-spacing",k,I,C,M),K=Pi(j,"layout","text-max-width",k,I,C,M);const n=Pi(j,"layout","text-field",k,I,C,M);U="object"==typeof n&&n.sections?1===n.sections.length?n.toString():n.sections.reduce(((t,n,r)=>{const i=n.fontStack?n.fontStack.split(","):e,o=zr(a?a(i):i,H*(n.scale||1),q);let s=n.text;if("\n"===s)return t.push("\n",""),t;if(2!=P){s=yi(s,o,K,Y).split("\n");for(let e=0,n=s.length;e0&&t.push("\n",""),t.push(s[e],o);return t}t.push(hi(s,Y),o)}),[]):Fi(n,p).trim(),d=Pi(j,"paint","text-opacity",k,I,C,M)}if(U&&d&&!G){X||(++R,B=O[R],B&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new x.Ay,O[R]=B),B.setImage(void 0),B.setGeometry(void 0));const e=Ii(j,k,I,"text",C);B.getText()||B.setText(Z),Z=B.getText(),(!Z||"getDeclutterMode"in Z&&Z.getDeclutterMode()!==e)&&(Z=new A.A({padding:[2,2,2,2],declutterMode:e}),B.setText(Z));const t=Pi(j,"layout","text-transform",k,I,C,M);"uppercase"==t?U=Array.isArray(U)?U.map(((e,t)=>t%2?e:e.toUpperCase())):U.toUpperCase():"lowercase"==t&&(U=Array.isArray(U)?U.map(((e,t)=>t%2?e:e.toLowerCase())):U.toLowerCase());const n=Array.isArray(U)?U:2==P?hi(U,Y):yi(U,W,K,Y);Z.setText(n),Z.setFont(W),Z.setRotation(Jr(Pi(j,"layout","text-rotate",k,I,C,M)));const r=Pi(j,"layout","text-anchor",k,I,C,M),i=X||1==P?"point":Pi(j,"layout","symbol-placement",k,I,C,M);let o;if("line-center"===i?(Z.setPlacement("line"),o="center"):Z.setPlacement(i),"line"===i&&"function"==typeof Z.setRepeat){const e=Pi(j,"layout","symbol-spacing",k,I,C,M);Z.setRepeat(2*e)}Z.setOverflow("point"===i);let a=Pi(j,"paint","text-halo-width",k,I,C,M);const s=Pi(j,"layout","text-offset",k,I,C,M),l=Pi(j,"paint","text-translate",k,I,C,M);let c=0,u=0;if("point"==i){o="center",-1!==r.indexOf("left")?(o="left",u=a):-1!==r.indexOf("right")&&(o="right",u=-a);const e=Pi(j,"layout","text-rotation-alignment",k,I,C,M);Z.setRotateWithView("map"==e)}else Z.setMaxAngle(Jr(Pi(j,"layout","text-max-angle",k,I,C,M))*U.length/n.length),Z.setRotateWithView(!1);Z.setTextAlign(o);let h="middle";0==r.indexOf("bottom")?(h="bottom",c=-a-.5*(q-1)*H):0==r.indexOf("top")&&(h="top",c=a+.5*(q-1)*H),Z.setTextBaseline(h);const p=Pi(j,"layout","text-justify",k,I,C,M);Z.setJustify("auto"===p?void 0:p),Z.setOffsetX(s[0]*H+u+l[0]),Z.setOffsetY(s[1]*H+c+l[1]),_.setColor(Ri(Pi(j,"paint","text-color",k,I,C,M),d)),Z.setFill(_);const f=Ri(Pi(j,"paint","text-halo-color",k,I,C,M),d);if(f&&a>0){T.setColor(f),a*=2;const e=.5*H;T.setWidth(a<=e?a:e),Z.setStroke(T)}else Z.setStroke(void 0);const g=Pi(j,"layout","text-padding",k,I,C,M),m=Z.getPadding();g!==m[0]&&(m[0]=g,m[1]=g,m[2]=g,m[3]=g),B.setZIndex(z)}}}return R>-1?(O.length=R+1,Di&&("set"in n?n.set("mapbox-layer",L):n.getProperties()["mapbox-layer"]=L),O):void 0};return e.setStyle(P),e.set("mapbox-source",k),e.set("mapbox-layers",p),e.set("mapbox-featurestate",e.get("mapbox-featurestate")||{}),P}function zi(e,t=512){return e.getExtent()?(0,ue.EN)({extent:e.getExtent(),tileSize:t,maxZoom:22}).getResolutions():Qr}function Vi(e,t){if(!t.accessToken){t=Object.assign({},t);new URL(e).searchParams.forEach(((e,n)=>{t.accessToken=e,t.accessTokenParam=n}))}return t}function $i(e,t,n="",r={},i=void 0){let o,a,s,l,c=!0;return"string"==typeof n||Array.isArray(n)?l=n:(s=n,l=s.source||s.layers,r=s),"string"==typeof r?(o=r,s={}):(o=r.styleUrl,s=r),!1===s.updateSource&&(c=!1),i||(i=s.resolutions),o||"string"!=typeof t||t.trim().startsWith("{")||(o=t),o&&(o=o.startsWith("data:")?location.href:Gr(o,s.accessToken),s=Vi(o,s)),new Promise((function(n,r){oi(t,s).then((function(t){if(8!=t.version)return r(new Error("glStyle version 8 required."));if(!(e instanceof pe.A||e instanceof p.A))return r(new Error("Can only apply to VectorLayer or VectorTileLayer"));const u=e instanceof p.A?"vector":"geojson";if(l?a=Array.isArray(l)?t.layers.find((function(e){return e.id===l[0]})).source:l:(a=Object.keys(t.sources).find((function(e){return t.sources[e].type===u})),l=a),!a)return r(new Error(`No ${u} source found in the glStyle.`));function d(){if(!c)return Promise.resolve();if(e instanceof p.A)return Ui(t.sources[a],o,s).then((function(t){const n=e.getSource();n?t!==n&&(n.setTileUrlFunction(t.getTileUrlFunction()),"function"==typeof n.setUrls&&"function"==typeof t.getUrls&&n.setUrls(t.getUrls()),n.format_||(n.format_=t.format_),n.getAttributions()||n.setAttributions(t.getAttributions()),n.getTileLoadFunction()===f.Y&&n.setTileLoadFunction(t.getTileLoadFunction()),(0,Q.tI)(n.getProjection(),t.getProjection())&&(n.tileGrid=t.getTileGrid())):e.setSource(t);const r=e.getSource().getTileGrid();!isFinite(e.getMaxResolution())&&!isFinite(e.getMinZoom())&&r.getMinZoom()>0&&e.setMaxResolution(ni(Math.max(0,r.getMinZoom()-1e-12),r.getResolutions()))}));const n=t.sources[a];let r=e.getSource();r&&r.get("mapbox-source")===n||(r=qi(n,o,s));const i=e.getSource();return i?r!==i&&(i.getAttributions()||i.setAttributions(r.getAttributions()),i.format_||(i.format_=r.getFormat()),i.url_=r.getUrl()):e.setSource(r),Promise.resolve()}let h,g,m,y;function v(){if(y||t.sprite&&!g)y?(e.setStyle(y),d().then(n).catch(r)):r(new Error("Something went wrong trying to apply style."));else{if(s.projection&&!i){const e=(0,Q.Jt)(s.projection).getUnits();"m"!==e&&(i=Qr.map((t=>t/ge.I[e])))}y=Bi(e,t,l,i,g,m,((e,t=s.webfonts)=>function(e,t="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const n=e.toString();if(n in Ai)return Ai[n];const r=[];for(let t=0,n=e.length;t=1.5?.5:1;const n=.5==h?"@2x":"";let i=e.origin+e.pathname+n+".json"+e.search;new Promise((function(t,n){ii("Sprite",i,s).then(t).catch((function(r){i=e.origin+e.pathname+".json"+e.search,ii("Sprite",i,s).then(t).catch(n)}))})).then((function(t){if(void 0===t&&r(new Error("No sprites found.")),g=t,m=e.origin+e.pathname+n+".png"+e.search,s.transformRequest){const e=s.transformRequest(m,"SpriteImage")||m;(e instanceof Request||e instanceof Promise)&&(m=e)}v()})).catch((function(e){r(new Error(`Sprites cannot be loaded: ${i}: ${e.message}`))}))}else v()})).catch(r)}))}function Gi(e,t,n){const r=new he({tileJSON:t,tileSize:e.tileSize||t.tileSize||512}),i=r.getTileJSON(),o=r.getTileGrid(),a=(0,Q.Jt)(n.projection||"EPSG:3857"),s=function(e,t){const n=e.bounds;if(n){const e=(0,Q.Rb)([n[0],n[1]],t),r=(0,Q.Rb)([n[2],n[3]],t);return[e[0],e[1],r[0],r[1]]}return(0,Q.Jt)(t).getExtent()}(i,a),l=a.getExtent(),c=i.minzoom||0,u=i.maxzoom||22,d={attributions:r.getAttributions(),projection:a,tileGrid:new g.A({origin:l?(0,le.getTopLeft)(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:c,resolutions:zi(a,t.tileSize).slice(0,u+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?d.urls=i.tiles:d.url=i.tiles,d}function Ui(e,t,n){return new Promise((function(r,i){si(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=Gi(e,t,n);o.tileLoadFunction=i,o.format=new ae,r(new f.A(o))})).catch(i)}))}function Wi(e){return`{bbox-${(e?e.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function qi(e,t,n){const r=n.projection?new O.A({dataProjection:n.projection}):new O.A,i=e.data,o={};if("string"==typeof i){const o=Ur(i,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(o)){const t=(e,t,n)=>{const r=Wi(n);return o.replace(r,`${e.join(",")}`)},i=new fe.A({attributions:e.attribution,format:r,loader:(e,r,o,a,s)=>{ii("GeoJSON","function"==typeof t?t(e,r,o):t,n).then((e=>{const t=i.getFormat().readFeatures(e,{featureProjection:o});i.addFeatures(t),a(t)})).catch((t=>{i.removeLoadedExtent(e),s()}))},strategy:me.Qk});return i.set("mapbox-source",e),i}const a=new fe.A({attributions:e.attribution,format:r,url:o,loader:(e,t,r,i,s)=>{ii("GeoJSON",o,n).then((e=>{const t=a.getFormat().readFeatures(e,{featureProjection:r});a.addFeatures(t),i(t)})).catch((t=>{a.removeLoadedExtent(e),s()}))}});return a}o.features=r.readFeatures(i,{featureProjection:(0,Q.Tf)()||"EPSG:3857"});const a=new fe.A(Object.assign({attributions:e.attribution,format:r},o));return a.set("mapbox-source",e),a}ye.Ay;p.A;var Hi=n(51640),Yi=n(1691),Ki=n(2265),Xi=n(76200),Zi=n(23853),Ji=n(35415),Qi=n(68705),eo=n(74388),to=n(6883),no=n(16775);function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t0&&(b=v[0]),b||(E={source:y},void 0!==(null===(w=n.initialSettings)||void 0===w?void 0:w.className)&&(E.className=n.initialSettings.className),void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.extent)&&(E.extent=n.initialSettings.extent),void 0!==(null===(A=n.initialSettings)||void 0===A?void 0:A.maxZoom)&&(E.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(S=n.initialSettings)||void 0===S?void 0:S.minZoom)&&(E.minZoom=n.initialSettings.minZoom),void 0!==(null===(C=n.initialSettings)||void 0===C||null===(C=C.states)||void 0===C?void 0:C.opacity)&&(E.opacity=n.initialSettings.states.opacity),k="LYR2"!==this.mapId,b=new p.A(io(io({},E),{},{declutter:k})),this.setLayerAndLoadEndListeners(n,b,"tile")),this.emitLayerCreation({config:n,layer:b}),T=o.tileGrid.getResolutions(),null!==(i=this.metadata)&&void 0!==i&&i.defaultStyles&&$i(b,"".concat((0,Xi.getLocalizedValue)(this.metadataAccessPath,no.K.getDisplayLanguage(this.mapId))).concat(this.metadata.defaultStyles,"/root.json"),{resolutions:null!=T&&T.length?T:[]}).catch((function(e){to.vF.logPromiseFailed("applyStyle in processOneLayerEntry in VectorTiles",e)})),e.abrupt("return",Promise.resolve(b));case 23:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof eo.E))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t=this.metadata.tileInfo,n=this.metadata.fullExtent,r={extent:[n.xmin,n.ymin,n.xmax,n.ymax],origin:[t.origin.x,t.origin.y],resolutions:t.lods.map((function(e){return e.resolution})),tileSize:[t.rows,t.cols]};e.source.tileGrid=r,e.initialSettings.extent=(0,Ji.validateExtentWhenDefined)(e.initialSettings.extent)}return Promise.resolve(e)}},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e),r=this.getSourceProjection(e),i=null==n||null===(t=n.getSource())||void 0===t||null===(t=t.getTileGrid())||void 0===t?void 0:t.getExtent();return i&&(i=this.getMapViewer().convertExtentFromProjToMapProj(i,r)),i}},{key:"setVectorTileStyle",value:function(e,t){return $i(this.getMapViewer().layer.getOLLayer(e),t)}}]);var n}(Yi.A)},4401:(e,t,n)=>{"use strict";n.d(t,{GB:()=>G,Xx:()=>z,w6:()=>V});var r=n(55723),i=n(55907),o=n(29067),a=n(96880),s=n(13718),l=n(47280),c=n(75583),u=n(96645),d=n(6620),h=n(94270),p=n(42432),f=n(74813),g=n.n(f),m=n(34946),y=n(39684),v=n(69341),b=n(18064),w=n(80363),x=n.n(w),A=n(23853),S=n(51640),C=n(1691),E=n(2265),k=n(76200),T=n(25079),_=n(35415),O=n(68705),P=n(27991),I=n(6883),M=n(3248),L=n(16775),R=n(58748);function j(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,F()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F=function(){return!!e})()}function D(e,t,n,r){var i=(0,d.A)((0,u.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function N(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function B(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var z=function(e){return(null==e?void 0:e.geoviewLayerType)===S.y6.WMS},V=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===S.y6.WMS},$=new WeakSet,G=function(e){function t(e,n){var r;return(0,s.A)(this,t),N(r=j(this,t,[S.y6.WMS,n,e]),$),(0,p.A)(r,"WMSStyles",void 0),r.WMSStyles=[],r}return(0,h.A)(t,e),(0,l.A)(t,[{key:"fetchServiceMetadata",value:(u=(0,a.A)(g().mark((function e(){var t,n,r,i,o,a,s,l,c,u,d=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,k.getLocalizedValue)(this.metadataAccessPath,L.K.getDisplayLanguage(this.mapId)))){e.next=40;break}if(".xml"!==t.slice(-4).toLowerCase()){e.next=8;break}return e.next=6,B($,this,q).call(this,t);case 6:e.next=38;break;case 8:if(0!==(n=B($,this,X).call(this)).length){e.next=23;break}return e.prev=10,e.next=13,B($,this,U).call(this,"".concat(t,"?service=WMS&version=1.3.0&request=GetCapabilities"));case 13:r=e.sent,this.metadata=r,B($,this,Z).call(this),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),I.vF.logError("Unable to read service metadata for GeoView layer ".concat(this.geoviewLayerId," of map ").concat(this.mapId,"."));case 21:e.next=38;break;case 23:return i=[],n.forEach((function(e,r){for(o=0;n[o].layerId!==e.layerId;o++);o===r?i.push(B($,d,U).call(d,"".concat(t,"?service=WMS&version=1.3.0&request=GetCapabilities&Layers=").concat(e.layerId))):i.push(i[o])})),e.prev=25,e.next=28,Promise.all(i);case 28:for(a=e.sent,o=0;o1)for(this.WMSStyles=[],d=0;d0&&(m=f[0]),m||(E={source:p,properties:{layerCapabilities:r,layerConfig:n}},void 0!==(null===(b=n.initialSettings)||void 0===b?void 0:b.className)&&(E.className=n.initialSettings.className),void 0!==(null===(w=n.initialSettings)||void 0===w?void 0:w.extent)&&(E.extent=n.initialSettings.extent),void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.maxZoom)&&(E.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(A=n.initialSettings)||void 0===A?void 0:A.minZoom)&&(E.minZoom=n.initialSettings.minZoom),void 0!==(null===(C=n.initialSettings)||void 0===C||null===(C=C.states)||void 0===C?void 0:C.opacity)&&(E.opacity=n.initialSettings.states.opacity),m=new y.A(E),this.setLayerAndLoadEndListeners(n,m,"image")),this.emitLayerCreation({config:n,layer:m}),e.abrupt("return",Promise.resolve(m));case 22:return O.FHQ.maps[this.mapId].notifications.showError("validation.layer.notfound",[n.layerId,this.geoviewLayerId]),e.abrupt("return",Promise.resolve(void 0));case 24:return I.vF.logError("geoviewLayerType must be ".concat(S.y6.WMS)),e.abrupt("return",Promise.resolve(void 0));case 26:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof M.Q))throw new Error("Invalid layer configuration type provided");if(V(e)){var t=B($,this,Q).call(this,e.layerId);if(this.setLayerMetadata(e.layerPath,t),t){var n,r,i=this.getAttributions();if(t.Attribution&&!i.includes(null===(n=t.Attribution)||void 0===n?void 0:n.Title)&&(i.push(t.Attribution.Title),this.setAttributions(i)),e.source.featureInfo||(e.source.featureInfo={queryable:!!t.queryable}),P.d.setMapLayerQueryable(this.mapId,e.layerPath,e.source.featureInfo.queryable),e.initialSettings.extent=(0,_.validateExtentWhenDefined)(e.initialSettings.extent),null!==(r=e.initialSettings)&&void 0!==r&&r.bounds||!t.EX_GeographicBoundingBox||(e.initialSettings.bounds=(0,_.validateExtent)(t.EX_GeographicBoundingBox)),t.Dimension){var o=t.Dimension.find((function(e){return"time"===e.name}));o&&this.processTemporalDimension(o,e)}}}return Promise.resolve(e)}},{key:"processTemporalDimension",value:function(e,t){void 0!==e&&this.setTemporalDimension(t.layerPath,T.P.createDimensionFromOGC(e))}},{key:"getFeatureInfoAtPixel",value:function(e,t){return this.getFeatureInfoAtCoordinate(this.getMapViewer().map.getCoordinateFromPixel(e),t)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){var n=this.getMapViewer().convertCoordinateMapProjToLngLat(e);return this.getFeatureInfoAtLongLat(n,t)}},{key:"getFeatureInfoAtLongLat",value:(r=(0,a.A)(g().mark((function e(n,r){var i,o,a,s,l,c,u,d,h,p,f,y,v,b,w,x,A,S,C,E,T,_,O,P;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o=this.getLayerConfig(r),a=this.getOLLayer(r),this.getVisible(r)){e.next=5;break}return e.abrupt("return",[]);case 5:if(s=this.getMapViewer().convertCoordinateLngLatToMapProj(n),!(n[0]1)){e.next=16;break}a=0;case 8:if(!(a1?o:void 0},e.abrupt("return",r);case 32:return e.prev=32,e.t0=e.catch(0),I.vF.logError("wms.getLegend()\n",e.t0),e.abrupt("return",null);case 36:case"end":return e.stop()}}),e,this,[[0,32]])}))),function(e){return n.apply(this,arguments)})},{key:"setWmsStyle",value:function(e,t){var n,r=this.getOLLayer(t);r&&(null===(n=r.getSource())||void 0===n||n.updateParams({STYLES:e}))}},{key:"onLoaded",value:function(e){D(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.getLayerConfig(e),a=this.getOLLayer(e);I.vF.logTraceCore("WMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(i.legendFilterIsOff=!r,r&&(i.layerFilter=t),l){var c=(l=l.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),u=c[0].trim();l=c[1].trim();var d=(0,o.A)("".concat(l," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));d.reverse(),d.forEach((function(e){var t=![20,25].includes(e[0].length),r=T.P.applyInputDateFormat(e[0],n.externalFragmentsOrder,t);l="".concat(l.slice(0,e.index-6)).concat(r).concat(l.slice(e.index+e[0].length+2))})),s.updateParams((0,p.A)({},u,l.replace(/\s*/g,""))),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}}},{key:"getBounds",value:function(e){var t,n=this.getLayerConfig(e),r=this.getSourceProjection(e),o=null==n||null===(t=n.initialSettings)||void 0===t?void 0:t.bounds;o&&(o=this.getMapViewer().convertExtentFromProjToMapProj(o,"EPSG:4326"));var a,s=B($,this,ae).call(this,(null==r?void 0:r.getCode())||"");if(s){var l=(0,i.A)(s,2),c=l[0],u=l[1];a=this.getMapViewer().convertExtentFromProjToMapProj(u,c)}return o&&a&&(a=(0,_.getExtentIntersection)(a,o)),(a=(0,_.validateExtentWhenDefined)(a,this.getMapViewer().getProjection().getCode()))||o}}]);var n,r,c,u}(C.A);function U(e){return W.apply(this,arguments)}function W(){return(W=(0,a.A)(g().mark((function e(t){var n,r,i,o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:return r=e.sent,i=new b.A,o=i.read(r),e.abrupt("return",o);case 12:return e.prev=12,e.t0=e.catch(0),this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata"),e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,this,[[0,12]])})))).apply(this,arguments)}function q(e){return H.apply(this,arguments)}function H(){return(H=(0,a.A)(g().mark((function e(t){var n,r,i,o,a,s,l,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new b.A,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:i=e.sent,this.metadata=n.read(i),this.metadata?(B($,this,Z).call(this),s=null===(o=this.metadata)||void 0===o?void 0:o.Capability.Request.GetMap.DCPType[0].HTTP.Get.OnlineResource,this.metadataAccessPath.en=s,this.metadataAccessPath.fr=s,l=null===(a=this.metadata)||void 0===a?void 0:a.Capability.Request.GetMap.DCPType[0].HTTP.Get.OnlineResource,(c=function(e){e.forEach((function(e){(0,E.KD)(e)?c(e.listOfLayerEntryConfig):(e.source.dataAccessPath.en=l,e.source.dataAccessPath.fr=l)}))})(this.listOfLayerEntryConfig)):this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata");case 15:case"end":return e.stop()}}),e,this,[[0,12]])})))).apply(this,arguments)}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=(0,o.A)(n);if(Array.isArray(t))for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:e.listOfLayerEntryConfig;r.length&&r.forEach((function(e){(0,E.KD)(e)?n(e.listOfLayerEntryConfig):t.push(e)}))};return n(),t}function Z(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=this.metadata)||void 0===t||null===(t=t.Capability)||void 0===t?void 0:t.Layer;e&&r&&(void 0===r.EX_GeographicBoundingBox&&(r.EX_GeographicBoundingBox=e.EX_GeographicBoundingBox),void 0===r.queryable&&(r.queryable=e.queryable),void 0===r.cascaded&&(r.cascaded=e.cascaded),void 0===r.opaque&&(r.opaque=e.opaque),void 0===r.noSubsets&&(r.noSubsets=e.noSubsets),void 0===r.fixedWidth&&(r.fixedWidth=e.fixedWidth),void 0===r.fixedHeight&&(r.fixedHeight=e.fixedHeight),void 0===r.MinScaleDenominator&&(r.MinScaleDenominator=e.MinScaleDenominator),void 0===r.MaxScaleDenominator&&(r.MaxScaleDenominator=e.MaxScaleDenominator),void 0===r.BoundingBox&&(r.BoundingBox=e.BoundingBox),void 0===r.Dimension&&(r.Dimension=e.Dimension),void 0===r.Attribution&&(r.Attribution=e.Attribution),void 0===r.MaxScaleDenominator&&(r.MaxScaleDenominator=e.MaxScaleDenominator),void 0===r.MaxScaleDenominator&&(r.MaxScaleDenominator=e.MaxScaleDenominator),e.Style&&(r.Style||(r.Style=[]),e.Style.forEach((function(e){r.Style.find((function(t){return t.Name===e.Name}))||r.Style.push(e)}))),e.CRS&&(r.CRS||(r.CRS=[]),e.CRS.forEach((function(e){r.CRS.find((function(t){return t.Name===e}))||r.CRS.push(e)})))),void 0!==(null==r?void 0:r.Layer)&&r.Layer.forEach((function(e){return B($,n,Z).call(n,r,e)}))}function J(e,t){var n=this,r=[];(Array.isArray(e.Layer)?e.Layer:[e.Layer]).forEach((function(e){I.vF.logTraceCore("WMS - createGroupLayer","Cloning the layer config",t.layerPath);var i=x()(t);i.parentLayerConfig=(0,A.KX)(t),i.layerId=e.Name,i.layerName={en:e.Title,fr:e.Title},r.push(i),n.getMapViewer().layer.registerLayerConfigInit(i)}));var i=(0,A.KX)(t);i.entryType=E.hJ.GROUP,i.layerName={en:e.Title,fr:e.Title},i.isMetadataLayerGroup=!0,i.listOfLayerEntryConfig=r,this.validateListOfLayerEntryConfig(r)}function Q(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=this.metadata)||void 0===t||null===(t=t.Capability)||void 0===t?void 0:t.Layer;if(!n)return null;if("Name"in n&&n.Name===e)return n;if("Layer"in n){if(Array.isArray(n.Layer)){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"";Object.keys(e).forEach((function(n){if(!n.endsWith("Geometry")&&!n.startsWith("@")){var i=n.split(":").slice(-1)[0];"object"===(0,r.A)(e[n])?"#text"in e[n]?g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n]["#text"],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}:m(e[n],i):g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}}}))};(m(e),c)?(f=0,Object.keys(g.fieldInfo).filter((function(e){if(null!=c&&c.includes(e)){var t=c.indexOf(e);return g.fieldInfo[e].fieldKey=f++,g.fieldInfo[e].alias=d[t],g.fieldInfo[e].dataType=u[t],!1}return!0})).forEach((function(e){delete g.fieldInfo[e]})),h.push(g)):h.push(g);return h}function oe(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}function ae(e){var t,n=null===(t=this.metadata)||void 0===t?void 0:t.Capability.Layer.BoundingBox;if(n){for(var r=0;r0)return[n[0].crs,[n[0].extent[1],n[0].extent[0],n[0].extent[3],n[0].extent[2]]]}}},93555:(e,t,n)=>{"use strict";n.d(t,{P5:()=>O,ik:()=>_,nd:()=>P});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(90932),p=n(47031),f=n(15901),g=n(79950),m=n.n(g),y=n(51640),v=n(1691),b=n(2265),w=n(76200),x=n(23853),A=n(35415),S=n(6552),C=n(16775);function E(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,k()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function T(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var _=function(e){return(null==e?void 0:e.geoviewLayerType)===y.y6.XYZ_TILES},O=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===y.y6.XYZ_TILES},P=function(e){function t(e,n){return(0,i.A)(this,t),E(this,t,[y.y6.XYZ_TILES,n,e])}return(0,c.A)(t,e),(0,o.A)(t,[{key:"getFieldType",value:function(e,t){var n,r=this.getLayerMetadata(t.layerPath).source.featureInfo,i=null===(n=(0,w.getLocalizedValue)((0,x.KX)(r.outfields),C.K.getDisplayLanguage(this.mapId)))||void 0===n?void 0:n.split(",").indexOf(e);return i&&-1!==i?r.fieldTypes.split(",")[i]:"string"}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r=e.layerPath;if((0,b.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:r,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",t.metadata){var i;if(Array.isArray(null===(n=t.metadata)||void 0===n?void 0:n.listOfLayerEntryConfig))return(0,x.KX)(null===(i=t.metadata)||void 0===i?void 0:i.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId}))?void 0:(t.layerLoadError.push({layer:r,loggerMessage:"XYZ layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error"));throw new Error("Invalid GeoJSON metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")"))}}))}},{key:"processOneLayerEntry",value:(n=(0,r.A)(d().mark((function e(n){var r,i,o,a,s,l,c,u,g,m,y,v,b,x,A,E,k;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(t,"processOneLayerEntry",this,3)([n]);case 2:if(n instanceof S.m){e.next=4;break}throw new Error("Invalid layer configuration type provided");case 4:return r={url:(0,w.getLocalizedValue)(n.source.dataAccessPath,C.K.getDisplayLanguage(this.mapId))},n.source.crossOrigin?r.crossOrigin=n.source.crossOrigin:r.crossOrigin="Anonymous",n.source.projection&&(r.projection="EPSG:".concat(n.source.projection)),n.source.tileGrid&&(u={origin:null===(i=n.source.tileGrid)||void 0===i?void 0:i.origin,resolutions:null===(o=n.source.tileGrid)||void 0===o?void 0:o.resolutions},null!==(a=n.source.tileGrid)&&void 0!==a&&a.tileSize&&(u.tileSize=null===(s=n.source.tileGrid)||void 0===s?void 0:s.tileSize),null!==(l=n.source.tileGrid)&&void 0!==l&&l.extent&&(u.extent=null===(c=n.source.tileGrid)||void 0===c?void 0:c.extent),r.tileGrid=new f.A(u)),g=new p.A(r),(m=this.emitLayerRequesting({config:n,source:g})).length>0&&(y=m[0]),y||(k={source:g},void 0!==(null===(v=n.initialSettings)||void 0===v?void 0:v.className)&&(k.className=n.initialSettings.className),void 0!==(null===(b=n.initialSettings)||void 0===b?void 0:b.extent)&&(k.extent=n.initialSettings.extent),void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.maxZoom)&&(k.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(A=n.initialSettings)||void 0===A?void 0:A.minZoom)&&(k.minZoom=n.initialSettings.minZoom),void 0!==(null===(E=n.initialSettings)||void 0===E||null===(E=E.states)||void 0===E?void 0:E.opacity)&&(k.opacity=n.initialSettings.states.opacity),y=new h.A(k),this.setLayerAndLoadEndListeners(n,y,"tile")),this.emitLayerCreation({config:n,layer:y}),e.abrupt("return",Promise.resolve(y));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof S.m))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t,n=(0,x.KX)(null===(t=this.metadata)||void 0===t?void 0:t.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId}));this.setLayerMetadata(e.layerPath,(0,x.NK)(n)),e.source=m()(e.source,n.source),e.initialSettings=m()(e.initialSettings,n.initialSettings),e.initialSettings.extent=(0,A.validateExtentWhenDefined)(e.initialSettings.extent)}return Promise.resolve(e)}},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e),r=this.getSourceProjection(e),i=null==n||null===(t=n.getSource())||void 0===t||null===(t=t.getTileGrid())||void 0===t?void 0:t.getExtent();return i&&(i=this.getMapViewer().convertExtentFromProjToMapProj(i,r)),i}}]);var n}(v.A)},41538:(e,t,n)=>{"use strict";n.d(t,{W:()=>oe});var r=n(42432),i=n(29067),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(74813),p=n.n(h),f=n(98246),g=n(15877),m=n(12159),y=n(6129),v=n(88567),b=n(85208),w=n(46020),x=n(87701);class A extends x.Ay{constructor(e,t,n,r,i){super(e,t,n,void 0!==i?w.A.IDLE:w.A.LOADED),this.loader_=void 0!==i?i:null,this.canvas_=r,this.error_=null}getError(){return this.error_}handleLoad_(e){e?(this.error_=e,this.state=w.A.ERROR):this.state=w.A.LOADED,this.changed()}load(){this.state==w.A.IDLE&&(this.state=w.A.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const S=A;var C=n(23433),E=n(95722),k=n(58600),T=n(67468),_=n(61170);class O extends y.A{constructor(e){super(e),this.vectorRenderer_=new v.A(e),this.layerImageRatio_=e.getImageRatio(),this.coordinateToVectorPixelTransform_=(0,k.vt)(),this.renderedPixelToCoordinateTransform_=null}disposeInternal(){this.vectorRenderer_.dispose(),super.disposeInternal()}getFeatures(e){if(!this.vectorRenderer_)return Promise.resolve([]);const t=(0,k.Bb)(this.coordinateToVectorPixelTransform_,(0,k.Bb)(this.renderedPixelToCoordinateTransform_,e.slice()));return this.vectorRenderer_.getFeatures(t)}handleFontsChanged(){this.vectorRenderer_.handleFontsChanged()}prepareFrame(e){const t=e.pixelRatio,n=e.viewState,r=n.resolution,i=e.viewHints,o=this.vectorRenderer_;let a=e.extent;1!==this.layerImageRatio_&&(a=a.slice(0),(0,_.scaleFromCenter)(a,this.layerImageRatio_));const s=(0,_.getWidth)(a)/r,l=(0,_.getHeight)(a)/r;if(!i[E.A.ANIMATING]&&!i[E.A.INTERACTING]&&!(0,_.isEmpty)(a)){o.useContainer(null,null);const i=o.context,c=e.layerStatesArray[e.layerIndex],u=Object.assign({},c,{opacity:1}),d=Object.assign({},e,{extent:a,size:[s,l],viewState:Object.assign({},e.viewState,{rotation:0}),layerStatesArray:[u],layerIndex:0,declutter:null}),h=this.getLayer().getDeclutter();h&&(d.declutter={[h]:new C.A(9)});let p=!0;const f=new S(a,r,t,i.canvas,(function(e){o.prepareFrame(d)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(d,null)&&(o.renderDeclutter(d),o.renderDeferred(d),p=!1),e())}));f.addEventListener(b.A.CHANGE,(()=>{if(f.getState()!==w.A.LOADED)return;this.image=p?null:f;const e=f.getPixelRatio(),r=(0,T.m)(f.getResolution())*t/e;this.renderedResolution=r,this.coordinateToVectorPixelTransform_=(0,k.Zz)(this.coordinateToVectorPixelTransform_,s/2,l/2,1/r,-1/r,0,-n.center[0],-n.center[1])})),f.load()}return this.image&&(this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice()),!!this.image}preRender(){}postRender(){}renderDeclutter(){}forEachFeatureAtCoordinate(e,t,n,r,i){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,t,n,r,i):super.forEachFeatureAtCoordinate(e,t,n,r,i)}}const P=O;class I extends m.A{constructor(e){e=e||{};const t=Object.assign({},e);delete t.imageRatio,super(t),this.imageRatio_=void 0!==e.imageRatio?e.imageRatio:1}getImageRatio(){return this.imageRatio_}createRenderer(){return new P(this)}}const M=I;var L=n(7725),R=n(16597),j=n(64383),F=n(45282),D=n(68705),N=n(51640),B=n(76200),z=n(25079),V=n(25488),$=(n(24258),n(6883)),G=n(39453),U=n(23853),W=n(16775),q=n(58748),H=n(8637),Y=n(27991),K=n(8058),X=n(35415);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getAttributions().length>0&&(a.attributions=this.getAttributions()),a.strategy="bbox"===e.source.strategy?R.Qk:R.Q7,a.loader=function(a,l,c,u,d){var h,f,g=n.getUrl();"function"==typeof g&&(g=g(a,l,c));var m=new XMLHttpRequest;if(null!==(h=e.source)&&void 0!==h&&h.postSettings){var y=e.source.postSettings;m.open("POST",g),y.header&&Object.keys(y.header).forEach((function(e){m.setRequestHeader(e,y.header[e])}))}else m.open("GET",g);var v=function(){n.removeLoadedExtent(a),d&&d()};m.onerror=v,m.onload=(0,o.A)(p().mark((function o(){var l,d,h,f,y,b,w,x,A,S,C,E,k,T,_;return p().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(200!==m.status){o.next=20;break}if(e.schemaTag!==N.y6.CSV){o.next=5;break}l=t.convertCsv(r.mapId,m.responseText,e),o.next=14;break;case 5:if(e.schemaTag!==N.y6.ESRI_FEATURE){o.next=13;break}return o.next=8,t.getEsriFeatures(e.layerPath,g,JSON.parse(m.responseText).count,null===(d=r.getLayerMetadata(e.layerPath))||void 0===d?void 0:d.maxRecordCount);case 8:h=o.sent,l=[],h.forEach((function(e){var t;(t=l).push.apply(t,(0,i.A)(n.getFormat().readFeatures(e,J(J({},s),{},{featureProjection:c,extent:a}))))})),o.next=14;break;case 13:l=n.getFormat().readFeatures(m.responseText,J(J({},s),{},{featureProjection:c,extent:a}));case 14:l&&(l.forEach((function(e){var t=e.get("OBJECTID")?e.get("OBJECTID"):(0,F.v6)(e);e.setId(t)})),(null===(f=e.source)||void 0===f||!f.featureInfo)&&l.length>0&&(b=l[0],w=Object.keys(b.getProperties()),x=Object.values(b.getProperties()),se.call(t,w,x,ie,e)),null!==(y=e.source)&&void 0!==y&&null!==(y=y.featureInfo)&&void 0!==y&&y.queryable&&(C=e.source.featureInfo,E=(null===(A=C.fieldTypes)||void 0===A?void 0:A.split(","))||[],k=(null===(S=(0,B.getLocalizedValue)(C.outfields,W.K.getDisplayLanguage(r.mapId)))||void 0===S?void 0:S.split(","))||[],null!=(T=null==E?void 0:E.reduce((function(e,t,n){return"date"===t&&e.push(k[n]),e}),[]))&&T.length&&l.forEach((function(e){T.forEach((function(t){var n=e.get(t);if("number"==typeof n){var i=z.P.convertMilisecondsToDate(n);i=z.P.applyInputDateFormat(i,r.serverDateFragmentsOrder),e.set(t,z.P.convertToMilliseconds(i),!0)}else r.serverDateFragmentsOrder||(r.serverDateFragmentsOrder=z.P.getDateFragmentsOrder(z.P.deduceDateFormat(n))),n=z.P.applyInputDateFormat(n,r.serverDateFragmentsOrder),e.set(t,z.P.convertToMilliseconds(n),!0)}))}))),n.addFeatures(l)),u&&u(l),null==(_=r.getOLLayer(e.layerPath))||_.changed(),o.next=21;break;case 20:v();case 21:case"end":return o.stop()}}),o)}))),m.send(JSON.stringify(null===(f=e.source.postSettings)||void 0===f?void 0:f.data))},n=new g.A(a)}},{key:"createVectorLayer",value:function(e,t){var n,r=this,i=W.K.getDisplayLanguage(this.mapId),o=(0,B.getLocalizedValue)(e.layerName,i)||e.layerId,a=this.emitLayerRequesting({config:e,source:t});if(a.length>0&&(n=a[0]),!n){var s,l,c,u,d={properties:{layerConfig:e},source:t,style:function(t){return H.p.calculateStyleForFeature(r,t,o,e.layerPath,e.filterEquation,e.legendFilterIsOff)}};void 0!==(null===(s=e.initialSettings)||void 0===s?void 0:s.extent)&&(d.extent=e.initialSettings.extent),void 0!==(null===(l=e.initialSettings)||void 0===l?void 0:l.maxZoom)&&(d.maxZoom=e.initialSettings.maxZoom),void 0!==(null===(c=e.initialSettings)||void 0===c?void 0:c.minZoom)&&(d.minZoom=e.initialSettings.minZoom),void 0!==(null===(u=e.initialSettings)||void 0===u||null===(u=u.states)||void 0===u?void 0:u.opacity)&&(d.opacity=e.initialSettings.states.opacity),n=new M(d),this.setLayerAndLoadEndListeners(e,n,"features")}return this.emitLayerCreation({config:e,layer:n}),n}},{key:"getAllFeatureInfo",value:(n=(0,o.A)(p().mark((function e(t){var n,r,i,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getLayerConfig(t),r=this.getOLLayer(t),i=r.getSource().getFeatures(),e.next=6,this.formatFeatureInfoResult(i,n);case 6:return o=e.sent,e.abrupt("return",o);case 10:return e.prev=10,e.t0=e.catch(0),$.vF.logError("abstract-geoview-vector.getAllFeatureInfo()\n",e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return n.apply(this,arguments)})},{key:"getFeatureInfoAtPixel",value:function(e,t){try{var n,r=null===(n=this.getOLLayer(t))||void 0===n?void 0:n.get("source"),i=this.getMapViewer().map.getFeaturesAtPixel(e,{hitTolerance:this.hitTolerance,layerFilter:function(e){var t=e.get("source");return r&&t&&r===t}});return this.formatFeatureInfoResult(i,this.getLayerConfig(t))}catch(e){return $.vF.logError("abstract-geoview-vector.getFeatureInfoAtPixel()\n",e),Promise.resolve(null)}}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){return this.getFeatureInfoAtPixel(this.getMapViewer().map.getPixelFromCoordinate(e),t)}},{key:"getFeatureInfoAtLongLat",value:function(e,t){var n=this.getMapViewer().convertCoordinateLngLatToMapProj(e);return this.getFeatureInfoAtPixel(this.getMapViewer().map.getPixelFromCoordinate(n),t)}},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e);return null==n||null===(t=n.getSource())||void 0===t?void 0:t.getExtent()}},{key:"getExtentFromFeatures",value:function(e,t){var n,r=this,i=t.map((function(t){var n;return null===(n=r.getOLLayer(e).getSource())||void 0===n?void 0:n.getFeatureById(t)}));return i?(i.forEach((function(e){if(null!=e&&e.getGeometry()){var t,r=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();r&&(n?(0,X.getMinOrMaxExtents)(n,r):n=r)}})),Promise.resolve(n)):Promise.resolve(void 0)}},{key:"getFeaturesAsGeoJSON",value:function(e){var t=this.getMapViewer().getProjection().getCode(),n=(new L.A).writeFeatures(this.getOLLayer(e).getSource().getFeatures(),{dataProjection:"EPSG:4326",featureProjection:t});return JSON.parse(n)}},{key:"onLoaded",value:function(e){te(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n,r=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];$.vF.logTraceCore("ABSTRACT-GEOVIEW-VECTOR - applyViewFilter",e);var a=this.getLayerConfig(e),s=this.getOLLayer(e),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,o&&(a.layerFilter=t);var c=(0,i.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=z.P.applyInputDateFormat(e[0],r.externalFragmentsOrder,t);l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))}));try{var u=(0,q.WN)([{nodeType:V.Z6.unprocessedNode,nodeValue:l}]);a.filterEquation=u}catch(t){throw new Error("Invalid vector layer filter (".concat(t.message,").\nfilter = ").concat(this.getLayerFilter(e),"\ninternal filter = ").concat(l))}null==s||s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}],[{key:"getEsriFeatures",value:function(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:500,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:10,a=t.replace("&where=1%3D1&returnCountOnly=true","&outfields=*"),s=r&&r=l.length)){var t=l[d];d++;try{var n=fetch(t).then((function(e){return e.text()}));u.push(n)}catch(n){$.vF.logError("Error loading features for ".concat(e," from ").concat(t),n)}finally{h()}}},p=0;p{"use strict";n.d(t,{WW:()=>b,fK:()=>w,pf:()=>x});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(7725),u=n(91896),d=n(51640),h=n(41538),p=n(2265),f=n(76200),g=n(39453),m=n(16775);function y(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,v()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var b=function(e){return(null==e?void 0:e.geoviewLayerType)===d.y6.CSV},w=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===d.y6.CSV},x=function(e){function t(e,n){return(0,r.A)(this,t),y(this,t,[d.y6.CSV,n,e])}return(0,l.A)(t,e),(0,i.A)(t,[{key:"fetchServiceMetadata",value:function(){return Promise.resolve()}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n=e.layerPath;if((0,p.KD)(e))return t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),void(e.listOfLayerEntryConfig.length||(t.layerLoadError.push({layer:n,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),e.layerStatus="error"));if(t.metadata)throw new Error("Invalid CSV metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")"))}))}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof g.T))throw new Error("Invalid layer configuration type provided");return this.setLayerMetadata(e.layerPath,(0,u.K)(e)),Promise.resolve(e)}},{key:"createVectorSource",value:function(e){var n,r,i,o,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.dataProjection=e.source.dataProjection,u.url=(0,f.getLocalizedValue)(e.source.dataAccessPath,m.K.getDisplayLanguage(this.mapId)),u.format=new c.A,(n=t,r="createVectorSource",i=this,o=3,l=(0,s.A)((0,a.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof l?function(e){return l.apply(i,e)}:l)([e,u,d])}}])}(h.W)},42942:(e,t,n)=>{"use strict";n.d(t,{$f:()=>v,SP:()=>b,Uw:()=>w});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(58699),u=n(76200),d=n(41538),h=n(12989),p=n(51640),f=n(92409),g=n(16775);function m(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,y()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var v=function(e){return(null==e?void 0:e.geoviewLayerType)===p.y6.ESRI_FEATURE},b=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===p.y6.ESRI_FEATURE},w=function(e){function t(e,n){return(0,r.A)(this,t),m(this,t,[p.y6.ESRI_FEATURE,n,e])}return(0,l.A)(t,e),(0,i.A)(t,[{key:"fetchServiceMetadata",value:function(){return(0,f.mF)(this)}},{key:"validateListOfLayerEntryConfig",value:function(e){(0,f.Sh)(this,e)}},{key:"esriChildHasDetectedAnError",value:function(e,t){return"Feature Layer"!==this.metadata.layers[t].type&&(this.layerLoadError.push({layer:e.layerPath,loggerMessage:"LayerId ".concat(e.layerPath," of map ").concat(this.mapId," is not a feature layer")}),!0)}},{key:"getFieldType",value:function(e,t){return(0,f.KS)(this,e,t)}},{key:"getFieldDomain",value:function(e,t){return(0,f.YX)(this,e,t)}},{key:"processTemporalDimension",value:function(e,t){(0,f.RW)(this,e,t)}},{key:"processFeatureInfoConfig",value:function(e){(0,f.$A)(this,e)}},{key:"processInitialSettings",value:function(e){(0,f.gm)(this,e)}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof h.h))throw new Error("Invalid layer configuration type provided");return(0,f.Nf)(this,e)}},{key:"createVectorSource",value:function(e){var n,r,i,o,l,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.url=(0,u.getLocalizedValue)(e.source.dataAccessPath,g.K.getDisplayLanguage(this.mapId)),d.url="".concat(d.url,"/").concat(e.layerId,"/query?f=json&where=1%3D1&returnCountOnly=true"),d.format=new c.A,(n=t,r="createVectorSource",i=this,o=3,l=(0,s.A)((0,a.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof l?function(e){return l.apply(i,e)}:l)([e,d,h])}}])}(d.W)},85849:(e,t,n)=>{"use strict";n.d(t,{eq:()=>P,kx:()=>I,vM:()=>O});var r=n(42432),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(7725),d=n(79950),h=n.n(d),p=n(51640),f=n(41538),g=n(2265),m=n(35415),y=n(23853),v=n(76200),b=n(6883),w=n(39453),x=n(16775),A=n(8058),S=n(59155),C=n(75687),E=n(33663);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,_()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}var O=function(e){return(null==e?void 0:e.geoviewLayerType)===p.y6.GEOJSON},P=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===p.y6.GEOJSON},I=function(e){function t(e,n){return(0,i.A)(this,t),T(this,t,[p.y6.GEOJSON,n,e])}return(0,c.A)(t,e),(0,o.A)(t,[{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r=e.layerPath;if((0,g.KD)(e))return t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),void(e.listOfLayerEntryConfig.length||(t.layerLoadError.push({layer:r,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),e.layerStatus="error"));if(e.layerStatus="processing",t.metadata){var i;if(Array.isArray(null===(n=t.metadata)||void 0===n?void 0:n.listOfLayerEntryConfig))return(0,y.KX)(null===(i=t.metadata)||void 0===i?void 0:i.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId&&t.layerIdExtension===e.layerIdExtension}))?void 0:(t.layerLoadError.push({layer:r,loggerMessage:"GeoJSON layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error"));throw new Error("Invalid GeoJSON metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")"))}}))}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof w.T))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t,n=(0,y.KX)(null===(t=this.metadata)||void 0===t?void 0:t.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId&&t.layerIdExtension===e.layerIdExtension}));if(n){var i;e.layerName=e.layerName||n.layerName,e.source=h()(e.source,n.source),e.initialSettings=h()(e.initialSettings,n.initialSettings),e.style=h()(e.style,n.style);var o,a,s=(0,v.getLocalizedValue)(null===(i=e.geoviewLayerConfig)||void 0===i?void 0:i.metadataAccessPath,x.K.getDisplayLanguage(this.mapId));if(s)s=s.split("/").length>1?s.split("/").slice(0,-1).join("/"):"./","".concat(s,"/").concat(e.layerId)===(0,v.getLocalizedValue)(null===(o=e.source)||void 0===o?void 0:o.dataAccessPath,x.K.getDisplayLanguage(this.mapId))&&(0,v.getLocalizedValue)(null===(a=n.source)||void 0===a?void 0:a.dataAccessPath,x.K.getDisplayLanguage(this.mapId))&&(e.source.dataAccessPath=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.dataProjection=e.source.dataProjection,c.url=(0,v.getLocalizedValue)(e.source.dataAccessPath,x.K.getDisplayLanguage(this.mapId)),c.format=new u.A,(n=t,r="createVectorSource",i=this,o=3,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e,c,d])}},{key:"overrideGeojsonSource",value:function(e,t){var n,r="string"==typeof t?JSON.parse(t):t,i=(null===(n=r.crs)||void 0===n||null===(n=n.properties)||void 0===n?void 0:n.name)||A.M.PROJECTION_NAMES.LNGLAT,o=(new u.A).readFeatures(r,{dataProjection:i,featureProjection:this.getMapViewer().getProjection()}),a=this.getOLLayer(e);if(a&&o.length){var s,l;null===(s=a.getSource())||void 0===s||s.clear(),null===(l=a.getSource())||void 0===l||l.addFeatures(o),a.changed();var c=this.getBounds(e);c&&S.K.setLayerBounds(this.mapId,e,c),E.h.resetResultSet(this.mapId,e),C.F.triggerGetAllFeatureInfo(this.mapId,e).catch((function(t){b.vF.logPromiseFailed("Update all feature info in overrideGeojsonSource failed for layer ".concat(e),t)}))}}}])}(f.W)},44894:(e,t,n)=>{"use strict";n.d(t,{OH:()=>ae,wm:()=>oe,P0:()=>ie});var r=n(55723),i=n(96880),o=n(42432),a=n(55907),s=n(13718),l=n(47280),c=n(75583),u=n(96645),d=n(6620),h=n(94270),p=n(74813),f=n.n(p),g=n(98246),m=n(4472),y=n(42669),v=n(43910),b=n(67103),w=n(87620),x=n(32332),A=n(64383),S=n(59119),C=n(82512),E=n(66739);const k=1,T=2,_=3,O=4,P=5,I=6,M=7,L=15,R=16,j=17;class F{constructor(e){this.view_=e,this.pos_=0,this.initialized_=!1,this.isLittleEndian_=!1,this.hasZ_=!1,this.hasM_=!1,this.srid_=null,this.layout_="XY"}readUint8(){return this.view_.getUint8(this.pos_++)}readUint32(e){return this.view_.getUint32((this.pos_+=4)-4,void 0!==e?e:this.isLittleEndian_)}readDouble(e){return this.view_.getFloat64((this.pos_+=8)-8,void 0!==e?e:this.isLittleEndian_)}readPoint(){const e=[];return e.push(this.readDouble()),e.push(this.readDouble()),this.hasZ_&&e.push(this.readDouble()),this.hasM_&&e.push(this.readDouble()),e}readLineString(){const e=this.readUint32(),t=[];for(let n=0;n0,n=this.readUint32(t),r=Math.floor((268435455&n)/1e3),i=Boolean(2147483648&n)||1===r||3===r,o=Boolean(1073741824&n)||2===r||3===r,a=Boolean(536870912&n),s=(268435455&n)%1e3,l=["XY",i?"Z":"",o?"M":""].join(""),c=a?this.readUint32(t):null;if(void 0!==e&&e!==s)throw new Error("Unexpected WKB geometry type "+s);if(this.initialized_){if(this.isLittleEndian_!==t)throw new Error("Inconsistent endian");if(this.layout_!==l)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=t,this.hasZ_=i,this.hasM_=o,this.layout_=l,this.srid_=c,this.initialized_=!0;return s}readWkbPayload(e){switch(e){case k:return this.readPoint();case T:return this.readLineString();case _:case j:return this.readPolygon();case O:return this.readMultiPoint();case P:return this.readMultiLineString();case I:case L:case R:return this.readMultiPolygon();case M:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}}readWkbBlock(e){return this.readWkbPayload(this.readWkbHeader(e))}readWkbCollection(e,t){const n=this.readUint32(),r=[];for(let i=0;i({[t]:e[n]}))));for(const e of this.layout_)this.writeDouble(e in n?n[e]:this.nodata_[e])}writeLineString(e,t){this.writeUint32(e.length);for(let n=0;ne+t[0]),0),t=new ArrayBuffer(e),n=new DataView(t);let r=0;return this.writeQueue_.forEach((e=>{switch(e[0]){case 1:n.setUint8(r,e[1]);break;case 4:n.setUint32(r,e[1],this.isLittleEndian_);break;case 8:n.setFloat64(r,e[1],this.isLittleEndian_)}r+=e[0]})),t}}class N extends m.Ay{constructor(e){super(),e=e||{},this.splitCollection=Boolean(e.splitCollection),this.viewCache_=null,this.hex_=!1!==e.hex,this.littleEndian_=!1!==e.littleEndian,this.ewkb_=!1!==e.ewkb,this.layout_=e.geometryLayout,this.nodataZ_=e.nodataZ||0,this.nodataM_=e.nodataM||0,this.srid_=e.srid}getType(){return this.hex_?"text":"arraybuffer"}readFeature(e,t){return new g.A({geometry:this.readGeometry(e,t)})}readFeatures(e,t){let n=[];const r=this.readGeometry(e,t);return n=this.splitCollection&&r instanceof y.A?r.getGeometriesArray():[r],n.map((e=>new g.A({geometry:e})))}readGeometry(e,t){const n=B(e);if(!n)return null;const r=new F(n).readGeometry();return this.viewCache_=n,t=this.getReadOptions(e,t),this.viewCache_=null,(0,m.hX)(r,!1,t)}readProjection(e){const t=this.viewCache_||B(e);if(!t)return;const n=new F(t);return n.readWkbHeader(),n.getSrid()&&(0,C.Jt)("EPSG:"+n.getSrid())||void 0}writeFeature(e,t){return this.writeGeometry(e.getGeometry(),t)}writeFeatures(e,t){return this.writeGeometry(new y.A(e.map((e=>e.getGeometry()))),t)}writeGeometry(e,t){t=this.adaptOptions(t);const n=new D({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}});let r=Number.isInteger(this.srid_)?Number(this.srid_):null;if(!1!==this.srid_&&!Number.isInteger(this.srid_)){const e=t.dataProjection&&(0,C.Jt)(t.dataProjection);if(e){const t=e.getCode();t.startsWith("EPSG:")&&(r=Number(t.substring(5)))}}n.writeGeometry((0,m.hX)(e,!0,t),r);const i=n.getBuffer();return this.hex_?function(e){const t=new Uint8Array(e);return Array.from(t.values()).map((e=>(e<16?"0":"")+Number(e).toString(16).toUpperCase())).join("")}(i):i}}function B(e){return"string"==typeof e?function(e){const t=new Uint8Array(e.length/2);for(let n=0;n1?(t||(t=n.createLayerGroup(e[0].parentLayerConfig,e[0].initialSettings)),e.forEach((function(i){if((0,Y.KD)(i)){var o=n.createLayerGroup(i,i.initialSettings);n.processListOfLayerEntryConfig(i.listOfLayerEntryConfig,o).then((function(o){o?t.getLayers().push(o):(n.layerLoadError.push({layer:e[0].layerPath,loggerMessage:"Unable to create group layer ".concat(i.layerPath," on map ").concat(n.mapId)}),r(void 0))})).catch((function(e){J.vF.logPromiseFailed("processListOfLayerEntryConfig (2) in processListOfLayerEntryConfig in GeoPackage",e)}))}else n.processOneLayerEntry(i).then((function(r){r?(t.getLayers().push(r),i.layerStatus="processed"):(n.layerLoadError.push({layer:e[0].layerPath,loggerMessage:"Unable to create layer ".concat(i.layerPath," on map ").concat(n.mapId)}),i.layerStatus="error")})).catch((function(e){J.vF.logPromiseFailed("processListOfLayerEntryConfig (3) in processListOfLayerEntryConfig in GeoPackage",e)}))})),t&&r(t)):n.processOneLayerEntry(e[0],t).then((function(t){t?(e[0].layerStatus="processed",r(t)):(n.layerLoadError.push({layer:e[0].layerPath,loggerMessage:"Unable to create layer ".concat(e[0].layerPath," on map ").concat(n.mapId)}),e[0].layerStatus="error")})).catch((function(e){J.vF.logPromiseFailed("processListOfLayerEntryConfig (4) in processListOfLayerEntryConfig in GeoPackage",e)}))}))}},{key:"extractGeopackageData",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o){var s=(0,Z.getLocalizedValue)(e.source.dataAccessPath,K.K.getDisplayLanguage(n.mapId)),l=n.getAttributions();l.length>0&&(r.attributions=l);var c=[],u={},d=new XMLHttpRequest;d.responseType="arraybuffer",G()({locateFile:function(e){return"https://sql.js.org/dist/".concat(e)}}).then((function(e){d.open("GET",s),d.onload=function(){if(200===d.status){for(var s=new e.Database(new Uint8Array(d.response)),l=[],h=s.prepare("\n SELECT gpkg_contents.table_name, gpkg_contents.srs_id,\n gpkg_geometry_columns.column_name\n FROM gpkg_contents JOIN gpkg_geometry_columns\n WHERE gpkg_contents.data_type='features' AND\n gpkg_contents.table_name=gpkg_geometry_columns.table_name;\n ");h.step();){var p,f=h.get();l.unshift({table_name:f[0],srs_id:null===(p=f[1])||void 0===p?void 0:p.toString(),geometry_column_name:f[2]})}if((h=s.prepare("\n SELECT gpkg_contents.table_name\n FROM gpkg_contents\n WHERE gpkg_contents.table_name='layer_styles'\n ")).step())for(h=s.prepare("SELECT f_table_name, styleSLD FROM layer_styles");h.step();){var g=h.get();if(g[1]){var m=(0,a.A)(g,2);u[g[0]]=m[1]}}for(var y=new z,v=function(){var e,o=l[b],a=o.table_name,u="EPSG:".concat(o.srs_id),d=o.geometry_column_name,p=[];for(h=s.prepare("SELECT * FROM '".concat(a,"'"));h.step();){var f=(e=h.getAsObject())[d];delete e[d];var g=t.parseGpkgGeom(f),m=y.readFeatures(g,ee(ee({},i),{},{dataProjection:u,featureProjection:n.getMapViewer().getProjection().getCode()}));m[0].setProperties(e),p.push(m[0])}var v=new V.A(ee(ee({},r),{},{loader:function(e,t,n,r,i){void 0!==p?(v.addFeatures(p),r(p)):i()}}));c.push({name:a,source:v,properties:e})},b=0;b>1&7){case 0:t=0;break;case 1:t=32;break;case 2:case 3:t=48;break;case 4:t=64;break;default:throw new Error("Invalid geometry envelope size flag in GeoPackage")}return e.subarray(t+8)}}]);var n}(H.W);function se(e,t){var n,i;if(t.source||(t.source={}),t.source.featureInfo||(t.source.featureInfo={queryable:!0}),null===(n=t.source.featureInfo.outfields)||void 0===n||!n.en||null===(i=t.source.featureInfo.aliasFields)||void 0===i||!i.en){var o,a,s,l,c,u,d,h=!(null!==(o=t.source.featureInfo.outfields)&&void 0!==o&&o.en),p=!(null!==(a=t.source.featureInfo.aliasFields)&&void 0!==a&&a.en);h&&(t.source.featureInfo.outfields={en:""},t.source.featureInfo.fieldTypes=""),p&&(t.source.featureInfo.aliasFields={en:""}),Object.keys(e).forEach((function(n){if(e[n]&&"Geometry"!==e[n].type){if(h){t.source.featureInfo.outfields.en="".concat(t.source.featureInfo.outfields.en).concat(n,",");var i="string";"date"===e[n].type?i="date":["bigint","number"].includes((0,r.A)(e[n]))&&(i="number"),t.source.featureInfo.fieldTypes="".concat(t.source.featureInfo.fieldTypes).concat(i,",")}t.source.featureInfo.aliasFields.en="".concat(t.source.featureInfo.aliasFields.en).concat(n,",")}})),t.source.featureInfo.outfields.en=null===(s=t.source.featureInfo.outfields)||void 0===s||null===(s=s.en)||void 0===s?void 0:s.slice(0,-1),t.source.featureInfo.fieldTypes=null===(l=t.source.featureInfo.fieldTypes)||void 0===l?void 0:l.slice(0,-1),t.source.featureInfo.aliasFields.en=null===(c=t.source.featureInfo.aliasFields)||void 0===c||null===(c=c.en)||void 0===c?void 0:c.slice(0,-1),t.source.featureInfo.outfields.fr=null===(u=t.source.featureInfo.outfields)||void 0===u?void 0:u.en,t.source.featureInfo.aliasFields.fr=null===(d=t.source.featureInfo.aliasFields)||void 0===d?void 0:d.en}if(!t.source.featureInfo.nameField){var f,g,m=(null===(f=t.source.featureInfo.outfields.en)||void 0===f?void 0:f.split(",")[0])||(null===(g=t.source.featureInfo.outfields.fr)||void 0===g?void 0:g.split(",")[0]),y=m;m&&(t.source.featureInfo.nameField={en:m,fr:y})}}},4078:(e,t,n)=>{"use strict";n.d(t,{UU:()=>k,dr:()=>E,ke:()=>T});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(34946),p=n(7725),f=n(51640),g=n(41538),m=n(2265),y=n(35415),v=n(8058),b=n(6883),w=n(39453),x=n(76200),A=n(16775);function S(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,C()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var E=function(e){return(null==e?void 0:e.geoviewLayerType)===f.y6.OGC_FEATURE},k=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===f.y6.OGC_FEATURE},T=function(e){function t(e,n){return(0,i.A)(this,t),S(this,t,[f.y6.OGC_FEATURE,n,e])}return(0,c.A)(t,e),(0,o.A)(t,[{key:"getFieldType",value:function(e,t){var n=this.getLayerMetadata(t.layerPath)[e].type.split(":").slice(-1)[0];return"date"===n?"date":["int","number"].includes(n)?"number":"string"}},{key:"fetchServiceMetadata",value:function(){var e=this;return new Promise((function(t){var n=(0,x.getLocalizedValue)(e.metadataAccessPath,A.K.getDisplayLanguage(e.mapId));if(n){var r=n.endsWith("/")?"".concat(n,"collections?f=json"):"".concat(n,"/collections?f=json");h.A.get(r).then((function(n){e.metadata=n.data,t()})).catch((function(n){e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata"),b.vF.logError("Unable to fetch metadata",e.metadataAccessPath,n),t()}))}else e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata")}))}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n=e.layerPath;if((0,m.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:n,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",!Array.isArray(t.metadata.collections))throw new Error("Invalid collection's metadata prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")"));var r,i,o=t.metadata.collections.find((function(t){return t.id===e.layerId}));if(!o)return t.layerLoadError.push({layer:n,loggerMessage:"OGC feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),void(e.layerStatus="error");if(o.description&&(e.layerName={en:o.description,fr:o.description}),e.initialSettings.extent=(0,y.validateExtentWhenDefined)(e.initialSettings.extent),!e.initialSettings.bounds&&null!==(r=o.extent)&&void 0!==r&&null!==(r=r.spatial)&&void 0!==r&&r.bbox&&null!==(i=o.extent)&&void 0!==i&&null!==(i=i.spatial)&&void 0!==i&&i.crs){var a=v.M.transformExtent(o.extent.spatial.bbox[0],v.M.getProjection(o.extent.spatial.crs),v.M.PROJECTION_NAMES.LNGLAT);e.initialSettings.bounds=a}e.initialSettings.bounds=(0,y.validateExtentWhenDefined)(e.initialSettings.bounds)}))}},{key:"processLayerMetadata",value:(n=(0,r.A)(d().mark((function e(n){var r,i,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n instanceof w.T){e.next=2;break}throw new Error("Invalid layer configuration type provided");case 2:if(e.prev=2,!(r=(0,x.getLocalizedValue)(this.metadataAccessPath,A.K.getDisplayLanguage(this.mapId)))){e.next=10;break}return i=r.endsWith("/")?"".concat(r,"collections/").concat(n.layerId,"/queryables?f=json"):"".concat(r,"/collections/").concat(n.layerId,"/queryables?f=json"),e.next=8,h.A.get(i);case 8:(o=e.sent).data.properties&&(this.setLayerMetadata(n.layerPath,o.data.properties),_.call(t,o.data.properties,n));case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),b.vF.logError('Error processing layer metadata for layer path "'.concat(n.layerPath),e.t0),n.layerStatus="error";case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[2,12]])}))),function(e){return n.apply(this,arguments)})},{key:"createVectorSource",value:function(e){var n,r,i,o,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u.dataProjection=e.source.dataProjection,c.url=(0,x.getLocalizedValue)(e.source.dataAccessPath,A.K.getDisplayLanguage(this.mapId)),c.url="".concat(c.url,"/collections/").concat(e.layerId,"/items?f=json"),c.format=new p.A,(n=t,r="createVectorSource",i=this,o=3,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e,c,u])}}]);var n}(g.W);function _(e,t){var n,r;if(t.source||(t.source={}),t.source.featureInfo||(t.source.featureInfo={queryable:!0}),null===(n=t.source.featureInfo.outfields)||void 0===n||!n.en||null===(r=t.source.featureInfo.aliasFields)||void 0===r||!r.en){var i,o,a,s,l,c,u,d=!(null!==(i=t.source.featureInfo.outfields)&&void 0!==i&&i.en),h=!(null!==(o=t.source.featureInfo.aliasFields)&&void 0!==o&&o.en);d&&(t.source.featureInfo.outfields={en:""},t.source.featureInfo.fieldTypes=""),h&&(t.source.featureInfo.aliasFields={en:""}),Object.keys(e).forEach((function(n){if("Geometry"!==e[n].type){var r;if(d)t.source.featureInfo.outfields.en="".concat(t.source.featureInfo.outfields.en).concat(n,","),r="date"===e[n].type?"date":["int","number"].includes(e[n].type)?"number":"string",t.source.featureInfo.fieldTypes="".concat(t.source.featureInfo.fieldTypes).concat(r,",");t.source.featureInfo.aliasFields.en="".concat(t.source.featureInfo.aliasFields.en).concat(n,",")}})),t.source.featureInfo.outfields.en=null===(a=t.source.featureInfo.outfields)||void 0===a||null===(a=a.en)||void 0===a?void 0:a.slice(0,-1),t.source.featureInfo.fieldTypes=null===(s=t.source.featureInfo.fieldTypes)||void 0===s?void 0:s.slice(0,-1),t.source.featureInfo.aliasFields.en=null===(l=t.source.featureInfo.aliasFields)||void 0===l||null===(l=l.en)||void 0===l?void 0:l.slice(0,-1),t.source.featureInfo.outfields.fr=null===(c=t.source.featureInfo.outfields)||void 0===c?void 0:c.en,t.source.featureInfo.aliasFields.fr=null===(u=t.source.featureInfo.aliasFields)||void 0===u?void 0:u.en}if(!t.source.featureInfo.nameField){var p,f,g=(null===(p=t.source.featureInfo.outfields.en)||void 0===p?void 0:p.split(",")[0])||(null===(f=t.source.featureInfo.outfields.fr)||void 0===f?void 0:f.split(",")[0]),m=g;g&&(t.source.featureInfo.nameField={en:g,fr:m})}}},66582:(e,t,n)=>{"use strict";n.d(t,{dS:()=>it,Vk:()=>tt,OV:()=>et});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(98246),p=n(2197),f=n(43910),g=n(87882),m=n(67103),y=n(87620),v=n(32332),b=n(64383),w=n(59119),x=n(4472),A=n(45282),S=n(47505),C=n(51249);class E extends x.Ay{constructor(){super(),this.xmlSerializer_=(0,C.mc)()}getType(){return"xml"}readFeature(e,t){if(!e)return null;if("string"==typeof e){const n=(0,C.qg)(e);return this.readFeatureFromDocument(n,t)}return(0,C.wz)(e)?this.readFeatureFromDocument(e,t):this.readFeatureFromNode(e,t)}readFeatureFromDocument(e,t){const n=this.readFeaturesFromDocument(e,t);return n.length>0?n[0]:null}readFeatureFromNode(e,t){return null}readFeatures(e,t){if(!e)return[];if("string"==typeof e){const n=(0,C.qg)(e);return this.readFeaturesFromDocument(n,t)}return(0,C.wz)(e)?this.readFeaturesFromDocument(e,t):this.readFeaturesFromNode(e,t)}readFeaturesFromDocument(e,t){const n=[];for(let r=e.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,S.X$)(n,this.readFeaturesFromNode(r,t));return n}readFeaturesFromNode(e,t){return(0,A.b0)()}readGeometry(e,t){if(!e)return null;if("string"==typeof e){const n=(0,C.qg)(e);return this.readGeometryFromDocument(n,t)}return(0,C.wz)(e)?this.readGeometryFromDocument(e,t):this.readGeometryFromNode(e,t)}readGeometryFromDocument(e,t){return null}readGeometryFromNode(e,t){return null}readProjection(e){if(!e)return null;if("string"==typeof e){const t=(0,C.qg)(e);return this.readProjectionFromDocument(t)}return(0,C.wz)(e)?this.readProjectionFromDocument(e):this.readProjectionFromNode(e)}readProjectionFromDocument(e){return this.dataProjection}readProjectionFromNode(e){return this.dataProjection}writeFeature(e,t){const n=this.writeFeatureNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeatureNode(e,t){return null}writeFeatures(e,t){const n=this.writeFeaturesNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeaturesNode(e,t){return null}writeGeometry(e,t){const n=this.writeGeometryNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeGeometryNode(e,t){return null}}const k=E;var T=n(82512);const _="http://www.opengis.net/gml",O=/^\s*$/;class P extends k{constructor(e){super(),e=e||{},this.featureType=e.featureType,this.featureNS=e.featureNS,this.srsName=e.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:(0,C.VT)(this.readFeaturesInternal),featureMembers:(0,C.Tb)(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(e,t){const n=e.localName;let r=null;if("FeatureCollection"==n)r=(0,C.eY)([],this.FEATURE_COLLECTION_PARSERS,e,t,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){const i=t[0];let o=i.featureType,a=i.featureNS;const s="p",l="p0";if(!o&&e.childNodes){o=[],a={};for(let t=0,n=e.childNodes.length;t0&&!(e instanceof p.A)){e={_content_:e};for(let t=0;t=2,"At least 2 conditions are required")}};const H=class extends q{constructor(e){super("And",Array.prototype.slice.call(arguments))}};const Y=class extends U{constructor(e,t,n){if(super("BBOX"),this.geometryName=e,this.extent=t,4!==t.length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=n}};const K={"http://www.opengis.net/gml":{boundedBy:(0,C.kW)(I.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:(0,C.VT)(I.prototype.readFeaturesInternal)}},X={"http://www.opengis.net/wfs":{totalInserted:(0,C.kW)(L.yg),totalUpdated:(0,C.kW)(L.yg),totalDeleted:(0,C.kW)(L.yg)},"http://www.opengis.net/wfs/2.0":{totalInserted:(0,C.kW)(L.yg),totalUpdated:(0,C.kW)(L.yg),totalDeleted:(0,C.kW)(L.yg)}},Z={"http://www.opengis.net/wfs":{TransactionSummary:(0,C.kW)(le,"transactionSummary"),InsertResults:(0,C.kW)(he,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:(0,C.kW)(le,"transactionSummary"),InsertResults:(0,C.kW)(he,"insertIds")}},J={"http://www.opengis.net/wfs":{PropertyName:(0,C.mm)(L.uB)},"http://www.opengis.net/wfs/2.0":{PropertyName:(0,C.mm)(L.uB)}},Q={"http://www.opengis.net/wfs":{Insert:(0,C.mm)(pe),Update:(0,C.mm)(ye),Delete:(0,C.mm)(me),Property:(0,C.mm)(ve),Native:(0,C.mm)(be)},"http://www.opengis.net/wfs/2.0":{Insert:(0,C.mm)(pe),Update:(0,C.mm)(ye),Delete:(0,C.mm)(me),Property:(0,C.mm)(ve),Native:(0,C.mm)(be)}},ee="feature",te="http://www.w3.org/2000/xmlns/",ne={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},re={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},ie={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},oe={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},ae={"2.0.0":G,"1.1.0":V,"1.0.0":D};function se(e,t,n,r){(0,C.NQ)(r,Q,(0,C.X1)(e),t,n)}function le(e,t){return(0,C.eY)({},X,e,t)}const ce={"http://www.opengis.net/ogc":{FeatureId:(0,C.VT)((function(e,t){return e.getAttribute("fid")}))},"http://www.opengis.net/ogc/1.1":{FeatureId:(0,C.VT)((function(e,t){return e.getAttribute("fid")}))}};function ue(e,t){(0,C.UN)(ce,e,t)}const de={"http://www.opengis.net/wfs":{Feature:ue},"http://www.opengis.net/wfs/2.0":{Feature:ue}};function he(e,t){return(0,C.eY)([],de,e,t)}function pe(e,t,n){const r=n[n.length-1],i=r.featureType,o=r.featureNS,a=r.gmlVersion,s=(0,C.qq)(o,i);e.appendChild(s),2===a?D.prototype.writeFeatureElement(s,t,n):3===a?V.prototype.writeFeatureElement(s,t,n):G.prototype.writeFeatureElement(s,t,n)}function fe(e,t,n){const r=n[n.length-1].version,i=ne[r],o=(0,C.qq)(i,"Filter"),a=(0,C.qq)(i,"FeatureId");o.appendChild(a),a.setAttribute("fid",t),e.appendChild(o)}function ge(e,t){const n=(e=e||ee)+":";return t.startsWith(n)?t:n+t}function me(e,t,n){const r=n[n.length-1];(0,W.v)(void 0!==t.getId(),"Features must have an id set");const i=r.featureType,o=r.featurePrefix,a=r.featureNS,s=ge(o,i);e.setAttribute("typeName",s),e.setAttributeNS(te,"xmlns:"+o,a);const l=t.getId();void 0!==l&&fe(e,l,n)}function ye(e,t,n){const r=n[n.length-1];(0,W.v)(void 0!==t.getId(),"Features must have an id set");const i=r.version,o=r.featureType,a=r.featurePrefix,s=r.featureNS,l=ge(a,o),c=t.getGeometryName();e.setAttribute("typeName",l),e.setAttributeNS(te,"xmlns:"+a,s);const u=t.getId();if(void 0!==u){const o=t.getKeys(),a=[];for(let e=0,n=o.length;e{const i=this.combineBboxAndFilter(r.geometryName,r.bbox,e.srsName,e.filter);Object.assign(n,{geometryName:r.geometryName,filter:i}),De(t,[r.name],[n])}));return t}combineBboxAndFilter(e,t,n,r){const i=function(e,t,n){return new Y(e,t,n)}(e,t,n);return r?function(e){const t=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(H,t))}(r,i):i}writeTransaction(e,t,n,r){const i=[],o=r.version?r.version:this.version_,a=(0,C.qq)(re[o],"Transaction");let s;a.setAttribute("service","WFS"),a.setAttribute("version",o),r&&(s=r.gmlOptions?r.gmlOptions:{},r.handle&&a.setAttribute("handle",r.handle)),a.setAttributeNS(C.pF,"xsi:schemaLocation",oe[o]);const l=function(e,t,n,r){const i=r.featurePrefix?r.featurePrefix:ee;let o;"1.0.0"===n?o=2:"1.1.0"===n?o=3:"2.0.0"===n&&(o=3.2);const a=Object.assign({node:e},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:i,gmlVersion:o,hasZ:r.hasZ,srsName:r.srsName},t);return a}(a,s,o,r);return e&&se("Insert",e,i,l),t&&se("Update",t,i,l),n&&se("Delete",n,i,l),r.nativeElements&&se("Native",r.nativeElements,i,l),a}readProjectionFromDocument(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(t);return null}readProjectionFromNode(e){if(e.firstElementChild&&e.firstElementChild.firstElementChild)for(let t=(e=e.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){const e=[{}];return this.gmlFormat_.readGeometryElement(t,e),(0,T.Jt)(e.pop().srsName)}return null}};var ze=n(16597),Ve=n(51640),$e=n(41538),Ge=n(2265),Ue=n(76200),We=n(6883),qe=n(39453),He=n(16775),Ye=n(35415);function Ke(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,Xe()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function Xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xe=function(){return!!e})()}function Ze(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Je(e,t){return e.get(Qe(e,t))}function Qe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var et=function(e){return(null==e?void 0:e.geoviewLayerType)===Ve.y6.WFS},tt=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===Ve.y6.WFS},nt=new WeakMap,rt=new WeakSet,it=function(e){function t(e,n){var r,o,a;return(0,i.A)(this,t),r=Ke(this,t,[Ve.y6.WFS,n,e]),Ze(o=r,a=rt),a.add(o),function(e,t,n){Ze(e,t),t.set(e,n)}(r,nt,"2.0.0"),r}return(0,c.A)(t,e),(0,o.A)(t,[{key:"getFieldType",value:function(e,t){var n=this.getLayerMetadata(t.layerPath).find((function(t){return t.name===e}));if(!n)return"string";var r=n.type.split(":").slice(-1)[0];return"date"===r?"date":["int","number"].includes(r)?"number":"string"}},{key:"fetchServiceMetadata",value:function(){var e=this;return new Promise((function(t){var n=(0,Ue.getLocalizedValue)(e.metadataAccessPath,He.K.getDisplayLanguage(e.mapId)),r=n.indexOf("?")>-1?n.substring(n.indexOf("?")):"?service=WFS&request=GetCapabilities";(n=n.indexOf("?")>-1?n.substring(0,n.indexOf("?")):n)?(0,Ue.getXMLHttpRequest)("".concat(n).concat(r)).then((function(n){if("{}"===n)e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata");else{var r=(new DOMParser).parseFromString(n,"text/xml"),i=(0,Ue.xmlToJson)(r),o=(0,Ue.findPropertyNameByRegex)(i,/(?:WFS_Capabilities)/);e.metadata=o,a=nt,s=e,l=o["@attributes"].version,a.set(Qe(a,s),l),t()}var a,s,l})).catch((function(n){e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata"),We.vF.logError("Unableto fetch metadata",e.metadataAccessPath,n),t()})):e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata")}))}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r,i,o=e.layerPath;if((0,Ge.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:o,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(o,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",Array.isArray(null===(n=t.metadata)||void 0===n||null===(n=n.FeatureTypeList)||void 0===n?void 0:n.FeatureType)||(t.metadata.FeatureTypeList.FeatureType=[null===(r=t.metadata)||void 0===r||null===(r=r.FeatureTypeList)||void 0===r?void 0:r.FeatureType]),Array.isArray(null===(i=t.metadata)||void 0===i||null===(i=i.FeatureTypeList)||void 0===i?void 0:i.FeatureType)){var a,s,l=(null===(a=t.metadata)||void 0===a?void 0:a.FeatureTypeList.FeatureType).find((function(t){return(t.Name&&t.Name["#text"]).includes(e.layerId)}));if(!l)return t.layerLoadError.push({layer:o,loggerMessage:"WFS feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(o,")")}),void(e.layerStatus="error");if(e.initialSettings.extent=(0,Ye.validateExtentWhenDefined)(e.initialSettings.extent),(null===(s=e.initialSettings)||void 0===s||!s.bounds)&&l["ows:WGS84BoundingBox"]){var c=l["ows:WGS84BoundingBox"]["ows:LowerCorner"]["#text"].split(" "),u=l["ows:WGS84BoundingBox"]["ows:UpperCorner"]["#text"].split(" "),d=[Number(c[0]),Number(c[1]),Number(u[0]),Number(u[1])];e.initialSettings.bounds=d}e.initialSettings.bounds=(0,Ye.validateExtentWhenDefined)(e.initialSettings.bounds)}}))}},{key:"processLayerMetadata",value:(n=(0,r.A)(d().mark((function e(t){var n,r,i,o,a,s,l,c,u,h,p,f,g;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof qe.T){e.next=2;break}throw new Error("Invalid layer configuration type provided");case 2:if(e.prev=2,n=(n=(0,Ue.getLocalizedValue)(t.source.dataAccessPath,He.K.getDisplayLanguage(this.mapId))).indexOf("?")>-1?n.substring(0,n.indexOf("?")):n,r=this.metadata["ows:OperationsMetadata"]["ows:Operation"][1]["ows:Parameter"],i=(0,Ue.findPropertyNameByRegex)(r,/(?:Value)/),o="",void 0!==i&&(o=Array.isArray(i["ows:Value"])?i["ows:Value"][0]["#text"]:void 0===i["ows:Value"]?i[0]["#text"]:i["ows:Value"]["#text"]),!(a="".concat(n,"?service=WFS&request=DescribeFeatureType&version=").concat(Je(nt,this),"&outputFormat=").concat(encodeURIComponent(o),"&typeName=").concat(t.layerId))||"application/json"!==o){e.next=19;break}return e.next=13,fetch(a);case 13:return e.next=15,e.sent.json();case 15:s=e.sent,Array.isArray(s.featureTypes)&&Array.isArray(s.featureTypes[0].properties)&&(this.setLayerMetadata(t.layerPath,s.featureTypes[0].properties),Qe(rt,this,ot).call(this,s.featureTypes[0].properties,t)),e.next=31;break;case 19:if(!a||!o.toUpperCase().includes("XML")){e.next=31;break}return e.next=22,fetch(a);case 22:return e.next=24,e.sent.text();case 24:l=e.sent,c=(new DOMParser).parseFromString(l,"text/xml"),u=(0,Ue.xmlToJson)(c),h=Object.keys(u)[0].includes("xsd:")?"xsd:":"",p=u["".concat(h,"schema")],f=void 0!==p["".concat(h,"complexType")]?p["".concat(h,"complexType")]["".concat(h,"complexContent")]["".concat(h,"extension")]["".concat(h,"sequence")]["".concat(h,"element")]:[],Array.isArray(f)&&(g=[],f.forEach((function(e){g.push(e["@attributes"])})),this.setLayerMetadata(t.layerPath,g),Qe(rt,this,ot).call(this,g,t));case 31:e.next=37;break;case 33:e.prev=33,e.t0=e.catch(2),We.vF.logError('Error processing layer metadata for layer path "'.concat(t.layerPath),e.t0),t.layerStatus="error";case 37:return e.abrupt("return",t);case 38:case"end":return e.stop()}}),e,this,[[2,33]])}))),function(e){return n.apply(this,arguments)})},{key:"createVectorSource",value:function(e){var n,r,i,o,a,c=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.dataProjection=e.source.dataProjection,u.url=function(t){var n=(0,Ue.getLocalizedValue)(e.source.dataAccessPath,He.K.getDisplayLanguage(c.mapId));return n=n.indexOf("?")>-1?n.substring(0,n.indexOf("?")):n,n="".concat(n,"?service=WFS&request=getFeature&version=").concat(Je(nt,c)),n="".concat(n,"&typeName=").concat(e.layerId),u.strategy===ze.Qk&&Number.isFinite(t[0])&&(n="".concat(n,"&bbox=").concat(t,",").concat(c.getMapViewer().getProjection().getCode())),n},u.format=new Be({version:Je(nt,this)}),(n=t,r="createVectorSource",i=this,o=3,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e,u,d])}}]);var n}($e.W);function ot(e,t){var n,r,i=this;if(t.source||(t.source={}),t.source.featureInfo||(t.source.featureInfo={queryable:!0}),null===(n=t.source.featureInfo.outfields)||void 0===n||!n.en||null===(r=t.source.featureInfo.aliasFields)||void 0===r||!r.en){var o,a,s,l,c,u,d,h=!(null!==(o=t.source.featureInfo.outfields)&&void 0!==o&&o.en),p=!(null!==(a=t.source.featureInfo.aliasFields)&&void 0!==a&&a.en);h&&(t.source.featureInfo.outfields={en:""},t.source.featureInfo.fieldTypes=""),p&&(t.source.featureInfo.aliasFields={en:""}),e.forEach((function(e){"Geometry"!==e.type.split(":").slice(-1)[0]&&(h&&(t.source.featureInfo.outfields.en="".concat(t.source.featureInfo.outfields.en).concat(e.name,","),t.source.featureInfo.fieldTypes="".concat(t.source.featureInfo.fieldTypes).concat(i.getFieldType(e.name,t),",")),t.source.featureInfo.aliasFields.en="".concat(t.source.featureInfo.aliasFields.en).concat(e.name,","))})),t.source.featureInfo.outfields.en=null===(s=t.source.featureInfo.outfields)||void 0===s||null===(s=s.en)||void 0===s?void 0:s.slice(0,-1),t.source.featureInfo.fieldTypes=null===(l=t.source.featureInfo.fieldTypes)||void 0===l?void 0:l.slice(0,-1),t.source.featureInfo.aliasFields.en=null===(c=t.source.featureInfo.aliasFields)||void 0===c||null===(c=c.en)||void 0===c?void 0:c.slice(0,-1),t.source.featureInfo.outfields.fr=null===(u=t.source.featureInfo.outfields)||void 0===u?void 0:u.en,t.source.featureInfo.aliasFields.fr=null===(d=t.source.featureInfo.aliasFields)||void 0===d?void 0:d.en}if(!t.source.featureInfo.nameField){var f,g,m=(null===(f=t.source.featureInfo.outfields.en)||void 0===f?void 0:f.split(",")[1])||(null===(g=t.source.featureInfo.outfields.fr)||void 0===g?void 0:g.split(",")[1]),y=m;m&&(t.source.featureInfo.nameField={en:m,fr:y})}}},13209:(e,t,n)=>{"use strict";n.d(t,{F:()=>w});var r=n(13718),i=n(47280),o=n(42432),a=n(2358),s=n(6883);function l(e,t,n){c(e,t),t.set(e,n)}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t){return e.get(h(e,t))}function d(e,t,n){return e.set(h(e,t),n),n}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakSet,w=function(){return(0,i.A)((function e(t,n){var i,a;(0,r.A)(this,e),c(i=this,a=b),a.add(i),l(this,p,void 0),l(this,f,void 0),(0,o.A)(this,"olLayer",void 0),l(this,g,void 0),l(this,m,[]),l(this,y,[]),l(this,v,[]),d(p,this,t),d(f,this,n),d(g,this,n.layerName)}),[{key:"getMapId",value:function(){return u(p,this)}},{key:"getLayerConfig",value:function(){return u(f,this)}},{key:"getOLLayer",value:function(){return this.olLayer}},{key:"getLayerPath",value:function(){return u(f,this).layerPath}},{key:"getGeoviewLayerId",value:function(){return u(f,this).geoviewLayerConfig.geoviewLayerId}},{key:"getGeoviewLayerName",value:function(){return u(f,this).geoviewLayerConfig.geoviewLayerName}},{key:"getLayerStatus",value:function(e){return this.getLayerConfig().layerStatus}},{key:"getLayerName",value:function(e){return u(g,this)}},{key:"setLayerName",value:function(e,t){d(g,this,t),h(b,this,x).call(this,{layerPath:e,layerName:t})}},{key:"getExtent",value:function(){return this.getOLLayer().getExtent()}},{key:"setExtent",value:function(e){this.getOLLayer().setExtent(e)}},{key:"getExtentFromFeatures",value:function(e,t){return s.vF.logError("Feature geometry for ".concat(t," is unavailable from ").concat(e)),Promise.resolve(void 0)}},{key:"getOpacity",value:function(){return this.getOLLayer().getOpacity()}},{key:"setOpacity",value:function(e){this.getOLLayer().setOpacity(e),h(b,this,S).call(this,{layerPath:this.getLayerPath(),opacity:e})}},{key:"getVisible",value:function(){return this.getOLLayer().getVisible()}},{key:"setVisible",value:function(e){var t=this.getVisible();this.getOLLayer().setVisible(e),e!==t&&h(b,this,A).call(this,{visible:e})}},{key:"getMinZoom",value:function(){return this.getOLLayer().getMinZoom()}},{key:"setMinZoom",value:function(e){this.getOLLayer().setMinZoom(e)}},{key:"getMaxZoom",value:function(){return this.getOLLayer().getMaxZoom()}},{key:"setMaxZoom",value:function(e){this.getOLLayer().setMaxZoom(e)}},{key:"onLayerNameChanged",value:function(e){a.A.onEvent(u(m,this),e)}},{key:"offLayerNameChanged",value:function(e){a.A.offEvent(u(m,this),e)}},{key:"onVisibleChanged",value:function(e){a.A.onEvent(u(y,this),e)}},{key:"offVisibleChanged",value:function(e){a.A.offEvent(u(y,this),e)}},{key:"onLayerOpacityChanged",value:function(e){a.A.onEvent(u(v,this),e)}},{key:"offLayerOpacityChanged",value:function(e){a.A.offEvent(u(v,this),e)}}])}();function x(e){a.A.emitEvent(this,u(m,this),e)}function A(e){a.A.emitEvent(this,u(y,this),e)}function S(e){a.A.emitEvent(this,u(v,this),e)}},45361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(42432),d=n(74813),h=n.n(d),p=n(37632),f=n(76200),g=n(25079),m=n(6883),y=n(82527),v=n(2358),b=n(59155),w=n(58748),x=n(27991),A=n(13209);function S(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,C()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function E(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function k(e,t,n){T(e,t),t.set(e,n)}function T(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _(e,t){return e.get(P(e,t))}function O(e,t,n){return e.set(P(e,t),n),n}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,B=new WeakMap,z=new WeakMap,V=new WeakMap,$=new WeakSet,G=function(e){function t(e,n,r){var o,a,s;return(0,i.A)(this,t),o=S(this,t,[e,r]),T(a=o,s=$),s.add(a),(0,u.A)(o,"hitTolerance",t.DEFAULT_HIT_TOLERANCE),k(o,I,void 0),k(o,M,void 0),k(o,L,void 0),k(o,R,void 0),k(o,j,void 0),k(o,F,!0),k(o,D,[]),k(o,N,[]),k(o,B,[]),k(o,z,[]),k(o,V,[]),O(I,o,n),O(R,o,r.geoviewLayerConfig.serviceDateFormat?g.P.getDateFragmentsOrder(r.geoviewLayerConfig.serviceDateFormat):void 0),O(j,o,g.P.getDateFragmentsOrder(r.geoviewLayerConfig.externalDateFormat)),O(F,o,void 0===r.geoviewLayerConfig.isTimeAware||r.geoviewLayerConfig.isTimeAware),o}return(0,c.A)(t,e),(0,o.A)(t,[{key:"init",value:function(){_(I,this).once(["featuresloadend","imageloadend","tileloadend"],this.onLoaded.bind(this)),_(I,this).once(["featuresloaderror","imageloaderror","tileloaderror"],this.onError.bind(this))}},{key:"getMapViewer",value:function(){return x.d.getMapViewer(this.getMapId())}},{key:"getOLLayer",value:function(){return E(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return _(I,this)}},{key:"getLayerConfig",value:function(){return E(t,"getLayerConfig",this,3)([])}},{key:"getStyle",value:function(e){return _(M,this)}},{key:"setStyle",value:function(e,t){O(M,this,t),P($,this,q).call(this,{style:t,layerPath:e})}},{key:"getAttributions",value:function(){var e,t=null===(e=this.getOLSource().getAttributions())||void 0===e?void 0:e({});return t?"string"==typeof t?[t]:t:[]}},{key:"getTemporalDimension",value:function(){return _(L,this)}},{key:"setTemporalDimension",value:function(e){O(L,this,e)}},{key:"getIsTimeAware",value:function(){return _(F,this)}},{key:"getExternalFragmentsOrder",value:function(){return _(j,this)}},{key:"onLoaded",value:function(){var e;this.getLayerConfig().layerStatus="loaded",P($,this,H).call(this,{layerPath:this.getLayerPath()}),this.setVisible(!1!==(null===(e=this.getLayerConfig().initialSettings)||void 0===e||null===(e=e.states)||void 0===e?void 0:e.visible))}},{key:"onError",value:function(){this.getLayerConfig().layerStatus="error"}},{key:"getFeatureInfo",value:(s=(0,r.A)(h().mark((function e(t,n){var r,i,o,a,s,l,c=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>2&&void 0!==c[2]?c[2]:null,e.prev=1,o=this.getLayerConfig(),null!==(i=o.source)&&void 0!==i&&null!==(i=i.featureInfo)&&void 0!==i&&i.queryable){e.next=6;break}return m.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:m.vF.logTraceCore("ABSTRACT-GV-LAYERS - getFeatureInfo",t),a="".concat(t),m.vF.logMarkerStart(a),e.t0=t,e.next="all"===e.t0?12:"at_pixel"===e.t0?14:"at_coordinate"===e.t0?16:"at_long_lat"===e.t0?18:"using_a_bounding_box"===e.t0?20:"using_a_polygon"===e.t0?22:24;break;case 12:return s=this.getAllFeatureInfo(),e.abrupt("break",26);case 14:return s=this.getFeatureInfoAtPixel(r),e.abrupt("break",26);case 16:return s=this.getFeatureInfoAtCoordinate(r),e.abrupt("break",26);case 18:return s=this.getFeatureInfoAtLongLat(r),e.abrupt("break",26);case 20:return s=this.getFeatureInfoUsingBBox(r),e.abrupt("break",26);case 22:return s=this.getFeatureInfoUsingPolygon(r),e.abrupt("break",26);case 24:s=Promise.resolve([]),m.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return l=e.sent,m.vF.logMarkerCheck(a,"to getFeatureInfo",l),e.abrupt("return",l);case 33:return e.prev=33,e.t1=e.catch(1),m.vF.logError(e.t1),e.abrupt("return",null);case 37:case"end":return e.stop()}}),e,this,[[1,33]])}))),function(e,t){return s.apply(this,arguments)})},{key:"getAllFeatureInfo",value:function(){throw new Error("Not implemented exception getAllFeatureInfo on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoAtPixel",value:function(e){throw new Error("Not implemented exception for getFeatureInfoAtPixel on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoAtCoordinate",value:function(e){throw new Error("Not implemented exception for getFeatureInfoAtCoordinate on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoAtLongLat",value:function(e){throw new Error("Not implemented exception for getFeatureInfoAtLongLat on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoUsingBBox",value:function(e){throw new Error("Not implemented exception for getFeatureInfoUsingBBox on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoUsingPolygon",value:function(e){throw new Error("Not implemented exception for getFeatureInfoUsingPolygon on layer path ".concat(this.getLayerPath()))}},{key:"getFieldDomain",value:function(e){return m.vF.logWarning("getFieldDomain is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),null}},{key:"getFieldType",value:function(e){return m.vF.logWarning("getFieldType is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),"string"}},{key:"queryLegend",value:function(){var e=this;P($,this,U).call(this);var t=this.getLegend();return t.then((function(t){t&&(e.updateIconImageCache(t),P($,e,W).call(e,{legend:t}))})).catch((function(e){m.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGVLayer",e)})),t}},{key:"updateIconImageCache",value:function(e){var t=this.getMapViewer().iconImageCacheSize;e.styleConfig&&Object.keys(e.styleConfig).forEach((function(n){var r,i,o,a;!e.styleConfig||"uniqueValue"!==(null===(r=e.styleConfig[n])||void 0===r?void 0:r.styleType)&&"classBreaks"!==(null===(i=e.styleConfig[n])||void 0===i?void 0:i.styleType)||(null!==(o=e.styleConfig[n].uniqueValueStyleInfo)&&void 0!==o&&o.length&&(t+=e.styleConfig[n].uniqueValueStyleInfo.length),null!==(a=e.styleConfig[n].classBreakStyleInfo)&&void 0!==a&&a.length&&(t+=e.styleConfig[n].classBreakStyleInfo.length))})),p.ue.setSize(t),this.getMapViewer().iconImageCacheSize=t}},{key:"getLegend",value:(a=(0,r.A)(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this.getLayerConfig().geoviewLayerConfig.geoviewLayerType,e.t1=this.getStyle(this.getLayerPath()),e.next=5,(0,w.qC)(this.getStyle(this.getLayerPath()));case 5:return e.t2=e.sent,t={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",t);case 10:return e.prev=10,e.t3=e.catch(0),m.vF.logError(e.t3),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return a.apply(this,arguments)})},{key:"getFieldValue",value:function(e,t,n){var r,i=e.get(t);if("date"===n){"string"==typeof i?(_(R,this)||O(R,this,g.P.getDateFragmentsOrder(g.P.deduceDateFormat(i))),r=g.P.applyInputDateFormat(i,_(R,this))):r=g.P.convertToUTC("".concat(g.P.convertMilisecondsToDate(i),"Z"));return _(j,this)&&(r=g.P.applyOutputDateFormat(r,_(j,this),!0)),r}return i}},{key:"formatFeatureInfoResult",value:(n=(0,r.A)(h().mark((function e(t,n){var i,o,a,s,l,c,u,d,p,g,v,x,A,S,C,E,k,T=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.length){e.next=3;break}return e.abrupt("return",[]);case 3:return c=new y.z(1),u=function(){return c.withLock((0,r.A)(h().mark((function e(){var t,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==l){e.next=7;break}return l=null,e.next=4,T.queryLegend();case 4:t=e.sent,(n=b.K.getLayerIconImage(t))&&(l=n[0].iconImage||null);case 7:return e.abrupt("return",l);case 8:case"end":return e.stop()}}),e)}))))},d=null==n||null===(i=n.source)||void 0===i?void 0:i.featureInfo,p=null==d||null===(o=d.fieldTypes)||void 0===o?void 0:o.split(","),g=null===(a=(0,f.getLocalizedValue)(null==d?void 0:d.outfields,"en"))||void 0===a?void 0:a.split(","),v=null===(s=(0,f.getLocalizedValue)(null==d?void 0:d.aliasFields,"en"))||void 0===s?void 0:s.split(","),x=[],t.forEach((function(e){x.push(new Promise((function(t){(0,w.$G)(e,T.getStyle(n.layerPath),n.filterEquation,n.legendFilterIsOff,!0,u).then((function(n){t({feature:e,canvas:n})})).catch((function(e){m.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGVLayer",e)}))})))})),A={},S={},C=0,E=0,k=[],e.next=18,Promise.all(x);case 18:return e.sent.forEach((function(e){var t,r,i=e.feature,o=e.canvas;i.getGeometry()&&(r=i.getGeometry().getExtent());var a={featureKey:C++,geoviewLayerType:T.getLayerConfig().geoviewLayerConfig.geoviewLayerType,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,f.getLocalizedValue)(null==n||null===(t=n.source)||void 0===t||null===(t=t.featureInfo)||void 0===t?void 0:t.nameField,"en")||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=T.getFieldDomain(e));var t=A[e];e in S||(S[e]=T.getFieldType(e));var n=S[e];if(null!=g&&g.includes(e)){var r=g.indexOf(e);a.fieldInfo[e]={fieldKey:E++,value:T.getFieldValue(i,e,p[r]),dataType:p[r],alias:v[r],domain:t}}else g||(a.fieldInfo[e]={fieldKey:E++,value:T.getFieldValue(i,e,n),dataType:n,alias:e,domain:t})}})),k.push(a)})),e.abrupt("return",k);case 23:return e.prev=23,e.t0=e.catch(0),m.vF.logError(e.t0),e.abrupt("return",[]);case 27:case"end":return e.stop()}}),e,null,[[0,23]])}))),function(e,t){return n.apply(this,arguments)})},{key:"getLayerFilter",value:function(e){var t=this.getLayerConfig();return null==t?void 0:t.layerFilter}},{key:"onLegendQuerying",value:function(e){v.A.onEvent(_(N,this),e)}},{key:"offLegendQuerying",value:function(e){v.A.offEvent(_(N,this),e)}},{key:"onLegendQueried",value:function(e){v.A.onEvent(_(B,this),e)}},{key:"offLegendQueried",value:function(e){v.A.offEvent(_(B,this),e)}},{key:"emitLayerFilterApplied",value:function(e){v.A.emitEvent(this,_(z,this),e)}},{key:"onLayerFilterApplied",value:function(e){v.A.onEvent(_(z,this),e)}},{key:"offLayerFilterApplied",value:function(e){v.A.offEvent(_(z,this),e)}},{key:"onLayerStyleChanged",value:function(e){v.A.onEvent(_(D,this),e)}},{key:"offLayerStyleChanged",value:function(e){v.A.offEvent(_(D,this),e)}},{key:"onIndividualLayerLoaded",value:function(e){v.A.onEvent(_(V,this),e)}},{key:"offIndividualLayerLoaded",value:function(e){v.A.offEvent(_(V,this),e)}}],[{key:"initOptionsWithInitialSettings",value:function(e,t){var n,r,i,o,a;void 0!==(null===(n=t.initialSettings)||void 0===n?void 0:n.className)&&(e.className=t.initialSettings.className),void 0!==(null===(r=t.initialSettings)||void 0===r?void 0:r.extent)&&(e.extent=t.initialSettings.extent),void 0!==(null===(i=t.initialSettings)||void 0===i?void 0:i.maxZoom)&&(e.maxZoom=t.initialSettings.maxZoom),void 0!==(null===(o=t.initialSettings)||void 0===o?void 0:o.minZoom)&&(e.minZoom=t.initialSettings.minZoom),void 0!==(null===(a=t.initialSettings)||void 0===a||null===(a=a.states)||void 0===a?void 0:a.opacity)&&(e.opacity=t.initialSettings.states.opacity)}}]);var n,a,s}(A.F);function U(){v.A.emitEvent(this,_(N,this),void 0)}function W(e){v.A.emitEvent(this,_(B,this),e)}function q(e){v.A.emitEvent(this,_(D,this),e)}function H(e){v.A.emitEvent(this,_(V,this),e)}(0,u.A)(G,"DEFAULT_HIT_TOLERANCE",4)},77265:(e,t,n)=>{"use strict";n.d(t,{z:()=>h});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(8058);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(){return(0,r.A)(this,t),u(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getOLLayer",value:function(){return(e=t,n="getOLLayer",r=this,i=3,o=(0,s.A)((0,a.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}},{key:"getMetadataProjection",value:function(){var e;return c.M.getProjection("EPSG:".concat(null===(e=this.getLayerConfig().getServiceMetadata())||void 0===e||null===(e=e.fullExtent)||void 0===e||null===(e=e.spatialReference)||void 0===e?void 0:e.wkid))||void 0}},{key:"getMetadataExtent",value:function(){var e=this.getLayerConfig().getServiceMetadata();if(null!=e&&e.fullExtent)return[null==e?void 0:e.fullExtent.xmin,null==e?void 0:e.fullExtent.ymin,null==e?void 0:e.fullExtent.xmax,null==e?void 0:e.fullExtent.ymax]}}])}(n(45361).Z)},96734:(e,t,n)=>{"use strict";n.d(t,{Y:()=>F});var r=n(29067),i=n(55907),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(42432),p=n(74813),f=n.n(p),g=n(39684),m=n(58699),y=n(98246),v=n(96997),b=n(76200),w=n(35415),x=n(8058),A=n(16775),S=n(6883),C=n(25079),E=n(2265),k=n(79760),T=n(77265);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[0].minValue,e.source.featureInfo))):!1===o.classBreakStyleInfo[0].visible&&!1!==o.defaultVisible&&(u.push("".concat(o.field," < ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[0].minValue,e.source.featureInfo))),d=h):!1!==o.classBreakStyleInfo[h].visible&&!1===o.defaultVisible?(u.push("".concat(o.field," > ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].minValue,e.source.featureInfo))),h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].maxValue,e.source.featureInfo)))):!1===o.classBreakStyleInfo[h].visible&&!1!==o.defaultVisible&&(u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].minValue,e.source.featureInfo))),d=h):!1===o.defaultVisible?!1===o.classBreakStyleInfo[h].visible?u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h-1].maxValue,e.source.featureInfo))):h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].maxValue,e.source.featureInfo))):!1!==o.classBreakStyleInfo[h].visible?(u.push("".concat(o.field," > ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h-1].maxValue,e.source.featureInfo))),d=-1):d=h;if(-1!==d&&u.push("".concat(o.field," > ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[d].maxValue,e.source.featureInfo))),!1!==o.defaultVisible){var p="".concat(u.slice(0,-1).reduce((function(e,t,n){return 0===n?"(".concat(t," or "):n%2==0?"".concat(e," and ").concat(t,") or "):"".concat(e,"(").concat(t)}),"")).concat(u.slice(-1)[0],")");return"".concat(p).concat(n?" and (".concat(n,")"):"")}var f=u.length?"".concat(u.reduce((function(e,t,n){return 0===n?"((".concat(t," and "):n%2==0?"".concat(e," or (").concat(t," and "):"".concat(e).concat(t,")")}),""),")"):"(1=0)";return"".concat(f).concat(n?" and (".concat(n,")"):"")}}return"(1=1)"}},{key:"onLoaded",value:function(){M(t,"onLoaded",this,3)([]),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n,i=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];S.vF.logTraceCore("GV-ESRI-DYNAMIC - applyViewFilter");var a=this.getLayerConfig(),s=this.getOLLayer(),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,a.layerFilter=l,o&&(l=this.getViewFilter());var c=(0,r.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=C.P.applyInputDateFormat(e[0],i.getExternalFragmentsOrder(),t);n=(n=n.slice(0,20===n.length?-1:-6)).replace("T"," "),l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))})),null==s||s.getSource().updateParams({layerDefs:'{"'.concat(a.layerId,'": "').concat(l,'"}')}),null==s||s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,w.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}},{key:"getExtentFromFeatures",value:(n=(0,o.A)(f().mark((function e(t,n){var r,i,o,a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getLayerConfig(),i=(0,b.getLocalizedValue)(r.source.dataAccessPath,A.K.getDisplayLanguage(this.getMapId())),o=n.join("%2C"),!i){e.next=21;break}return i.endsWith("/")||(i+="/"),a="".concat(i).concat(r.layerId,"/query?&f=json&where=&objectIds=").concat(o,"&returnGeometry=true"),e.prev=6,e.next=9,fetch(a);case 9:return s=e.sent,e.next=12,s.json();case 12:return l=e.sent,(new m.A).readFeatures({features:l.features},{dataProjection:"EPSG:".concat(l.spatialReference.wkid),featureProjection:this.getMapViewer().getProjection().getCode()}).forEach((function(e){var t,n=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();n&&(c?(0,w.getMinOrMaxExtents)(c,n):c=n)})),e.abrupt("return",c);case 18:e.prev=18,e.t0=e.catch(6),S.vF.logError("Error fetching geometry from ".concat(a),e.t0);case 21:return e.abrupt("return",void 0);case 22:case"end":return e.stop()}}),e,this,[[6,18]])}))),function(e,t){return n.apply(this,arguments)})}]);var n,l,c}(T.z);function D(e,t,n,r){return N.apply(this,arguments)}function N(){return(N=(0,o.A)(f().mark((function e(t,n,i,o){var a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],s="".concat(n,"&resultOffset=").concat(o||i),e.prev=2,e.next=5,fetch(s);case 5:return l=e.sent,e.next=8,l.json();case 8:if(c=e.sent,a.push(c),!c.exceededTransferLimit){e.next=19;break}return e.t0=a.push,e.t1=a,e.t2=r.A,e.next=16,R(j,this,D).call(this,t,n,i,o?o+i:2*i);case 16:e.t3=e.sent,e.t4=(0,e.t2)(e.t3),e.t0.apply.call(e.t0,e.t1,e.t4);case 19:e.next=24;break;case 21:e.prev=21,e.t5=e.catch(2),S.vF.logError("Error loading additional features for ".concat(t.layerPath," from ").concat(s),e.t5);case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[2,21]])})))).apply(this,arguments)}function B(e){return e.uniqueValueStyleInfo.reduce((function(t,n){return(!1===n.visible&&!1!==e.defaultVisible||!1!==n.visible&&!1===e.defaultVisible)&&n.values.forEach((function(e,n){var r=t[n].find((function(t){return t.value===e}));r?r.nbOccurence++:t[n].push({value:e,nbOccurence:1})})),t}),e.fields.map((function(){return[]})))}function z(e,t){for(var n=e.fields.map((function(){return!0})),r=[],i=0;-1!==i;i=n.findIndex((function(e){return e}))){for(var o=t[i].reduce((function(e,t){return e+t.nbOccurence}),0),a=0;at[a].length||t[i].length===t[a].length&&o{"use strict";n.d(t,{o:()=>T});var r=n(42432),i=n(29067),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(74813),p=n.n(h),f=n(39684),g=n(76200),m=n(25079),y=n(6883),v=n(51640),b=n(79760),w=n(16775),x=n(35415),A=n(58748),S=n(77265);function C(e,t,n){return t=(0,c.A)(t),(0,l.A)(e,E()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}function k(e,t,n,r){var i=(0,u.A)((0,c.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var T=function(e){function t(e,n,r){var i;(0,a.A)(this,t),i=C(this,t,[e,n,r]);var o={source:n,properties:{layerConfig:r}};return S.z.initOptionsWithInitialSettings(o,r),i.olLayer=new f.A(o),i}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getOLLayer",value:function(){return k(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return k(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return k(t,"getLayerConfig",this,3)([])}},{key:"getFieldType",value:function(e){return(0,b.UB)(this.getLayerConfig(),e)}},{key:"getFieldDomain",value:function(e){return(0,b.k7)(this.getLayerConfig(),e)}},{key:"getLegend",value:(n=(0,o.A)(p().mark((function e(){var t,n,r,i,o,a,s,l,c,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getLayerConfig(),e.prev=1,t){e.next=4;break}return e.abrupt("return",null);case 4:return n="".concat((0,g.getLocalizedValue)(t.geoviewLayerConfig.metadataAccessPath,w.K.getDisplayLanguage(this.getMapId())),"/legend?f=json"),e.next=7,fetch(n);case 7:return r=e.sent,e.next=10,r.json();case 10:if((i=e.sent).layers&&1===i.layers.length?o=i.layers[0].legend:i.layers.length&&(a=i.layers.find((function(e){return e.layerId===t.layerId})))&&(o=a.legend),o){e.next=15;break}return s={type:v.y6.ESRI_IMAGE,styleConfig:this.getStyle(t.layerPath),legend:null},e.abrupt("return",s);case 15:return l=[],o.forEach((function(e){var t={label:e.label,values:e.label.split(","),settings:{type:"iconSymbol",mimeType:e.contentType,src:e.imageData,width:e.width,height:e.height}};l.push(t)})),c={Point:{styleType:"uniqueValue",fields:["default"],uniqueValueStyleInfo:l}},this.setStyle(t.layerPath,c),e.t0=v.y6.ESRI_IMAGE,e.t1=c,e.next=24,(0,A.qC)(this.getStyle(t.layerPath));case 24:return e.t2=e.sent,u={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",u);case 29:return e.prev=29,e.t3=e.catch(1),y.vF.logError("Get Legend for ".concat(t.layerPath," error"),e.t3),e.abrupt("return",null);case 33:case"end":return e.stop()}}),e,this,[[1,29]])}))),function(){return n.apply(this,arguments)})},{key:"onLoaded",value:function(){k(t,"onLoaded",this,3)([]),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t,n){var o=this;y.vF.logTraceCore("GV-ESRI-IMAGE - applyViewFilter",e);var a=this.getLayerConfig(),s=this.getOLLayer(),l=s.getSource();if(l){var c=t;if(a.legendFilterIsOff=!n,n&&(a.layerFilter=t),c){var u=(c=c.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),d=u[0].trim();c=u[1].trim();var h=(0,i.A)("".concat(c," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));h.reverse(),h.forEach((function(e){var t=![20,25].includes(e[0].length),n=m.P.applyInputDateFormat(e[0],o.getExternalFragmentsOrder(),t);c="".concat(c.slice(0,e.index-6)).concat(n).concat(c.slice(e.index+e[0].length+2))})),l.updateParams((0,r.A)({},d,c.replace(/\s*/g,""))),s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:c})}}}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,x.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}}]);var n}(S.z)},17102:(e,t,n)=>{"use strict";n.d(t,{V:()=>L});var r=n(55723),i=n(55907),o=n(29067),a=n(96880),s=n(13718),l=n(47280),c=n(75583),u=n(96645),d=n(6620),h=n(94270),p=n(42432),f=n(74813),g=n.n(f),m=n(34946),y=n(39684),v=n(23853),b=n(51640),w=n(76200),x=n(25079),A=n(35415),S=n(6883),C=n(16775),E=n(58748),k=n(77265);function T(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,_()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function O(e,t,n,r){var i=(0,d.A)((0,u.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function P(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var M=new WeakSet,L=function(e){function t(e,n,r,i){var o;if((0,s.A)(this,t),P(o=T(this,t,[e,n,r]),M),(0,p.A)(o,"WMSStyles",[]),!i)throw new Error("No layer capabilities were provided");var a={source:n,properties:{layerCapabilities:i,layerConfig:r}};return k.z.initOptionsWithInitialSettings(a,r),o.olLayer=new y.A(a),o}return(0,h.A)(t,e),(0,l.A)(t,[{key:"getOLLayer",value:function(){return O(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return O(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return O(t,"getLayerConfig",this,3)([])}},{key:"getFeatureInfoAtPixel",value:function(e){return this.getFeatureInfoAtCoordinate(this.getMapViewer().map.getCoordinateFromPixel(e))}},{key:"getFeatureInfoAtCoordinate",value:function(e){var t=this.getMapViewer().convertCoordinateMapProjToLngLat(e);return this.getFeatureInfoAtLongLat(t)}},{key:"getFeatureInfoAtLongLat",value:(r=(0,a.A)(g().mark((function e(n){var r,i,o,a,s,l,c,u,d,h,p,f,y,v,b,x,A,C,E,k;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.getVisible()){e.next=3;break}return e.abrupt("return",[]);case 3:if(i=this.getLayerConfig(),o=this.getMapViewer().convertCoordinateLngLatToMapProj(n),!(n[0]1)){e.next=16;break}o=0;case 8:if(!(o1?i:void 0},e.abrupt("return",n);case 32:return e.prev=32,e.t0=e.catch(0),S.vF.logError("gv-wms.getLegend()\n",e.t0),e.abrupt("return",null);case 36:case"end":return e.stop()}}),e,this,[[0,32]])}))),function(){return n.apply(this,arguments)})},{key:"setWmsStyle",value:function(e,t){var n;null===(n=this.getOLSource())||void 0===n||n.updateParams({STYLES:e})}},{key:"onLoaded",value:function(){O(t,"onLoaded",this,3)([]),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.getLayerConfig(),a=this.getOLLayer();S.vF.logTraceCore("GVWMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(i.legendFilterIsOff=!r,r&&(i.layerFilter=t),l){var c=(l=l.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),u=c[0].trim();l=c[1].trim();var d=(0,o.A)("".concat(l," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));d.reverse(),d.forEach((function(e){var t=![20,25].includes(e[0].length),r=x.P.applyInputDateFormat(e[0],n.getExternalFragmentsOrder(),t);l="".concat(l.slice(0,e.index-6)).concat(r).concat(l.slice(e.index+e[0].length+2))})),s.updateParams((0,p.A)({},u,l.replace(/\s*/g,""))),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}}},{key:"getBounds",value:function(e){var t,n=this.getLayerConfig(),r=this.getOLSource().getProjection()||void 0,o=null==n||null===(t=n.initialSettings)||void 0===t?void 0:t.bounds;o&&(o=this.getMapViewer().convertExtentFromProjToMapProj(o,"EPSG:4326"));var a,s=I(M,this,V).call(this,(null==r?void 0:r.getCode())||"");if(s){var l=(0,i.A)(s,2),c=l[0],u=l[1];a=this.getMapViewer().convertExtentFromProjToMapProj(u,c)}return o&&a&&(a=(0,A.getExtentIntersection)(a,o)),a=(0,A.validateExtentWhenDefined)(a,this.getMapViewer().getProjection().getCode())}}]);var n,r}(k.z);function R(e,t){var n=I(M,this,j).call(this,e.layerId);if(Array.isArray(null==n?void 0:n.Style)){var r,o,a=!1;if(n.Style.forEach((function(e){"default"===e.Name&&(a=!0)})),t){var s=n.Style.filter((function(e){return e.Name===t}));o=(0,i.A)(s,1)[0]}else o=null==n?void 0:n.Style.find((function(t){var n,r;return null!=e&&null!==(n=e.source)&&void 0!==n&&n.style&&!Array.isArray(null==e||null===(r=e.source)||void 0===r?void 0:r.style)?e.source.style===t.Name:a?"default"===t.Name:t.Name}));if(Array.isArray(null===(r=o)||void 0===r?void 0:r.LegendURL))return o.LegendURL.find((function(e){return"image/png"===e.Format}))||null}return null}function j(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=this.getLayerConfig().getServiceMetadata())||void 0===t||null===(t=t.Capability)||void 0===t?void 0:t.Layer;if(!n)return null;if("Name"in n&&n.Name===e)return n;if("Layer"in n){if(Array.isArray(n.Layer)){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"";Object.keys(e).forEach((function(n){if(!n.endsWith("Geometry")&&!n.startsWith("@")){var i=n.split(":").slice(-1)[0];"object"===(0,r.A)(e[n])?"#text"in e[n]?g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n]["#text"],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}:m(e[n],i):g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}}}))};(m(e),c)?(f=0,Object.keys(g.fieldInfo).filter((function(e){if(null!=c&&c.includes(e)){var t=c.indexOf(e);return g.fieldInfo[e].fieldKey=f++,g.fieldInfo[e].alias=d[t],g.fieldInfo[e].dataType=u[t],!1}return!0})).forEach((function(e){delete g.fieldInfo[e]})),h.push(g)):h.push(g);return h}function z(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}function V(e){var t,n=null===(t=this.getLayerConfig().getServiceMetadata())||void 0===t?void 0:t.Capability.Layer.BoundingBox;if(n){for(var r=0;r0)return[n[0].crs,[n[0].extent[1],n[0].extent[0],n[0].extent[3],n[0].extent[2]]]}}},79760:(e,t,n)=>{"use strict";n.d(t,{UB:()=>a,Vk:()=>o,k7:()=>s});n(74813);var r=n(23853),i=(n(6883),n(76200));function o(e,t,n){var o,a=e.getLayerMetadata().source.featureInfo,s=null===(o=(0,i.getLocalizedValue)((0,r.KX)(a.outfields),n))||void 0===o?void 0:o.split(",").indexOf(t);return s&&-1!==s?a.fieldTypes.split(",")[s]:"string"}function a(e,t){var n,r=(null===(n=e.getLayerMetadata())||void 0===n?void 0:n.fields).find((function(e){return e.name===t}));if(!r)return"string";var i=r.type;return"esriFieldTypeDate"===i?"date":["esriFieldTypeDouble","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeOID"].includes(i)?"number":"string"}function s(e,t){var n,i=(null===(n=e.getLayerMetadata())||void 0===n?void 0:n.fields).find((function(e){return e.name===t}));return i?(0,r.KX)(i.domain):null}},8637:(e,t,n)=>{"use strict";n.d(t,{p:()=>T});var r=n(42432),i=n(29067),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(67287),h=n(7725),p=n(25079),f=n(25488),g=n(16775),m=n(6883),y=n(58748),v=n(79760),b=n(45361),w=n(76200),x=n(35415);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];m.vF.logTraceCore("ABSTRACT-GV-VECTOR - applyViewFilter");var a=this.getLayerConfig(),s=this.getOLLayer(),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,o&&(a.layerFilter=t);var c=(0,i.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=p.P.applyInputDateFormat(e[0],r.getExternalFragmentsOrder(),t);l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))}));try{var u=(0,y.WN)([{nodeType:f.Z6.unprocessedNode,nodeValue:l}]);a.filterEquation=u}catch(t){throw new Error("Invalid vector layer filter (".concat(t.message,").\nfilter = ").concat(this.getLayerFilter(e),"\ninternal filter = ").concat(l))}s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}},{key:"getBounds",value:function(e){return this.getOLSource().getExtent()}},{key:"getExtentFromFeatures",value:function(e,t){var n,r=this,i=t.map((function(e){var t;return null===(t=r.getOLLayer().getSource())||void 0===t?void 0:t.getFeatureById(e)}));return i?(i.forEach((function(e){if(null!=e&&e.getGeometry()){var t,r=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();r&&(n?(0,x.getMinOrMaxExtents)(n,r):n=r)}})),Promise.resolve(n)):Promise.resolve(void 0)}},{key:"getFeaturesAsGeoJSON",value:function(){var e=this.getMapViewer().getProjection().getCode(),t=(new h.A).writeFeatures(this.getOLLayer().getSource().getFeatures(),{dataProjection:"EPSG:4326",featureProjection:e});return JSON.parse(t)}}],[{key:"calculateStyleForFeature",value:function(e,t,n,i,o,a){var s=e.getStyle(i)||{};return(0,y.nS)(t,s,n,o,a,(function(t,n){m.vF.logDebug("A new style has been created on-the-fly",t,e),e.setStyle(i,S(S({},s),(0,r.A)({},t,n)))}))}}])}(b.Z)},11173:(e,t,n)=>{"use strict";n.d(t,{M:()=>I});var r=n(96880),i=n(13718),o=n(47280),a=n(42432),s=n(74813),l=n.n(s),c=n(2358),u=n(76200),d=n(40215),h=n(16775),p=n(73611),f=n(41538),g=n(4401),m=n(96734),y=n(8637),v=n(17102),b=n(6883);function w(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function A(e,t){return e.get(C(e,t))}function S(e,t,n){return e.set(C(e,t),n),n}function C(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,k=new WeakMap,T=new WeakMap,_=new WeakMap,O=new WeakMap,P=new WeakSet,I=function(){return(0,o.A)((function e(t){var n,r;(0,i.A)(this,e),x(n=this,r=P),r.add(n),(0,a.A)(this,"layerApi",void 0),(0,a.A)(this,"resultSet",{}),w(this,E,!1),w(this,k,[]),w(this,T,[]),w(this,_,void 0),w(this,O,void 0),this.layerApi=t,S(_,this,C(P,this,L).bind(this)),S(O,this,C(P,this,R).bind(this))}),[{key:"getMapId",value:function(){return this.layerApi.getMapId()}},{key:"registerLayerConfig",value:function(e){this.onRegisterLayerConfigCheck(e)&&!(e.layerPath in this.resultSet)&&(this.onRegisterLayerConfig(e),this.onPropagateToStore(this.resultSet[e.layerPath],"config-registration"),this.onLayerSetUpdatedProcess(e.layerPath)),C(P,this,M).call(this,e)}},{key:"onRegisterLayerConfigCheck",value:function(e){return A(E,this)}},{key:"onRegisterLayerConfig",value:function(e){this.resultSet[e.layerPath]={layerPath:e.layerPath,layerStatus:e.layerStatus,layerName:(0,u.getLocalizedValue)(e.layerName,h.K.getDisplayLanguage(this.getMapId()))},e.onLayerStatusChanged(A(_,this))}},{key:"registerLayer",value:(e=(0,r.A)(l().mark((function e(t,n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.whenThisThen)((function(){return"loaded"===t.getLayerStatus(n)}),2e4);case 2:if(!A(k,this).includes(n)){e.next=4;break}return e.abrupt("return");case 4:this.onRegisterLayerCheck(t,n)&&(this.onRegisterLayer(t,n),this.onPropagateToStore(this.resultSet[n],"layer-registration"),this.onLayerSetUpdatedProcess(n));case 5:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"onRegisterLayerCheck",value:function(e,t){var n;return"group"!==(null===(n=this.layerApi.getGeoviewLayerHybrid(t))||void 0===n||null===(n=n.getLayerConfig(t))||void 0===n?void 0:n.entryType)}},{key:"onRegisterLayer",value:function(e,t){var n=(0,u.getLocalizedValue)(e.getLayerName(t),h.K.getDisplayLanguage(this.getMapId()));t in this.resultSet?(this.resultSet[t].layerStatus=e.getLayerStatus(t),this.resultSet[t].layerName=n):this.resultSet[t]={layerPath:t,layerStatus:e.getLayerStatus(t),layerName:n},A(k,this).push(t),e.onLayerNameChanged(A(O,this))}},{key:"unregister",value:function(e){this.onUnregisterLayerConfig(this.layerApi.getLayerEntryConfig(e)),this.onUnregisterLayer(this.layerApi.getGeoviewLayerHybrid(e)),this.onDeleteFromStore(e),delete this.resultSet[e],this.onLayerSetUpdatedProcess(e)}},{key:"onUnregisterLayerConfig",value:function(e){null==e||e.offLayerStatusChanged(A(_,this))}},{key:"onUnregisterLayer",value:function(e){null==e||e.offLayerNameChanged(A(O,this))}},{key:"onProcessLayerStatusChanged",value:function(e,t){this.resultSet[e.layerPath].layerStatus=t,this.resultSet[e.layerPath].layerName=(0,u.getLocalizedValue)(e.layerName||e.geoviewLayerConfig.geoviewLayerName,h.K.getDisplayLanguage(this.getMapId()))}},{key:"onProcessNameChanged",value:function(e,t){this.resultSet[e].layerName=t}},{key:"onLayerSetUpdatedProcess",value:function(e){C(P,this,j).call(this,{layerPath:e,resultSet:this.resultSet})}},{key:"onLayerSetUpdated",value:function(e){c.A.onEvent(A(T,this),e)}},{key:"offLayerSetUpdated",value:function(e){c.A.offEvent(A(T,this),e)}}],[{key:"queryLayerFeatures",value:function(e,t,n,r){return t.getFeatureInfo(n,e.layerPath,r)}},{key:"isQueryableType",value:function(e){return e instanceof f.W||e instanceof y.p||e instanceof p.zt||e instanceof m.Y||e instanceof g.GB||e instanceof v.V}},{key:"isSourceQueryable",value:function(e,t){var n;return!(!1===(null===(n=e.getLayerConfig(t))||void 0===n||null===(n=n.source)||void 0===n||null===(n=n.featureInfo)||void 0===n?void 0:n.queryable))}},{key:"isStateQueryable",value:function(e,t){var n;return!(!1===(null===(n=e.getLayerConfig(t))||void 0===n||null===(n=n.initialSettings)||void 0===n||null===(n=n.states)||void 0===n?void 0:n.queryable))}}]);var e}();function M(e){var t=this;e.onLayerStatusChanged((function(){try{if("loaded"===e.layerStatus){if(e.parentLayerConfig){var n=e.parentLayerConfig.listOfLayerEntryConfig.map((function(e){return t.layerApi.getLayerEntryConfig(e.layerPath)})).filter((function(e){return e}));if(d.c.allLayerStatusAreGreaterThanOrEqualTo("loaded",n)){var r=t.layerApi.getLayerEntryConfig(e.parentLayerConfig.layerPath);r&&(r.layerStatus="loaded")}}var i=t.layerApi.getGeoviewLayerHybrid(e.layerPath);i&&t.registerLayer(i,e.layerPath).catch((function(e){b.vF.logPromiseFailed("in registerLayer in registerLayerConfig",e)}))}}catch(e){b.vF.logError("Error trying to register the layer coming from the layer config",e)}}))}function L(e,t){try{this.onProcessLayerStatusChanged(e,t.layerStatus),this.resultSet[e.layerPath]&&this.onPropagateToStore(this.resultSet[e.layerPath],"layerStatus"),this.onLayerSetUpdatedProcess(e.layerPath)}catch(t){b.vF.logError("CAUGHT in handleLayerStatusChanged",e.layerPath,t)}}function R(e,t){try{this.resultSet[t.layerPath]&&(this.onProcessNameChanged(t.layerPath,(0,u.getLocalizedValue)(t.layerName,h.K.getDisplayLanguage(this.getMapId()))),this.onPropagateToStore(this.resultSet[t.layerPath],"layerName"),this.onLayerSetUpdatedProcess(t.layerPath))}catch(e){b.vF.logError("CAUGHT in handleLayerStatusChanged",t.layerPath,e)}}function j(e){c.A.emitEvent(this,A(T,this),e)}},34156:(e,t,n)=>{"use strict";n.d(t,{P:()=>C});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(75687),p=n(51640),f=n(45361),g=n(4401),m=n(17102),y=n(11173);function v(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,b()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function x(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function A(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var S=new WeakSet,C=function(e){function t(){var e;(0,i.A)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==a[1]?a[1]:"all",!this.resultSet[t]){e.next=21;break}if(this.resultSet[t].eventListenerEnabled){e.next=4;break}return e.abrupt("return",Promise.resolve());case 4:if(!(r=this.layerApi.getGeoviewLayerHybrid(t))||!(r instanceof p.qt||r instanceof f.Z)){e.next=18;break}if(y.M.isStateQueryable(r,t)){e.next=8;break}return e.abrupt("return",Promise.resolve());case 8:return this.resultSet[t].queryStatus="processing",A(S,this,E).call(this,this.resultSet[t]),i=y.M.queryLayerFeatures(this.resultSet[t],r,n,t),e.next=13,i;case 13:o=e.sent,this.resultSet[t].features=o,this.resultSet[t].queryStatus=o?"processed":"error",e.next=20;break;case 18:this.resultSet[t].features=null,this.resultSet[t].queryStatus="error";case 20:A(S,this,E).call(this,this.resultSet[t]);case 21:return e.abrupt("return",this.resultSet);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n}(y.M);function E(e){"loaded"===e.layerStatus&&h.F.propagateFeatureInfoToStore(this.getMapId(),e)}},20146:(e,t,n)=>{"use strict";n.d(t,{I:()=>T});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(33663),p=n(2358),f=n(6883),g=n(51640),m=n(45361),y=n(11173),v=n(76200);function b(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,w()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function x(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function A(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t){return e.get(C(e,t))}function C(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,k=new WeakSet,T=function(e){function t(e){var n,r,o;return(0,i.A)(this,t),n=b(this,t,[e]),A(r=n,o=k),o.add(r),function(e,t,n){A(e,t),t.set(e,n)}(n,E,[]),n.layerApi.mapViewer.onMapSingleClick((function(e,t){n.queryLayers(t.lnglat).catch((function(e){f.vF.logPromiseFailed("queryLayers in onMapSingleClick in FeatureInfoLayerSet",e)}))})),n}return(0,c.A)(t,e),(0,o.A)(t,[{key:"onRegisterLayerCheck",value:function(e,n){return x(t,"onRegisterLayerCheck",this,3)([e,n])&&y.M.isQueryableType(e)&&y.M.isSourceQueryable(e,n)}},{key:"onRegisterLayer",value:function(e,n){x(t,"onRegisterLayer",this,3)([e,n]),this.resultSet[n].eventListenerEnabled=!0,this.resultSet[n].queryStatus="processed",this.resultSet[n].features=[]}},{key:"onPropagateToStore",value:function(e,t){C(k,this,_).call(this,e,"layerName"===t?"name":"click")}},{key:"onDeleteFromStore",value:function(e){h.h.deleteFeatureInfo(this.getMapId(),e)}},{key:"queryLayers",value:(n=(0,r.A)(d().mark((function e(t){var n,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],Object.keys(this.resultSet).forEach((function(e){if(r.resultSet[e].eventListenerEnabled){var i=r.layerApi.getGeoviewLayerHybrid(e);if(i&&(i instanceof g.qt||i instanceof m.Z)){if(!y.M.isStateQueryable(i,e))return;r.resultSet[e].features=void 0,r.resultSet[e].queryStatus="processing",C(k,r,_).call(r,r.resultSet[e]);var o=y.M.queryLayerFeatures(r.resultSet[e],i,"at_long_lat",t);n.push(o),o.then((function(t){null!=t&&t.length&&r.patchMissingMetadataIfNecessary(e,t[0]),r.resultSet[e].features=t,r.resultSet[e].queryStatus=t?"processed":"error",C(k,r,_).call(r,r.resultSet[e])})).catch((function(e){f.vF.logPromiseFailed("queryLayerFeatures in queryLayers in FeatureInfoLayerSet",e)}))}else r.resultSet[e].features=null,r.resultSet[e].queryStatus="error"}})),e.next=5,Promise.allSettled(n);case 5:return C(k,this,P).call(this,{coordinate:t,resultSet:this.resultSet,eventType:"click"}),e.abrupt("return",this.resultSet);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"enableClickListener",value:function(e){var t=this;e?C(k,this,O).call(this,e,!0):Object.keys(this.resultSet).forEach((function(e){C(k,t,O).call(t,e,!0)}))}},{key:"disableClickListener",value:function(e){var t=this;e?C(k,this,O).call(this,e,!1):Object.keys(this.resultSet).forEach((function(e){C(k,t,O).call(t,e,!1)}))}},{key:"isClickListenerEnabled",value:function(e){var t,n,r=this;return e?!(null===(t=this.resultSet)||void 0===t||null===(t=t[e])||void 0===t||!t.eventListenerEnabled):(Object.keys(this.resultSet).forEach((function(e,t){0===t&&(n=r.resultSet[e].eventListenerEnabled),n!==r.resultSet[e].eventListenerEnabled&&(n=void 0)})),n)}},{key:"patchMissingMetadataIfNecessary",value:function(e,t){var n,r=this.layerApi.getLayerEntryConfig(e);r.source||(r.source={}),null!==(n=r.source)&&void 0!==n&&n.featureInfo||(r.source.featureInfo={queryable:!0});var i=r.source.featureInfo;if(!i.outfields){var o,a,s=Object.keys(t.fieldInfo);i.outfields=(0,v.createLocalizedString)(s.join(","));var l=[];s.forEach((function(e){var n;null!==(n=t.fieldInfo[e])&&void 0!==n&&n.alias&&l.push(t.fieldInfo[e].alias)}));var c=l.join(",");null!==(o=i.aliasFields)&&void 0!==o&&null!==(o=o.en)&&void 0!==o&&o.split(",").length||c.length!==s.length?null!==(a=i.aliasFields)&&void 0!==a&&null!==(a=a.en)&&void 0!==a&&a.split(",").length||(i.aliasFields=i.outfields):i.aliasFields=(0,v.createLocalizedString)(c);var u=s.map((function(e){var n;if(null!==(n=t.fieldInfo[e])&&void 0!==n&&n.dataType)return t.fieldInfo[e].dataType}));i.fieldTypes=u.join(",")}}},{key:"onQueryEnded",value:function(e){p.A.onEvent(S(E,this),e)}},{key:"offQueryEnded",value:function(e){p.A.offEvent(S(E,this),e)}}]);var n}(y.M);function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click";h.h.propagateFeatureInfoToStore(this.getMapId(),t,e).catch((function(e){f.vF.logPromiseFailed("FeatureInfoEventProcessor.propagateToStore in FeatureInfoLayerSet",e)}))}function O(e,t){this.resultSet[e].eventListenerEnabled=t,this.resultSet[e].features=[],C(k,this,_).call(this,this.resultSet[e])}function P(e){p.A.emitEvent(this,S(E,this),e)}},83907:(e,t,n)=>{"use strict";n.d(t,{E:()=>x});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(44481),u=n.n(c),d=n(6883),h=n(51640),p=n(45361),f=n(4401),g=n(17102),m=n(11173),y=n(27991);function v(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,b()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var x=function(e){function t(e){var n;return(0,r.A)(this,t),n=v(this,t,[e]),e.mapViewer.onMapPointerMove(u()((function(e,t){n.queryLayers(t.pixel)}),750).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"onRegisterLayerCheck",value:function(e,n){return w(t,"onRegisterLayerCheck",this,3)([e,n])&&m.M.isQueryableType(e)&&!(e instanceof f.GB)&&!(e instanceof g.V)&&m.M.isSourceQueryable(e,n)}},{key:"onRegisterLayer",value:function(e,n){w(t,"onRegisterLayer",this,3)([e,n]),this.resultSet[n].eventListenerEnabled=!0,this.resultSet[n].queryStatus="processed",this.resultSet[n].feature=void 0}},{key:"onPropagateToStore",value:function(e,t){}},{key:"onDeleteFromStore",value:function(e){}},{key:"queryLayers",value:function(e){var t=this;Object.keys(this.resultSet).forEach((function(n){if(t.resultSet[n].eventListenerEnabled){var r=t.layerApi.getGeoviewLayerHybrid(n);if(r&&(r instanceof h.qt||r instanceof p.Z)){if(!m.M.isStateQueryable(r,n))return;t.resultSet[n].feature=void 0,t.resultSet[n].queryStatus="init",y.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature),m.M.queryLayerFeatures(t.resultSet[n],r,"at_pixel",e).then((function(e){if(null===e)t.resultSet[n].queryStatus="error",t.resultSet[n].feature=null;else{if(null!=e&&e.length){var r=e[0].nameField||Object.entries(e[0].fieldInfo)[0],i=e[0].fieldInfo[r];t.resultSet[n].feature={featureIcon:e[0].featureIcon,fieldInfo:i,geoviewLayerType:e[0].geoviewLayerType,nameField:r}}else t.resultSet[n].feature=void 0;t.resultSet[n].queryStatus="processed"}y.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature)})).catch((function(e){d.vF.logPromiseFailed("queryLayerFeatures in queryLayers in hoverFeatureInfoLayerSet",e)}))}else t.resultSet[n].feature=null,t.resultSet[n].queryStatus="error",y.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature)}}))}},{key:"enableHoverListener",value:function(e){var t=this;e?this.resultSet[e].eventListenerEnabled=!0:Object.keys(this.resultSet).forEach((function(e){t.resultSet[e].eventListenerEnabled=!0}))}},{key:"disableHoverListener",value:function(e){var t=this;e?this.resultSet[e].eventListenerEnabled=!1:Object.keys(this.resultSet).forEach((function(e){t.resultSet[e].eventListenerEnabled=!1}))}},{key:"isHoverListenerEnabled",value:function(e){var t,n,r=this;return e?!(null===(t=this.resultSet)||void 0===t||null===(t=t[e])||void 0===t||!t.eventListenerEnabled):(Object.keys(this.resultSet).forEach((function(e,t){0===t&&(n=r.resultSet[e].eventListenerEnabled),n!==r.resultSet[e].eventListenerEnabled&&(n=void 0)})),n)}}])}(m.M)},60543:(e,t,n)=>{"use strict";n.d(t,{C:()=>x});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(59155),u=n(6883),d=n(11173),h=n(51640),p=n(45361);function f(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,g()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var b=new WeakMap,w=new WeakSet,x=function(e){function t(e){var n,i,o;return(0,r.A)(this,t),n=f(this,t,[e]),y(i=n,o=w),o.add(i),function(e,t,n){y(e,t),t.set(e,n)}(n,b,void 0),function(e,t,n){e.set(v(e,t),n)}(b,n,v(w,n,E).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"onRegisterLayerConfigCheck",value:function(e){return!0}},{key:"onRegisterLayerCheck",value:function(e,t){return!0}},{key:"onRegisterLayerConfig",value:function(e){m(t,"onRegisterLayerConfig",this,3)([e]),this.resultSet[e.layerPath].legendQueryStatus="init",v(w,this,S).call(this,e.layerPath,!1)}},{key:"onRegisterLayer",value:function(e,n){var r,i;m(t,"onRegisterLayer",this,3)([e,n]),(e instanceof h.qt||e instanceof p.Z)&&e.onLayerStyleChanged((i=this,(r=b).get(v(r,i))))}},{key:"onProcessLayerStatusChanged",value:function(e,n){m(t,"onProcessLayerStatusChanged",this,3)([e,n]),v(w,this,S).call(this,e.layerPath,!1)}},{key:"onPropagateToStore",value:function(e,t){v(w,this,A).call(this,e)}},{key:"onDeleteFromStore",value:function(e){c.K.deleteLayerFromLegendLayers(this.getMapId(),e)}}])}(d.M);function A(e){c.K.propagateLegendToStore(this.getMapId(),e)}function S(e,t){var n=this,r=this.layerApi.getGeoviewLayerHybrid(e),i=null==r?void 0:r.getLayerConfig(e);if(r&&i&&(r instanceof h.qt||r instanceof p.Z)&&"querying"!==this.resultSet[e].legendQueryStatus&&(v(w,this,C).call(this,i)||t)){this.resultSet[e].legendQueryStatus="querying",v(w,this,A).call(this,this.resultSet[e]);var o=r.queryLegend(e);null==o||o.then((function(t){t&&(n.resultSet[e].legendQueryStatus="queried",n.resultSet[e].data=t,v(w,n,A).call(n,n.resultSet[e]),n.onLayerSetUpdatedProcess(e))})).catch((function(e){u.vF.logPromiseFailed("legendPromise in #checkQueryLegend in LegendsLayerSet",e)}))}}function C(e){return!(null==e||!e.isGreaterThanOrEqualTo("processed"))&&"init"===this.resultSet[e.layerPath].legendQueryStatus}function E(e,t){v(w,this,S).call(this,t.layerPath,!0)}},78861:(e,t,n)=>{"use strict";n.d(t,{A:()=>jt});var r=n(96880),i=n(29067),o=n(13718),a=n(47280),s=n(42432),l=n(74813),c=n.n(l),u=n(88752),d=n(69341),h=n(97446),p=n(47031),f=n(33069),g=n(15877),m=n(37013),y=n(46850),v=n(96997),b=n(34775),w=n(27991),x=n(26323),A=n(76200),S=n(6883),C=n(51640),E=n(2265),k=n(85849),T=n(44894),_=n(4401),O=n(73611),P=n(42942),I=n(34119),M=n(65372),L=n(66582),R=n(4078),j=n(93555),F=n(92187),D=n(41506),N=n(83907),B=n(34156),z=n(60543),V=n(20146),$=n(46363),G=n(35415),U=n(2358),W=n(68705),q=n(9145),H=n(54497),Y=n(50570),K=n(42930),X=n(45361),Z=n(96734),J=n(57366),Q=n(75583),ee=n(96645),te=n(6620),ne=n(94270),re=n(39684),ie=n(34946),oe=n(23853),ae=n(16775),se=n(58748),le=n(77265);function ce(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,ue()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ue=function(){return!!e})()}function de(e,t,n,r){var i=(0,te.A)((0,ee.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function he(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function pe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var fe=new WeakSet,ge=function(e){function t(e,n,r){var i;(0,o.A)(this,t),he(i=ce(this,t,[e,n,r]),fe);var a={source:n};return le.z.initOptionsWithInitialSettings(a,r),i.olLayer=new re.A(a),i}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return de(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return de(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return de(t,"getLayerConfig",this,3)([])}},{key:"getLegend",value:(n=(0,r.A)(c().mark((function e(){var t,n,r,i,o,a,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getLayerConfig(),e.prev=1,e.next=4,pe(fe,this,me).call(this,t);case 4:if(n=e.sent){e.next=8;break}return r={type:C.y6.IMAGE_STATIC,legend:null},e.abrupt("return",r);case 8:return e.next=10,(0,se.yt)(n);case 10:if(!(i=e.sent)){e.next=19;break}return(o=document.createElement("canvas")).width=i.width,o.height=i.height,o.getContext("2d").drawImage(i,0,0),a={type:C.y6.IMAGE_STATIC,legend:o},e.abrupt("return",a);case 19:return s={type:C.y6.IMAGE_STATIC,legend:null},e.abrupt("return",s);case 23:return e.prev=23,e.t0=e.catch(1),S.vF.logError("Error getting legend for ".concat(t.layerPath),e.t0),e.abrupt("return",null);case 27:case"end":return e.stop()}}),e,this,[[1,23]])}))),function(){return n.apply(this,arguments)})},{key:"getBounds",value:function(e){var t,n=this.getOLSource().getProjection()||void 0,r=null===(t=this.getOLSource())||void 0===t?void 0:t.getImageExtent();return r&&(r=this.getMapViewer().convertExtentFromProjToMapProj(r,n)),r}}]);var n}(le.z);function me(e){var t=this;return new Promise((function(n){var r=(0,A.getLocalizedValue)(e.source.dataAccessPath,ae.K.getDisplayLanguage(t.getMapId()));r?(r=r.toLowerCase().startsWith("http:")?"https".concat(r.slice(4)):r,ie.A.get(r,{responseType:"blob",withCredentials:!1}).then((function(e){var t;n((t=(0,oe.KX)(e.data),new Promise((function(e){var n=new FileReader;n.onloadend=function(){return e(n.result)},n.onerror=function(){return e(null)},n.readAsDataURL(t)}))))})).catch((function(){return n(null)}))):n(null)}))}var ye=n(17102),ve=n(90932);function be(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,we()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function we(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(we=function(){return!!e})()}var xe=function(e){function t(){return(0,o.A)(this,t),be(this,t,arguments)}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(e=t,n="getOLLayer",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}}])}(X.Z),Ae=n(79760);function Se(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Ce()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ce=function(){return!!e})()}function Ee(e,t,n,r){var i=(0,te.A)((0,ee.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var ke=function(e){function t(e,n,r){var i;(0,o.A)(this,t),i=Se(this,t,[e,n,r]);var a={source:n};return xe.initOptionsWithInitialSettings(a,r),i.olLayer=new ve.A(a),i}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return Ee(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return Ee(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return Ee(t,"getLayerConfig",this,3)([])}},{key:"getFieldType",value:function(e){return(0,Ae.Vk)(this.getLayerConfig(),e,ae.K.getDisplayLanguage(this.getMapId()))}},{key:"getBounds",value:function(e){var t,n,r=this.getOLLayer(),i=(null===(t=this.getOLSource())||void 0===t?void 0:t.getProjection())||void 0,o=null==r||null===(n=r.getSource())||void 0===n||null===(n=n.getTileGrid())||void 0===n?void 0:n.getExtent();return o&&(o=this.getMapViewer().convertExtentFromProjToMapProj(o,i),o=(0,G.validateExtent)(o,this.getMapViewer().getProjection().getCode())),o}}])}(xe),Te=n(8637);function _e(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Oe()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Oe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oe=function(){return!!e})()}var Pe=function(e){function t(e,n,r){return(0,o.A)(this,t),_e(this,t,[e,n,r])}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(e=t,n="getLayerConfig",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}},{key:"getFieldType",value:function(e){return(0,Ae.UB)(this.getLayerConfig(),e)}},{key:"getFieldDomain",value:function(e){return(0,Ae.k7)(this.getLayerConfig(),e)}}])}(Te.p);function Ie(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Me()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Me=function(){return!!e})()}var Le=function(e){function t(e,n,r){return(0,o.A)(this,t),Ie(this,t,[e,n,r])}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(e=t,n="getLayerConfig",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}}])}(Te.p);function Re(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,je()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(je=function(){return!!e})()}var Fe=function(e){function t(e,n,r){return(0,o.A)(this,t),Re(this,t,[e,n,r])}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(e=t,n="getLayerConfig",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}},{key:"getFieldType",value:function(e){var t=this.getLayerConfig().getLayerMetadata()[e].type.split(":").slice(-1)[0];return"date"===t?"date":["int","number"].includes(t)?"number":"string"}}])}(Te.p),De=n(77796);function Ne(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Be()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Be=function(){return!!e})()}function ze(e,t,n,r){var i=(0,te.A)((0,ee.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ve=function(e){function t(){return(0,o.A)(this,t),Ne(this,t,arguments)}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return ze(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return ze(t,"getOLSource",this,3)([])}},{key:"getBounds",value:function(e){var t,n=this.getOLSource().getProjection()||void 0,r=null===(t=this.getOLSource().getTileGrid())||void 0===t?void 0:t.getExtent();return r&&(r=this.getMapViewer().convertExtentFromProjToMapProj(r,n),r=(0,G.validateExtent)(r,this.getMapViewer().getProjection().getCode())),r}}])}(X.Z);function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Ue()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ue=function(){return!!e})()}var We=function(e){function t(e,n,r){var i;(0,o.A)(this,t),i=Ge(this,t,[e,n,r]);var a={source:n};return Ve.initOptionsWithInitialSettings(a,r),i.olLayer=new De.A(function(e){for(var t=1;t0;return this.getGeoviewLayers().forEach((function(t){t.allLayerStatusAreGreaterThanOrEqualTo(e)||(null==n||n(t),r=!1)})),[r,Object.keys(bt(Ct,this)).length]}},{key:"checkFeatureInfoLayerResultSetsReady",value:function(e){var t=this,n=!0;return this.getLayerEntryConfigs().forEach((function(r){var i;if(r instanceof K.d&&null!==(i=r.source)&&void 0!==i&&null!==(i=i.featureInfo)&&void 0!==i&&i.queryable){var o=t.featureInfoLayerSet.resultSet;Object.keys(o).includes(r.layerPath)||(null==e||e(r),n=!1)}})),n}},{key:"removeAllGeoviewLayers",value:function(){var e=this;this.getGeoviewLayersHybrid().forEach((function(t){e.removeLayerUsingPath(t.getGeoviewLayerId())}))}},{key:"removeLayerUsingPath",value:function(e){var t,n,r=this,i=e.split("/"),o=bt(St,this)[e]?null===(t=bt(St,this)[e].parentLayerConfig)||void 0===t?void 0:t.listOfLayerEntryConfig.findIndex((function(t){return t===bt(St,r)[e]})):void 0,a=null===(n=bt(St,this)[e])||void 0===n||null===(n=n.parentLayerConfig)||void 0===n?void 0:n.listOfLayerEntryConfig;if(this.getLayerEntryConfigIds().forEach((function(t){t.startsWith(e)&&(r.getOLLayer(t)&&r.mapViewer.map.removeLayer(r.getOLLayer(t)),r.unregisterLayerConfig(r.getLayerEntryConfig(t)),delete bt(St,r)[e])})),a&&a.splice(o,1),bt(Ct,this)[i[0]]){var s=bt(Ct,this)[i[0]];if(1===i.length||2===i.length&&1===s.listOfLayerEntryConfig.length){var l;null===(l=s.olRootLayer)||void 0===l||l.dispose(),delete bt(Ct,this)[i[0]];var c=this.mapViewer.mapFeaturesConfig;c.map.listOfGeoviewLayerConfig&&(c.map.listOfGeoviewLayerConfig=c.map.listOfGeoviewLayerConfig.filter((function(t){return t.geoviewLayerId!==e})))}else if(2===i.length){var u=s.listOfLayerEntryConfig.filter((function(e){return e.layerId!==i[1]}));s.listOfLayerEntryConfig=u}else for(var d=s.listOfLayerEntryConfig.find((function(e){return e.layerId===i[1]})),h=function(e){if(e===i.length-1&&d){var t=d.listOfLayerEntryConfig.filter((function(t){return t.layerId!==i[e]}));s.listOfLayerEntryConfig=t}else d&&(d=d.listOfLayerEntryConfig.find((function(t){return t.layerId===i[e]})))},p=1;p0&&void 0!==arguments[0]?arguments[0]:Object.keys(bt(St,this)),n=[];return t.forEach((function(t){Object.keys(bt(St,e)).filter((function(e){return e.startsWith(t)})).forEach((function(t){var r=gt.K.getLayerBounds(e.getMapId(),t);!n.length&&r?n=r:r&&(n=(0,G.getMinOrMaxExtents)(n,r))}))})),n}},{key:"refreshLayers",value:function(){var e=this;this.getGeoviewLayers().forEach((function(t){t.olRootLayer&&e.refreshBaseLayer(t.olRootLayer)}))}},{key:"refreshBaseLayer",value:function(e){var t=this,n=e.get("layers");n?n.forEach((function(e){t.refreshBaseLayer(e)})):e.get("source").refresh()}},{key:"setItemVisibility",value:function(e,t,n){var r,i,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.getGeoviewLayerHybrid(e);if(n&&!w.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),e)&&w.d.setOrToggleMapLayerVisibility(this.getMapId(),e,!0),a instanceof C.qt||a instanceof X.Z)if("classBreaks"===(null==a||null===(r=a.getStyle(e))||void 0===r||null===(r=r[t.geometryType])||void 0===r?void 0:r.styleType)){var s=a.getStyle(e)[t.geometryType],l=s.classBreakStyleInfo.find((function(e){return e.label===t.name}));l?l.visible=n:s.defaultVisible=n}else if("uniqueValue"===(null==a||null===(i=a.getStyle(e))||void 0===i||null===(i=i[t.geometryType])||void 0===i?void 0:i.styleType)){var c=a.getStyle(e)[t.geometryType],u=c.uniqueValueStyleInfo.find((function(e){return e.label===t.name}));u?u.visible=n:c.defaultVisible=n}o&>.K.setItemVisibility(this.getMapId(),t,n),w.d.applyLayerFilters(this.getMapId(),e),xt(Rt,this,nn).call(this,{layerPath:e,itemName:t.name,visibility:n})}},{key:"setAllLayersVisibility",value:function(e){var t=this;this.getLayerEntryConfigIds().forEach((function(n){t.setOrToggleLayerVisibility(n,e)}))}},{key:"setOrToggleLayerVisibility",value:function(e,t){var n=this,r=w.d.getMapOrderedLayerInfo(this.getMapId()),i=w.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),e),o=void 0!==t?t:!i,a=r.filter((function(t){return t.layerPath.startsWith(e)})),s=e.split("/");s.pop();var l=s.join("/"),c=r.find((function(e){return e.layerPath===l}));if(a.forEach((function(e){var t;e&&(o!==i&&(e.visible=o,null===(t=n.getGeoviewLayerHybrid(e.layerPath))||void 0===t||t.setVisible(e.visible,e.layerPath),xt(Rt,n,tn).call(n,{layerPath:e.layerPath,visibility:e.visible})))})),void 0!==c){var u,d=w.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),l);if((!i||t)&&!1===d)if(c)c.visible=!0,null===(u=this.getGeoviewLayerHybrid(l))||void 0===u||u.setVisible(!0,l),xt(Rt,this,tn).call(this,{layerPath:l,visibility:!0});r.filter((function(e){return e.layerPath.startsWith(l)&&e.layerPath!==l})).some((function(e){return!0===e.visible}))||(this.setOrToggleLayerVisibility(l,!1),xt(Rt,this,tn).call(this,{layerPath:e,visibility:!1}))}w.d.setOrderedLayerInfoWithNoOrderChangeState(this.getMapId(),r)}},{key:"setLayerName",value:function(e,t){var n=this.getGeoviewLayerHybrid(e);n?n.setLayerName(e,(0,A.createLocalizedString)(t)):S.vF.logError("Unable to find layer ".concat(e))}},{key:"redefineFeatureFields",value:function(e,t,n){var r,i=bt(St,this)[e];i?null!==(r=i.source)&&void 0!==r&&r.featureInfo&&!1!==i.source.featureInfo.queryable?i.source.featureInfo[n]=(0,A.createLocalizedString)(t):S.vF.logError("".concat(e," is not queryable")):S.vF.logError("Unable to find layer ".concat(e))}},{key:"calculateBounds",value:function(e){var t,n=this.getLayerEntryConfig(e),r=[];return n&&xt(Rt,this,Kt).call(this,n,r),r.forEach((function(e){t=(0,G.getExtentUnionMaybe)(t,e)})),t}},{key:"onLayerAdded",value:function(e){U.A.onEvent(bt(_t,this),e)}},{key:"offLayerAdded",value:function(e){U.A.offEvent(bt(_t,this),e)}},{key:"onLayerLoaded",value:function(e){U.A.onEvent(bt(Ot,this),e)}},{key:"offLayerLoaded",value:function(e){U.A.offEvent(bt(Ot,this),e)}},{key:"onLayerError",value:function(e){U.A.onEvent(bt(Pt,this),e)}},{key:"offLayerError",value:function(e){U.A.offEvent(bt(Pt,this),e)}},{key:"onLayerRemoved",value:function(e){U.A.onEvent(bt(It,this),e)}},{key:"offLayerRemoved",value:function(e){U.A.offEvent(bt(It,this),e)}},{key:"onLayerVisibilityToggled",value:function(e){U.A.onEvent(bt(Mt,this),e)}},{key:"offLayerVisibilityToggled",value:function(e){U.A.offEvent(bt(Mt,this),e)}},{key:"onLayerItemVisibilityToggled",value:function(e){U.A.onEvent(bt(Lt,this),e)}},{key:"offLayerItemVisibilityToggled",value:function(e){U.A.offEvent(bt(Lt,this),e)}}],[{key:"generateArrayOfLayerOrderInfo",value:function(e){var t=[],n=function(e,r){var i,o,a,s,l,c,u,d,h,p=r.endsWith(e.layerId)?r:"".concat(r,"/").concat(e.layerId),f={layerPath:p,visible:!1!==(null===(i=e.initialSettings)||void 0===i||null===(i=i.states)||void 0===i?void 0:i.visible),queryable:void 0===(null===(o=e.source)||void 0===o||null===(o=o.featureInfo)||void 0===o?void 0:o.queryable)||(null===(a=e.source)||void 0===a||null===(a=a.featureInfo)||void 0===a?void 0:a.queryable),hoverable:void 0===(null===(s=e.initialSettings)||void 0===s||null===(s=s.states)||void 0===s?void 0:s.hoverable)||(null===(l=e.initialSettings)||void 0===l||null===(l=l.states)||void 0===l?void 0:l.hoverable),legendCollapsed:void 0!==(null===(c=e.initialSettings)||void 0===c||null===(c=c.states)||void 0===c?void 0:c.legendCollapsed)&&(null===(u=e.initialSettings)||void 0===u||null===(u=u.states)||void 0===u?void 0:u.legendCollapsed)};(t.push(f),null!==(d=e.listOfLayerEntryConfig)&&void 0!==d&&d.length)&&(null===(h=e.listOfLayerEntryConfig)||void 0===h||h.forEach((function(e){n(e,p)})))};if(e.geoviewLayerId)if(e.listOfLayerEntryConfig.length>1){var r,i,o,a="".concat(e.geoviewLayerId,"/").concat(e.geoviewLayerId),s={layerPath:a,legendCollapsed:void 0!==(null===(r=e.initialSettings)||void 0===r||null===(r=r.states)||void 0===r?void 0:r.legendCollapsed)&&(null===(i=e.initialSettings)||void 0===i||null===(i=i.states)||void 0===i?void 0:i.legendCollapsed),visible:!1!==(null===(o=e.initialSettings)||void 0===o||null===(o=o.states)||void 0===o?void 0:o.visible)};t.push(s),e.listOfLayerEntryConfig.forEach((function(e){n(e,a)}))}else{var l=e.listOfLayerEntryConfig[0];n(l,l.layerPath)}else n(e,e.layerPath);return t}}]);var t}();function Ft(e){var t=this;return e&&e.length>0?e.filter((function(n,r){for(var i=0;ii)return xt(Rt,t,Dt).call(t,n),!1;return!0})):[]}function Dt(e){W.FHQ.maps[this.getMapId()].notifications.showError("validation.layer.usedtwice",[e.geoviewLayerId,this.getMapId()]),S.vF.logError("Duplicate use of geoview layer identifier ".concat(e.geoviewLayerId," on map ").concat(this.getMapId()))}function Nt(e){var t,n=this;if((0,k.vM)(e)?t=new k.kx(this.getMapId(),e):(0,T.P0)(e)?t=new T.OH(this.getMapId(),e):(0,D.WW)(e)?t=new D.pf(this.getMapId(),e):(0,_.Xx)(e)?t=new _.GB(this.getMapId(),e):(0,O.IU)(e)?t=new O.zt(this.getMapId(),e):(0,P.$f)(e)?t=new P.Uw(this.getMapId(),e):(0,I.yl)(e)?t=new I.$x(this.getMapId(),e):(0,M.HO)(e)?t=new M.S6(this.getMapId(),e):(0,L.OV)(e)?t=new L.dS(this.getMapId(),e):(0,R.dr)(e)?t=new R.ke(this.getMapId(),e):(0,j.ik)(e)?t=new j.nd(this.getMapId(),e):(0,F.c9)(e)&&(t=new F.RZ(this.getMapId(),e)),t){bt(Ct,this)[t.geoviewLayerId]=t,t.getAllLayerEntryConfigs().forEach((function(e){S.vF.logDebug("Layer entry config being registered for ".concat(e.layerPath," on map ").concat(n.getMapId()),e),n.registerLayerConfigInit(e),xt(Rt,n,Xt).call(n,e)})),t.onLayerEntryProcessed((function(e,t){S.vF.logDebug("Layer entry config processed for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config)})),t.onLayerRequesting((function(e,t){if(S.vF.logDebug("Requesting layer for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config),tt.LAYERS_HYBRID_MODE){var r=xt(Rt,n,Bt).call(n,n.getMapId(),e,t.source,t.config,t.extraConfig);if(r)return r.getOLLayer()}})),t.onLayerCreation((function(e,t){S.vF.logDebug("OpenLayer created for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config),bt(Et,n)[t.config.layerPath]=t.layer,tt.LAYERS_HYBRID_MODE&&t.layer instanceof m.A&&t.config instanceof mt.x&&xt(Rt,n,zt).call(n,n.getMapId(),t.layer,t.config)}));var r=new Promise((function(e,r){t.createGeoViewLayers().then((function(){t.onIndividualLayerLoaded((function(e,t){S.vF.logDebug("".concat(t.layerPath," loaded on map ").concat(n.getMapId())),xt(Rt,n,Jt).call(n,{layer:e,layerPath:t.layerPath})})),xt(Rt,n,Vt).call(n,t),e(),xt(Rt,n,Zt).call(n,{layer:t})})).catch((function(e){r(e)}))}));return{layer:t,promiseLayer:r}}}function Bt(e,t,n,r,i){var o,a,s,l,c;if(tt.LAYERS_HYBRID_MODE&&(o=t.metadata,a=t.getLayerMetadata(r.layerPath),s=t.getTemporalDimension(r.layerPath),l=t.getStyle(r.layerPath),r instanceof K.d&&(o&&r.setServiceMetadata(o),a&&r.setLayerMetadata(a))),n instanceof u.A&&r instanceof it.q?c=new Z.Y(e,n,r):n instanceof u.A&&r instanceof lt.Q?c=new J.o(e,n,r):n instanceof f.A&&r instanceof ct.V?c=new ge(e,n,r):n instanceof d.A&&r instanceof st.Q?c=new ye.V(e,n,r,i.layerCapabilities):n instanceof g.A&&r instanceof rt.h?c=new Pe(e,n,r):n instanceof g.A&&r instanceof ot.d?c=new Le(e,n,r):n instanceof g.A&&r instanceof at.j?c=new Fe(e,n,r):n instanceof g.A&&r instanceof ht.q?c=new Ye(e,n,r):n instanceof g.A&&r instanceof pt.A?c=new Ze(e,n,r):n instanceof h.A&&r instanceof ut.E?c=new We(e,n,r):n instanceof p.A&&r instanceof dt.m&&(c=new ke(e,n,r)),c)return bt(kt,this)[r.layerPath]=c,s&&c.setTemporalDimension(s),l&&c.setStyle(r.layerPath,l),c.init(),c;S.vF.logError("Unsupported GVLayer for ".concat(r.layerPath))}function zt(e,t,n){var r=new nt(e,t,n);return bt(kt,this)[n.layerPath]=r,r}function Vt(e){var t=this;0!==e.layerLoadError.length&&e.layerLoadError.forEach((function(e){var n=e.layer,r=e.loggerMessage;S.vF.logError(r),W.FHQ.maps[t.getMapId()].notifications.showError("validation.layer.loadfailed",[n,t.getMapId()]),xt(Rt,t,Qt).call(t,{layerPath:n,errorMessage:r})})),e.allLayerStatusAreGreaterThanOrEqualTo("error")||this.mapViewer.map.addLayer(e.olRootLayer),S.vF.logInfo("GeoView Layer ".concat(e.geoviewLayerId," added to map ").concat(this.getMapId()),e),w.d.setLayerZIndices(this.getMapId())}function $t(e){if(-1===w.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),e.layerPath)){var t=e.layerPath.split(".")[1];if(-1!==w.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),t))w.d.replaceOrderedLayerInfo(this.getMapId(),e,t);else if(e.parentLayerConfig){var n=e.layerPath.split("/");n.pop();var r=n.join("/"),i=w.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),r),o=w.d.getMapOrderedLayerInfo(this.getMapId()).filter((function(e){return e.layerPath.startsWith(r)})).length;-1!==i?w.d.addOrderedLayerInfo(this.getMapId(),e,i+o):w.d.addOrderedLayerInfo(this.getMapId(),e.parentLayerConfig)}else w.d.addOrderedLayerInfo(this.getMapId(),e)}}function Gt(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,r.A)(c().mark((function e(t){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,A.whenThisThen)((function(){return t.isGreaterThanOrEqualTo("processed")}),rn._);case 3:((n=this.getGeoviewLayerHybrid(t.layerPath))instanceof C.qt||n instanceof X.Z)&&n.getIsTimeAware()&&q.t.checkInitTimeSliderLayerAndApplyFilters(this.getMapId(),t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})))).apply(this,arguments)}function Wt(e){w.d.removeOrderedLayerInfo(this.getMapId(),e.layerPath)}function qt(e){q.t.removeTimeSliderLayer(this.getMapId(),e.layerPath)}function Ht(e){H.U.removeGeochartChart(this.getMapId(),e.layerPath)}function Yt(e){Y.Z.removeLayerPath(this.getMapId(),e.layerPath)}function Kt(e,t){var n=this;if((0,E.KD)(e))e.listOfLayerEntryConfig.forEach((function(e){xt(Rt,n,Kt).call(n,e,t)}));else{var r=this.getGeoviewLayerHybrid(e.layerPath).getBounds(e.layerPath);r&&t.push(r)}}function Xt(e){e.layerFilter&&w.d.addInitialFilter(this.getMapId(),e.layerPath,e.layerFilter)}function Zt(e){U.A.emitEvent(this,bt(_t,this),e)}function Jt(e){U.A.emitEvent(this,bt(Ot,this),e)}function Qt(e){U.A.emitEvent(this,bt(Pt,this),e)}function en(e){U.A.emitEvent(this,bt(It,this),e)}function tn(e){U.A.emitEvent(this,bt(Mt,this),e)}function nn(e){U.A.emitEvent(this,bt(Lt,this),e)}tt=jt;var rn={_:2e4};(0,s.A)(jt,"LAYERS_HYBRID_MODE",!1)},46850:(e,t,n)=>{"use strict";n.d(t,{h:()=>V});var r=n(96880),i=n(13718),o=n(47280),a=n(74813),s=n.n(a),l=n(42432),c=n(34946),u=n(2265),d=n(51640),h=n(76200),p=n(6883),f=n(17921),g=n(30762),m=n(74388),y=n(7358),v=n(12989),b=n(58420),w=n(6552),x=n(73095),A=n(3248),S=n(58118),C=n(28126);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t0){var o=r.layers[0];if(o){var a=o.layerType,s=o.layerEntries,l=o.name,c=o.url,E=o.id,k=o.serverType,T=o.isTimeAware,_=c.indexOf("FeatureServer")>-1;if(a!==d.y6.ESRI_DYNAMIC||_)if(_){var O=c.split("/").slice(0,-1).join("/"),P=c.split("/").pop(),I={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(O),geoviewLayerType:d.y6.ESRI_FEATURE,isTimeAware:T,listOfLayerEntryConfig:[]};I.listOfLayerEntryConfig=[new v.h({geoviewLayerConfig:I,schemaTag:d.y6.ESRI_FEATURE,entryType:u.hJ.VECTOR,layerId:P,source:{format:"EsriJSON",dataAccessPath:(0,h.createLocalizedString)(O)}})],n.push(I)}else if(a===d.y6.ESRI_FEATURE){var M={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.ESRI_FEATURE,isTimeAware:T,listOfLayerEntryConfig:[]};M.listOfLayerEntryConfig=s.map((function(e){return new v.h({geoviewLayerConfig:M,schemaTag:d.y6.ESRI_FEATURE,entryType:u.hJ.VECTOR,layerId:"".concat(e.index),source:{format:"EsriJSON",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(M)}else if(a===d.y6.WMS){var L={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.WMS,isTimeAware:T,listOfLayerEntryConfig:[]};L.listOfLayerEntryConfig=s.map((function(e){return new A.Q({geoviewLayerConfig:L,schemaTag:d.y6.WMS,entryType:u.hJ.RASTER_IMAGE,layerId:"".concat(e.id),source:{dataAccessPath:(0,h.createLocalizedString)(c),serverType:void 0===k?"mapserver":k}})})),n.push(L)}else if(a===d.y6.WFS){var R={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.WFS,isTimeAware:T,listOfLayerEntryConfig:[]};R.listOfLayerEntryConfig=s.map((function(e){return new f.q({geoviewLayerConfig:R,schemaTag:d.y6.WFS,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"WFS",strategy:"all",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(R)}else if(a===d.y6.OGC_FEATURE){var j={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.OGC_FEATURE,isTimeAware:T,listOfLayerEntryConfig:[]};j.listOfLayerEntryConfig=s.map((function(e){return new g.j({geoviewLayerConfig:j,schemaTag:d.y6.OGC_FEATURE,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"featureAPI",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(j)}else if(a===d.y6.GEOJSON){var F={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.GEOJSON,isTimeAware:T,listOfLayerEntryConfig:[]};F.listOfLayerEntryConfig=s.map((function(e){return new y.d({geoviewLayerConfig:F,schemaTag:d.y6.GEOJSON,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"GeoJSON",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(F)}else if(a===d.y6.XYZ_TILES){var D={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.XYZ_TILES,isTimeAware:T,listOfLayerEntryConfig:[]};D.listOfLayerEntryConfig=s.map((function(e){return new w.m({geoviewLayerConfig:D,schemaTag:d.y6.XYZ_TILES,entryType:u.hJ.RASTER_TILE,layerId:"".concat(e.id),source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(D)}else if(a===d.y6.VECTOR_TILES){var N={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.VECTOR_TILES,isTimeAware:T,listOfLayerEntryConfig:[]};N.listOfLayerEntryConfig=s.map((function(e){return new m.E({schemaTag:d.y6.VECTOR_TILES,entryType:u.hJ.RASTER_TILE,layerId:"".concat(e.id),tileGrid:e.tileGrid,source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(N)}else if(a===d.y6.GEOPACKAGE){var B={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),geoviewLayerType:d.y6.GEOPACKAGE,isTimeAware:T,listOfLayerEntryConfig:[]};B.listOfLayerEntryConfig=s.map((function(e){return new b.X({geoviewLayerConfig:B,schemaTag:d.y6.GEOPACKAGE,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"GeoPackage",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(B)}else if(a===d.y6.IMAGE_STATIC){var z={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.IMAGE_STATIC,isTimeAware:T,listOfLayerEntryConfig:[]};z.listOfLayerEntryConfig=s.map((function(e){return new x.V({geoviewLayerConfig:z,schemaTag:d.y6.IMAGE_STATIC,entryType:u.hJ.RASTER_IMAGE,layerId:"".concat(e.id),source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(z)}else if(a===d.y6.ESRI_IMAGE){var V={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.ESRI_IMAGE,isTimeAware:T,listOfLayerEntryConfig:[]};V.listOfLayerEntryConfig=[new S.Q({geoviewLayerConfig:V,schemaTag:d.y6.ESRI_IMAGE,entryType:u.hJ.RASTER_IMAGE,layerId:c.split("/").slice(-2,-1)[0]})],n.push(V)}else p.vF.logWarning("Layer type ".concat(a," not supported"));else{var $={geoviewLayerId:"".concat(E.split(".")[1]),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.ESRI_DYNAMIC,isTimeAware:T,listOfLayerEntryConfig:[]};$.listOfLayerEntryConfig=s.map((function(e){return new C.q({geoviewLayerConfig:$,schemaTag:d.y6.ESRI_DYNAMIC,entryType:u.hJ.RASTER_IMAGE,layerId:"".concat(e.index),source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push($)}}}},i=0;i{"use strict";n.d(t,{H:()=>K});var r=n(13718),i=n(47280),o=n(42432),a=n(45282),s=n(67287),l=n(15877),c=n(95005),u=n(3451),d=n(58952),h=n(92368),p=n(98246),f=n(59119),g=n(43910),m=n(67103),y=n(87620),v=n(64383),b=n(32332),w=n(61170),x=n(6883),A=n(58373),S=n(8058),C=n(35415),E=n(27991),k=n(68705);function T(e,t,n){_(e,t),t.set(e,n)}function _(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function O(e,t){return e.get(I(e,t))}function P(e,t,n){return e.set(I(e,t),n),n}function I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var M=new WeakMap,L=new WeakMap,R=new WeakSet,j=function(){return(0,i.A)((function e(t,n){var i,a;(0,r.A)(this,e),_(i=this,a=R),a.add(i),T(this,M,void 0),(0,o.A)(this,"mapProjection",void 0),(0,o.A)(this,"mapId",void 0),T(this,L,[]),this.mapProjection=t.map.getView().getProjection().getCode(),this.mapId=t.mapId,P(M,this,n),Object.keys(E.d.getPointMarkers(this.mapId)).length&&this.updatePointMarkers(E.d.getPointMarkers(this.mapId))}),[{key:"updatePointMarkers",value:function(e){var t=this;I(R,this,F).call(this),Object.keys(e).forEach((function(n){e[n].forEach((function(e){var r=new u.Ay({image:new A.A({anchor:[.5,1],src:"".concat((0,k.Mhq)(),"/img/marker-icon36.png"),color:e.color||"green",opacity:e.opacity||1,scale:.25})}),i=new p.A({geometry:new v.A(S.M.transformPoints([e.coordinate],"EPSG:".concat(e.projectionCode||4326),t.mapProjection)[0])}),o="".concat(n,"-").concat(e.id);i.setId(o),i.setStyle(r),O(M,t).highlighSource.addFeature(i),O(L,t).push(o)}))}))}},{key:"addPointMarkers",value:function(e,t){E.d.addPointMarkers(this.mapId,e,t)}},{key:"removePointMarkersOrGroup",value:function(e,t){E.d.removePointMarkersOrGroup(this.mapId,e,t)}},{key:"zoomToPointMarkerGroup",value:function(e){var t=E.d.getPointMarkers(this.mapId)[e];if(t){var n=t.map((function(e){return e.id}));n.length?this.zoomToPointMarkers(e,n):x.vF.logError("Point marker group ".concat(e," has no markers."))}else x.vF.logError("Point marker group ".concat(e," does not exist."))}},{key:"zoomToPointMarkers",value:function(e,t){var n=t.map((function(t){return"".concat(e,"-").concat(t)})),r=this.getExtentFromMarkerIds(n);r?E.d.zoomToExtent(this.mapId,r).catch((function(e){x.vF.logPromiseFailed("zoomToExtent in zoomToPointMarkersOrGroup in MapEventProcessor",e)})):x.vF.logError("Point marker group ".concat(e," has no markers or does not exist, or point marker ids ").concat(t," are not correct."))}},{key:"getExtentFromMarkerIds",value:function(e){var t=this;if(e.length){var n=e.map((function(e){var n=O(M,t).highlighSource.getFeatureById(e);if(n){var r=(null==n?void 0:n.getGeometry()).getCoordinates();return[r[0],r[1],r[0],r[1]]}})).filter((function(e){return e}));if(1===n.length)return n[0];if(n.length){for(var r=n[0],i=1;i=0;n--)(z(q,this)[n]===e||z(q,this)[n].startsWith("".concat(e,"-")))&&(this.highlighSource.getFeatureById(z(q,this)[n])&&this.highlighSource.removeFeature(this.highlighSource.getFeatureById(z(q,this)[n])),z(q,this).splice(n,1))}},{key:"highlightFeature",value:function(e){var t=e.geometry.getGeometry();if(t instanceof f.Ay){var n=e.geometry.getGeometry(),r=new p.A(n),i=(0,a.v6)(e.geometry);V(Y,this,X).call(this,r,i)}else if(t instanceof g.A||t instanceof m.A){var o,s=null===(o=e.geometry)||void 0===o?void 0:o.getGeometry(),l=new p.A(s),c=(0,a.v6)(e.geometry);V(Y,this,X).call(this,l,c)}else if(t instanceof y.A)for(var x=e.featureIcon,A=x.height,S=x.width,C=Math.min(A,S)/2-2<7?7:Math.min(A,S)/2-2,E=t.getCoordinates(),k=(0,a.v6)(e.geometry),T=0;T1&&void 0!==arguments[1]&&arguments[1];this.highlighSource.getFeatureById("geoLocatorFeature")&&(this.highlighSource.removeFeature(this.highlighSource.getFeatureById("geoLocatorFeature")),clearTimeout(z(H,this)));var r=(0,f.VY)(e),i=new p.A(r),o=z(W,this);i.setStyle(o),i.setId("geoLocatorFeature"),this.highlighSource.addFeature(i),n||B(H,this,setTimeout((function(){return t.highlighSource.removeFeature(t.highlighSource.getFeatureById("geoLocatorFeature"))}),5e3))}},{key:"removeBBoxHighlight",value:function(){this.highlighSource.removeFeature(this.highlighSource.getFeatureById("geoLocatorFeature"))}}])}();function X(e,t){e.setStyle(z(U,this)),e.setId(t),z(q,this).push(t),this.highlighSource.addFeature(e)}},2265:(e,t,n)=>{"use strict";n.d(t,{$h:()=>g,C:()=>u,I0:()=>s,IG:()=>f,KD:()=>a,NF:()=>c,cw:()=>d,hJ:()=>i,hc:()=>h,s0:()=>p,si:()=>l,wB:()=>o});var r=n(51640),i={VECTOR:"vector",VECTOR_TILE:"vector-tile",RASTER_TILE:"raster-tile",RASTER_IMAGE:"raster-image",GROUP:"group",GEOCORE:"geoCore"},o=function(e){switch(e){case r.y6.CSV:case r.y6.GEOJSON:case r.y6.GEOPACKAGE:case r.y6.OGC_FEATURE:case r.y6.WFS:case r.y6.ESRI_FEATURE:return i.VECTOR;case r.y6.IMAGE_STATIC:case r.y6.ESRI_DYNAMIC:case r.y6.ESRI_IMAGE:case r.y6.WMS:return i.RASTER_IMAGE;case r.y6.XYZ_TILES:case r.y6.VECTOR_TILES:return i.RASTER_TILE;default:throw new Error("Unsupported layer type ".concat(e," to convert to layer entry"))}},a=function(e){return(null==e?void 0:e.entryType)===i.GROUP},s=function(e){return e.geoviewLayerType===i.GEOCORE},l=function(e){if(s(e))return{geoviewLayerId:e.geoviewLayerId,geoviewLayerName:e.geoviewLayerName,geoviewLayerType:e.geoviewLayerType};for(var t=e,n={geoviewLayerId:t.geoviewLayerId,geoviewLayerName:t.geoviewLayerName,geoviewLayerType:t.geoviewLayerType,metadataAccessPath:t.metadataAccessPath,serviceDateFormat:t.serviceDateFormat,externalDateFormat:t.externalDateFormat,initialSettings:t.initialSettings,isTimeAware:t.isTimeAware,listOfLayerEntryConfig:[]},r=0;r<((null===(i=t.listOfLayerEntryConfig)||void 0===i?void 0:i.length)||0);r++){var i;if("serialize"in t.listOfLayerEntryConfig[r]){var o=t.listOfLayerEntryConfig[r].serialize();n.listOfLayerEntryConfig.push(o)}else n.listOfLayerEntryConfig.push(t.listOfLayerEntryConfig[r])}return n},c=function(e){return"lineString"===(null==e?void 0:e.type)},u=function(e){return"filledPolygon"===(null==e?void 0:e.type)},d=function(e){return"simpleSymbol"===(null==e?void 0:e.type)},h=function(e){return"iconSymbol"===(null==e?void 0:e.type)},p=function(e){return"simple"===(null==e?void 0:e.styleType)},f=function(e){return"uniqueValue"===(null==e?void 0:e.styleType)},g=function(e){return"classBreaks"===(null==e?void 0:e.styleType)}},1220:(e,t,n)=>{"use strict";n.d(t,{F:()=>dt});var r=n(55907),i=n(96880),o=n(13718),a=n(47280),s=n(42432),l=n(44481),c=n.n(l),u=n(74813),d=n.n(u),h=n(50375),p=n(27387),f=n(86458),g=n(43852),m=n(55061),y=n(18354),v=n(78861),b=n(8058),w=n(68705),x=n(23220),A=n(95985),S=n(83609),C=n(51801),E=n(29067),k=n(54497),T=n(59155),_=n(27991),O=n(50570),P=n(9145),I=n(6883),M=n(2358);function L(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t){return e.get(j(e,t))}function j(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var F=new WeakMap,D=new WeakSet,N=function(){return(0,a.A)((function e(t){var n,r;(0,o.A)(this,e),L(n=this,r=D),r.add(n),(0,s.A)(this,"mapId",void 0),function(e,t,n){L(e,t),t.set(e,n)}(this,F,[]),this.mapId=t}),[{key:"getLayerPanelState",value:function(e){return T.K.getLayerPanelState(this.mapId,e)}},{key:"getLegendLayerInfo",value:function(e){return T.K.getLegendLayerInfo(this.mapId,e)}},{key:"getLegendCollapsedState",value:function(e){return _.d.getMapLegendCollapsedFromOrderedLayerInfo(this.mapId,e)}},{key:"getPluginState",value:function(e,t){if("geochart"===e){if(["geochartChartsConfig","layerDataArray","layerDataArrayBatchLayerPathBypass","selectedLayerPath"].includes(t))return k.U.getSingleGeochartState(this.mapId,t);I.vF.logError("".concat(t," not available from geochart"))}if("swiper"===e){if("layerPaths"===t)return O.Z.getLayerPaths(this.mapId);I.vF.logError("".concat(t," not available from swiper"))}if("time-slider"===e){if("timeSliderLayers"===t)return P.t.getTimeSliderLayers(this.mapId);I.vF.logError("".concat(t," not available from time slider"))}}},{key:"setLegendCollapsedState",value:function(e,t){_.d.setMapLegendCollapsed(this.mapId,e,t)}},{key:"setSelectedLayersTabLayer",value:function(e){T.K.setSelectedLayersTabLayer(this.mapId,e)}},{key:"reorderLayers",value:function(e,t,n){for(var r=n<0?-1:1,i=Math.abs(n),o=(0,E.A)(_.d.getMapOrderedLayerInfo(this.mapId)),a=-1,s=0;s0;)(u+=r)===o.length||0===u?i=0:o[u].layerPath.split("/").length===d&&i--;o.splice.apply(o,[u,0].concat((0,E.A)(c))),_.d.setMapOrderedLayerInfo(e,o),j(D,this,B).call(this,{orderedLayers:o})}},{key:"onLayersReordered",value:function(e){M.A.onEvent(R(F,this),e)}},{key:"offLayersReordered",value:function(e){M.A.offEvent(R(F,this),e)}}])}();function B(e){M.A.emitEvent(this,R(F,this),e)}var z=n(75583),V=n(96645),$=n(6620),G=n(94270),U=n(11738),W=n(43400),q=n(39488),H=n(98246),Y=n(91451),K=n(67287),X=n(20633),Z=n(27893),J=n(3451),Q=n(47505),ee=n(45282),te=n(17341);const ne="select";class re extends q.Ay{constructor(e,t,n,r){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=r}}const ie={};class oe extends Y.Ay{constructor(e){let t;if(super(),this.on,this.once,this.un,e=e||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:te.t5,this.addCondition_=e.addCondition?e.addCondition:te.Zm,this.removeCondition_=e.removeCondition?e.removeCondition:te.Zm,this.toggleCondition_=e.toggleCondition?e.toggleCondition:te.Kg,this.multi_=!!e.multi&&e.multi,this.filter_=e.filter?e.filter:X.rT,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=void 0!==e.style?e.style:function(){const e=(0,J.mY)();return(0,Q.X$)(e.Polygon,e.LineString),(0,Q.X$)(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}(),this.features_=e.features||new U.A,e.layers)if("function"==typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=X.rT;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[(0,ee.v6)(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[(0,ee.v6)(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(W.A.ADD,this.boundAddFeature_),this.features_.addEventListener(W.A.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(W.A.ADD,this.boundAddFeature_),this.features_.removeEventListener(W.A.REMOVE,this.boundRemoveFeature_))}addFeature_(e){const t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){const e=this.getMap().getAllLayers().find((function(e){if(e instanceof K.A&&e.getSource()&&e.getSource().hasFeature(t))return e}));e&&this.addFeatureLayerAssociation_(t,e)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element)}getStyle(){return this.style_}applySelectedStyle_(e){const t=(0,ee.v6)(e);t in ie||(ie[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(e){const t=this.getMap().getInteractions().getArray();for(let n=t.length-1;n>=0;--n){const r=t[n];if(r!==this&&r instanceof oe&&r.getStyle()&&-1!==r.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(r.getStyle())}const n=(0,ee.v6)(e);e.setStyle(ie[n]),delete ie[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[(0,ee.v6)(e)]}handleEvent(e){if(!this.condition_(e))return!0;const t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,o=e.map,a=this.getFeatures(),s=[],l=[];if(i){(0,Z.I)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,((e,t)=>{if(e instanceof H.A&&this.filter_(e,t))return this.addFeatureLayerAssociation_(e,t),l.push(e),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=a.getLength()-1;e>=0;--e){const t=a.item(e),n=l.indexOf(t);n>-1?l.splice(n,1):(a.remove(t),s.push(t))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(e.pixel,((e,i)=>{if(e instanceof H.A&&this.filter_(e,i))return!t&&!r||a.getArray().includes(e)?(n||r)&&a.getArray().includes(e)&&(s.push(e),this.removeFeatureLayerAssociation_(e)):(this.addFeatureLayerAssociation_(e,i),l.push(e)),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=s.length-1;e>=0;--e)a.remove(s[e]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new re(ne,l,s,e)),!0}}const ae=oe;var se=n(35415),le=n(25293);function ce(e,t,n){return t=(0,V.A)(t),(0,z.A)(e,ue()?Reflect.construct(t,n||[],(0,V.A)(e).constructor):t.apply(e,n))}function ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ue=function(){return!!e})()}function de(e,t,n,r){var i=(0,$.A)((0,V.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function he(e,t,n){pe(e,t),t.set(e,n)}function pe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fe(e,t){return e.get(ge(e,t))}function ge(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var me=new WeakMap,ye=new WeakMap,ve=new WeakSet,be=function(e){function t(e){var n,r,i;(0,o.A)(this,t),n=ce(this,t,[e]),pe(r=n,i=ve),i.add(r),he(n,me,void 0),he(n,ye,[]);var a={features:e.features,style:(0,se.convertTypeFeatureStyleToOpenLayersStyle)(e.style),hitTolerance:e.hitTolerance||0};return function(e,t,n){e.set(ge(e,t),n)}(me,n,new ae(a)),fe(me,n).on("select",ge(ve,n,we).bind(n)),n}return(0,G.A)(t,e),(0,a.A)(t,[{key:"startInteraction",value:function(){de(t,"startInteraction",this,3)([fe(me,this)])}},{key:"stopInteraction",value:function(){de(t,"stopInteraction",this,3)([fe(me,this)])}},{key:"getFeatures",value:function(){return fe(me,this).getFeatures()}},{key:"onSelectChanged",value:function(e){M.A.onEvent(fe(ye,this),e)}},{key:"offSelectChanged",value:function(e){M.A.offEvent(fe(ye,this),e)}}])}(le.N);function we(e){M.A.emitEvent(this,fe(ye,this),e)}var xe=n(43681),Ae=n(13178),Se=n(72412),Ce=n(73802),Ee=n(11830),ke=n(33828),Te=n(76200),_e=n(24258),Oe=n(16775);function Pe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ie(e,t){return e.get(Me(e,t))}function Me(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Le=new WeakMap,Re=new WeakSet,je=function(){return(0,a.A)((function e(t){var n,r;(0,o.A)(this,e),Pe(n=this,r=Re),r.add(n),(0,s.A)(this,"mapId",void 0),function(e,t,n){Pe(e,t),t.set(e,n)}(this,Le,[]),this.mapId=t}),[{key:"addNotificationMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"info",e,t)}},{key:"addNotificationSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"success",e,t)}},{key:"addNotificationWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"warning",e,t)}},{key:"addNotificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"error",e,t)}},{key:"showMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"info",e,t,r),n&&this.addNotificationMessage(e,t)}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"success",e,t,r),n&&this.addNotificationSuccess(e,t)}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"warning",e,t,r),n&&this.addNotificationWarning(e,t)}},{key:"showError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"error",e,t,r),n&&this.addNotificationError(e,t)}},{key:"onSnackbarOpen",value:function(e){M.A.onEvent(Ie(Le,this),e)}},{key:"offSnackbarOpen",value:function(e){M.A.offEvent(Ie(Le,this),e)}}])}();function Fe(e,t){var n=(0,Te.getLocalizedMessage)(e,Oe.K.getDisplayLanguage(this.mapId));return t.length>0&&(n=(0,Te.replaceParams)(t,n)),n}function De(e,t,n){var r={key:(0,Te.generateId)(),notificationType:e,message:Me(Re,this,Fe).call(this,t,n),count:1};Oe.K.addNotification(this.mapId,r).catch((function(e){I.vF.logPromiseFailed("addNotification in Notifications",e)}))}function Ne(e,t,n,r){var i={snackbarType:e,message:Me(Re,this,Fe).call(this,t,n),button:r};Me(Re,this,Be).call(this,i)}function Be(e){M.A.emitEvent(this,Ie(Le,this),e)}function ze(e,t,n){Ve(e,t),t.set(e,n)}function Ve(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $e(e,t,n){return e.set(Ue(e,t),n),n}function Ge(e,t){return e.get(Ue(e,t))}function Ue(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var We=new WeakMap,qe=new WeakMap,He=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Xe=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ut=new WeakSet,dt=function(){return(0,a.A)((function e(t,n){var r,i;(0,o.A)(this,e),Ve(r=this,i=ut),i.add(r),(0,s.A)(this,"mapFeaturesConfig",void 0),(0,s.A)(this,"mapId",void 0),(0,s.A)(this,"map",void 0),(0,s.A)(this,"plugins",{}),(0,s.A)(this,"overviewRoot",void 0),(0,s.A)(this,"appBarApi",void 0),(0,s.A)(this,"navBarApi",void 0),(0,s.A)(this,"footerBarApi",void 0),(0,s.A)(this,"stateApi",void 0),(0,s.A)(this,"basemap",void 0),(0,s.A)(this,"notifications",void 0),(0,s.A)(this,"layer",void 0),(0,s.A)(this,"modal",void 0),(0,s.A)(this,"iconImageCacheSize",void 0),ze(this,We,void 0),ze(this,qe,!1),ze(this,He,!1),ze(this,Ye,!1),ze(this,Ke,!1),ze(this,Xe,[]),ze(this,Ze,[]),ze(this,Je,[]),ze(this,Qe,[]),ze(this,et,[]),ze(this,tt,[]),ze(this,nt,[]),ze(this,rt,[]),ze(this,it,[]),ze(this,ot,[]),ze(this,at,[]),ze(this,st,[]),ze(this,lt,[]),ze(this,ct,void 0),this.mapId=t.mapId,this.mapFeaturesConfig=t,$e(We,this,n),this.iconImageCacheSize=1,this.appBarApi=new A.r(this.mapId),this.navBarApi=new S.v(this.mapId),this.footerBarApi=new C.x(this.mapId),this.stateApi=new N(this.mapId),this.notifications=new je(this.mapId),this.modal=new ke.ModalApi,this.basemap=new y.i(_.d.getBasemapOptions(this.mapId),this.mapId)}),[{key:"mapInit",get:function(){return Ge(qe,this)}},{key:"mapReady",get:function(){return Ge(He,this)}},{key:"mapLayersProcessed",get:function(){return Ge(Ye,this)}},{key:"mapLayersLoaded",get:function(){return Ge(Ke,this)}},{key:"createMap",value:function(e){var t,n,r,i,o,a,s=null===(t=this.mapFeaturesConfig)||void 0===t?void 0:t.map.viewSettings,l=b.M.PROJECTIONS[s.projection];s.maxExtent&&(a=b.M.transformExtent(s.maxExtent,b.M.PROJECTION_NAMES.LNGLAT,l.getCode()));var c=new h.A({target:e,layers:[(0,se.createEmptyBasemap)()],view:new p.Ay({projection:l,center:b.M.transformFromLonLat(null!==(n=s.initialView)&&void 0!==n&&n.zoomAndCenter?null===(r=s.initialView)||void 0===r?void 0:r.zoomAndCenter[1]:g.VN[s.projection],l),zoom:null!==(i=s.initialView)&&void 0!==i&&i.zoomAndCenter?null===(o=s.initialView)||void 0===o?void 0:o.zoomAndCenter[0]:3.5,extent:a||void 0,minZoom:s.minZoom||0,maxZoom:s.maxZoom||17,rotation:s.rotation||0}),controls:[],keyboardEventTarget:document.getElementById("map-".concat(this.mapId))});return this.map=c,this.initMap(),c}},{key:"initMap",value:function(){this.map.on("moveend",Ue(ut,this,pt).bind(this)),Ue(ut,this,ht).call(this,this.getView()),"static"!==this.mapFeaturesConfig.map.interaction&&(this.map.on("pointermove",c()(Ue(ut,this,gt).bind(this),10,{leading:!0}).bind(this)),this.map.on("singleclick",c()(Ue(ut,this,mt).bind(this),1e3,{leading:!0}).bind(this))),$e(ct,this,Date.now()),this.layer=new v.A(this),this.layer.loadListOfGeoviewLayer(this.mapFeaturesConfig.map.listOfGeoviewLayerConfig).catch((function(e){I.vF.logPromiseFailed("loadListOfGeoviewLayer in initMap in MapViewer",e)})),this.loadGeometries(),$e(qe,this,!0),Ue(ut,this,Tt).call(this),_.d.resetBasemap(this.mapId).then().catch((function(e){I.vF.logPromiseFailed(" MapEventProcessor.resetBasemap in map-viewer",e)})),Ue(ut,this,xt).call(this)}},{key:"addComponent",value:function(e,t){e&&t&&Ue(ut,this,Dt).call(this,{mapComponentId:e,component:t})}},{key:"removeComponent",value:function(e){e&&Ue(ut,this,Nt).call(this,{mapComponentId:e})}},{key:"addLocalizeRessourceBundle",value:function(e,t){Ge(We,this).addResourceBundle(e,"translation",t,!0,!1)}},{key:"getDisplayLanguage",value:function(){return Oe.K.getDisplayLanguage(this.mapId)}},{key:"getDisplayTheme",value:function(){return Oe.K.getDisplayTheme(this.mapId)}},{key:"getMapState",value:function(){return _.d.getMapState(this.mapId)}},{key:"getView",value:function(){return this.map.getView()}},{key:"getProjection",value:function(){return this.getView().getProjection()}},{key:"getMapLayerOrderInfo",value:function(){return _.d.getMapOrderedLayerInfo(this.mapId)}},{key:"setInteraction",value:function(e){_.d.setInteraction(this.mapId,e)}},{key:"setLanguage",value:function(e,t){if(g.ns.includes(e)){var n=Oe.K.setDisplayLanguage(this.mapId,e);return t&&I.vF.logInfo("reset layers not implemented yet"),Ue(ut,this,Bt).call(this,{language:e}),n}return this.notifications.addNotificationError((0,Te.getLocalizedMessage)("validation.changeDisplayLanguage",e)),Promise.resolve([void 0,void 0])}},{key:"setProjection",value:function(e){return g.if.includes(Number(e))?_.d.setProjection(this.mapId,e):(this.notifications.addNotificationError("validation.changeDisplayProjection"),Promise.resolve())}},{key:"rotate",value:function(e){this.getView().animate({rotation:e})}},{key:"setTheme",value:function(e){g.qf.includes(e)?Oe.K.setDisplayTheme(this.mapId,e):this.notifications.addNotificationError((0,Te.getLocalizedMessage)("validation.changeDisplayTheme",this.getDisplayLanguage()))}},{key:"setView",value:function(e){var t,n,r,i,o=this.getView(),a={};a.projection="EPSG:".concat(e.projection),a.zoom=null!==(t=e.initialView)&&void 0!==t&&t.zoomAndCenter?null===(n=e.initialView)||void 0===n?void 0:n.zoomAndCenter[0]:o.getZoom(),a.center=null!==(r=e.initialView)&&void 0!==r&&r.zoomAndCenter?b.M.transformFromLonLat(null===(i=e.initialView)||void 0===i?void 0:i.zoomAndCenter[1],a.projection):b.M.transformFromLonLat(b.M.transformToLonLat(o.getCenter(),o.getProjection()),a.projection),a.minZoom=e.minZoom?e.minZoom:o.getMinZoom(),a.maxZoom=e.maxZoom?e.maxZoom:o.getMaxZoom(),a.rotation=e.rotation?e.rotation:o.getRotation(),e.maxExtent&&(a.extent=b.M.transformExtent(e.maxExtent,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(e.projection)));var s=new p.Ay(a);this.map.setView(s),Ue(ut,this,ht).call(this,s)}},{key:"setCenter",value:function(e){var t=this.getView(),n=b.M.transformFromLonLat(e,t.getProjection());t.setCenter(n)}},{key:"setZoomLevel",value:function(e){this.getView().setZoom(e)}},{key:"setMinZoomLevel",value:function(e){this.getView().setMinZoom(e)}},{key:"setMaxZoomLevel",value:function(e){this.getView().setMaxZoom(e)}},{key:"setExtent",value:(n=(0,i.A)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.d.zoomToExtent(this.mapId,t);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"setMaxExtent",value:function(e){var t=this.getView(),n={initialView:{zoomAndCenter:[t.getZoom(),this.convertCoordinateLngLatToMapProj(t.getCenter())]},minZoom:t.getMinZoom(),maxZoom:t.getMaxZoom(),maxExtent:b.M.transformExtent(e,b.M.PROJECTION_NAMES.LNGLAT,t.getProjection()),projection:t.getProjection().getCode().split(":")[1]};this.setView(n)}},{key:"refreshLayers",value:function(){var e=this;return this.layer.refreshLayers(),new Promise((function(t){e.map.once("rendercomplete",(function(){t()}))}))}},{key:"clickMarkerIconHide",value:function(){_.d.clickMarkerIconHide(this.mapId)}},{key:"clickMarkerIconShow",value:function(e){_.d.clickMarkerIconShow(this.mapId,e)}},{key:"loadGeometries",value:function(){var e,t=this,n=(null===(e=this.map.getTargetElement())||void 0===e||null===(e=e.closest(".geoview-map"))||void 0===e?void 0:e.getAttribute("data-geometry-endpoint"))||"",r=f.parse(location.search);r.geoms&&""!==n&&r.geoms.split(",").forEach((function(e){fetch("".concat(n).concat(e)).then((function(e){200===e.status&&e.json().then((function(e){void 0!==e.geometry&&t.layer.geometry.addPolygon(e.geometry.coordinates,void 0,(0,Te.generateId)(null))})).catch((function(e){I.vF.logPromiseFailed("response.json in loadGeometry in MapViewer",e)}))})).catch((function(e){I.vF.logPromiseFailed("fetch in loadGeometries in MapViewer",e)}))}))}},{key:"remove",value:(t=(0,i.A)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=document.getElementById(this.mapId)).classList.remove("geoview-map"),this.overviewRoot&&this.overviewRoot.unmount(),(0,w.d1f)(this.mapId),e.next=6,x.k.removePlugins(this.mapId);case 6:try{this.layer.removeAllGeoviewLayers()}catch(e){}return(0,m.e4)(this.mapId),t&&n.remove(),delete w.FHQ.maps[this.mapId],e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"reload",value:(e=(0,i.A)(d().mark((function e(t){var n,r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t||_.d.getGeoViewMapConfig(this.mapId),r=void 0!==this.map.getSize()?this.map.getSize()[1]:800,e.next=4,this.remove(!1);case 4:i=e.sent,w.FHQ.createMapFromConfig(i.id,JSON.stringify(n),r).catch((function(e){I.vF.logError("Couldn't reload the map in map-viewer",e)}));case 6:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"reloadWithCurrentState",value:function(){var e=this.createMapConfigFromMapState();this.reload(e).catch((function(e){I.vF.logError("Couldn't reload the map in map-viewer",e)}))}},{key:"zoomToExtent",value:function(e,t){return _.d.zoomToExtent(this.mapId,e,t)}},{key:"zoomToLngLatExtentOrCoordinate",value:function(e,t){var n=2===e.length?[e[0],e[1],e[0],e[1]]:e,r=b.M.transformExtent(n,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(this.getMapState().currentProjection));return _.d.zoomToExtent(this.mapId,r,t)}},{key:"initSelectInteractions",value:function(){var e=new be({mapViewer:this,hitTolerance:5});return e.startInteraction(),e}},{key:"initExtentInteractions",value:function(){var e=new Ae.z({mapViewer:this,pixelTolerance:5});return e.startInteraction(),e}},{key:"initTranslateInteractions",value:function(){var e=this.initSelectInteractions().getFeatures(),t=new Ee.H({mapViewer:this,features:e});return t.startInteraction(),t}},{key:"initDrawInteractions",value:function(e,t,n){var r=new xe.X({mapViewer:this,geometryGroupKey:e,type:t,style:n});return r.startInteraction(),r}},{key:"initModifyInteractions",value:function(e){var t=new Se.B({mapViewer:this,geometryGroupKey:e});return t.startInteraction(),t}},{key:"initSnapInteractions",value:function(e){var t=new Ce.P({mapViewer:this,geometryGroupKey:e});return t.startInteraction(),t}},{key:"getNorthVisibility",value:function(){var e=[this.map.getSize()[0]/2,1],t=b.M.transformToLonLat(this.map.getCoordinateFromPixel(e),this.getView().getProjection());return!t||t[0]>0}},{key:"getNorthArrowAngle",value:function(){try{var e={x:_e.Tg[1],y:_e.Tg[0]},t=this.getView().calculateExtent(),n=b.M.transformToLonLat([(t[0]+t[2])/2,t[1]],this.getView().getProjection()),r={x:n[0],y:n[1]},i=(r.x-e.x)*Math.PI/180,o=e.y*Math.PI/180,a=r.y*Math.PI/180,s=Math.sin(i)*Math.cos(a),l=Math.cos(o)*Math.sin(a)-Math.sin(o)*Math.cos(a)*Math.cos(i);return((180*Math.atan2(s,l)/Math.PI+360)%360).toFixed(1)}catch(e){return"180.0"}}},{key:"convertCoordinateLngLatToMapProj",value:function(e){return this.convertCoordinateFromProjToMapProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertCoordinateMapProjToLngLat",value:function(e){return this.convertCoordinateFromMapProjToProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertExtentLngLatToMapProj",value:function(e){return this.convertExtentFromProjToMapProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertExtentMapProjToLngLat",value:function(e){return this.convertExtentFromMapProjToProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertCoordinateFromProjToMapProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transform(e,t,this.getProjection()):e}},{key:"convertCoordinateFromMapProjToProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transform(e,this.getProjection(),t):e}},{key:"convertExtentFromProjToMapProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transformExtent(e,t,this.getProjection()):e}},{key:"convertExtentFromMapProjToProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transformExtent(e,this.getProjection(),t):e}},{key:"createMapConfigFromMapState",value:function(){return _.d.createMapConfigFromMapState(this.mapId)}},{key:"onMapInit",value:function(e){M.A.onEvent(Ge(Xe,this),e)}},{key:"offMapInit",value:function(e){M.A.offEvent(Ge(Xe,this),e)}},{key:"onMapReady",value:function(e){M.A.onEvent(Ge(Ze,this),e)}},{key:"offMapReady",value:function(e){M.A.offEvent(Ge(Ze,this),e)}},{key:"onMapLayersProcessed",value:function(e){M.A.onEvent(Ge(Je,this),e)}},{key:"offMapLayersProcessed",value:function(e){M.A.offEvent(Ge(Je,this),e)}},{key:"onMapLayersLoaded",value:function(e){M.A.onEvent(Ge(Qe,this),e)}},{key:"offMapLayersLoaded",value:function(e){M.A.offEvent(Ge(Qe,this),e)}},{key:"onMapMoveEnd",value:function(e){M.A.onEvent(Ge(et,this),e)}},{key:"offMapMoveEnd",value:function(e){M.A.offEvent(Ge(et,this),e)}},{key:"onMapPointerMove",value:function(e){M.A.onEvent(Ge(tt,this),e)}},{key:"offMapPointerMove",value:function(e){M.A.offEvent(Ge(tt,this),e)}},{key:"onMapSingleClick",value:function(e){M.A.onEvent(Ge(nt,this),e)}},{key:"offMapSingleClick",value:function(e){M.A.offEvent(Ge(nt,this),e)}},{key:"onMapZoomEnd",value:function(e){M.A.onEvent(Ge(rt,this),e)}},{key:"offMapZoomEnd",value:function(e){M.A.offEvent(Ge(rt,this),e)}},{key:"onMapRotation",value:function(e){M.A.onEvent(Ge(it,this),e)}},{key:"offMapRotation",value:function(e){M.A.offEvent(Ge(it,this),e)}},{key:"onMapChangeSize",value:function(e){M.A.onEvent(Ge(ot,this),e)}},{key:"offMapChangeSize",value:function(e){M.A.offEvent(Ge(ot,this),e)}},{key:"onMapComponentAdded",value:function(e){M.A.onEvent(Ge(at,this),e)}},{key:"offMapComponentAdded",value:function(e){M.A.offEvent(Ge(at,this),e)}},{key:"onMapComponentRemoved",value:function(e){M.A.onEvent(Ge(st,this),e)}},{key:"offMapComponentRemoved",value:function(e){M.A.offEvent(Ge(st,this),e)}},{key:"onMapLanguageChanged",value:function(e){M.A.onEvent(Ge(lt,this),e)}},{key:"offMapLanguageChanged",value:function(e){M.A.offEvent(Ge(lt,this),e)}}],[{key:"setFullscreen",value:function(e,t){e&&(t.requestFullscreen?t.requestFullscreen().catch((function(e){I.vF.logPromiseFailed("element.requestFullscreen",e)})):t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()),e||(document.exitFullscreen?document.exitFullscreen().catch((function(e){I.vF.logPromiseFailed("document.exitFullscreen",e)})):document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen())}}]);var e,t,n}();function ht(e){e.on("change:resolution",c()(Ue(ut,this,yt).bind(this),100).bind(this)),e.on("change:rotation",c()(Ue(ut,this,vt).bind(this),100).bind(this))}function pt(e){return ft.apply(this,arguments)}function ft(){return(ft=(0,i.A)(d().mark((function e(t){var n,r,i,o,a,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getView().getCenter(),r=this.getView().getProjection().getCode(),i={projected:n,pixel:this.map.getPixelFromCoordinate(n),lnglat:b.M.transformPoints([n],r,b.M.PROJECTION_NAMES.LNGLAT)[0],dragging:!1},o=this.getNorthArrowAngle(),a=this.getNorthVisibility(),s=this.getView().calculateExtent(),e.next=9,_.d.getScaleInfoFromDomElement(this.mapId);case 9:l=e.sent,_.d.setMapMoveEnd(this.mapId,n,i,o,a,s,l),Ue(ut,this,It).call(this,{lnglat:n}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),I.vF.logError("Failed in MapViewer.#handleMapMoveEnd",e.t0);case 17:case"end":return e.stop()}}),e,this,[[0,14]])})))).apply(this,arguments)}function gt(e){try{var t=this.getView().getProjection().getCode(),n={projected:e.coordinate,pixel:e.pixel,lnglat:b.M.transformPoints([e.coordinate],t,b.M.PROJECTION_NAMES.LNGLAT)[0],dragging:e.dragging};_.d.setMapPointerPosition(this.mapId,n),Ue(ut,this,Mt).call(this,n)}catch(e){I.vF.logError("Failed in MapViewer.#handleMapPointerMove",e)}}function mt(e){try{var t=this.getView().getProjection().getCode(),n={projected:e.coordinate,pixel:e.pixel,lnglat:b.M.transformPoints([e.coordinate],t,b.M.PROJECTION_NAMES.LNGLAT)[0],dragging:e.dragging};_.d.setClickCoordinates(this.mapId,n).catch((function(e){I.vF.logPromiseFailed("setClickCoordinates in #handleMapSingleClick in MapViewer",e)})),Ue(ut,this,Lt).call(this,n)}catch(e){I.vF.logError("Failed in MapViewer.#handleMapSingleClick",e)}}function yt(e){try{var t=this.getView().getZoom();_.d.setZoom(this.mapId,t),Ue(ut,this,Rt).call(this,{zoom:t})}catch(e){I.vF.logError("Failed in MapViewer.#handleMapZoomEnd",e)}}function vt(e){try{var t=this.getView().getRotation();_.d.setRotation(this.mapId,t),Ue(ut,this,jt).call(this,{rotation:t})}catch(e){I.vF.logError("Failed in MapViewer.#handleMapRotation",e)}}function bt(e){return wt.apply(this,arguments)}function wt(){return(wt=(0,i.A)(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.d.getScaleInfoFromDomElement(this.mapId);case 3:n=e.sent,r=this.map.getSize(),_.d.setMapChangeSize(this.mapId,r,n),Ue(ut,this,Ft).call(this,{size:r}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),I.vF.logError("Failed in MapViewer.#handleMapChangeSize",e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})))).apply(this,arguments)}function xt(){var e=this;I.vF.logMarkerStart("mapReady-".concat(this.mapId));var t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("registered",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){I.vF.logTraceDetailed("checkMapReady - 1 - waiting on layer registration...",e.geoviewLayerId)})),i=(0,r.A)(n,2),o=i[0],a=i[1];o&&(clearInterval(t),I.vF.logInfo("Map is ready with ".concat(a," registered layers"),e.mapId),I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for map to be ready. Layers are still being processed..."),Ue(ut,e,At).call(e).catch((function(e){I.vF.logPromiseFailed("checkMapReadyGo in checkMapReady in MapViewer",e)})))}}),250)}function At(){return St.apply(this,arguments)}function St(){return(St=(0,i.A)(d().mark((function e(){var t,n,r,i,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $e(He,this,!0),Ue(ut,this,_t).call(this),_.d.initMapControls(this.mapId),Oe.K.setGuide(this.mapId).catch((function(e){I.vF.logPromiseFailed("in setGuide in #checkMapReadyGo",e)})),this.map.on("change:size",Ue(ut,this,bt).bind(this)),this.map.dispatchEvent("change:size"),(r=this.map.getTargetElement()).addEventListener("wheel",(function(e){e.preventDefault(),r.focus()})),r.addEventListener("mouseleave",(function(e){r.blur()})),Ue(ut,this,kt).call(this).catch((function(e){I.vF.logError("Failed in #checkLayerResultSetReady",e)})),Ue(ut,this,Ct).call(this),i=Date.now()-Ge(ct,this),e.next=14,(0,Te.delay)(zt._-i);case 14:_.d.setMapLoaded(this.mapId,!0),null!==(t=this.mapFeaturesConfig.map.viewSettings.initialView)&&void 0!==t&&t.extent&&setTimeout((function(){var e;return a.zoomToExtent(b.M.transformExtent(null===(e=a.mapFeaturesConfig.map.viewSettings.initialView)||void 0===e?void 0:e.extent,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(a.mapFeaturesConfig.map.viewSettings.projection)),{padding:[0,0,0,0]}).catch((function(e){return I.vF.logPromiseFailed("promiseMapLayers in #checkMapLayersProcessed in map-viewer",e)}))}),200),null!==(n=this.mapFeaturesConfig.map.viewSettings.initialView)&&void 0!==n&&n.layerIds&&(o=this.mapFeaturesConfig.map.viewSettings.initialView.layerIds.length?this.mapFeaturesConfig.map.viewSettings.initialView.layerIds:this.layer.getGeoviewLayerIds(),this.onMapLayersLoaded((function(){var e=a.layer.getExtentOfMultipleLayers(o);e.includes(1/0)&&(e=a.convertExtentLngLatToMapProj(g.Nt[a.mapFeaturesConfig.map.viewSettings.projection])),e.length&&setTimeout((function(){return a.zoomToExtent(e).catch((function(e){return I.vF.logPromiseFailed("promiseMapLayers in #checkMapLayersProcessed in map-viewer",e)}))}),200)})));case 17:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Ct(){var e=this,t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("processed",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){I.vF.logTraceDetailed("checkMapReady - 2 - waiting on layer processed...",e.geoviewLayerId)})),i=(0,r.A)(n,2),o=i[0],a=i[1];o&&(clearInterval(t),I.vF.logInfo("Map is ready with ".concat(a," processed layers"),e.mapId),I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for all ".concat(a," layers to be processed")),$e(Ye,e,!0),Ue(ut,e,Ot).call(e),Ue(ut,e,Et).call(e))}}),250)}function Et(){var e=this,t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("loaded",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){I.vF.logTraceDetailed("checkMapReady - 3 - waiting on layer loaded/error status...",e.geoviewLayerId)})),i=(0,r.A)(n,2),o=i[0],a=i[1];o&&(clearInterval(t),I.vF.logInfo("Map is ready with ".concat(a," loaded layers"),e.mapId),I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for all ".concat(a," layers to be loaded")),$e(Ke,e,!0),Ue(ut,e,Pt).call(e))}}),250)}function kt(){var e=this;return new Promise((function(t){var n=setInterval((function(){if(e.layer&&e.layer.checkFeatureInfoLayerResultSetsReady((function(e){I.vF.logTraceDetailed("checkMapReady - 4 - waiting on layer resultSet...",e.layerPath)}))){clearInterval(n);var r=Object.keys(e.layer.featureInfoLayerSet.resultSet).length;I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for layer result set of ".concat(r," layers to be instanciated")),t()}}),250)}))}function Tt(){M.A.emitEvent(this,Ge(Xe,this),void 0)}function _t(){M.A.emitEvent(this,Ge(Ze,this),void 0)}function Ot(){M.A.emitEvent(this,Ge(Je,this),void 0)}function Pt(){M.A.emitEvent(this,Ge(Qe,this),void 0)}function It(e){M.A.emitEvent(this,Ge(et,this),e)}function Mt(e){M.A.emitEvent(this,Ge(tt,this),e)}function Lt(e){M.A.emitEvent(this,Ge(nt,this),e)}function Rt(e){M.A.emitEvent(this,Ge(rt,this),e)}function jt(e){M.A.emitEvent(this,Ge(it,this),e)}function Ft(e){M.A.emitEvent(this,Ge(ot,this),e)}function Dt(e){M.A.emitEvent(this,Ge(at,this),e)}function Nt(e){M.A.emitEvent(this,Ge(st,this),e)}function Bt(e){M.A.emitEvent(this,Ge(lt,this),e)}var zt={_:2e3}},8058:(e,t,n)=>{"use strict";n.d(t,{M:()=>rr});var r=n(13718),i=n(47280),o=n(42432);var a=1,s=2,l=3,c=5,u=6378137,d=6356752.314,h=.0066943799901413165,p=484813681109536e-20,f=Math.PI/2,g=.16666666666666666,m=.04722222222222222,y=.022156084656084655,v=1e-10,b=.017453292519943295,w=57.29577951308232,x=Math.PI/4,A=2*Math.PI,S=3.14159265359,C={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const E={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var k=/[\s_\-\/\(\)]/g;function T(e,t){if(e[t])return e[t];for(var n,r=Object.keys(e),i=t.toLowerCase().replace(k,""),o=-1;++o=this.text.length)return;e=this.text[this.place++]}switch(this.state){case P:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},F.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(R.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},F.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=P)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=P,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},F.prototype.number=function(e){if(!j.test(e)){if(R.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},F.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},F.prototype.keyword=function(e){if(L.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=P)}if(!R.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},F.prototype.neutral=function(e){if(M.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(j.test(e))return this.word=e,void(this.state=3);if(!R.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},F.prototype.output=function(){for(;this.place0?90:-90)):(e.lat0=z(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(i),i}function $(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?$[e]=_(arguments[1]):$[e]=V(arguments[1]):$[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?$.apply(t,e):$(e)}));if("string"==typeof e){if(e in $)return $[e]}else"EPSG"in e?$["EPSG:"+e.EPSG]=e:"ESRI"in e?$["ESRI:"+e.ESRI]=e:"IAU2000"in e?$["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}($);const G=$;var U=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var W=["3857","900913","3785","102113"];const q=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in G}(e))return G[e];if(function(e){return U.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=V(e);if(function(e){var t=T(e,"authority");if(t){var n=T(t,"epsg");return n&&W.indexOf(n)>-1}}(t))return G["EPSG:3857"];var n=function(e){var t=T(e,"extension");if(t)return T(t,"proj4")}(t);return n?_(n):t}return function(e){return"+"===e[0]}(e)?_(e):void 0};function H(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e}function Y(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}function K(e){return e<0?-1:1}function X(e){return Math.abs(e)<=S?e:e-K(e)*A}function Z(e,t,n){var r=e*n,i=.5*e;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(f-t))/r}function J(e,t){for(var n,r,i=.5*e,o=f-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(o),o+=r=f-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-o,Math.abs(r)<=1e-10)return o;return-9999}function Q(e){return e}var ee=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,i=e.y;if(i*w>90&&i*w<-90&&r*w>180&&r*w<-180)return null;if(Math.abs(Math.abs(i)-f)<=v)return null;if(this.sphere)t=this.x0+this.a*this.k0*X(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(x+.5*i));else{var o=Math.sin(i),a=Z(this.e,i,o);t=this.x0+this.a*this.k0*X(r-this.long0),n=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,i=e.y-this.y0;if(this.sphere)n=f-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(n=J(this.e,o)))return null}return t=X(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:Q,inverse:Q,names:["longlat","identity"]}],te={},ne=[];function re(e,t){var n=ne.length;return e.names?(ne[n]=e,e.names.forEach((function(e){te[e.toLowerCase()]=n})),this):(console.log(t),!0)}const ie={start:function(){ee.forEach(re)},add:re,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==te[t]&&ne[te[t]]?ne[te[t]]:void 0}};var oe={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},ae=oe.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};oe.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var se={};se.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},se.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},se.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},se.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},se.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},se.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},se.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},se.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},se.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},se.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},se.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},se.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},se.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},se.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},se.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},se.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},se.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},se.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};const le=function(e,t,n,r,i,o,u){var d={};return d.datum_type=void 0===e||"none"===e?c:4,t&&(d.datum_params=t.map(parseFloat),0===d.datum_params[0]&&0===d.datum_params[1]&&0===d.datum_params[2]||(d.datum_type=a),d.datum_params.length>3&&(0===d.datum_params[3]&&0===d.datum_params[4]&&0===d.datum_params[5]&&0===d.datum_params[6]||(d.datum_type=s,d.datum_params[3]*=p,d.datum_params[4]*=p,d.datum_params[5]*=p,d.datum_params[6]=d.datum_params[6]/1e6+1))),u&&(d.datum_type=l,d.grids=u),d.a=n,d.b=r,d.es=i,d.ep2=o,d};var ce={};function ue(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ce[e]||null,isNull:!1}}function de(e){return e/3600*Math.PI/180}function he(e,t,n){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,n)))}function pe(e){return e.map((function(e){return[de(e.longitudeShift),de(e.latitudeShift)]}))}function fe(e,t,n){return{name:he(e,t+8,t+16).trim(),parent:he(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,n),upperLatitude:e.getFloat64(t+88,n),lowerLongitude:e.getFloat64(t+104,n),upperLongitude:e.getFloat64(t+120,n),latitudeInterval:e.getFloat64(t+136,n),longitudeInterval:e.getFloat64(t+152,n),gridNodeCount:e.getInt32(t+168,n)}}function ge(e,t,n,r){for(var i=t+176,o=[],a=0;a-1.001*f)l=-f;else if(l>f&&l<1.001*f)l=f;else{if(l<-f)return{x:-1/0,y:-1/0,z:e.z};if(l>f)return{x:1/0,y:1/0,z:e.z}}return s>Math.PI&&(s-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,{x:((r=n/Math.sqrt(1-t*o))+c)*a*Math.cos(s),y:(r+c)*a*Math.sin(s),z:(r*(1-t)+c)*i}}function be(e,t,n,r){var i,o,a,s,l,c,u,d,h,p,f,g,m,y,v,b=1e-12,w=e.x,x=e.y,A=e.z?e.z:0;if(i=Math.sqrt(w*w+x*x),o=Math.sqrt(w*w+x*x+A*A),i/n1e-24&&m<30);return{x:y,y:Math.atan(f/Math.abs(p)),z:v}}function we(e){return e===a||e===s}function xe(e,t,n){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===a?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==s||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return n;if(e.datum_type===c||t.datum_type===c)return n;var r=e.a,i=e.es;if(e.datum_type===l){if(0!==Ae(e,!1,n))return;r=u,i=h}var o=t.a,p=t.b,f=t.es;if(t.datum_type===l&&(o=u,p=d,f=h),i===f&&r===o&&!we(e.datum_type)&&!we(t.datum_type))return n;if((n=ve(n,i,r),we(e.datum_type)&&(n=function(e,t,n){if(t===a)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(t===s){var r=n[0],i=n[1],o=n[2],l=n[3],c=n[4],u=n[5],d=n[6];return{x:d*(e.x-u*e.y+c*e.z)+r,y:d*(u*e.x+e.y-l*e.z)+i,z:d*(-c*e.x+l*e.y+e.z)+o}}}(n,e.datum_type,e.datum_params)),we(t.datum_type)&&(n=function(e,t,n){if(t===a)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(t===s){var r=n[0],i=n[1],o=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=(e.x-r)/d,p=(e.y-i)/d,f=(e.z-o)/d;return{x:h+u*p-c*f,y:-u*h+p+l*f,z:c*h-l*p+f}}}(n,t.datum_type,t.datum_params)),n=be(n,f,o,p),t.datum_type===l)&&0!==Ae(t,!0,n))return;return n}function Ae(e,t,n){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},i={x:Number.NaN,y:Number.NaN},o=[];e:for(var a=0;ar.y||p>r.x||m1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=X(o.x+n.ll[0]),r.y=o.y+n.ll[1]}else isNaN(o.x)||(r.x=e.x+o.x,r.y=e.y+o.y);return r}function Ce(e,t){var n,r={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(r.x),o=Math.floor(r.y),a=r.x-1*i,s=r.y-1*o,l={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return l;if(o<0||o>=t.lim[1])return l;n=o*t.lim[0]+i;var c=t.cvs[n][0],u=t.cvs[n][1];n++;var d=t.cvs[n][0],h=t.cvs[n][1];n+=t.lim[0];var p=t.cvs[n][0],f=t.cvs[n][1];n--;var g=t.cvs[n][0],m=t.cvs[n][1],y=a*s,v=a*(1-s),b=(1-a)*(1-s),w=(1-a)*s;return l.x=b*c+v*d+w*g+y*p,l.y=b*u+v*h+w*m+y*f,l}function Ee(e,t,n){var r,i,o,a=n.x,s=n.y,l=n.z||0,c={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(r=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(r=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(r=l,i="z"),e.axis[o]){case"e":case"n":c[i]=r;break;case"w":case"s":c[i]=-r;break;case"u":void 0!==n[i]&&(c.z=r);break;case"d":void 0!==n[i]&&(c.z=-r);break;default:return null}return c}function ke(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function Te(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function _e(e,t,n,r){var i,o=void 0!==(n=Array.isArray(n)?ke(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(e){Te(e.x),Te(e.y)}(n),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===a||e.datum.datum_type===s||e.datum.datum_type===l)&&"WGS84"!==t.datumCode||(t.datum.datum_type===a||t.datum.datum_type===s||t.datum.datum_type===l)&&"WGS84"!==e.datumCode}(e,t)&&(n=_e(e,i=new ye("WGS84"),n,r),e=i),r&&"enu"!==e.axis&&(n=Ee(e,!1,n)),"longlat"===e.projName)n={x:n.x*b,y:n.y*b,z:n.z||0};else if(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter,z:n.z||0}),!(n=e.inverse(n)))return;if(e.from_greenwich&&(n.x+=e.from_greenwich),n=xe(e.datum,t.datum,n))return t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y,z:n.z||0}),"longlat"===t.projName?n={x:n.x*w,y:n.y*w,z:n.z||0}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter,z:n.z||0})),r&&"enu"!==t.axis?Ee(t,!0,n):(n&&!o&&delete n.z,n)}var Oe=ye("WGS84");function Pe(e,t,n,r){var i,o,a;return Array.isArray(n)?(i=_e(e,t,n,r)||{x:NaN,y:NaN},n.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(n.splice(3)):[i.x,i.y,n[2]].concat(n.splice(3)):[i.x,i.y].concat(n.splice(2)):[i.x,i.y]):(o=_e(e,t,n,r),2===(a=Object.keys(n)).length||a.forEach((function(r){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=n[r]})),o)}function Ie(e){return e instanceof ye?e:e.oProj?e.oProj:ye(e)}const Me=function(e,t,n){e=Ie(e);var r,i=!1;return void 0===t?(t=e,e=Oe,i=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=Oe,i=!0),t=Ie(t),n?Pe(e,t,n):(r={forward:function(n,r){return Pe(e,t,n,r)},inverse:function(n,r){return Pe(t,e,n,r)}},i&&(r.oProj=t),r)};var Le=6,Re="AJSAJS",je="AFAFAF",Fe=65,De=73,Ne=79,Be=86,ze=90;const Ve={forward:$e,inverse:function(e){var t=qe(Ke(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:Ge};function $e(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,f=e.northing,g=e.zoneNumber,m=Ye(g),y=Math.floor(p/1e5),v=Math.floor(f/1e5)%20,i=y,o=v,a=m,s=a-1,l=Re.charCodeAt(s),c=je.charCodeAt(s),u=l+i-1,d=c+o,h=!1,u>ze&&(u=u-ze+Fe-1,h=!0),(u===De||lDe||(u>De||lNe||(u>Ne||lze&&(u=u-ze+Fe-1),d>Be?(d=d-Be+Fe-1,h=!0):h=!1,(d===De||cDe||(d>De||cNe||(d>Ne||cBe&&(d=d-Be+Fe-1),String.fromCharCode(u)+String.fromCharCode(d))+n.substr(n.length-5,t)+r.substr(r.length-5,t);var i,o,a,s,l,c,u,d,h;var p,f,g,m,y,v}(function(e){var t,n,r,i,o,a,s,l,c=e.lat,u=e.lon,d=6378137,h=.00669438,p=.9996,f=Ue(c),g=Ue(u);l=Math.floor((u+180)/6)+1,180===u&&(l=60);c>=56&&c<64&&u>=3&&u<12&&(l=32);c>=72&&c<84&&(u>=0&&u<9?l=31:u>=9&&u<21?l=33:u>=21&&u<33?l=35:u>=33&&u<42&&(l=37));s=Ue(6*(l-1)-180+3),t=h/(1-h),n=d/Math.sqrt(1-h*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),i=t*Math.cos(f)*Math.cos(f),o=Math.cos(f)*(g-s),a=d*((1-h/4-3*h*h/64-5*h*h*h/256)*f-(3*h/8+3*h*h/32+45*h*h*h/1024)*Math.sin(2*f)+(15*h*h/256+45*h*h*h/1024)*Math.sin(4*f)-35*h*h*h/3072*Math.sin(6*f));var m=p*n*(o+(1-r+i)*o*o*o/6+(5-18*r+r*r+72*i-58*t)*o*o*o*o*o/120)+5e5,y=p*(a+n*Math.tan(f)*(o*o/2+(5-r+9*i+4*i*i)*o*o*o*o/24+(61-58*r+r*r+600*i-330*t)*o*o*o*o*o*o/720));c<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(m),zoneNumber:l,zoneLetter:He(c)}}({lat:e[1],lon:e[0]}),t)}function Ge(e){var t=qe(Ke(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Ue(e){return e*(Math.PI/180)}function We(e){return e/Math.PI*180}function qe(e){var t=e.northing,n=e.easting,r=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,l,c,u,d,h,p,f=.9996,g=6378137,m=.00669438,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=n-5e5,b=t;r<"N"&&(b-=1e7),d=6*(i-1)-180+3,o=.006739496752268451,p=(h=b/f/6367449.145945056)+(3*y/2-27*y*y*y/32)*Math.sin(2*h)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*h)+151*y*y*y/96*Math.sin(6*h),a=g/Math.sqrt(1-m*Math.sin(p)*Math.sin(p)),s=Math.tan(p)*Math.tan(p),l=o*Math.cos(p)*Math.cos(p),c=.99330562*g/Math.pow(1-m*Math.sin(p)*Math.sin(p),1.5),u=v/(a*f);var w=p-a*Math.tan(p)/c*(u*u/2-(5+3*s+10*l-4*l*l-9*o)*u*u*u*u/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*u*u*u*u*u*u/720);w=We(w);var x,A=(u-(1+2*s+l)*u*u*u/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*u*u*u*u*u/120)/Math.cos(p);if(A=d+We(A),e.accuracy){var S=qe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});x={top:S.lat,right:S.lon,bottom:w,left:A}}else x={lat:w,lon:A};return x}function He(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function Ye(e){var t=e%Le;return 0===t&&(t=Le),t}function Ke(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;r=e.substring(o,o+=2);for(var l=Ye(a),c=function(e,t){var n=Re.charCodeAt(t-1),r=1e5,i=!1;for(;n!==e.charCodeAt(0);){if(++n===De&&n++,n===Ne&&n++,n>ze){if(i)throw"Bad character: "+e;n=Fe,i=!0}r+=1e5}return r}(r.charAt(0),l),u=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n=je.charCodeAt(t-1),r=0,i=!1;for(;n!==e.charCodeAt(0);){if(++n===De&&n++,n===Ne&&n++,n>Be){if(i)throw"Bad character: "+e;n=Fe,i=!0}r+=1e5}return r}(r.charAt(1),l);u0&&(h=1e5/Math.pow(10,g),p=e.substring(o,o+g),m=parseFloat(p)*h,f=e.substring(o+g),y=parseFloat(f)*h),{easting:m+c,northing:y+u,zoneLetter:s,zoneNumber:a,accuracy:h}}function Xe(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function Ze(e,t,n){if(!(this instanceof Ze))return new Ze(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ze.fromMGRS=function(e){return new Ze(Ge(e))},Ze.prototype.toMGRS=function(e){return $e([this.x,this.y],e)};const Je=Ze;var Qe=1,et=.25,tt=.046875,nt=.01953125,rt=.01068115234375,it=.75,ot=.46875,at=.013020833333333334,st=.007120768229166667,lt=.3645833333333333,ct=.005696614583333333,ut=.3076171875;function dt(e){var t=[];t[0]=Qe-e*(et+e*(tt+e*(nt+e*rt))),t[1]=e*(it-e*(tt+e*(nt+e*rt)));var n=e*e;return t[2]=n*(ot-e*(at+e*st)),n*=e,t[3]=n*(lt-e*ct),t[4]=n*e*ut,t}function ht(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))}var pt=20;function ft(e,t,n){for(var r=1/(1-t),i=e,o=pt;o;--o){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(ht(i,a,Math.cos(i),n)-e)*(s*Math.sqrt(s))*r,Math.abs(s)v?Math.tan(o):0,f=Math.pow(p,2),g=Math.pow(f,2);t=1-this.es*Math.pow(s,2),c/=Math.sqrt(t);var m=ht(o,s,l,this.en);n=this.a*(this.k0*c*(1+u/6*(1-f+d+u/20*(5-18*f+g+14*d-58*f*d+u/42*(61+179*g-g*f-479*f)))))+this.x0,r=this.a*(this.k0*(m-this.ml0+s*a*c/2*(1+u/12*(5-f+9*d+4*h+u/30*(61+g-58*f+270*d-330*f*d+u/56*(1385+543*g-g*f-3111*f))))))+this.y0}else{var y=l*Math.sin(a);if(Math.abs(Math.abs(y)-1)=1){if(y-1>v)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(n=ft(t=this.ml0+a/this.k0,this.es,this.en),Math.abs(n)v?Math.tan(n):0,u=this.ep2*Math.pow(l,2),d=Math.pow(u,2),h=Math.pow(c,2),p=Math.pow(h,2);t=1-this.es*Math.pow(s,2);var g=o*Math.sqrt(t)/this.k0,m=Math.pow(g,2);r=n-(t*=c)*m/(1-this.es)*.5*(1-m/12*(5+3*h-9*u*h+u-4*d-m/30*(61+90*h-252*u*h+45*p+46*u-m/56*(1385+3633*h+4095*p+1574*p*h)))),i=X(this.long0+g*(1-m/6*(1+2*h+u-m/20*(5+28*h+24*p+8*u*h+6*u-m/42*(61+662*h+1320*p+720*p*h))))/l)}else r=f*K(a),i=0;else{var y=Math.exp(o/this.k0),b=.5*(y-1/y),w=this.lat0+a/this.k0,x=Math.cos(w);t=Math.sqrt((1-Math.pow(x,2))/(1+Math.pow(b,2))),r=Math.asin(t),a<0&&(r=-r),i=0===b&&0===x?0:X(Math.atan2(b,x)+this.long0)}return e.x=i,e.y=r,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function mt(e){var t=Math.exp(e);return t=(t-1/t)/2}function yt(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function vt(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(yt(1,t)+1))),e<0?-t:t}function bt(e,t){for(var n,r=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)n=r*o-a+e[i],a=o,o=n;return t+n*Math.sin(2*t)}function wt(e,t,n){for(var r,i,o=Math.sin(t),a=Math.cos(t),s=mt(n),l=function(e){var t=Math.exp(e);return(t+1/t)/2}(n),c=2*a*l,u=-2*o*s,d=e.length-1,h=e[d],p=0,f=0,g=0;--d>=0;)r=f,i=p,h=c*(f=h)-r-u*(p=g)+e[d],g=u*f-i+c*p;return[(c=o*l)*h-(u=a*s)*g,c*g+u*h]}const xt={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(gt.init.apply(this),this.forward=gt.forward,this.inverse=gt.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=bt(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)n=r*o-a+e[i],a=o,o=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=X(e.x-this.long0),n=e.y;n=bt(this.cbg,n);var r=Math.sin(n),i=Math.cos(n),o=Math.sin(t),a=Math.cos(t);n=Math.atan2(r,a*i),t=Math.atan2(o*i,yt(r,i*a)),t=vt(Math.tan(t));var s,l,c=wt(this.gtu,2*n,2*t);return n+=c[0],t+=c[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(s=1/0,l=1/0),e.x=s,e.y=l,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var o=wt(this.utg,2*i,2*r);i+=o[0],r+=o[1],r=Math.atan(mt(r));var a=Math.sin(i),s=Math.cos(i),l=Math.sin(r),c=Math.cos(r);i=Math.atan2(a*c,yt(l,c*s)),t=X((r=Math.atan2(l,c*s))+this.long0),n=bt(this.cgb,i)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};const At={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(X(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*b,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,xt.init.apply(this),this.forward=xt.forward,this.inverse=xt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function St(e,t){return Math.pow((1-e)/(1+e),t)}const Ct={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+x)/(Math.pow(Math.tan(.5*this.lat0+x),this.C)*St(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+x),this.C)*St(this.e*Math.sin(n),this.ratexp))-f,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+x)/this.K,1/this.C),i=20;i>0&&(n=2*Math.atan(r*St(this.e*Math.sin(e.y),-.5*this.e))-f,!(Math.abs(n-e.y)<1e-14));--i)e.y=n;return i?(e.x=t,e.y=n,e):null},names:["gauss"]};const Et={init:function(){Ct.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,i;return e.x=X(e.x-this.long0),Ct.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=i*n*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=yt(e.x,e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),n=Math.cos(a),i=Math.asin(n*this.sinc0+e.y*t*this.cosc0/o),r=Math.atan2(e.x*t,o*this.cosc0*n-e.y*this.sinc0*t)}else i=this.phic0,r=0;return e.x=r,e.y=i,Ct.inverse.apply(this,[e]),e.x=X(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};const kt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=v&&(this.k0=.5*(1+K(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=v&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=v&&Math.abs(Math.cos(this.lat_ts))>v&&(this.k0=.5*this.cons*Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Z(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Y(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-f,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,i,o,a,s=e.x,l=e.y,c=Math.sin(l),u=Math.cos(l),d=X(s-this.long0);return Math.abs(Math.abs(s-this.long0)-Math.PI)<=v&&Math.abs(l+this.lat0)<=v?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*u*Math.cos(d)),e.x=this.a*t*u*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*u*Math.cos(d))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,c,this.e))-f,i=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=v?(o=Z(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(s-this.long0),e.y=this.y0-this.con*a*Math.cos(s-this.long0),e):(Math.abs(this.sinlat0)0?X(this.long0+Math.atan2(e.x,-1*e.y)):X(this.long0+Math.atan2(e.x,e.y)):X(this.long0+Math.atan2(e.x*Math.sin(s),a*this.coslat0*Math.cos(s)-e.y*this.sinlat0*Math.sin(s))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=v){if(a<=v)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*J(this.e,r),t=this.con*X(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=v?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=X(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),n=-1*J(this.e,Math.tan(.5*(f+o)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(f+e))*Math.pow((1-t)/(1+t),.5*n)}};const Tt={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,i=2*r-Math.pow(r,2),o=this.e=Math.sqrt(i);this.R=this.k0*n*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,i=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),a=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,l=0,c=o,u=-1e3,d=0;Math.abs(c-u)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=c,e},names:["somerc"]};var _t=1e-7;const Ot={init:function(){var e,t,n,r,i,o,a,s,l,c,u,d,h,p=0,g=0,m=0,y=0,w=0,S=0,C=0;this.no_off=(h="object"==typeof(d=this).PROJECTION?Object.keys(d.PROJECTION)[0]:d.PROJECTION,"no_uoff"in d||"no_off"in d||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(h)),this.no_rot="no_rot"in this;var E=!1;"alpha"in this&&(E=!0);var k=!1;if("rectified_grid_angle"in this&&(k=!0),E&&(C=this.alpha),k&&(p=this.rectified_grid_angle*b),E||k)g=this.longc;else if(m=this.long1,w=this.lat1,y=this.long2,S=this.lat2,Math.abs(w-S)<=_t||(e=Math.abs(w))<=_t||Math.abs(e-f)<=_t||Math.abs(Math.abs(this.lat0)-f)<=_t||Math.abs(Math.abs(S)-f)<=_t)throw new Error;var T=1-this.es;t=Math.sqrt(T),Math.abs(this.lat0)>v?(s=Math.sin(this.lat0),n=Math.cos(this.lat0),e=1-this.es*s*s,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/T),this.A=this.B*this.k0*t/e,(i=(r=this.B*t/(n*Math.sqrt(e)))*r-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(Z(this.e,this.lat0,s),this.B)):(this.B=1/t,this.A=this.k0,this.E=r=i=1),E||k?(E?(u=Math.asin(Math.sin(C)/r),k||(p=C)):(u=p,C=Math.asin(r*Math.sin(u))),this.lam0=g-Math.asin(.5*(i-1/i)*Math.tan(u))/this.B):(o=Math.pow(Z(this.e,w,Math.sin(w)),this.B),a=Math.pow(Z(this.e,S,Math.sin(S)),this.B),i=this.E/o,l=(a-o)/(a+o),c=((c=this.E*this.E)-a*o)/(c+a*o),(e=m-y)<-Math.pi?y-=A:e>Math.pi&&(y+=A),this.lam0=X(.5*(m+y)-Math.atan(c*Math.tan(.5*this.B*(m-y))/l)/this.B),u=Math.atan(2*Math.sin(this.B*X(m-this.lam0))/(i-1/i)),p=C=Math.asin(r*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(p),this.cosrot=Math.cos(p),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(C))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(x-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(x+i))},forward:function(e){var t,n,r,i,o,a,s,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-f)>v){if(t=.5*((o=this.E/Math.pow(Z(this.e,e.y,Math.sin(e.y)),this.B))-(a=1/o)),n=.5*(o+a),i=Math.sin(this.B*e.x),r=(t*this.singam-i*this.cosgam)/n,Math.abs(Math.abs(r)-1)0?this.v_pole_n:this.v_pole_s,s=this.ArB*e.y;return this.no_rot?(c.x=s,c.y=l):(s-=this.u_0,c.x=l*this.cosrot+s*this.sinrot,c.y=s*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,n,r,i,o,a,s,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(n=e.y,t=e.x):(n=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((r=Math.exp(-this.BrA*n))-1/r),o=.5*(r+1/r),s=((a=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(s)-1)v?this.ns=Math.log(r/s)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=v&&(n=K(n)*(f-2*v));var r,i,o=Math.abs(Math.abs(n)-f);if(o>v)r=Z(this.e,n,Math.sin(n)),i=this.a*this.f0*Math.pow(r,this.ns);else{if((o=n*this.ns)<=0)return null;i=0}var a=this.ns*X(t-this.long0);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e},inverse:function(e){var t,n,r,i,o,a=(e.x-this.x0)/this.k0,s=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+s*s),n=1):(t=-Math.sqrt(a*a+s*s),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*a,n*s)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(i=J(this.e,r)))return null}else i=-f;return o=X(l/this.ns+this.long0),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};const It={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,i,o,a,s,l=e.x,c=e.y,u=X(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),r=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,i,o,a,s,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),n=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(t)),e.x=this.long0-n/this.alfa,a=t,s=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,c+=1}while(0===s&&c<15);return c>=15?null:e},names:["Krovak","krovak"]};function Mt(e,t,n,r,i){return e*i-t*Math.sin(2*i)+n*Math.sin(4*i)-r*Math.sin(6*i)}function Lt(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Rt(e){return.375*e*(1+.25*e*(1+.46875*e))}function jt(e){return.05859375*e*e*(1+.75*e)}function Ft(e){return e*e*e*(35/3072)}function Dt(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)}function Nt(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t}var $t=.3333333333333333,Gt=.17222222222222222,Ut=.10257936507936508,Wt=.06388888888888888,qt=.0664021164021164,Ht=.016415012942191543;const Yt={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-f)0)switch(this.qp=Vt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=e*$t,t=e*e,n[0]+=t*Gt,n[1]=t*Wt,t*=e,n[0]+=t*Ut,n[1]+=t*qt,n[2]=t*Ht,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Vt(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,i,o,a,s,l,c,u,d=e.x,h=e.y;if(d=X(d-this.long0),this.sphere){if(o=Math.sin(h),u=Math.cos(h),r=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+u*r:1+this.sinph0*o+this.cosph0*u*r)<=v)return null;t=(n=Math.sqrt(2/n))*u*Math.sin(d),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*u*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(h+this.lat0)=0?(t=(c=Math.sqrt(a))*i,n=r*(this.mode===this.S_POLE?c:-c)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,i,o,a,s,l,c,u,d=e.x/this.a,h=e.y/this.a;if(this.sphere){var p,g=0,m=0;if((n=.5*(p=Math.sqrt(d*d+h*h)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=Math.sin(n),g=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(p)<=v?0:Math.asin(h*m/p),d*=m,h=g*p;break;case this.OBLIQ:n=Math.abs(p)<=v?this.lat0:Math.asin(g*this.sinph0+h*m*this.cosph0/p),d*=m*this.cosph0,h=(g-Math.sin(n)*this.sinph0)*p;break;case this.N_POLE:h=-h,n=f-n;break;case this.S_POLE:n-=f}t=0!==h||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(d,h):0}else{if(s=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(d/=this.dd,h*=this.dd,(a=Math.sqrt(d*d+h*h))1&&(e=e>1?1:-1),Math.asin(e)}const Xt={init:function(){Math.abs(this.lat1+this.lat2)v?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=Vt(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*X(t-this.long0),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),i=0,0!==t&&(i=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,a=this.phi1z(this.e3,n)),o=X(i/this.ns0+this.long0),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,i,o,a=Kt(.5*t);if(e0||Math.abs(o)<=v?(a=this.x0+1*this.a*n*Math.sin(r)/o,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)/o):(a=this.x0+this.infinity_dist*n*Math.sin(r),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*i)),e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),n=Math.sin(i),a=Kt((r=Math.cos(i))*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),o=X(this.long0+o)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]};const Jt={init:function(){this.sphere||(this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,i=e.y,o=X(r-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Vt(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=X(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*f:f;for(var r,i,o,a,s=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(s),o=Math.cos(s),a=e*i,s+=r=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-10)return s;return NaN}(this.e,2*e.y*this.k0/this.a),t=X(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};const Qt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=X(t-this.long0),i=Nt(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,n=e.y;return e.x=X(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Nt(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};const en={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Lt(this.es),this.e1=Rt(this.es),this.e2=jt(this.es),this.e3=Ft(this.es),this.ml0=this.a*Mt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,i=e.x,o=e.y,a=X(i-this.long0);if(r=a*Math.sin(o),this.sphere)Math.abs(o)<=v?(t=this.a*a,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(o),n=this.a*(Nt(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=v)t=this.a*a,n=-1*this.ml0;else{var s=Dt(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(r),n=this.a*Mt(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,i,o,a,s,l,c;if(r=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=v)t=X(r/this.a+this.long0),n=0;else{var u;for(a=this.lat0+i/this.a,s=r*r/this.a/this.a+a*a,l=a,o=20;o;--o)if(l+=c=-1*(a*(l*(u=Math.tan(l))+1)-l-.5*(l*l+s)*u)/((l-a)/u-1),Math.abs(c)<=v){n=l;break}t=X(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(i+this.ml0)<=v)n=0,t=X(this.long0+r/this.a);else{var d,h,p,f,g;for(a=(this.ml0+i)/this.a,s=r*r/this.a/this.a+a*a,l=a,o=20;o;--o)if(g=this.e*Math.sin(l),d=Math.sqrt(1-g*g)*Math.tan(l),h=this.a*Mt(this.e0,this.e1,this.e2,this.e3,l),p=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(a*(d*(f=h/this.a)+1)-f-.5*d*(f*f+s))/(this.es*Math.sin(2*l)*(f*f+s-2*a*f)/(4*d)+(a-f)*(d*p-2/Math.sin(2*l))-p),Math.abs(c)<=v){n=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=X(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};const tn={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,r=e.y-this.lat0,i=n-this.long0,o=r/p*1e-5,a=i,s=1,l=0;for(t=1;t<=10;t++)s*=o,l+=this.A[t]*s;var c,u=l,d=a,h=1,f=0,g=0,m=0;for(t=1;t<=6;t++)c=f*u+h*d,h=h*u-f*d,f=c,g=g+this.B_re[t]*h-this.B_im[t]*f,m=m+this.B_im[t]*h+this.B_re[t]*f;return e.x=m*this.a+this.x0,e.y=g*this.a+this.y0,e},inverse:function(e){var t,n,r=e.x,i=e.y,o=r-this.x0,a=(i-this.y0)/this.a,s=o/this.a,l=1,c=0,u=0,d=0;for(t=1;t<=6;t++)n=c*a+l*s,l=l*a-c*s,c=n,u=u+this.C_re[t]*l-this.C_im[t]*c,d=d+this.C_im[t]*l+this.C_re[t]*c;for(var h=0;h.999999999999&&(n=.999999999999),t=Math.asin(n);var r=X(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var i=Math.asin(n);return e.x=r,e.y=i,e},names:["Mollweide","moll"]};const an={init:function(){Math.abs(this.lat1+this.lat2)=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;return 0!==n&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere?(i=X(this.long0+o/this.ns),r=Nt(this.g-n/this.a),e.x=i,e.y=r,e):(r=Bt(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),i=X(this.long0+o/this.ns),e.x=i,e.y=r,e)},names:["Equidistant_Conic","eqdc"]};const sn={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,i=e.y,o=X(r-this.long0);Math.abs(i)<=v&&(t=this.x0+this.R*o,n=this.y0);var a=Kt(2*Math.abs(i/Math.PI));(Math.abs(o)<=v||Math.abs(Math.abs(i)-f)<=v)&&(t=this.x0,n=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var s=.5*Math.abs(Math.PI/o-o/Math.PI),l=s*s,c=Math.sin(a),u=Math.cos(a),d=u/(c+u-1),h=d*d,p=d*(2/c-1),g=p*p,m=Math.PI*this.R*(s*(d-g)+Math.sqrt(l*(d-g)*(d-g)-(g+l)*(h-g)))/(g+l);o<0&&(m=-m),t=this.x0+m;var y=l+d;return m=Math.PI*this.R*(p*y-s*Math.sqrt((g+l)*(l+1)-y*y))/(g+l),n=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,i,o,a,s,l,c,u,d,h;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,o=(r=e.x/d)*r+(i=e.y/d)*i,d=3*(i*i/(l=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(s=a-2*i*i+r*r)*s*s/l/l/l-9*a*s/l/l)/27)/(c=(a-s*s/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),h=Math.acos(d)/3,n=e.y>=0?(-u*Math.cos(h+Math.PI/3)-s/3/l)*Math.PI:-(-u*Math.cos(h+Math.PI/3)-s/3/l)*Math.PI,t=Math.abs(r)2*f*this.a)return;return n=t/this.a,r=Math.sin(n),i=Math.cos(n),o=this.long0,Math.abs(t)<=v?a=this.lat0:(a=Kt(i*this.sin_p12+e.y*r*this.cos_p12/t),s=Math.abs(this.lat0)-f,o=Math.abs(s)<=v?this.lat0>=0?X(this.long0+Math.atan2(e.x,-e.y)):X(this.long0-Math.atan2(-e.x,e.y)):X(this.long0+Math.atan2(e.x*r,t*this.cos_p12*i-e.y*this.sin_p12*r))),e.x=o,e.y=a,e}return l=Lt(this.es),c=Rt(this.es),u=jt(this.es),d=Ft(this.es),Math.abs(this.sin_p12-1)<=v?(a=Bt(((h=this.a*Mt(l,c,u,d,f))-(t=Math.sqrt(e.x*e.x+e.y*e.y)))/this.a,l,c,u,d),o=X(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=v?(h=this.a*Mt(l,c,u,d,f),a=Bt(((t=Math.sqrt(e.x*e.x+e.y*e.y))-h)/this.a,l,c,u,d),o=X(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),m=Math.atan2(e.x,e.y),p=Dt(this.a,this.e,this.sin_p12),y=Math.cos(m),w=-(b=this.e*this.cos_p12*y)*b/(1-this.es),x=3*this.es*(1-w)*this.sin_p12*this.cos_p12*y/(1-this.es),C=1-w*(S=(A=t/p)-w*(1+w)*Math.pow(A,3)/6-x*(1+3*w)*Math.pow(A,4)/24)*S/2-A*S*S*S/6,g=Math.asin(this.sin_p12*Math.cos(S)+this.cos_p12*Math.sin(S)*y),o=X(this.long0+Math.asin(Math.sin(m)*Math.sin(S)/Math.cos(g))),E=Math.sin(g),a=Math.atan2((E-this.es*C*this.sin_p12)*Math.tan(g),E*(1-this.es)),e.x=o,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};const cn={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,a,s,l=e.x,c=e.y;return r=X(l-this.long0),t=Math.sin(c),n=Math.cos(c),i=Math.cos(r),((o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=v)&&(a=1*this.a*n*Math.sin(r),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)),e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a,s;return e.x-=this.x0,e.y-=this.y0,n=Kt((t=Math.sqrt(e.x*e.x+e.y*e.y))/this.a),r=Math.sin(n),i=Math.cos(n),a=this.long0,Math.abs(t)<=v?(s=this.lat0,e.x=a,e.y=s,e):(s=Kt(i*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.abs(this.lat0)-f,Math.abs(o)<=v?(a=this.lat0>=0?X(this.long0+Math.atan2(e.x,-e.y)):X(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=s,e):(a=X(this.long0+Math.atan2(e.x*r,t*this.cos_p14*i-e.y*this.sin_p14*r)),e.x=a,e.y=s,e))},names:["ortho"]};var un=1,dn=2,hn=3,pn=4,fn=5,gn=6,mn={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function yn(e,t,n,r){var i;return ex&&i<=f+x?(r.value=mn.AREA_1,i-=f):i>f+x||i<=-(f+x)?(r.value=mn.AREA_2,i=i>=0?i-S:i+S):(r.value=mn.AREA_3,i+=f)),i}function vn(e,t){var n=e+t;return n<-S?n+=A:n>+S&&(n-=A),n}const bn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=f-x/2?this.face=fn:this.lat0<=-(f-x/2)?this.face=gn:Math.abs(this.long0)<=x?this.face=un:Math.abs(this.long0)<=f+x?this.face=this.long0>0?dn:pn:this.face=hn,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,i,o,a,s={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===fn)i=f-t,n>=x&&n<=f+x?(l.value=mn.AREA_0,r=n-f):n>f+x||n<=-(f+x)?(l.value=mn.AREA_1,r=n>0?n-S:n+S):n>-(f+x)&&n<=-x?(l.value=mn.AREA_2,r=n+f):(l.value=mn.AREA_3,r=n);else if(this.face===gn)i=f+t,n>=x&&n<=f+x?(l.value=mn.AREA_0,r=-n+f):n=-x?(l.value=mn.AREA_1,r=-n):n<-x&&n>=-(f+x)?(l.value=mn.AREA_2,r=-n-f):(l.value=mn.AREA_3,r=n>0?-n+S:-n-S);else{var c,u,d,h,p,g;this.face===dn?n=vn(n,+f):this.face===hn?n=vn(n,+S):this.face===pn&&(n=vn(n,-f)),h=Math.sin(t),p=Math.cos(t),g=Math.sin(n),c=p*Math.cos(n),u=p*g,d=h,this.face===un?r=yn(i=Math.acos(c),d,u,l):this.face===dn?r=yn(i=Math.acos(u),d,-c,l):this.face===hn?r=yn(i=Math.acos(-c),d,-u,l):this.face===pn?r=yn(i=Math.acos(-u),d,c,l):(i=r=0,l.value=mn.AREA_0)}return a=Math.atan(12/S*(r+Math.acos(Math.sin(r)*Math.cos(x))-f)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(r))))),l.value===mn.AREA_1?a+=f:l.value===mn.AREA_2?a+=S:l.value===mn.AREA_3&&(a+=1.5*S),s.x=o*Math.cos(a),s.y=o*Math.sin(a),s.x=s.x*this.a+this.x0,s.y=s.y*this.a+this.y0,e.x=s.x,e.y=s.y,e},inverse:function(e){var t,n,r,i,o,a,s,l,c,u,d,h,p={lam:0,phi:0},g={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?g.value=mn.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(g.value=mn.AREA_1,t-=f):e.x<0&&-e.x>=Math.abs(e.y)?(g.value=mn.AREA_2,t=t<0?t+S:t-S):(g.value=mn.AREA_3,t+=f),c=S/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),(s=1-(r=Math.cos(t))*r*(i=Math.tan(n))*i*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?s=-1:s>1&&(s=1),this.face===fn)l=Math.acos(s),p.phi=f-l,g.value===mn.AREA_0?p.lam=a+f:g.value===mn.AREA_1?p.lam=a<0?a+S:a-S:g.value===mn.AREA_2?p.lam=a-f:p.lam=a;else if(this.face===gn)l=Math.acos(s),p.phi=l-f,g.value===mn.AREA_0?p.lam=-a+f:g.value===mn.AREA_1?p.lam=-a:g.value===mn.AREA_2?p.lam=-a-f:p.lam=a<0?-a-S:-a+S;else{var m,y,v;c=(m=s)*m,y=(c+=(v=c>=1?0:Math.sqrt(1-c)*Math.sin(a))*v)>=1?0:Math.sqrt(1-c),g.value===mn.AREA_1?(c=y,y=-v,v=c):g.value===mn.AREA_2?(y=-y,v=-v):g.value===mn.AREA_3&&(c=y,y=v,v=-c),this.face===dn?(c=m,m=-y,y=c):this.face===hn?(m=-m,y=-y):this.face===pn&&(c=m,m=y,y=-c),p.phi=Math.acos(-v)-f,p.lam=Math.atan2(y,m),this.face===dn?p.lam=vn(p.lam,-f):this.face===hn?p.lam=vn(p.lam,-S):this.face===pn&&(p.lam=vn(p.lam,+f))}return 0!==this.es&&(u=p.phi<0?1:0,d=Math.tan(p.phi),h=this.b/Math.sqrt(d*d+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),u&&(p.phi=-p.phi)),p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var wn=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],xn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],An=.8487,Sn=1.3523,Cn=w/5,En=1/Cn,kn=18,Tn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};const _n={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=X(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*Cn);r<0?r=0:r>=kn&&(r=17);var i={x:Tn(wn[r],n=w*(n-En*r))*t,y:Tn(xn[r],n)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*An+this.x0,i.y=i.y*this.a*Sn+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(this.a*An),y:Math.abs(e.y-this.y0)/(this.a*Sn)};if(t.y>=1)t.x/=wn[18][0],t.y=e.y<0?-f:f;else{var n=Math.floor(t.y*kn);for(n<0?n=0:n>=kn&&(n=17);;)if(xn[n][0]>t.y)--n;else{if(!(xn[n+1][0]<=t.y))break;++n}var r=xn[n],i=5*(t.y-r[0])/(xn[n+1][0]-r[0]);i=function(e,t,n,r){for(var i=t;r;--r){var o=e(i);if(i-=o,Math.abs(o)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,n,r,i,o=e.x,a=e.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/yt(this.radius_p*Math.cos(a),Math.sin(a));if(n=s*Math.cos(o)*Math.cos(a),r=s*Math.sin(o)*Math.cos(a),i=s*Math.sin(a),(this.radius_g-n)*n-r*r-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/yt(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/yt(r,t)))}else"sphere"===this.shape&&(t=Math.cos(a),n=Math.cos(o)*t,r=Math.sin(o)*t,i=Math.sin(a),t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/yt(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/yt(r,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,n,r,i,o=-1,a=0,s=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*yt(1,s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*yt(1,a));var l=s/this.radius_p;if(t=a*a+l*l+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+a*a)),t=a*a+s*s+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var Dn=1.340264,Nn=-.081106,Bn=893e-6,zn=.003796,Vn=Math.sqrt(3)/2;const $n={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0},forward:function(e){var t=X(e.x-this.long0),n=e.y,r=Math.asin(Vn*Math.sin(n)),i=r*r,o=i*i*i;return e.x=t*Math.cos(r)/(Vn*(Dn+3*Nn*i+o*(7*Bn+9*zn*i))),e.y=r*(Dn+Nn*i+o*(Bn+zn*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t,n,r,i,o=e.y;for(i=0;i<12&&(o-=r=(o*(Dn+Nn*(t=o*o)+(n=t*t*t)*(Bn+zn*t))-e.y)/(Dn+3*Nn*t+n*(7*Bn+9*zn*t)),!(Math.abs(r)<1e-9));++i);return n=(t=o*o)*t*t,e.x=Vn*e.x*(Dn+3*Nn*t+n*(7*Bn+9*zn*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/Vn),e.x=X(e.x+this.long0),e},names:["eqearth","Equal Earth","Equal_Earth"]};var Gn=1e-10;function Un(e){var t,n,r,i=X(e.x-(this.long0||0)),o=e.y;return t=this.am1+this.m1-ht(o,n=Math.sin(o),r=Math.cos(o),this.en),n=r*i/(t*Math.sqrt(1-this.es*n*n)),e.x=t*Math.sin(n),e.y=this.am1-t*Math.cos(n),e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Wn(e){var t,n,r,i;if(e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a,n=yt(e.x,e.y=this.am1-e.y),i=ft(this.am1+this.m1-n,this.es,this.en),(t=Math.abs(i))Gn?(e.x=n*Math.sin(t=r*Math.cos(i)/n),e.y=this.cphi1-n*Math.cos(t)):e.x=e.y=0,e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Hn(e){var t,n;e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a;var r=yt(e.x,e.y=this.cphi1-e.y);if(n=this.cphi1+this.phi1-r,Math.abs(n)>f)throw new Error;return t=Math.abs(Math.abs(n)-f)<=Gn?0:r*Math.atan2(e.x,e.y)/Math.cos(n),e.x=X(t+(this.long0||0)),e.y=Nt(n),e}const Yn={init:function(){var e;if(this.phi1=this.lat1,Math.abs(this.phi1)=f?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Hn,this.forward=qn)},names:["bonne","Bonne (Werner lat_1=90)"]};Me.defaultDatum="WGS84",Me.Proj=ye,Me.WGS84=new Me.Proj("WGS84"),Me.Point=Je,Me.toPoint=ke,Me.defs=G,Me.nadgrid=function(e,t){var n=new DataView(t),r=function(e){var t=e.getInt32(8,!1);if(11===t)return!1;t=e.getInt32(8,!0),11!==t&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(n),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:he(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(n,r),o=function(e,t,n){for(var r=176,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:25,i=[],o=e[2]-e[0],a=e[3]-e[1],s=0;s0&&Array.isArray(e[0]))for(var i=0;i{"use strict";n.d(t,{Aw:()=>b});var r=n(57054),i=n(2265),o=n(6883),a=function(e){return"uniqueValue"===(null==e?void 0:e.type)},s=function(e){return"esriSMS"===(null==e?void 0:e.type)},l=function(e){return"esriSFS"===(null==e?void 0:e.type)},c=function(e){return"esriSLS"===(null==e?void 0:e.type)},u=function(e){return"esriPMS"===(null==e?void 0:e.type)},d=function(e){return"simple"===(null==e?void 0:e.type)},h=function(e){return"classBreaks"===(null==e?void 0:e.type)};function p(e){switch(e){case"esriSLSDash":return"dash";case"esriSLSDashDot":return"dash-dot";case"esriSLSDashDotDot":return"dash-dot-dot";case"esriSLSDot":return"dot";case"esriSLSLongDash":return"longDash";case"esriSLSLongDashDot":return"longDash-dot";case"esriSLSNull":return"null";case"esriSLSShortDash":return"shortDash";case"esriSLSShortDashDot":return"shortDash-dot";case"esriSLSShortDashDotDot":return"shortDash-dot-dot";case"esriSLSSolid":case null:case void 0:return"solid";default:return o.vF.logInfo("Handling of ESRI renderer line style '".concat(e,"' is not coded, 'solid' will be used instead.")),"solid"}}function f(e){switch(e){case"esriSFSBackwardDiagonal":return"backwardDiagonal";case"esriSFSCross":return"cross";case"esriSFSDiagonalCross":return"diagonalCross";case"esriSFSForwardDiagonal":return"forwardDiagonal";case"esriSFSHorizontal":return"horizontal";case"esriSFSNull":case"esriSFSSolid":return"solid";case"esriSFSVertical":return"vertical";default:return o.vF.logInfo("Handling of ESRI renderer fill style '".concat(e,"' is not coded, 'solid' will be used instead.")),"solid"}}function g(e){switch(e){case"esriSMSCircle":return"circle";case"esriSMSCross":return"+";case"esriSMSDiamond":return"diamond";case"esriSMSSquare":return"square";case"esriSMSTriangle":return"triangle";case"esriSMSX":return"X";default:return o.vF.logInfo("Handling of ESRI renderer symbol style '".concat(e,"' is not coded, 'circle' will be used instead.")),"circle"}}function m(e){return e?(0,r.oJ)([e[0],e[1],e[2],e[3]/255]):"rgba(0,0,0,0)"}function y(e){if(e){if(s(e)){var t,n,r,i,a=[void 0!==e.xoffset?e.xoffset:0,void 0!==e.yoffset?e.yoffset:0];return{type:"simpleSymbol",rotation:void 0!==e.angle?e.angle:0,color:m(null==e?void 0:e.color),stroke:{color:m(null==e||null===(t=e.outline)||void 0===t?void 0:t.color),lineStyle:p(null==e||null===(n=e.outline)||void 0===n?void 0:n.style),width:null!==(r=null==e||null===(i=e.outline)||void 0===i?void 0:i.width)&&void 0!==r?r:0},size:.667*e.size,symbol:g(e.style),offset:a}}var d,h,y,v,b;if(c(e))return{type:"lineString",stroke:{color:m(null==e?void 0:e.color),lineStyle:p(null==e?void 0:e.style),width:null!==(d=null==e?void 0:e.width)&&void 0!==d?d:0}};if(l(e))return{type:"filledPolygon",color:m(null==e?void 0:e.color),stroke:{color:m(null==e||null===(h=e.outline)||void 0===h?void 0:h.color),lineStyle:p(null==e||null===(y=e.outline)||void 0===y?void 0:y.style),width:null!==(v=null==e||null===(b=e.outline)||void 0===b?void 0:b.width)&&void 0!==v?v:0},fillStyle:f(e.style)};if(u(e)){var w=[void 0!==e.xoffset?e.xoffset:0,void 0!==e.yoffset?e.yoffset:0];return{type:"iconSymbol",mimeType:e.contentType,src:e.imageData,rotation:void 0!==e.angle?e.angle:0,opacity:1,offset:w}}o.vF.logInfo("Handling of ESRI renderer symbol '".concat(e,"' is not coded, default GeoView settings will be used instead."))}}function v(e){return(0,i.hc)(e)||(0,i.cw)(e)?"Point":(0,i.C)(e)?"Polygon":(0,i.NF)(e)?"LineString":void 0}function b(e){return a(e)?function(e){var t={},n=null===e.defaultLabel?void 0:e.defaultLabel,r=!!e.defaultSymbol,o=y(e.defaultSymbol),a=[e.field1];e.field2&&a.push(e.field2),e.field3&&a.push(e.field3);var s=[];e.uniqueValueInfos.forEach((function(t){var n=y(t.symbol);n&&("geographic"===e.rotationType&&((0,i.hc)(n)||(0,i.cw)(n))&&(n.rotation=Math.PI/2-n.rotation),s.push({label:t.label,visible:!0,values:t.value.replaceAll("'","''").split(e.fieldDelimiter),settings:n}))}));var l=v(s[0].settings),c={styleType:"uniqueValue",defaultLabel:n,defaultVisible:r,defaultSettings:o,fields:a,uniqueValueStyleInfo:s};if(l)return t[l]=c,t}(e):d(e)?function(e){var t={},n=e.label,r=y(e.symbol);if(r){"geographic"===e.rotationType&&((0,i.hc)(r)||(0,i.cw)(r))&&(r.rotation=Math.PI/2-r.rotation);var o=v(r),a={styleType:"simple",label:n,settings:r};if(o)return t[o]=a,t}}(e):h(e)?function(e){for(var t={},n=null===e.defaultLabel?void 0:e.defaultLabel,r=y(e.defaultSymbol),o=!!e.defaultLabel,a=e.field,s=[],l=0;l{"use strict";n.d(t,{A$:()=>s,MU:()=>o,Z6:()=>i,eQ:()=>a,fT:()=>r,r7:()=>l});var r=["#800000","#008000","#000080","#808000","#800080","#008080","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#faebd7","#7fffd4","#ffe4c4","#deb887","#d2691e","#ff7f50","#6495ed","#fff8dc","#dc143c","#b8860b","#a9a9a9","#006400","#bdb76b","#8b008b","#556b2f","#ff8c00","#9932cc","#8b0000","#e9967a","#8fbc8f","#483d8b","#2f4f4f","#00ced1","#9400d3","#ff1493","#00bfff","#696969","#1e90ff","#b22222","#fffaf0","#228b22","#dcdcdc","#ffd700","#adff2f","#ff69b4","#cd5c5c","#4b0082","#f0e68c","#e6e6fa","#7cfc00","#add8e6","#f08080","#e0ffff","#90ee90","#ffb6c1","#20b2aa","#87cefa","#ba55d3","#9370db","#3cb371","#ffdead"],i=function(e){return e[e.unprocessedNode=0]="unprocessedNode",e[e.keyword=1]="keyword",e[e.variable=2]="variable",e[e.string=3]="string",e[e.number=4]="number",e[e.unary=5]="unary",e[e.binary=6]="binary",e[e.group=7]="group",e}({}),o=["is","is not","in","like","and","or","<","<=","=","<>",">",">=","||","/","*",","],a=["not","upper","lower","date"],s=["(",")"],l=[{key:"date",priority:15},{key:"upper",priority:15},{key:"lower",priority:15},{key:"u+",priority:15},{key:"u-",priority:15},{key:"*",priority:14},{key:"/",priority:14},{key:"+",priority:13},{key:"-",priority:13},{key:"||",priority:13},{key:",",priority:12},{key:"=",priority:11},{key:"<",priority:10},{key:">",priority:9},{key:"<=",priority:8},{key:">=",priority:7},{key:"<>",priority:6},{key:"is not",priority:5},{key:"is",priority:5},{key:"like",priority:4},{key:"in",priority:3},{key:"not",priority:2},{key:"and",priority:1},{key:"or",priority:0}]},58748:(e,t,n)=>{"use strict";n.d(t,{$G:()=>me,WN:()=>be,nS:()=>fe,qC:()=>ce,yt:()=>z});var r=n(42432),i=n(55723),o=n(55907),a=n(96880),s=n(74813),l=n.n(s),c=n(57054),u=n(58952),d=n(95005),h=n(3451),p=n(92368),f=n(66489),g=n(58373),m=n(64383),y=n(43910),v=n(59119),b=n(91366),w=n(76200),x=n(25079),A=n(2265),S=n(25488),C=n(6883);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=(0,c.oJ)((0,w.setAlphaColor)((0,c._j)(S.fT[T]),e));return t&&T++,n}var O=function(e){var t,n=null===(t=e.getGeometry())||void 0===t?void 0:t.getType();if(!n)throw new Error("Features must have a geometry type.");return n.startsWith("Multi")?n.slice(5):n},P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAYFBMVEX///8AAADr6+vk5ORWVlZsbGxKSko5OTn5+fnz8/OKiopvb28VFRUJCQmRkZH29va1tbXV1dW7u7suLi7GxsZeXl4/Pz/Pz8+lpaVjY2N7e3uurq7c3Nyenp5FRUUiIiJlLbf0AAAGlElEQVR4nN3d6XajMAwFYAOZhFCysBQ62Xj/txx3J4l1MWDLYvSbnvFXG8kydFDqK8pN9BmbWi09jlX0HdXCNen516I1Jbj0kAiJ+EAM8LiJ+tGUxIU6kmwlI07XsohTg+UW3cea1myfLg4VebXKyuSBcziuny5cIc3z5aEi35yOSX9waWn6Va/K5xkUNzfRB6fujbRsjFet6SyQPtxiYWO3Pv5o6py4CNWb4451vAPRXb/HVdEXgQxddnxjtYjs6w6vzavsPfKavG9+NwwiIt9vvzR0ctrQWUAZ00awqM6fI03LFXkNqDdKUIbWsWqVhYacG1N5Che7LP7W0MMCGfogaqX9JF9z3fyMBtQbokSFiVP8PS6Q09AeWpKma22GtUF7AUGaq7LRVMdFzM1t2xsWnQUqVG/kaOLfUaElcwMaOSut7Y0q+UNfdzuSGjk57WqJQRoxK+1ki9EaemdTrnfMYRziizUmWtOatN5nrHEyroWVPQbt09Itb5iH2ozA6JxGLjTmiF9M49v0rhjEwOrJGi4wUS5kbpxg4LkAYzjCdGAvwBeOMFED6g1buMKgesMWzjASNO4wcJ/GEw4x4euNS0wUBda4xeRhNW4xupMOmQUcY6LbOaDGNSZohnaOgb2nUMyKPoFqzqHqzVTMHjy/qUJVz8mYtKZP1TeBNNMxCmgC7QVmYFQLNOelYdBzzy7E3MzCIE2ILDAPo2r6uWfFn6FnYrCGu3rOxaT1K6lpuDVzMeoANNy7ztkYPTf0SmPe2czHKLwXWBhGqYJ+/afjrJ5OMKoAL2UwatxgVIv2AmxZwBFG1a/kW4DNeat4whUmBZobl8YVBlZPLo0zjIR64w4DswBPf+MSo1rwGgOHxilGXcArjQwatxjV0vdN7v++cYxB9cZ/f+MagzL0xrfGNSZot+Ycg+fmzWv1dI/RWYDW+L1vfGDQKYfX+8YLBmv8ZWg/GFRvqjdvGk8YuE/zpvGFQXPT+Vpp3jAop3We5sYfJkCG9ojRGnKf5qd6+sSk9V/6lMOHxifmfQ9NYfTcuF9pfjHwaZT7bs0zRhWcvadvDOyk35aGUQVdPSPHGdo/BnXSndvTQQaMAhnabb3hwBy46g0HBp8LOKw3LBi8T3OnYcKgnOZuD82FQZrclYYNA+fm6kbDh1GF9/uGEeM/C3BiVPvXr4YVo1r6teLqOr968mJUQc9Nd509N8wYvNLmzg03xmsWYMdgzbx6w49B9SafVz0DYNBeYDdrbkJgUE6L5mSBIBitoTvpGZowGJ2h6Sfs0zWBMCnQTO+kA2H8aEJhYL2Zeg4dDuOh9wyIUQk9N3f/880iMCpB59AT/oGgGFRvdhOyQFiM7tZc1pvAGKTZjO49Q2NgtzZWExyjCrDSRmrCY9AeOh93LiAAg7q13ahuTQLG2dyIwKC5GXMCJQODctqIbk0IBlZP65wmBYMzdDz886IwqjCOZNTcyME4qJ6CMFpDzo3d+wKSMLOfrYnCqMu86ikLoy6gk94PaoRhVAJObgfnRhpGXeicFg3lNHEYlKHzAY08jK6e1EdJhuqNQIzWTKyeEjGov4Ga2DjUwBjYre1pzfYkEaNzGqmJMlpjLLrBMWgvgKqnqeiGx2gNfXIL+hvDAhWAQTmtg5rHH5OAmZqhn44TRGCmah7bIhkYqNmDlXY/YiEYdQH3Dag391lACmZqt3bXsorBoOqJ9gL9X4IcDNSgvcDvjwnCoN5zh/YCPz8mCTO19/zRiMKoy4ns1iKQob9/CcOYLGb8egl4gziH9eZDM/yVkzXrh2XoP/TS+zRQbz7K1PD3Z3Y5a4CvjoK9QNq+a0Z8GSh8VHS9Sd93Nv1vNsUnUR9jNQQ6gdJ7gX1fd6VziZRA1fO1/50zaR+WNQbS3M8U+BNYMQH2aXcRZ6FHahG55XPP9LyAdQa7tbtVB4595ISlJn2Tn88iWG/6YT6QFheov+kF+BatqLDSHN7At88lhdVK2+6XkNEiy7lJskUkAd1JW739ANo9SYHObHqa6zKyQGdVbw71n0XcOF1mVT2T6+sSOJaaNDmfGum9mu1K0xEXZXZarSUE+D/vbTV6fg7bWEIUdEOf2600SZHQe0bLfZqkSOjnN7sFakApX95Ku/xX9w3QWNYbSQGeEYzI0FLi/5obkKFv7fCPCwvyOLwR8W3skZEYXzQT8L3iSWGcm4Va3u+bp5zWLNViyNChvoPpJB40i7Y8aBZuudMs3tLbQ9/Xl38GJru99HKKPgAAAABJRU5ErkJggg==",I={dash:[16,4],"dash-dot":[16,4,2,4],"dash-dot-dot":[16,4,2,4,2,4],dot:[2,2],longDash:[25,5],"longDash-dot":[25,5,2,5],null:[0,3],shortDash:[7,3],"shortDash-dot":[7,3,2,3],"shortDash-dot-dot":[7,3,2,3,2,3],solid:void 0},M=[{moveTo:[1,0],lineTo:[2,1]},{moveTo:[0,0],lineTo:[2,2]},{moveTo:[0,1],lineTo:[1,2]}],L=[{moveTo:[1,0],lineTo:[1,2]},{moveTo:[0,1],lineTo:[2,1]}],R=[{moveTo:[0,0],lineTo:[2,2]},{moveTo:[0,2],lineTo:[2,0]}],j=[{moveTo:[0,1],lineTo:[1,0]},{moveTo:[0,2],lineTo:[2,0]},{moveTo:[2,1],lineTo:[1,2]}],F=[{moveTo:[0,1],lineTo:[2,1]}],D=[{moveTo:[1,0],lineTo:[1,2]}],N=50,B=50;function z(e){return new Promise((function(t){var n=new Image;n.src=e,n.decode().then((function(){return t(n)})).catch((function(n){C.vF.logError("GeoviewRenderer.loadImage(src) - Error while loading the src image =",e,n),t(null)}))}))}function V(e){return $.apply(this,arguments)}function $(){return($=(0,a.A)(l().mark((function e(t){var n,r,i,o,a,s,c;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=null==t?void 0:t.getImage(),e.next=4,z(n.getSrc());case 4:if(!(r=e.sent)){e.next=16;break}return i=n.getSize(),o=Array.isArray(i)?i[0]:r.width||N,a=Array.isArray(i)?i[1]:r.height||B,(s=document.createElement("canvas")).width=o,s.height=a,(c=s.getContext("2d")).globalAlpha=n.getOpacity(),c.drawImage(r,0,0),e.abrupt("return",s);case 16:return e.abrupt("return",null);case 19:return e.prev=19,e.t0=e.catch(0),C.vF.logError("Error creating incon canvas for pointStyle",e.t0),e.abrupt("return",null);case 23:case"end":return e.stop()}}),e,null,[[0,19]])})))).apply(this,arguments)}function G(e){return U.apply(this,arguments)}function U(){return(U=(0,a.A)(l().mark((function e(t){var n,r,i,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,z(t);case 3:if(!(n=e.sent)){e.next=13;break}return r=n.width||N,i=n.height||B,(o=document.createElement("canvas")).width=r,o.height=i,o.getContext("2d").drawImage(n,0,0),e.abrupt("return",o);case 13:return e.abrupt("return",null);case 16:return e.prev=16,e.t0=e.catch(0),C.vF.logError("Error creating incon canvas for pointStyle",e.t0),e.abrupt("return",null);case 20:case"end":return e.stop()}}),e,null,[[0,16]])})))).apply(this,arguments)}function W(e){var t=e.getImage().getSize(),n=Array.isArray(t)?t:[N,B],r=(0,o.A)(n,2),i=r[0],a=r[1],s=document.createElement("canvas");s.width=i+4,s.height=a+4;var l=(0,b.toContext)(s.getContext("2d"));return l.setStyle(e),l.setTransform([1,0,0,1,0,0]),l.drawGeometry(new m.A([s.width/2,s.width/2])),s}function q(e){var t=document.createElement("canvas");t.width=N,t.height=B;var n=t.getContext("2d"),r=n.createLinearGradient(0,t.height,t.width,0);r.addColorStop(0,"#7f7f7f"),r.addColorStop(.667,"#ffffff"),r.addColorStop(1,"#ffffff"),n.fillStyle=r,n.fillRect(0,0,t.width,t.height);var i=(0,b.toContext)(n);return i.setStyle(e),i.setTransform([1,0,0,1,0,0]),i.drawGeometry(new y.A([[4,t.height-4],[t.width-4,4]])),t}function H(e){var t=document.createElement("canvas");t.width=N,t.height=B;var n=t.getContext("2d"),r=n.createLinearGradient(0,t.height,t.width,0);r.addColorStop(0,"#7f7f7f"),r.addColorStop(.667,"#ffffff"),r.addColorStop(1,"#ffffff"),n.fillStyle=r,n.fillRect(0,0,t.width,t.height);var i=(0,b.toContext)(n);return i.setStyle(e),i.setTransform([1,0,0,1,0,0]),i.drawGeometry(new v.Ay([[[4,4],[t.width-4,4],[t.width-4,t.height-4],[4,t.height-4],[4,4]]])),n.getImageData(0,0,t.width,t.height),t}function Y(e){var t,n,r,i;return void 0===e.stroke&&(e.stroke={}),void 0===e.stroke.color&&(e.stroke.color="color"in e?(0,c.oJ)((0,w.setAlphaColor)((0,c._j)(e.color),1)):_(1,!0)),{color:null===(t=e.stroke)||void 0===t?void 0:t.color,width:null===(n=e.stroke)||void 0===n?void 0:n.width,lineCap:"butt",lineJoin:"bevel",lineDash:I[void 0!==(null===(r=e.stroke)||void 0===r?void 0:r.lineStyle)?null===(i=e.stroke)||void 0===i?void 0:i.lineStyle:"solid"]}}function K(e,t){if(e.nodeType!==S.Z6.binary){if(e.nodeType===S.Z6.unary){if(t.length<1||"("===t[t.length-1].nodeValue)throw new Error("unary operator error");var n=t.pop();switch(e.nodeValue){case"not":if("boolean"!=typeof n.nodeValue)throw new Error("not operator error");t.push({nodeType:S.Z6.variable,nodeValue:!n.nodeValue});break;case"u-":if("number"!=typeof n.nodeValue)throw new Error("unary - operator error");t.push({nodeType:S.Z6.variable,nodeValue:-n.nodeValue});break;case"u+":if("number"!=typeof n.nodeValue)throw new Error("unary + operator error");t.push({nodeType:S.Z6.variable,nodeValue:n.nodeValue});break;case"date":if(null===n.nodeValue)t.push(n);else{if("string"!=typeof n.nodeValue)throw new Error("DATE operator error");n.nodeValue=x.P.applyInputDateFormat(n.nodeValue),t.push({nodeType:S.Z6.variable,nodeValue:x.P.convertToMilliseconds(x.P.convertToUTC(n.nodeValue))})}break;case"upper":if(null===n.nodeValue)t.push(n);else{if("string"!=typeof n.nodeValue)throw new Error("UPPER operator error");t.push({nodeType:S.Z6.variable,nodeValue:n.nodeValue.toUpperCase()})}break;case"lower":if(null===n.nodeValue)t.push(n);else{if("string"!=typeof n.nodeValue)throw new Error("LOWER operator error");t.push({nodeType:S.Z6.variable,nodeValue:n.nodeValue.toLowerCase()})}break;default:throw new Error("unknown operator error")}}}else{if(t.length<2||"("===t[t.length-2].nodeValue)throw new Error("binary operator error - operator = '".concat(e.nodeValue,"'"));var r,o=t.pop(),a=t.pop();switch(e.nodeValue){case"is not":if(null!==o.nodeValue)throw new Error("Invalid is not null operator syntax");t.push({nodeType:S.Z6.variable,nodeValue:null!==a.nodeValue});break;case"is":if(null!==o.nodeValue)throw new Error("Invalid is null operator syntax");t.push({nodeType:S.Z6.variable,nodeValue:null===a.nodeValue});break;case"=":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue===o.nodeValue});break;case"<":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue>o.nodeValue});break;case"<=":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue<=o.nodeValue});break;case">=":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue>=o.nodeValue});break;case"<>":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue!==o.nodeValue});break;case"and":if(null===a.nodeValue&&(null===o.nodeValue||!0===o.nodeValue)||!0===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:null});else if(null===a.nodeValue&&!1===o.nodeValue||!1===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:!1});else{if("boolean"!=typeof a.nodeValue||"boolean"!=typeof o.nodeValue)throw new Error("and operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue&&o.nodeValue})}break;case"or":if(null===a.nodeValue&&(null===o.nodeValue||!1===o.nodeValue)||!1===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:null});else if(null===a.nodeValue&&!0===o.nodeValue||!0===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:!0});else{if("boolean"!=typeof a.nodeValue||"boolean"!=typeof o.nodeValue)throw new Error("or operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue||o.nodeValue})}break;case"+":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("+ operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue+o.nodeValue});break;case"-":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("- operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue-o.nodeValue});break;case"*":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("* operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue*o.nodeValue});break;case"/":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("/ operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue/o.nodeValue});break;case"||":if("string"!=typeof a.nodeValue&&null!==a.nodeValue||"string"!=typeof o.nodeValue)throw new Error("|| operator error");t.push({nodeType:S.Z6.variable,nodeValue:null===a.nodeValue?null:"".concat(a.nodeValue).concat(o.nodeValue)});break;case"like":if("string"!=typeof a.nodeValue&&null!==a.nodeValue||"string"!=typeof o.nodeValue)throw new Error("like operator error");var s,l=new RegExp(o.nodeValue.toLowerCase().replaceAll(".","\\.").replaceAll("%",".*").replaceAll("_","."),""),c=a.nodeValue?a.nodeValue.toLowerCase().match(l):null;t.push({nodeType:S.Z6.variable,nodeValue:null!==c&&c[0]===(null===(s=a.nodeValue)||void 0===s?void 0:s.toLowerCase())});break;case",":if(r={nodeType:S.Z6.variable,nodeValue:Array.isArray(o.nodeValue)?[a.nodeValue].concat(o.nodeValue):[a.nodeValue,o.nodeValue]},(0,i.A)(r.nodeValue[0])!==(0,i.A)(r.nodeValue[1]))throw new Error("IN clause can't mix types");t.push(r);break;case"in":Array.isArray(o.nodeValue)?t.push({nodeType:S.Z6.variable,nodeValue:o.nodeValue.includes(a.nodeValue)}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue===o.nodeValue});break;default:throw new Error("unknown operator error")}}}function X(e,t){var n=[],r=[],i=function(e,t){return e<0&&t.length+e>=0?t[t.length+e]:e>0&&eo(t[a]);K(n.pop(),r))u=i(-2,n);n.push(k({},t[a]))}for(var d=i(-1,n);d&&"("!==d.nodeValue;K(n.pop(),r))d=i(-2,n);n.pop()}catch(e){throw new Error("Invalid vector layer filter (".concat(e.message,")."))}if(1!==r.length||r[0].nodeType!==S.Z6.variable)throw new Error("Invalid vector layer filter (invalid structure).");var h=r.pop();return h?!h.nodeValue:void 0}function Z(e,t,n){void 0===e.color&&(e.color=_(.25,!0));var r={color:e.color},i=Y(e),o={radius:void 0!==e.size?e.size:6,radius2:void 0!==e.size?e.size/3:2,angle:n,points:t};return o.stroke=new u.A(i),o.fill=new d.A(r),void 0!==e.offset&&(o.displacement=e.offset),void 0!==e.rotation&&(o.rotation=e.rotation),new h.Ay({image:new f.A(o)})}function J(e,t,n,r){void 0===e.color&&(e.color=_(.25,!0));var i={color:e.color},o=Y(e),a={radius:void 0!==e.size?e.size:6,angle:n,scale:r,points:t};return a.stroke=new u.A(o),a.fill=new d.A(i),void 0!==e.offset&&(a.displacement=e.offset),void 0!==e.rotation&&(a.rotation=e.rotation),new h.Ay({image:new f.A(a)})}var Q={circle:function(e){void 0===e.color&&(e.color=_(.25,!0));var t={color:e.color},n=Y(e),r={radius:void 0!==e.size?e.size:4};return r.stroke=new u.A(n),r.fill=new d.A(t),void 0!==e.offset&&(r.displacement=e.offset),void 0!==e.rotation&&(r.rotation=e.rotation),new h.Ay({image:new p.A(r)})},"+":function(e){return Z(e,4,0)},diamond:function(e){return J(e,4,0,[.75,1])},square:function(e){return J(e,4,Math.PI/4,[1,1])},triangle:function(e){return J(e,3,0,[1,1])},X:function(e){return Z(e,4,Math.PI/4)},star:function(e){return Z(e,5,0)}};function ee(e,t,n){if(void 0===n||0===n.length||!t||!X(t,n)){var r=(0,A.s0)(e)?e.settings:e;if((0,A.cw)(r)){var i=r.symbol;return Q[i].call("",r)}return(0,A.hc)(r)?function(e){var t={};return t.src="data:".concat(e.mimeType,";base64,").concat(e.src),void 0!==e.width&&void 0!==e.height&&(t.size=[e.width,e.height]),void 0!==e.offset&&(t.offset=e.offset),void 0!==e.rotation&&(t.rotation=e.rotation),void 0!==e.opacity&&(t.opacity=e.opacity),new h.Ay({image:new g.A(t)})}(r):void 0}}function te(e,t,n){if(void 0===n||0===n.length||!t||!X(t,n)){var r,i=(0,A.s0)(e)?e.settings:e;if(t&&(r=t.getGeometry()),(0,A.NF)(i)){var o=Y(i);return new h.Ay({stroke:new u.A(o),geometry:r})}}}function ne(e,t,n){var r=void 0!==e.paternSize?e.paternSize:8;void 0===e.color&&(e.color=_(.25,!0));var i={color:e.color},o=Y(e),a=document.createElement("canvas");a.width=2*r,a.height=2*r;var s=a.getContext("2d");s.strokeStyle=e.color,s.lineCap="butt",s.lineWidth=void 0!==e.paternWidth?e.paternWidth:1,s.beginPath();for(var l=0;l=t[0].minValue&&i<=t[0].maxValue)return 0;for(var o=1;ot[o].minValue&&i<=t[o].maxValue)return o}}var pe={simple:{Point:ee,LineString:te,Polygon:ie},uniqueValue:{Point:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.IG)(e)){var i=e.defaultSettings,o=e.fields,a=e.uniqueValueStyleInfo,s=de(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ee(a[s].settings);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ee(i)}},LineString:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.IG)(e)){var i=e.defaultSettings,o=e.fields,a=e.uniqueValueStyleInfo,s=de(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return te(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return te(i,t)}},Polygon:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.IG)(e)){var i=e.defaultSettings,o=e.fields,a=e.uniqueValueStyleInfo,s=de(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ie(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ie(i,t)}}},classBreaks:{Point:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.$h)(e)){var i=e.defaultSettings,o=e.field,a=e.classBreakStyleInfo,s=he(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ee(a[s].settings);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ee(i)}},LineString:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.$h)(e)){var i=e.defaultSettings,o=e.field,a=e.classBreakStyleInfo,s=he(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return te(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return te(i,t)}},Polygon:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.$h)(e)){var i=e.defaultSettings,o=e.field,a=e.classBreakStyleInfo,s=he(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ie(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ie(i,t)}}}};function fe(e,t,n,i,o,a){var s=O(e),l=t;if(!t||!t[s]){var c=function(e,t){return"Point"===e?{styleType:"simple",label:t,settings:{type:"simpleSymbol",color:_(.25),stroke:{color:_(1,!0),lineStyle:"solid",width:1},symbol:"circle"}}:"LineString"===e?{styleType:"simple",label:t,settings:{type:"lineString",stroke:{color:_(1,!0)}}}:"Polygon"===e?{styleType:"simple",label:t,settings:{type:"filledPolygon",color:_(.25),stroke:{color:_(1,!0)},fillStyle:"solid"}}:void C.vF.logError("Geometry type ".concat(e," is not supported by the GeoView viewer."))}(s,n);c&&(t?l[s]=c:l=(0,r.A)({},s,c),null==a||a(s,c))}if(l[s]){var u=t[s],d=u.styleType;return pe[d][s].call("",u,e,i,o)}}var ge={};function me(e,t,n,r,i,o){return ye.apply(this,arguments)}function ye(){return(ye=(0,a.A)(l().mark((function e(t,n,r,i,o,a){var s,c,u,d,h,p,f,g,m;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.getGeometry()){e.next=21;break}if(c=O(t),!n[c]){e.next=21;break}if(u=n[c],d=u.styleType,!(h=pe[d][c](u,t,r,i))){e.next=21;break}if("Point"!==c){e.next=20;break}if(!((0,A.s0)(u)&&(0,A.cw)(u.settings)||(0,A.IG)(u)&&(0,A.cw)(u.uniqueValueStyleInfo[0].settings)||(0,A.$h)(u)&&(0,A.cw)(u.classBreakStyleInfo[0].settings))){e.next=12;break}s=W(h),e.next=18;break;case 12:return e.next=14,V(h);case 14:if(e.t0=e.sent,e.t0){e.next=17;break}e.t0=void 0;case 17:s=e.t0;case 18:e.next=21;break;case 20:"LineString"===c?s=q(h):o?(p=JSON.stringify(h.getStroke()),f=JSON.stringify(h.getFill()),ge[g=p+f]||(ge[g]=H(h)),s=ge[g]):s=H(h);case 21:if(!s){e.next=23;break}return e.abrupt("return",s);case 23:return e.next=25,null==a?void 0:a();case 25:if(!(m=e.sent)){e.next=35;break}return e.next=29,G(m);case 29:if(e.t1=e.sent,e.t1){e.next=32;break}e.t1=void 0;case 32:if(!(s=e.t1)){e.next=35;break}return e.abrupt("return",s);case 35:return e.next=37,G(P);case 37:return e.abrupt("return",e.sent);case 38:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ve(e,t,n){var r=function(e){return["+","-"].includes(e)?S.Z6.unprocessedNode:S.MU.includes(e)?S.Z6.binary:S.eQ.includes(e)?S.Z6.unary:S.A$.includes(e)?S.Z6.group:S.Z6.keyword};return e.reduce((function(e,i){return i.nodeType!==S.Z6.unprocessedNode?e.push(i):e=e.concat(i.nodeValue.trim().split(void 0===n?t:n).reduce((function(e,n){return""===n?(e.push({nodeType:r(t),nodeValue:t}),e):(e.push({nodeType:S.Z6.unprocessedNode,nodeValue:n.trim()}),e.push({nodeType:r(t),nodeValue:t}),e)}),[]).slice(0,-1)),e}),[])}function be(e){var t,n=e;if(n[0].nodeValue=n[0].nodeValue.replaceAll(/\s{2,}/g," ").trim(),n[0].nodeValue=n[0].nodeValue.split(/^date '|(?<=\s)date '/gi).join("date°'"),n=function(e){var t=!1,n=!1,r=0,i="",o=e.reduce((function(e,o){return n?(o.nodeType===S.Z6.unprocessedNode?t?(i="".concat(i).concat(o.nodeValue),t=!1):(e.push({nodeType:S.Z6.string,nodeValue:i}),e.push(o),i="",n=!1,t=!1,r=0):2===(r+=1)&&(i="".concat(i,"'"),t=!0,r=0),e):(o.nodeType===S.Z6.keyword?(n=!0,t=!0):e.push(o),e)}),[]);if(n){if(t||1!==r)throw new Error("string not closed");o.push({nodeType:S.Z6.string,nodeValue:i})}return o}(n=ve(n,"'")),n=ve(n,"("),(n=ve(n,")")).reduce((function(e,t){return t.nodeType===S.Z6.group?e+1:e}),0)%2)throw new Error("unbalanced parentheses");return n=ve(n,"date",/^date°$|^date°|(?<=\s)date°/g),n=ve(n,"upper",/^upper\b|(?<=\s)upper\b/gi),n=ve(n,"lower",/^lower\b|(?<=\s)lower\b/gi),n=ve(n,"is not",/^is\s+not\b|(?<=\s)is\s+not\b/gi),n=ve(n,"is",/^is\b(?!\s*not\b)|(?<=\s)is\b(?!\s*not\b)/gi),n=ve(n,"in",/^in\b|(?<=\s)in\b/gi),n=ve(n,","),n=ve(n,"not",/^not\b|(?<=\s)not\b/gi),n=ve(n,"and",/^and\b|(?<=\s)and\b/gi),n=ve(n,"or",/^or\b|(?<=\s)or\b/gi),n=ve(n,"like",/^like\b|(?<=\s)like\b/gi),n=ve(n,"=",/(?<])=/g),n=ve(n,"<",/<(?![>=])/g),n=ve(n,">",/(?(?!=)/g),n=ve(n,"<>"),n=ve(n,"<="),n=ve(n,">="),n=ve(n,"+"),n=ve(n,"-"),n=ve(n,"*"),n=ve(n,"/"),n=ve(n,"||"),n=(t=n).map((function(e,n){if(e.nodeType===S.Z6.unprocessedNode){if(Number.isNaN(Number(e.nodeValue.slice(0,1))))return["+","-"].includes(e.nodeValue)?0!==n&&[S.Z6.number,S.Z6.string,S.Z6.variable].includes(t[n-1].nodeType)?e.nodeType=S.Z6.binary:(e.nodeType=S.Z6.unary,e.nodeValue="u".concat(e.nodeValue)):"string"==typeof e.nodeValue&&"null"===e.nodeValue.toLowerCase()?(e.nodeType=S.Z6.variable,e.nodeValue=null):e.nodeType=S.Z6.variable,e;if(e.nodeType=S.Z6.number,e.nodeValue=Number(e.nodeValue),Number.isNaN(e.nodeValue))throw new Error("".concat(e.nodeValue," is an invalid number"));return e}return e}))}},35415:(e,t,n)=>{"use strict";n.r(t),n.d(t,{calculateDistance:()=>Oe,convertTypeFeatureStyleToOpenLayersStyle:()=>ye,coordFormatDMS:()=>me,createEmptyBasemap:()=>pe,extentToPolygon:()=>Se,geojsonToGeometry:()=>de,geometryToWKT:()=>ce,getArea:()=>Te,getDefaultDrawingStyle:()=>he,getESRIServiceMetadata:()=>te,getExtentIntersection:()=>xe,getExtentIntersectionMaybe:()=>Ae,getExtentUnion:()=>be,getExtentUnionMaybe:()=>we,getLegendStylesFromConfig:()=>fe,getLength:()=>_e,getMapServerUrl:()=>se,getMinOrMaxExtents:()=>ve,getOGCServerUrl:()=>le,getTranslateValues:()=>ge,getWFSServiceMetadata:()=>oe,getWMSServiceMetadata:()=>re,layerTypes:()=>ee,polygonToExtent:()=>Ce,validateExtent:()=>Ee,validateExtentWhenDefined:()=>ke,wktToGeometry:()=>ue});var r=n(96880),i=n(74813),o=n.n(i),a=n(34946),s=n(18064),l=n(98246),c=n(42669),u=n(43910),d=n(67103),h=n(87620),p=n(32332),f=n(64383),g=n(59119),m=n(4472),y=n(45282);class v extends m.Ay{constructor(){super()}getType(){return"text"}readFeature(e,t){return this.readFeatureFromText(b(e),this.adaptOptions(t))}readFeatureFromText(e,t){return(0,y.b0)()}readFeatures(e,t){return this.readFeaturesFromText(b(e),this.adaptOptions(t))}readFeaturesFromText(e,t){return(0,y.b0)()}readGeometry(e,t){return this.readGeometryFromText(b(e),this.adaptOptions(t))}readGeometryFromText(e,t){return(0,y.b0)()}readProjection(e){return this.readProjectionFromText(b(e))}readProjectionFromText(e){return this.dataProjection}writeFeature(e,t){return this.writeFeatureText(e,this.adaptOptions(t))}writeFeatureText(e,t){return(0,y.b0)()}writeFeatures(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))}writeFeaturesText(e,t){return(0,y.b0)()}writeGeometry(e,t){return this.writeGeometryText(e,this.adaptOptions(t))}writeGeometryText(e,t){return(0,y.b0)()}}function b(e){return"string"==typeof e?e:""}const w=v,x={POINT:f.A,LINESTRING:u.A,POLYGON:g.Ay,MULTIPOINT:h.A,MULTILINESTRING:d.A,MULTIPOLYGON:p.A},A="EMPTY",S="Z",C="M",E=0,k=1,T=2,_=3,O=4,P=5,I=6,M={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class L{constructor(e){this.wkt=e,this.index_=-1}isAlpha_(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isNumeric_(e,t){return t=void 0!==t&&t,e>="0"&&e<="9"||"."==e&&!t}isWhiteSpace_(e){return" "==e||"\t"==e||"\r"==e||"\n"==e}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const e=this.nextChar_(),t=this.index_;let n,r=e;if("("==e)n=T;else if(","==e)n=P;else if(")"==e)n=_;else if(this.isNumeric_(e)||"-"==e)n=O,r=this.readNumber_();else if(this.isAlpha_(e))n=k,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);n=I}return{position:t,value:r,type:n}}readNumber_(){let e;const t=this.index_;let n=!1,r=!1;do{"."==e?n=!0:"e"!=e&&"E"!=e||(r=!0),e=this.nextChar_()}while(this.isNumeric_(e,n)||!r&&("e"==e||"E"==e)||r&&("-"==e||"+"==e));return parseFloat(this.wkt.substring(t,this.index_--))}readText_(){let e;const t=this.index_;do{e=this.nextChar_()}while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}}class R{constructor(e){this.lexer_=e,this.token_={position:0,type:E},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(e){return this.token_.type==e}match(e){const t=this.isTokenType(e);return t&&this.consume_(),t}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let e="XY";const t=this.token_;if(this.isTokenType(k)){const n=t.value;n===S?e="XYZ":n===C?e="XYM":"ZM"===n&&(e="XYZM"),"XY"!==e&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(T)){const e=[];do{e.push(this.parseGeometry_())}while(this.match(P));if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(T)){const e=this.parsePoint_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(T)){const e=this.parsePointList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(T)){const e=this.parseLineStringTextList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(T)){let e;if(e=this.token_.type==T?this.parsePointTextList_():this.parsePointList_(),this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(T)){const e=this.parseLineStringTextList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(T)){const e=this.parsePolygonTextList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parsePoint_(){const e=[],t=this.layout_.length;for(let n=0;n0&&(r+=" "+t)}return 0===n.length?r+" "+A:r+"("+n+")"}const z=class extends w{constructor(e){super(),e=e||{},this.splitCollection_=void 0!==e.splitCollection&&e.splitCollection}parse_(e){const t=new L(e);return new R(t).parse()}readFeatureFromText(e,t){const n=this.readGeometryFromText(e,t),r=new l.A;return r.setGeometry(n),r}readFeaturesFromText(e,t){let n=[];const r=this.readGeometryFromText(e,t);n=this.splitCollection_&&"GeometryCollection"==r.getType()?r.getGeometriesArray():[r];const i=[];for(let e=0,t=n.length;e0&&(i=i.concat("&layers=".concat(n))),e.next=5,fetch(i);case 5:return a=e.sent,e.t0=r,e.next=9,a.text();case 9:return e.t1=e.sent,l=e.t0.read.call(e.t0,e.t1),e.abrupt("return",l);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(e){return ae.apply(this,arguments)}function ae(){return(ae=(0,r.A)(o().mark((function e(t){var n,r,i,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.A.get(t,{params:{request:"getcapabilities",service:"WFS"}});case 2:return n=e.sent,r=(new DOMParser).parseFromString(n.data,"text/xml"),i=(0,X.xmlToJson)(r),s=i["wfs:WFS_Capabilities"],e.abrupt("return",s);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;if(n.includes("MapServer")&&(n=n.slice(0,n.indexOf("MapServer")+9)),n.includes("FeatureServer")&&(n=n.slice(0,n.indexOf("FeatureServer")+13)),t){var r=n.slice(n.indexOf("/services/"));n="".concat(n.slice(0,e.indexOf("services/")),"rest").concat(r)}return n}function le(e){var t=e;return t.includes("collections")&&(t=t.slice(0,t.indexOf("collections"))),t}function ce(e){return e?(new z).writeGeometry(e):null}function ue(e,t){return e?(new z).readGeometry(e,t):null}function de(e,t){return e?(new V.A).readGeometry(e,t):null}function he(e,t,n){return new $.Ay({stroke:new G.A({color:e||"orange",width:t||2}),fill:new U.A({color:n||"transparent"}),image:new W.A({radius:4,fill:new U.A({color:n||"orange"}),stroke:new G.A({color:e||"orange",width:t||2})})})}function pe(){var e={basemapId:"empty",source:new H.A,type:"empty",opacity:0,resolutions:[],origin:[],minScale:0,maxScale:17,extent:[0,0,0,0]},t=new Y.A(e);return t.set("mapId","basemap"),t}function fe(e){return(0,Q.qC)(e)}function ge(e){var t=(0,K.KX)(window.getComputedStyle(e)),n=t.transform||t.webkitTransform||t.mozTransform,r={x:0,y:0,z:0};if("none"===n||void 0===n)return r;var i=n.includes("3d")?"3d":"2d",o=n.match(/matrix.*\((.+)\)/),a=o&&o[1].split(", ");return"2d"===i?{x:Number(a&&a[4]),y:Number(a&&a[5]),z:0}:"3d"===i?{x:Number(a&&a[12]),y:Number(a&&a[13]),z:Number(a&&a[14])}:r}function me(e){var t=String.fromCharCode(176),n=Math.floor(Math.abs(e))*(e<0?-1:1),r=Math.floor(Math.abs(60*(e-n))),i=Math.round(3600*(Math.abs(e)-Math.abs(n)-r/60));return"".concat(Math.abs(n)).concat(t," ").concat(r>=10?"".concat(r):"0".concat(r),"' ").concat(i>=10?"".concat(i):"0".concat(i),'"')}function ye(e){return he(null==e?void 0:e.strokeColor,null==e?void 0:e.strokeWidth,null==e?void 0:e.fillColor)}function ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"max",r=[];return"max"===n?r=[Math.min(e[0],t[0]),Math.min(e[1],t[1]),Math.max(e[2],t[2]),Math.max(e[3],t[3])]:"min"===n&&(r=[Math.max(e[0],t[0]),Math.max(e[1],t[1]),Math.min(e[2],t[2]),Math.min(e[3],t[3])]),r}function be(e,t){return t?[Math.min(e[0],t[0]),Math.min(e[1],t[1]),Math.max(e[2],t[2]),Math.max(e[3],t[3])]:e}function we(e,t){return e?be(e,t):t}function xe(e,t){return t?[Math.max(e[0],t[0]),Math.max(e[1],t[1]),Math.min(e[2],t[2]),Math.min(e[3],t[3])]:e}function Ae(e,t){return e?xe(e,t):t}function Se(e){return new g.Ay([[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]])}function Ce(e){for(var t=e.getCoordinates()[0],n=t[0][0],r=t[0][1],i=t[0][0],o=t[0][1],a=1;a1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n={"EPSG:4326":[-180,-90,180,90],"EPSG:3857":[-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892],"EPSG:3978":[-7192737.96,-3004297.73,5183275.29,4484204.83]},r=e[0]n[t][2]||e[0]===1/0||Number.isNaN(e[2])?n[t][2]:e[2],a=e[0]>n[t][3]||e[0]===1/0||Number.isNaN(e[3])?n[t][3]:e[3];return[rr?o:r,a>i?a:i]}function ke(e){if(e)return Ee(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326")}function Te(e){return(0,q.UG)(e)}function _e(e){return(0,q.R3)(e)}function Oe(e,t,n){var r=Z.M.transformPoints(e,t,n),i=new u.A(r),o=[];return i.forEachSegment((function(e,t){o.push(Math.round(_e(new u.A([e,t]))/1e3*100)/100)})),{total:Math.round(_e(i)/1e3*100)/100,sections:o}}},49919:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});var r=n(42432),i=n(25968),o=n(47001),a=n(10281),s=function(e){var t;return{vertical:{alignSelf:"center",height:40,width:"1px !important",backgroundColor:e.palette.primary.contrastText},horizontal:{height:1,backgroundColor:e.palette.primary.contrastText},grow:{flexGrow:1,backgroundColor:null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.main}}},l=n(97282),c=["className","style","grow","orientation","sx"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{K:()=>p});var r=n(42432),i=n(25968),o=n(43331),a=n(17239),s=n(61385),l=n(74455),c=n(97282),u=["sx","className","style","children","onClick","aria-label","tooltip","tooltipPlacement","id","tabIndex","iconRef","size","disabled","color"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{Accordion:()=>$,AddCircleOutlineIcon:()=>so,AddIcon:()=>ao,AoiIcon:()=>_o.A,AppBarUI:()=>J,AppsIcon:()=>lo,ArrowBackIcon:()=>co.A,ArrowBackIosOutlinedIcon:()=>uo,ArrowDownIcon:()=>An,ArrowDownwardIcon:()=>ho.A,ArrowForwardIcon:()=>po.A,ArrowForwardIosOutlinedIcon:()=>fo,ArrowLeftIcon:()=>go,ArrowRightIcon:()=>mo,ArrowUpIcon:()=>yo.A,Autocomplete:()=>nt,Avatar:()=>dt,Badge:()=>xt,BlockIcon:()=>vo.A,Box:()=>s.A,BrowserNotSupportedIcon:()=>bo,Button:()=>Vt,ButtonDropDown:()=>kn,ButtonGroup:()=>wn,CONST_PANEL_TYPES:()=>gh.v,Card:()=>Wn,CardMedia:()=>er,ChartIcon:()=>Pa.A,CheckBoxIcon:()=>Ao,CheckBoxOutinedIcon:()=>Co,CheckBoxOutlineBlankIcon:()=>So,CheckCircleIcon:()=>xo,CheckIcon:()=>wo,Checkbox:()=>pr,CheckboxList:()=>ml,ChevronLeftIcon:()=>Eo,ChevronRightIcon:()=>ko,CircularProgress:()=>Mr,CircularProgressBase:()=>Tr,ClickMapMarker:()=>es,CloseIcon:()=>To.A,Collapse:()=>yl.SD,CollapseIcon:()=>la,Container:()=>ls,CustomSelect:()=>xp,CustomStepper:()=>fg,CustomTextField:()=>cI,DefaultPanel:()=>fh,DeleteIcon:()=>Oo,DeleteOutlineIcon:()=>Po,DetailsIcon:()=>Io,Dialog:()=>ys,DialogActions:()=>ws,DialogContent:()=>Ns,DialogTitle:()=>Cs,Divider:()=>Lr.c,DownloadIcon:()=>Mo,DownloadingIcon:()=>Lo,Drawer:()=>Ei,EmojiPeopleIcon:()=>jo,ErrorIcon:()=>Fo,ExpandIcon:()=>Do,ExpandLessIcon:()=>No,ExpandMoreIcon:()=>Bo,Fade:()=>Oi,FileUploadIcon:()=>zo,FilterAltIcon:()=>Vo,FilterAltOffIcon:()=>$o,FocusTrap:()=>_I.s,FullscreenExitIcon:()=>Uo,FullscreenIcon:()=>Go,GeoCaIcon:()=>xg,GitHubIcon:()=>Wo.A,Grid:()=>ro,GroupIcon:()=>qo,GroupWorkIcon:()=>Ho,GroupWorkOutlinedIcon:()=>Yo,HandleIcon:()=>Ro,HeightIcon:()=>ea,HelpIcon:()=>Ko,HighlightIcon:()=>Zo,HighlightOutlinedIcon:()=>Xo,HomeIcon:()=>Jo,HubOutlinedIcon:()=>Qo.A,IconButton:()=>io.K,InfoIcon:()=>na,InfoOutlinedIcon:()=>ra.A,KeyboardArrowDownIcon:()=>ia,KeyboardArrowLeftIcon:()=>sa,KeyboardArrowRightIcon:()=>aa,KeyboardArrowUpIcon:()=>oa,LayersClearOutlinedIcon:()=>ua,LayersIcon:()=>ca,LayersOutlinedIcon:()=>da.A,Link:()=>Es.A,List:()=>yl.B8,ListAltIcon:()=>ha,ListItem:()=>yl.ck,ListItemButton:()=>yl.Wj,ListItemIcon:()=>yl.L,ListItemText:()=>yl.Zq,LoadingButton:()=>Ks,LockIcon:()=>fa,LockOpenIcon:()=>ga,LoopIcon:()=>ma,MRTTable:()=>VP,MRT_ActionMenuItem:()=>oO,MRT_AggregationFns:()=>R_,MRT_BottomToolbar:()=>kP,MRT_ColumnActionMenu:()=>tP,MRT_ColumnPinningButtons:()=>TP,MRT_CopyButton:()=>DO,MRT_DefaultColumn:()=>SO,MRT_DefaultDisplayColumn:()=>CO,MRT_EditActionButtons:()=>Z_,MRT_EditCellTextField:()=>NO,MRT_EditRowModal:()=>bP,MRT_ExpandAllButton:()=>pO,MRT_ExpandButton:()=>fO,MRT_FilterCheckbox:()=>rP,MRT_FilterFns:()=>K_,MRT_FilterOptionMenu:()=>eP,MRT_FilterRangeFields:()=>oP,MRT_FilterRangeSlider:()=>aP,MRT_FilterTextField:()=>iP,MRT_GlobalFilterTextField:()=>FP,MRT_GrabHandleButton:()=>uO,MRT_LinearProgressBar:()=>AP,MRT_RowActionMenu:()=>aO,MRT_RowPinButton:()=>yO,MRT_SelectCheckbox:()=>bO,MRT_ShowHideColumnsButton:()=>PP,MRT_ShowHideColumnsMenu:()=>OP,MRT_ShowHideColumnsMenuItems:()=>_P,MRT_SortingFns:()=>k_,MRT_Table:()=>mP,MRT_TableBody:()=>UO,MRT_TableBodyCell:()=>BO,MRT_TableBodyCellValue:()=>FO,MRT_TableBodyRow:()=>$O,MRT_TableBodyRowGrabHandle:()=>dO,MRT_TableBodyRowPinButton:()=>vO,MRT_TableContainer:()=>xP,MRT_TableDetailPanel:()=>VO,MRT_TableFooter:()=>YO,MRT_TableFooterCell:()=>qO,MRT_TableFooterRow:()=>HO,MRT_TableHead:()=>gP,MRT_TableHeadCell:()=>hP,MRT_TableHeadCellColumnActionsButton:()=>nP,MRT_TableHeadCellFilterContainer:()=>sP,MRT_TableHeadCellFilterLabel:()=>lP,MRT_TableHeadCellGrabHandle:()=>cP,MRT_TableHeadCellResizeHandle:()=>uP,MRT_TableHeadCellSortLabel:()=>dP,MRT_TableHeadRow:()=>pP,MRT_TableLoadingOverlay:()=>yP,MRT_TablePagination:()=>CP,MRT_TablePaper:()=>NP,MRT_ToggleDensePaddingButton:()=>IP,MRT_ToggleFiltersButton:()=>MP,MRT_ToggleFullScreenButton:()=>LP,MRT_ToggleGlobalFilterButton:()=>RP,MRT_ToggleRowActionMenuButton:()=>lO,MRT_ToolbarAlertBanner:()=>fP,MRT_ToolbarDropZone:()=>EP,MRT_ToolbarInternalButtons:()=>jP,MRT_TopToolbar:()=>DP,MapIcon:()=>ba.A,MaterialReactTable:()=>BP,Memo_MRT_TableBody:()=>WO,Memo_MRT_TableBodyCell:()=>zO,Memo_MRT_TableBodyRow:()=>GO,Menu:()=>zl,MenuIcon:()=>wa,MenuItem:()=>wl,Modal:()=>dh,ModalApi:()=>Zl,MoreHorizIcon:()=>xa,MoreVertIcon:()=>Aa,MoveDownRoundedIcon:()=>Sa,MoveUpRoundedIcon:()=>Ca,NotificationsActiveIcon:()=>va,NotificationsIcon:()=>ya,OpacityIcon:()=>Ea,OpenInBrowserIcon:()=>ka,Panel:()=>Eh,Paper:()=>ph,PauseIcon:()=>Ta,PlayArrowIcon:()=>_a,Popover:()=>_h,Popper:()=>TI,ProgressBar:()=>hl,PublicIcon:()=>Oa.A,QuestionMarkIcon:()=>Ia.A,RadioButtonCheckedIcon:()=>Ma,RadioButtonUncheckedIcon:()=>La,RemoveCircleOutlineIcon:()=>ja,ReorderIcon:()=>ta,RestartAltIcon:()=>Fa,SatelliteIcon:()=>Da.A,SchoolIcon:()=>Na,SearchIcon:()=>Ba,Select:()=>kp,SendIcon:()=>za,SignpostIcon:()=>Va.A,Skeleton:()=>Bp,Slider:()=>Wp,Snackbar:()=>wf,Stack:()=>js,Stepper:()=>bg,StorageIcon:()=>$a.A,Switch:()=>Lg,SwitchLeftIcon:()=>Ua,SwitchRightIcon:()=>Ga,Table:()=>iv,TableBody:()=>uv,TableCell:()=>xv,TableChartOutlinedIcon:()=>qa,TableContainer:()=>Qy,TableHead:()=>Qv,TableRow:()=>mv,TableViewIcon:()=>Wa.A,Tabs:()=>oI,TextField:()=>fI,TimeSliderIcon:()=>oo,TodoIcon:()=>pa,Toolbar:()=>bI,Tooltip:()=>AI,Typography:()=>SI.o,UndoIcon:()=>Ha,UploadFileIcon:()=>Ya,VisibilityIcon:()=>Ka,VisibilityOffIcon:()=>Xa,VisibilityOffOutlinedIcon:()=>Ja,VisibilityOutlinedIcon:()=>Za,WarningIcon:()=>Qa,ZoomInIcon:()=>ao,ZoomInSearchIcon:()=>ts,ZoomOutIcon:()=>Ra,ZoomOutSearchIcon:()=>ns,cgpvTheme:()=>wg.w,createMRTColumnHelper:()=>c_,createRow:()=>u_,defaultDisplayColumnProps:()=>g_,flexRender:()=>l_,getAllLeafColumnDefs:()=>n_,getCanRankRows:()=>O_,getColumnFilterInfo:()=>a_,getColumnId:()=>t_,getDefaultColumnFilterFn:()=>o_,getDefaultColumnOrderIds:()=>E_,getIsRankingRows:()=>P_,getIsRowSelected:()=>I_,getLeadingDisplayColumnIds:()=>S_,getMRT_RowSelectionHandler:()=>M_,getMRT_Rows:()=>__,getMRT_SelectAllHandler:()=>L_,getTheme:()=>wg.O,getTrailingDisplayColumnIds:()=>C_,isCellEditable:()=>p_,mrtFilterOptions:()=>KO,openEditingCell:()=>f_,prepareColumns:()=>r_,rankGlobalFuzzy:()=>T_,reorderColumn:()=>i_,showRowActionsColumn:()=>b_,showRowDragColumn:()=>y_,showRowExpandColumn:()=>v_,showRowNumbersColumn:()=>x_,showRowPinningColumn:()=>m_,showRowSelectionColumn:()=>w_,showRowSpacerColumn:()=>A_,useDropdownOptions:()=>s_,useMRT_ColumnVirtualizer:()=>MO,useMRT_Effects:()=>_O,useMRT_RowVirtualizer:()=>LO,useMRT_Rows:()=>RO,useMRT_TableInstance:()=>OO,useMRT_TableOptions:()=>EO,useMaterialReactTable:()=>PO});var r=n(29067),i=n(55907),o=n(30538),a=n.t(o,2),s=n(44912),l=(n(91272),n(87286)),c=n(22554),u=n(48678),d=n(11367),h=n(56239),p=n(50402),f=n(95197);const g=o.createContext({});var m=n(33005),y=n(61870),v=n(35836),b=n(93724),w=n(37290);function x(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:s,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...h}=o,p=u[e]||r,f=(0,b.A)(d[e],i),{props:{component:g,...m},internalRef:x}=(0,w.A)({className:n,...l,externalForwardedProps:"root"===e?h:void 0,externalSlotProps:f}),A=(0,y.A)(x,f?.ref,t.ref),S=a?a(m):{},C={...i,...S},E="root"===e?g||c:g,k=(0,v.A)(p,{..."root"===e&&!c&&!u[e]&&s,..."root"!==e&&!u[e]&&s,...m,...E&&{as:E},ref:A},C);return Object.keys(S).forEach((e=>{delete k[e]})),[p,k]}var A=n(10383),S=n(59644);function C(e){return(0,S.Ay)("MuiAccordion",e)}const E=(0,A.A)("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]);var k=n(97282);const T=(0,u.Ay)(f.A,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${E.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((0,d.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${E.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${E.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}})),(0,d.A)((({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${E.expanded}`]:{margin:"16px 0"}}}]})))),_=(0,u.Ay)("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),O=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAccordion"}),{children:r,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:u=!1,expanded:d,onChange:f,square:y=!1,slots:v={},slotProps:b={},TransitionComponent:w,TransitionProps:A,...S}=n,[E,O]=(0,m.A)({controlled:d,default:a,name:"Accordion",state:"expanded"}),P=o.useCallback((e=>{O(!E),f&&f(e,!E)}),[E,f,O]),[I,...M]=o.Children.toArray(r),L=o.useMemo((()=>({expanded:E,disabled:s,disableGutters:u,toggle:P})),[E,s,u,P]),R={...n,square:y,disabled:s,disableGutters:u,expanded:E},j=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,a={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],heading:["heading"],region:["region"]};return(0,c.A)(a,C,t)})(R),F={slots:{transition:w,...v},slotProps:{transition:A,...b}},[D,N]=x("heading",{elementType:_,externalForwardedProps:F,className:j.heading,ownerState:R}),[B,z]=x("transition",{elementType:p.A,externalForwardedProps:F,ownerState:R});return(0,k.jsxs)(T,{className:(0,l.A)(j.root,i),ref:t,ownerState:R,square:y,...S,children:[(0,k.jsx)(D,{...N,children:(0,k.jsx)(g.Provider,{value:L,children:I})}),(0,k.jsx)(B,{in:E,timeout:"auto",...z,children:(0,k.jsx)("div",{"aria-labelledby":I.props.id,id:I.props["aria-controls"],role:"region",className:j.region,children:M})})]})}));var P=n(18443);function I(e){return(0,S.Ay)("MuiAccordionSummary",e)}const M=(0,A.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),L=(0,u.Ay)(P.A,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((0,d.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${M.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${M.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${M.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${M.expanded}`]:{minHeight:64}}}]}}))),R=(0,u.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((0,d.A)((({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${M.expanded}`]:{margin:"20px 0"}}}]})))),j=(0,u.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((0,d.A)((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${M.expanded}`]:{transform:"rotate(180deg)"}})))),F=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAccordionSummary"}),{children:r,className:i,expandIcon:a,focusVisibleClassName:s,onClick:u,...d}=n,{disabled:p=!1,disableGutters:f,expanded:m,toggle:y}=o.useContext(g),v={...n,expanded:m,disabled:p,disableGutters:f},b=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e,o={root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,c.A)(o,I,t)})(v);return(0,k.jsxs)(L,{focusRipple:!1,disableRipple:!0,disabled:p,component:"div","aria-expanded":m,className:(0,l.A)(b.root,i),focusVisibleClassName:(0,l.A)(b.focusVisible,s),onClick:e=>{y&&y(e),u&&u(e)},ref:t,ownerState:v,...d,children:[(0,k.jsx)(R,{className:b.content,ownerState:v,children:r}),a&&(0,k.jsx)(j,{className:b.expandIconWrapper,ownerState:v,children:a})]})}));function D(e){return(0,S.Ay)("MuiAccordionDetails",e)}(0,A.A)("MuiAccordionDetails",["root"]);const N=(0,u.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((0,d.A)((({theme:e})=>({padding:e.spacing(1,2,2)})))),B=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAccordionDetails"}),{className:r,...i}=n,o=n,a=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},D,t)})(o);return(0,k.jsx)(N,{className:(0,l.A)(a.root,r),ref:t,ownerState:o,...i})}));var z=n(76200),V={loadingIcon:{animation:"rotate 1s infinite linear","@keyframes rotate":{from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}}};function $(e){var t=e.id,n=e.sx,a=e.items,l=e.className,c=e.defaultExpanded,u=void 0!==c&&c,d=e.showLoadingIcon,h=void 0!==d&&d,p=(0,o.useState)(Array(a.length).fill(u)),f=(0,i.A)(p,2),g=f[0],m=f[1],y=(0,o.useState)(Array(a.length).fill(!1)),v=(0,i.A)(y,2),b=v[0],w=v[1],x=function(e){return function(t,n){var i=(0,r.A)(g);i[e]=n,m(i)}},A=(0,o.useCallback)((function(e){return function(t){if(!g[e]&&h){var n=(0,r.A)(b);if(n[e]=!0,w(n),"height"===t.propertyName){var i=(0,r.A)(b);i[e]=!1,w(i)}}}}),[g,h,b]);return(0,k.jsx)(s.A,{id:(0,z.generateId)(t),sx:n,className:"accordion-group",children:a.map((function(e,t){return(0,k.jsxs)(O,{className:l,expanded:g[t],onChange:x(t),onTransitionEnd:A(t),children:[(0,k.jsx)(F,{expandIcon:h&&b[t]?(0,k.jsx)(ma,{sx:V.loadingIcon}):(0,k.jsx)(Bo,{}),"aria-controls":"accordion-panel-".concat(t,"-a-content"),children:(0,k.jsx)("div",{children:e.title})}),(0,k.jsx)(B,{children:e.content})]},t)}))})}var G=n(42432),U=n(99324);function W(e){return(0,S.Ay)("MuiAppBar",e)}(0,A.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const q=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,H=(0,u.Ay)(f.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,U.A)(n.position)}`],t[`color${(0,U.A)(n.color)}`]]}})((0,d.A)((({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.contrastText)).map((([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}}))),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?q(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?q(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]})))),Y=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:o=!1,position:a="fixed",...s}=n,u={...n,color:i,position:a,enableColorOnDark:o},d=(e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${(0,U.A)(t)}`,`position${(0,U.A)(n)}`]};return(0,c.A)(i,W,r)})(u);return(0,k.jsx)(H,{square:!0,component:"header",ownerState:u,elevation:4,className:(0,l.A)(d.root,r,"fixed"===a&&"mui-fixed"),ref:t,...s})}));var K=n(38811),X=n(39561);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){var t=(0,X.T$)(),n=(0,K.CS)(Y);return(0,k.jsx)(n,function(e){for(var t=1;t{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current};var oe=n(45134),ae=n(36332);function se(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const le=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=se(c));const u=c?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=se(r)),"start"===i?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),ce=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),ue=[];const de=function(e){const{unstable_isActiveElementInListbox:t=ce,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?ue:null),disableClearable:h=!1,disableCloseOnSelect:p=!1,disabled:f,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:y=le,filterSelectedOptions:v=!1,freeSolo:b=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:A=e=>e.label??e,groupBy:S,handleHomeEndKeys:C=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:T,isOptionEqualToValue:_=(e,t)=>e===t,multiple:O=!1,onChange:P,onClose:I,onHighlightChange:M,onInputChange:L,onOpen:R,open:j,openOnFocus:F=!1,options:D,readOnly:N=!1,selectOnFocus:B=!e.freeSolo,value:z}=e,V=(0,ne.A)(E);let $=A;$=e=>{const t=A(e);return"string"!=typeof t?String(t):t};const G=o.useRef(!1),U=o.useRef(!0),W=o.useRef(null),q=o.useRef(null),[H,Y]=o.useState(null),[K,X]=o.useState(-1),Z=i?0:-1,J=o.useRef(Z),[Q,ee]=(0,re.A)({controlled:z,default:d,name:u}),[te,se]=(0,re.A)({controlled:T,default:"",name:u,state:"inputValue"}),[de,he]=o.useState(!1),pe=o.useCallback(((e,t,n)=>{if(!(O?Q.length!v||!(O?Q:[Q]).some((t=>null!==t&&_(e,t))))),{inputValue:ve&&me?"":te,getOptionLabel:$}):[],xe=ie({filteredOptions:we,value:Q,inputValue:te});o.useEffect((()=>{const e=Q!==xe.value;de&&!e||b&&!e||pe(null,Q,"reset")}),[Q,pe,de,xe.value,b]);const Ae=fe&&we.length>0&&!N,Se=(0,oe.A)((e=>{-1===e?W.current.focus():H.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{O&&K>Q.length-1&&(X(-1),Se(-1))}),[Q,O,K,Se]);const Ce=(0,oe.A)((({event:e,index:t,reason:r="auto"})=>{if(J.current=t,-1===t?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${V}-option-${t}`),M&&M(e,-1===t?null:we[t],r),!q.current)return;const i=q.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let o=q.current;if("listbox"!==q.current.getAttribute("role")&&(o=q.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t)return void(o.scrollTop=0);const a=q.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0){if(!be)return;const o=function(e,t){if(!q.current||e<0||e>=we.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),i=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if(n="next"===t?(n+1)%we.length:(n-1+we.length)%we.length,n===e)return-1}}((()=>{const e=we.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const n=J.current+t;return n<0?-1===n&&k?-1:m&&-1!==J.current||Math.abs(t)>1?0:e:n>e?n===e+1&&k?-1:m||Math.abs(t)>1?e:0:n})(),n);if(Ce({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)W.current.value=te;else{const e=$(we[o]);W.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&W.current.setSelectionRange(te.length,e.length)}})),ke=o.useCallback((()=>{if(!be)return;const e=(()=>{if(-1!==J.current&&xe.filteredOptions&&xe.filteredOptions.length!==we.length&&xe.inputValue===te&&(O?Q.length===xe.value.length&&xe.value.every(((e,t)=>$(Q[t])===$(e))):(e=xe.value,t=Q,(e?$(e):"")===(t?$(t):"")))){const e=xe.filteredOptions[J.current];if(e)return we.findIndex((t=>$(t)===$(e)))}var e,t;return-1})();if(-1!==e)return void(J.current=e);const t=O?Q[0]:Q;if(0!==we.length&&null!=t){if(q.current)if(null==t)J.current>=we.length-1?Ce({index:we.length-1}):Ce({index:J.current});else{const e=we[J.current];if(O&&e&&-1!==Q.findIndex((t=>_(e,t))))return;const n=we.findIndex((e=>_(e,t)));-1===n?Ee({diff:"reset"}):Ce({index:n})}}else Ee({diff:"reset"})}),[we.length,!O&&Q,v,Ee,Ce,be,te,O]),Te=(0,oe.A)((e=>{(0,ae.A)(q,e),e&&ke()}));o.useEffect((()=>{ke()}),[ke]);const _e=e=>{fe||(ge(!0),ye(!0),R&&R(e))},Oe=(e,t)=>{fe&&(ge(!1),I&&I(e,t))},Pe=(e,t,n,r)=>{if(O){if(Q.length===t.length&&Q.every(((e,n)=>e===t[n])))return}else if(Q===t)return;P&&P(e,t,n,r),ee(t)},Ie=o.useRef(!1),Me=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(O){o=Array.isArray(Q)?Q.slice():[];const e=o.findIndex((e=>_(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}pe(e,o,i),Pe(e,o,i,{option:t}),p||e&&(e.ctrlKey||e.metaKey)||Oe(e,i),(!0===s||"touch"===s&&Ie.current||"mouse"===s&&!Ie.current)&&W.current.blur()},Le=(e,t)=>{if(!O)return;""===te&&Oe(e,"toggleInput");let n=K;-1===K?""===te&&"previous"===t&&(n=Q.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Q.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Q.length||"previous"===t&&-1===n)return-1;const e=H.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),Se(n)},Re=e=>{G.current=!0,se(""),L&&L(e,"","clear"),Pe(e,O?[]:null,"clear")},je=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),Se(-1)),229!==t.which))switch(t.key){case"Home":be&&C&&(t.preventDefault(),Ee({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":be&&C&&(t.preventDefault(),Ee({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ee({diff:-5,direction:"previous",reason:"keyboard",event:t}),_e(t);break;case"PageDown":t.preventDefault(),Ee({diff:5,direction:"next",reason:"keyboard",event:t}),_e(t);break;case"ArrowDown":t.preventDefault(),Ee({diff:1,direction:"next",reason:"keyboard",event:t}),_e(t);break;case"ArrowUp":t.preventDefault(),Ee({diff:-1,direction:"previous",reason:"keyboard",event:t}),_e(t);break;case"ArrowLeft":Le(t,"previous");break;case"ArrowRight":Le(t,"next");break;case"Enter":if(-1!==J.current&&be){const e=we[J.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Me(t,e,"selectOption"),r&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else b&&""!==te&&!1===ve&&(O&&t.preventDefault(),Me(t,te,"createOption","freeSolo"));break;case"Escape":be?(t.preventDefault(),t.stopPropagation(),Oe(t,"escape")):c&&(""!==te||O&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Re(t));break;case"Backspace":if(O&&!N&&""===te&&Q.length>0){const e=-1===K?Q.length-1:K,n=Q.slice();n.splice(e,1),Pe(t,n,"removeOption",{option:Q[e]})}break;case"Delete":if(O&&!N&&""===te&&Q.length>0&&-1!==K){const e=K,n=Q.slice();n.splice(e,1),Pe(t,n,"removeOption",{option:Q[e]})}}},Fe=e=>{he(!0),F&&!G.current&&_e(e)},De=e=>{t(q)?W.current.focus():(he(!1),U.current=!0,G.current=!1,a&&-1!==J.current&&be?Me(e,we[J.current],"blur"):a&&b&&""!==te?Me(e,te,"blur","freeSolo"):l&&pe(e,Q,"blur"),Oe(e,"blur"))},Ne=e=>{const t=e.target.value;te!==t&&(se(t),ye(!1),L&&L(e,t,"input")),""===t?h||O||Pe(e,null,"clear"):_e(e)},Be=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&Ce({event:e,index:t,reason:"mouse"})},ze=e=>{Ce({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ie.current=!0},Ve=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Me(e,we[t],"selectOption"),Ie.current=!1},$e=e=>t=>{const n=Q.slice();n.splice(e,1),Pe(t,n,"removeOption",{option:Q[e]})},Ge=e=>{fe?Oe(e,"toggleInput"):_e(e)},Ue=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==V&&e.preventDefault()},We=e=>{e.currentTarget.contains(e.target)&&(W.current.focus(),B&&U.current&&W.current.selectionEnd-W.current.selectionStart==0&&W.current.select(),U.current=!1)},qe=e=>{f||""!==te&&fe||Ge(e)};let He=b&&te.length>0;He=He||(O?Q.length>0:null!==Q);let Ye=we;if(S){new Map;Ye=we.reduce(((e,t,n)=>{const r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return f&&de&&De(),{getRootProps:(e={})=>({"aria-owns":Ae?`${V}-listbox`:null,...e,onKeyDown:je(e),onMouseDown:Ue,onClick:We}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:te,onBlur:De,onFocus:Fe,onChange:Ne,onMouseDown:qe,"aria-activedescendant":be?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ae?`${V}-listbox`:void 0,"aria-expanded":Ae,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ge}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!N&&{onDelete:$e(e)}}),getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:Te,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(O?Q:[Q]).some((e=>null!=e&&_(t,e))),r=!!w&&w(t);return{key:x?.(t)??$(t),tabIndex:-1,role:"option",id:`${V}-option-${e}`,onMouseMove:Be,onClick:Ve,onTouchStart:ze,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:V,inputValue:te,value:Q,dirty:He,expanded:be&&H,popupOpen:be,focused:de||-1!==K,anchorEl:H,setAnchorEl:Y,focusedTag:K,groupedOptions:Ye}};var he=n(64578);function pe(e){return(0,S.Ay)("MuiListSubheader",e)}(0,A.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fe=(0,u.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,U.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((0,d.A)((({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]})))),ge=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:a=!1,disableSticky:s=!1,inset:u=!1,...d}=n,p={...n,color:i,component:o,disableGutters:a,disableSticky:s,inset:u},f=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root","default"!==n&&`color${(0,U.A)(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,c.A)(a,pe,t)})(p);return(0,k.jsx)(fe,{as:o,className:(0,l.A)(f.root,r),ref:t,ownerState:p,...d})}));ge&&(ge.muiSkipListHighlight=!0);const me=ge;var ye=n(17239),ve=n(33071);const be=(0,ve.A)((0,k.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var we=n(22626);function xe(e){return(0,S.Ay)("MuiChip",e)}const Ae=(0,A.A)("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Se=(0,u.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${Ae.avatar}`]:t.avatar},{[`& .${Ae.avatar}`]:t[`avatar${(0,U.A)(s)}`]},{[`& .${Ae.avatar}`]:t[`avatarColor${(0,U.A)(r)}`]},{[`& .${Ae.icon}`]:t.icon},{[`& .${Ae.icon}`]:t[`icon${(0,U.A)(s)}`]},{[`& .${Ae.icon}`]:t[`iconColor${(0,U.A)(i)}`]},{[`& .${Ae.deleteIcon}`]:t.deleteIcon},{[`& .${Ae.deleteIcon}`]:t[`deleteIcon${(0,U.A)(s)}`]},{[`& .${Ae.deleteIcon}`]:t[`deleteIconColor${(0,U.A)(r)}`]},{[`& .${Ae.deleteIcon}`]:t[`deleteIcon${(0,U.A)(l)}Color${(0,U.A)(r)}`]},t.root,t[`size${(0,U.A)(s)}`],t[`color${(0,U.A)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,U.A)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,U.A)(r)}`],t[l],t[`${l}${(0,U.A)(r)}`]]}})((0,d.A)((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ae.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ae.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ae.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ae.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ae.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ae.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ae.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,te.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,te.X4)(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ae.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ae.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.contrastText)).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Ae.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:(0,te.X4)(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${Ae.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${Ae.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ae.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter((([,e])=>e&&e.dark)).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${Ae.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,te.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ae.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter((([,e])=>e&&e.dark)).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${Ae.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ae.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ae.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ae.avatar}`]:{marginLeft:4},[`& .${Ae.avatarSmall}`]:{marginLeft:2},[`& .${Ae.icon}`]:{marginLeft:4},[`& .${Ae.iconSmall}`]:{marginLeft:2},[`& .${Ae.deleteIcon}`]:{marginRight:5},[`& .${Ae.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,te.X4)(e.palette[t].main,.7)}`,[`&.${Ae.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${Ae.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${Ae.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,te.X4)(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),Ce=(0,u.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,U.A)(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Ee(e){return"Backspace"===e.key||"Delete"===e.key}const ke=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:s="default",component:u,deleteIcon:d,disabled:p=!1,icon:f,label:g,onClick:m,onDelete:y,onKeyDown:v,onKeyUp:b,size:w="medium",variant:x="filled",tabIndex:A,skipFocusWhenDisabled:S=!1,...C}=n,E=o.useRef(null),T=(0,we.A)(E,t),_=e=>{e.stopPropagation(),y&&y(e)},O=!(!1===a||!m)||a,I=O||y?P.A:u||"div",M={...n,component:I,disabled:p,size:w,color:s,iconColor:o.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:O,variant:x},L=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${(0,U.A)(r)}`,`color${(0,U.A)(i)}`,s&&"clickable",s&&`clickableColor${(0,U.A)(i)}`,a&&"deletable",a&&`deletableColor${(0,U.A)(i)}`,`${l}${(0,U.A)(i)}`],label:["label",`label${(0,U.A)(r)}`],avatar:["avatar",`avatar${(0,U.A)(r)}`,`avatarColor${(0,U.A)(i)}`],icon:["icon",`icon${(0,U.A)(r)}`,`iconColor${(0,U.A)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,U.A)(r)}`,`deleteIconColor${(0,U.A)(i)}`,`deleteIcon${(0,U.A)(l)}Color${(0,U.A)(i)}`]};return(0,c.A)(u,xe,t)})(M),R=I===P.A?{component:u||"div",focusVisibleClassName:L.focusVisible,...y&&{disableRipple:!0}}:{};let j=null;y&&(j=d&&o.isValidElement(d)?o.cloneElement(d,{className:(0,l.A)(d.props.className,L.deleteIcon),onClick:_}):(0,k.jsx)(be,{className:(0,l.A)(L.deleteIcon),onClick:_}));let F=null;r&&o.isValidElement(r)&&(F=o.cloneElement(r,{className:(0,l.A)(L.avatar,r.props.className)}));let D=null;return f&&o.isValidElement(f)&&(D=o.cloneElement(f,{className:(0,l.A)(L.icon,f.props.className)})),(0,k.jsxs)(Se,{as:I,className:(0,l.A)(L.root,i),disabled:!(!O||!p)||void 0,onClick:m,onKeyDown:e=>{e.currentTarget===e.target&&Ee(e)&&e.preventDefault(),v&&v(e)},onKeyUp:e=>{e.currentTarget===e.target&&y&&Ee(e)&&y(e),b&&b(e)},ref:T,tabIndex:S&&p?-1:A,ownerState:M,...R,...C,children:[F||D,(0,k.jsx)(Ce,{className:(0,l.A)(L.label),ownerState:M,children:g}),j]})}));var Te=n(56689),_e=n(85205);function Oe(e){return(0,S.Ay)("MuiOutlinedInput",e)}const Pe={..._e.A,...(0,A.A)("MuiOutlinedInput",["root","notchedOutline","input"])};function Ie(e){return(0,S.Ay)("MuiFilledInput",e)}const Me={..._e.A,...(0,A.A)("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Le=(0,ve.A)((0,k.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Re=n(25912);function je(e){return(0,S.Ay)("MuiAutocomplete",e)}const Fe=(0,A.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var De,Ne;const Be=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fe.tag}`]:t.tag},{[`& .${Fe.tag}`]:t[`tagSize${(0,U.A)(s)}`]},{[`& .${Fe.inputRoot}`]:t.inputRoot},{[`& .${Fe.input}`]:t.input},{[`& .${Fe.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Fe.focused} .${Fe.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fe.clearIndicator}`]:{visibility:"visible"}},[`& .${Fe.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Fe.inputRoot}`]:{[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:30},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:56},[`& .${Fe.input}`]:{width:0,minWidth:30}},[`& .${Te.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Te.A.root}.${_e.A.sizeSmall}`]:{[`& .${Te.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Pe.root}`]:{padding:9,[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:39},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:65},[`& .${Fe.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fe.endAdornment}`]:{right:9}},[`& .${Pe.root}.${_e.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fe.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Me.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:39},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:65},[`& .${Me.input}`]:{padding:"7px 4px"},[`& .${Fe.endAdornment}`]:{right:9}},[`& .${Me.root}.${_e.A.sizeSmall}`]:{paddingBottom:1,[`& .${Me.input}`]:{padding:"2.5px 4px"}},[`& .${_e.A.hiddenLabel}`]:{paddingTop:8},[`& .${Me.root}.${_e.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fe.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Me.root}.${_e.A.hiddenLabel}.${_e.A.sizeSmall}`]:{[`& .${Fe.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fe.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Fe.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Fe.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Fe.inputRoot}`]:{flexWrap:"wrap"}}}]}),ze=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ve=(0,u.Ay)(ye.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),$e=(0,u.Ay)(ye.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Ge=(0,u.Ay)(he.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fe.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((0,d.A)((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})))),Ue=(0,u.Ay)(f.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,d.A)((({theme:e})=>({...e.typography.body1,overflow:"auto"})))),We=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,d.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),qe=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,d.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),He=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,d.A)((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Fe.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Fe.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fe.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})))),Ye=(0,u.Ay)(me,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,d.A)((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})))),Ke=(0,u.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fe.option}`]:{paddingLeft:24}}),Xe=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:u,className:d,clearIcon:p=De||(De=(0,k.jsx)(Le,{fontSize:"small"})),clearOnBlur:g=!n.freeSolo,clearOnEscape:m=!1,clearText:y="Clear",closeText:v="Close",componentsProps:b,defaultValue:w=(n.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:S=!1,disabled:C=!1,disabledItemsFocusable:E=!1,disableListWrap:T=!1,disablePortal:_=!1,filterOptions:O,filterSelectedOptions:P=!1,forcePopupIcon:I="auto",freeSolo:M=!1,fullWidth:L=!1,getLimitTagsText:R=e=>`+${e}`,getOptionDisabled:j,getOptionKey:F,getOptionLabel:D,isOptionEqualToValue:N,groupBy:B,handleHomeEndKeys:z=!n.freeSolo,id:V,includeInputInList:$=!1,inputValue:G,limitTags:W=-1,ListboxComponent:q,ListboxProps:H,loading:Y=!1,loadingText:K="Loading…",multiple:X=!1,noOptionsText:Z="No options",onChange:J,onClose:Q,onHighlightChange:ee,onInputChange:te,onOpen:ne,open:re,openOnFocus:ie=!1,openText:oe="Open",options:ae,PaperComponent:se,PopperComponent:le,popupIcon:ce=Ne||(Ne=(0,k.jsx)(Re.A,{})),readOnly:ue=!1,renderGroup:pe,renderInput:fe,renderOption:ge,renderTags:me,selectOnFocus:ye=!n.freeSolo,size:ve="medium",slots:be={},slotProps:we={},value:xe,...Ae}=n,{getRootProps:Se,getInputProps:Ce,getInputLabelProps:Ee,getPopupIndicatorProps:Te,getClearProps:_e,getTagProps:Oe,getListboxProps:Pe,getOptionProps:Ie,value:Me,dirty:Fe,expanded:Xe,id:Ze,popupOpen:Je,focused:Qe,focusedTag:et,anchorEl:tt,setAnchorEl:nt,inputValue:rt,groupedOptions:it}=de({...n,componentName:"Autocomplete"}),ot=!A&&!C&&Fe&&!ue,at=(!M||!0===I)&&!1!==I,{onMouseDown:st}=Ce(),{ref:lt,...ct}=Pe(),ut=D||(e=>e.label??e),dt={...n,disablePortal:_,expanded:Xe,focused:Qe,fullWidth:L,getOptionLabel:ut,hasClearIcon:ot,hasPopupIcon:at,inputFocused:-1===et,popupOpen:Je,size:ve},ht=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:d}=e,h={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${(0,U.A)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,c.A)(h,je,t)})(dt),pt={slots:{listbox:q,paper:se,popper:le,...be},slotProps:{chip:u,listbox:H,...b,...we}},[ft,gt]=x("listbox",{elementType:"ul",externalForwardedProps:pt,ownerState:dt,className:ht.listbox,additionalProps:ct,ref:lt}),[mt,yt]=x("paper",{elementType:f.A,externalForwardedProps:pt,ownerState:dt,className:ht.paper}),[vt,bt]=x("popper",{elementType:he.A,externalForwardedProps:pt,ownerState:dt,className:ht.popper,additionalProps:{disablePortal:_,style:{width:tt?tt.clientWidth:null},role:"presentation",anchorEl:tt,open:Je}});let wt;if(X&&Me.length>0){const e=e=>({className:ht.tag,disabled:C,...Oe(e)});wt=me?me(Me,e,dt):Me.map(((t,n)=>{const{key:r,...i}=e({index:n});return(0,k.jsx)(ke,{label:ut(t),size:ve,...i,...pt.slotProps.chip},r)}))}if(W>-1&&Array.isArray(wt)){const e=wt.length-W;!Qe&&e>0&&(wt=wt.splice(0,W),wt.push((0,k.jsx)("span",{className:ht.tag,children:R(e)},wt.length)))}const xt=pe||(e=>(0,k.jsxs)("li",{children:[(0,k.jsx)(Ye,{className:ht.groupLabel,ownerState:dt,component:"div",children:e.group}),(0,k.jsx)(Ke,{className:ht.groupUl,ownerState:dt,children:e.children})]},e.key)),At=ge||((e,t)=>{const{key:n,...r}=e;return(0,k.jsx)("li",{...r,children:ut(t)},n)}),St=(e,t)=>{const n=Ie({option:e,index:t});return At({...n,className:ht.option},e,{selected:n["aria-selected"],index:t,inputValue:rt},dt)},Ct=pt.slotProps.clearIndicator,Et=pt.slotProps.popupIndicator,kt=e=>(0,k.jsx)(Ge,{as:vt,...bt,children:(0,k.jsx)(Ue,{as:mt,...yt,children:e})});let Tt=null;return it.length>0?Tt=kt((0,k.jsx)(He,{as:ft,...gt,children:it.map(((e,t)=>B?xt({key:e.key,group:e.group,children:e.options.map(((t,n)=>St(t,e.index+n)))}):St(e,t)))})):Y&&0===it.length?Tt=kt((0,k.jsx)(We,{className:ht.loading,ownerState:dt,children:K})):0!==it.length||M||Y||(Tt=kt((0,k.jsx)(qe,{className:ht.noOptions,ownerState:dt,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:Z}))),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(Be,{ref:t,className:(0,l.A)(ht.root,d),ownerState:dt,...Se(Ae),children:fe({id:Ze,disabled:C,fullWidth:!0,size:"small"===ve?"small":void 0,InputLabelProps:Ee(),InputProps:{ref:nt,className:ht.inputRoot,startAdornment:wt,onClick:e=>{e.target===e.currentTarget&&st(e)},...(ot||at)&&{endAdornment:(0,k.jsxs)(ze,{className:ht.endAdornment,ownerState:dt,children:[ot?(0,k.jsx)(Ve,{..._e(),"aria-label":y,title:y,ownerState:dt,...Ct,className:(0,l.A)(ht.clearIndicator,Ct?.className),children:p}):null,at?(0,k.jsx)($e,{...Te(),disabled:C,"aria-label":Je?v:oe,title:Je?v:oe,ownerState:dt,...Et,className:(0,l.A)(ht.popupIndicator,Et?.className),children:ce}):null]})}},inputProps:{className:ht.input,disabled:C,readOnly:ue,...Ce()}})}),tt?Tt:null]})})),Ze=Xe;var Je=["fullWidth"];function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((0,d.A)((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]})))),at=(0,u.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),st=(0,u.Ay)(rt,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const lt=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:s="div",slots:u={},slotProps:d={},imgProps:p,sizes:f,src:g,srcSet:m,variant:y="circular",...v}=n;let b=null;const w=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=o.useState(!1);return o.useEffect((()=>{if(!n&&!r)return;a(!1);let i=!0;const o=new Image;return o.onload=()=>{i&&a("loaded")},o.onerror=()=>{i&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{i=!1}}),[e,t,n,r]),i}({...p,src:g,srcSet:m}),A=g||m,S=A&&"error"!==w,C={...n,colorDefault:!S,component:s,variant:y};delete C.ownerState;const E=(e=>{const{classes:t,variant:n,colorDefault:r}=e,i={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,c.A)(i,it,t)})(C),[T,_]=x("img",{className:E.img,elementType:at,externalForwardedProps:{slots:u,slotProps:{img:{...p,...d.img}}},additionalProps:{alt:r,src:g,srcSet:m,sizes:f},ownerState:C});return b=S?(0,k.jsx)(T,{..._}):i||0===i?i:A&&r?r[0]:(0,k.jsx)(st,{ownerState:C,className:E.fallback}),(0,k.jsx)(ot,{as:s,className:(0,l.A)(E.root,a),ref:t,...v,ownerState:C,children:b})}));function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;tl?`${l}+`:s}};function ft(e){return(0,S.Ay)("MuiBadge",e)}const gt=(0,A.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),mt=(0,u.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yt=(0,u.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,U.A)(n.anchorOrigin.vertical)}${(0,U.A)(n.anchorOrigin.horizontal)}${(0,U.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,U.A)(n.color)}`],n.invisible&&t.invisible]}})((0,d.A)((({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.contrastText)).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})))),vt=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiBadge"}),{anchorOrigin:r={vertical:"top",horizontal:"right"},className:i,classes:o,component:a,components:s={},componentsProps:u={},children:d,overlap:p="rectangular",color:f="default",invisible:g=!1,max:m=99,badgeContent:y,slots:v,slotProps:b,showZero:w=!1,variant:x="standard",...A}=n,{badgeContent:S,invisible:C,max:E,displayValue:T}=pt({max:m,invisible:g,badgeContent:y,showZero:w}),_=ie({anchorOrigin:r,color:f,overlap:p,variant:x,badgeContent:y}),O=C||null==S&&"dot"!==x,{color:P=f,overlap:I=p,anchorOrigin:M=r,variant:L=x}=O?_:n,R="dot"!==L?T:void 0,j={...n,badgeContent:S,invisible:O,max:E,displayValue:R,showZero:w,anchorOrigin:M,color:P,overlap:I,variant:L},F=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${(0,U.A)(n.vertical)}${(0,U.A)(n.horizontal)}`,`anchorOrigin${(0,U.A)(n.vertical)}${(0,U.A)(n.horizontal)}${(0,U.A)(i)}`,`overlap${(0,U.A)(i)}`,"default"!==t&&`color${(0,U.A)(t)}`]};return(0,c.A)(s,ft,a)})(j),D=v?.root??s.Root??mt,N=v?.badge??s.Badge??yt,B=b?.root??u.root,z=b?.badge??u.badge,V=(0,ht.A)({elementType:D,externalSlotProps:B,externalForwardedProps:A,additionalProps:{ref:t,as:a},ownerState:j,className:(0,l.A)(B?.className,F.root,i)}),$=(0,ht.A)({elementType:N,externalSlotProps:z,ownerState:j,className:(0,l.A)(F.badge,z?.className)});return(0,k.jsxs)(D,{...V,children:[d,(0,k.jsx)(N,{...$,children:R})]})})),bt=vt;function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){return(0,k.jsx)(bt,function(e){for(var t=1;t *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Mt=(0,u.Ay)(P.A,{shouldForwardProp:e=>(0,kt.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,U.A)(n.color)}`],t[`size${(0,U.A)(n.size)}`],t[`${n.variant}Size${(0,U.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((0,d.A)((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${_t.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${_t.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${_t.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${_t.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.dark&&e.contrastText)).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,te.X4)(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{"--variant-containedColor":e.vars?e.vars.palette.text.primary:e.palette.getContrastText?.(t),"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${_t.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_t.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}}))),Lt=(0,u.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,U.A)(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...It]}),Rt=(0,u.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,U.A)(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...It]}),jt=o.forwardRef((function(e,t){const n=o.useContext(Ot),r=o.useContext(Pt),i=(0,Et.A)(n,e),a=(0,h.b)({props:i,name:"MuiButton"}),{children:s,color:u="primary",component:d="button",className:p,disabled:f=!1,disableElevation:g=!1,disableFocusRipple:m=!1,endIcon:y,focusVisibleClassName:v,fullWidth:b=!1,size:w="medium",startIcon:x,type:A,variant:S="text",...C}=a,E={...a,color:u,component:d,disabled:f,disableElevation:g,disableFocusRipple:m,fullWidth:b,size:w,type:A,variant:S},T=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${(0,U.A)(t)}`,`size${(0,U.A)(i)}`,`${o}Size${(0,U.A)(i)}`,`color${(0,U.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,U.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,U.A)(i)}`]},l=(0,c.A)(s,Tt,a);return{...a,...l}})(E),_=x&&(0,k.jsx)(Lt,{className:T.startIcon,ownerState:E,children:x}),O=y&&(0,k.jsx)(Rt,{className:T.endIcon,ownerState:E,children:y}),P=r||"";return(0,k.jsxs)(Mt,{ownerState:E,className:(0,l.A)(n.className,T.root,p,P),component:d,disabled:f,focusRipple:!m,focusVisibleClassName:(0,l.A)(T.focusVisible,v),ref:t,type:A,...C,classes:T,children:[_,s,O]})}));var Ft=n(61385),Dt=n(74455);function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t{r&&p.current.focus()}),[r]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const y=o.Children.map(a,((e,t)=>{if(t===m){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,k.jsx)(Wt.A,{role:"menu",ref:g,className:s,onKeyDown:e=>{const t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=(0,Ut.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Jt(t,r,c,l,Kt);else if("ArrowUp"===n)e.preventDefault(),Jt(t,r,c,l,Xt);else if("Home"===n)e.preventDefault(),Jt(t,null,c,l,Kt);else if("End"===n)e.preventDefault(),Jt(t,null,c,l,Xt);else if(1===n.length){const i=f.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&Zt(r,i);i.previousKeyMatched&&(s||Jt(t,r,!1,l,Kt,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...h,children:y})})),en=Qt;var tn=n(93996),nn=n(67577),rn=n(41079),on=n(27279);function an(e){return(0,S.Ay)("MuiMenuItem",e)}const sn=(0,A.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ln=(0,u.Ay)(P.A,{shouldForwardProp:e=>(0,kt.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((0,d.A)((({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nn.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nn.A.inset}`]:{marginLeft:52},[`& .${on.A.root}`]:{marginTop:0,marginBottom:0},[`& .${on.A.inset}`]:{paddingLeft:36},[`& .${rn.A.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${rn.A.root} svg`]:{fontSize:"1.25rem"}}}]})))),cn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:f,className:g,...m}=n,y=o.useContext(tn.A),v=o.useMemo((()=>({dense:a||y.dense||!1,disableGutters:u})),[y.dense,a,u]),b=o.useRef(null);(0,Yt.A)((()=>{r&&b.current&&b.current.focus()}),[r]);const w={...n,dense:v.dense,divider:s,disableGutters:u},x=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},l=(0,c.A)(s,an,a);return{...a,...l}})(n),A=(0,we.A)(b,t);let S;return n.disabled||(S=void 0!==f?f:-1),(0,k.jsx)(tn.A.Provider,{value:v,children:(0,k.jsx)(ln,{ref:A,role:p,tabIndex:S,component:i,focusVisibleClassName:(0,l.A)(x.focusVisible,d),className:(0,l.A)(x.root,g),...m,ownerState:w,classes:x})})})),un=cn;function dn(e){return(0,S.Ay)("MuiButtonGroup",e)}const hn=(0,A.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),pn=(0,u.Ay)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hn.grouped}`]:t.grouped},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.orientation)}`]},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.variant)}`]},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.variant)}${(0,U.A)(n.orientation)}`]},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.variant)}${(0,U.A)(n.color)}`]},{[`& .${hn.firstButton}`]:t.firstButton},{[`& .${hn.lastButton}`]:t.lastButton},{[`& .${hn.middleButton}`]:t.middleButton},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((0,d.A)((({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${hn.lastButton},& .${hn.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${hn.lastButton},& .${hn.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main)).flatMap((([t])=>[{props:{variant:"text",color:t},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,te.X4)(e.palette[t].main,.5)}}}])),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${hn.lastButton},& .${hn.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${hn.lastButton},& .${hn.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter((([,e])=>e&&e.dark)).map((([t])=>({props:{variant:"contained",color:t},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}})))],[`& .${hn.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}})))),fn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiButtonGroup"}),{children:r,className:i,color:a="primary",component:s="div",disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,disableRipple:f=!1,fullWidth:g=!1,orientation:m="horizontal",size:y="medium",variant:v="outlined",...b}=n,w={...n,color:a,component:s,disabled:u,disableElevation:d,disableFocusRipple:p,disableRipple:f,fullWidth:g,orientation:m,size:y,variant:v},x=(e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:o,orientation:a,variant:s}=e,l={root:["root",s,a,o&&"fullWidth",i&&"disableElevation",`color${(0,U.A)(n)}`],grouped:["grouped",`grouped${(0,U.A)(a)}`,`grouped${(0,U.A)(s)}`,`grouped${(0,U.A)(s)}${(0,U.A)(a)}`,`grouped${(0,U.A)(s)}${(0,U.A)(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,c.A)(l,dn,t)})(w),A=o.useMemo((()=>({className:x.grouped,color:a,disabled:u,disableElevation:d,disableFocusRipple:p,disableRipple:f,fullWidth:g,size:y,variant:v})),[a,u,d,p,f,g,y,v,x.grouped]),S=function(e){return o.Children.toArray(e).filter((e=>o.isValidElement(e)))}(r),C=S.length,E=e=>{const t=0===e,n=e===C-1;return t&&n?"":t?x.firstButton:n?x.lastButton:x.middleButton};return(0,k.jsx)(pn,{as:s,role:"group",className:(0,l.A)(x.root,i),ref:t,ownerState:w,...b,children:(0,k.jsx)(Ot.Provider,{value:A,children:S.map(((e,t)=>(0,k.jsx)(Pt.Provider,{value:E(t),children:e},t)))})})})),gn=fn;var mn=["children"];function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;tt.root})({overflow:"hidden"}),On=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCard"}),{className:r,raised:i=!1,...o}=n,a={...n,raised:i},s=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},Tn,t)})(a);return(0,k.jsx)(_n,{className:(0,l.A)(s.root,r),elevation:i?8:void 0,ref:t,ownerState:a,...o})}));var Pn=n(62785),In=n(71505);function Mn(e){return(0,S.Ay)("MuiCardHeader",e)}const Ln=(0,A.A)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),Rn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>({[`& .${Ln.title}`]:t.title,[`& .${Ln.subheader}`]:t.subheader,...t.root})})({display:"flex",alignItems:"center",padding:16}),jn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Fn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Dn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${Pn.A.root}:where(& .${Ln.title})`]:{display:"block"},[`.${Pn.A.root}:where(& .${Ln.subheader})`]:{display:"block"}}),Nn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardHeader"}),{action:r,avatar:i,className:o,component:a="div",disableTypography:s=!1,subheader:u,subheaderTypographyProps:d,title:p,titleTypographyProps:f,...g}=n,m={...n,component:a,disableTypography:s},y=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Mn,t)})(m);let v=p;null==v||v.type===In.A||s||(v=(0,k.jsx)(In.A,{variant:i?"body2":"h5",className:y.title,component:"span",...f,children:v}));let b=u;return null==b||b.type===In.A||s||(b=(0,k.jsx)(In.A,{variant:i?"body2":"body1",className:y.subheader,color:"textSecondary",component:"span",...d,children:b})),(0,k.jsxs)(Rn,{className:(0,l.A)(y.root,o),as:a,ref:t,ownerState:m,...g,children:[i&&(0,k.jsx)(jn,{className:y.avatar,ownerState:m,children:i}),(0,k.jsxs)(Dn,{className:y.content,ownerState:m,children:[v,b]}),r&&(0,k.jsx)(Fn,{className:y.action,ownerState:m,children:r})]})}));function Bn(e){return(0,S.Ay)("MuiCardContent",e)}(0,A.A)("MuiCardContent",["root"]);const zn=(0,u.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Vn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardContent"}),{className:r,component:i="div",...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},Bn,t)})(a);return(0,k.jsx)(zn,{as:i,className:(0,l.A)(s.root,r),ownerState:a,ref:t,...o})}));var $n=["title","contentCard"];function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),Yn=["video","audio","picture","iframe","img"],Kn=["picture","img"],Xn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardMedia"}),{children:r,className:i,component:o="div",image:a,src:s,style:u,...d}=n,p=Yn.includes(o),f=!p&&a?{backgroundImage:`url("${a}")`,...u}:u,g={...n,component:o,isMediaComponent:p,isImageComponent:Kn.includes(o)},m=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,c.A)(i,qn,t)})(g);return(0,k.jsx)(Hn,{className:(0,l.A)(m.root,i),as:o,role:!p&&a?"img":void 0,ref:t,style:f,ownerState:g,src:p?a||s:void 0,...d,children:r})})),Zn=Xn;var Jn=["sx","src","alt","click","keyDown"];function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){var t=e.sx,n=e.src,r=e.alt,i=e.click,o=e.keyDown,a=(0,Q.A)(e,Jn);return(0,k.jsx)(Zn,function(e){for(var t=1;t(0,kt.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,U.A)(n.size)}`],"default"!==n.color&&t[`color${(0,U.A)(n.color)}`]]}})((0,d.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{[`&.${ar.checked}, &.${ar.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${ar.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),lr=(0,k.jsx)(rr,{}),cr=(0,k.jsx)(nr,{}),ur=(0,k.jsx)(ir,{}),dr=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:r=lr,color:i="primary",icon:a=cr,indeterminate:s=!1,indeterminateIcon:u=ur,inputProps:d,size:p="medium",disableRipple:f=!1,className:g,...m}=n,y=s?u:a,v=s?u:r,b={...n,disableRipple:f,color:i,indeterminate:s,size:p},w=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${(0,U.A)(r)}`,`size${(0,U.A)(i)}`]},a=(0,c.A)(o,or,t);return{...t,...a}})(b);return(0,k.jsx)(sr,{type:"checkbox",inputProps:{"data-indeterminate":s,...d},icon:o.cloneElement(y,{fontSize:y.props.fontSize??p}),checkedIcon:o.cloneElement(v,{fontSize:v.props.fontSize??p}),ownerState:b,ref:t,className:(0,l.A)(w.root,g),...m,classes:w})}));function hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var pr=(0,o.forwardRef)((function(e,t){return(0,k.jsx)(dr,function(e){for(var t=1;t{for(const t of c)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${u} && (${(0,o.checkMissingProp)(e,c,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const c in t)(0,i.alwaysValidSchema)(s,t[c])||(n.if((0,o.propertyInData)(n,r,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>n.var(l,!0))),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},34617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const c=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,d("then",n),d("else",n))}else s?t.if(u,d("then")):t.if((0,r.not)(u),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},u);t.assign(c,u),e.mergeValidEvaluated(o,c),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(c,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},48368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48207),i=n(73048),o=n(86428),a=n(46588),s=n(51063),l=n(93919),c=n(53551),u=n(45674),d=n(1011),h=n(45127),p=n(20941),f=n(69727),g=n(64485),m=n(26238),y=n(34617),v=n(80264);t.default=function(e=!1){const t=[p.default,f.default,g.default,m.default,y.default,v.default,c.default,u.default,l.default,d.default,h.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},86428:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(29775),i=n(98057),o=n(75871),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:c}=e;!function(e){const{opts:r,errSchemaPath:o}=c,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(c,e,r.strictTuples)}}(a),c.opts.unevaluated&&n.length&&!0!==c.items&&(c.items=i.mergeEvaluated.items(o,n.length,c.items));const u=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(c,t)||(o.if(r._`${d} > ${n}`,(()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=s,t.default=a},46588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(75871),a=n(48207),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},20941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(98057),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},64485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block((function(){s.forEach(((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if(r._`${u} && ${l}`).assign(l,!1).assign(c,r._`[${c}, ${o}]`).else(),t.if(u,(()=>{t.assign(l,!0),t.assign(c,o),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},45127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75871),i=n(29775),o=n(98057),a=n(98057),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:c}=e,{opts:u}=c,d=(0,r.allSchemaProperties)(n),h=d.filter((e=>(0,o.alwaysValidSchema)(c,n[e])));if(0===d.length||h.length===d.length&&(!c.opts.unevaluated||!0===c.props))return;const p=u.strictSchema&&!u.allowMatchingProperties&&l.properties,f=t.name("valid");!0===c.props||c.props instanceof i.Name||(c.props=(0,a.evaluatedPropsToName)(t,c.props));const{props:g}=c;function m(e){for(const t in p)new RegExp(e).test(t)&&(0,o.checkStrictMode)(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){t.forIn("key",s,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=h.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},f),c.opts.unevaluated&&!0!==g?t.assign(i._`${g}[${o}]`,!0):r||c.allErrors||t.if((0,i.not)(f),(()=>t.break()))}))}))}!function(){for(const e of d)p&&m(e),c.allErrors?y(e):(t.var(f,!0),y(e),t.if(f))}()}};t.default=s},73048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(86428),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},1011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91716),i=n(75871),o=n(98057),a=n(45674),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(c,a.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(n);for(const e of u)c.definedProperties.add(e);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),c.props));const d=u.filter((e=>!(0,o.alwaysValidSchema)(c,n[e])));if(0===d.length)return;const h=t.name("valid");for(const n of d)p(n)?f(n):(t.if((0,i.propertyInData)(t,l,n,c.opts.ownProperties)),f(n),c.allErrors||t.else().var(h,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(h);function p(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==n[e].default}function f(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},h)}}};t.default=s},53551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=o},80264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(98057),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},75871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(29775),i=n(98057),o=n(36009),a=n(98057);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function l(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function c(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(l(e,t,n))):o}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(c(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(c(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${l(e,t,n)}`:o},t.noPropertyInData=c,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},c,u,d){const h=d?r._`${e}, ${t}, ${i}${a}`:t,p=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const f=r._`${h}, ${n.object(...p)}`;return u!==r.nil?r._`${c}.call(${u}, ${f})`:r._`${c}(${f})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(s,!0),l((()=>t.break())),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`);e.mergeValidEvaluated(a,l)||t.if((0,r.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},62733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},69622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(62733),i=n(30135),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},30135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(79741),i=n(75871),o=n(29775),a=n(36009),s=n(14881),l=n(98057),c={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:c,opts:h,self:p}=i,{root:f}=l;if(("#"===n||"#/"===n)&&a===f.baseId)return function(){if(l===f)return d(e,c,l,l.$async);const n=t.scopeValue("root",{ref:f});return d(e,o._`${n}.validate`,f,f.$async)}();const g=s.resolveRef.call(p,f,a,n);if(void 0===g)throw new r.default(i.opts.uriResolver,a,n);return g instanceof s.SchemaEnv?function(t){const n=u(e,t);d(e,n,t,t.$async)}(g):function(r){const i=t.scopeValue("schema",!0===h.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(g)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:c}=e,{allErrors:u,schemaEnv:d,opts:h}=c,p=h.passContext?a.default.this:o.nil;function f(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function g(e){var t;if(!c.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==c.props)if(r&&!r.dynamicProps)void 0!==r.props&&(c.props=l.mergeEvaluated.props(s,r.props,c.props));else{const t=s.var("props",o._`${e}.evaluated.props`);c.props=l.mergeEvaluated.props(s,t,c.props,o.Name)}if(!0!==c.items)if(r&&!r.dynamicItems)void 0!==r.items&&(c.items=l.mergeEvaluated.items(s,r.items,c.items));else{const t=s.var("items",o._`${e}.evaluated.items`);c.items=l.mergeEvaluated.items(s,t,c.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,p)}`),g(t),u||s.assign(n,!0)}),(e=>{s.if(o._`!(${e} instanceof ${c.ValidationError})`,(()=>s.throw(e))),f(e),u||s.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,p),(()=>g(t)),(()=>f(t)))}t.getValidate=u,t.callRef=d,t.default=c},74235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(74618),o=n(14881),a=n(79741),s=n(98057),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:l,parentSchema:c,it:u}=e,{oneOf:d}=c;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const h=l.propertyName;if("string"!=typeof h)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const p=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(h)}`);function g(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:h}))),e.ok(p)}};t.default=l},74618:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))},36590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69622),i=n(1722),o=n(48368),a=n(93922),s=n(71123),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},13843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:d,self:h}=l;c.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:h.formats,code:c.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),u=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(l,r._`${a}.type || "string"`).assign(u,r._`${a}.validate`)),(()=>n.assign(l,r._`"string"`).assign(u,a))),e.fail$data((0,r.or)(!1===c.strictSchema?r.nil:r._`${s} && !${u}`,function(){const e=d.$async?r._`(${a}.async ? await ${u}(${i}) : ${u}(${i}))`:r._`${u}(${i})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return r._`${u} && ${u} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=h.formats[a];if(!o)return void function(){if(!1===c.strictSchema)return void h.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[s,l,p]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):c.code.formats?r._`${c.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,r._`${i}.validate`];return["string",e,i]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${p}(${i})`}return"function"==typeof l?r._`${p}(${i})`:r._`${p}.test(${i})`}())}())}};t.default=i},93922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(13843).default];t.default=r},71123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},11169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(3948),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},55045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(3948),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:c}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=c.opts.loopEnum;let d;const h=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let p;if(u||a)p=t.let("valid"),e.block$data(p,(function(){t.assign(p,!1),t.forOf("v",l,(e=>t.if(r._`${h()}(${n}, ${e})`,(()=>t.assign(p,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);p=(0,r.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${h()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(p)}};t.default=a},1722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48664),i=n(60573),o=n(53197),a=n(86992),s=n(96088),l=n(15825),c=n(76405),u=n(8083),d=n(11169),h=n(55045),p=[r.default,i.default,o.default,a.default,s.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,h.default];t.default=p},76405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},53197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=n(98057),o=n(32615),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,c=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${c} ${l} ${a}`)}};t.default=a},48664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},96088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},60573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29775),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},86992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75871),i=n(29775),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",c=n?i._`(new RegExp(${a}, ${l}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${c}.test(${t})`)}};t.default=o},15825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(75871),i=n(29775),o=n(98057),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:c}=e,{opts:u}=c;if(!l&&0===n.length)return;const d=n.length>=u.loopRequired;if(c.allErrors?function(){if(d||l)e.block$data(i.nil,h);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(o,(0,r.propertyInData)(t,s,n,u.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${c.schemaEnv.baseId+c.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(c,t,c.opts.strictRequired)}}function h(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,u.ownProperties),(()=>e.error()))}))}}};t.default=a},8083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42242),i=n(29775),o=n(98057),a=n(3948),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:c,schemaCode:u,it:d}=e;if(!s&&!l)return;const h=t.let("valid"),p=c.items?(0,r.getSchemaTypes)(c.items):[];function f(o,a){const s=t.name("item"),l=(0,r.checkDataTypes)(p,s,d.opts.strictNumbers,r.DataType.Wrong),c=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),p.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${c}[${s}] == "number"`,(()=>{t.assign(a,i._`${c}[${s}]`),e.error(),t.assign(h,!1).break()})).code(i._`${c}[${s}] = ${o}`)}))}function g(r,s){const l=(0,o.useFunc)(t,a.default),c=t.name("outer");t.label(c).for(i._`;${r}--;`,(()=>t.for(i._`${s} = ${r}; ${s}--;`,(()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(h,!1).break(c)}))))))}e.block$data(h,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(h,!0),t.if(i._`${r} > 1`,(()=>(p.length>0&&!p.some((e=>"object"===e||"array"===e))?f:g)(r,o)))}),i._`${u} === false`),e.ok(h)}};t.default=s},43852:(e,t,n)=>{"use strict";n.d(t,{FU:()=>S,JE:()=>o,JF:()=>i,NA:()=>A,NF:()=>E,Nt:()=>w,OD:()=>m,Su:()=>c,VN:()=>x,Zr:()=>l,fW:()=>s,if:()=>f,ir:()=>d,mq:()=>b,nC:()=>v,ns:()=>h,oR:()=>a,qf:()=>p,t7:()=>C,wJ:()=>y,y5:()=>u});var r=n(91896),i="geoCore",o={VECTOR:"vector",VECTOR_TILE:"vector-tile",RASTER_TILE:"raster-tile",RASTER_IMAGE:"raster-image",GROUP:"group"},a={CSV:"CSV",ESRI_DYNAMIC:"esriDynamic",ESRI_FEATURE:"esriFeature",ESRI_IMAGE:"esriImage",IMAGE_STATIC:"imageStatic",GEOJSON:"GeoJSON",GEOPACKAGE:"GeoPackage",XYZ_TILES:"xyzTiles",VECTOR_TILES:"vectorTiles",OGC_FEATURE:"ogcFeature",WFS:"ogcWfs",WMS:"ogcWms"},s={CSV:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",ESRI_DYNAMIC:"https://cgpv/schema#/definitions/EsriDynamicLayerEntryConfig",ESRI_FEATURE:"https://cgpv/schema#/definitions/EsriFeatureLayerEntryConfig",ESRI_IMAGE:"https://cgpv/schema#/definitions/EsriImageLayerEntryConfig",IMAGE_STATIC:"https://cgpv/schema#/definitions/ImageStaticLayerEntryConfig",GEOJSON:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",GEOPACKAGE:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",XYZ_TILES:"https://cgpv/schema#/definitions/TileLayerEntryConfig",VECTOR_TILES:"Thttps://cgpv/schema#/definitions/TileLayerEntryConfig",OGC_FEATURE:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",WFS:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",WMS:"https://cgpv/schema#/definitions/OgcWmsLayerEntryConfig"},l={CSV:"",ESRI_DYNAMIC:"https://cgpv/schema#/definitions/EsriDynamicLayerConfig",ESRI_FEATURE:"https://cgpv/schema#/definitions/EsriFeatureLayerConfig",ESRI_IMAGE:"",IMAGE_STATIC:"",GEOJSON:"",GEOPACKAGE:"",XYZ_TILES:"",VECTOR_TILES:"",OGC_FEATURE:"",WFS:"",WMS:"https://cgpv/schema#/definitions/WmsLayerConfig"},c="https://cgpv/schema#/definitions/MapFeatureConfig",u="https://cgpv/schema#/definitions/GroupLayerEntryConfig",d=["1.0"],h=["en","fr"],p=["dark","light","geo.ca"],f=[3978,3857],g=["transport","osm","simple","nogeom","shaded","imagery"],m={3857:g,3978:g},y={3857:[!0,!1],3978:[!0,!1]},v={3857:[!0,!1],3978:[!0,!1]},b={3857:{lat:[-90,90],long:[-180,180]},3978:{lat:[40,90],long:[-140,40]}},w={3857:[-170,35,-20,84],3978:[-135,25,-50,89]},x={3857:[-90,55],3978:[-90,60]},A=(0,r.K)({map:{basemapOptions:{basemapId:"transport",shaded:!0,labeled:!0},interaction:"dynamic",listOfGeoviewLayerConfig:[],highlightColor:"black",overlayObjects:{pointMarkers:{}},viewSettings:{initialView:{zoomAndCenter:[3.5,x[3978]]},enableRotation:!0,rotation:0,minZoom:0,maxZoom:50,maxExtent:w[3978],projection:3978},extraOptions:{}},theme:"geo.ca",navBar:["zoom","fullscreen","home","basemap-select"],footerBar:{tabs:{core:["legend","layers","details","data-table"],custom:[]},collapsed:!1},components:["north-arrow","overview-map"],appBar:{tabs:{core:["geolocator"]}},corePackages:[],overviewMap:{hideOnZoom:0},externalPackages:[],serviceUrls:{geocoreUrl:"https://geocore.api.geo.ca",geolocator:"https://geolocator.api.geo.ca?keys=geonames,nominatim,locate",proxyUrl:"https://maps.canada.ca/wmsproxy/ws/wmsproxy/executeFromProxy"},globalSettings:{canRemoveSublayers:!0},schemaVersionUsed:"1.0"}),S={controls:{highlight:!0,hover:!0,opacity:!0,query:!1,remove:!0,table:!0,visibility:!0,zoom:!0},states:{visible:!0,opacity:1,hoverable:!0,queryable:!1}},C=["geolocator","aoi-panel","legend","layers","details","data-table","basemap-panel","guide"],E={GEOLOCATOR:"geolocator",EXPORT:"export",GUIDE:"guide",DETAILS:"details",LEGEND:"legend",DATA_TABLE:"data-table",LAYERS:"layers"}},91896:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,N:()=>o});var r=n(55723);function i(e){return e}function o(e){if(!(e instanceof Object)||e instanceof Array)throw new Error("Can't convert parameter to TypeJsonObject! typeof = ".concat((0,r.A)(e)));return e}},77646:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(96880),i=n(29067),o=n(13718),a=n(47280),s=n(74813),l=n.n(s),c=n(55061),u=n(6883),d=n(76200);function h(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function p(e,t){return e.get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(e,t))}var f=new WeakMap,g=function(){return(0,a.A)((function e(){(0,o.A)(this,e),h(this,f,[])}),[{key:"initialize",value:function(e){var t,n=this.onInitialize(e);n&&(t=p(f,this)).push.apply(t,(0,i.A)(n))}},{key:"onInitialize",value:function(e){}},{key:"destroy",value:function(){this.onDestroy()}},{key:"onDestroy",value:function(){p(f,this).forEach((function(e){return e()}))}}],[{key:"getState",value:function(e){return(0,c.Ic)(e).getState()}},{key:"getStateAsync",value:(t=(0,r.A)(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.gU)(t);case 2:return n=e.sent,e.abrupt("return",n.getState());case 4:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"helperPropagateArrayStoreBatch",value:(e=(0,r.A)(l().mark((function e(t,n,r,i,o,a,s,c){var h,p,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.vF.logTraceDetailed("propagateArrayStoreBatch",t,a),r[t]||(r[t]=[]),r[t].push(n),s&&(h=n.find((function(e){return e.layerPath===s}))),p=!1,h&&("processed"!==h.queryStatus&&"error"!==h.queryStatus||(p=!0,null==c||c(""))),p){e.next=9;break}return e.next=9,(0,d.delay)(i);case 9:r[t].length&&(f=r[t][r[t].length-1],o(f),r[t]=[]);case 10:case"end":return e.stop()}}),e)}))),function(t,n,r,i,o,a,s,l){return e.apply(this,arguments)})}]);var e,t}()},16775:(e,t,n)=>{"use strict";n.d(t,{K:()=>w});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(77646),p=n(76200),f=n(1220),g=n(27991),m=n(6883);function y(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,v()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function b(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var w=function(e){function t(){return(0,i.A)(this,t),y(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getAppState",value:function(e){return b(t,"getState",this,2)([e]).appState}},{key:"getAppStateAsync",value:(s=(0,r.A)(d().mark((function e(n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b(t,"getStateAsync",this,2)([n]);case 2:return e.abrupt("return",e.sent.appState);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"getDisplayLanguage",value:function(e){return this.getAppState(e).displayLanguage}},{key:"getDisplayTheme",value:function(e){return this.getAppState(e).displayTheme}},{key:"addNotification",value:(a=(0,r.A)(d().mark((function e(t,n){var r,i,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAppStateAsync(t);case 2:r=e.sent,i=r.notifications,(o=i.find((function(e){return e.message===n.message&&e.notificationType===n.notificationType})))?o.count+=1:i.push({key:n.key,notificationType:n.notificationType,message:n.message,count:1}),this.getAppState(t).setterActions.setNotifications(i);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"removeNotification",value:function(e,t){var n=this.getAppState(e).notifications.filter((function(e){return e.key!==t}));this.getAppState(e).setterActions.setNotifications(n)}},{key:"removeAllNotifications",value:function(e){this.getAppState(e).setterActions.setNotifications([])}},{key:"setAppIsCrosshairActive",value:function(e,t){this.getAppState(e).setterActions.setCrosshairActive(t)}},{key:"setDisplayLanguage",value:function(e,n){this.getAppState(e).setterActions.setDisplayLanguage(n);var r=g.d.resetBasemap(e),i=t.setGuide(e);return Promise.all([r,i])}},{key:"setDisplayTheme",value:function(e,t){this.getAppState(e).setterActions.setDisplayTheme(t)}},{key:"setFullscreen",value:function(e,t,n){this.getAppState(e).setterActions.setFullScreenActive(t),void 0!==n&&f.F.setFullscreen(t,n)}},{key:"setCircularProgress",value:function(e,t){this.getAppState(e).setterActions.setCircularProgress(t)}},{key:"setGuide",value:(n=(0,r.A)(d().mark((function e(n){var r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m.vF.logMarkerStart("map-guide"),r=t.getDisplayLanguage(n),e.next=4,(0,p.createGuideObject)(n,r,this.getAppState(n).geoviewAssetsURL);case 4:void 0!==(i=e.sent)&&this.getAppState(n).setterActions.setGuide(i),m.vF.logMarkerCheck("map-guide","for guide to be loaded");case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n,a,s}(h.F)},75687:(e,t,n)=>{"use strict";n.d(t,{F:()=>v});var r=n(29067),i=n(42432),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(77646),h=n(6883),p=n(27991);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t=0&&(e.splice(r,1),n(e))}},33663:(e,t,n)=>{"use strict";n.d(t,{h:()=>v});var r,i=n(29067),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(6883),h=n(77646),p=n(7396),f=n(27991);function g(e,t,n){return t=(0,l.A)(t),(0,s.A)(e,m()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function y(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var v=function(e){function t(){return(0,o.A)(this,t),g(this,t,arguments)}return(0,u.A)(t,e),(0,a.A)(t,[{key:"onInitialize",value:function(e){return[e.subscribe((function(e){return e.detailsState.layerDataArray}),(function(n){d.vF.logTraceCoreStoreSubscription("FEATURE-INFO EVENT PROCESSOR - layerDataArray",n),w.call(t,e.getState().mapId,n).catch((function(e){d.vF.logPromiseFailed("propagateFeatureInfoToStoreBatch in layerDataArrayUpdateBatch subscribe in feature-info-event-processor",e)}))}))]}}],[{key:"getFeatureInfoState",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,c.A)((0,l.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).detailsState;var n,r,i,o,a}},{key:"getSelectedLayerPath",value:function(e){return this.getFeatureInfoState(e).selectedLayerPath}},{key:"resetResultSet",value:function(e,n){var r=f.d.getMapViewerLayerAPI(e).featureInfoLayerSet.resultSet;r[n]&&(r[n].features=[],this.propagateFeatureInfoToStore(e,"click",r[n]).catch((function(e){return d.vF.logError("Not able to reset resultSet",e,n)}))),t.getSelectedLayerPath(e)===n&&(f.d.removeHighlightedFeature(e,"all"),f.d.clickMarkerIconHide(e))}},{key:"deleteFeatureInfo",value:function(e,n){var r=this.getFeatureInfoState(e);y(t,this,b).call(this,r.layerDataArray,n,(function(e){r.setterActions.setLayerDataArray(e),d.vF.logInfo("Removed Feature Info in stores for layer path:",n)}))}},{key:"propagateFeatureInfoToStore",value:function(e,t,n){var r=this.getFeatureInfoState(e),o=(0,i.A)(r.layerDataArray);if(o.find((function(e){return e.layerPath===n.layerPath}))||o.push(n),"click"===t){var a=o.find((function(e){var t;return!(null===(t=e.features)||void 0===t||!t.length)}))||!1;r.setterActions.setLayerDataArray(o),a&&(["details","geochart"].includes(p.d.getActiveFooterBarTab(e))||p.d.setActiveFooterBarTab(e,"details"),p.d.getAppBarComponents(e).includes("details")&&p.d.setActiveAppBarTab(e,"".concat(e,"AppbarPanelButtonDetails"),"details",!0,!0))}else"name"===t&&r.setterActions.setLayerDataArray(o);return Promise.resolve()}}])}(h.F);function b(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}function w(e,t){var n=this.getFeatureInfoState(e);return this.helperPropagateArrayStoreBatch(e,t,y(r,this,x)._,y(r,this,A)._,n.setterActions.setLayerDataArrayBatch,"feature-info-processor",n.layerDataArrayBatchLayerPathBypass,n.setterActions.setLayerDataArrayBatchLayerPathBypass)}r=v;var x={_:{}},A={_:1e3}},54497:(e,t,n)=>{"use strict";n.d(t,{U:()=>b});var r,i=n(42432),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(6883),h=n(77646),p=n(7396);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{K:()=>x});var r,i=n(55907),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(51640),h=n(40215),p=n(76200),f=n(77646),g=n(2265),m=n(16775),y=n(27991);function v(e,t,n){return t=(0,l.A)(t),(0,s.A)(e,b()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var x=function(e){function t(){return(0,o.A)(this,t),v(this,t,arguments)}return(0,u.A)(t,e),(0,a.A)(t,null,[{key:"getLayerState",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,c.A)((0,l.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).layerState;var n,r,i,o,a}},{key:"setSelectedLayersTabLayer",value:function(e,t){this.getLayerState(e).setterActions.setSelectedLayerPath(t)}},{key:"getLayerPanelState",value:function(e,t){return this.getLayerState(e)[t]}},{key:"getLegendLayerInfo",value:function(e,n){var r=t.getLayerState(e).legendLayers;return this.findLayerByPath(r,n)}},{key:"getLayerBounds",value:function(e,n){var r,i=t.getLayerState(e).legendLayers,o=this.findLayerByPath(i,n);if(o&&(!o.bounds||null!==(r=o.bounds)&&void 0!==r&&r.includes(1/0))){var a=y.d.getMapViewerLayerAPI(e).calculateBounds(n);!a||a.includes(1/0)&&o.bounds||(o.bounds=a,this.getLayerState(e).setterActions.setLegendLayers(i))}if(o&&o.bounds)return o.bounds}},{key:"setLayerBounds",value:function(e,n,r){var i=t.getLayerState(e).legendLayers,o=this.findLayerByPath(i,n);o&&(o.bounds=r,this.getLayerState(e).setterActions.setLegendLayers(i))}},{key:"getExtentFromFeatures",value:function(e,t,n){var r;return null===(r=y.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t))||void 0===r?void 0:r.getExtentFromFeatures(t,n)}},{key:"getLayerIconImage",value:function(e){var t=[];if(e){if((0,d.XY)(e)||(0,d.Bq)(e)){var n={iconType:"simple"};e.legend?n.iconImage=e.legend.toDataURL():e.styles&&e.styles[0].legend?n.iconImage=e.styles[0].legend.toDataURL():n.iconImage="no data",t.push(n)}else null===e.legend||0===Object.keys(e.legend).length?t[0]={iconImage:"no data"}:(0,d.FB)(e)&&Object.entries(e.legend).forEach((function(n){var r=(0,i.A)(n,2),o=r[0],a=r[1],s=o,l=e.styleConfig[s],c={};if(c.geometryType=s,(0,g.s0)(l)){c.iconType="simple",c.iconImage=a.defaultCanvas.toDataURL(),c.name=l.label;var u={geometryType:s,icon:c.iconImage,name:c.name,isVisible:!0};c.iconList=[u],t.push(c)}else{var d;if(c.iconType="list",(0,g.$h)(l)){if(c.iconList=a.arrayOfCanvas.map((function(e,t){return{geometryType:s,icon:e?e.toDataURL():null,name:l.classBreakStyleInfo[t].label,isVisible:l.classBreakStyleInfo[t].visible}})),a.defaultCanvas){var h={geometryType:s,icon:a.defaultCanvas.toDataURL(),name:l.defaultLabel,isVisible:l.defaultVisible};c.iconList.push(h)}}else if((0,g.IG)(l)&&(c.iconList=a.arrayOfCanvas.map((function(e,t){return{geometryType:s,icon:e?e.toDataURL():null,name:l.uniqueValueStyleInfo[t].label,isVisible:!1!==l.uniqueValueStyleInfo[t].visible}})),a.defaultCanvas)){var p={geometryType:s,icon:a.defaultCanvas.toDataURL(),name:l.defaultLabel,isVisible:l.defaultVisible};c.iconList.push(p)}null!==(d=c.iconList)&&void 0!==d&&d.length&&(c.iconImage=c.iconList[0].icon),c.iconList&&c.iconList.length>1&&(c.iconImageStacked=c.iconList[1].icon),t.push(c)}}));return t}}},{key:"propagateLegendToStore",value:function(e,n){var r=n.layerPath.split("/"),i=function(t){var n,r,i,o,a,s,l,c,u,d,h,p,f,g,m,v,b,w=!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||!1!==(null===(n=y.d.getGeoViewMapConfig(e))||void 0===n||null===(n=n.globalSettings)||void 0===n?void 0:n.canRemoveSublayers);return{highlight:void 0===(null===(r=t.initialSettings)||void 0===r||null===(r=r.controls)||void 0===r?void 0:r.highlight)||(null===(i=t.initialSettings)||void 0===i||null===(i=i.controls)||void 0===i?void 0:i.highlight),hover:void 0===(null===(o=t.initialSettings)||void 0===o||null===(o=o.controls)||void 0===o?void 0:o.hover)||(null===(a=t.initialSettings)||void 0===a||null===(a=a.controls)||void 0===a?void 0:a.hover),opacity:void 0===(null===(s=t.initialSettings)||void 0===s||null===(s=s.controls)||void 0===s?void 0:s.opacity)||(null===(l=t.initialSettings)||void 0===l||null===(l=l.controls)||void 0===l?void 0:l.opacity),query:void 0===(null===(c=t.initialSettings)||void 0===c||null===(c=c.controls)||void 0===c?void 0:c.query)||(null===(u=t.initialSettings)||void 0===u||null===(u=u.controls)||void 0===u?void 0:u.query),remove:void 0!==(null===(d=t.initialSettings)||void 0===d||null===(d=d.controls)||void 0===d?void 0:d.remove)?null===(h=t.initialSettings)||void 0===h||null===(h=h.controls)||void 0===h?void 0:h.remove:w,table:void 0===(null===(p=t.initialSettings)||void 0===p||null===(p=p.controls)||void 0===p?void 0:p.table)||(null===(f=t.initialSettings)||void 0===f||null===(f=f.controls)||void 0===f?void 0:f.table),visibility:void 0===(null===(g=t.initialSettings)||void 0===g||null===(g=g.controls)||void 0===g?void 0:g.visibility)||(null===(m=t.initialSettings)||void 0===m||null===(m=m.controls)||void 0===m?void 0:m.visibility),zoom:void 0===(null===(v=t.initialSettings)||void 0===v||null===(v=v.controls)||void 0===v?void 0:v.zoom)||(null===(b=t.initialSettings)||void 0===b||null===(b=b.controls)||void 0===b?void 0:b.zoom)}},o=function(a,s){if(!(r.length2);if(-1===v){var x,A,S={bounds:b,controls:w,layerId:c.layerId,layerPath:l,layerName:f,layerStatus:n.layerStatus,legendQueryStatus:n.legendQueryStatus,type:c.entryType,canToggle:(null===(x=n.data)||void 0===x?void 0:x.type)!==d.y6.ESRI_IMAGE,opacity:null!==(A=c.initialSettings)&&void 0!==A&&null!==(A=A.states)&&void 0!==A&&A.opacity?c.initialSettings.states.opacity:1,icons:[],items:[],children:[]};s.push(S),v=s.length-1}else s[v].layerStatus=c.layerStatus,s[v].layerName=f,s[v].bounds=b;o(a+1,s[v].children)}else{var C,E,k,T,_;"loaded"===c.layerStatus&&(_=y.d.getMapViewerLayerAPI(e).calculateBounds(c.layerPath));var O={bounds:_,controls:i(c,a>2),layerId:r[a-1],layerPath:l,layerAttribution:null==u?void 0:u.getAttributions(),layerName:f,layerStatus:n.layerStatus,legendQueryStatus:n.legendQueryStatus,styleConfig:null===(C=n.data)||void 0===C?void 0:C.styleConfig,type:(null===(E=n.data)||void 0===E?void 0:E.type)||c.entryType,canToggle:(null===(k=n.data)||void 0===k?void 0:k.type)!==d.y6.ESRI_IMAGE,opacity:(null===(T=c.initialSettings)||void 0===T||null===(T=T.states)||void 0===T?void 0:T.opacity)||1,items:[],children:[],icons:t.getLayerIconImage(n.data)||[]};O.icons.forEach((function(e){e.iconList&&e.iconList.forEach((function(e){O.items.push(e)}))})),-1===v?s.push(O):s[v]=O}}}},a=this.getLayerState(e).legendLayers;o(2,a),this.getLayerState(e).setterActions.setLegendLayers(a)}},{key:"setHighlightLayer",value:function(e,t){var n=this.getLayerState(e).highlightedLayer,r=y.d.changeOrRemoveLayerHighlight(e,t,n);this.getLayerState(e).setterActions.setHighlightLayer(r)}},{key:"findLayerByPath",value:function(e,n){var r;return e.forEach((function(e){var i;if(n===e.layerPath&&(r=e),null!=n&&n.startsWith(e.layerPath)&&(null===(i=e.children)||void 0===i?void 0:i.length)>0){var o=t.findLayerByPath(e.children,n);o&&(r=o)}})),r}},{key:"deleteLayerFromLegendLayers",value:function(e,n){var r=this.getLayerState(e).legendLayers;A.call(t,e,r,n)}},{key:"deleteLayer",value:function(e,t){y.d.getMapViewerLayerAPI(e).removeLayerUsingPath(t)}},{key:"refreshLayer",value:function(e,n){var r,i,o=this,a=y.d.getMapViewerLayerAPI(e).getOLLayer(n);a&&y.d.getMapViewerLayerAPI(e).refreshBaseLayer(a);var s=y.d.getMapViewerLayerAPI(e).getLayerEntryConfig(n);s&&(0,g.KD)(s)&&s.listOfLayerEntryConfig.forEach((function(t){return o.refreshLayer(e,t.layerPath)}));var l=(null==s||null===(r=s.initialSettings.states)||void 0===r?void 0:r.opacity)||1,c=(null==s||null===(i=s.initialSettings.states)||void 0===i?void 0:i.visible)||!0;t.setLayerOpacity(e,n,l),y.d.setOrToggleMapLayerVisibility(e,n,c),c&&t.setAllItemsVisibility(e,n,c)}},{key:"setItemVisibility",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.getLayerState(e).legendLayers;t.isVisible=n,this.getLayerState(e).setterActions.setLegendLayers(r)}},{key:"toggleItemVisibility",value:function(e,t,n){y.d.getMapViewerLayerAPI(e).setItemVisibility(t,n,!n.isVisible)}},{key:"setAllItemsVisibility",value:function(e,t,n){y.d.setOrToggleMapLayerVisibility(e,t,!0);var r=this.getLayerState(e).legendLayers,i=this.findLayerByPath(r,t);i&&i.items.forEach((function(r){y.d.getMapViewerLayerAPI(e).setItemVisibility(t,r,n,!1),r.isVisible=n})),this.getLayerState(e).setterActions.setLegendLayers(r)}},{key:"setLayerOpacity",value:function(e,n,r){var i=this.getLayerState(e).legendLayers;w(t,this,S).call(this,e,i,n,r),this.getLayerState(e).setterActions.setLegendLayers(i)}}])}(f.F);function A(e,t,n){var i=t.findIndex((function(e){return e.layerPath===n}));i>=0?t.splice(i,1):t.forEach((function(t){t.children&&t.children.length>0&&A.call(r,e,t.children,n)}))}function S(e,t,n,i){var o,a=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=r.findLayerByPath(t,n);l&&(l.opacity=i,null===(o=y.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(n))||void 0===o||o.setOpacity(i,n),s&&(l.opacityFromParent=i),l.children&&l.children.length>0&&l.children.forEach((function(n){w(r,a,S).call(a,e,t,n.layerPath,i,!0)})))}r=x},27991:(e,t,n)=>{"use strict";n.d(t,{d:()=>Y});var r=n(55907),i=n(96880),o=n(29067),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(94270),d=n(42432),h=n(74813),p=n.n(h),f=n(80739),g=n(96687),m=n(82512);const y="units",v=[1,2,5],b=25.4/.28;class w extends f.A{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const n=void 0!==e.className?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+g.XI,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==e.minWidth?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(y,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(y)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(y,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=e.center,n=e.projection,r=this.getUnits(),i="degrees"==r?"degrees":"m";let o=(0,m.hO)(n,e.resolution,t,i);const a=this.minWidth_*(this.dpi_||b)/b,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||b)/b:void 0;let l=a*o,c="";if("degrees"==r){const e=m.Ig.degrees;l*=e,l=s){u=p,d=f,h=g;break}if(d>=a)break;p=u,f=d,g=h,++y}const w=this.scaleBar_?this.createScaleBar(d,u,c):u.toFixed(h<0?-h:0)+" "+c;this.renderedHTML_!=w&&(this.innerElement_.innerHTML=w,this.renderedHTML_=w),this.renderedWidth_!=d&&(this.innerElement_.style.width=d+"px",this.renderedWidth_=d),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,n){const r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+" : 1":"1 : "+Math.round(r).toLocaleString(),o=this.scaleBarSteps_,a=e/o,s=[this.createMarker("absolute")];for(let r=0;r
`+this.createMarker("relative")+(r%2==0||2===o?this.createStepText(r,e,!1,t,n):"")+"")}s.push(this.createStepText(o,e,!0,t,n));return(this.scaleBarText_?`
`+i+"
":"")+s.join("")}createMarker(e){return`
`}createStepText(e,t,n,r,i){const o=(0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+i);return`
`+o+"
"}getScaleForResolution(){return(0,m.hO)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m")*(1e3/25.4)*(this.dpi_||b)}render(e){const t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}}const x=w;var A,S=n(31576),C=n(94565),E=n(43852),k=n(68705),T=n(78861),_=n(51640),O=n(8058),P=n(55061),I=n(24258),M=n(6883),L=n(76200),R=n(16775),j=n(77646),F=n(75687),D=n(9145),N=n(7396),B=n(59155),z=n(4401),V=n(17102),$=n(34119),G=n(57366);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:I.Xl;this.getMapViewer(e).map.getView().animate({zoom:t,duration:n})}},{key:"getMapOrderedLayerInfo",value:function(e){return this.getMapStateProtected(e).orderedLayerInfo}},{key:"getMapOrderedLayerInfoForLayer",value:function(e,t){return this.getMapStateProtected(e).orderedLayerInfo.find((function(e){return e.layerPath===t}))}},{key:"getMapIndexFromOrderedLayerInfo",value:function(e,t){for(var n=this.getMapStateProtected(e).orderedLayerInfo,r=0;r2&&void 0!==arguments[2]?arguments[2]:{padding:I.MK,maxZoom:I.Wj,duration:I.Xl};if(!t.some((function(e){return!e||Number.isNaN(e)})))return this.getMapViewer(e).getView().fit(t,n),new Promise((function(e){setTimeout((function(){e()}),(n.duration||I.Xl)+150)}));throw new Error("Couldn't zoom to extent, invalid extent: ".concat(t))}},{key:"zoomToGeoLocatorLocation",value:(n=(0,i.A)(p().mark((function e(t,n,r){var i,a,s,l,c,u,d,h,f;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=document.getElementsByClassName("ol-overviewmap-box"),a=0;a{"use strict";n.d(t,{Z:()=>p});var r=n(29067),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(6883);function d(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,h()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(){return(0,i.A)(this,t),d(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getSwiperState",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).swiperState;var n,r,i,o,a}},{key:"getLayerPaths",value:function(e){var t;return null===(t=this.getSwiperState(e))||void 0===t?void 0:t.layerPaths}},{key:"setLayerPaths",value:function(e,t){var n;null===(n=this.getSwiperState(e))||void 0===n||n.setterActions.setLayerPaths(t),u.vF.logInfo("Added Swiper functionality for layer paths:",t)}},{key:"addLayerPath",value:function(e,t){var n;if(this.getSwiperState(e)&&null!==(n=this.getSwiperState(e))&&void 0!==n&&n.layerPaths)if(this.getSwiperState(e).layerPaths.includes(t))u.vF.logInfo("Swiper functionality already active for layer path:",t);else{var i=(0,r.A)(this.getSwiperState(e).layerPaths);i.push(t),this.getSwiperState(e).setterActions.setLayerPaths(i),u.vF.logInfo("Added Swiper functionality for layer path:",t)}}},{key:"removeLayerPath",value:function(e,t){var n;if(this.getSwiperState(e)&&null!==(n=this.getSwiperState(e))&&void 0!==n&&n.layerPaths){var i=this.getSwiperState(e).layerPaths.findIndex((function(e){return e===t}));if(void 0!==i&&i>=0){var o=(0,r.A)(this.getSwiperState(e).layerPaths);o.splice(i,1),this.getSwiperState(e).setterActions.setLayerPaths(o),u.vF.logInfo("Removed Swiper functionality for layer path:",t)}else u.vF.logInfo("Swiper functionality already inactive for layer path:",t)}}},{key:"removeAll",value:function(e){var t;if(this.getSwiperState(e)&&null!==(t=this.getSwiperState(e))&&void 0!==t&&t.layerPaths){var n=this.getSwiperState(e).layerPaths;this.getSwiperState(e).setterActions.setLayerPaths([]),u.vF.logInfo("Removed Swiper functionality for all layer paths",n)}}}])}(n(77646).F)},9145:(e,t,n)=>{"use strict";n.d(t,{t:()=>C});var r=n(42432),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(77646),d=n(76200),h=n(4401),p=n(2265),f=n(34119),g=n(16775),m=n(27991),y=n(7396),v=n(17102),b=n(57366);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t= date '").concat(new Date(a[0]).toISOString(),"'"),a.length>1&&(c+=" and ".concat(r," <= date '").concat(new Date(a[1]).toISOString(),"'"))):(c="".concat(r," >= date '").concat(new Date(o[0]).toISOString(),"'"),a.length>1&&(c+="and ".concat(r," <= date '").concat(new Date(o[1]).toISOString(),"'")));null===(s=this.getTimesliderState(e))||void 0===s||s.setterActions.setFiltering(t,i),null===(l=this.getTimesliderState(e))||void 0===l||l.setterActions.setValues(t,a),this.addOrUpdateSliderFilter(e,t,c),m.d.applyLayerFilters(e,t)}}])}(u.F);function E(e,t,n){var i;if(this.getTimesliderState(e)){var o=(0,r.A)({},t,n);null===(i=this.getTimesliderState(e))||void 0===i||i.setterActions.addTimeSliderLayer(o);var a=o[t],s=a.defaultValue,l=a.field,c=a.filtering,u=a.minAndMax,d=a.values;this.updateFilters(e,t,s,l,c,u,d),y.d.showTab(e,"time-slider")}}},7396:(e,t,n)=>{"use strict";n.d(t,{d:()=>h});var r=n(29067),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270);function u(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,d()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(){return(0,i.A)(this,t),u(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getUIStateProtected",value:function(e){return(n=t,r="getState",i=this,o=2,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e]).uiState;var n,r,i,o,a}},{key:"getActiveFooterBarTab",value:function(e){return this.getUIStateProtected(e).activeFooterBarTabId}},{key:"getAppBarComponents",value:function(e){return this.getUIStateProtected(e).appBarComponents}},{key:"getCorePackageComponents",value:function(e){return this.getUIStateProtected(e).corePackagesComponents}},{key:"getFooterBarIsCollapsed",value:function(e){return this.getUIStateProtected(e).footerBarIsCollapsed}},{key:"hideTab",value:function(e,t){this.getUIStateProtected(e).hiddenTabs.includes(t)||this.getUIStateProtected(e).setterActions.setHiddenTabs([].concat((0,r.A)(this.getUIStateProtected(e).hiddenTabs),[t]))}},{key:"showTab",value:function(e,t){var n=this.getUIStateProtected(e).hiddenTabs,r=n.indexOf(t);-1!==r&&(n.splice(r,1),this.getUIStateProtected(e).setterActions.setHiddenTabs(n))}},{key:"setActiveFooterBarTab",value:function(e,t){this.getUIStateProtected(e).setterActions.setActiveFooterBarTab(t)}},{key:"setActiveAppBarTab",value:function(e,t,n,r,i){this.getUIStateProtected(e).setterActions.setActiveAppBarTab(t,n,r,i)}},{key:"getActiveAppBarTab",value:function(e){return this.getUIStateProtected(e).activeAppBarTab}},{key:"setFooterBarIsCollapsed",value:function(e,t){this.getUIStateProtected(e).setterActions.setFooterBarIsCollapsed(t)}}])}(n(77646).F)},2358:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(13718),i=n(47280),o=function(){return(0,i.A)((function e(){(0,r.A)(this,e)}),null,[{key:"emitEvent",value:function(e,t,n){return t.map((function(t){return t(e,n)}))}},{key:"onEvent",value:function(e,t){e.push(t)}},{key:"offEvent",value:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}])}()},45973:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(13718),i=n(47280),o=n(42432),a=n(6883),s=function(){return(0,i.A)((function e(t,n){(0,r.A)(this,e),(0,o.A)(this,"pluginId",void 0),(0,o.A)(this,"pluginProps",void 0),(0,o.A)(this,"configObj",void 0),(0,o.A)(this,"api",void 0),(0,o.A)(this,"react",void 0),(0,o.A)(this,"translate",void 0),(0,o.A)(this,"useTheme",void 0),this.pluginId=t,this.pluginProps=n}),[{key:"mapViewer",value:function(){return this.api.maps[this.pluginProps.mapId]}},{key:"displayLanguage",value:function(){var e;return(null===(e=this.translate)||void 0===e?void 0:e.getI18n().language)||"en"}},{key:"added",value:function(){var e;window.cgpv&&(a.vF.logInfo("Plugin ".concat(this.pluginId," loaded, adding it on map ").concat(this.pluginProps.mapId)),this.onAdd(),null===(e=this.onAdded)||void 0===e||e.call(this),a.vF.logInfo("Plugin ".concat(this.pluginId," loaded, and added to map ").concat(this.pluginProps.mapId)))}},{key:"removed",value:function(){var e;window.cgpv&&(a.vF.logInfo("Plugin ".concat(this.pluginId," being removed from map ").concat(this.pluginProps.mapId)),this.onRemove(),null===(e=this.onRemoved)||void 0===e||e.call(this),a.vF.logInfo("Plugin ".concat(this.pluginId," removed from map ").concat(this.pluginProps.mapId)))}}])}()},23220:(e,t,n)=>{"use strict";n.d(t,{k:()=>w});var r=n(55723),i=n(96880),o=n(13718),a=n(47280),s=n(42432),l=n(74813),c=n.n(l),u=n(30538),d=n(68676),h=n(43331),p=n(47001),f=n(87120),g=n.n(f),m=n(76200),y=n(68705),v=n(6883),b=n(27991),w=function(){function e(){(0,o.A)(this,e),(0,s.A)(this,"pluginsLoaded",!1)}return(0,a.A)(e,null,[{key:"loadScript",value:function(e){return new Promise((function(t,n){if(document.getElementById(e))(0,m.whenThisThen)((function(){var t;return null===(t=window.geoviewPlugins)||void 0===t?void 0:t[e]})).then((function(){t(window.geoviewPlugins[e])})).catch((function(e){n(e)}));else{var r=(0,m.getScriptAndAssetURL)(),i=document.createElement("script");i.src="".concat(r,"/corePackages/geoview-").concat(e,".js"),i.id=e,document.body.appendChild(i),i.onload=function(){t(window.geoviewPlugins[e])},i.onerror=function(){t(null)}}}))}},{key:"addPlugin",value:(l=(0,i.A)(c().mark((function e(t,n,i,o){var a,s,l,f,m,w,x,A,S,C,E,k,T,_,O;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.d.getMapViewerPlugins(n);case 2:if((a=e.sent)[t]){e.next=34;break}if(s=null,i&&(s=new i(t,o)),!s){e.next=34;break}if(l={},!s.schema||!s.defaultConfig){e.next=30;break}if(m=s.schema(),w=s.defaultConfig(),x=new(g())({strict:!1,allErrors:!0}),A=x.compile(m),l=w,!(S=null===(f=document.getElementById(n))||void 0===f?void 0:f.getAttribute("data-config-url"))){e.next=28;break}return C="".concat(S.split(".json")[0],"-").concat(t,".json"),e.prev=17,e.next=20,fetch(C);case 20:return e.next=22,e.sent.json();case 22:(E=e.sent)&&(l=E),e.next=28;break;case 26:e.prev=26,e.t0=e.catch(17);case 28:if(!A(l)&&A.errors&&A.errors.length)for(k=0;k{"use strict";n.d(t,{FHQ:()=>_r,Mhq:()=>Ge.getScriptAndAssetURL,WDX:()=>Dr,d1f:()=>Pr});var r=n(96880),i=n(74813),o=n.n(i),a=n(30538),s=n(17004),l=n(86853),c=n(47001),u=n(15559),d=n.n(u),h=n(37892),p=n.n(h),f=n(60520),g=n.n(f),m=n(29423),y=n.n(m),v=n(62339),b=n.n(v),w=n(92944),x=n.n(w),A=n(83492),S={};S.styleTagTransform=x(),S.setAttributes=y(),S.insert=g().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=b();d()(A.A,S);A.A&&A.A.locals&&A.A.locals;var C=n(71560),E={};E.styleTagTransform=x(),E.setAttributes=y(),E.insert=g().bind(null,"head"),E.domAPI=p(),E.insertStyleElement=b();d()(C.A,E);C.A&&C.A.locals&&C.A.locals;var k=n(24481),T={};T.styleTagTransform=x(),T.setAttributes=y(),T.insert=g().bind(null,"head"),T.domAPI=p(),T.insertStyleElement=b();d()(k.A,T);k.A&&k.A.locals&&k.A.locals;var _=n(45306),O={};O.styleTagTransform=x(),O.setAttributes=y(),O.insert=g().bind(null,"head"),O.domAPI=p(),O.insertStyleElement=b();d()(_.A,O);_.A&&_.A.locals&&_.A.locals;var P=n(7605),I={};I.styleTagTransform=x(),I.setAttributes=y(),I.insert=g().bind(null,"head"),I.domAPI=p(),I.insertStyleElement=b();d()(P.A,I);P.A&&P.A.locals&&P.A.locals;var M=n(19248),L={};L.styleTagTransform=x(),L.setAttributes=y(),L.insert=g().bind(null,"head"),L.domAPI=p(),L.insertStyleElement=b();d()(M.A,L);M.A&&M.A.locals&&M.A.locals;var R=n(65822),j={};j.styleTagTransform=x(),j.setAttributes=y(),j.insert=g().bind(null,"head"),j.domAPI=p(),j.insertStyleElement=b();d()(R.A,j);R.A&&R.A.locals&&R.A.locals;var F=n(33828),D=n(94514),N=n(13718),B=n(47280),z=n(42432),V=n(80363),$=n.n(V),G=n(43852),U=n(91896),W=n(55907),q=n(29067),H=n(79950),Y=n.n(H),K=n(75583),X=n(96645),Z=n(94270),J=n(34946),Q=function(e){return null==e?void 0:e.isLayerGroup},ee=function(e){return"lineString"===(null==e?void 0:e.type)},te=function(e){return"filledPolygon"===(null==e?void 0:e.type)},ne=function(e){return"simpleSymbol"===(null==e?void 0:e.type)},re=function(e){return"iconSymbol"===(null==e?void 0:e.type)},ie=n(87120),oe=n.n(ie),ae=n(51042),se=n.n(ae);const le=JSON.parse('{"$id":"https://cgpv/schema","$schema":"http://json-schema.org/draft-07/schema#","title":"GeoView Core Config Schema","type":"object","version":1,"comments":"This schema is used to validate the JSON representation of the input configuration and the internal instance of map features and geoview layers.","additionalProperties":false,"definitions":{"MapFeatureConfig":{"description":"The map feature configuration.","additionalProperties":false,"type":"object","properties":{"map":{"$ref":"#/definitions/TypeMapConfig"},"theme":{"description":"Theme style the viewer uses.","$ref":"#/definitions/TypeDisplayTheme"},"navBar":{"$ref":"#/definitions/TypeNavBarProps"},"footerBar":{"$ref":"#/definitions/TypeFooterBarProps"},"appBar":{"$ref":"#/definitions/TypeAppBarProps"},"overviewMap":{"$ref":"#/definitions/TypeOverviewMapProps"},"components":{"$ref":"#/definitions/TypeMapComponents"},"corePackages":{"$ref":"#/definitions/TypeMapCorePackages"},"externalPackages":{"$ref":"#/definitions/TypeExternalPackages"},"serviceUrls":{"$ref":"#/definitions/TypeServiceUrls"},"schemaVersionUsed":{"$ref":"#/definitions/TypeValidVersions"},"globalSettings":{"$ref":"#/definitions/TypeGlobalSettings"}},"required":["map"]},"TypeMapConfig":{"additionalProperties":false,"type":"object","properties":{"basemapOptions":{"$ref":"#/definitions/TypeBasemapOptions"},"interaction":{"$ref":"#/definitions/TypeInteraction"},"listOfGeoviewLayerConfig":{"description":"List of GeoView Layers in the order which they should be added to the map.","additionalProperties":false,"$ref":"#/definitions/TypeListOfAbstractGeoviewLayerConfig"},"viewSettings":{"$ref":"#/definitions/TypeViewSettings"},"highlightColor":{"$ref":"#/definitions/TypeHighlightColors"},"overlayObjects":{"$ref":"#/definitions/TypeOverlayObjects"},"extraOptions":{"description":"Additional options used for OpenLayers map options","type":"object"}},"required":["basemapOptions","interaction","viewSettings"]},"TypeListOfAbstractGeoviewLayerConfig":{"description":"The list of geoview layer configurations. The map config validation ends here. The only thing we need to verify for the moment is it must be an array.","type":"array"},"TypeDisplayTheme":{"description":"Valid values for the theme property.","additionalProperties":false,"enum":["dark","light","geo.ca"],"default":"geo.ca"},"TypeValidNavBarProps":{"description":"Valid values for the navBar array.","additionalProperties":false,"enum":["zoom","fullscreen","home","location","basemap-select"]},"TypeNavBarProps":{"description":"Controls available on the navigation bar.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidNavBarProps"},"default":["zoom","fullscreen","home","basemap-select"],"minItems":0},"TypeValidFooterBarTabsCoreProps":{"description":"Valid values for the footerBar tabs core array.","additionalProperties":false,"enum":["legend","layers","details","data-table","time-slider","geochart"]},"TypeFooterBarTabsCustomProps":{"description":"Footer bar tabs custom definition.","type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"defaultTabs":{"type":"string"},"contentHTML":{"type":"string"}}},"TypeFooterBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"description":"Available tabs","type":"object","properties":{"core":{"description":"Default core tabs of footer bar to use. NOTE: config from packages for time-slider and geochart are in the same loaction as core config (<>-<>.json).","type":"array","items":{"$ref":"#/definitions/TypeValidFooterBarTabsCoreProps"},"minItems":1,"default":["legend","layers","details","data-table"],"uniqueItems":true},"custom":{"description":"Custom tabs of footer bar to use","type":"array","items":{"$ref":"#/definitions/TypeFooterBarTabsCustomProps"},"minItems":0,"default":[],"uniqueItems":true}},"additionalProperties":false},"collapsed":{"description":"State of footer bar when map is loaded (expanded or collapsed)","type":"boolean","default":false},"selectedTab":{"type":"string","enum":["legend","layers","details","data-table","time-slider","geochart"],"description":"Footer tab to be selected at map load"}},"required":["tabs"]},"TypeValidAppBarCoreProps":{"description":"Valid values for the app bar tabs core array.","additionalProperties":false,"enum":["geolocator","export","basemap-panel","geochart","details","legend","guide","data-table","layers","aoi-panel"]},"TypeAppBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"description":"Available tabs - controls","type":"object","additionalProperties":false,"properties":{"core":{"description":"Default core tabs of app-bar to use. NOTE: config from packages like geochart are in the same loaction as core config (<>-<>.json).","type":"array","items":{"$ref":"#/definitions/TypeValidAppBarCoreProps"},"minItems":0,"default":["geolocator"],"uniqueItems":true}}},"collapsed":{"description":"State of app bar when map is loaded (expanded or collapsed)","type":"boolean","default":true},"selectedTab":{"type":"string","enum":["geolocator","basemap-panel","geochart","details","legend","guide","data-table","layers","aoi-panel"],"description":"App bar tab to be selected at map load"}},"required":["tabs"]},"TypeOverviewMapProps":{"type":"object","additionalProperties":false,"properties":{"hideOnZoom":{"description":"Minimum zoom level to show overview map","type":"number","minimum":0,"maximum":10,"default":0}}},"TypeValidMapComponentProps":{"description":"Valid values for the map component array.","additionalProperties":false,"enum":["overview-map","north-arrow"]},"TypeMapComponents":{"description":"Core components to initialize on viewer load. The schema for those are inside this file.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidMapComponentProps"},"default":["overview-map","north-arrow"],"minItems":0},"TypeValidMapCorePackageProps":{"description":"Valid values for the map core package array.","additionalProperties":false,"enum":["swiper"]},"TypeMapCorePackages":{"description":"Core map packages to initialize on viewer load. The schema for those are on their own package. NOTE: config from packages are in the same loaction as core config (<>-<>.json).","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidMapCorePackageProps"},"default":[],"minItems":0},"TypeExternalPackagesProps":{"additionalProperties":false,"type":"object","properties":{"name":{"description":"External Package name. The name must be identical to the window external package object to load.","type":"string"},"configUrl":{"description":"The url to the external package configuration setting. The core package will read the configuration and pass it inside the package.","type":"string"}},"required":["name"]},"TypeExternalPackages":{"description":"List of external packages to initialize on viewer load.","additionalProperties":false,"type":"array","items":{"$ref":"#/definitions/TypeExternalPackagesProps"},"default":[],"minItems":0},"TypeServiceUrls":{"description":"Service endpoint urls","additionalProperties":false,"type":"object","properties":{"geocoreUrl":{"description":"Service end point to access API for layers specification (loading and plugins parameters). By default it is GeoCore but can be another endpoint with similar output.","type":"string","default":"https://geocore.api.geo.ca"},"proxyUrl":{"description":"An optional proxy to be used for dealing with same-origin issues. URL must either be a relative path on the same server or an absolute path on a server which sets CORS headers.","type":"string","default":"https://maps.canada.ca/wmsproxy/ws/wmsproxy/executeFromProxy"},"geolocator":{"description":"Service end point to access geo location of searched value.","type":"string","default":"https://geolocator.api.geo.ca?keys=geonames,nominatim,locate"}}},"TypeValidVersions":{"description":"The schema version that can be used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer.","enum":["1.0"]},"TypeGlobalSettings":{"additionalProperties":false,"type":"object","description":"Universal map settings","properties":{"canRemoveSublayers":{"description":"Whether or not sublayers can be removed from layer groups.","type":"boolean","default":true}}},"TypeBasemapOptions":{"additionalProperties":false,"type":"object","properties":{"basemapId":{"$ref":"#/definitions/TypeBasemapId"},"shaded":{"description":"Enable or disable shaded basemap (if basemap id is set to shaded then this should be false).","type":"boolean","default":true},"labeled":{"description":"Enable or disable basemap labels","type":"boolean","default":true}},"required":["basemapId","shaded","labeled"]},"TypeBasemapId":{"description":"Id of the basemap to use.","enum":["transport","osm","simple","nogeom","shaded","imagery"],"default":"transport"},"TypeInteraction":{"description":"If map is dynamic (pan/zoom) or static to act as a thumbnail (no nav bar).","additionalProperties":false,"enum":["static","dynamic"],"default":"dynamic"},"AbstractGeoviewLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\').","type":"string"},"useInternalSchema":{"description":"Flag used to select the type of schema validation to apply (input/internal).","type":"boolean"},"geoviewLayerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"isGeocore":{"description":"A flag used to indicate that the layer is a GeoCore layer.","type":"boolean"},"metadataAccessPath":{"description":"The GeoView layer service access path (English/French).","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"geoviewLayerType":{"description":"Type of GeoView layer.","$ref":"#/definitions/TypeGeoviewLayerType"},"serviceDateFormat":{"description":"Date format used by the service endpoint.","type":"string","default":"DD/MM/YYYY HH:MM:SSZ"},"externalDateFormat":{"description":"Date format used by the getFeatureInfo to output date variable.","type":"string","default":"DD/MM/YYYY HH:MM:SSZ"},"isTimeAware":{"description":"Flag to mention if layer will use its time dimension if provided. Used to remove a layer from time enabled functions like time slider.","type":"boolean","default":true},"listOfLayerEntryConfig":{"description":"The layer entries to use from the GeoView layer.","$ref":"#/definitions/TypeListOfLayerEntryConfig"}},"if":{"properties":{"useInternalSchema":{"description":"The useInternalSchema property is not defined by the user but by the viewer when we want to use the internal schema.","const":true}},"required":["useInternalSchema"]},"then":{"description":"Use Internal Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer.","type":"string"},"metadataAccessPath":{"description":"The GeoView layer service access path (English/French).","type":"string"}}},"else":{"description":"Use Input Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","$ref":"#/definitions/TypeLocalizedString"},"metadataAccessPath":{"description":"The GeoView layer service access path (English/French).","$ref":"#/definitions/TypeLocalizedString"}}},"required":["geoviewLayerType","metadataAccessPath","listOfLayerEntryConfig"]},"TypeListOfLayerEntryConfig":{"description":"The list of layer configurations. The AbstractGeoviewLayerConfig validation ends here. The only thing we need to verify for the moment is it must be an array of at least one element.","type":"array"},"TypeViewSettings":{"additionalProperties":false,"type":"object","properties":{"initialView":{"description":"Settings for the initial viewing area of the map.","$ref":"#/definitions/TypeMapViewSettings"},"enableRotation":{"description":"Enable rotation. If false, a rotation constraint that always sets the rotation to zero is used.","type":"boolean","default":true},"rotation":{"description":"The initial rotation for the view in degree (positive rotation clockwise, 0 means North). Will be converted to radiant by the viewer.","type":"integer","minimum":-360,"maximum":360,"default":0},"maxExtent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"default":[-125,30,-60,89]},"minZoom":{"description":"The minimum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","type":"integer","minimum":0,"maximum":50},"maxZoom":{"description":"The maximum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","type":"integer","minimum":0,"maximum":50},"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes","default":3978}}},"TypeHighlightColors":{"description":"Color to use for feature highlights.","additionalProperties":false,"enum":["black","white","red","green"],"default":"black"},"TypeOverlayObjects":{"type":"object","properties":{"pointMarkers":{"$ref":"#/definitions/TypePointMarkers"}}},"TypePointMarkers":{"type":"object","patternProperties":{"[^]*":{"type":"array","items":{"$ref":"#/definitions/TypePointMarker"}}}},"TypePointMarker":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string","description":"ID for point marker. Must be unique in group."},"coordinate":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"description":"The coordinates of the marker."},"color":{"type":"string","default":"green","description":"Marker color."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"projection":{"description":"The projection code of the coordinates.","type":"number","default":4326}},"required":["id","coordinate"]},"TypeDisplayLanguage":{"description":"Display languages supported.","enum":["en","fr"]},"TypeLocalizedString":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"en":{"description":"The English version of the string.","type":"string"},"fr":{"description":"The French version of the string.","type":"string"}}},"TypeGeoviewLayerType":{"description":"Type of GeoView layer.","type":"string","enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","GeoPackage","imageStatic","ogcFeature","ogcWfs","ogcWms","vectorTiles","xyzTiles"]},"TypeLayerInitialSettings":{"additionalProperties":false,"type":"object","properties":{"controls":{"description":"The status of various controls for the layer (available/unavailable).","$ref":"#/definitions/TypeLayerControls"},"bounds":{"description":"The geographic bounding box that contains all the layer\'s features.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"extent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"minZoom":{"description":"The minimum view zoom level (exclusive) above which this layer will be visible.","type":"integer","minimum":0,"maximum":50},"maxZoom":{"description":"The maximum view zoom level (inclusive) above which this layer will be visible.","type":"integer","minimum":0,"maximum":50},"className":{"description":"A CSS class name to set to the layer element.","type":"string"},"states":{"description":"The status of initial states for the layer.","$ref":"#/definitions/TypeLayerStates"}}},"TypeLayerControls":{"description":"Which UI controls are available.","additionalProperties":false,"type":"object","properties":{"highlight":{"type":"boolean","default":true},"hover":{"type":"boolean","default":true},"opacity":{"type":"boolean","default":true},"query":{"type":"boolean","default":false},"remove":{"type":"boolean","default":true},"table":{"type":"boolean","default":true},"visibility":{"type":"boolean","default":true},"zoom":{"type":"boolean","default":true}}},"TypeLayerStates":{"description":"Initial layer states.","additionalProperties":false,"type":"object","properties":{"visible":{"description":"Initial visibility setting.","type":"boolean","default":true},"legendCollapsed":{"description":"Is the layer\'s legend collapsed","type":"boolean","default":false},"opacity":{"description":"Initial opacity setting.","type":"number","minimum":0,"maximum":1,"default":1},"hoverable":{"description":"Is the layer hoverable.","type":"boolean"},"queryable":{"description":"Is the layer queryable.","type":"boolean"}}},"TypeMapViewSettings":{"type":"object","maxItems":1,"properties":{"zoomAndCenter":{"$ref":"#/definitions/TypeZoomAndCenter"},"extent":{"description":"The extent for the initial view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"layerIds":{"description":"Geoview layer ID(s) or layer path(s) of layer(s) to use as initial map focus. If empty, will use all layers.","type":"array","items":{"type":"string"}}}},"TypeZoomAndCenter":{"description":"Initial zoom and center coordinates to set map view.","type":"array","prefixItems":[{"type":"number","description":"Initial map zoom level. Zoom level are define by the basemap zoom levels. Levels between whole numbers are supported to fine tune initial view.","minimum":0,"maximum":28,"default":3.5},[{"type":"number","description":"Initial longitude value for map center.","minimum":-160,"maximum":160,"default":-90},{"type":"number","description":"Initial latitude value for map center.","minimum":-80,"maximum":80,"default":60}]],"default":[4.5,[-90,67]]},"TypeValidMapProjectionCodes":{"description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada.","enum":[3978,3857],"default":3978},"EsriDynamicLayerConfig":{"description":"Structure used by the viewer to describe the configuration of an ESRI dynamic layer.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriDynamic"]}}}]},"EsriFeatureLayerConfig":{"description":"Structure used by the viewer to describe the configuration of an ESRI feature layer.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriFeature"]}}}]},"WmsLayerConfig":{"description":"Structure used by the viewer to describe the configuration of a WMS layer.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["ogcWms"]}}}]},"EntryConfigBaseClass":{"description":"Base class from which we derive all the nodes (group and leaves) in the layer tree.","type":"object","properties":{"isLayerGroup":{"description":"Flag used to distinguish layer group nodes.","type":"boolean"},"layerId":{"description":"The id of the layer to display on the map.","type":"string"},"useInternalSchema":{"description":"Flag used to select the type of schema validation to apply (input/internal).","type":"boolean"},"layerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"attributions":{"type":"array","items":{"type":"string"}},"bounds":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"minScale":{"description":"Minimum scale the layer can display.","type":"number","default":0},"maxScale":{"description":"Maximum scale the layer can display.","type":"number","default":0},"initialSettings":{"description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree.","$ref":"#/definitions/TypeLayerInitialSettings"},"entryType":{"description":"The node data type.","$ref":"#/definitions/TypeLayerEntryType"}},"if":{"properties":{"useInternalSchema":{"description":"The useInternalSchema property is not defined by the user but programmatically by the viewer when we want to use the internal schema.","const":true}},"required":["useInternalSchema"]},"then":{"description":"Use Internal Schema","properties":{"layerName":{"description":"The display name of the layer.","type":"string"},"entryType":{"description":"The node data type.","$ref":"#/definitions/TypeLayerEntryType"}},"required":["entryType","layerId","layerName"]},"else":{"description":"Use Input Schema","properties":{"layerName":{"description":"Used by the input schema. The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","$ref":"#/definitions/TypeLocalizedString"},"entryType":{"description":"Input schema does not allow the user to specify the entryType property.","not":{},"errorMessage":{"not":"Property entryType is not allowed in user data."}}},"required":["layerId"]},"errorMessage":{"if":"The data does not respect the EntryConfigBaseClass schema definition."}},"AbstractBaseLayerEntryConfig":{"description":"Base class from which we derive all the leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/EntryConfigBaseClass"},{"type":"object","properties":{"geometryType":{"description":"The geometry type of the leaf node.","$ref":"#/definitions/TypeStyleGeometry"},"source":{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},"temporalDimension":{"$ref":"#/definitions/TypeTemporalDimension"}}}]},"GroupLayerEntryConfig":{"description":"Class from which we derive all the layer group nodes in the layer tree.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/EntryConfigBaseClass"},{"type":"object","properties":{"entryType":{"enum":["group"]},"listOfLayerEntryConfig":{"description":"The list of layer entry configurations to use from the GeoView layer group.","$ref":"#/definitions/TypeListOfLayerEntryConfig"}}}]},"EsriDynamicLayerEntryConfig":{"description":"Class from which we derive all the ESRI Dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The actual parent class is AbstractBaseEsriLayerEntryConfig, whose parent class is AbstractBaseLayerEntryConfig. Both classes have the same properties.","$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"layerId":{"type":"string","pattern":"^[0-9]+$","errorMessage":{"pattern":"The layer identifier (layerId) must be a numeric string."}},"entryType":{"enum":["raster-image"]},"source":{"$ref":"#/definitions/TypeSourceEsriDynamicInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"EsriFeatureLayerEntryConfig":{"description":"Class from which we derive all the ESRI Feature leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The actual parent class is AbstractBaseEsriLayerEntryConfig, whose parent class is AbstractBaseLayerEntryConfig. Both classes have the same properties.","$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"layerId":{"type":"string","pattern":"^[0-9]+$","errorMessage":{"pattern":"The layer identifier (layerId) must be a numeric string."}},"source":{"$ref":"#/definitions/TypeSourceEsriFeatureInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"OgcWmsLayerEntryConfig":{"description":"Class from which we derive all the WMS leaf nodes in the layer tree.","type":"object","allOf":[{"description":"The parent class.","$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"source":{"$ref":"#/definitions/TypeSourceWmsInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"TypeStyleGeometry":{"description":"Valid keys for the geometryType property.","enum":["point","linestring","polygon"]},"TypeBaseSourceInitialConfig":{"description":"Base type from which we derive the source properties for all the leaf nodes in the layer tree.","type":"object","properties":{"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes"},"crossOrigin":{"description":"The crossOrigin attribute if needed to load the data.","type":"string","default":"Anonymous"}}},"TypeSourceTileInitialConfig":{"description":"Initial settings for tile image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"tileGrid":{"description":"Tile grid parameters to use.","$ref":"#/definitions/TypeTileGrid"}}}]},"TypeSourceWmsInitialConfig":{"description":"Initial settings for tile image sources.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"serverType":{"description":"The type of the remote WMS server.","$ref":"#/definitions/TypeOfServer"},"wmsStyle":{"description":"Array of style to choose from.","type":"array","items":{"type":"string"}}}}]},"TypeOfServer":{"description":"The type of the remote WMS server.","enum":["mapserver","geoserver","qgis"],"default":"mapserver"},"TypeSourceImageStaticInitialConfig":{"description":"Initial settings for static image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"extent":{"description":"The extent of the static image. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}}}}]},"TypeBaseVectorSourceInitialConfig":{"description":"Base type from which we derive the source properties for all the vector leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch.","type":"number","default":0},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"strategy":{"description":"The loading strategy to use. By default an all strategy is used, a one-off strategy which loads all features at once.","enum":["all","bbox"],"default":"all"}}}]},"TypeVectorSourceInitialConfig":{"description":"Initial settings to apply to the GeoView vector layer source at creation time.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"separator":{"description":"The character used to separate columns of csv file.","type":"string"}}}]},"TypeVectorTileSourceInitialConfig":{"description":"Initial settings to apply to layer sources providing vector data divided into a tile grid.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}}]},"TypeTileGrid":{"additionalProperties":false,"type":"object","properties":{"extent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"origin":{"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided.","type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},"resolutions":{"description":"Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1.","type":"array","items":{"type":"number"}},"tileSize":{"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided.","type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"default":[256,256]}},"required":["origin","resolutions"]},"TypeVectorSourceFormats":{"description":"The feature format used by the XHR feature loader when access path is set.","enum":["GeoJSON","EsriJSON","KML","WFS","featureAPI","GeoPackage","CSV"]},"TypeSourceEsriDynamicInitialConfig":{"description":"Type from which we derive the source properties for all the ESRI dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch.","type":"number","default":0},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeEsriFormatParameter"},"transparent":{"description":"If true, the image will be exported with the background color of the map set as its transparent color. Only the .png and .gif formats support transparency.","type":"boolean","default":true}}}]},"TypeEsriFormatParameter":{"description":"The format of the exported image.","enum":["png","jpg","gif","svg"],"default":"png"},"TypeSourceEsriFeatureInitialConfig":{"description":"Type from which we derive the source properties for all the ESRI feature leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch.","type":"number","default":0},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"enum":["EsriJSON"]}}}]},"TypeFeatureInfoLayerConfig":{"type":"object","properties":{"queryable":{"description":"Allow querying.","type":"boolean","default":false},"nameField":{"description":"The display field of the layer. If it is not present the viewer will make an attempt to find the first valid field.","type":"string"},"outfields":{"type":"array","items":{"$ref":"#/definitions/TypeOutfields"}}},"required":["queryable"]},"TypeOutfields":{"type":"object","properties":{"name":{"description":"The field name.","type":"string"},"alias":{"description":"The field alias that replaces the name when comes time to display it.","type":"string"},"type":{"description":"The field type.","$ref":"#/definitions/TypeOutfieldsType"},"domain":{"description":"The domain of values.","oneOf":[{"type":"null"},{"$ref":"#/definitions/codedValueType"},{"$ref":"#/definitions/rangeDomainType"}]}},"required":["name","alias","type","domain"]},"TypeOutfieldsType":{"description":"The types supported by the outfields object.","additionalProperties":false,"enum":["string","number","date","url"]},"codedValueType":{"description":"Coded value definition.","additionalProperties":false,"type":"object","properties":{"type":{"enum":["codedValue"]},"name":{"description":"The domain name.","type":"string"},"description":{"description":"A description of the domain.","type":"string"},"codedValues":{"description":"The list of coded values.","$ref":"#/definitions/codeValueEntryType"}}},"codeValueEntryType":{"description":"The structure of a code value.","additionalProperties":false,"type":"object","properties":{"name":{"type":"string"},"code":{"description":"The code property has an unknown type."}}},"rangeDomainType":{"description":"The structure of a range domain.","additionalProperties":false,"type":"object","properties":{"type":{"enum":["range"]},"name":{"description":"The domain name.","type":"string"},"range":{"type":"array","minItems":2,"maxItems":2,"items":{"description":"The code property has an unknown type."}}},"required":["type","name","range"]},"TypeLayerEntryType":{"description":"Layer entry data type.","enum":["vector","vector-tile","raster-tile","raster-image","group"]},"TypeTemporalDimension":{"additionalProperties":false,"type":"object","description":"OGC time dimension definition.","properties":{"field":{"type":"string"},"default":{"type":"string"},"unitSymbol":{"type":"string"},"range":{"$ref":"#/definitions/TypeRangeItems"},"nearestValues":{"enum":["discrete","absolute"]},"singleHandle":{"type":"boolean"}}},"TypeRangeItems":{"description":"Definition of the range object in the OGC time dimension.","additionalProperties":false,"type":"object","properties":{"type":{"type":"string"},"range":{"type":"array","items":{"type":"string"}}}},"TypeStyleConfig":{"type":"object","properties":{"type":{"description":"The type of style used by the layer.","$ref":"#/definitions/TypeStyleConfigType"},"fields":{"type":"array","items":{"type":"string"}},"hasDefault":{"description":"Flag used to indicate that the symbology has a default value.","type":"boolean"},"info":{"description":"Array of style information.","type":"array","items":{"$ref":"#/definitions/TypeStyleConfigInfo"}}}},"TypeStyleConfigType":{"description":"Valid keys for the type property of style configurations.","enum":["simple","uniqueValue","classBreaks"]},"TypeStyleConfigInfo":{"type":"object","properties":{"visible":{"description":"Flag used to show/hide features associated to the label.","type":"boolean","default":true},"label":{"type":"string"},"values":{"description":"Simple type has an empty array; uniqueValue type has many entries (up to 3 for ESRI) and classBreaks type has two entries (index 0 for min and index 1 for max).","type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]}},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"TypeKindOfVectorSettings":{"description":"The type of geometry settings. It must respect the base type and one of the children types.","allOf":[{"description":"Base type for the vector geometry.","$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"description":"One of the chid type.","anyOf":[{"$ref":"#/definitions/TypeLineStringVectorConfig"},{"$ref":"#/definitions/TypePolygonVectorConfig"},{"$ref":"#/definitions/TypeSimpleSymbolVectorConfig"},{"$ref":"#/definitions/TypeIconSymbolVectorConfig"}]}]},"TypeBaseVectorGeometryConfig":{"description":"Base type for the vector geometry types.","type":"object","properties":{"type":{"description":"Type of vector config.","$ref":"#/definitions/TypeBaseVectorType"}}},"TypeBaseVectorType":{"description":"Valid values for the type property of the base vector settings.","enum":["lineString","filledPolygon","simpleSymbol","iconSymbol"]},"TypeLineStringVectorConfig":{"description":"Definition of the line symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["lineString"]},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"}}}]},"TypeStrokeSymbolConfig":{"description":"Stroke style for vector features.","minProperties":1,"additionalProperties":false,"type":"object","properties":{"color":{"type":"string"},"lineStyle":{"$ref":"#/definitions/TypeLineStyle"},"width":{"type":"number"}}},"TypeLineStyle":{"description":"Line style to use for the feature.","enum":["dash","dash-dot","dash-dot-dot","dot","longDash","longDash-dot","null","shortDash","shortDash-dot","shortDash-dot-dot","solid"]},"TypePolygonVectorConfig":{"description":"Definition of the polygon symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["filledPolygon"]},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"paternSize":{"description":"Distance between patern lines.","type":"number","default":8},"paternWidth":{"description":"Patern line width.","type":"number","default":1},"fillStyle":{"description":"Kind of filling for vector features.","$ref":"#/definitions/TypeFillStyle","default":"solid"}}}]},"TypeFillStyle":{"description":"Valid values to specify fill styles.","enum":["null","solid","backwardDiagonal","cross","diagonalCross","forwardDiagonal","horizontal","vertical"]},"TypeSimpleSymbolVectorConfig":{"description":" Definition of the simple symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["simpleSymbol"]},"rotation":{"description":"Symbol rotation in radians.","type":"number"},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"size":{"type":"number"},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"symbol":{"$ref":"#/definitions/TypeSymbol"}}}]},"TypeSymbol":{"description":"Valid values to specify symbol shapes.","enum":["circle","+","diamond","square","triangle","X","star"]},"TypeIconSymbolVectorConfig":{"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["iconSymbol"]},"mimeType":{"type":"string"},"src":{"type":"string"},"width":{"description":"Icon width in pixel.","type":"integer"},"height":{"description":"Icon height in pixel.","type":"integer"},"rotation":{"description":"Icon rotation in radians.","type":"number"},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"crossOrigin":{"description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer.","type":"string","default":"Anonymous"}}}]},"TypePostSettings":{"description":"Definition of the post settings type needed when the GeoView GeoJSON layers need to use a POST instead of a GET.","additionalProperties":false,"type":"object","properties":{"header":{"description":"An optional header object with string keys and string values.","type":"object","additionalProperties":{"type":"string"}},"data":{"description":"A required property that can be any type.","type":["object","array","string","number","boolean","null"]}},"required":["data"]}}}');var ce=n(6883);function ue(e,t){var n,r,i=new(oe())({strict:!1,allErrors:!0});se()(i),i.compile(le);var o=i.getSchema(e);if(o){if(!o(t)){for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],r=$()(t);return n&&Object.assign(r,{useInternalSchema:n}),ue(e,r)}function he(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function pe(e,t){return e.get(ge(e,t))}function fe(e,t,n){return e.set(ge(e,t),n),n}function ge(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var me=new WeakMap,ye=new WeakMap,ve=new WeakMap,be=new WeakMap,we=new WeakMap,xe=function(){return(0,B.A)((function e(t,n,r,i){var o;(0,N.A)(this,e),he(this,me,void 0),he(this,ye,void 0),he(this,ve,void 0),he(this,be,!1),he(this,we,{}),(0,z.A)(this,"isLayerGroup",void 0),(0,z.A)(this,"layerId",void 0),(0,z.A)(this,"layerName",void 0),(0,z.A)(this,"attributions",[]),(0,z.A)(this,"bounds",void 0),(0,z.A)(this,"entryType",void 0),(0,z.A)(this,"minScale",void 0),(0,z.A)(this,"maxScale",void 0),(0,z.A)(this,"initialSettings",void 0),this.validateLayerConfig(t),fe(me,this,n),fe(ye,this,r),fe(ve,this,i),this.layerId=t.layerId,this.layerName=(null==t||null===(o=t.layerName)||void 0===o?void 0:o[pe(me,this)])||"undefined",this.entryType=this.getEntryType(),this.isLayerGroup=t.isLayerGroup||!1,this.applyDefaultValues()}),[{key:"validateLayerConfig",value:function(e){ue(this.getSchemaPath(),e)||this.setErrorDetectedFlag()}},{key:"setLayerMetadata",value:function(e){fe(we,this,e)}},{key:"getLayerMetadata",value:function(){return pe(we,this)}},{key:"getGeoviewLayerType",value:function(){return pe(ye,this).geoviewLayerType}},{key:"getGeoviewLayerConfig",value:function(){return pe(ye,this)}},{key:"getLayerPath",value:function(){var e=function(t){return pe(ve,t)?"".concat(e(pe(ve,t)),"/").concat(t.layerId):t.layerId};return"".concat(pe(ye,this).geoviewLayerId,"/").concat(e(this))}},{key:"setErrorDetectedFlag",value:function(){fe(be,this,!0)}},{key:"getErrorDetectedFlag",value:function(){return pe(be,this)}},{key:"getParentNode",value:function(){return pe(ve,this)}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}},{key:"applyDefaultValues",value:function(){this.initialSettings=$()(G.FU),this.minScale=0,this.maxScale=0}}])}();function Ae(e,t,n){return t=(0,X.A)(t),(0,K.A)(e,Se()?Reflect.construct(t,n||[],(0,X.A)(e).constructor):t.apply(e,n))}function Se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Se=function(){return!!e})()}var Ce=function(e){function t(e,n,r,i){var o;return(0,N.A)(this,t),o=Ae(this,t,[e,n,r,i]),(0,z.A)(o,"entryType",G.JE.GROUP),(0,z.A)(o,"listOfLayerEntryConfig",[]),o.listOfLayerEntryConfig=e.listOfLayerEntryConfig.map((function(e){return Q(e)?r.createGroupNode(e,n,r,o):r.createLeafNode(e,n,r,o)})).filter((function(e){return e})),o.findDuplicatesAndMarkThemAsErrors(),o}return(0,Z.A)(t,e),(0,B.A)(t,[{key:"getSchemaPath",value:function(){return G.y5}},{key:"getEntryType",value:function(){return G.JE.GROUP}},{key:"fetchListOfLayerMetadata",value:(n=(0,r.A)(o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.listOfLayerEntryConfig.forEach((function(e){t.push(e.fetchLayerMetadata())})),e.next=4,Promise.allSettled(t);case 4:e.sent.forEach((function(e,t){"rejected"===e.status&&n.listOfLayerEntryConfig[t].setErrorDetectedFlag()}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"findDuplicatesAndMarkThemAsErrors",value:function(){var e=this;this.listOfLayerEntryConfig.forEach((function(t,n){for(var r=n+1;r in the metadata.",LayerIdInvalidType:"The layerId of entry <=> must be an integer string."}),(0,z.A)(r,"messageKey",void 0),(0,z.A)(r,"messageVariables",void 0),r.messageKey=e,r.messageVariables=n;var i=r.messageList[e].split("<=>").reduce((function(e,t,r){return r0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}}]);var e}();function rt(e,t,n){return t=(0,X.A)(t),(0,K.A)(e,it()?Reflect.construct(t,n||[],(0,X.A)(e).constructor):t.apply(e,n))}function it(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(it=function(){return!!e})()}function ot(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function at(e,t){return e.get(st(e,t))}function st(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var lt=new WeakSet,ct=new WeakMap,ut=function(e){function t(e,n){var r,i,o;(0,N.A)(this,t),r=rt(this,t,[e,n]),ot(i=r,o=lt),o.add(i),function(e,t,n){ot(e,t),t.set(e,n)}(r,ct,(function(e,n){var i=r.getServiceMetadata().layers.reduce((function(n,i){return i.parentLayerId===e&&("Group Layer"===i.type?n.push(at(ct,r).call(r,i.id,i.name)):n.push((0,U.N)({layerId:i.id.toString(),layerName:{en:i.name,fr:i.name},geometryType:t.convertEsriGeometryTypeToOLGeometryType(i.geometryType)}))),n}),[]);return(0,U.N)({layerId:-1===e?n:"".concat(e),layerName:{en:n,fr:n},isLayerGroup:!0,listOfLayerEntryConfig:i})}));var a=r.metadataAccessPath.split("/"),s=a[a.length-1];return/^\d+$/.test(s)&&(r.metadataAccessPath=a.slice(0,-1).join("/"),r.listOfLayerEntryConfig.length&&(r.setErrorDetectedFlag(),ce.vF.logError("When an ESRI metadataAccessPath ends with a layer index, the listOfLayerEntryConfig must be empty.")),r.listOfLayerEntryConfig=[r.createLeafNode((0,U.N)({layerId:s}),n,r)]),r}return(0,Z.A)(t,e),(0,B.A)(t,[{key:"fetchServiceMetadata",value:(n=(0,r.A)(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ge.getXMLHttpRequest)("".concat(this.metadataAccessPath,"?f=json"));case 2:if("{}"===(t=e.sent)){e.next=18;break}try{n=JSON.parse(t)}catch(e){n=(0,U.N)({error:e})}if(!("error"in n)){e.next=11;break}this.setErrorDetectedFlag(),this.setErrorDetectedFlagForAllLayers(this.listOfLayerEntryConfig),ce.vF.logError("Error detected while reading ESRI metadata for geoview layer ".concat(this.geoviewLayerId,"."),n.error),e.next=16;break;case 11:return this.setServiceMetadata(n),this.listOfLayerEntryConfig=st(lt,this,dt).call(this,this.listOfLayerEntryConfig),this.setMetadataLayerTree(this.listOfLayerEntryConfig.length?this.listOfLayerEntryConfig:this.createLayerTree()),e.next=16,this.fetchListOfLayerMetadata();case 16:e.next=21;break;case 18:this.setErrorDetectedFlag(),this.setErrorDetectedFlagForAllLayers(this.listOfLayerEntryConfig),ce.vF.logError("Error detected while reading ESRI metadata for geoview layer ".concat(this.geoviewLayerId,". An empty object was returned."));case 21:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"createLayerTree",value:function(){var e=this.getServiceMetadata().layers;if(e.length>1){var n=this.getServiceMetadata().mapName;return[new Ne(at(ct,this).call(this,-1,n),this.getLanguage(),this)]}return 1===e.length?[this.createLeafNode((0,U.N)({layerId:e[0].id.toString(),layerName:{en:e[0].name,fr:e[0].name},geometryType:t.convertEsriGeometryTypeToOLGeometryType(e[0].geometryType)}),this.getLanguage(),this)]:[]}}],[{key:"convertEsriGeometryTypeToOLGeometryType",value:function(e){switch(e){case"esriGeometryPoint":case"esriGeometryMultipoint":return"point";case"esriGeometryPolyline":return"linestring";case"esriGeometryPolygon":case"esriGeometryMultiPolygon":return"polygon";default:throw new Error("Unsupported geometry type: ".concat(e))}}}]);var n}(nt);function dt(e){var t=this;return e.map((function(e){if(e.getErrorDetectedFlag())return e;if(Q(e))return e.listOfLayerEntryConfig=st(lt,t,dt).call(t,e.listOfLayerEntryConfig),e;try{return st(lt,t,ht).call(t,parseInt(e.layerId,10),e.getParentNode())}catch(t){return e.setErrorDetectedFlag(),ce.vF.logError(t.message,t),e}}))}function ht(e,t){var n=this.getServiceMetadata().layers,r=void 0!==e&&n.find((function(t){return t.id===e}));if(!r)throw new Pe("LayerIdNotFound",[null==e?void 0:e.toString()]);if(r&&"Group Layer"!==r.type){var i=(0,U.N)({layerId:r.id.toString(),layerName:{en:r.name,fr:r.name},geometryType:Xe.convertEsriGeometryTypeToOLGeometryType(r.geometryType)});return this.createLeafNode(i,this.getLanguage(),this,t)}var o=at(ct,this).call(this,parseInt(r.id,10),null==r?void 0:r.name);return this.createGroupNode(o,this.getLanguage(),this,t)}Xe=ut;var pt=n(6620);function ft(e,t,n){return t=(0,X.A)(t),(0,K.A)(e,gt()?Reflect.construct(t,n||[],(0,X.A)(e).constructor):t.apply(e,n))}function gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gt=function(){return!!e})()}var mt=function(e){function t(){var e;(0,N.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i2&&void 0!==arguments[2]?arguments[2]:[],r=(0,q.A)(n);if(Array.isArray(t))for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:this.getServiceMetadata().Capability.Layer;e&&n&&(void 0===n.EX_GeographicBoundingBox&&(n.EX_GeographicBoundingBox=e.EX_GeographicBoundingBox),void 0===n.queryable&&(n.queryable=e.queryable),void 0===n.cascaded&&(n.cascaded=e.cascaded),void 0===n.opaque&&(n.opaque=e.opaque),void 0===n.noSubsets&&(n.noSubsets=e.noSubsets),void 0===n.fixedWidth&&(n.fixedWidth=e.fixedWidth),void 0===n.fixedHeight&&(n.fixedHeight=e.fixedHeight),void 0===n.MinScaleDenominator&&(n.MinScaleDenominator=e.MinScaleDenominator),void 0===n.MaxScaleDenominator&&(n.MaxScaleDenominator=e.MaxScaleDenominator),void 0===n.BoundingBox&&(n.BoundingBox=e.BoundingBox),void 0===n.Dimension&&(n.Dimension=e.Dimension),void 0===n.Attribution&&(n.Attribution=e.Attribution),void 0===n.MaxScaleDenominator&&(n.MaxScaleDenominator=e.MaxScaleDenominator),void 0===n.MaxScaleDenominator&&(n.MaxScaleDenominator=e.MaxScaleDenominator),e.Style&&(n.Style||(n.Style=[]),e.Style.forEach((function(e){n.Style.find((function(t){return t.Name===e.Name}))||n.Style.push(e)}))),e.CRS&&(n.CRS||(n.CRS=[]),e.CRS.forEach((function(e){n.CRS.find((function(t){return t.Name===e}))||n.CRS.push(e)})))),void 0!==(null==n?void 0:n.Layer)&&n.Layer.forEach((function(e){return mn(yn,t,Ln).call(t,n,e)}))}function Rn(e,t,n){jn(e,t),t.set(e,n)}function jn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fn(e,t){return e.get(Nn(e,t))}function Dn(e,t,n){return e.set(Nn(e,t),n),n}function Nn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}sn=bn;var Bn=new WeakMap,zn=new WeakMap,Vn=new WeakMap,$n=new WeakSet,Gn=function(){return(0,B.A)((function e(t,n){var r,i,o,a=this;(0,N.A)(this,e),jn(i=this,o=$n),o.add(i),Rn(this,Bn,void 0),Rn(this,zn,!1),Rn(this,Vn,{}),(0,z.A)(this,"map",void 0),(0,z.A)(this,"theme",void 0),(0,z.A)(this,"navBar",void 0),(0,z.A)(this,"footerBar",void 0),(0,z.A)(this,"appBar",void 0),(0,z.A)(this,"overviewMap",void 0),(0,z.A)(this,"components",void 0),(0,z.A)(this,"corePackages",void 0),(0,z.A)(this,"externalPackages",void 0),(0,z.A)(this,"globalSettings",void 0),(0,z.A)(this,"serviceUrls",void 0),(0,z.A)(this,"schemaVersionUsed",void 0),Dn(zn,this,!ue(G.Su,t)),Dn(Bn,this,n);var s=$()(t.map);this.map=(0,U.K)(Y()(s,Un.call(e,null==s||null===(r=s.viewSettings)||void 0===r?void 0:r.projection))),this.map.listOfGeoviewLayerConfig=this.map.listOfGeoviewLayerConfig.map((function(t){return e.nodeFactory((0,U.N)(t),Fn(Bn,a))})).filter((function(e){return e&&(e.geoviewLayerId in Fn(Vn,a)?(e.setErrorDetectedFlag(),e.setErrorDetectedFlagForAllLayers(e.listOfLayerEntryConfig),ce.vF.logError("ERROR: The GeoView layer ".concat(e.geoviewLayerId," is duplicated."))):Fn(Vn,a)[e.geoviewLayerId]=e),e})),this.serviceUrls=(0,U.K)(Y()(t.serviceUrls,G.NA.serviceUrls)),this.theme=t.theme||G.NA.theme,this.navBar=(0,q.A)(t.navBar||G.NA.navBar),this.appBar=(0,U.K)(Y()(t.appBar,G.NA.appBar)),this.footerBar=(0,U.K)(t.footerBar),this.overviewMap=(0,U.K)(Y()(t.overviewMap,G.NA.overviewMap)),this.components=(0,q.A)(t.components||G.NA.components),this.corePackages=(0,q.A)(t.corePackages||G.NA.corePackages),this.externalPackages=(0,q.A)(t.externalPackages||G.NA.externalPackages),this.globalSettings=t.globalSettings||G.NA.globalSettings,this.schemaVersionUsed=t.schemaVersionUsed||G.NA.schemaVersionUsed,Fn(zn,this)&&Nn($n,this,Wn).call(this,t),de(G.Su,this)||this.setErrorDetectedFlag()}),[{key:"getErrorDetectedFlag",value:function(){return Fn(zn,this)}},{key:"setErrorDetectedFlag",value:function(){Dn(zn,this,!0)}},{key:"getGeoviewLayer",value:function(e){var t;return null===(t=Fn(Vn,this))||void 0===t?void 0:t[e]}},{key:"fetchAllServiceMetadata",value:(e=(0,r.A)(o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.map.listOfGeoviewLayerConfig.forEach((function(e){t.push(e.fetchServiceMetadata())})),e.next=4,Promise.allSettled(t);case 4:e.sent.forEach((function(e,t){"rejected"===e.status&&n.map.listOfGeoviewLayerConfig[t].setErrorDetectedFlag()}));case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}},{key:"applyUserConfigToGeoviewLayers",value:function(e){this.map.listOfGeoviewLayerConfig.forEach((function(t){if(null!=e&&e.length){var n=e.find((function(e){return e.geoviewLayerId===t.geoviewLayerId}));n&&t.applyUserConfig(n)}else t.applyUserConfig()}))}}],[{key:"nodeFactory",value:function(e,t){switch(e.geoviewLayerType){case G.oR.ESRI_DYNAMIC:return new zt(e,t);case G.oR.ESRI_FEATURE:return new Ht(e,t);case G.oR.WMS:return new bn(e,t);default:Qn.devMode&&ce.vF.logError("Invalid GeoView layerType (".concat(e.geoviewLayerType,")."))}}}]);var e}();function Un(e){var t=e&&G.if.includes(e)?e:G.NA.map.viewSettings.projection,n=$()(G.NA.map);return n.viewSettings.maxExtent=(0,q.A)(G.Nt[t]),n.viewSettings.initialView={zoomAndCenter:[3.5,G.VN[t]]},n}function Wn(e){this.map.viewSettings.projection=this.map.viewSettings.projection&&G.if.includes(this.map.viewSettings.projection)?this.map.viewSettings.projection:G.NA.map.viewSettings.projection,Nn($n,this,qn).call(this);var t=this.map.viewSettings.initialView.zoomAndCenter[0];this.map.viewSettings.initialView.zoomAndCenter[0]=!Number.isNaN(t)&&t>=0&&t<=28?t:G.NA.map.viewSettings.initialView.zoomAndCenter[0],Nn($n,this,Hn).call(this),this.schemaVersionUsed=G.ir.includes(this.schemaVersionUsed)?this.schemaVersionUsed:G.NA.schemaVersionUsed;var n=this.map.viewSettings.minZoom;this.map.viewSettings.minZoom=!Number.isNaN(n)&&n>=0&&n<=50?n:G.NA.map.viewSettings.minZoom;var r=this.map.viewSettings.maxZoom;this.map.viewSettings.maxZoom=!Number.isNaN(r)&&r>=0&&r<=50?r:G.NA.map.viewSettings.maxZoom,Nn($n,this,Yn).call(this),Nn($n,this,Kn).call(this,e)}function qn(){var e=this.map.viewSettings.initialView.zoomAndCenter[1][0],t=this.map.viewSettings.initialView.zoomAndCenter[1][1],n=this.map.viewSettings.projection;this.map.viewSettings.initialView.zoomAndCenter[1][0]=!Number.isNaN(e)&&e>G.mq[n].long[0]&&eG.mq[n].lat[0]&&tt[0]?a:G.mq[e].long[1],d=!Number.isNaN(s)&&s>t[1]?s:G.mq[e].lat[1];this.map.viewSettings.maxExtent=[l,c,u,d]}function Kn(e){var t,n,r,i,o,a,s,l,c,u,d=this;(Object.keys(e).forEach((function(e){e in d||ce.vF.logWarning("- Key '".concat(e,"' is invalid -"))})),(null==e||null===(t=e.map)||void 0===t||null===(t=t.viewSettings)||void 0===t?void 0:t.projection)!==this.map.viewSettings.projection)&&ce.vF.logWarning("- Invalid projection code ".concat(null==e||null===(l=e.map)||void 0===l||null===(l=l.viewSettings)||void 0===l?void 0:l.projection," replaced by ").concat(this.map.viewSettings.projection," -"));null!=e&&null!==(n=e.map)&&void 0!==n&&null!==(n=n.viewSettings)&&void 0!==n&&null!==(n=n.initialView)&&void 0!==n&&n.zoomAndCenter&&null!==(r=this.map.viewSettings.initialView)&&void 0!==r&&r.zoomAndCenter&&(null==e||null===(i=e.map)||void 0===i||null===(i=i.viewSettings)||void 0===i||null===(i=i.initialView)||void 0===i?void 0:i.zoomAndCenter[0])!==(null===(o=this.map.viewSettings.initialView)||void 0===o?void 0:o.zoomAndCenter[0])&&ce.vF.logWarning("- Invalid zoom level ".concat(null==e||null===(c=e.map)||void 0===c||null===(c=c.viewSettings)||void 0===c||null===(c=c.initialView)||void 0===c?void 0:c.zoomAndCenter[0],"\n replaced by ").concat(null===(u=this.map.viewSettings.initialView)||void 0===u?void 0:u.zoomAndCenter[0]," -"));var h,p=null==e||null===(a=e.map)||void 0===a||null===(a=a.viewSettings)||void 0===a||null===(a=a.initialView)||void 0===a?void 0:a.zoomAndCenter;(p&&Array.isArray(p)&&2===p.length&&Array.isArray(p[1])&&2===p[1].length&&(0,U.K)(p[1])!==this.map.viewSettings.initialView.zoomAndCenter[1]&&ce.vF.logWarning("- Invalid center ".concat(p[1],"\n replaced by ").concat(this.map.viewSettings.initialView.zoomAndCenter[1])),JSON.stringify(null==e||null===(s=e.map)||void 0===s?void 0:s.basemapOptions)!==JSON.stringify(this.map.basemapOptions))&&ce.vF.logWarning("- Invalid basemap options ".concat(JSON.stringify(null==e||null===(h=e.map)||void 0===h?void 0:h.basemapOptions)," replaced by ").concat(JSON.stringify(this.map.basemapOptions)," -"))}function Xn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Zn=function(){function e(){(0,N.A)(this,e)}return(0,B.A)(e,null,[{key:"getGVConfigFromUUIDs",value:(t=(0,r.A)(o().mark((function t(n,r,i){var a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="".concat(n,"/vcs?lang=").concat(r,"&id=").concat(i.toString()),t.next=3,J.A.get(a);case 3:return s=t.sent,t.abrupt("return",Xn(e,this,Jn).call(this,s,r));case 5:case"end":return t.stop()}}),t,this)}))),function(e,n,r){return t.apply(this,arguments)})}]);var t}();function Jn(e,t){if(!(null!=e&&e.data&&e.data.reponse&&e.data.reponse.rcs&&e.data.reponse.rcs[t])){var n,r=(null==e||null===(n=e.data)||void 0===n?void 0:n.errorMessage)||"";throw new Error("Invalid response from GeoCore service\n".concat(r,"\n"))}if(0===e.data.reponse.rcs[t].length)throw new Error("No layers returned by GeoCore service");for(var i=[],o=function(){var n=e.data.reponse.rcs[t][a];if(null!=n&&n.layers&&n.layers.length>0){var r=n.layers[0];if(r){var o=r.layerType,s=r.layerEntries,l=r.name,c=r.url,u=r.id,d=r.serverType,h=r.isTimeAware,p=c.indexOf("FeatureServer")>-1;if(o!==G.oR.ESRI_DYNAMIC||p)if(p){var f=c.split("/").slice(0,-1).join("/"),g=c.split("/").pop(),m=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(f),geoviewLayerType:G.oR.ESRI_FEATURE,isGeocore:!0,isTimeAware:h});m.listOfLayerEntryConfig=[(0,U.N)({layerId:g})],i.push(m)}else if(o===G.oR.ESRI_FEATURE){var y=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.ESRI_FEATURE,isGeocore:!0,isTimeAware:h});y.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.index)})})),i.push(y)}else if(o===G.oR.WMS){var v=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.WMS,isGeocore:!0,isTimeAware:h});v.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{serverType:void 0===d?"mapserver":d}})})),i.push(v)}else if(o===G.oR.WFS){var b=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.WFS,isGeocore:!0,isTimeAware:h});b.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"WFS",strategy:"all"}})})),i.push(b)}else if(o===G.oR.OGC_FEATURE){var w=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.OGC_FEATURE,isGeocore:!0,isTimeAware:h});w.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"featureAPI"}})})),i.push(w)}else if(o===G.oR.GEOJSON){var x=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.GEOJSON,isGeocore:!0,isTimeAware:h});x.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"GeoJSON"}})})),i.push(x)}else if(o===G.oR.XYZ_TILES){var A=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.XYZ_TILES,isGeocore:!0,isTimeAware:h});A.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id)})})),i.push(A)}else if(o===G.oR.VECTOR_TILES){var S=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.VECTOR_TILES,isGeocore:!0,isTimeAware:h});S.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),tileGrid:e.tileGrid,source:{dataAccessPath:(0,Ge.createLocalizedString)(c)}})})),i.push(S)}else if(o===G.oR.GEOPACKAGE){var C=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.GEOPACKAGE,isGeocore:!0,isTimeAware:h});C.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id),source:{format:"GeoPackage"}})})),i.push(C)}else if(o===G.oR.IMAGE_STATIC){var E=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.IMAGE_STATIC,isTimeAware:h});E.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.id)})})),i.push(E)}else if(o===G.oR.ESRI_IMAGE){var k=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.ESRI_IMAGE,isGeocore:!0,isTimeAware:h});k.listOfLayerEntryConfig=[(0,U.N)({layerId:c.split("/").slice(-2,-1)[0]})],i.push(k)}else ce.vF.logWarning("Layer type ".concat(o," not supported"));else{var T=(0,U.N)({geoviewLayerId:"".concat(u),geoviewLayerName:(0,Ge.createLocalizedString)(l),metadataAccessPath:(0,Ge.createLocalizedString)(c),geoviewLayerType:G.oR.ESRI_DYNAMIC,isGeocore:!0,isTimeAware:h});T.listOfLayerEntryConfig=s.map((function(e){return(0,U.N)({layerId:"".concat(e.index)})})),i.push(T)}}}},a=0;a3&&void 0!==d[3])||d[3],a=Array.isArray(n)?n:[n],s=r||G.NA.serviceUrls.geocoreUrl,!(l=a.filter((function(e){return e.geoviewLayerType===G.JF})).map((function(e){return e.geoviewLayerId}))).length){e.next=19;break}return e.prev=5,e.next=8,Zn.getGVConfigFromUUIDs(s,t,l);case 8:return c=e.sent,u=(u=a.map((function(e){if(e.geoviewLayerType===G.JF){var n=c.find((function(n){return n.geoviewLayerId==="rcs.".concat(e.geoviewLayerId,".").concat(t)}));if(n)return n.geoviewLayerId=e.geoviewLayerId,n.isGeocore=!0,n}return e}))).filter((function(e){return e.geoviewLayerType!==G.JF||(ce.vF.logError("Unable to convert GeoCore layer (Id=".concat(e.geoviewLayerId,").")),!(i||!Array.isArray(n)))})),e.abrupt("return",Array.isArray(n)?u:u[0]);case 14:e.prev=14,e.t0=e.catch(5),ce.vF.logError("Failed to process the array of GeoCore layers",l,r,e.t0);case 17:e.next=20;break;case 19:return e.abrupt("return",n);case 20:return e.abrupt("return",void 0);case 21:case"end":return e.stop()}}),e,null,[[5,14]])}))),function(e,t,n){return a.apply(this,arguments)})},{key:"validateMapConfig",value:function(t,n){var r="string"==typeof t?nr.call(e,t):t;try{if(!r)throw new _e("The string configuration provided cannot be translated to a json object");if(!r.map)throw new _e("The map property is mandatory");e.lastMapConfigCreated=new Gn(r,n)}catch(t){t instanceof _e?ce.vF.logError(t.message):ce.vF.logError("ConfigApi.validateMapConfig - An error occured",t);var i=e.getDefaultMapFeatureConfig(n);i.setErrorDetectedFlag(),e.lastMapConfigCreated=i}return e.lastMapConfigCreated}},{key:"createMapConfig",value:(i=(0,r.A)(o().mark((function t(n,r){var i,a,s,l,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i="string"==typeof n?nr.call(e,n):$()(n),t.prev=1,i){t.next=4;break}throw new _e("The string configuration provided cannot be translated to a json object");case 4:if(i.map){t.next=6;break}throw new _e("The map property is mandatory");case 6:return i.map.listOfGeoviewLayerConfig=i.map.listOfGeoviewLayerConfig||[],s=i.map.listOfGeoviewLayerConfig.length,t.next=10,e.convertGeocoreToGeoview(r,i.map.listOfGeoviewLayerConfig,null==i||null===(a=i.serviceUrls)||void 0===a?void 0:a.geocoreUrl);case 10:i.map.listOfGeoviewLayerConfig=t.sent,l=s!==i.map.listOfGeoviewLayerConfig.length,e.lastMapConfigCreated=new Gn(i,r),l&&e.lastMapConfigCreated.setErrorDetectedFlag(),t.next=22;break;case 16:t.prev=16,t.t0=t.catch(1),t.t0 instanceof _e?ce.vF.logError(t.t0.message):ce.vF.logError("ConfigApi.createMapConfig - An error occured",t.t0),(c=e.getDefaultMapFeatureConfig(r)).setErrorDetectedFlag(),e.lastMapConfigCreated=c;case 22:return t.abrupt("return",e.lastMapConfigCreated);case 23:case"end":return t.stop()}}),t,null,[[1,16]])}))),function(e,t){return i.apply(this,arguments)})},{key:"createLayerConfig",value:(n=(0,r.A)(o().mark((function t(n,r){var i,a,s,l,c=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=c.length>2&&void 0!==c[2]?c[2]:[],a=c.length>3&&void 0!==c[3]?c[3]:"en",r!==G.JF){t.next=18;break}return t.prev=3,l={geoviewLayerId:n,geoviewLayerType:r},t.next=7,e.convertGeocoreToGeoview(a,(0,U.N)(l));case 7:if(s=t.sent){t.next=10;break}return t.abrupt("return",void 0);case 10:t.next=16;break;case 12:return t.prev=12,t.t0=t.catch(3),ce.vF.logError("Unable to convert GeoCore layer (Id=".concat(n,").")),t.abrupt("return",void 0);case 16:t.next=19;break;case 18:s=(0,U.N)({geoviewLayerId:(0,Ge.generateId)(),geoviewLayerName:{en:"unknown",fr:"inconnu"},geoviewLayerType:r,metadataAccessPath:{en:n,fr:n},listOfLayerEntryConfig:i.map((function(e){return{layerId:e}}))});case 19:return e.lastLayerConfigCreated=Gn.nodeFactory(s,a),t.abrupt("return",e.lastLayerConfigCreated);case 21:case"end":return t.stop()}}),t,null,[[3,12]])}))),function(e,t){return n.apply(this,arguments)})},{key:"createMetadataLayerTree",value:(t=(0,r.A)(o().mark((function t(n,r){var i,a,s,l=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=l.length>2&&void 0!==l[2]?l[2]:[],a=l.length>3&&void 0!==l[3]?l[3]:"en",t.next=4,e.createLayerConfig(n,r,i,a);case 4:if(!(s=t.sent)||s.getErrorDetectedFlag()){t.next=10;break}return t.next=8,s.fetchServiceMetadata();case 8:if(s.getErrorDetectedFlag()){t.next=10;break}return t.abrupt("return",s.getMetadataLayerTree());case 10:throw new _e("Unable to build metadata layer tree.");case 11:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]);var t,n,i,a,s}();function er(e){var t={};if(void 0!==e)for(var n=e.split("&"),r=0;r{"use strict";n.d(t,{w:()=>R,A:()=>j});var r=n(30538),i=(n(63629),n(68676)),o=n(43331),a=n(21451),s=n(10280),l=n(92394),c=n(97282);let u;function d(e){const{injectFirst:t,children:n}=e;return t&&u?(0,c.jsx)(s.C,{value:u,children:n}):n}"object"==typeof document&&(u=(0,l.A)({key:"css",prepend:!0}));var h=n(87286),p=n(22554),f=n(48678),g=n(11367),m=n(56239),y=n(8826);const v="function"==typeof(0,y.Dp)({}),b=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),w=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),x=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach((([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}}));let r={html:b(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...w(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},A="mui-ecs";(0,y.Dp)(v?({theme:e,enableColorScheme:t})=>x(e,t):({theme:e})=>(e=>{const t=x(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${A})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={[`:root:not(:has(.${A}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${A}))`]:{colorScheme:r.palette?.mode}}})),t})(e));var S=n(10383),C=n(59644);function E(e){return(0,C.Ay)("MuiScopedCssBaseline",e)}(0,S.A)("MuiScopedCssBaseline",["root"]);const k=(0,f.Ay)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((0,g.A)((({theme:e})=>{const t={};return e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([n,r])=>{const i=e.getColorSchemeSelector(n);i.startsWith("@")?t[i]={colorScheme:r.palette?.mode}:t[`&${i.replace(/\s*&/,"")}`]={colorScheme:r.palette?.mode}})),{...b(e,!1),...w(e),"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold},variants:[{props:{enableColorScheme:!0},style:e.vars?t:{colorScheme:e.palette.mode}}]}}))),T=r.forwardRef((function(e,t){const n=(0,m.b)({props:e,name:"MuiScopedCssBaseline"}),{className:r,component:i="div",enableColorScheme:o,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return(0,p.A)({root:["root"]},E,t)})(s);return(0,c.jsx)(k,{as:i,className:(0,h.A)(l.root,r),ref:t,ownerState:s,...a})}));var _=n(21978),O=n(71229),P=n(1220),I=n(68705),M=n(6883),L=n(15205),R=(0,r.createContext)({mapId:"",mapFeaturesConfig:void 0});const j=function(e){M.vF.logTraceRender("components/app-start");var t=e.mapFeaturesConfig,n=e.onMapViewerInit,s=t.mapId,l=(0,r.useMemo)((function(){return M.vF.logTraceUseMemo("APP-START - mapContextValue",s),{mapId:s}}),[s]),u=(0,L.lk)(s),h=(0,L.iO)(s);return(0,c.jsx)(d,{injectFirst:!0,children:(0,c.jsx)(a.A,{theme:O.w,children:(0,c.jsx)(T,{children:(0,c.jsx)(r.Suspense,{fallback:"",children:function(){var e=i.Ay.cloneInstance({lng:u,fallbackLng:u});if(!(s in I.FHQ.maps)){var d=new P.F(t,e);I.FHQ.maps[s]=d}return I.FHQ.maps[s].onMapInit((function(e){null==n||n(e)})),(0,c.jsx)(o.I18nextProvider,{i18n:e,children:(0,c.jsx)(R.Provider,{value:l,children:(0,c.jsx)(a.A,{theme:(0,O.O)(h),children:(0,c.jsx)(r.StrictMode,{children:(0,c.jsx)(_.$,{mapViewer:I.FHQ.maps[s]})})})})})}()})})})})}},95985:(e,t,n)=>{"use strict";n.d(t,{r:()=>w});var r=n(13718),i=n(47280),o=n(42432),a=n(63436),s=n(76200),l=n(2358),c=n(7396),u=n(6883);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.d.setActiveAppBarTab(this.mapId,e,t,n,r)}}])}();function x(e){l.A.emitEvent(this,g(y,this),e)}function A(e){l.A.emitEvent(this,g(v,this),e)}function S(){this.buttons.default={}}},76099:(e,t,n)=>{"use strict";n.d(t,{h:()=>B});var r=n(42432),i=n(55907),o=n(76390),a=n.n(o),s=n(46900),l=n.n(s),c=n(43331),u=n(30538),d=n(47001),h=n(33828),p=n(23220),f=n(43798),g=n(72845),m=n(73854),y=n(74816),v=n(15205),b=n(17755),w=n(6883),x=n(26899),A=n(57145),S=n(45831),C=function(e){return{appBar:{display:"flex",flexDirection:"row",justifyContent:"space-between",zIndex:e.zIndex.appBar,pointerEvents:"all",backgroundColor:e.palette.geoViewColor.bgColor.main,border:e.palette.geoViewColor.primary.light[100],"&.interaction-static":{position:"absolute",left:0,top:0,height:"100%",backgroundColor:"unset",border:"unset",paddingBottom:"60px","&>div":{border:"unset !important"}}},appBarList:{width:60,"& li":{backgroundColor:"transparent",justifyContent:"center",margin:"16px 0",padding:0,"&:hover":{backgroundColor:"transparent",color:e.palette.geoViewColor.primary.light[300]}},"& hr":{width:"80%",marginLeft:"7px"}},appBarButtons:{borderRightColor:e.palette.geoViewColor.primary.light[100],borderRightWidth:1,borderRightStyle:"solid",width:64},appBarButton:{backgroundColor:e.palette.geoViewColor.primary.main,color:e.palette.geoViewColor.primary.light[700],height:44,width:44,transition:"background-color 0.3s ease-in-out",border:"2px solid transparent","&:hover":{backgroundColor:e.palette.geoViewColor.primary.light[100],color:e.palette.geoViewColor.primary.light[700]},"&:focus":{backgroundColor:e.palette.geoViewColor.primary.light[150],color:e.palette.geoViewColor.primary.light[700]},"&:active":{backgroundColor:e.palette.geoViewColor.primary.light[100],color:e.palette.geoViewColor.primary.light[700]},"&.active":{border:"2px solid ".concat(e.palette.geoViewColor.primary.light[100]),backgroundColor:"transparent",color:e.palette.geoViewColor.primary.light[100]},"& .MuiSvgIcon-root":{height:20,width:20}},versionButtonDiv:{position:"absolute",bottom:0},appBarPanels:{}}},E=n(29067);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var r=n(55907),i=n(30538),o=n(43331),a=n(59149),s=n(44912),l=n(18803),c=n(95197),u=n(71505),d=n(28275),h=n(24258),p=n(33828),f=n(17755),g=n(74816),m=n(31626),y=n(97282);function v(){var e=(0,o.useTranslation)().t,t=(0,f.Jh)(),n=(0,g.GT)(),v=document.getElementById("shell-".concat(t)),b=(0,i.useState)(null),w=(0,r.A)(b,2),x=w[0],A=w[1],S=(0,i.useState)(!1),C=(0,r.A)(S,2),E=C[0],k=C[1],T=function(){E&&(k(!1),A(null))},_={versionInfoPanel:{width:"200px",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.light[200]},borderRadius:"5px",boxShadow:2,marginLeft:"15px","& a":{color:function(e){return"light"===e.palette.mode?e.palette.secondary.contrastText:e.palette.geoViewColor.primary.light[300]},textDecoration:"underLine"}},versionsInfoTitle:{fontSize:function(e){return e.palette.geoViewFontSize.default},fontWeight:"700",padding:"20px",color:function(e){return e.palette.geoViewColor.textColor.main},borderBottom:function(e){return"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[100],"}")},marginBottom:"10px"},versionInfoContent:{padding:"20px",gap:"5px",display:"flex",flexDirection:"column"}};return(0,y.jsx)(a.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:T,children:(0,y.jsxs)(s.A,{children:[(0,y.jsx)(p.IconButton,{id:"version-button",tooltip:"appbar.version",tooltipPlacement:"bottom-end",onClick:function(e){A(e.currentTarget),k(!E)},className:"".concat("dynamic"===n?"buttonFilled":"style4"," ").concat(E?"active":""),"aria-label":"appbar.version",children:(0,y.jsx)(l.A,{viewBox:"-4 -2 38 36",children:(0,y.jsx)(p.GeoCaIcon,{})})}),(0,y.jsx)(p.Popper,{open:E,anchorEl:x,placement:"right-end",onClose:T,container:v,children:(0,y.jsxs)(c.A,{sx:_.versionInfoPanel,children:[(0,y.jsx)(u.A,{sx:_.versionsInfoTitle,component:"h3",children:e("appbar.version")}),(0,y.jsxs)(s.A,{sx:_.versionInfoContent,children:[(0,y.jsxs)(s.A,{sx:{display:"flex",flexDirection:"row",alignContent:"center",gap:"6px"},children:[(0,y.jsx)(l.A,{viewBox:"-4 -2 38 36",children:(0,y.jsx)(p.GeoCaIcon,{})}),(0,y.jsx)(d.A,{rel:"noopener",href:h.un.url,target:"_black",children:h.un.text})]}),(0,y.jsxs)(s.A,{sx:{display:"flex",flexDirection:"row",alignContent:"center",gap:"6px"},children:[(0,y.jsx)(m.A,{}),(0,y.jsx)(d.A,{rel:"noopener",href:h.Dy,target:"_black",children:e("appbar.repoLink")})]}),(0,y.jsx)(u.A,{component:"div",children:"v.".concat(1,".").concat(0,".").concat(0)}),(0,y.jsx)(u.A,{component:"div",children:new Date(1726227401648).toLocaleDateString()})]})]})})]})})}},57692:(e,t,n)=>{"use strict";n.d(t,{m:()=>f});var r=n(42432),i=n(55907),o=n(30538),a=n(47001),s=n(33828),l=n(73854),c=n(74816),u=n(76200),d=n(17755),h=n(6883),p=n(97282);function f(){h.vF.logTraceRender("components/attribution/attribution");var e=(0,a.A)(),t=(0,d.Jh)(),n=document.getElementById("shell-".concat(t)),f=(0,o.useState)(null),g=(0,i.A)(f,2),m=g[0],y=g[1],v=Boolean(m),b=(0,c.re)(),w=(0,l.dY)(),x=(0,o.useCallback)((function(e){y(e.currentTarget)}),[]),A=(0,o.useCallback)((function(){y(null)}),[]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.IconButton,{id:"attribution",onClick:x,className:v?"active":"",tooltipPlacement:"top",tooltip:"mapctrl.attribution.tooltip","aria-label":"mapctrl.attribution.tooltip",sx:(0,r.A)((0,r.A)((0,r.A)({color:e.palette.geoViewColor.bgColor.light[800],marginTop:w?"0.75rem":"0.25rem"},e.breakpoints.up("md"),{marginTop:w?"1.4375rem":"none"}),"width","30px"),"height","30px"),children:(0,p.jsx)(s.MoreHorizIcon,{})}),(0,p.jsx)(s.Popover,{open:v,anchorEl:m,container:n,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"},onClose:A,children:(0,p.jsx)(s.Box,{sx:{padding:"1rem",width:"28.125rem"},children:b.map((function(e){return(0,p.jsx)(s.Typography,{children:e},(0,u.generateId)())}))})})]})}},21712:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(30538),i=n(33828),o=n(74816),a=n(6883),s=n(17755),l=n(97282);function c(){a.vF.logTraceRender("components/click-marker/click-marker");var e=(0,s.Jh)(),t=(0,r.useRef)(null),n="".concat(e,"-clickmarker"),c=(0,o.yC)(),u=(0,o.Rs)(),d=(0,o.U6)(),h=d.setOverlayClickMarkerRef,p=d.showClickMarker;return setTimeout((function(){return h(t.current)}),0),(0,r.useEffect)((function(){a.vF.logTraceUseEffect("CLICK-MARKER - clickCoordinates"),u&&p({lnglat:u.lnglat})}),[u,p]),(0,l.jsx)(i.Box,{ref:t,id:n,sx:{position:"absolute",visibility:void 0!==c?"visible":"hidden"},children:(0,l.jsx)(i.ClickMapMarker,{sx:{animation:"opacity 1s ease-in","@keyframes opacity":{from:{opacity:0},to:{opacity:1}}},fontSize:"large",color:"warning"})})}},1732:(e,t,n)=>{"use strict";n.d(t,{Pe:()=>C,PE:()=>b,Wu:()=>w.W,xk:()=>S});n(46700);var r=n(30538),i=n(47001),o=n(43331),a=n(38811),s=n(33828),l=function(e){return{list:{overflowY:"auto",color:"text.primary",width:"100%",paddingRight:"14px","& .MuiListItemText-primary":{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600"},"& .MuiListItem-root":{height:"100%","& .MuiListItemButton-root":{padding:"0 0 0 16px",height:"100%",backgroundColor:e.palette.geoViewColor.bgColor.light[500]}},"& .MuiListItemButton-root":{minHeight:"73px"},"& .MuiListItemIcon-root":{minWidth:"2rem"},"& .MuiListItemText-root":{">span":{fontSize:e.palette.geoViewFontSize.default},"> p":{fontSize:e.palette.geoViewFontSize.sm,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},listPrimaryText:{minWidth:"0",marginTop:"0.5rem",marginBottom:"0.5rem",marginLeft:"10px",flex:"1 1 auto",display:"flex",flexDirection:"column","& .layerTitle":{fontSize:e.palette.geoViewFontSize.default,fontWeight:"600",lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},">div":{display:"flex",alignItems:"center",marginTop:"4px",">p":{fontSize:"".concat(e.palette.geoViewFontSize.sm," !important"),color:e.palette.text.secondary,fontWeight:400}," svg":{width:"0.75em",height:"0.75em"}}},borderWithIndex:"2px solid ".concat(e.palette.geoViewColor.primary.main," !important"),borderNone:"none",headline:{fontSize:e.palette.geoViewFontSize.md,fontWeight:"bold"},layersInstructionsPaper:{padding:"2rem",cursor:"pointer"},layersInstructionsTitle:{fontSize:e.palette.geoViewFontSize.md,fontWeight:"600",lineHeight:"1.5em"},layersInstructionsBody:{fontSize:e.palette.geoViewFontSize.default}}},c=n(60521),u=n(97282),d=(0,r.memo)((function(e){var t=e.id,n=e.isSelected,d=e.layer,h=e.onListItemClick,p=e.layerIndex,f=(0,i.A)(),g=l(f),m=(0,o.useTranslation)().t,y=0===(null==d?void 0:d.numOffeatures)||null===(null==d?void 0:d.features),v=0===(null==d?void 0:d.numOffeatures)||null===(null==d?void 0:d.features)||"processing"===d.queryStatus||"loading"===d.layerStatus||"processing"===d.layerStatus,b=(0,r.useCallback)((function(){var e;return"error"===d.layerStatus||"error"===(null==d?void 0:d.queryStatus)?"".concat(m("legend.layerError")):["init","processing"].includes(d.queryStatus)?"".concat(m("layers.querying"),"..."):(0,u.jsxs)(u.Fragment,{children:[d.layerFeatures," ",null!==(e=null==d?void 0:d.mapFilteredIcon)&&void 0!==e?e:""]})}),[d,m]);var w,x,A=(0,a.zh)({delay:150*p,from:{opacity:.1},to:{opacity:1}}),S=(0,r.useCallback)((function(e,t){"Enter"!==e.key||y||(h(t),e.preventDefault())}),[y,h]),C=(0,a.CS)(s.Paper);return(0,u.jsx)(C,{sx:{marginBottom:"1rem"},style:A,className:(x=["layer-panel","bordered",null!==(w=d.layerStatus)&&void 0!==w?w:"","query-".concat(d.queryStatus)],n&&x.push("selectedLayer bordered-primary"),x.join(" ")),children:(0,u.jsx)(s.Tooltip,{title:d.tooltip,placement:"top",arrow:!0,children:(0,u.jsx)(s.Box,{children:(0,u.jsx)(s.ListItem,{disablePadding:!0,onKeyDown:function(e){return S(e,d)},onClick:function(){return h(d)},tabIndex:0,id:t,children:(0,u.jsxs)(s.ListItemButton,{tabIndex:-1,selected:n,disabled:y||v,"aria-label":d.layerName,children:[d.layerPath&&!d.content?(0,u.jsx)(c.B,{layer:d}):null,(0,u.jsxs)(s.Box,{sx:g.listPrimaryText,children:[(0,u.jsx)(s.Typography,{className:"layerTitle",children:d.layerName}),(0,u.jsx)(s.Box,{display:"flex",alignContent:"center",children:(0,u.jsx)(s.Typography,{component:"p",variant:"subtitle1",noWrap:!0,display:"block",children:b()})})]})]})})})})})}));function h(e){var t=e.layerList,n=e.selectedLayerPath,r=e.onListItemClick,a=(0,i.A)(),c=l(a),h=(0,o.useTranslation)().t;return(0,u.jsxs)(s.List,{sx:c.list,children:[!!t.length&&t.map((function(e,t){var i,o;return(0,u.jsx)(d,{id:"".concat(null!==(i=null==e?void 0:e.layerUniqueId)&&void 0!==i?i:""),isSelected:(null!==(o=null==e?void 0:e.numOffeatures)&&void 0!==o?o:1)>0&&e.layerPath===n,layer:e,onListItemClick:r,layerIndex:t},e.layerPath)})),!t.length&&(0,u.jsx)(d,{id:"dummyPath",isSelected:!1,layerIndex:0,layer:{layerPath:"",layerName:h("layers.instructionsNoLayersTitle"),layerFeatures:h("layers.instructionsNoLayersBody"),layerStatus:"processed",queryStatus:"processed",numOffeatures:0},onListItemClick:r},"dummyPath")]})}var p=n(42432),f=n(6883),g=n(66054),m=n(24258),y=n(73854);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){var t=e.children,n=e.guideContentIds,o=e.layerList,a=e.selectedLayerPath,l=e.onLayerListClicked,c=e.onIsEnlargeClicked,d=e.fullWidth,b=e.onGuideIsOpen,w=e.containerType,x=void 0===w?m.vB.FOOTER_BAR:w,A=(0,r.useRef)(null),S=(0,i.A)(),C=(0,y.A6)().setSelectedFooterLayerListItem,E=(0,r.useCallback)((function(e){var t,n;null==l||l(e),null===(t=A.current)||void 0===t||t.setIsRightPanelVisible(!0),null===(n=A.current)||void 0===n||n.setRightPanelFocus(),C("".concat(e.layerUniqueId))}),[l,C]),k=(0,r.useCallback)((function(){return f.vF.logTraceUseCallback("LAYOUT - renderLayerList"),(0,u.jsx)(h,{selectedLayerPath:a,onListItemClick:E,layerList:o})}),[a,o,E]),T=(0,r.useMemo)((function(){var e,t;return null!==(e=null===(t=o.find((function(e){return e.layerPath===a})))||void 0===t?void 0:t.layerName)&&void 0!==e?e:""}),[o,a]),_=(0,r.useCallback)((function(){var e=function(e){for(var t=1;t{"use strict";n.d(t,{B:()=>c});var r=n(47001),i=n(33828),o=function(e){return{legendIconTransparent:{display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24},iconPreviewHoverable:{width:24,height:24,position:"absolute",left:-3,top:-2,padding:0,borderRadius:0,boxShadow:2,transition:"transform .3s ease-in-out","&:hover":{transform:"rotate(-18deg) translateX(-8px)"}},iconPreviewStacked:{width:24,height:24,padding:0,borderRadius:0,border:"1px solid",borderColor:e.palette.geoViewColor.bgColor.dark[600],boxShadow:2,backgroundColor:e.palette.geoViewColor.white},maxIconImg:{maxWidth:24,maxHeight:24},legendIcon:{display:"flex",justifyContent:"center",alignItems:"center",width:24,height:"24px !important",backgroundColor:e.palette.geoViewColor.white,border:"1px solid",borderColor:e.palette.geoViewColor.bgColor.dark[600],borderRadius:.5},stackIconsBox:{width:24,height:24,position:"relative","&:focus":{outlineColor:e.palette.geoViewColor.bgColor.dark[600]}},iconPreview:{padding:0,borderRadius:0,boxShadow:2,"&:focus":{border:"revert"}}}},a=n(24795),s=n(97282);function l(e){var t=e.layerPath,n=e.onIconClick,l=e.onStackIconClick,c=(0,r.A)(),u=o(c),d=(0,a.Uk)(t),h=(null==d?void 0:d.length)>0?d[0]:"",p=(null==d?void 0:d.length)>1?d[1]:"",f=null==d?void 0:d.length;return 1===f?(0,s.jsx)(i.IconButton,{tabIndex:-1,sx:u.iconPreview,color:"primary",size:"small",onClick:"no data"===h?void 0:n,"aria-hidden":"true",children:"no data"===h?(0,s.jsx)(i.BrowserNotSupportedIcon,{}):(0,s.jsx)(i.Box,{sx:u.legendIcon,children:(0,s.jsx)(i.Box,{component:"img",alt:"icon",src:h,sx:u.maxIconImg})})}):f&&f>0?(0,s.jsxs)(i.Box,{tabIndex:-1,onClick:n,sx:u.stackIconsBox,onKeyPress:function(e){return null==l?void 0:l(e)},"aria-hidden":"true",children:[(0,s.jsx)(i.IconButton,{sx:u.iconPreviewStacked,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIconTransparent,children:p&&(0,s.jsx)(i.Box,{component:"img",alt:"icon",src:p,sx:u.maxIconImg})})}),(0,s.jsx)(i.IconButton,{sx:u.iconPreviewHoverable,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIcon,children:h&&(0,s.jsx)(i.Box,{component:"img",alt:"icon",src:h,sx:u.maxIconImg})})})]}):""!==t&&0===d.length&&"!"!==t.charAt(0)?(0,s.jsx)(i.Box,{tabIndex:-1,onClick:n,sx:u.stackIconsBox,onKeyPress:function(e){return null==l?void 0:l(e)},"aria-hidden":"true",children:(0,s.jsx)(i.IconButton,{sx:u.iconPreviewStacked,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIconTransparent,children:(0,s.jsx)(i.BrowserNotSupportedIcon,{})})})}):null}function c(e){var t=e.layer;return"error"===t.layerStatus||"queryStatus"in t&&"error"===t.queryStatus?(0,s.jsx)(i.ErrorIcon,{color:"error"}):"processing"===t.layerStatus||"loading"===t.layerStatus||"queryStatus"in t&&"processing"===t.queryStatus?(0,s.jsx)(i.Box,{sx:{padding:"5px",marginRight:"10px"},children:(0,s.jsx)(i.CircularProgressBase,{size:20})}):"children"in t&&null!=t&&t.children.length?(0,s.jsx)(i.GroupWorkOutlinedIcon,{color:"primary"}):(0,s.jsx)(l,{layerPath:t.layerPath})}},66054:(e,t,n)=>{"use strict";n.d(t,{z:()=>C});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(34089),c=n(33828),u=n(46700),d=n(60325),h=n(97282);const p=function(e){var t=e.open,n=e.onClose,r=e.children;return(0,h.jsx)(c.Dialog,{fullScreen:!0,maxWidth:"xl",open:t,onClose:n,disablePortal:!0,children:(0,h.jsxs)(c.DialogContent,{sx:{display:"flex",flexDirection:"column",alignItems:"end"},children:[(0,h.jsx)(c.IconButton,{onClick:n,color:"primary",className:"buttonFilledOutline",sx:{marginBottom:"1.5rem"},children:(0,h.jsx)(c.CloseIcon,{})}),r]})})};var f=n(6883),g=n(58211),m=n(639),y=n(74681),v=n(11288),b=n(15205),w=n(73854),x=n(24258);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t div":{maxHeight:"calc(100vh - 120px)",overflow:"auto"},"& .MuiTableContainer-root":{maxHeight:"calc(100vh - 260px)"},"& .guidebox-container":{maxHeight:"calc(100vh - 120px)",overflow:"auto"}},"& .MuiPaper-root":{border:"none"},"& .guideBox":{color:"".concat(e.palette.geoViewColor.grey.dark[800]," !important"),margin:"1rem",img:{maxWidth:"100%"},td:{width:"auto",paddingLeft:"15px"},th:{textAlign:"left",paddingLeft:"15px"},"& h3":{"&:first-of-type":{display:"flex",alignItems:"center",gap:"0.325rem"}}}}}}(B),V=(0,a.useTranslation)().t,$=(0,b.DR)(),G=(0,b.kv)(),U=(0,w.Qy)(),W=(0,o.useState)(!1),q=(0,i.A)(W,2),H=q[0],Y=q[1],K=(0,o.useState)(!1),X=(0,i.A)(K,2),Z=X[0],J=X[1],Q=(0,o.useState)(!1),ee=(0,i.A)(Q,2),te=ee[0],ne=ee[1],re=(0,o.useState)(!1),ie=(0,i.A)(re,2),oe=ie[0],ae=ie[1],se=(0,d.W)({footerPanelTab:"default"}),le=se.leftPanelRef,ce=se.rightPanelRef,ue=se.panelTitleRef,de=(0,o.useRef)();(0,o.useImperativeHandle)(t,(function(){return{setIsRightPanelVisible:function(e){return Y(e)},setRightPanelFocus:function(){var e;de.current&&(de.current.tabIndex=0,null===(e=de.current)||void 0===e||e.focus())}}})),(0,o.useEffect)((function(){J(!O&&!!L)}),[O,L]),(0,o.useEffect)((function(){null==j||j(Z)}),[Z,j]),(0,o.useEffect)((function(){D&&te&&ne(!1)}),[D,te]),(0,o.useEffect)((function(){var e=function(e){var t;"Escape"===e.key&&U.length&&de.current&&(de.current.tabIndex=-1,null===(t=document.getElementById(U))||void 0===t||t.focus())},t=de.current;return null==t||t.addEventListener("keydown",e),function(){null==t||t.removeEventListener("keydown",e)}}),[U]);var he=(0,o.useCallback)((function(e){f.vF.logTraceUseCallback("LAYOUT - handleIsEnlarge"),ne(e),null==R||R(e)}),[R]),pe=(0,o.useCallback)((function(){var e;L&&(J(!0),null===(e=de.current)||void 0===e||e.focus())}),[J,L]);B.breakpoints.down("md")&&(E||A||H||I||Y(!0));var fe,ge;return(0,h.jsxs)(c.Box,{ref:t,children:[(0,h.jsxs)(u.N.Root,{sx:{pt:8,pb:0},ref:ue,children:[!I&&(0,h.jsx)(u.N.Left,{isRightPanelVisible:H,isEnlarged:te,"aria-hidden":!H,sxProps:{zIndex:oe?"unset":200},className:"responsive-layout-left-top",children:A}),(0,h.jsx)(u.N.Right,{isRightPanelVisible:H,isEnlarged:te,fullWidth:I,sxProps:{zIndex:oe?"unset":100},className:"responsive-layout-right-top",children:(0,h.jsxs)(c.Box,{sx:(0,r.A)((0,r.A)({display:"flex",alignItems:I||N===x.vB.APP_BAR?"end":"center",flexDirection:I||N===x.vB.APP_BAR?"column":"row",gap:I||N===x.vB.APP_BAR?"10px":"0"},B.breakpoints.up("md"),{justifyContent:I||N===x.vB.APP_BAR?"space-between":"right"}),B.breakpoints.down("md"),{justifyContent:"space-between"}),children:[null!=T?T:(0,h.jsx)(c.Box,{}),(0,h.jsx)(c.Box,{sx:z.rightButtonsContainer,children:(0,h.jsxs)(c.ButtonGroup,{size:"small",variant:"outlined","aria-label":"outlined button group",children:[!I&&!D&&(window.innerWidth<=B.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",startIcon:te?(0,h.jsx)(g.A,{}):(0,h.jsx)(m.A,{}),sx:{boxShadow:"none"},onClick:function(){return he(!te)},tooltip:V(te?"dataTable.reduceBtn":"dataTable.enlargeBtn"),children:V(te?"dataTable.reduceBtn":"dataTable.enlargeBtn")})),!(null==L||!L.length)&&(window.innerWidth<=B.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",disabled:Z,variant:"outlined",size:"small",onClick:function(){return pe()},tooltip:V("general.openGuide"),startIcon:(0,h.jsx)(v.A,{}),children:V("general.guide")})),!G&&(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",variant:"outlined",size:"small",onClick:function(){return ae(!oe)},tooltip:V(oe?"general.closeFullscreen":"general.openFullscreen"),startIcon:(0,h.jsx)(c.FullscreenIcon,{}),children:V("general.fullScreen")}),!(!E&&!A)&&(I||!(window.innerWidth>=B.breakpoints.values.md)&&H?(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",color:"primary",className:"buttonFilledOutline",startIcon:(0,h.jsx)(y.A,{fontSize:B.palette.geoViewFontSize.sm}),sx:S({},I?z.appBarEnlargeButton:z.footerBarEnlargeButton),onClick:function(){return Y(!1)},tooltip:null!==(ge=V("dataTable.close"))&&void 0!==ge?ge:"",children:V("dataTable.close")}):null)]})})]})})]}),(0,h.jsxs)(u.N.Root,{children:[(0,h.jsx)(u.N.Left,S(S({},!I&&{ref:le}),{},{isEnlarged:te,isRightPanelVisible:H,fullWidth:I,"aria-hidden":!H,sxProps:{zIndex:oe?"unset":200},className:"responsive-layout-left-main",children:E})),(0,h.jsx)(u.N.Right,S(S({},!I&&{ref:ce}),{},{isEnlarged:te,isRightPanelVisible:H,fullWidth:I,sxProps:{zIndex:oe?"unset":100},className:"responsive-layout-right-main",children:(fe=Z?function(){var e=null==L?void 0:L.map((function(e){var t;return function(e,t){if(null!=e){var n=t.split("."),r=e;return n.forEach((function(e){r=e in r?r[e]:void 0})),r}}(null==$||null===(t=$.footerPanel)||void 0===t?void 0:t.children,"".concat(e,".content"))})).filter((function(e){return void 0!==e})).join("\n");return e?(0,h.jsx)(c.Box,{sx:{padding:"20px",overflow:"auto"},children:(0,h.jsx)(c.Box,{className:"guideBox",children:(0,h.jsx)(l.Ay,{options:{wrapper:"article"},children:e})})}):null}():O,(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p,{open:oe,onClose:function(){return ae(!1)},children:(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:"responsive-layout-right-main-content fullscreen-mode",children:fe})}),(0,h.jsx)(c.Box,{ref:de,sx:z.rightGridContent,tabIndex:-1,className:Z?"responsive-layout-right-main-content guide-container":"responsive-layout-right-main-content",children:fe})]}))}))]})]})}));C.displayName="ResponsiveGridLayout"},46700:(e,t,n)=>{"use strict";n.d(t,{N:()=>b});var r=n(42432),i=n(25968),o=n(30538),a=n(47001),s=n(33828),l=n(97282),c=["children"],u=["children","className","isRightPanelVisible","sxProps","isEnlarged","fullWidth"],d=["children","className","isRightPanelVisible","sxProps","isEnlarged","fullWidth"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t{"use strict";n.d(t,{W:()=>g});var r=n(30538),i=n(47001),o=n(86853),a=n(15205),s=n(73854),l=n(44837),c=n(43381),u=n(6883),d=n(24258),h=n(17755),p=n(43852),f=n(74816);function g(e){var t=e.footerPanelTab,n=void 0===t?"default":t,g=600,m=(0,i.A)(),y=(0,h.Jh)(),v=(0,r.useRef)(null),b=(0,r.useRef)(null),w=(0,r.useRef)(0),x=(0,o.A)(m.breakpoints.down("md")),A=(0,r.useCallback)((function(e){var t,n;e&&(w.current=null!==(t=null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)&&void 0!==t?t:0)}),[]),S=(0,a.kv)(),C=(0,f.ht)(),E=(0,s.ex)(),k=(0,s.g_)(),T=(0,l.yU)(),_=(0,c.Xh)(),O=(0,c.eQ)().setTableHeight,P=(0,s.bd)().tabGroup,I=function(e){var t,n,r=null!==(t=null===(n=b.current)||void 0===n?void 0:n.firstElementChild)&&void 0!==t?t:null;r&&(r.style.maxHeight=null!=e?e:"".concat(g,"px"),r.style.overflowY="auto")};return(0,r.useEffect)((function(){if(u.vF.logTraceUseEffect("USE-FOOTER-PANEL-HEIGHT - footerPanelResizeValue",E,S),v.current&&S&&(k===n||"default"===n)){var e,t,r=document.getElementById("".concat(y,"-tabsContainer")),i=null==r||null===(e=r.firstElementChild)||void 0===e?void 0:e.firstElementChild,o=null!==(t=null==i?void 0:i.clientHeight)&&void 0!==t?t:0,a=window.screen.height*E/100-w.current-o-10;if(P!==p.NF.DATA_TABLE&&P!==p.NF.LAYERS||(a=window.screen.height-200),v.current.style.maxHeight="".concat(a,"px"),v.current.style.overflow="auto",v.current.style.paddingBottom="24px",k===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)I("".concat(a,"px")),O("".concat(a-100,"px"));else if(k===d.DF.GEO_CHART&&b.current){var s,l=null===(s=b.current)||void 0===s?void 0:s.firstElementChild;l&&(l.style.maxHeight="".concat(a,"px"),l.style.overflowY="auto")}else I("".concat(a,"px"))}if(!S&&v.current)if(v.current.style.maxHeight="".concat(g,"px"),v.current.style.overflow="auto",I(),k===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)O("".concat(500,"px"));else if(k===d.DF.GEO_CHART&&b.current){var c,h=null===(c=b.current)||void 0===c?void 0:c.firstElementChild;h&&(h.style.maxHeight="".concat(g,"px"),h.style.overflowY="auto")}}),[E,S,k,n,y,O,T,_,P]),(0,r.useEffect)((function(){v.current&&!S&&(P!==p.NF.DATA_TABLE&&P!==p.NF.LAYERS||!x?v.current.style.maxHeight="".concat(g,"px"):v.current.style.maxHeight="100%")}),[C,S,P,x]),{leftPanelRef:v,rightPanelRef:b,panelTitleRef:A,activeFooterBarTabId:k}}},61656:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(97282);function i(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 275 275",focusable:"false",children:(0,r.jsx)("g",{fill:"none",stroke:"#616161",strokeWidth:"1px",id:"crosshairs",transform:"translate(0 -1824.72) scale(2)",children:(0,r.jsx)("path",{d:"m136.18 983.66-130.93-0.00001m65.467-65.467v130.93m32.2-65.466c0 17.784-14.417 32.2-32.2 32.2-17.784 0-32.2-14.417-32.2-32.2 0-17.784 14.417-32.2 32.2-32.2 17.784 0 32.2 14.417 32.2 32.2z"})})})}},86430:(e,t,n)=>{"use strict";n.d(t,{B:()=>m});var r=n(42432),i=n(30538),o=n(47001),a=n(43331),s=n(33828),l=function(e){var t;return{crosshairContainer:{position:"absolute",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),bottom:e.spacing(0),paddingBottom:e.spacing(6),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none !important",zIndex:e.zIndex.olControl},crosshairInfo:{position:"absolute",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),height:"calc(1em + 8px)",padding:e.spacing(2,1,4,1),backgroundColor:e.palette.geoViewColor.grey.lighten(.1,.9),"& span":{paddingLeft:70}},crosshairIcon:{width:e.overrides.crosshairIcon.size.width,height:null===(t=e.overrides.crosshairIcon)||void 0===t?void 0:t.size.height}}},c=n(61656),u=n(15205),d=n(74816),h=n(6883),p=n(97282);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{t:()=>k});var r=n(42432),i=n(55907),o=n(75299),a=n.n(o),s=n(30538),l=n(43331),c=n(47001),u=n(33828),d=n(56757),h=n(43381),p=n(74816),f=n(73854),g=n(17755),m=n(1732),y=n(6883),v=n(99707),b=n(24258),w=n(43852),x=n(29067),A=n(97282);function S(){var e=(0,c.A)();return(0,A.jsx)(u.TableContainer,{component:u.Paper,children:(0,A.jsxs)(u.Table,{children:[(0,A.jsx)(u.TableHead,{children:(0,A.jsx)(u.TableRow,{children:(0,x.A)(Array(5).keys()).map((function(t){return(0,A.jsx)(u.TableCell,{sx:{width:"20%"},children:(0,A.jsx)(u.Skeleton,{variant:"text",width:"100%",height:"25px",sx:{bgcolor:e.palette.grey[400]}})},t)}))})}),(0,A.jsx)(u.TableBody,{children:(0,x.A)(Array(6).keys()).map((function(t){return(0,A.jsx)(u.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:(0,x.A)(Array(5).keys()).map((function(t){return(0,A.jsx)(u.TableCell,{sx:{width:"20%"},children:(0,A.jsx)(u.Skeleton,{variant:"text",width:"100%",height:"25px",sx:{bgcolor:e.palette.grey[400]}})},t)}))},t)}))})]})})}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0&&(r="".concat(i," ").concat(x("dataTable.features"))),r}),[j,W,x]),K=(0,s.useCallback)((function(e,t){return y.vF.logTraceUseCallback("DATA-PANEL - getLayerTooltip"),(0,A.jsxs)(u.Box,{sx:{display:"flex",alignContent:"center","& svg ":{width:"0.75em",height:"0.75em"}},children:["".concat(e,", ").concat(Y(t)),H(t)&&(0,A.jsx)(u.FilterAltIcon,{})]})}),[Y,H]),X=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - isLayerDisabled",R),function(){return!!W.find((function(e){return e.layerPath===R&&null===e.features}))}}),[W,R]),Z=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - isSelectedLayerHasFeatures",R),function(){return W.find((function(e){var t;return e.layerPath===R&&(null==e||null===(t=e.features)||void 0===t?void 0:t.length)}))}}),[R,W]);(0,s.useEffect)((function(){y.vF.logTraceUseEffect("DATA-PANEL - isLoading",O,R);var e=a()((function(){P(!1)}),100);return function(){return clearTimeout(e)}}),[O,R]),(0,s.useEffect)((function(){y.vF.logTraceUseEffect("DATA-PANEL - unmount",R),N!==b.DF.DATA_TABLE&&F("")}),[N]),(0,s.useEffect)((function(){V===w.NF.DATA_TABLE&&$||!G.includes(w.NF.DATA_TABLE)||F("")}),[V,$,F,G]);var J=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - order layer status processing."),function(){return!!W.find((function(e){return e.queryStatus===b.RI.PROCESSING}))}}),[W]),Q=(0,s.useCallback)((function(e){e&&F("")}),[F]),ee=(0,s.useMemo)((function(){return y.vF.logTraceUseMemo("DATA-PANEL - memoLayersList",W),W.map((function(e){var t;return E(E({},e),{},{layerUniqueId:"".concat(I,"-").concat(b.DF.DATA_TABLE,"-").concat(e.layerPath),layerFeatures:Y(e.layerPath),tooltip:K(null!==(t=e.layerName)&&void 0!==t?t:"",e.layerPath),mapFilteredIcon:H(e.layerPath)&&(0,A.jsx)(u.FilterAltIcon,{sx:{color:C.palette.geoViewColor.grey.main,verticalAlign:"middle"}})})}))}),[H,W]);return(0,A.jsx)(m.PE,{containerType:o,selectedLayerPath:R||"",layerList:ee,onLayerListClicked:q,fullWidth:n,onGuideIsOpen:Q,guideContentIds:["dataTable","dataTable.children.filterData","dataTable.children.sortingAndReordering","dataTable.children.keyboardNavigation"],children:O||J()?(0,A.jsx)(S,{}):!X()&&Z()?(0,A.jsx)(A.Fragment,{children:W.filter((function(e){return e.layerPath===R})).map((function(e){return(0,A.jsx)(u.Box,{ref:k,children:(0,A.jsx)(d.A,{data:e,layerPath:e.layerPath,tableHeight:L})},e.layerPath)}))}):null})}},71068:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{dataPanel:{background:e.palette.geoViewColor.bgColor.main,paddingBottom:"1rem"},gridContainer:{paddingLeft:"1rem",paddingRight:"1rem"},selectedRows:{transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",fontWeight:400,fontSize:e.palette.geoViewFontSize.sm,linHeight:1.43,letterSpacing:"0.01071em",display:"flex",padding:"6px"},selectedRowsDirection:{display:"flex",flexDirection:"column"},tableCell:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},dataTableWrapper:{"& .MuiTableContainer-root":{borderRadius:"6px"},"& .MuiToolbar-root ":{borderRadius:"6px"}},filterMap:{"& .Mui-checked":{"& .MuiTouchRipple-root":{color:e.palette.action.active}},"& .MuiTouchRipple-root":{color:e.palette.geoViewColor.grey.dark[900]}},tableHeadCell:{"& .MuiCollapse-wrapperInner":{"& .MuiBox-root":{gridTemplateColumns:"1fr"}},"& .MuiInput-root":{fontSize:e.palette.geoViewFontSize.sm,"& .MuiSvgIcon-root":{width:"0.75em",height:"0.75em"}},"& .MuiBadge-root":{marginLeft:"0.5rem",">span":{width:"100%"},svg:{marginTop:"0.25rem",marginBottom:"0.25rem"},"& .keyboard-focused":{backgroundColor:"rgba(81, 91, 165, 0.08)",borderRadius:"50%",border:"1px solid black !important","> svg":{opacity:1}}}},dataTableInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},dataTableInstructionsBody:{fontSize:e.palette.geoViewFontSize.sm},rightPanelContainer:{overflowY:"auto",color:e.palette.geoViewColor.textColor.main}}}},56757:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=n(55723),i=n(96880),o=n(42432),a=n(55907),s=n(74813),l=n.n(s),c=n(30538),u=n(43331),d=n(44481),h=n.n(d),p=n(61170),f=n(53813),g=n(85315),m=n.n(g),y=n(80112),v=n.n(y),b=n(34663),w=n.n(b),x=n(1360),A=n.n(x),S=n(82842),C=n.n(S),E=n(75781),k=n.n(E);m().extend(A()),m().extend(v()),m().extend(C()),m().extend(k());const T={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},_={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},O=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),P=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class I{constructor({locale:e,formats:t}={}){var n,r;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=T,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==m().utc,this.hasTimezonePlugin=()=>void 0!==m().tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return m().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=m().tz.guess();return"UTC"!==t?m().tz(e,t):m()(e)}return m()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(O);return m().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(O);if(!this.hasTimezonePlugin())throw new Error(P);const n=void 0!==e&&!e.endsWith("Z");return m()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=m().Ls;let t=e[this.locale||"en"];return void 0===t&&(t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){const n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e},this.date=(e,t="default")=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getInvalidDate=()=>m()(new Date("Invalid date")),this.getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(O);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(P)}return m().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const i=r&&r.toUpperCase();return n||t[r]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.isValid=e=>null!=e&&e.isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>ethis.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,i=t;const o=[];for(;ie.week(),this.getYearRange=([e,t])=>{const n=this.startOfYear(e),r=this.endOfYear(t),i=[];let o=n;for(;this.isBefore(o,r);)i.push(o),o=this.addYears(o,1);return i},this.dayjs=(n=m(),(r=e)?(...e)=>n(...e).locale(r):n),this.locale=e,this.formats=(0,f.A)({},_,t),m().extend(w())}getDayOfWeek(e){return e.day()+1}}var M=n(88192);const L={actions:"Actions",and:"et",cancel:"Annuler",changeFilterMode:"Changer le mode de filtre",changeSearchMode:"Changer le mode de recherche",clearFilter:"Effacer le filtre",clearSearch:"Effacer la recherche",clearSelection:"Effacer la sélection",clearSort:"Effacer le tri",clickToCopy:"Cliquer pour copier",copy:"Copier",collapse:"Réduire",collapseAll:"Réduire tout",columnActions:"Actions de colonne",copiedToClipboard:"Copié dans le presse-papier",dropToGroupBy:"Déposer pour grouper par {column}",edit:"Editer",expand:"Développer",expandAll:"Tout développer",filterArrIncludes:"Inclure",filterArrIncludesAll:"Tout inclure",filterArrIncludesSome:"Inclure",filterBetween:"Entre",filterBetweenInclusive:"Entre inclus",filterByColumn:"Filtrer par {column}",filterContains:"Contient",filterEmpty:"Vide",filterEndsWith:"Se termine par",filterEquals:"Egale",filterEqualsString:"Egale",filterFuzzy:"Flou",filterGreaterThan:"Plus grand que",filterGreaterThanOrEqualTo:"Plus grand que ou égale à",filterInNumberRange:"Entre",filterIncludesString:"Contient",filterIncludesStringSensitive:"Contient",filterLessThan:"Plus petit que",filterLessThanOrEqualTo:"Plus petit que ou égale à",filterMode:"Mode filtre: {filterType}",filterNotEmpty:"Pas vide",filterNotEquals:"Pas égal",filterStartsWith:"Commence avec",filterWeakEquals:"Egale",filteringByColumn:"Filtrage par {column} - {filterType} {filterValue}",goToFirstPage:"Aller à la première page",goToLastPage:"Aller à la dernière page",goToNextPage:"Aller à la page suivante",goToPreviousPage:"Aller à la page précédente",grab:"Saisir",groupByColumn:"Grouper par {column}",groupedBy:"Groupé par ",hideAll:"Cacher tout",hideColumn:"Cacher colonne {column}",max:"Max",min:"Min",move:"Déplacer",noRecordsToDisplay:"Aucun enregistrement à afficher",noResultsFound:"Aucun résultat trouvé",of:"de",or:"ou",pin:"Attacher",pinToLeft:"Épingler à gauche",pinToRight:"Épingler à droite",resetColumnSize:"Réinitialiser la taille de la colonne",resetOrder:"Réinitialiser l'ordre",rowActions:"Actions de ligne",rowNumber:"#",rowNumbers:"Numéros de ligne",rowsPerPage:"Lignes par page",save:"Sauvegarder",search:"Rechercher",selectedCountOfRowCountRowsSelected:"{selectedCount} sur {rowCount} ligne(s)",select:"Sélectionner",showAll:"Afficher tous",showAllColumns:"Afficher toutes les colonnes",showHideColumns:"Afficher/Masquer les colonnes",showHideFilters:"Afficher/Masquer les filtres",showHideSearch:"Afficher/Masquer la recherche",sortByColumnAsc:"Trier par {column} croissant",sortByColumnDesc:"Trier par {column} décroissant",sortedByColumnAsc:"Trié par {column} croissant",sortedByColumnDesc:"Trié par {column} décroissant",thenBy:", puis par ",toggleDensity:"Changer la densité",toggleFullScreen:"Passer en plein écran",toggleSelectAll:"Basculer tout sélectionner",toggleSelectRow:"Basculer la sélection de ligne",toggleVisibility:"Basculer la visibilité",ungroupByColumn:"Dissocier par {column}",unpin:"Détacher",unpinAll:"Tout détacher"},R={actions:"Actions",and:"and",cancel:"Cancel",changeFilterMode:"Change filter mode",changeSearchMode:"Change search mode",clearFilter:"Clear filter",clearSearch:"Clear search",clearSelection:"Clear selection",clearSort:"Clear sort",clickToCopy:"Click to copy",copy:"Copy",collapse:"Collapse",collapseAll:"Collapse all",columnActions:"Column Actions",copiedToClipboard:"Copied to clipboard",dropToGroupBy:"Drop to group by {column}",edit:"Edit",expand:"Expand",expandAll:"Expand all",filterArrIncludes:"Includes",filterArrIncludesAll:"Includes all",filterArrIncludesSome:"Includes",filterBetween:"Between",filterBetweenInclusive:"Between Inclusive",filterByColumn:"Filter by {column}",filterContains:"Contains",filterEmpty:"Empty",filterEndsWith:"Ends With",filterEquals:"Equals",filterEqualsString:"Equals",filterFuzzy:"Fuzzy",filterGreaterThan:"Greater Than",filterGreaterThanOrEqualTo:"Greater Than Or Equal To",filterInNumberRange:"Between",filterIncludesString:"Contains",filterIncludesStringSensitive:"Contains",filterLessThan:"Less Than",filterLessThanOrEqualTo:"Less Than Or Equal To",filterMode:"Filter Mode: {filterType}",filterNotEmpty:"Not Empty",filterNotEquals:"Not Equals",filterStartsWith:"Starts With",filterWeakEquals:"Equals",filteringByColumn:"Filtering by {column} - {filterType} {filterValue}",goToFirstPage:"Go to first page",goToLastPage:"Go to last page",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page",grab:"Grab",groupByColumn:"Group by {column}",groupedBy:"Grouped by ",hideAll:"Hide all",hideColumn:"Hide {column} column",max:"Max",min:"Min",move:"Move",noRecordsToDisplay:"No records to display",noResultsFound:"No results found",of:"of",or:"or",pin:"Pin",pinToLeft:"Pin to left",pinToRight:"Pin to right",resetColumnSize:"Reset column size",resetOrder:"Reset order",rowActions:"Row Actions",rowNumber:"#",rowNumbers:"Row Numbers",rowsPerPage:"Rows per page",save:"Save",search:"Search",selectedCountOfRowCountRowsSelected:"{selectedCount} of {rowCount} row(s) selected",select:"Select",showAll:"Show all",showAllColumns:"Show all columns",showHideColumns:"Show/Hide columns",showHideFilters:"Show/Hide filters",showHideSearch:"Show/Hide search",sortByColumnAsc:"Sort by {column} ascending",sortByColumnDesc:"Sort by {column} descending",sortedByColumnAsc:"Sorted by {column} ascending",sortedByColumnDesc:"Sorted by {column} descending",thenBy:", then by ",toggleDensity:"Toggle density",toggleFullScreen:"Toggle full screen",toggleSelectAll:"Toggle select all",toggleSelectRow:"Toggle select row",toggleVisibility:"Toggle visibility",ungroupByColumn:"Ungroup by {column}",unpin:"Unpin",unpinAll:"Unpin all"};var j=n(47001),F=n(59293),D=n(33828),N=n(74816),B=n(24795),z=n(43381),V=n(15205),$=n(73854),G=n(25079),U=n(76200),W=n(6883),q=n(99707),H=n(71068),Y=n(76976),K=n(87605),X=n(89484),Z=n(1732),J=n(24258),Q=n(43852),ee=n(51640),te=n(97282);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t td":{backgroundColor:e.palette.geoViewColor.bgColor.darken(.1)},"& tr:hover > td":{backgroundColor:e.palette.secondary.light},"& .Mui-selected > td":{backgroundColor:"".concat(e.palette.secondary.light," !important")}}}}});(0,c.useEffect)((function(){W.vF.logTraceUseEffect("DATA-TABLE - sorting",C);var e=Me.getRowCount();try{var t,n;if(e>0)null===(t=x.current)||void 0===t||null===(n=t.scrollToIndex)||void 0===n||n.call(t,0)}catch(e){W.vF.logError("Data table error on sorting action",e)}}),[C]);var Le=(0,c.useCallback)((function(e){W.vF.logTraceUseEffect("DATA-TABLE - buildFilterList");var t=Me.getState();return e.length?e.map((function(e){var n,i=e.value,o=e.id;if(Array.isArray(i)){var a="",s=""===i[0]?void 0:Number(i[0]),l=""===i[1]?void 0:Number(i[1]),c="betweenInclusive"===(null==t?void 0:t.columnFilterFns[o])?"=":"";return s&&l?a="".concat(o," >").concat(c," ").concat(s," and ").concat(o," <").concat(c," ").concat(l):s?a="".concat(o," >").concat(c," ").concat(s):l&&(a="".concat(o," <").concat(c," ").concat(l)),a}if(!Number.isNaN(Number(i)))return"".concat(o," ").concat(J.LK[null==t?void 0:t.columnFilterFns[o]]," ").concat(Number(i));if("empty"===(null==t?void 0:t.columnFilterFns[o]))return"".concat(o," is null");if("notEmpty"===(null==t?void 0:t.columnFilterFns[o]))return"".concat(o," is not null");if("object"===(0,r.A)(i)&&i){var u=(null==t?void 0:t.columnFilterFns[o])||"equals",d=J.Ax[u],h=G.P.applyInputDateFormat("".concat(i.toISOString().slice(0,-5),"Z")).slice(0,-1);return"".concat(o," ").concat(d.replace("value",h))}var p=null!==(n=null==t?void 0:t.columnFilterFns[o])&&void 0!==n?n:"contains",f=J.Fz[p];return"".concat(f.replace("filterId",o).replace("value",i))})):[""]}),[]),Re=h()((function(e){var t=Le(e).filter((function(e){return e.length})).join(" and ");ae(t)}),1e3),je=(0,c.useCallback)((function(e){return Re(e)}),[null===(t=ue[o])||void 0===t?void 0:t.mapFilteredRecord]);return(0,c.useEffect)((function(){W.vF.logTraceUseEffect("DATA-TABLE - columnFilters",be),be&&ue[o].mapFilteredRecord&&je(be)}),[be]),(0,c.useEffect)((function(){W.vF.logTraceUseEffect("DATA-TABLE - mapFilteredRecord",ue[o].mapFilteredRecord),Re(be)}),[ue[o].mapFilteredRecord]),(0,q.iI)({data:n,columnFilters:be,globalFilter:Ae,layerPath:o,tableInstance:Me}),(0,te.jsxs)(D.Box,{sx:m.dataTableWrapper,children:[(0,te.jsx)(M.$,{dateAdapter:I,adapterLocale:ce,children:(0,te.jsx)(D.MaterialReactTable,{table:Me})}),(0,te.jsx)(ye,{})]})}const oe=(0,c.memo)(ie)},76976:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(55907),i=n(30538),o=n(43331),a=n(68312),s=n(33828),l=n(6883),c=n(97282);const u=function(e){var t=e.rows,n=e.columns,u=e.children;l.vF.logTraceRender("components/data-table/export-button");var d=(0,o.useTranslation)().t,h=(0,i.useState)(null),p=(0,r.A)(h,2),f=p[0],g=p[1],m=Boolean(f),y=(0,i.useCallback)((function(e){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleClick"),g(e.currentTarget)}),[]),v=(0,i.useCallback)((function(){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleClose"),g(null)}),[]),b=(0,i.useMemo)((function(){return l.vF.logTraceUseMemo("DATA-TABLE - EXPORT BUTTON - getCsvOptions",n),function(){return{fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!0,useBom:!0,useKeysAsHeaders:!1,headers:n.map((function(e){return e.id}))}}}),[n]),w=(0,i.useCallback)((function(){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleExportData");var e=t.map((function(e){return Object.keys(e).reduce((function(t,n){var r,i;return t[n]=null!==(r=null===(i=e[n])||void 0===i?void 0:i.value)&&void 0!==r?r:"",t}),{})}));new a.ExportToCsv(b()).generateCsv(e),g(null)}),[b,t]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.IconButton,{onClick:y,className:"buttonOutline",children:(0,c.jsx)(s.Tooltip,{title:d("dataTable.exportBtn"),placement:"bottom",enterDelay:100,children:(0,c.jsx)(s.DownloadIcon,{})})}),(0,c.jsxs)(s.Menu,{anchorEl:f,open:m,onClose:v,children:[(0,c.jsx)(s.MenuItem,{onClick:w,children:d("dataTable.downloadAsCSV")}),u]})]})}},89484:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(43331),i=n(24495),o=n(47001),a=n(33828),s=n(71068),l=n(43381),c=n(6883),u=n(97282);const d=function(e){var t=e.layerPath,n=e.isGlobalFilterOn;c.vF.logTraceRender("components/data-table/filter-map");var d=(0,o.A)(),h=(0,s.S)(d),p=(0,l._M)(),f=(0,l.eQ)().setMapFilteredEntry,g=(0,r.useTranslation)().t;return(0,u.jsx)(a.Tooltip,{title:p[t].mapFilteredRecord?g("dataTable.stopFilterMap"):g("dataTable.filterMap"),children:(0,u.jsx)(i.A,{size:"medium",onChange:function(){var e;return f(null===(e=!p[t].mapFilteredRecord)||void 0===e||e,t)},checked:!!p[t].mapFilteredRecord,sx:h.filterMap,disabled:n})})}},99707:(e,t,n)=>{"use strict";n.d(t,{bc:()=>p,j8:()=>s,bv:()=>f,iI:()=>c});var r=n(55907),i=n(30538),o=n(43381),a=n(6883);function s(e){var t=e.layerPath,n=(0,o._M)(),s=(0,o.eQ)().setColumnFiltersEntry,l=(0,i.useState)(n[t].columnFiltersRecord||[]),c=(0,r.A)(l,2),u=c[0],d=c[1];return(0,i.useEffect)((function(){a.vF.logTraceUseEffect("USEFILTERROWS - columnFilters",u),s(u,t)}),[u]),{columnFilters:u,setColumnFilters:d}}var l=n(43331);function c(e){var t=e.data,n=e.columnFilters,r=e.globalFilter,s=e.layerPath,c=e.tableInstance,u=(0,l.useTranslation)().t,d=(0,o._M)(),h=(0,o.eQ)(),p=h.setToolbarRowSelectedMessageEntry,f=h.setRowsFilteredEntry;(0,i.useEffect)((function(){var e,n;a.vF.logTraceUseEffect("USETOOLBARACTIONMESSAGE - rowSelection");var r,i,o=null!==(e=d[s].toolbarRowSelectedMessageRecord)&&void 0!==e?e:"";c&&c.getFilteredRowModel().rows.length!==(null===(n=t.features)||void 0===n?void 0:n.length)?o=u("dataTable.rowsFiltered").replace("{rowsFiltered}",c.getFilteredRowModel().rows.length.toString()).replace("{totalRows}",null!==(r=null===(i=t.features)||void 0===i?void 0:i.length.toString())&&void 0!==r?r:""):o="";p(o,s)}),[t.features,r]),(0,i.useEffect)((function(){var e;a.vF.logTraceUseEffect("USETOOLBARACTIONMESSAGE - columnFilters",n);var r=null!==(e=d[s].toolbarRowSelectedMessageRecord)&&void 0!==e?e:"",i=0;if(c){var o,l,h,g=c.getFilteredRowModel();if(g.rows.length!==(null==t||null===(o=t.features)||void 0===o?void 0:o.length))i=g.rows.length,r=u("dataTable.rowsFiltered").replace("{rowsFiltered}",g.rows.length.toString()).replace("{totalRows}",null!==(l=null==t||null===(h=t.features)||void 0===h?void 0:h.length.toString())&&void 0!==l?l:"");else r="",i=0;f(i,s)}p(r,s)}),[n,t.features,r])}var u=n(42432);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{A:()=>h});var r=n(30538),i=n(43331),o=n(59119),a=n(43910),s=n(64383),l=n(87620),c=n(33828),u=n(74816),d=n(97282);const h=function(e){var t=e.features,n=e.layerPath,h=(0,i.useTranslation)().t,p=(0,u.U6)().transformPoints,f=(0,r.useCallback)((function(e){var t={};return e instanceof o.Ay?t={type:"Polygon",coordinates:e.getCoordinates().map((function(e){return e.map((function(e){return p([e],4326)[0]}))}))}:e instanceof a.A?t={type:"LineString",coordinates:e.getCoordinates().map((function(e){return p([e],4326)[0]}))}:e instanceof s.A?t={type:"Point",coordinates:p([e.getCoordinates()],4326)[0]}:e instanceof l.A&&(t={type:"MultiPoint",coordinates:e.getCoordinates().map((function(e){return p([e],4326)[0]}))}),t}),[p]),g=(0,r.useCallback)((function(){var e=t.map((function(e){var t=e.geometry,n=e.fieldInfo;return{type:"Feature",geometry:f(null==t?void 0:t.getGeometry()),properties:n}}));return JSON.stringify({type:"FeatureCollection",features:e},null,2)}),[f,t]),m=(0,r.useCallback)((function(e,t){var n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,r.click(),URL.revokeObjectURL(n)}),[]),y=(0,r.useCallback)((function(){var e=g(),t=new Blob([e],{type:"text/json"});m(t,"table-".concat(n,".json"))}),[m,g,n]);return(0,d.jsx)(c.MenuItem,{onClick:y,children:h("dataTable.jsonExportBtn")})}},58229:(e,t,n)=>{"use strict";n.d(t,{r:()=>O});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(33828),c=n(44837),u=n(17755),d=n(74816),h=n(6883),p=n(1732),f=n(63744),g=n(96880),m=n(74813),y=n.n(m),v=n(61170),b=n(76200),w=n(98068),x=n(97282);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t1?"s":"")}),[g]),ee=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoLayersList",S,w),S.map((function(e){return w.find((function(t){return t.layerPath===e}))})).filter((function(e){return e})).map((function(e){var t,n,r,i;return{layerName:null!==(t=e.layerName)&&void 0!==t?t:"",layerPath:e.layerPath,layerStatus:e.layerStatus,queryStatus:e.queryStatus,numOffeatures:null!==(n=null===(r=e.features)||void 0===r?void 0:r.length)&&void 0!==n?n:0,layerFeatures:Q(e),tooltip:"".concat(e.layerName,", ").concat(Q(e)),layerUniqueId:"".concat(v,"-").concat(E.DF.DETAILS,"-").concat(null!==(i=null==e?void 0:e.layerPath)&&void 0!==i?i:"")}}))}),[S,w,Q,v]),te=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoLayerSelectedItem",ee,b),ee.find((function(e){return e.layerPath===b}))}),[ee,b]),ne=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerData",w,b),w.find((function(e){return e.layerPath===b}))}),[w,b]),re=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerDataFeatures",null==ne?void 0:ne.features),null==ne?void 0:ne.features}),[null==ne?void 0:ne.features]),ie=(0,o.useCallback)((function(e,t){var n,r,i;(h.vF.logTraceUseCallback("DETAILS-PANEL - updateFeatureSelected"),null!=t&&t.features)&&(r=null==t||null===(i=t.features)||void 0===i?void 0:i[X.current]);r&&!Z(r)&&j(r);var o=null==ne||null===(n=ne.features)||void 0===n?void 0:n[e];o&&R(o),B(e)}),[ne,Z,j,R]);(0,o.useEffect)((function(){h.vF.logTraceUseEffect("DETAILS-PANEL - memoLayersList changed",ee),j("all"),ee.length||P("")}),[ee,P,j]),(0,o.useEffect)((function(){h.vF.logTraceUseEffect("DETAILS-PANEL - memoSelectedLayerDataFeatures changed",ee,re),J(K.current),J(re),re&&re.length&&R(re[N])}),[ee,re,N,R,j,J]),(0,o.useEffect)((function(){h.vF.logTraceUseEffect("DETAILS-PANEL - update layer data bypass",b),M(b)}),[b,M]),(0,o.useEffect)((function(){if(h.vF.logTraceUseEffect("DETAILS-PANEL - check selection",te),(!te||"processed"===te.queryStatus||"error"===te.queryStatus)&&""!==b)if(null!=te&&te.numOffeatures)h.vF.logDebug("DETAILS-PANEL","keep selection",te),M(te.layerPath);else{var e=ee.find((function(e){return ee.find((function(t){return e.layerPath===t.layerPath&&t.numOffeatures}))}));e?(h.vF.logDebug("DETAILS-PANEL","select another",te,e.layerPath),P(e.layerPath)):h.vF.logDebug("DETAILS-PANEL","select none",te)}}),[te,ee]);var oe=(0,o.useCallback)((function(e){h.vF.logTraceUseCallback("DETAILS PANEL - handleFeatureNavigateChange",N),X.current=N,ie(N+e,ne)}),[N,ne,ie]),ae=(0,o.useCallback)((function(e){h.vF.logTraceUseCallback("DETAILS-PANEL - handleLayerChange",e.layerPath),P(e.layerPath)}),[P]),se=function(){var e;Y.current=w.find((function(e){return e.layerPath===$})),K.current=null===(e=Y.current)||void 0===e?void 0:e.features,X.current=N,B(0)};q!==ee&&(H(ee),se()),$!==b&&(G(b),se());var le=(0,o.useCallback)((function(e){h.vF.logTraceUseCallback("DETAILS PANEL - handleGuideIsOpen"),e&&P("")}),[P]);(0,o.useEffect)((function(){if(h.vF.logTraceUseEffect("DETAILS-PANEL- mapClickCoordinates",T),T&&null!=ee&&ee.length&&!b.length){var e,t=ee.find((function(e){return!!e.numOffeatures}));P(null!==(e=null==t?void 0:t.layerPath)&&void 0!==e?e:"")}}),[T,ee]);var ce=(0,o.useMemo)((function(){return h.vF.logTraceUseMemo("DETAILS-PANEL - order layer status processing."),w&&0!==(null==w?void 0:w.length)?function(){return!(null==w||!w.every((function(e){return e.queryStatus===E.RI.PROCESSING})))}:function(){return!1}}),[w]);return(0,x.jsx)(p.PE,{selectedLayerPath:b||"",layerList:ee,onLayerListClicked:function(e){return ae(e)},fullWidth:n,onGuideIsOpen:le,guideContentIds:["details"],children:ce()?(0,x.jsx)(k,{}):re&&re.length>0?(0,x.jsxs)(l.Box,{sx:n?y.rightPanelContainer:_({},y.rightPanelContainer),children:[(0,x.jsxs)(l.Grid,{container:!0,sx:y.rightPanelBtnHolder,children:[(0,x.jsx)(l.Grid,{size:{xs:6},children:(0,x.jsxs)(l.Box,{style:{marginLeft:"1.375rem"},children:[g("details.featureDetailsTitle").replace("{count}","".concat(N+1)).replace("{total}","".concat(null==re?void 0:re.length)),(0,x.jsx)(l.IconButton,{sx:(0,r.A)({marginLeft:"1.25rem"},m.breakpoints.down("sm"),{display:"none"}),"aria-label":"clear-all-features",tooltip:"details.clearAllfeatures",tooltipPlacement:"top",onClick:function(){return j("all"),I("all"),void R(null==ne||null===(e=ne.features)||void 0===e?void 0:e[N]);var e},className:"buttonOutline",disabled:0===A.length,children:(0,x.jsx)(l.LayersClearOutlinedIcon,{})})]})}),(0,x.jsx)(l.Grid,{size:{xs:6},children:(0,x.jsxs)(l.Box,{sx:{textAlign:"right",marginRight:"1.625rem"},children:[(0,x.jsx)(l.IconButton,{"aria-label":"backward",tooltip:"details.previousFeatureBtn",tooltipPlacement:"top",onClick:function(){return oe(-1)},disabled:N<=0,className:"buttonOutline",children:(0,x.jsx)(l.ArrowBackIosOutlinedIcon,{})}),(0,x.jsx)(l.IconButton,{sx:{marginLeft:"1.25rem"},"aria-label":"forward",tooltip:"details.nextFeatureBtn",tooltipPlacement:"top",onClick:function(){return oe(1)},disabled:!(null!=ne&&ne.features)||N+1>=ne.features.length,className:"buttonOutline",children:(0,x.jsx)(l.ArrowForwardIosOutlinedIcon,{})})]})})]}),(0,x.jsx)(C,{features:null==ne?void 0:ne.features,currentFeatureIndex:N})]}):null})}},63744:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{detailsContainer:{background:e.palette.geoViewColor.bgColor.main,paddingBottom:"1rem"},detailsInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},detailsInstructionsBody:{fontSize:e.palette.geoViewFontSize.default},panelHeaders:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600"},rightPanelContainer:{color:e.palette.geoViewColor.textColor.main},rightPanelBtnHolder:{marginTop:"20px",paddingBottom:"9px",boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.dark[200])},featureInfoListContainer:{paddingLeft:"25px",paddingRight:"25px",paddingBottom:"25px",overflowY:"auto",overflowX:"hidden"},featureDetailListContainer:{overflowY:"auto",overflowX:"hidden"},selectFeatureCheckbox:{color:e.palette.geoViewColor.primary.main,"&.Mui-checked":{color:e.palette.geoViewColor.primary.main}},featureInfoItemValue:{marginRight:0,wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis"},boxContainerFeatureInfo:{wordWrap:"break-word",fontSize:e.palette.geoViewFontSize.default,lineHeight:"19px"},flexBoxAlignCenter:{display:"flex",flexDirection:"row",alignItems:"center"},featureDetailModal:{"& .MuiDialog-container":{"& .MuiPaper-root":{minWidth:"40rem"}}}}}},98068:(e,t,n)=>{"use strict";n.d(t,{P:()=>Mt});var r=n(42432),i=n(30538),o=n(43331),a=n(47001);const s="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",l="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",c=(e,t)=>{for(const n in t)e[n]=t[n];return e},u="numeric",d="ascii",h="alpha",p="asciinumeric",f="alphanumeric",g="domain",m="emoji",y="scheme",v="slashscheme",b="whitespace";function w(e,t){return e in t||(t[e]=[]),t[e]}function x(e,t,n){t[u]&&(t[p]=!0,t[f]=!0),t[d]&&(t[p]=!0,t[h]=!0),t[p]&&(t[f]=!0),t[h]&&(t[f]=!0),t[f]&&(t[g]=!0),t[m]&&(t[g]=!0);for(const r in t){const t=w(r,n);t.indexOf(e)<0&&t.push(e)}}function A(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}A.groups={},A.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n=0&&(n[r]=!0);return n}(a.t,r),n);x(o,e,r)}else n&&x(o,n,r);a.t=o}return i.j[e]=a,a}};const S=(e,t,n,r,i)=>e.ta(t,n,r,i),C=(e,t,n,r,i)=>e.tr(t,n,r,i),E=(e,t,n,r,i)=>e.ts(t,n,r,i),k=(e,t,n,r,i)=>e.tt(t,n,r,i),T="WORD",_="UWORD",O="LOCALHOST",P="TLD",I="UTLD",M="SCHEME",L="SLASH_SCHEME",R="NUM",j="WS",F="NL",D="OPENBRACE",N="CLOSEBRACE",B="OPENBRACKET",z="CLOSEBRACKET",V="OPENPAREN",$="CLOSEPAREN",G="OPENANGLEBRACKET",U="CLOSEANGLEBRACKET",W="FULLWIDTHLEFTPAREN",q="FULLWIDTHRIGHTPAREN",H="LEFTCORNERBRACKET",Y="RIGHTCORNERBRACKET",K="LEFTWHITECORNERBRACKET",X="RIGHTWHITECORNERBRACKET",Z="FULLWIDTHLESSTHAN",J="FULLWIDTHGREATERTHAN",Q="AMPERSAND",ee="APOSTROPHE",te="ASTERISK",ne="AT",re="BACKSLASH",ie="BACKTICK",oe="CARET",ae="COLON",se="COMMA",le="DOLLAR",ce="DOT",ue="EQUALS",de="EXCLAMATION",he="HYPHEN",pe="PERCENT",fe="PIPE",ge="PLUS",me="POUND",ye="QUERY",ve="QUOTE",be="SEMI",we="SLASH",xe="TILDE",Ae="UNDERSCORE",Se="EMOJI",Ce="SYM";var Ee=Object.freeze({__proto__:null,WORD:T,UWORD:_,LOCALHOST:O,TLD:P,UTLD:I,SCHEME:M,SLASH_SCHEME:L,NUM:R,WS:j,NL:F,OPENBRACE:D,CLOSEBRACE:N,OPENBRACKET:B,CLOSEBRACKET:z,OPENPAREN:V,CLOSEPAREN:$,OPENANGLEBRACKET:G,CLOSEANGLEBRACKET:U,FULLWIDTHLEFTPAREN:W,FULLWIDTHRIGHTPAREN:q,LEFTCORNERBRACKET:H,RIGHTCORNERBRACKET:Y,LEFTWHITECORNERBRACKET:K,RIGHTWHITECORNERBRACKET:X,FULLWIDTHLESSTHAN:Z,FULLWIDTHGREATERTHAN:J,AMPERSAND:Q,APOSTROPHE:ee,ASTERISK:te,AT:ne,BACKSLASH:re,BACKTICK:ie,CARET:oe,COLON:ae,COMMA:se,DOLLAR:le,DOT:ce,EQUALS:ue,EXCLAMATION:de,HYPHEN:he,PERCENT:pe,PIPE:fe,PLUS:ge,POUND:me,QUERY:ye,QUOTE:ve,SEMI:be,SLASH:we,TILDE:xe,UNDERSCORE:Ae,EMOJI:Se,SYM:Ce});const ke=/[a-z]/,Te=/\p{L}/u,_e=/\p{Emoji}/u,Oe=/\d/,Pe=/\s/;const Ie="\n",Me="️",Le="‍";let Re=null,je=null;function Fe(e,t,n,r,i){let o;const a=t.length;for(let n=0;n=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}const Ne={defaultProtocol:"http",events:null,format:ze,formatHref:ze,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Be(e,t){void 0===t&&(t=null);let n=c({},Ne);e&&(n=c(n,e instanceof Be?e.o:e));const r=n.ignoreTags,i=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let i=this.o[e];return i?("object"==typeof i?(i=n.t in i?i[n.t]:Ne[e],"function"==typeof i&&r&&(i=i(t,n))):"function"==typeof i&&r&&(i=i(t,n.t,n)),i):i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Ve(e,t){this.t="token",this.v=e,this.tk=t}function $e(e,t){class n extends Ve{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}Ve.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=Ne.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),d=e.getObj("attributes",n,t),h=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),d&&c(a,d),{tagName:i,attributes:a,content:o,eventListeners:h}}};const Ge=$e("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ue=$e("text"),We=$e("nl"),qe=$e("url",{isLink:!0,toHref(e){return void 0===e&&(e=Ne.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==O&&e[1].t===ae}});const He=e=>new A(e);function Ye(e,t,n){const r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}"undefined"!=typeof console&&console&&console.warn;const Ke={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Xe(){Ke.scanner=function(e){void 0===e&&(e=[]);const t={};A.groups=t;const n=new A;null==Re&&(Re=De(s)),null==je&&(je=De(l)),k(n,"'",ee),k(n,"{",D),k(n,"}",N),k(n,"[",B),k(n,"]",z),k(n,"(",V),k(n,")",$),k(n,"<",G),k(n,">",U),k(n,"(",W),k(n,")",q),k(n,"「",H),k(n,"」",Y),k(n,"『",K),k(n,"』",X),k(n,"<",Z),k(n,">",J),k(n,"&",Q),k(n,"*",te),k(n,"@",ne),k(n,"`",ie),k(n,"^",oe),k(n,":",ae),k(n,",",se),k(n,"$",le),k(n,".",ce),k(n,"=",ue),k(n,"!",de),k(n,"-",he),k(n,"%",pe),k(n,"|",fe),k(n,"+",ge),k(n,"#",me),k(n,"?",ye),k(n,'"',ve),k(n,"/",we),k(n,";",be),k(n,"~",xe),k(n,"_",Ae),k(n,"\\",re);const r=C(n,Oe,R,{[u]:!0});C(r,Oe,r);const i=C(n,ke,T,{[d]:!0});C(i,ke,i);const o=C(n,Te,_,{[h]:!0});C(o,ke),C(o,Te,o);const a=C(n,Pe,j,{[b]:!0});k(n,Ie,F,{[b]:!0}),k(a,Ie),C(a,Pe,a);const f=C(n,_e,Se,{[m]:!0});C(f,_e,f),k(f,Me,f);const w=k(f,Le);C(w,_e,f);const S=[[ke,i]],Ne=[[ke,null],[Te,o]];for(let e=0;ee[0]>t[0]?1:-1));for(let t=0;t=0?i[g]=!0:ke.test(r)?Oe.test(r)?i[p]=!0:i[d]=!0:i[u]=!0,E(n,r,r,i)}return E(n,"localhost",O,{ascii:!0}),n.jd=new A(Ce),{start:n,tokens:c({groups:t},Ee)}}(Ke.customSchemes);for(let e=0;e=0&&h++,i++,u++;if(h<0)i-=u,i0&&(o.push(Ye(Ue,t,a)),a=[]),i-=h,u-=h;const e=d.t,r=n.slice(i-u,i);o.push(Ye(e,t,r))}}return a.length>0&&o.push(Ye(Ue,t,a)),o}(Ke.parser.start,e,function(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),r=n.length,i=[];let o=0,a=0;for(;a=0&&(d+=n[a].length,h++),c+=n[a].length,o+=n[a].length,a++;o-=d,a-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}(Ke.scanner.start,e))}var Je={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},Qe=/^#[xX]([A-Fa-f0-9]+)$/,et=/^#([0-9]+)$/,tt=/^([A-Za-z0-9]+)$/,nt=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(Qe);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(et))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(tt))?this.named[t[1]]||"&"+t[1]+";":void 0}},e}(),rt=/[\t\n\f ]/,it=/[A-Za-z]/,ot=/\r\n?/g;function at(e){return rt.test(e)}function st(e){return it.test(e)}var lt=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||st(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){at(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();at(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();at(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!at(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();at(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();at(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();at(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();at(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();at(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();at(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();at(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();at(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();at(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();at(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();at(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();at(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||st(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(ot,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),ct=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new lt(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t=0))continue;let a=r.length;vt(i,n,++e,r),e+=r.length-a-1}else if(t.type!==pt)r.push(t);else{const e=yt(t.chars,o);r.push.apply(r,e)}}for(let e=0;e0&&(e+=" "+At(t.attributes).join(" ")),t.selfClosing&&(e+=" /"),e+=">",i.push(e);break}case ht:i.push(``);break;case pt:i.push(wt(t.chars));break;case ft:i.push(`\x3c!--${wt(t.chars)}--\x3e`);break;case gt:{let e=`",i.push(e);break}}}return i.join("")}function yt(e,t){const n=Ze(e),r=[];for(let e=0;e0;){let o=t[n];o.type===dt&&o.tagName.toUpperCase()===e?i++:o.type===ht&&o.tagName.toUpperCase()===e&&i--,r.push(o),n++}return r}function bt(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${function(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${xt(r)}"`)}return t.join(" ")}(n)}>${wt(r)}`}function wt(e){return e.replace(//g,">")}function xt(e){return e.replace(/"/g,""")}function At(e){const t=[];for(let n=0;n50?"".concat(e.slice(0,40),"…").concat(e.slice(e.length-10,e.length)):e}},ignoreTags:["script","style","img"],target:"_blank"}}),[n]);function h(e){function t(t,n,r){return"string"==typeof t&&(0,Ct.isImage)(t)?(0,Ot.jsx)(St.CardMedia,{sx:It(It({},s.featureInfoItemValue),{},{cursor:"pointer"}),alt:"".concat(n," ").concat(r),src:t,tabIndex:0,click:function(){return c(e.value,e.alias,r)},keyDown:function(t){"Enter"===t.key&&c(e.value,e.alias,r)}},(0,Ct.generateId)()):(0,Ot.jsx)(St.Box,{sx:s.featureInfoItemValue,children:(0,Ot.jsx)(Et.S,{htmlContent:(0,Ct.sanitizeHtmlContent)(mt(t,d))})},(0,Ct.generateId)())}var n=e.alias,r=e.value,i=Array.isArray(r)?String(r.map(Ct.stringify)):String((0,Ct.stringify)(r));return i=i.toString().split(";"),Array.isArray(i)?i.map((function(e,r){return t(e,n,r)})):t(i,n,0)}return(0,Ot.jsxs)(St.Box,{sx:s.boxContainerFeatureInfo,children:[t.map((function(e,t){return(0,Ot.jsxs)(St.Grid,{container:!0,spacing:5,sx:{backgroundColor:t%2>0?r.palette.geoViewColor.bgColor.darken(.1):"",color:t%2>0?r.palette.geoViewColor.bgColor.darken(.9):"",marginBottom:"1.25rem"},children:[(0,Ot.jsx)(St.Grid,{size:{xs:"auto"},sx:{fontWeight:"bold",width:"80% !important"},children:e.alias}),(0,Ot.jsx)(St.Grid,{sx:{ml:"auto",wordWrap:"break-word",pr:"0.3125rem"},children:h(e)})]},"".concat(e.alias," ").concat(t.toString()))})),(0,Ot.jsx)(u,{})]})}},72845:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(33828),i=n(73854),o=n(17755),a=n(97282);function s(e){var t=e.className,n=void 0===t?"":t,s=e.sxDetails,l=(0,o.Jh)(),c=(0,i.A6)().enableFocusTrap;return(0,a.jsx)(r.IconButton,{id:"".concat(l,"-export-btn"),tooltip:"appbar.export",tooltipPlacement:"bottom-end",onClick:function(){return c({activeElementId:"export",callbackElementId:"".concat(l,"-export-btn")})},sx:s,className:n,"aria-label":"appbar.export",children:(0,a.jsx)(r.DownloadIcon,{})})}},59480:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=n(55907),i=n(30538),o=n(43331),a=n(47001);const s=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)})();function l(e){const t=[];for(let n=0,r=e.length;n{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e}))}async function p(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),async function(e){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}(i)}const f=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||f(n,t))};function g(e,t,n){const r=`.${e}:${t}`,i=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return l(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}function m(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const o=s();try{t.className=`${t.className} ${o}`}catch(e){return}const a=document.createElement("style");a.appendChild(g(o,n,r)),t.appendChild(a)}const y="application/font-woff",v="image/jpeg",b={woff:y,woff2:y,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:v,jpeg:v,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function w(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return b[t]||""}function x(e){return-1!==e.search(/^(data:)/)}function A(e,t){return`data:${t};base64,${e}`}async function S(e,t,n){const r=await fetch(e,t);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise(((e,t)=>{const o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(n({res:r,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)}))}const C={};async function E(e,t,n){const r=function(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}(e,t,n.includeQueryParams);if(null!=C[r])return C[r];let i;n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const r=await S(e,n.fetchRequestInit,(({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(n))));i=A(r,t)}catch(t){i=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;t&&(r="string"==typeof t?t:t.message),r&&console.warn(r)}return C[r]=i,i}async function k(e,t){return f(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):h(t)}(e):f(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),h(t.toDataURL())}const n=e.poster,r=w(n);return h(await E(n,r,t))}(e,t):f(e,HTMLIFrameElement)?async function(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await O(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}(e):e.cloneNode(!1)}const T=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();function _(e,t){return f(t,Element)&&(function(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):l(r).forEach((i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){const e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}f(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))}))}(e,t),function(e,t){m(e,t,":before"),m(e,t,":after")}(e,t),function(e,t){f(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),f(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(f(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find((t=>e.value===t.getAttribute("value")));r&&r.setAttribute("selected","")}}(e,t)),t}async function O(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>k(e,t))).then((n=>async function(e,t,n){var r,i;let o=[];return o=T(e)&&e.assignedNodes?l(e.assignedNodes()):f(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?l(e.contentDocument.body.childNodes):l((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===o.length||f(e,HTMLVideoElement)||await o.reduce(((e,r)=>e.then((()=>O(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve()),t}(e,n,t))).then((t=>_(e,t))).then((e=>async function(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;const r={};for(let i=0;i{for(;;){const[n,,r]=I.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n),i=function(e){const t=[];return e.replace(P,((e,n,r)=>(t.push(r),e))),t.filter((e=>!x(e)))}(r);return i.reduce(((e,r)=>e.then((e=>L(e,r,t,n)))),Promise.resolve(r))}async function F(e,t,n){var r;const i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){const r=await j(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function D(e,t){f(e,Element)&&(await async function(e,t){await F("background",e,t)||await F("background-image",e,t),await F("mask",e,t)||await F("mask-image",e,t)}(e,t),await async function(e,t){const n=f(e,HTMLImageElement);if((!n||x(e.src))&&(!f(e,SVGImageElement)||x(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await E(r,w(r),t);await new Promise(((t,r)=>{e.onload=t,e.onerror=r;const o=e;o.decode&&(o.decode=t),"lazy"===o.loading&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i}))}(e,t),await async function(e,t){const n=l(e.childNodes).map((e=>D(e,t)));await Promise.all(n).then((()=>e))}(e,t))}const N={};async function B(e){let t=N[e];if(null!=t)return t;const n=await fetch(e);return t={url:e,cssText:await n.text()},N[e]=t,t}async function z(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map((async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),S(o,t.fetchRequestInit,(({result:e})=>(n=n.replace(i,`url(${e})`),[i,e])))}));return Promise.all(i).then((()=>n))}function V(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(e=o.exec(n),null===e)break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function $(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const n=l(e.ownerDocument.styleSheets),r=await async function(e,t){const n=[],r=[];return e.forEach((n=>{if("cssRules"in n)try{l(n.cssRules||[]).forEach(((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1;const a=B(e.href).then((e=>z(e,t))).then((e=>V(e).forEach((e=>{try{n.insertRule(e,e.startsWith("@import")?o+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})))).catch((e=>{console.error("Error loading remote css",e.toString())}));r.push(a)}}))}catch(i){const o=e.find((e=>null==e.href))||document.styleSheets[0];null!=n.href&&r.push(B(n.href).then((e=>z(e,t))).then((e=>V(e).forEach((e=>{o.insertRule(e,n.cssRules.length)})))).catch((e=>{console.error("Error loading remote stylesheet",e)}))),console.error("Error inlining remote css file",i)}})),Promise.all(r).then((()=>(e.forEach((e=>{if("cssRules"in e)try{l(e.cssRules||[]).forEach((e=>{n.push(e)}))}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}})),n)))}(n,t);return function(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>R(e.style.getPropertyValue("src"))))}(r)}async function G(e,t){const n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await async function(e,t){const n=await $(e,t);return(await Promise.all(n.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return j(e.cssText,n,t)})))).join("\n")}(e,t);if(n){const t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function U(e,t={}){const{width:n,height:r}=u(e,t),i=await O(e,t,!0);await G(i,t),await D(i,t),function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]}))}(i,t);return await p(i,n,r)}async function W(e,t={}){const{width:n,height:r}=u(e,t),i=await U(e,t),o=await h(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),c=t.canvasWidth||n,p=t.canvasHeight||r;return a.width=c*l,a.height=p*l,t.skipAutoScale||function(e){(e.width>d||e.height>d)&&(e.width>d&&e.height>d?e.width>e.height?(e.height*=d/e.width,e.width=d):(e.width*=d/e.height,e.height=d):e.width>d?(e.height*=d/e.width,e.width=d):(e.width*=d/e.height,e.height=d))}(a),a.style.width=`${c}`,a.style.height=`${p}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function q(e,t={}){return(await W(e,t)).toDataURL()}var H=n(33828),Y=n(76200),K=n(25079),X=n(73854),Z=n(17755),J=n(15205),Q=n(31680),ee=n(74816),te=n(25969),ne=n(6883),re=n(97282);function ie(){var e=(0,o.useTranslation)().t,t=(0,Z.Jh)(),n=(0,J.sd)(),s=n.getElementsByClassName("ol-viewport")[0],l=n.querySelector('[id^="'.concat(t,'-footerBar-legendContainer"]')),c=n.querySelector('[id^="'.concat(t,'-appBar-legendContainer"]')),u="".concat(t,"AppbarPanelButtonLegend"),d=(0,a.A)(),h=(0,i.useState)(!0),p=(0,r.A)(h,2),f=p[0],g=p[1],m=(0,i.useState)(!0),y=(0,r.A)(m,2),v=y[0],b=y[1],w=(0,i.useState)(!1),x=(0,r.A)(w,2),A=x[0],S=x[1],C=(0,i.useState)(""),E=(0,r.A)(C,2),k=E[0],T=E[1],_=(0,i.useRef)(null),O=(0,i.useRef)(null),P=(0,i.useRef)(null),I=(0,i.useRef)(null),M=(0,i.useRef)(null),L=(0,i.useRef)(null),R=(0,ee.Mk)(),j=(0,ee.gx)(),F=(0,ee.re)(),D=(0,te.A)().rotationAngle,N=(0,X.A6)(),B=N.disableFocusTrap,z=N.setActiveAppBarTab,V=(0,X.NP)().activeElementId,$=(0,X.bd)().isOpen,G=function(e){var t=window.getComputedStyle(e),n=Number(t.getPropertyValue("padding-left").match(/\d+/)[0]),r=Number(t.getPropertyValue("padding-left").match(/\d+/)[0]);return e.clientWidth-n-r};return(0,i.useEffect)((function(){var e;if(ne.vF.logTraceUseEffect("Export Modal - mount"),"export"===V&&O.current&&P.current){var n=O.current,r=P.current;c&&!l&&z(u,"legend",!0,!1),e=setTimeout((function(){g(!0),q(s,{fontEmbedCSS:""}).then((function(e){g(!1);var t=new Image;t.src=e,t.style.maxWidth="".concat(G(r),"px"),n.appendChild(t)})).catch((function(e){ne.vF.logError("Error occured while converting map to image",e)}));var e=null!=l?l:c;if(e&&I.current){var i;e.removeAttribute("style"),b(!0);var o=document.getElementById("shell-".concat(t,"-legend")),a=null!==(i=null==o?void 0:o.hasAttribute("hidden"))&&void 0!==i?i:null;a&&o.removeAttribute("hidden"),q(e,{fontEmbedCSS:""}).then((function(e){var t;b(!1);var n=new Image;n.src=e,n.style.maxWidth="".concat(G(r),"px"),null===(t=I.current)||void 0===t||t.appendChild(n),a&&(o.hidden=!0)})).catch((function(e){ne.vF.logError("Error occured while converting legend to image",e)}))}else b(!1)}),500)}return function(){e&&clearTimeout(e),g(!0),b(!0)}}),[V,$]),(0,re.jsxs)(H.Dialog,{open:"export"===V,onClose:B,fullWidth:!0,maxWidth:"xl",disablePortal:!0,children:[(0,re.jsx)(H.DialogTitle,{children:e("exportModal.title")}),(0,re.jsx)(H.DialogContent,{dividers:!0,ref:P,children:(0,re.jsxs)(H.Box,{ref:_,textAlign:"center",children:[(0,re.jsx)(H.Box,{ref:M,children:(0,re.jsx)(H.TextField,{label:e("exportModal.exportTitle"),variant:"standard",value:k,onChange:function(e){return T(e.target.value)},sx:{paddingBottom:"1rem",minWidth:300}})}),(0,re.jsx)(H.Box,{ref:L}),(0,re.jsx)(H.Box,{ref:O,children:f&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:d.palette.grey[500]}})}),(0,re.jsxs)(H.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",sx:{padding:"1rem",paddingBottom:0},children:[(0,re.jsx)(H.Box,{children:!!j.labelGraphic.length&&(0,re.jsxs)(H.Box,{children:[j.labelGraphic," ",e("exportModal.approx")," ",(0,re.jsx)("hr",{})]})}),R&&(0,re.jsx)(H.Box,{textAlign:"right",style:{transform:"rotate(".concat(D.angle,"deg)")},children:(0,re.jsx)(Q.e,{width:44,height:44})})]}),(0,re.jsx)(H.Box,{ref:I,children:v&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:d.palette.grey[500]}})}),(0,re.jsx)(H.Box,{textAlign:"center",children:F.map((function(e){return(0,re.jsx)(H.Box,{component:"p",sx:{margin:0},children:e},e)}))}),(0,re.jsx)(H.Box,{textAlign:"center",sx:{marginBottom:"1rem"},children:K.P.formatDate(new Date,"YYYY-MM-DD, hh:mm:ss A")})]})}),(0,re.jsxs)(H.DialogActions,{children:[(0,re.jsx)(H.Button,{onClick:function(){z(u,"legend",!1,!1),B()},type:"text",size:"small",role:"button",tabIndex:-1,autoFocus:!0,"aria-hidden":"true",sx:{width:"inherit",fontSize:d.palette.geoViewFontSize.sm,color:d.palette.common.white,padding:"0.7rem 1rem",backgroundColor:d.palette.geoViewColor.primary.main,"&:hover":{backgroundColor:d.palette.geoViewColor.primary.dark[200]}},children:e("exportModal.cancelBtn")}),(0,re.jsx)(H.LoadingButton,{loading:A,variant:"contained",onClick:function(){_.current&&M.current&&L.current&&(M.current.style.display="none",L.current.style.padding="1rem",L.current.innerHTML=k,S(!0),q(_.current,{backgroundColor:d.palette.common.white,fontEmbedCSS:""}).then((function(e){S(!1),(0,Y.exportPNG)(e,t),z(u,"legend",!1,!1),B()})).catch((function(e){ne.vF.logError("Error while exporting the image",e)})))},size:"small",sx:{fontSize:d.palette.geoViewFontSize.sm,padding:"0.7rem 1rem",backgroundColor:d.palette.geoViewColor.primary.main,height:"47px"},disabled:v||f,children:e("exportModal.exportBtn")})]})]})}},51801:(e,t,n)=>{"use strict";n.d(t,{x:()=>m});var r=n(13718),i=n(47280),o=n(42432),a=n(7396),s=n(2358),l=n(76200);function c(e,t,n){u(e,t),t.set(e,n)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(h(e,t))}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakSet,m=function(){return(0,i.A)((function e(t){var n,i;(0,r.A)(this,e),u(n=this,i=g),i.add(n),(0,o.A)(this,"mapId",void 0),(0,o.A)(this,"tabs",[]),c(this,p,[]),c(this,f,[]),this.mapId=t}),[{key:"onFooterTabCreated",value:function(e){s.A.onEvent(d(p,this),e)}},{key:"offFooterTabCreated",value:function(e){s.A.offEvent(d(p,this),e)}},{key:"onFooterTabRemoved",value:function(e){s.A.onEvent(d(f,this),e)}},{key:"offFooterTabRemoved",value:function(e){s.A.offEvent(d(f,this),e)}},{key:"createTab",value:function(e){e&&(this.tabs.find((function(t){return t.id===e.id}))||("string"==typeof e.content&&(e.content=(0,l.sanitizeHtmlContent)(e.content)),this.tabs.push(e),h(g,this,y).call(this,{tab:e})))}},{key:"removeTab",value:function(e){this.tabs.find((function(t){return t.id===e}))&&(this.tabs=this.tabs.filter((function(t){return t.id!==e})),h(g,this,v).call(this,{tabid:e}))}},{key:"selectTab",value:function(e){a.d.setActiveFooterBarTab(this.mapId,e)}}])}();function y(e){s.A.emitEvent(this,d(p,this),e)}function v(e){s.A.emitEvent(this,d(f,this),e)}},1102:(e,t,n)=>{"use strict";n.d(t,{N:()=>F});var r=n(42432),i=n(55907),o=n(76390),a=n.n(o),s=n(30538),l=n(47001),c=n(33828),u=n(23220),d=function(e){return{tabsContainer:{position:"relative",background:e.palette.geoViewColor.bgColor.dark[50],boxShadow:2,width:"100%",transition:"height 0.2s ease-out",height:"55px","&.MuiGrid-container":{background:e.palette.geoViewColor.bgColor.dark[50]},"& .MuiTab-root":{minHeight:"56px"},"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root.Mui-selected":{color:"".concat(e.palette.geoViewColor.white," !important"),background:e.palette.geoViewColor.primary.main,borderRadius:"0.5rem",margin:"0.5rem",minHeight:0}}}},h=n(83605),p=n(17755),f=function(){return{slider:{height:300,padding:"1.5rem 0.5rem 1.5rem 1rem","& .MuiSlider-markLabel":{left:"33px","&:nth-of-type(1)":{bottom:"3%"},"&:last-of-type":{bottom:"98%",left:"30px"}}}}},g=n(73854),m=n(6883),y=n(97282);function v(){var e=f(),t=(0,p.Jh)(),n=document.getElementById("shell-".concat(t)),r=(0,g.ex)(),o=(0,g.r4)(),a=(0,g.A6)().setFooterPanelResizeValue,l=(0,s.useState)(null),u=(0,i.A)(l,2),d=u[0],v=u[1],b=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("RESIZE-FOOTER-PANEL - marks",o),o.map((function(e){return{value:e,label:"".concat(e,"%")}}))}),[o]),w=function(){v(null)},x=Boolean(d);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.IconButton,{onClick:function(e){return function(e){e.preventDefault(),v(e.currentTarget)}(e)},tooltip:"footerBar.resizeTooltip",children:(0,y.jsx)(c.HeightIcon,{})}),(0,y.jsx)(c.Popover,{open:x,anchorEl:d,onClose:w,container:n,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:(0,y.jsx)(c.Box,{sx:e.slider,children:(0,y.jsx)(h.Ay,{sx:{'& input[type="range"]':{WebkitAppearance:"slider-vertical"}},orientation:"vertical",value:r,step:null,valueLabelDisplay:"off",marks:b,onChange:function(e,t){a(t),w()},min:o[0],max:o[o.length-1]})})})]})}var b=n(15205),w=n(44837),x=n(23853),A=n(32556),S=n(43373),C=n(43599),E=n(92940),k=n(11288),T=n(60439),_=n(75545),O=n(58229),P=n(87993),I=n(23591),M=n(27991),L=n(24258);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0?(0,y.jsx)(c.Box,{ref:z,sx:R.tabsContainer,className:"tabsContainer",id:"".concat(h,"-tabsContainer"),children:(0,y.jsx)(c.Tabs,{shellContainer:Y,activeTrap:q,isCollapsed:H,onToggleCollapse:function(){ee(!H)},onSelectedTabChanged:function(e){Z(e.id),ee(!1)},onOpenKeyboard:J,onCloseKeyboard:Q,selectedTab:le.findIndex((function(e){return e.id===W})),tabProps:{disableRipple:!0},tabs:le,TabContentVisibilty:H?"hidden":"visible",containerType:L.vB.FOOTER_BAR,rightButtons:(0,y.jsxs)(y.Fragment,{children:[!H&&V&&(0,y.jsx)(v,{}),(0,y.jsx)(c.IconButton,{onClick:he,tooltip:N?"footerBar.focusToMap":"footerBar.focusToFooter",className:"buttonFilled",disabled:H||V||U[U.length-1]===G,children:N?(0,y.jsx)(c.MoveUpRoundedIcon,{}):(0,y.jsx)(c.MoveDownRoundedIcon,{})})]})})}):null}},24255:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(30538),i=n(33828),o=n(12e3),a=n(74816),s=n(59293),l=n(6883),c=n(97282);function u(e){var t=e.geoListItems,n=e.searchValue,u=(0,a.U6)().zoomToGeoLocatorLocation,d=(0,r.useCallback)((function(e){var t=e.name,n=e.province,r=e.category,i=t;return r&&"null"!==r&&(i+=", ".concat(r)),n&&"null"!==n&&(i+=", ".concat(n)),i}),[]),h=(0,r.useCallback)((function(e,t,n){var r=e.toUpperCase(),i=t.toUpperCase(),o=r.indexOf(i),a=i.length;return i&&-1!==o?(0,c.jsx)(s.S,{extraOptions:{component:"span"},itemOptions:{component:"span"},htmlContent:"".concat(e.slice(0,o),"").concat(e.slice(o,o+a),"").concat(e.slice(o+a)).concat(n)}):e}),[]);return(0,c.jsx)(i.Box,{children:t.map((function(e,t){return(0,c.jsx)(i.Tooltip,{title:d(e),placement:"right",children:(0,c.jsx)(i.ListItem,{component:"div",disablePadding:!0,children:(0,c.jsx)(i.ListItemButton,{onClick:function(){return t=[e.lng,e.lat],n=e.bbox,void u(t,n).catch((function(e){l.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in data-panel.GeoList.handleZoomToGeoLocator",e)}));var t,n},children:(0,c.jsxs)(i.Grid,{container:!0,children:[(0,c.jsx)(i.Grid,{size:{xs:12,sm:8},children:(0,c.jsx)(i.Typography,{sx:o.aP.listStyle,children:h(e.name,n,e.province&&"null"!==e.province?", ".concat(e.province):"")})}),(0,c.jsx)(i.Grid,{size:{xs:12,sm:4},sx:{textAlign:"right"},children:!!e.category&&"null"!==e.category&&(0,c.jsx)(i.Typography,{component:"p",sx:o.aP.main,children:(0,c.jsxs)(i.Typography,{component:"span",children:[" ",e.category]})})})]})})})},"".concat(e.name,"-").concat(e.lat,"-").concat(t.toString()))}))})}},12e3:(e,t,n)=>{"use strict";n.d(t,{K9:()=>o,aP:()=>a,cm:()=>s});var r=n(48678),i=n(80769),o={root:{position:"absolute",top:12,left:80,maxWidth:350,width:350},geolocator:{position:"relative",display:"flex",zIndex:1100,"& form":{display:"flex",width:"100%",paddingLeft:5},"& .MuiPaper-root":{backgroundColor:"background.default",color:"text.primary","& .MuiToolbar-root":{justifyContent:"space-between"}}},progressBar:{position:"relative",zIndex:1100,"& span":{width:"100%"}},filter:{display:"flex",flexDirection:"row",alignItems:"end",padding:6,paddingTop:2,"& .MuiInputLabel-formControl":{fontSize:function(e){return e.palette.geoViewFontSize.default},marginTop:0},"& .MuiSelect-select":{padding:"0px 12px 4px 0px !important"}},searchResult:{position:"relative",display:"flex",flexDirection:"column",zIndex:1100,marginTop:6},filterListError:{listStyleType:"disc",listStylePosition:"inside","& li":{display:"list-item",paddingLeft:12,"& .MuiListItemText-root":{display:"inline-flex",marginLeft:"-8px"}}}},a={listStyle:{fontSize:function(e){return e.palette.geoViewFontSize.sm},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},main:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& span":{fontSize:function(e){return e.palette.geoViewFontSize.xs},":first-of-type":{fontSize:function(e){return e.palette.geoViewFontSize.sm}}}}},s=(0,r.Ay)(i.A)((function(e){var t=e.theme;return{color:"inherit",width:"100%",fontSize:t.palette.geoViewFontSize.default,"& .MuiInputBase-input":{transition:t.transitions.create("width"),width:"100%"}}}))},43798:(e,t,n)=>{"use strict";n.d(t,{u:()=>k});var r=n(96880),i=n(55907),o=n(74813),a=n.n(o),s=n(30538),l=n(43331),c=n(44481),u=n.n(c),d=n(47001),h=n(33828),p=n(12e3),f=n(24258),g=n(73854),m=n(15205),y=n(29067),v=n(24255),b=n(74816),w=n(6883),x=n(97282);function A(e){var t=e.geoLocationData,n=e.searchValue,r=e.error,o=(0,l.useTranslation)().t,a=(0,s.useState)(""),c=(0,i.A)(a,2),u=c[0],f=c[1],g=(0,s.useState)(""),m=(0,i.A)(g,2),A=m[0],S=m[1],C=(0,s.useState)(t),E=(0,i.A)(C,2),k=E[0],T=E[1],_=(0,b.ht)(),O=(0,d.A)(),P=(0,s.useMemo)((function(){w.vF.logTraceUseMemo("GEOLOCATOR-RESULT - provinces",t);var e=t.reduce((function(e,t){return t.province&&!e.includes(t.province)&&e.push(t.province),e}),[]).sort();return[""].concat((0,y.A)(new Set(e))).map((function(e){return{type:"item",item:{value:e.length?e:"",children:e.length?e:o("geolocator.noFilter")}}}))}),[t]),I=(0,s.useMemo)((function(){w.vF.logTraceUseMemo("GEOLOCATOR-RESULT - categories",t);var e=t.reduce((function(e,t){return t.category&&e.push(t.category),e}),[]).sort();return[""].concat((0,y.A)(new Set(e))).map((function(e){return{type:"item",item:{value:e.length?e:"",children:e.length?e:o("geolocator.noFilter")}}}))}),[t]),M=(0,s.useMemo)((function(){return w.vF.logTraceUseMemo("GEOLOCATOR-RESULT - memoFilterData",t,u,A),t.filter((function(e){var t=!0;return u.length&&!A.length?t=e.province.toLowerCase()===u.toLowerCase():u.length&&A.length?t=e.province.toLowerCase()===u.toLowerCase()&&e.category.toLowerCase()===A.toLowerCase():!u.length&&A.length&&(t=e.category.toLowerCase()===A.toLowerCase()),t}))}),[A,t,u]);return(0,s.useEffect)((function(){w.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData",t),T(t)}),[t]),(0,s.useEffect)((function(){w.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData province category",M),T(M)}),[M]),(0,s.useEffect)((function(){w.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData reset",t),t.length||(f(""),S(""))}),[t]),(0,x.jsxs)(h.Paper,{component:"div",elevation:4,square:!0,sx:{width:350},children:[!r&&(0,x.jsxs)(h.Box,{sx:p.K9.filter,children:[(0,x.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,x.jsx)(h.Select,{labelId:"provinceGeolocatorFiltersLabel",formControlProps:{variant:"standard",size:"small"},id:"provinceGeolocatorFilters",fullWidth:!0,value:null!=u?u:"",onChange:function(e){return f(e.target.value)},label:o("geolocator.province"),inputLabel:{id:"geolocationProvinceFilter"},menuItems:P,disabled:!t.length,variant:"standard"})}),(0,x.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,x.jsx)(h.Select,{labelId:"categoryGeolocatorFiltersLabel",id:"typeGeolocatorFilters",formControlProps:{variant:"standard",size:"small"},value:null!=A?A:"",fullWidth:!0,onChange:function(e){return S(e.target.value)},label:o("geolocator.category"),inputLabel:{id:"geolocationCategoryFilter"},menuItems:I,disabled:!t.length,variant:"standard"})}),(0,x.jsx)(h.Box,{children:(0,x.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",tooltip:"geolocator.clearFilters",onClick:function(){(u||A)&&(f(""),S(""),T(t))},disabled:!t.length,children:(0,x.jsx)(h.FilterAltOffIcon,{fontSize:O.palette.geoViewFontSize.sm})})})]}),(0,x.jsx)(h.Divider,{}),(0,x.jsxs)(h.Box,{sx:{maxHeight:_[1]-160,overflowY:"auto"},children:[!!k.length&&(0,x.jsx)(v.A,{geoListItems:k,searchValue:n}),(!k.length||r)&&(0,x.jsxs)(h.Box,{sx:{p:10},children:[(0,x.jsxs)(h.Typography,{component:"p",sx:{fontSize:O.palette.geoViewFontSize.md},children:[o("geolocator.errorMessage")," ",(0,x.jsx)("b",{children:n})]}),!(!u.length&&!A.length)&&(0,x.jsxs)(h.List,{sx:p.K9.filterListError,children:[!!u.length&&(0,x.jsx)(h.ListItem,{children:(0,x.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.province"),": ").concat(u)})}),!!A.length&&(0,x.jsx)(h.ListItem,{children:(0,x.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.category"),": ").concat(A)})})]})]})]})]})}var S=n(43852),C=n(1732),E=n(17755);function k(){w.vF.logTraceRender("components/geolocator/geolocator");var e=(0,l.useTranslation)().t,t=(0,d.A)(),n=(0,E.Jh)(),o=(0,s.useState)(),c=(0,i.A)(o,2),y=c[0],v=c[1],b=(0,s.useState)(null),k=(0,i.A)(b,2),T=k[0],_=k[1],O=(0,s.useState)(!1),P=(0,i.A)(O,2),I=P[0],M=P[1],L=(0,s.useState)(""),R=(0,i.A)(L,2),j=R[0],F=R[1],D=(0,m.t)(),N=(0,m._V)(),B=(0,g.A6)().setActiveAppBarTab,z=(0,g.bd)(),V=z.tabGroup,$=z.isOpen,G=(0,s.useRef)("".concat(N,"&lang=").concat(D)),U=(0,s.useRef)(null),W=(0,s.useRef)(),q=function(e){if(!/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/.test(e))return null;var t=e.split(/[\s|,|;|]/).filter((function(e){return!Number.isNaN(e)&&""!==e})).map((function(e){return parseFloat(e)})),n=.015,r=[t[1]-n,t[0]-n,t[1]+n,t[0]+n];return{key:"coordinates",name:"".concat(t[0],",").concat(t[1]),lat:t[0],lng:t[1],bbox:r,province:"",category:"Latitude/Longitude"}},H=function(){var e=(0,r.A)(a().mark((function e(t){var n,r,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,M(!0),U.current&&(U.current.abort(),clearTimeout(W.current)),n=new AbortController,U.current=n,e.next=7,fetch("".concat(G.current,"&q=").concat(encodeURIComponent("".concat(t,"*"))),{signal:U.current.signal});case 7:if((r=e.sent).ok){e.next=10;break}throw new Error("Error");case 10:return e.next=12,r.json();case 12:i=e.sent,(o=q(t))&&i.unshift(o),v(i),_(null),M(!1),clearTimeout(null==W?void 0:W.current),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),_(e.t0);case 24:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(t){return e.apply(this,arguments)}}(),Y=function(){M(!1),v([]),clearTimeout(W.current)},K=(0,s.useCallback)((function(){F(""),v(void 0),B("".concat(n,"AppbarPanelButtonGeolocator"),S.NF.GEOLOCATOR,!1,!1)}),[B]),X=u()((function(e){H(e).catch((function(e){w.vF.logPromiseFailed("getGeolocations in deRequest in Geolocator",e)}))}),f.Xl),Z=(0,s.useCallback)((function(e){return X(e)}),[]),J=(0,s.useCallback)((function(){j.length>=3&&H(j).catch((function(e){w.vF.logPromiseFailed("getGeolocations in Geolocator",e)}))}),[j]);return(0,s.useEffect)((function(){return function(){U.current&&(U.current.abort(),clearTimeout(W.current))}}),[]),(0,s.useEffect)((function(){return I&&(W.current=setTimeout((function(){Y(),_(new Error("No result found."))}),15e3)),function(){clearTimeout(W.current)}}),[I]),(0,x.jsx)(C.Pe,{open:V===S.NF.GEOLOCATOR&&$,id:"geolocator-focus-trap",children:(0,x.jsxs)(h.Box,{sx:p.K9.root,visibility:V===S.NF.GEOLOCATOR&&$?"visible":"hidden",id:"geolocator-search",tabIndex:V===S.NF.GEOLOCATOR&&$?0:-1,children:[(0,x.jsx)(h.Box,{sx:p.K9.geolocator,children:(0,x.jsx)(h.AppBarUI,{position:"static",children:(0,x.jsx)(h.Toolbar,{variant:"dense",children:(0,x.jsxs)("form",{onSubmit:function(e){e.preventDefault(),I||J()},children:[(0,x.jsx)(p.cm,{placeholder:e("geolocator.search"),autoFocus:!0,onChange:function(e){var t=e.target.value;F(t),t.length>=3&&Z(t),(!t.length||t.length<3)&&(U.current&&U.current.abort(),Y(),X.cancel(),v(void 0))},value:j}),(0,x.jsxs)(h.Box,{sx:{display:"flex",marginLeft:"auto",alignItems:"center"},children:[(0,x.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:4},disabled:!j.length,onClick:J,children:(0,x.jsx)(h.SearchIcon,{fontSize:t.palette.geoViewFontSize.sm})}),(0,x.jsx)(h.Divider,{orientation:"vertical",variant:"middle",flexItem:!0}),(0,x.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:2,ml:4},onClick:K,children:(0,x.jsx)(h.CloseIcon,{fontSize:t.palette.geoViewFontSize.sm})})]})]})})})}),I&&(0,x.jsx)(h.Box,{sx:p.K9.progressBar,children:(0,x.jsx)(h.ProgressBar,{})}),!!y&&(null==j?void 0:j.length)>=3&&(0,x.jsx)(h.Box,{sx:p.K9.searchResult,children:(0,x.jsx)(A,{geoLocationData:y,searchValue:j,error:T})})]})})}},23591:(e,t,n)=>{"use strict";n.d(t,{r:()=>m});var r=n(55907),i=n(30538),o=n(34089),a=n(43331),s=n(47001),l=n(33828),c=n(15205),u=n(6883),d=function(e){return{guideContainer:{"& .responsive-layout-right-main-content":{backgroundColor:e.palette.geoViewColor.white,"&:focus-visible":{border:"2px solid inherit"}}},rightPanelContainer:{color:e.palette.geoViewColor.textColor.main},footerGuideListItemText:{"&:hover":{cursor:"pointer"},"& .MuiListItemText-primary":{padding:"15px",fontSize:"".concat(e.palette.geoViewFontSize.lg," !important"),lineHeight:1.5,fontWeight:"700",textTransform:"capitalize"}},footerGuideListItemCollapse:{"& .MuiListItemText-primary":{padding:"15px 15px 15px 30px",fontSize:"".concat(e.palette.geoViewFontSize.md," !important"),lineHeight:1.5,whiteSpace:"unset"}},errorMessage:{marginLeft:"60px",marginTop:"30px",marginBottom:"12px"}}},h=n(1732),p=n(17755),f=n(24258),g=n(97282);function m(e){var t,n=e.fullWidth,m=(0,a.useTranslation)().t,y=(0,s.A)(),v=d(y),b=(0,c.DR)(),w=(0,p.Jh)(),x=(0,i.useState)(""),A=(0,r.A)(x,2),S=A[0],C=A[1],E=(0,i.useState)(0),k=(0,r.A)(E,2),T=k[0],_=k[1],O=(0,i.useCallback)((function(){return u.vF.logTraceUseCallback("GUIDE_PANEL - getListOfGuides"),b?Object.keys(b).map((function(e){var t=b[e].content;return b[e].children&&Object.keys(b[e].children).forEach((function(n){t+="\n".concat(b[e].children[n].content),b[e].children[n].children&&Object.keys(b[e].children[n].children).forEach((function(r){t+="\n".concat(b[e].children[n].children[r].content)}))})),{layerName:b[e].heading,layerPath:e,layerStatus:"loaded",queryStatus:"processed",content:(0,g.jsx)(o.Ay,{options:{wrapper:"article"},children:t}),layerUniqueId:"".concat(w,"-").concat(f.DF.GUIDE,"-").concat(null!=e?e:"")}})):[]}),[b,w]),P=(0,i.useMemo)((function(){return u.vF.logTraceUseMemo("GUIDE_PANEL - layerlist"),C("navigationControls"),O()}),[O]),I=(0,i.useCallback)((function(e){u.vF.logTraceUseCallback("GUIDE PANEL - handleGuideItemClick",e);var t=P.findIndex((function(t){return t.layerName===e.layerName}));_(t),C(e.layerPath)}),[P]);return(0,g.jsx)(l.Box,{sx:v.guideContainer,children:(0,g.jsx)(h.PE,{selectedLayerPath:S||"",layerList:P,onLayerListClicked:I,fullWidth:n,"aria-label":m("guide.title"),children:(0,g.jsx)(l.Box,{sx:v.rightPanelContainer,"aria-label":m("guide.title"),className:"guidebox-container",children:(0,g.jsx)(l.Box,{className:"guideBox",children:null===(t=P[T])||void 0===t?void 0:t.content})})})})}},2682:(e,t,n)=>{"use strict";n.d(t,{s:()=>f});var r=n(55907),i=n(30538),o=n(43331),a=n(47001),s=n(33828),l=n(6883),c=n(74816),u=function(e){return{tooltipItem:{color:e.palette.geoViewColor.bgColor.light[900],background:e.palette.geoViewColor.bgColor.dark[900],opacity:.9,fontSize:e.palette.geoViewFontSize.default,padding:"3px 8px",borderRadius:"5px",textAlign:"center",maxWidth:"350px",maxHeight:"60px",position:"absolute",display:"flex",top:"-5px",left:"3px"},tooltipText:{fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[900],textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",padding:"5px"}}},d=n(17755),h=n(15205),p=n(97282);function f(){var e=(0,o.useTranslation)().t,t=(0,d.Jh)(),n=(0,a.A)(),f=(0,i.useState)(""),g=(0,r.A)(f,2),m=g[0],y=g[1],v=(0,i.useState)(""),b=(0,r.A)(v,2),w=b[0],x=b[1],A=(0,i.useState)(!1),S=(0,r.A)(A,2),C=S[0],E=S[1],k=u(n),T=(0,c.kI)(),_=(0,c.KE)(),O=(0,h.sd)().querySelector('[id^="mapTargetElement-'.concat(t,'"]')),P=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;(l.vF.logTraceUseEffect("HOVER-TOOLTIP - hoverFeatureInfo",T),T)&&(y(null===(e=T.fieldInfo)||void 0===e?void 0:e.value),x(T.featureIcon.toDataURL()),E(!0))}),[T]),(0,i.useEffect)((function(){y(""),x(""),E(!1)}),[_]),(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("HOVER-TOOLTIP - tooltipValue changed",m),O&&P.current&&_&&_.pixel&&m){var e=O.getBoundingClientRect(),t=P.current.getBoundingClientRect(),n=_.pixel[0]+10,r=_.pixel[1]-35;_.pixel[0]+t.width>e.width&&(n=_.pixel[0]-t.width-10),_.pixel[1]-t.height{"use strict";n.d(t,{$:()=>s.$,re:()=>o.r,rn:()=>i.r,s$:()=>a.s,tk:()=>r.t});n(45831),n(76099),n(95985),n(57692),n(21712),n(61656),n(86430),n(76976),n(89484),n(87605),n(56757);var r=n(87993),i=n(58229),o=(n(72845),n(59480),n(26034),n(35944),n(47764),n(9036),n(51801),n(1102),n(24255),n(43798),n(12e3),n(23591)),a=(n(2682),n(60439)),s=n(75545);n(89013),n(65988),n(74890),n(5281),n(58150),n(95864),n(13604),n(11282),n(9951),n(83609),n(26028),n(31680),n(20354),n(57145),n(73518),n(42984),n(91564)},75545:(e,t,n)=>{"use strict";n.d(t,{$:()=>Ce});var r=n(42432),i=n(55907),o=n(30538),a=n(47001),s=n(33828),l=n(24795),c=n(43331),u=n(97282);function d(){var e=(0,a.A)(),t=(0,c.useTranslation)().t,n={padding:"8px 18px 4px 8px","& .MuiButton-startIcon":(0,r.A)({},e.breakpoints.down("md"),{margin:0,padding:"0 0.25rem"})},i=(0,l.y5)(),o=(0,l.Yo)(),d=(0,l.$T)().setDisplayState,h=function(e){d(e)};return(0,u.jsx)(s.Box,{id:"layers-toolbar",sx:n,children:(0,u.jsxs)(s.ButtonGroup,{size:"small",variant:"outlined","aria-label":"outlined button group",children:[(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!o.length,size:"small",tooltip:"general.view",variant:"view"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.VisibilityOutlinedIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("view")},children:t("general.view")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",size:"small",tooltip:"legend.addLayer",variant:"add"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.AddCircleOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("add")},children:t("general.add")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!o.length,size:"small",tooltip:"legend.sortLayers",variant:"order"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.HandleIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("order")},children:t("legend.sort")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!o.length,size:"small",tooltip:"legend.removeLayer",variant:"remove"===i?"contained":"outlined",startIcon:(0,u.jsx)(s.DeleteOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return h("remove")},children:t("general.remove")})]})})}var h=n(89255),p=n.n(h),f=function(e){return{categoryTitle:{textAlign:"left",fontWeight:"600",fontSize:e.palette.geoViewFontSize.lg,overflow:"hidden",textOverflow:"ellipsis"},layerDetails:{padding:"20px",width:"100%"},buttonDescriptionContainer:{display:"flex",flexDirection:"row",alignItems:"center"},layerOpacityControlContainer:{display:"flex",flexDirection:"row",alignItems:"right",justifyContent:"right","& #layerOpacity":{width:{xs:"100%",sm:"100%",md:"50%",lg:"40%",xl:"40%"}}},itemsGrid:{width:"100%","& .MuiGrid-container":{"&:first-of-type":{fontWeight:"bold",borderTop:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300]),borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300])},"& .MuiGrid-item":{padding:"3px 6px","&:first-of-type":{width:"80px"},"&:nth-of-type(2)":{flexGrow:1,textAlign:"left",display:"flex",flexDirection:"row",alignItems:"center"}}}},tableIconLabel:{color:e.palette.geoViewColor.textColor.main,fontSize:e.palette.geoViewFontSize.default,noWrap:!0,marginLeft:20},wmsImage:{maxWidth:"100%",height:"auto"}}},g=n(73854),m=n(43381),y=n(76200),v=n(60521),b=function(e){return{layerOpacityControl:{display:"flex",alignItems:"center",gap:"15px",padding:"8px 20px 7px 15px",backgroundColor:e.palette.geoViewColor.bgColor.main,borderRadius:"10px","& .MuiSlider-mark":{width:"9px",height:"9px",opacity:1,backgroundColor:e.palette.geoViewColor.primary.light[600],border:"2px solid ".concat(e.palette.geoViewColor.primary.main),borderRadius:"50%"},"& .MuiSlider-markLabel":{fontSize:e.palette.geoViewFontSize.xs,color:e.palette.geoViewColor.textColor.main}}}},w=n(6883);function x(e){w.vF.logTraceRender("components/layers/right-panel/layer-opacity-control/layer-opacity-control");var t=e.layerDetails,n=(0,c.useTranslation)().t,r=(0,a.A)(),i=b(r),o=(0,l.$T)().setLayerOpacity,d=[];t.opacityFromParent&&1!==t.opacityFromParent&&(d=[{value:100*t.opacityFromParent,label:n("layers.opacityMax")}]);return(0,u.jsx)(s.Box,{style:{padding:"16px 17px 16px 23px"},children:(0,u.jsxs)(s.Box,{sx:i.layerOpacityControl,children:[(0,u.jsx)(s.Typography,{sx:{fontWeight:"bold"},children:n("layers.opacity")}),(0,u.jsx)(s.Slider,{min:0,max:100,step:1,value:100*(t.opacity?t.opacity:1),onChange:function(e,n){var r=Array.isArray(e)?e[0]:e;t.opacityFromParent&&1!==t.opacityFromParent&&r/100>=t.opacityFromParent?o(t.layerPath,t.opacityFromParent):o(t.layerPath,r/100)},marks:d})]})})}var A=n(24258);function S(e){var t,n;w.vF.logTraceRender("components/layers/right-panel/layer-details");var d=e.layerDetails,h=(0,c.useTranslation)().t,b=(0,a.A)(),S=f(b),C=(0,o.useState)(!1),E=(0,i.A)(C,2),k=E[0],T=E[1],_=(0,l.Zt)(),O=(0,l.$T)(),P=O.setAllItemsVisibility,I=O.toggleItemVisibility,M=O.setHighlightLayer,L=O.refreshLayer,R=O.zoomToLayerExtent,j=O.getLayerBounds,F=(0,g.A6)().enableFocusTrap,D=(0,m.eQ)().triggerGetAllFeatureInfo,N=(0,m._M)(),B=(0,m.Xh)(),z=B.find((function(e){return e.layerPath===(null==d?void 0:d.layerPath)}));(0,o.useEffect)((function(){var e;return w.vF.logTraceUseEffect("LAYER DETAILS",z,d),z?e=setTimeout((function(){T(!0)}),100):T(!0),function(){T(!1),e&&clearTimeout(e)}}),[B,d,z]);var V=function(){R(d.layerPath).catch((function(e){w.vF.logPromiseFailed("in zoomToLayerExtent in layer-details.handleZoomTo",e)}))},$=function(){B.filter((function(e){var t;return e.layerPath===d.layerPath&&!(null==e||null===(t=e.features)||void 0===t||!t.length)})).length&&d.layerStatus!==A.RI.ERROR||D(d.layerPath).catch((function(e){w.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in single-layer.handleLayerClick",e)})),F({activeElementId:"layerDataTable",callbackElementId:"table-details"})};if(void 0===d.bounds||d.bounds[0]===1/0){var G=j(d.layerPath);G&&(d.bounds=G)}var U=function(){L(d.layerPath)},W=function(){M(d.layerPath)},q=function(){return p()(d.items,(function(e){return!1!==e.isVisible}))};function H(e){var t,n,r;return"simple"===(null===(t=d.styleConfig)||void 0===t||null===(t=t.LineString)||void 0===t?void 0:t.styleType)||"simple"===(null===(n=d.styleConfig)||void 0===n||null===(n=n.Point)||void 0===n?void 0:n.styleType)||"simple"===(null===(r=d.styleConfig)||void 0===r||null===(r=r.Polygon)||void 0===r?void 0:r.styleType)?null:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return I(d.layerPath,e)},children:!0===e.isVisible?(0,u.jsx)(s.CheckBoxIcon,{}):(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{})}):(0,u.jsxs)(s.IconButton,{disabled:!0,tooltip:"layers.visibilityIsAlways",children:[" ",(0,u.jsx)(s.CheckBoxIcon,{color:"disabled"})," "]})}var Y,K,X,Z=function(){if(d.children.length>0)return h("legend.subLayersCount").replace("{count}",d.children.length.toString());var e=d.items.filter((function(e){return!1!==e.isVisible})).length,t=d.items.length;return t<=1?null:h("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString())};return(0,u.jsx)(s.Paper,{sx:S.layerDetails,children:void 0!==d&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(s.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%",alignItems:"center"},children:[(0,u.jsxs)(s.Box,{sx:(0,r.A)({textAlign:"left",maxWidth:"70%"},b.breakpoints.down("md"),{display:"none"}),children:[(0,u.jsx)(s.Typography,{sx:S.categoryTitle,title:d.layerName,children:d.layerName}),Z()&&(0,u.jsxs)(s.Typography,{sx:{fontSize:b.palette.geoViewFontSize.sm},children:[" ",Z()," "]})]}),(0,u.jsxs)(s.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"15px"},children:[k&&N[d.layerPath]&&(!1!==(null===(X=d.controls)||void 0===X?void 0:X.table)?(0,u.jsx)(s.IconButton,{id:"table-details",tooltip:"legend.tableDetails",className:"buttonOutline",onClick:$,children:(0,u.jsx)(s.TableViewIcon,{})}):(0,u.jsx)(s.IconButton,{id:"table-details",className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.TableViewIcon,{color:"disabled"})})),(0,u.jsx)(s.IconButton,{tooltip:"legend.refreshLayer",className:"buttonOutline",onClick:U,children:(0,u.jsx)(s.RestartAltIcon,{})}),!1!==(null===(K=d.controls)||void 0===K?void 0:K.highlight)?(0,u.jsx)(s.IconButton,{tooltip:"legend.highlightLayer",onClick:W,className:_===d.layerPath?"buttonOutline active":"buttonOutline",children:(0,u.jsx)(s.HighlightOutlinedIcon,{})}):(0,u.jsx)(s.IconButton,{className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.HighlightOutlinedIcon,{color:"disabled"})}),!1!==(null===(Y=d.controls)||void 0===Y?void 0:Y.zoom)?(0,u.jsx)(s.IconButton,{tooltip:"legend.zoomTo",onClick:V,className:"buttonOutline",disabled:void 0===d.bounds,children:(0,u.jsx)(s.ZoomInSearchIcon,{})}):(0,u.jsx)(s.IconButton,{className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.ZoomInSearchIcon,{color:"disabled"})})]})]}),!1!==(null===(t=d.controls)||void 0===t?void 0:t.opacity)&&(0,u.jsx)(s.Box,{sx:S.layerOpacityControlContainer,children:(0,u.jsx)(s.Box,{id:"layerOpacity",children:(0,u.jsx)(x,{layerDetails:d})})}),"ogcWms"===d.type&&d.icons.length&&d.icons[0].iconImage&&"no data"!==d.icons[0].iconImage?(0,u.jsx)(s.Grid,{sx:S.itemsGrid,children:(0,u.jsx)(s.Grid,{container:!0,pt:6,pb:6,children:(0,u.jsx)(s.Box,{component:"img",alt:"icon",src:d.icons[0].iconImage,style:S.wmsImage})})}):null,(0,u.jsxs)(s.Box,{sx:{marginTop:"20px"},children:[(null===(n=d.items)||void 0===n?void 0:n.length)>0&&(0,u.jsxs)(s.Grid,{container:!0,direction:"column",spacing:0,sx:S.itemsGrid,justifyContent:"left",justifyItems:"stretch",children:[d.items.length>1&&(0,u.jsxs)(s.Grid,{container:!0,direction:"row",alignItems:"center",justifyItems:"stretch",children:[(0,u.jsx)(s.Grid,{size:{xs:"auto"},children:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return P(d.layerPath,!q())},children:q()?(0,u.jsx)(s.CheckBoxIcon,{}):(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{})}):(0,u.jsxs)(s.IconButton,{disabled:!0,children:[" ",(0,u.jsx)(s.CheckBoxIcon,{color:"disabled"})," "]})}),(0,u.jsx)(s.Grid,{size:{xs:"auto"},children:(0,u.jsx)(s.Box,{component:"span",children:h("general.name")})})]}),d.items.map((function(e){return(0,u.jsxs)(s.Grid,{container:!0,direction:"row",alignItems:"center",justifyItems:"stretch",children:[(0,u.jsx)(s.Grid,{size:{xs:"auto"},children:H(e)}),(0,u.jsxs)(s.Grid,{size:{xs:"auto"},children:[e.icon?(0,u.jsx)(s.Box,{component:"img",alt:e.name,src:e.icon}):(0,u.jsx)(s.BrowserNotSupportedIcon,{}),(0,u.jsx)(s.Box,{component:"span",style:S.tableIconLabel,children:e.name})]})]},"".concat(e.name,"/").concat(d.items.indexOf(e)))}))]}),d.children.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Typography,{sx:{fontWeight:"bold",textAlign:"left",margin:"10px 0px"},children:h("layers.subLayersList")}),function e(t){return(0,u.jsx)(s.List,{children:t.children.map((function(t){return(0,u.jsxs)(o.Fragment,{children:[(0,u.jsxs)(s.ListItem,{sx:{padding:"6px 0px",borderTop:"1px solid ".concat(b.palette.geoViewColor.bgColor.dark[50])},children:[(0,u.jsx)(s.ListItemIcon,{children:(0,u.jsx)(v.B,{layer:t})}),(0,u.jsx)(s.ListItemText,{primary:t.layerName})]}),t.children.length>0&&(0,u.jsx)(s.Box,{sx:{paddingLeft:"30px",width:"100%"},children:e(t)})]},t.layerId)}))})}(d)]})]}),(0,u.jsx)(s.Divider,{sx:{marginTop:"50px",marginBottom:"10x"},variant:"middle"}),d.layerAttribution&&d.layerAttribution.map((function(e){return(0,u.jsx)(s.Typography,{sx:{marginTop:"10px",color:b.palette.geoViewColor.textColor.light[200],fontSize:b.palette.geoViewFontSize.sm,textAlign:"center"},children:-1===e.indexOf("©")?"© ".concat(e):e},(0,y.generateId)())}))]})})}var C=n(74816),E=n(17755),k=n(30886),T=n.n(k),_=n(38811);function O(e){w.vF.logTraceRender("components/layers/left-panel/delete-undo-button/UndoButtonWithProgress");var t=e.progressValue,n=e.onUndo,r=e.handleKeyDown;return(0,u.jsxs)(s.Box,{sx:{position:"relative",display:"inline-flex"},onClick:n,children:[(0,u.jsx)(s.CircularProgressBase,{variant:"determinate",size:40,value:t}),(0,u.jsx)(s.Box,{style:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(s.IconButton,{edge:"end",size:"small",onKeyDown:function(e){return r(e)},children:(0,u.jsx)(s.UndoIcon,{})})})]})}function P(e){var t;w.vF.logTraceRender("components/layers/left-panel/delete-undo-button/DeleteUndoButton");var n=e.layer,r=(0,o.useState)(10),a=(0,i.A)(r,2),c=a[0],d=a[1],h=(0,o.useState)(!1),p=(0,i.A)(h,2),f=p[0],m=p[1],y=(0,l.$T)(),v=y.deleteLayer,b=y.setLayerDeleteInProgress,x=y.getLayerDeleteInProgress,A=(0,C.U6)(),S=A.getVisibilityFromOrderedLayerInfo,E=A.setOrToggleLayerVisibility,k=(0,g.A6)().setSelectedFooterLayerListItem,T=function(){S(n.layerPath)&&E(n.layerPath),m(!0),b(!0)},_=function(){E(n.layerPath),m(!1),b(!1)};return(0,o.useEffect)((function(){100===c&&(v(n.layerPath),m(!1))}),[c]),(0,o.useEffect)((function(){if(f){var e=setInterval((function(){d((function(e){return e>=100?0:e+5}))}),90);return function(){clearInterval(e)}}d(0)}),[f]),f||!1===(null===(t=n.controls)||void 0===t?void 0:t.remove)||x()?f?(0,u.jsx)(O,{progressValue:c,onUndo:_,handleKeyDown:function(e){"Enter"===e.key&&(_(),k(""),e.preventDefault())}}):(0,u.jsx)(s.IconButton,{onClick:T,edge:"end",size:"small",disabled:!0,children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{onClick:T,edge:"end",size:"small",onKeyDown:function(e){return function(e){"Enter"===e.key&&(e.preventDefault(),T(),k(n.layerId))}(e)},children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"error"})})}var I=n(52860),M=n(53939),L=n(90698),R=n(49919);function j(e){var t=e.depth,n=e.layer,r=e.showLayerDetailsPanel,i=e.index,a=e.isFirst,d=e.isLast,h=e.isLayoutEnlarged;w.vF.logTraceRender("components/layers/left-panel/single-layer");var p=(0,c.useTranslation)().t,f=(0,l.$T)(),y=f.setSelectedLayerPath,b=f.setSelectedLayerSortingArrowId,x=(0,C.U6)(),A=x.getVisibilityFromOrderedLayerInfo,S=x.setOrToggleLayerVisibility,k=x.getLegendCollapsedFromOrderedLayerInfo,O=x.setLegendCollapsed,j=x.reorderLayer,F=(0,E.Jh)(),D=(0,l.u1)(),N=(0,l.y5)(),B=(0,m._M)(),V=(0,l.q5)(),$=(0,g.Qy)(),G=(0,l.Yo)();(0,m.eQ)();var U=!k(n.layerPath),W=function(e){return"view"===N&&(!!(e.children&&e.children.length>0)&&(e.children.filter((function(e){return e.layerPath===D})).length>0||T()(e.children,(function(e){return W(e)}))))},q=W(n),H=n.layerPath===D&&"view"===N,Y=function(e){var t;if(!1===(null===(t=e.controls)||void 0===t?void 0:t.visibility))return!0;var n=!1;return e.children&&e.children.length>0&&(n=e.children.some((function(e){return Y(e)}))),n},K=Y(n),X=function(){O(n.layerPath)},Z=function(){["processed","loaded"].includes(n.layerStatus)&&(y(n.layerPath),r&&r(n))};var J=(0,_.zh)({delay:150*i+150*t/2,from:{opacity:.1},to:{opacity:1}});(0,o.useEffect)((function(){if(V.length){var e,t,n=document.getElementById(V);if(null!=n&&n.disabled)if(V.split("-").includes("up"))null==n||null===(e=n.nextSibling)||void 0===e||e.focus();else null==n||null===(t=n.previousSibling)||void 0===t||t.focus();else null==n||n.focus()}}),[V]),(0,o.useEffect)((function(){if("remove"===N&&$.length){var e,t=document.getElementById("layers-left-panel");if(null!=t&&t.getElementsByTagName("li"))null===(e=(null==t?void 0:t.getElementsByTagName("li"))[0])||void 0===e||e.focus()}}),[G,N]);var Q,ee,te,ne,re=(0,_.CS)(s.Paper);return(0,u.jsxs)(re,{className:(ne=["layer-panel ",null!==(te=n.layerStatus)&&void 0!==te?te:""],0===t&&ne.push("bordered"),!q||H||U||ne.push("selectedLayer bordered-primary"),H&&ne.push("selectedLayer bordered-primary"),ne.join(" ")),style:J,"data-layer-depth":t,children:[(0,u.jsx)(s.Tooltip,{title:n.layerName,placement:"top",enterDelay:1e3,arrow:!0,children:(0,u.jsx)(s.ListItem,{id:n.layerId,divider:!0,tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&e.currentTarget===e.target&&Z()},children:(0,u.jsxs)(s.ListItemButton,{selected:H||q&&!U,tabIndex:-1,sx:{minHeight:"4.51rem"},children:[(0,u.jsx)(v.B,{layer:n}),(0,u.jsx)(s.ListItemText,{primary:void 0!==n.layerName?n.layerName:n.layerId,secondary:function(){if("error"===n.layerStatus)return p("legend.layerError");if("processing"===n.layerStatus||"loading"===n.layerStatus)return p("legend.layerLoading");if(n.children.length>0)return p("legend.subLayersCount").replace("{count}",n.children.length.toString());var e=n.items.filter((function(e){return!1!==e.isVisible})).length,t=n.items.length,r=p("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString());return t<=1&&(r=""),B[n.layerPath]?(0,u.jsxs)(s.Typography,{sx:{color:"unset",fontSize:"unset"},component:"span",children:[r,"  ",(0,u.jsx)(I.A,{sx:{marginBottom:"-5px"},fontSize:"small"})]}):r}(),onClick:Z}),!h&&(0,u.jsxs)(s.ListItemIcon,{className:"rightIcons-container",children:["processing"===n.layerStatus||"loading"===n.layerStatus||"view"!==N?null:"error"===n.layerStatus?(0,u.jsx)(P,{layer:n}):K?(0,u.jsx)(s.IconButton,{edge:"end",size:"small",tooltip:"layers.visibilityIsAlways",className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.VisibilityOutlinedIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{edge:"end",size:"small",onClick:function(){S(n.layerPath)},tooltip:"layers.toggleVisibility",className:"buttonOutline",children:A(n.layerPath)?(0,u.jsx)(s.VisibilityOutlinedIcon,{}):(0,u.jsx)(s.VisibilityOffOutlinedIcon,{})}),null!==(ee=n.children)&&void 0!==ee&&ee.length?(0,u.jsx)(s.IconButton,{color:"primary",edge:"end",size:"small",onClick:X,tooltip:"layers.toggleCollapse",className:"buttonOutline",children:U?(0,u.jsx)(s.KeyboardArrowUpIcon,{}):(0,u.jsx)(s.KeyboardArrowDownIcon,{})}):null,"remove"===N?(0,u.jsx)(P,{layer:n}):"order"===N?(0,u.jsxs)(u.Fragment,{children:[(null===(Q=n.children)||void 0===Q?void 0:Q.length)>0&&(0,u.jsx)(R.c,{orientation:"vertical",sx:{marginLeft:"0.4rem",height:"1.5rem",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.dark[300]}},variant:"middle",flexItem:!0}),(0,u.jsx)(s.IconButton,{id:"".concat(F,"-").concat(n.layerPath,"-up-order"),disabled:a,edge:"end",size:"small",onClick:function(){return j(n.layerPath,-1)},onKeyDown:function(e){"Enter"===e.key&&(b("".concat(F,"-").concat(n.layerPath,"-up-order")),j(n.layerPath,-1),e.preventDefault())},children:(0,u.jsx)(M.A,{})}),(0,u.jsx)(s.IconButton,{id:"".concat(F,"-").concat(n.layerPath,"-down-order"),disabled:d,edge:"end",size:"small",onKeyDown:function(e){"Enter"===e.key&&(b("".concat(F,"-").concat(n.layerPath,"-down-order")),j(n.layerPath,1),e.preventDefault())},onClick:function(){return j(n.layerPath,1)},children:(0,u.jsx)(L.A,{})})]}):null]})]})},n.layerName)}),n.children&&n.children.length?(0,u.jsx)(s.Collapse,{in:U,timeout:"auto",children:(0,u.jsx)(z,{depth:1+t,layersList:n.children,isLayoutEnlarged:h,showLayerDetailsPanel:r})}):null]})}var F=function(e){return{list:{color:"text.primary",width:"100%",paddingLeft:"8px",paddingRight:"14px !important",overflowY:"auto","& .MuiListItemText-primary":{fontWeight:"600",padding:"5px 0px",fontSize:"".concat(e.palette.geoViewFontSize.default," !important"),lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .layer-panel":{"& .MuiListItemText-root":{marginLeft:"12px"},"& .rightIcons-container":{display:"flex",flexDirection:"row",justifyContent:"right",alignItems:"center","& .MuiIconButton-root":{margin:"0px 5px"}}},"& .MuiListItem-root":{height:"100%","& .MuiListItemButton-root":{padding:"0 0 0 16px",height:"100%"},"& .MuiBox-root":{height:"100%",borderTopRightRadius:"4px",borderBottomRightRadius:"4px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center"}},"& .MuiListItemIcon-root":{minWidth:"2.5rem",marginRight:"20px"},"& .MuiListItemText-root":{">span":{fontSize:e.palette.geoViewFontSize.default},"> p":{fontSize:e.palette.geoViewFontSize.sm,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},evenDepthList:{background:e.palette.geoViewColor.bgColor.main,boxShadow:2,padding:"0px",margin:"20px",width:"unset",boxSizing:"border-box","& .layerItemContainer":{backgroundColor:"transparent",marginBottom:"0px"}},oddDepthList:{background:"white",boxShadow:2,padding:"0px",margin:"20px",width:"unset",boxSizing:"border-box","& .layerItemContainer":{backgroundColor:"transparent",marginBottom:"0px"}}}},D=n(26265);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;td(t.layerPath)?1:-1})),p=h.map((function(e,t){var o=0===t,a=t===h.length-1;return(0,u.jsx)(j,{depth:i,layer:B(B({},e),{},{layerId:"".concat(c,"-").concat(A.DF.LAYERS,"-").concat(e.layerPath)}),showLayerDetailsPanel:n,index:t,isFirst:o,isLast:a,isLayoutEnlarged:r},"layerKey-".concat(t,"-").concat(e.layerPath).toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-"))}));return(0,u.jsx)(s.Box,{sx:0===i?l.list:i%2?l.evenDepthList:l.oddDepthList,children:p})}var V=n(96880),$=n(74813),G=n.n($),U=n(8058),W=n(4078),q=n(4401),H=n(66582),Y=n(41506),K=n(23853),X=n(68705),Z=n(34119),J=n(27991),Q=n(17921),ee=n(30762),te=n(7383),ne=n(7358),re=n(12989),ie=n(58420),oe=n(6552),ae=n(28126),se=n(58118),le=n(3248),ce=n(44894),ue=n(46850),de=n(51640),he=n(2265),pe=n(73611),fe=n(93555),ge=n(42942),me=n(85849),ye=n(26323);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t0&&e.Layer.forEach((function(e){var t=e.Name;(0===u.length||u.includes(t))&&(w.vF.logDebug("NAME",t),f.push(new le.Q({geoviewLayerConfig:d,layerId:e.Name,layerName:(0,y.createLocalizedString)(e.Title)}))),m(e)}))},p.Capability.Layer&&m(p.Capability.Layer),1===f.length?(Te(f[0].layerName.en),Ie([f[0]])):Se(f),e.next=32;break;case 28:return e.prev=28,e.t0=e.catch(2),"proj"===e.t0.message?st("WMS",t,n):at("WMS"),e.abrupt("return",!1);case 32:return e.abrupt("return",!0);case 33:case"end":return e.stop()}}),e,null,[[2,28]])})));return function(){return e.apply(this,arguments)}}(),ct=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:m,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L)},n=new H.dS(Qe,t),t.geoviewLayerId=n.geoviewLayerId,k(n),e.next=7,n.createGeoViewLayers();case 7:if(n.metadata){e.next=9;break}throw new Error("Cannot get metadata");case 9:Ge(!0),r=n.metadata,1===(i=r.FeatureTypeList.FeatureType.map((function(e){return new Q.q({geoviewLayerConfig:t,layerId:e.Name["#text"].split(":")[1],layerName:(0,y.createLocalizedString)(e.Title["#text"])})}))).length?(Te(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=19;break;case 15:return e.prev=15,e.t0=e.catch(0),at("WFS"),e.abrupt("return",!1);case 19:return e.abrupt("return",!0);case 20:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}(),ut=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:v,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L.split("collections")[0])},n=new W.ke(Qe,t),t.geoviewLayerId=n.geoviewLayerId,k(n),e.next=7,n.createGeoViewLayers();case 7:if(r=n.metadata,n.metadata){e.next=10;break}throw new Error("Cannot get metadata");case 10:if(Ge(!0),Object.keys(r).length){e.next=14;break}return at("OGC API Feature"),e.abrupt("return",!1);case 14:if(["collections","links"].every((function(e){return Object.keys(r).includes(e)}))){e.next=18;break}throw new Error("err");case 18:i=[],2===L.split("/collections/").length&&r.collections.forEach((function(e){L.split("/collections/")[1]===e.id&&i.push(new ee.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)}))})),0===i.length&&(i=r.collections.map((function(e){return new ee.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)})}))),1===i.length?(Te(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(0),at("OGC API Feature"),e.abrupt("return",!1);case 28:return e.abrupt("return",!0);case 29:case"end":return e.stop()}}),e,null,[[0,24]])})));return function(){return e.apply(this,arguments)}}(),dt=function(){var e=(0,V.A)(G().mark((function e(){var t,n;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,-1===L.indexOf("/")&&32===L.replaceAll("-","").length){e.next=4;break}throw new Error("err");case 4:return t=new ue.h(Qe,X.FHQ.maps[Qe].getDisplayLanguage()),e.next=7,t.createLayersFromUUID(L);case 7:1===(n=e.sent).length&&(1===n.length?(Te(n[0].geoviewLayerName.en),Ie(n)):Se(n)),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(0),at("GeoCore UUID"),e.abrupt("return",!1);case 15:return e.abrupt("return",!0);case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),ht=function(){var e=(0,V.A)(G().mark((function e(t){var n,i,o,a;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=t===r?{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L)}:{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L.substring(0,L.lastIndexOf("/")))},i=t===r?new pe.zt(Qe,n):new ge.Uw(Qe,n),n.geoviewLayerId=i.geoviewLayerId,k(i),e.next=7,i.createGeoViewLayers();case 7:if(o=i.metadata){e.next=10;break}throw new Error("Cannot get metadata");case 10:if(Ge(!0),null===o||!o.capabilities.includes(it(t).capability)){e.next=15;break}"layers"in o&&(a=[],t===r?o.layers.forEach((function(e){return a.push(new ae.q({geoviewLayerConfig:n,layerId:e.id,layerName:(0,y.createLocalizedString)(e.name)}))})):a.push(new re.h({geoviewLayerConfig:n,layerId:o.layers[0].id,layerName:(0,y.createLocalizedString)(o.layers[0].name)})),1===a.length?(Te(a[0].layerName.en),Ie([a[0]])):Se(a)),e.next=16;break;case 15:throw new Error("err");case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(0),at(it(t).err),e.abrupt("return",!1);case 22:return e.abrupt("return",!0);case 23:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t){return e.apply(this,arguments)}}(),pt=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i,o;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={geoviewLayerType:h,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(L)},i=new Z.$x(Qe,r),r.geoviewLayerId=i.geoviewLayerId,k(i),e.next=7,i.createGeoViewLayers();case 7:o=[new se.Q({geoviewLayerConfig:r,layerId:r.geoviewLayerId,layerName:(0,y.createLocalizedString)("string"==typeof(null===(t=i.metadata)||void 0===t?void 0:t.name)?null===(n=i.metadata)||void 0===n?void 0:n.name:""),source:{dataAccessPath:(0,y.createLocalizedString)(L)}})],Te(o[0].layerName.en),Ie([o[0]]),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(0),at("ESRI Image"),e.abrupt("return",!1);case 16:return e.abrupt("return",!0);case 17:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),ft=function(){var e=(0,V.A)(G().mark((function e(){var t,n,r,i,o;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=["{x}","{y}","{z}"],n=0;case 3:if(!(n1?Ae.forEach((function(t){var n=X.FHQ.maps[Qe].layer.addGeoviewLayer(t);n&&e.push(n)})):Pe.length>0&&Pe.forEach((function(t){var n=X.FHQ.maps[Qe].layer.addGeoviewLayer(t);n&&e.push(n)})),Promise.allSettled(e.map((function(e){return e.promiseLayer}))).then((function(){yt(),e.forEach((function(e){return vt(e.layer)}))})).catch((function(e){w.vF.logPromiseFailed("Promise.allSettled in handleStepLast in AddNewLayer",e)}))}else if(C){var t=Pe[0].geoviewLayerConfig;t.listOfLayerEntryConfig=Pe,t.geoviewLayerName=(0,y.createLocalizedString)(ke),$===b&&(Pe[0].layerName=(0,y.createLocalizedString)(ke)),1===t.listOfLayerEntryConfig.length&&(t.listOfLayerEntryConfig[0].layerName=t.geoviewLayerName);var n=X.FHQ.maps[Qe].layer.addGeoviewLayer(t);n?n.promiseLayer.then((function(){yt(),vt(n.layer)})).catch((function(e){w.vF.logPromiseFailed("addedLayer.promiseLayer in handleStepLast in AddNewLayer",e)})):je(!1)}},wt=function(){P((function(e){return e-1})),He(!1)},xt=function(e){var t=URL.createObjectURL(e);N(e.name),R(t);var n=e.name.split(".")[0];ve(""),Se([]),Te(n),Ie([])},At=function(e,t){He(!0),tt()?0!==t.length&&(Ie(t),Te(t.map((function(e){return e.layerName.en})).join(", ")),He(!1)):(Ie([t]),Te(t.layerName.en),He(!1))},St=function(e){He(!1),Te(e.target.value)};(0,o.useEffect)((function(){2===O&&Pe.length>0&&He(!1)}),[ke,O,Pe]),(0,o.useEffect)((function(){var e,t,n;0===O&&(null===(e=Ke.current)||void 0===e||e.focus());1===O&&(null===(t=Xe.current)||void 0===t?void 0:t.getElementsByTagName("input")[0].previousSibling).focus();if(2===O&&Ze.current){var r,i,o,a=null===(r=Ze.current)||void 0===r||null===(r=r.dataset)||void 0===r?void 0:r.id,s=null===(i=Ze.current)||void 0===i?void 0:i.querySelector("#service-layer-label");if("autocomplete"===a&&s)s.focus();else null===(o=Je.current)||void 0===o||null===(o=o.getElementsByTagName("input")[0])||void 0===o||o.focus()}3===O&&(null===(n=Je.current)||void 0===n||null===(n=n.getElementsByTagName("input")[0])||void 0===n||n.focus())}),[O]);var Ct=function(e){var t;if(e.preventDefault(),e.stopPropagation(),Be(!1),null!==(t=e.dataTransfer)&&void 0!==t&&t.files){var n=e.dataTransfer.files[0],r=n.name.toUpperCase();r.endsWith(".JSON")||r.endsWith(".GEOJSON")||r.endsWith(".GPKG")||r.endsWith(".CSV")?xt(n):X.FHQ.maps[Qe].notifications.showError("layers.errorFile",[],!1)}};function Et(t){var n=t.isFirst,r=void 0!==n&&n,i=t.isLast,o=void 0!==i&&i,a=t.handleNext;return Re?(0,u.jsx)(s.Box,{sx:{padding:10},children:(0,u.jsx)(s.CircularProgressBase,{})}):(0,u.jsxs)(s.ButtonGroup,{sx:rt.buttonGroup,children:[(0,u.jsx)(s.Button,{variant:"contained",className:"buttonOutlineFilled",size:"small",type:"text",disabled:qe,onClick:a,children:e(o?"layers.finish":"layers.continue")}),!r&&(0,u.jsx)(s.Button,{variant:"contained",className:"buttonOutlineFilled",size:"small",type:"text",onClick:wt,onKeyDown:function(e){return function(e){"Enter"===e.key&&(wt(),e.preventDefault())}(e)},children:e("layers.back")})]})}var kt=(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{fontSize:t.palette.geoViewFontSize.sm}),Tt=(0,u.jsx)(s.CheckBoxIcon,{fontSize:t.palette.geoViewFontSize.sm});return(0,u.jsx)(s.Paper,{sx:{padding:"20px",gap:"8"},children:(0,u.jsx)(s.Stepper,{activeStep:O,orientation:"vertical",steps:[{stepLabel:{children:e("layers.stepOne")},stepContent:{children:(0,u.jsxs)(s.Box,{className:"dropzone",style:{position:"relative"},onDrop:function(e){return Ct(e)},onDragOver:function(e){return function(e){e.preventDefault(),e.stopPropagation()}(e)},onDragEnter:function(e){return function(e){e.preventDefault(),e.stopPropagation(),e.target!==Ye.current&&Be(!0)}(e)},onDragLeave:function(e){return function(e){e.preventDefault(),e.stopPropagation(),e.target===Ye.current&&Be(!1)}(e)},children:[Ne&&(0,u.jsx)(s.Box,{ref:Ye,style:{backgroundColor:"rgba(128,128,128,.95)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:9999,textAlign:"center",color:"black",fontSize:24},children:(0,u.jsxs)("h3",{children:[(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),e("layers.dropzone")]})}),(0,u.jsx)(s.Box,{children:(0,u.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(e){e.target.files&&xt(e.target.files[0])},accept:".gpkg, .json, .geojson, .csv"})}),(0,u.jsxs)(s.Button,{fullWidth:!0,variant:"outlined",size:"small",sx:{width:"100%"},type:"text",onClick:function(){var e;return null===(e=document.getElementById("fileUpload"))||void 0===e?void 0:e.click()},className:"buttonOutlineFilled",ref:Ke,children:[(0,u.jsx)(s.FileUploadIcon,{}),(0,u.jsx)(s.Box,{component:"span",children:e("layers.upload")})]}),(0,u.jsx)("p",{style:{textAlign:"center"},children:(0,u.jsx)("small",{children:e("layers.drop")})}),(0,u.jsx)("p",{style:{textAlign:"center"},children:e("layers.or")}),(0,u.jsx)(s.TextField,{sx:{width:"100%"},label:e("layers.url"),variant:"standard",value:D,onChange:function(e){N(e.target.value.trim()),R(e.target.value.trim()),ve(""),Se([]),Te(""),Ie([]),He(!(e.target.value.trim().startsWith("https://")||35!==e.target.value.trim().length))},multiline:!0}),(0,u.jsx)("br",{}),(0,u.jsx)(Et,{isFirst:!0,handleNext:function(){var e,t,i=!0;""===L.trim()&&(i=!1,je(!1),X.FHQ.maps[Qe].notifications.showError("layers.errorNone",[],!1)),i&&(e=D.toUpperCase().split("/"),t=parseInt(e[e.length-1],10),D.toUpperCase().endsWith("MAPSERVER")||D.toUpperCase().endsWith("MAPSERVER/")?ve(r):-1!==D.toUpperCase().indexOf("FEATURESERVER")||-1!==D.toUpperCase().indexOf("MAPSERVER")&&!Number.isNaN(t)?ve(d):-1!==D.toUpperCase().indexOf("IMAGESERVER")?ve(h):-1!==e.indexOf("WFS")?ve(m):D.toUpperCase().endsWith(".JSON")||D.toUpperCase().endsWith(".GEOJSON")?ve(p):D.toUpperCase().endsWith(".GPKG")?ve(f):-1!==D.toUpperCase().indexOf("{Z}/{X}/{Y}")||-1!==D.toUpperCase().indexOf("{Z}/{Y}/{X}")?ve(b):-1===D.indexOf("/")&&32===D.replaceAll("-","").length?ve(x):-1!==D.toUpperCase().indexOf("WMS")?ve(g):D.toUpperCase().endsWith(".CSV")?ve(n):(ve(""),He(!0)),P(1))}})]})}},{stepLabel:{children:e("layers.stepTwo")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Select,{fullWidth:!0,labelId:"service-type-label",value:$,onChange:function(e){ve(e.target.value),Se([]),Ie([]),He(!1)},label:e("layers.service"),variant:"standard",inputLabel:{id:"service-type-label"},ref:Xe,menuItems:nt.map((function(e){var t=(0,i.A)(e,2),n=t[0];return{key:n,item:{value:n,children:t[1]}}}))}),(0,u.jsx)(Et,{handleNext:function(){var t;je(!0),void 0===$?(je(!1),ot(e("layers.service"))):$===g?t=lt():$===m?t=ct():$===v?t=ut():$===b?t=ft():$===r?t=ht(r):$===d?t=ht(d):$===h?t=pt():$===p?t=mt():$===f?t=Promise.resolve(function(){try{Ge(!1);var e={geoviewLayerType:f,listOfLayerEntryConfig:[]},t=new ce.OH(Qe,e);e.geoviewLayerId=t.geoviewLayerId,k(t);var n=[new ie.X({geoviewLayerConfig:e,layerId:e.geoviewLayerId,layerName:(0,y.createLocalizedString)(""),source:{dataAccessPath:(0,y.createLocalizedString)(L)}})];Te(n[0].layerName.en),Ie([n[0]])}catch(e){return at("GeoPackage"),!1}return!0}()):$===x?t=dt():$===n&&(t=gt()),t&&t.then((function(e){e&&(je(!1),P(2),He(!0))})).catch((function(e){w.vF.logPromiseFailed("promise of layer validation in handleStep2 in AddNewLayer",e)}))}})]})}},{stepLabel:{children:e("layers.stepThree")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[0===Ae.length&&(0,u.jsx)(s.TextField,{label:e("layers.name"),variant:"standard",value:ke,onChange:St,ref:Je}),Ae.length>1&&Ae[0].layerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:tt(),disableClearable:!tt(),disableCloseOnSelect:!0,id:"service-layer-label",options:Ae,getOptionLabel:function(e){return"".concat(e.layerName.en," (").concat(e.layerId,")")},renderOption:function(e,t,n){var r=n.selected;return(0,o.createElement)("li",be(be({},e),{},{key:t.layerName.en}),(0,u.jsx)(s.Checkbox,{icon:kt,checkedIcon:Tt,style:{marginRight:8},checked:r}),t.layerName.en)},onChange:At,ref:Ze,renderInput:function(t){return(0,u.jsx)(s.TextField,be(be({},t),{},{label:e("layers.layerSelect")}))}}),Ae.length>1&&Ae[0].geoviewLayerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:tt(),disableClearable:!tt(),id:"service-layer-label",options:Ae,getOptionLabel:function(e){return"".concat(e.geoviewLayerName.en," (").concat(e.geoviewLayerId,")")},disableCloseOnSelect:!0,renderOption:function(e,t,n){var r=n.selected;return(0,o.createElement)("li",be(be({},e),{},{key:t.geoviewLayerName.en}),(0,u.jsx)(s.Checkbox,{icon:kt,checkedIcon:Tt,style:{marginRight:8},checked:r}),t.geoviewLayerName.en)},onChange:At,ref:Ze,renderInput:function(t){return(0,u.jsx)(s.TextField,be(be({},t),{},{label:e("layers.layerSelect")}))}}),(0,u.jsx)("br",{}),(0,u.jsx)(Et,{isLast:!tt(),handleNext:tt()?function(){var t=!0;0===Pe.length&&(t=!1,ot(e("layers.layer"))),t&&P(3)}:bt})]})}},tt()?{stepLabel:{children:e("layers.stepFour")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.TextField,{sx:{width:"100%"},label:e("layers.name"),variant:"standard",value:ke,onChange:St,ref:Je}),(0,u.jsx)("br",{}),(0,u.jsx)(Et,{isLast:!0,handleNext:bt})]})}}:null]})})}function xe(e){var t=e.showLayerDetailsPanel,n=e.isLayoutEnlarged;w.vF.logTraceRender("components/layers/left-panel/left-panel");var r=(0,l.Yo)(),a=(0,l.y5)(),s=(0,C._I)(),c=(0,E.oy)(),d=(0,C.U6)().getIndexFromOrderedLayerInfo,h=(0,l.$T)().setDisplayState,p=(0,o.useState)([]),f=(0,i.A)(p,2),g=f[0],m=f[1];return(0,o.useEffect)((function(){var e=r.sort((function(e,t){return d(e.layerPath)>d(t.layerPath)?1:-1}));m(e)}),[s,r,d]),(0,o.useEffect)((function(){var e;"add"!==a&&!r.length&&null!=c&&null!==(e=c.footerBar)&&void 0!==e&&e.tabs.core.includes("legend")&&h("add")}),[a,r,h,c]),"add"===a?(0,u.jsx)(we,{}):(0,u.jsx)(z,{layersList:g,depth:0,showLayerDetailsPanel:t,isLayoutEnlarged:n})}var Ae=n(66054),Se=n(8148);function Ce(e){var t=e.containerType,n=(0,a.A)();w.vF.logTraceRender("components/layers/layers-panel");var c,h=(0,l.wU)(),p=(0,l.y5)(),f=(0,o.useState)(!1),m=(0,i.A)(f,2),y=m[0],v=m[1],b=(0,l.$T)().setSelectedLayerPath,x=(0,g.A6)().setSelectedFooterLayerListItem,A=(0,o.useRef)(null),C=function(e){var t,n;null===(t=A.current)||void 0===t||t.setIsRightPanelVisible(!0),null===(n=A.current)||void 0===n||n.setRightPanelFocus(),x("".concat(e.layerId))},E=(0,o.useCallback)((function(e){e&&b("")}),[b]),k=(0,o.useCallback)((function(e){v(e)}),[v]);return(0,u.jsx)(Ae.z,{ref:A,leftTop:(0,u.jsx)(d,{}),leftMain:(0,u.jsx)(s.Box,{id:"layers-left-panel",children:(0,u.jsx)(xe,{showLayerDetailsPanel:C,isLayoutEnlarged:y})}),rightTop:(0,u.jsx)(Se.o,{sx:(0,r.A)({fontSize:n.palette.geoViewFontSize.lg,fontWeight:"600",marginTop:"12px",overflow:"hidden",textOverflow:"ellipsis"},n.breakpoints.up("md"),{display:"none"}),component:"div",children:null!==(c=null==h?void 0:h.layerName)&&void 0!==c?c:""}),rightMain:h&&"view"===p?(0,u.jsx)(S,{layerDetails:h}):null,guideContentIds:"view"===p?["layers.children.view","layers.children.layerSettings"]:"remove"===p?["layers.children.remove"]:"order"===p?["layers.children.sort"]:"add"===p?["layers.children.add"]:[],fullWidth:!1,onGuideIsOpen:E,hideEnlargeBtn:"view"!==p,containerType:t,onIsEnlargeClicked:k})}},60439:(e,t,n)=>{"use strict";n.d(t,{s:()=>A});var r=n(42432),i=n(55907),o=n(47001),a=n(30538),s=n(43331),l=n(33828),c=n(26265),u=n(24795),d=n(74816),h=n(6883),p=function(e){return{container:{padding:"20px",display:"flex",flexDirection:"column"},title:{textAlign:"left",fontWeight:"600",color:e.palette.geoViewColor.textColor.main,fontSize:e.palette.geoViewFontSize.md},subtitle:{fontWeight:"normal",fontSize:e.palette.geoViewFontSize.md,textAlign:"left",marginBottom:"15px"},layersListContainer:(0,r.A)((0,r.A)((0,r.A)({padding:"20px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},e.breakpoints.down("sm"),{width:"100%"}),e.breakpoints.up("md"),{width:"50%"}),e.breakpoints.up("lg"),{width:"33.33%"}),legendLayerListItem:{padding:"6px 4px","& .layerTitle":{fontSize:e.palette.geoViewFontSize.md,fontWeight:"600",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",">p":{margin:0,color:e.palette.geoViewColor.textColor.light[400],fontSize:e.palette.geoViewFontSize.sm,lineHeight:1.43}},"& .layerTitle > .MuiListItemText-secondary":{color:e.palette.geoViewColor.textColor.light[400]},"& .layerTitle > div":{color:e.palette.geoViewColor.textColor.light[400]},"& .MuiListItemText-root":{marginLeft:"12px"},"& .MuiCollapse-vertical":{marginLeft:"6px","& ul":{marginTop:0,padding:0},"& li":{borderLeft:"5px solid ".concat(e.palette.geoViewColor.bgColor.dark[200]),paddingLeft:"6px",marginBottom:"3px",fontWeight:"400","&.unchecked":{borderLeft:"5px solid ".concat(e.palette.geoViewColor.bgColor.dark[600]),fontStyle:"italic",color:e.palette.geoViewColor.textColor.light[600]}}}},collapsibleContainer:{width:"100%",padding:"10px 0",margin:"0px 10px"},legendInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},legendInstructionsBody:{fontSize:e.palette.geoViewFontSize.default},subList:{width:"100%","& .MuiListItemIcon-root":{minWidth:"1rem"},"& img":{maxWidth:"1.5rem"}},layerStackIcons:{flexWrap:"wrap","& button":{padding:"0.25rem",marginRight:0,"& svg":{width:"1.25rem",height:"1.25rem"}}}}},f=n(60521),g=n(43852),m=n(1732),y=n(97282);function v(e){var t,n,r,i,a=e.layer;h.vF.logTraceRender("components/legend/legend-layer");var d=(0,s.useTranslation)().t,b=(0,o.A)(),w=p(b),x=(0,m.xk)(),A=x.initLightBox,S=x.LightBoxComponent,C=(0,u.Zt)(),E=(0,c.U6)(),k=E.getVisibilityFromOrderedLayerInfo,T=E.setOrToggleLayerVisibility,_=E.getLegendCollapsedFromOrderedLayerInfo,O=E.setLegendCollapsed,P=(0,u.$T)(),I=P.setHighlightLayer,M=P.zoomToLayerExtent,L=function(){var e;return null===(e=a.children)||void 0===e?void 0:e.filter((function(e){var t;return["processed","loaded"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")}))},R=!_(a.layerPath),j=!k(a.layerPath),F=null!==(t=null===(n=a.controls)||void 0===n?void 0:n.visibility)&&void 0!==t&&t;return(0,y.jsxs)(l.Box,{sx:w.legendLayerListItem,children:[(0,y.jsxs)(l.ListItem,{divider:!0,onClick:function(){O(a.layerPath)},children:[(0,y.jsx)(f.B,{layer:a}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.Tooltip,{title:a.layerName,placement:"top",children:(0,y.jsx)(l.ListItemText,{sx:{"&:hover":{cursor:"pointer"}},primary:a.layerName,className:"layerTitle",disableTypography:!0,secondary:function(){var e;if(!["processed","loaded"].includes(null!==(e=a.layerStatus)&&void 0!==e?e:""))return(0,y.jsx)(l.Box,{});var t="";return L().length?t=d("legend.subLayersCount").replace("{count}",L().length.toString()):a.items.length>1&&(t=d("legend.itemsCount").replace("{count}",a.items.length.toString()).replace("{totalCount}",a.items.length.toString())),(0,y.jsxs)(l.Stack,{direction:"row",alignItems:"center",sx:w.layerStackIcons,children:[!!t.length&&(0,y.jsx)(l.Typography,{fontSize:14,children:t}),(0,y.jsxs)(l.Box,{children:[(0,y.jsx)(l.IconButton,{edge:"end",tooltip:"layers.toggleVisibility",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),T(a.layerPath)}(e)},disabled:!F,children:j?(0,y.jsx)(l.VisibilityOffOutlinedIcon,{}):(0,y.jsx)(l.VisibilityOutlinedIcon,{})}),(0,y.jsx)(l.IconButton,{tooltip:"legend.highlightLayer",sx:{marginTop:"-0.3125rem"},className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),I(a.layerPath)}(e)},children:C===a.layerPath?(0,y.jsx)(l.HighlightIcon,{}):(0,y.jsx)(l.HighlightOutlinedIcon,{})}),(0,y.jsx)(l.IconButton,{tooltip:"legend.zoomTo",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),M(a.layerPath).catch((function(e){h.vF.logPromiseFailed("in zoomToLayerExtent in legend-layer.handleZoomTo",e)}))}(e)},children:(0,y.jsx)(l.ZoomInSearchIcon,{})})]})]})}()})}),!!((null===(r=a.children)||void 0===r?void 0:r.length)>1||(null===(i=a.items)||void 0===i?void 0:i.length)>1)&&(0,y.jsx)(l.IconButton,{sx:{marginBottom:"20px"},className:"buttonOutline",edge:"end",size:"small",tooltip:"layers.toggleCollapse",children:R?(0,y.jsx)(l.KeyboardArrowUpIcon,{}):(0,y.jsx)(l.KeyboardArrowDownIcon,{})})]})]},a.layerName),function(){var e,t,n,r;if(a.type===g.oR.WMS&&a.icons.length&&a.icons[0].iconImage&&"no data"!==a.icons[0].iconImage){var i=a.icons[0].iconImage;return(0,y.jsx)(l.Collapse,{in:R,sx:w.collapsibleContainer,timeout:"auto",children:(0,y.jsx)(l.Box,{component:"img",src:i,sx:{maxWidth:"100%",cursor:"pointer"},onClick:function(){return A(i,"",0,2)}})})}return(null===(e=a.children)||void 0===e?void 0:e.length)>1||(null===(t=a.items)||void 0===t?void 0:t.length)>1?(0,y.jsxs)(l.Collapse,{in:R,sx:w.collapsibleContainer,timeout:"auto",children:[null!==(r=a.children)&&void 0!==r&&r.length?(0,y.jsx)(l.List,{sx:{width:"100%",padding:"20px",margin:"20px 0px"},children:a.children.filter((function(e){var t;return!["error","processing"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")})).map((function(e){return(0,y.jsx)(v,{layer:e},e.layerPath)}))}):null,null!==(n=a.items)&&void 0!==n&&n.length?(0,y.jsx)(l.List,{sx:w.subList,children:a.items.map((function(e){return(0,y.jsxs)(l.ListItem,{className:e.isVisible?"":"unchecked",children:[(0,y.jsx)(l.ListItemIcon,{children:e.icon?(0,y.jsx)(l.Box,{component:"img",alt:e.name,src:e.icon}):(0,y.jsx)(l.BrowserNotSupportedIcon,{})}),(0,y.jsx)(l.Tooltip,{title:e.name,placement:"top",enterDelay:1e3,children:(0,y.jsx)(l.ListItemText,{primary:e.name})})]},"".concat(e.icon,"/").concat(e.name,"/").concat(a.items.indexOf(e)))}))}):null]}):null}(),(0,y.jsx)(S,{})]})}var b=n(24258);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{"use strict";n.d(t,{h:()=>Kt});var r=n(55907),i=n(30538),o=n(43331);const a="carousel",s="controller",l="portal",c="toolbar",u="download",d="loading",h="error",p="complete",f="placeholder",g=e=>`active-slide-${e}`,m=(g(d),g("playing"),g(h),g(p),"flex_center"),y="no_scroll_padding",v="slide_wrapper",b="prev",w="next",x="swipe",A="close",S="onPointerDown",C="onPointerMove",E="onPointerUp",k="onPointerLeave",T="onPointerCancel",_="onKeyDown",O="onKeyUp",P="onWheel",I="Escape",M="ArrowLeft",L="ArrowRight",R="icon",j="contain",F="cover",D="Unknown action type";var N=n(95491);const B="yarl__";function z(...e){return[...e].filter(Boolean).join(" ")}function V(e){return`${B}${e}`}function $(e){return`--${B}${e}`}function G(e,t){return`${e}${t?`_${t}`:""}`}function U(e){return t=>G(e,t)}function W(...e){return()=>{e.forEach((e=>{e()}))}}function q(e,t,n){return()=>{const r=i.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function H(){return"undefined"!=typeof window}function Y(e){return void 0===e.type||"image"===e.type}function K(e){return"string"==typeof e?Number.parseInt(e,10):e}function X(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=K(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Z(e,t){const n=X(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function J(e,t){return t>0?(e%t+t)%t:0}function Q(e){return e.length>0}function ee(e,t){return e[J(t,e.length)]}function te(e,t){return Q(e)?ee(e,t):void 0}function ne(e){return Y(e)?e.src:void 0}function re(e,t,n){if(!n)return e;const{buttons:r,...o}=e,a=r.findIndex((e=>e===t)),s=i.isValidElement(n)?i.cloneElement(n,{key:t},null):n;if(a>=0){const e=[...r];return e.splice(a,1,s),{buttons:e,...o}}return{buttons:[s,...r],...o}}const ie={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[A]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:j,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function oe(e,t){return{name:e,component:t}}function ae(e,t){return{module:e,children:t}}function se(e,t,n){return e.module.name===t?n(e):e.children?[ae(e.module,e.children.flatMap((e=>{var r;return null!==(r=se(e,t,n))&&void 0!==r?r:[]})))]:[e]}function le(e,t,n){return e.flatMap((e=>{var r;return null!==(r=se(e,t,n))&&void 0!==r?r:[]}))}const ce=i.createContext(null),ue=q("useDocument","DocumentContext",ce);function de({nodeRef:e,children:t}){const n=i.useMemo((()=>{const t=t=>{var n;return(null===(n=t||e.current)||void 0===n?void 0:n.ownerDocument)||document};return{getOwnerDocument:t,getOwnerWindow:e=>{var n;return(null===(n=t(e))||void 0===n?void 0:n.defaultView)||window}}}),[e]);return i.createElement(ce.Provider,{value:n},t)}const he=i.createContext(null),pe=q("useEvents","EventsContext",he);function fe({children:e}){const[t]=i.useState({});i.useEffect((()=>()=>{Object.keys(t).forEach((e=>delete t[e]))}),[t]);const n=i.useMemo((()=>{const e=(e,n)=>{var r;null===(r=t[e])||void 0===r||r.splice(0,t[e].length,...t[e].filter((e=>e!==n)))};return{publish:(...[e,n])=>{var r;null===(r=t[e])||void 0===r||r.forEach((e=>e(n)))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}}),[t]);return i.createElement(he.Provider,{value:n},e)}const ge=i.createContext(null),me=q("useLightboxProps","LightboxPropsContext",ge);function ye({children:e,...t}){return i.createElement(ge.Provider,{value:t},e)}const ve=i.createContext(null),be=q("useLightboxState","LightboxStateContext",ve),we=i.createContext(null),xe=q("useLightboxDispatch","LightboxDispatchContext",we);function Ae(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,i=e.globalIndex+r,o=J(i,n.length);return{slides:n,currentIndex:o,globalIndex:i,currentSlide:te(n,o),animation:r||t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:te(t.slides,t.index)}:e;default:throw new Error(D)}}function Se({slides:e,index:t,children:n}){const[r,o]=i.useReducer(Ae,{slides:e,currentIndex:t,globalIndex:t,currentSlide:te(e,t)});i.useEffect((()=>{o({type:"update",slides:e,index:t})}),[e,t]);const a=i.useMemo((()=>({...r,state:r,dispatch:o})),[r,o]);return i.createElement(we.Provider,{value:o},i.createElement(ve.Provider,{value:a},n))}const Ce=i.createContext(null),Ee=q("useTimeouts","TimeoutsContext",Ce);function ke({children:e}){const[t]=i.useState([]);i.useEffect((()=>()=>{t.forEach((e=>window.clearTimeout(e))),t.splice(0,t.length)}),[t]);const n=i.useMemo((()=>{const e=e=>{t.splice(0,t.length,...t.filter((t=>t!==e)))};return{setTimeout:(n,r)=>{const i=window.setTimeout((()=>{e(i),n()}),r);return t.push(i),i},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}}),[t]);return i.createElement(Ce.Provider,{value:n},e)}const Te=i.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:a,...s},l){const{styles:c,labels:u}=me(),d=function(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}(u,e);return i.createElement("button",{ref:l,type:"button",title:d,"aria-label":d,className:z(V("button"),t),onClick:o,style:{...a,...c.button},...s},r?r():i.createElement(n,{className:V(R),style:c.icon}))}));function _e(e,t){const n=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}function Oe(e,t){return _e(e,i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Pe=Oe("Close",i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ie=Oe("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Me=Oe("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Le=Oe("Loading",i.createElement(i.Fragment,null,Array.from({length:8}).map(((e,t,n)=>i.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`}))))),Re=Oe("Error",i.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),je=H()?i.useLayoutEffect:i.useEffect;function Fe(){const[e,t]=i.useState(!1);return i.useEffect((()=>{var e,n;const r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);const i=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",i),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",i)}}),[]),e}function De(e,t){const n=i.useRef(),r=i.useRef(),o=Fe();return je((()=>{var i,a,s;if(e.current&&void 0!==n.current&&!o){const{keyframes:o,duration:l,easing:c,onfinish:u}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const e=i[1].split(",").map(K);6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(o&&l){null===(i=r.current)||void 0===i||i.cancel(),r.current=void 0;try{r.current=null===(s=(a=e.current).animate)||void 0===s?void 0:s.call(a,o,{duration:l,easing:c})}catch(e){console.error(e)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==u||u()})}}n.current=void 0})),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return"running"===(null===(e=r.current)||void 0===e?void 0:e.playState)}}}function Ne(){const e=i.useRef(null),t=i.useRef(),[n,r]=i.useState(),o=i.useCallback((n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);const i=()=>{if(n){const e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;r({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else r(void 0)};i(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(i),t.current.observe(n))}),[]);return{setContainerRef:o,containerRef:e,containerRect:n}}function Be(){const e=i.useRef(),{setTimeout:t,clearTimeout:n}=Ee();return i.useCallback(((r,i)=>{n(e.current),e.current=t(r,i>0?i:0)}),[t,n])}function ze(e){const t=i.useRef(e);return je((()=>{t.current=e})),i.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Ve(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function $e(e,t){return i.useMemo((()=>null==e&&null==t?null:n=>{Ve(e,n),Ve(t,n)}),[e,t])}function Ge(e,t=!1){const n=i.useRef();je((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]);return{onFocus:i.useCallback((()=>{n.current=!0}),[]),onBlur:i.useCallback((()=>{n.current=!1}),[])}}function Ue(){const[e,t]=i.useState(!1);return je((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function We(e,t){const n=i.useRef(0),r=Be(),o=ze(((...t)=>{n.current=Date.now(),e(t)}));return i.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const qe=U("slide"),He=U("slide_image");function Ye({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:a,onClick:s,onLoad:l,onError:c,style:u}){var m,y,v,b,w,x,A;const[S,C]=i.useState(d),{publish:E}=pe(),{setTimeout:k}=Ee(),T=i.useRef(null);i.useEffect((()=>{0===t&&E(g(S))}),[t,S,E]);const _=ze((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(C(p),k((()=>{null==l||l(e)}),0))}))})),O=i.useCallback((e=>{T.current=e,(null==e?void 0:e.complete)&&_(e)}),[_]),P=i.useCallback((e=>{_(e.currentTarget)}),[_]),I=ze((()=>{C(h),null==c||c()})),M=function(e,t){return e.imageFit===F||e.imageFit!==j&&t===F}(e,o),L=(e,t)=>Number.isFinite(e)?e:t,D=L(Math.max(...(null!==(y=null===(m=e.srcSet)||void 0===m?void 0:m.map((e=>e.width)))&&void 0!==y?y:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(v=T.current)||void 0===v?void 0:v.naturalWidth)||0),N=L(Math.max(...(null!==(w=null===(b=e.srcSet)||void 0===b?void 0:b.map((e=>e.height)))&&void 0!==w?w:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(x=T.current)||void 0===x?void 0:x.naturalHeight)||0),B=D&&N?{maxWidth:`min(${D}px, 100%)`,maxHeight:`min(${N}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},$=null===(A=e.srcSet)||void 0===A?void 0:A.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),G=$&&r&&H()?`${Math.round(Math.min(r&&!M&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:U,className:W,...q}=a||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:O,onLoad:P,onError:I,onClick:s,draggable:!1,className:z(V(He()),M&&V(He("cover")),S!==p&&V(He("loading")),W),style:{...B,...u,...U},...q,alt:e.alt,sizes:G,srcSet:$,src:e.src}),S!==p&&i.createElement("div",{className:V(qe(f))},S===d&&((null==n?void 0:n.iconLoading)?n.iconLoading():i.createElement(Le,{className:z(V(R),V(qe(d)))})),S===h&&((null==n?void 0:n.iconError)?n.iconError():i.createElement(Re,{className:z(V(R),V(qe(h)))}))))}const Ke=i.forwardRef((function({className:e,children:t,...n},r){const o=i.useRef(null);return i.createElement(de,{nodeRef:o},i.createElement("div",{ref:$e(r,o),className:z(V("root"),e),...n},t))}));var Xe,Ze;!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(Xe||(Xe={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(Ze||(Ze={}));const Je=30;function Qe(e,t,n,r,o,a,s,l,c,u,d,h,p,f){const g=i.useRef(0),m=i.useRef([]),y=i.useRef(),v=i.useRef(0),b=i.useRef(Ze.NONE),w=i.useCallback((e=>{y.current===e.pointerId&&(y.current=void 0,b.current=Ze.NONE);const t=m.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),x=i.useCallback((e=>{w(e),e.persist(),m.current.push(e)}),[w]),A=ze((e=>{x(e)})),_=(e,t)=>u&&e>t||c&&e<-t,O=ze((e=>{if(m.current.find((t=>t.pointerId===e.pointerId))&&y.current===e.pointerId){const e=Date.now()-v.current,t=g.current;b.current===Ze.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&eo?()=>{}:W(e(S,t),e(C,n),e(E,r),e(k,r),e(T,r))),[e,t,n,r,o])}(e,A,ze((e=>{const n=m.current.find((t=>t.pointerId===e.pointerId));if(n){const r=y.current===e.pointerId;if(0===e.buttons)return void(r&&0!==g.current?O(e):w(n));const i=e.clientX-n.clientX,s=e.clientY-n.clientY;if(void 0===y.current){const n=t=>{x(e),y.current=e.pointerId,v.current=Date.now(),b.current=t};Math.abs(i)>Math.abs(s)&&Math.abs(i)>Je&&t(i)?(n(Ze.SWIPE),o()):Math.abs(s)>Math.abs(i)&&_(s,Je)&&(n(Ze.PULL),d())}else r&&(b.current===Ze.SWIPE?(g.current=i,a(i)):b.current===Ze.PULL&&(g.current=s,h(s)))}})),O)}const et=U("container"),tt=i.createContext(null),nt=q("useController","ControllerContext",tt);const rt=oe(s,(function({children:e,...t}){var n;const{carousel:r,animation:o,controller:a,on:s,styles:c,render:u}=t,{closeOnPullUp:d,closeOnPullDown:h,preventDefaultWheelX:p,preventDefaultWheelY:f}=a,[g,y]=i.useState(),v=be(),I=xe(),[M,L]=i.useState(Xe.NONE),R=i.useRef(0),j=i.useRef(0),F=i.useRef(1),{registerSensors:D,subscribeSensors:N}=function(){const[e]=i.useState({}),t=i.useCallback(((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach((e=>{n.isPropagationStopped()||e(n)}))}),[e]);return{registerSensors:i.useMemo((()=>({onPointerDown:e=>t(S,e),onPointerMove:e=>t(C,e),onPointerUp:e=>t(E,e),onPointerLeave:e=>t(k,e),onPointerCancel:e=>t(T,e),onKeyDown:e=>t(_,e),onKeyUp:e=>t(O,e),onWheel:e=>t(P,e)})),[t]),subscribeSensors:i.useCallback(((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{const r=e[t];r&&r.splice(0,r.length,...r.filter((e=>e!==n)))})),[e])}}(),{subscribe:B,publish:G}=pe(),U=Be(),q=Be(),H=Be(),{containerRef:Y,setContainerRef:K,containerRect:J}=Ne(),Q=$e(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=i.useRef(null),r=ze((n=>{const r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()}));return i.useCallback((e=>{var t;e?e.addEventListener("wheel",r,{passive:!1}):null===(t=n.current)||void 0===t||t.removeEventListener("wheel",r),n.current=e}),[r])}({preventDefaultWheelX:p,preventDefaultWheelY:f}),K),ee=i.useRef(null),te=$e(ee,void 0),{getOwnerDocument:ne}=ue(),re=Ue(),ie=e=>(re?-1:1)*("number"==typeof e?e:1),oe=ze((()=>{var e;return null===(e=Y.current)||void 0===e?void 0:e.focus()})),ae=ze((()=>t)),se=ze((()=>v)),le=i.useCallback((e=>G(b,e)),[G]),ce=i.useCallback((e=>G(w,e)),[G]),de=i.useCallback((()=>G(A)),[G]),he=e=>!(r.finite&&(ie(e)>0&&0===v.currentIndex||ie(e)<0&&v.currentIndex===v.slides.length-1)),fe=e=>{var t;R.current=e,null===(t=Y.current)||void 0===t||t.style.setProperty($("swipe_offset"),`${Math.round(e)}px`)},ge=e=>{var t,n;j.current=e,F.current=(()=>{const t=h&&e>0?e:d&&e<0?-e:0;return Math.min(Math.max(function(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}(1-t/60*.5,2),.5),1)})(),null===(t=Y.current)||void 0===t||t.style.setProperty($("pull_offset"),`${Math.round(e)}px`),null===(n=Y.current)||void 0===n||n.style.setProperty($("pull_opacity"),`${F.current}`)},{prepareAnimation:me}=De(ee,((e,t,n)=>{if(ee.current&&J)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:o.easing.fade}})),ye=(e,t)=>{if(d||h){ge(e);let n=0;ee.current&&(n=o.fade*(t?2:1),me({rect:ee.current.getBoundingClientRect(),opacity:F.current,duration:n})),H((()=>{ge(0),L(Xe.NONE)}),n),L(Xe.ANIMATION),t||de()}},{prepareAnimation:ve,isAnimationPlaying:we}=De(ee,((e,t,n)=>{var i;if(ee.current&&J&&(null===(i=v.animation)||void 0===i?void 0:i.duration)){const i=X(r.spacing),o=(i.percent?i.percent*J.width/100:i.pixel)||0;return{keyframes:[{transform:`translate(${ie(v.globalIndex-e.index)*(J.width+o)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:v.animation.duration,easing:v.animation.easing}}})),Ae=ze((e=>{var t,n;const r=e.offset||0,i=r?o.swipe:null!==(t=o.navigation)&&void 0!==t?t:o.swipe,a=r||we()?o.easing.swipe:o.easing.navigation;let{direction:s}=e;const l=null!==(n=e.count)&&void 0!==n?n:1;let c=Xe.ANIMATION,u=i*l;if(!s){const t=null==J?void 0:J.width,n=e.duration||0,o=t?i/t*Math.abs(r):i;0!==l?(n0?b:w):u=i/2}let d=0;s===b?he(ie(1))?d=-l:(c=Xe.NONE,u=i):s===w&&(he(ie(-1))?d=l:(c=Xe.NONE,u=i)),u=Math.round(u),q((()=>{fe(0),L(Xe.NONE)}),u),ee.current&&ve({rect:ee.current.getBoundingClientRect(),index:v.globalIndex}),L(c),G(x,{type:"swipe",increment:d,duration:u,easing:a})}));i.useEffect((()=>{var e,t;(null===(e=v.animation)||void 0===e?void 0:e.increment)&&(null===(t=v.animation)||void 0===t?void 0:t.duration)&&U((()=>I({type:"swipe",increment:0})),v.animation.duration)}),[v.animation,I,U]);const Se=[N,he,(null==J?void 0:J.width)||0,o.swipe,()=>L(Xe.SWIPE),e=>fe(e),(e,t)=>Ae({offset:e,duration:t,count:1}),e=>Ae({offset:e,count:0})],Ce=[()=>{h&&L(Xe.PULL)},e=>ge(e),e=>ye(e),e=>ye(e,!0)];Qe(...Se,d,h,...Ce),function(e,t,n,r,o,a,s,l,c){const u=i.useRef(0),d=i.useRef(0),h=i.useRef(),p=i.useRef(),f=i.useRef(0),g=i.useRef(0),{setTimeout:m,clearTimeout:y}=Ee(),v=i.useCallback((()=>{h.current&&(y(h.current),h.current=void 0)}),[y]),b=i.useCallback((()=>{p.current&&(y(p.current),p.current=void 0)}),[y]),w=ze((()=>{e!==Xe.SWIPE&&(u.current=0,g.current=0,v(),b())}));i.useEffect(w,[e,w]);const x=ze((e=>{p.current=void 0,u.current===e&&c(u.current)})),A=ze((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===Xe.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(f.current))return void(f.current=t.deltaX);if(!n(-t.deltaX))return;if(d.current+=t.deltaX,v(),Math.abs(d.current)>30)d.current=0,f.current=0,g.current=Date.now(),a();else{const e=d.current;h.current=m((()=>{h.current=void 0,e===d.current&&(d.current=0)}),o)}}else if(e===Xe.SWIPE){let e=u.current-t.deltaX;if(e=Math.min(Math.abs(e),r)*Math.sign(e),u.current=e,s(e),b(),Math.abs(e)>.2*r)return f.current=t.deltaX,void l(e,Date.now()-g.current);p.current=m((()=>x(e)),2*o)}else f.current=t.deltaX}));i.useEffect((()=>t(P,A)),[t,A])}(M,...Se);const ke=ze((()=>{a.focus&&ne().querySelector(`.${V(l)} .${V(et())}`)&&oe()}));i.useEffect(ke,[ke]);const Te=ze((()=>{var e;null===(e=s.view)||void 0===e||e.call(s,{index:v.currentIndex})}));i.useEffect(Te,[v.globalIndex,Te]),i.useEffect((()=>W(B(b,(e=>Ae({direction:b,...e}))),B(w,(e=>Ae({direction:w,...e}))),B(x,(e=>I(e))))),[B,Ae,I]);const _e=i.useMemo((()=>({prev:le,next:ce,close:de,focus:oe,slideRect:J?Z(J,r.padding):{width:0,height:0},containerRect:J||{width:0,height:0},subscribeSensors:N,containerRef:Y,setCarouselRef:te,toolbarWidth:g,setToolbarWidth:y})),[le,ce,de,oe,N,J,Y,te,g,y,r.padding]);return i.useImperativeHandle(a.ref,(()=>({prev:le,next:ce,close:de,focus:oe,getLightboxProps:ae,getLightboxState:se})),[le,ce,de,oe,ae,se]),i.createElement("div",{ref:Q,className:z(V(et()),V(m)),style:{...M===Xe.SWIPE?{[$("swipe_offset")]:`${Math.round(R.current)}px`}:null,...M===Xe.PULL?{[$("pull_offset")]:`${Math.round(j.current)}px`,[$("pull_opacity")]:`${F.current}`}:null,..."none"!==a.touchAction?{[$("controller_touch_action")]:a.touchAction}:null,...c.container},...a.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...D},J&&i.createElement(tt.Provider,{value:_e},e,null===(n=u.controls)||void 0===n?void 0:n.call(u)))}));function it(e){return G(a,e)}function ot(e){return G("slide",e)}function at({slide:e,offset:t}){const n=i.useRef(null),{currentIndex:r}=be(),{slideRect:o,close:a}=nt(),{render:s,carousel:{imageFit:l,imageProps:c},on:{click:u},controller:{closeOnBackdropClick:d},styles:{slide:h}}=me();return i.createElement("div",{ref:n,className:z(V(ot()),0===t&&V(ot("current")),V(m)),"aria-hidden":0!==t,onClick:e=>{const t=n.current,r=e.target instanceof HTMLElement?e.target:void 0;d&&r&&t&&(r===t||Array.from(t.children).find((e=>e===r))&&r.classList.contains(V(v)))&&a()},style:h},(()=>{var n,a,d,h;let p=null===(n=s.slide)||void 0===n?void 0:n.call(s,{slide:e,offset:t,rect:o});return!p&&Y(e)&&(p=i.createElement(Ye,{slide:e,offset:t,render:s,rect:o,imageFit:l,imageProps:c,onClick:0===t?()=>null==u?void 0:u({index:r}):void 0})),p?i.createElement(i.Fragment,null,null===(a=s.slideHeader)||void 0===a?void 0:a.call(s,{slide:e}),(null!==(d=s.slideContainer)&&void 0!==d?d:({children:e})=>e)({slide:e,children:p}),null===(h=s.slideFooter)||void 0===h?void 0:h.call(s,{slide:e})):null})())}function st(){const e=me().styles.slide;return i.createElement("div",{className:V("slide"),style:e})}const lt=oe(a,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=be(),{setCarouselRef:o}=nt(),a=X(e.spacing),s=X(e.padding),l=function(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(e,t,1),c=[];if(Q(t))for(let i=n-l;i<=n+l;i+=1){const o=ee(t,i),a=r-n+i,s=e.finite&&(i<0||i>t.length-1);c.push(s?{key:a}:{key:[`${a}`,ne(o)].filter(Boolean).join("|"),offset:i-n,slide:o})}return i.createElement("div",{ref:o,className:z(V(it()),c.length>0&&V(it("with_slides"))),style:{[`${$(it("slides_count"))}`]:c.length,[`${$(it("spacing_px"))}`]:a.pixel||0,[`${$(it("spacing_percent"))}`]:a.percent||0,[`${$(it("padding_px"))}`]:s.pixel||0,[`${$(it("padding_percent"))}`]:s.percent||0}},c.map((({key:e,slide:t,offset:n})=>t?i.createElement(at,{key:e,slide:t,offset:n}):i.createElement(st,{key:e}))))}));function ct(){const{carousel:e}=me(),{slides:t,currentIndex:n}=be();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function ut({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:a,style:s}){return i.createElement(Te,{label:e,icon:t,renderIcon:n,className:V(`navigation_${r}`),disabled:a,onClick:o,style:s,...Ge(nt().focus,a)})}const dt=oe("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:a,next:s,subscribeSensors:l}=nt(),{prevDisabled:c,nextDisabled:u}=ct();return function(e){var t;const n=Ue(),{publish:r}=pe(),{animation:o}=me(),{prevDisabled:a,nextDisabled:s}=ct(),l=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,c=We((()=>r(b)),l),u=We((()=>r(w)),l),d=ze((e=>{switch(e.key){case I:r(A);break;case M:(n?s:a)||(n?u:c)();break;case L:(n?a:s)||(n?c:u)()}}));i.useEffect((()=>e(_,d)),[e,d])}(l),i.createElement(i.Fragment,null,e?e():i.createElement(ut,{label:"Previous",action:b,icon:Ie,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:a}),t?t():i.createElement(ut,{label:"Next",action:w,icon:Me,renderIcon:r,style:o.navigationNext,disabled:u,onClick:s}))})),ht=V("no_scroll"),pt=V(y);function ft(e){return"style"in e}function gt(e,t,n){const r=window.getComputedStyle(e),i=n?"padding-left":"padding-right",o=n?r.paddingLeft:r.paddingRight,a=e.style.getPropertyValue(i);return e.style.setProperty(i,`${(K(o)||0)+t}px`),()=>{a?e.style.setProperty(i,a):e.style.removeProperty(i)}}const mt=oe("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=Ue(),{getOwnerDocument:r,getOwnerWindow:o}=ue();return i.useEffect((()=>{if(e)return()=>{};const t=[],i=o(),{body:a,documentElement:s}=r(),l=Math.round(i.innerWidth-s.clientWidth);if(l>0){t.push(gt(a,l,n));const e=a.getElementsByTagName("*");for(let r=0;r{a.classList.remove(ht),t.forEach((e=>e()))}}),[n,e,r,o]),i.createElement(i.Fragment,null,t)}));function yt(e){return G(l,e)}function vt(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const bt=oe(l,(function({children:e,animation:t,styles:n,className:r,on:o,portal:a,close:s}){const[l,c]=i.useState(!1),[u,d]=i.useState(!1),h=i.useRef([]),p=i.useRef(null),{setTimeout:f}=Ee(),{subscribe:g}=pe(),m=Fe()?0:t.fade;i.useEffect((()=>(c(!0),()=>{c(!1),d(!1)})),[]);const v=ze((()=>{h.current.forEach((e=>e())),h.current=[]})),b=ze((()=>{var e;d(!1),v(),null===(e=o.exiting)||void 0===e||e.call(o),f((()=>{var e;null===(e=o.exited)||void 0===e||e.call(o),s()}),m)}));i.useEffect((()=>g(A,b)),[g,b]);const w=ze((e=>{var t,n,r;e.scrollTop,d(!0),null===(t=o.entering)||void 0===t||t.call(o);const i=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let t=0;t{var e,t;null===(t=null===(e=p.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)})),f((()=>{var e;null===(e=o.entered)||void 0===e||e.call(o)}),m)})),x=i.useCallback((e=>{e?w(e):v()}),[w,v]);return l?(0,N.createPortal)(i.createElement(Ke,{ref:x,className:z(r,V(yt()),V(y),u&&V(yt("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==ie.animation.fade?{[$("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==ie.animation.easing.fade?{[$("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{p.current||(p.current=e.relatedTarget)}},e),a.root||document.body):null}));const wt=oe("root",(function({children:e}){return i.createElement(i.Fragment,null,e)}));const xt=oe(c,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:a}=nt(),{setContainerRef:s,containerRect:l}=Ne();return je((()=>{a(null==l?void 0:l.width)}),[a,null==l?void 0:l.width]),i.createElement("div",{ref:s,style:r.toolbar,className:V(G(c,u))},null==e?void 0:e.map((e=>e===A?t?t():i.createElement(Te,{key:A,label:"Close",icon:Pe,renderIcon:n,onClick:o}):e)));var u}));function At(e,t){var n;return i.createElement(e.module.component,{key:e.module.name,...t},null===(n=e.children)||void 0===n?void 0:n.map((e=>At(e,t))))}function St(e,t={}){const{easing:n,...r}=e,{easing:i,...o}=t;return{easing:{...n,...i},...r,...o}}function Ct({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:a,on:l,plugins:c,slides:u,index:d,...h}){const{animation:p,carousel:f,render:g,toolbar:m,controller:y,noScroll:v,on:b,slides:w,index:x,plugins:A,...S}=ie,{config:C,augmentation:E}=function(e,t=[],n=[]){let r=e;const i=e=>{const t=[...r];for(;t.length>0;){const n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},o=(e,t)=>{r=""!==e?le(r,e,(e=>[ae(t,[e])])):[ae(t,r)]},a=(e,t)=>{r=le(r,e,(e=>[ae(e.module,[ae(t,e.children)])]))},l=(e,t,n)=>{r=le(r,e,(e=>{var r;return[ae(e.module,[...n?[ae(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[ae(t)]])]}))},c=(e,t,n)=>{r=le(r,e,(e=>[...n?[ae(t)]:[],e,...n?[]:[ae(t)]]))},u=e=>{a(s,e)},d=(e,t)=>{r=le(r,e,(e=>[ae(t,e.children)]))},h=e=>{r=le(r,e,(e=>e.children))},p=e=>{n.push(e)};return t.forEach((e=>{e({contains:i,addParent:o,append:a,addChild:l,addSibling:c,addModule:u,replace:d,remove:h,augment:p})})),{config:r,augmentation:e=>n.reduce(((e,t)=>t(e)),e)}}([ae(bt,[ae(mt,[ae(rt,[ae(lt),ae(xt),ae(dt)])])])],c||A),k=E({animation:St(p,t),carousel:{...f,...e},render:{...g,...n},toolbar:{...m,...r},controller:{...y,...o},noScroll:{...v,...a},on:{...b,...l},...S,...h});return k.open?i.createElement(ye,{...k},i.createElement(Se,{slides:u||w,index:K(d||x)},i.createElement(ke,null,i.createElement(fe,null,At(ae(wt,C),k))))):null}const Et={download:void 0},kt=e=>({...Et,...e});function Tt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}function _t(e,t){const n=document.createElement("a");n.rel="noopener",n.download=t||"",n.download||(n.target="_blank"),"string"==typeof e?(n.href=e,n.origin!==window.location.origin?function(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}(n.href)?function(e,t){const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=()=>{_t(n.response,t)},n.onerror=()=>{console.error("Failed to download file")},n.send()}(e,t):(n.target="_blank",Tt(n)):Tt(n)):(n.href=URL.createObjectURL(e),setTimeout((()=>URL.revokeObjectURL(n.href)),3e4),setTimeout((()=>Tt(n)),0))}const Ot=Oe("DownloadIcon",i.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}));function Pt(){const{render:e,on:t,download:n}=me(),{download:r}=kt(n),{currentSlide:o,currentIndex:a}=be();if(e.buttonDownload)return i.createElement(i.Fragment,null,e.buttonDownload());const s=o&&(o.downloadUrl||"string"==typeof o.download&&o.download||"object"==typeof o.download&&o.download.url||Y(o)&&o.src)||void 0,l=r?!1!==(null==o?void 0:o.download):Boolean(s),c=()=>{if(o&&s){const e=o.downloadFilename||"object"==typeof o.download&&o.download.filename||void 0;_t(s,e)}};return i.createElement(Te,{label:"Download",icon:Ot,renderIcon:e.iconDownload,disabled:!l,onClick:()=>{var e;o&&((r||c)({slide:o,saveAs:_t}),null===(e=t.download)||void 0===e||e.call(t,{index:a}))}})}function It({augment:e}){e((({toolbar:e,download:t,...n})=>({toolbar:re(e,u,i.createElement(Pt,null)),download:kt(t),...n})))}var Mt=n(15559),Lt=n.n(Mt),Rt=n(37892),jt=n.n(Rt),Ft=n(60520),Dt=n.n(Ft),Nt=n(29423),Bt=n.n(Nt),zt=n(62339),Vt=n.n(zt),$t=n(92944),Gt=n.n($t),Ut=n(26855),Wt={};Wt.styleTagTransform=Gt(),Wt.setAttributes=Bt(),Wt.insert=Dt().bind(null,"head"),Wt.domAPI=jt(),Wt.insertStyleElement=Vt();Lt()(Ut.A,Wt);Ut.A&&Ut.A.locals&&Ut.A.locals;var qt=n(33828),Ht=n(6883),Yt=n(97282);function Kt(e){Ht.vF.logTraceRender("components/lightbox/lightbox");var t=e.open,n=e.slides,a=e.index,s=e.exited,l=e.scale,c=void 0===l?1:l,u=(0,o.useTranslation)().t,d=(0,i.useState)(t),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useState)(!0),m=(0,r.A)(g,1)[0],y=(0,i.useState)(!0),v=(0,r.A)(y,1)[0],b=(0,i.useState)(250),w=(0,r.A)(b,1)[0],x=(0,i.useState)(500),A=(0,r.A)(x,1)[0];return(0,i.useEffect)((function(){Ht.vF.logTraceUseEffect("LIGHTBOX - open",t),f(t)}),[t]),(0,Yt.jsx)(Ct,{styles:{root:{width:"90%",height:"90%",margin:"auto"},container:{backgroundColor:"rgba(0, 0, 0, .9)"},slide:{transform:"scale(".concat(c,")")}},open:p,close:function(){return f(!1)},slides:n,index:a,carousel:{finite:!0},controller:{closeOnPullDown:m,closeOnBackdropClick:v},animation:{fade:w,swipe:A},labels:{Next:u("lightbox.next")||void 0,Previous:u("lightbox.previous")||void 0,Close:u("lightbox.close")||void 0,Download:u("lightbox.download")||void 0},on:{entered:function(){},exited:s},render:{iconClose:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.close"),placement:"top",children:(0,Yt.jsx)(qt.CloseIcon,{})})},iconNext:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.next"),placement:"top",children:(0,Yt.jsx)(qt.ArrowRightIcon,{})})},iconPrev:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.previous"),placement:"top",children:(0,Yt.jsx)(qt.ArrowLeftIcon,{})})},iconDownload:function(){return(0,Yt.jsx)(qt.Tooltip,{title:u("lightbox.download"),placement:"top",children:(0,Yt.jsx)(qt.DownloadIcon,{})})}},plugins:[It]})}},26034:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(30538),i=n(47001),o=n(33828),a=n(1268),s=n(73854),l=n(6883),c=n(17755),u=n(97282);function d(){var e=(0,i.A)(),t=(0,a.S)(e),n=(0,c.Jh)(),d=(0,s.dY)(),h=(0,s.A6)().setMapInfoExpanded,p="layers.toggleCollapse",f=function(){h(!0)};return(0,r.useEffect)((function(){return l.vF.logTraceUseEffect("MAP-INFO-EXPAND-BUTTON - mount"),function(){var e=document.getElementById("".concat(n,"-mapInfo"));e&&e.removeEventListener("transitionend",f)}}),[]),(0,u.jsx)(o.Box,{children:(0,u.jsx)(o.IconButton,{"aria-label":p,tooltip:p,sx:t.expandButton,onClick:function(){return d?function(){var e=document.getElementById("".concat(n,"-mapInfo"));if(e){var t=e.querySelector(".ol-attribution ul");t&&(t.style.width="0px"),e.style.transition="max-height 300ms ease-out",e.style.maxHeight="25px",e.style.height="25px"}h(!1)}():function(){var e=document.getElementById("".concat(n,"-mapInfo"));if(e){e.style.transition="max-height 300ms ease-in 0s",e.style.maxHeight="80px",e.style.height="80px";var t=e.querySelector(".ol-attribution ul");t&&(t.style.width="100%"),e.addEventListener("transitionend",f,{once:!0})}}()},children:d?(0,u.jsx)(o.ExpandMoreIcon,{}):(0,u.jsx)(o.ExpandLessIcon,{})})})}},35944:(e,t,n)=>{"use strict";n.d(t,{F:()=>f});var r=n(42432),i=n(30538),o=n(43331),a=n(47001),s=n(86853),l=n(33828),c=n(8058),u=n(73854),d=n(74816),h=n(6883),p=n(97282);function f(){var e=(0,o.useTranslation)().t,t=(0,a.A)(),n=(0,s.A)(t.breakpoints.down("md")),f=(0,u.dY)(),g=(0,d.Mk)(),m=(0,d.C0)(),y=(0,d.HA)(),v=(0,d.U6)(),b=v.setFixNorth,w=v.setRotation;return(0,i.useEffect)((function(){h.vF.logTraceUseEffect("MAP-INFO-FIXNORTH-SWITCH - deviceSizeMedUp",n),n&&b(!1)}),[n,b]),(0,p.jsx)(l.Box,{sx:(0,r.A)({},t.breakpoints.down("md"),{display:"none"}),children:f&&"EPSG:".concat(y)===c.M.PROJECTION_NAMES.LCC&&g?(0,p.jsx)(l.Switch,{size:"small",onChange:function(e){b(e.target.checked),e.target.checked||w(0)},title:e("mapctrl.rotation.fixedNorth"),checked:m}):null})}},47764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(30538),i=n(47001),o=n(33828),a=n(1268),s=n(74816),l=n(97282);function c(){var e=(0,i.A)(),t=(0,a.S)(e),n=(0,r.useRef)(null),c=(0,s.uE)(),u=(0,s.U6)().setRotation;return(0,l.jsx)(o.IconButton,{sx:t.rotationButton.rotationButton,tooltipPlacement:"top",tooltip:"mapctrl.rotation.resetRotation","aria-label":"mapctrl.rotation.resetRotation",onClick:function(){return u(0)},children:(0,l.jsx)(o.ArrowUpIcon,{ref:n,sx:t.rotationButton.rotationIcon,style:{transform:"rotate(".concat(c,"rad)")}})})}},1268:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{mapInfoContainer:{flexGrow:1,zIndex:200,display:"flex",flexDirection:"row",alignItems:"center",width:"calc(100%)",minHeight:"35px",maxHeight:"35px",backdropFilter:"blur(5px)",backgroundColor:e.palette.geoViewColor.bgColor.dark[800],color:"".concat(e.palette.geoViewColor.bgColor.light[800]," !important"),pointerEvents:"all",gap:.5,order:3,fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),position:"absolute",bottom:0,left:"0px","&.interaction-static":{backdropFilter:"unset",backgroundColor:"unset",color:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),position:"absolute",width:"calc(100% - 60px)",bottom:0,left:"60px","& button svg":{fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important")},"& button span":{color:"".concat(e.palette.geoViewColor.grey.dark[900]," !important")}}},mouseScaleControlsContainer:{display:"flex",flexDirection:"row",flexWrap:"noWrap","& button":{cursor:"pointer",margin:"auto 0 auto auto"},justifyContent:"end"},rotationControlsContainer:{display:"flex",flexDirection:"column",marginLeft:"20px",alignItems:"flex-end"},expandButton:{display:{xs:"none",sm:"none",md:"flex",lg:"flex",xl:"flex"},alignItems:"center",justifyContent:"center",color:e.palette.geoViewColor.bgColor.light[800],height:"30px",width:"30px",marginLeft:"5px"},rotationButton:{rotationButton:{height:25,width:25,marginRight:5},rotationIcon:{width:"1.5em",height:"1.5em",fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[800]}}}}},9036:(e,t,n)=>{"use strict";n.d(t,{p:()=>x});var r=n(42432),i=n(30538),o=n(47001),a=n(33828),s=n(57692),l=n(74890),c=n(91564),u=n(26034),d=n(47764),h=n(35944),p=n(1268),f=n(74816),g=n(73854),m=n(6883),y=n(17755),v=n(97282);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t{"use strict";n.d(t,{T:()=>b});var r=n(30538),i=n(86853),o=n(44912),a=n(47001),s=n(20354),l=n(86430),c=n(42984),u=n(21712),d=n(2682),h={mapContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative","& .ol-overviewmap.ol-custom-overviewmap":{bottom:"auto",left:"auto",right:"5px",top:"5px",margin:5,order:1,padding:0,position:"absolute",borderRadius:4,"& .ol-overviewmap-map":{border:"none",display:"block !important",WebkitTransition:"300ms linear",MozTransition:"300ms linear",OTransition:"300ms linear",msTransition:"300ms linear",transition:"300ms linear"},"&.ol-uncollapsible":{bottom:"auto",left:"auto",right:100,top:100,margin:5},"&:not(.ol-collapsed)":{boxShadow:"0 1px 5px rgb(0 0 0 / 65%)",borderRadius:"4px",border:"none"},"&:is(.ol-collapsed)":{boxShadow:"0 1px 5px rgb(0 0 0 / 65%)",borderRadius:4,border:"none"},"& button":{zIndex:100,position:"absolute",top:0,right:0,left:"auto !important",bottom:"auto !important",backgroundColor:"#cccccc"},"&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,borderRadius:2,zIndex:100,right:0,top:0},"& .ol-overviewmap-box":{backgroundColor:"rgba(0, 0, 0, 0.2)"},"& .ol-viewport":{borderRadius:"4px","& .ol-layer":{backgroundColor:"#FFF"}}}}},p=n(74816),f=n(17755),g=n(23220),m=n(6883),y=n(23853),v=n(97282);function b(e){m.vF.logTraceRender("components/map/map");var t=e.viewer,n=(0,a.A)(),b=(0,r.useRef)(),w=(0,i.A)(n.breakpoints.up("md")),x=(0,f.Jh)(),A=(0,p.JQ)(),S=(0,p.Mk)(),C=(0,p.Nt)(),E=(0,f.oy)(),k=(0,r.useRef)(!1),T=(0,r.useCallback)((function(){var e;m.vF.logTraceUseCallback("map.initCGPVMap"),null==E||null===(e=E.corePackages)||void 0===e||e.forEach((function(e){g.k.loadScript(e).then((function(n){g.k.addPlugin(e,x,n,(0,y.NK)({mapId:x,viewer:t})).catch((function(e){m.vF.logPromiseFailed("api.plugin.addPlugin in useCallback in map",e)}))})).catch((function(e){m.vF.logPromiseFailed("api.plugin.addPlugin in useCallback in map",e)}))}))}),[x,null==E?void 0:E.corePackages,t]);return(0,r.useEffect)((function(){m.vF.logTraceUseEffect("map.initMap"),k.current||(t.createMap(b.current),T(),k.current=!0)}),[T,t]),(0,v.jsx)(o.A,{id:"mapTargetElement-".concat(x),ref:b,sx:h.mapContainer,tabIndex:0,children:C&&(0,v.jsxs)(v.Fragment,{children:[S&&(0,v.jsx)(s.l,{}),(0,v.jsx)(s.g,{}),(0,v.jsx)(l.B,{mapTargetElement:b.current}),(0,v.jsx)(u.n,{}),(0,v.jsx)(d.s,{}),w&&A&&t.map&&(0,v.jsx)(c.G,{olMap:t.map})]})})}},74890:(e,t,n)=>{"use strict";n.d(t,{d:()=>m});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(33828),c=n(73854),u=n(74816),d=n(35415),h=function(e){return{mousePosition:{display:"flex",minWidth:"fit-content",padding:e.spacing(0,4),textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",alignItems:"center",width:"auto",backgroundColor:"transparent !important",height:"inherit !important",color:e.palette.geoViewColor.bgColor.light[800],lineHeight:1.5,":hover":{backgroundColor:"transparent !important",color:e.palette.geoViewColor.bgColor.light[600]}},mousePositionTextContainer:(0,r.A)({display:"flex",flexDirection:"column"},e.breakpoints.down("md"),{display:"none"}),mousePositionTextCheckmarkContainer:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center","& span":{fontSize:e.palette.geoViewFontSize.default,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},mousePositionCheckmark:{paddingRight:5},mousePositionText:{fontSize:e.palette.geoViewFontSize.default,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}},p=n(97282);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var r=n(55907),i=n(30538),o=n(43331),a=n(74816),s=n(33828),l=n(6883),c=n(99868),u=n(88927),d=n(33796),h=n(13162),p=n(11896),f=n(50800),g=n(70524),m=n(97282),y={transport:{basemapId:"transport",shaded:!0,labeled:!0},imagery:{basemapId:"imagery",shaded:!1,labeled:!1},simple:{basemapId:"simple",shaded:!1,labeled:!1},nogeom:{basemapId:"nogeom",shaded:!1,labeled:!1}};function v(){l.vF.logTraceRender("components/nav-bar/buttons/basemap");var e=(0,o.useTranslation)().t,t=(0,a.U6)().createBasemapFromOptions,n=(0,a.NZ)(),v=Object.keys(y).includes(n.basemapId)&&JSON.stringify(n)===JSON.stringify(y[n.basemapId]),b=(0,i.useState)(v?n.basemapId:"default"),w=(0,r.A)(b,2),x=w[0],A=w[1],S=function(e){A(e),t("default"===e?n:y[e]).catch((function(e){l.vF.logPromiseFailed("setBaseMap in basemaps.ts",e)}))},C={tooltip:"mapnav.basemap",children:(0,i.createElement)(s.MapIcon),tooltipPlacement:"left"},E={title:"Select a basemap",icon:(0,i.createElement)(s.MapIcon),content:(0,m.jsxs)(u.B8,{children:[!v&&(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-default","aria-label":"basemaps.default",tooltip:"basemaps.default",tooltipPlacement:"left",size:"small",onClick:function(){return S("default")},disabled:"default"===x,children:[(0,m.jsx)(s.MapIcon,{}),e("basemaps.default")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-transport","aria-label":"basemaps.transport",tooltip:"basemaps.transport",tooltipPlacement:"left",size:"small",onClick:function(){return S("transport")},disabled:"transport"===x,children:[(0,m.jsx)(h.A,{}),e("basemaps.transport")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-imagery","aria-label":"basemaps.imagery",tooltip:"basemaps.imagery",tooltipPlacement:"left",size:"small",onClick:function(){return S("imagery")},disabled:"imagery"===x,children:[(0,m.jsx)(p.A,{}),e("basemaps.imagery")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-simple","aria-label":"basemaps.simple",tooltip:"basemaps.simple",tooltipPlacement:"left",size:"small",onClick:function(){return S("simple")},disabled:"simple"===x,children:[(0,m.jsx)(f.A,{}),e("basemaps.simple")]})}),(0,m.jsx)(u.ck,{children:(0,m.jsxs)(d.K,{id:"button-nogeom","aria-label":"basemaps.nogeom",tooltip:"basemaps.nogeom",tooltipPlacement:"left",size:"small",onClick:function(){return S("nogeom")},disabled:"nogeom"===x,children:[(0,m.jsx)(g.A,{}),e("basemaps.nogeom")]})})]},"basemapButtons"),width:"flex"};return(0,m.jsx)(c.A,{buttonPanel:{buttonPanelId:"basemapSelect",button:C,panel:E}})}},58150:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(30538),i=n(47001),o=n(33828),a=n(27604),s=n(15205),l=n(73854),c=n(17755),u=n(6883),d=n(97282);function h(){u.vF.logTraceRender("components/nav-bar/buttons/fullscreen");var e=(0,c.Jh)(),t=(0,i.A)(),n=(0,a.S)(t),h=(0,s.kv)(),p=(0,s.dD)().setFullScreenActive,f=(0,l.A6)().setFooterBarIsCollapsed;return(0,r.useEffect)((function(){function e(){document.fullscreenElement||p(!1)}return u.vF.logTraceUseEffect("FULLSCREEN - mount"),document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),function(){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}),[]),(0,d.jsx)(o.IconButton,{id:"fullscreen",tooltip:"mapnav.fullscreen",tooltipPlacement:"left",onClick:function(){var t;(t=document.getElementById("shell-".concat(e)))&&(p(!h,t),f(!0))},sx:n.navButton,children:h?(0,d.jsx)(o.FullscreenExitIcon,{}):(0,d.jsx)(o.FullscreenIcon,{})})}},95864:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(6883),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/home");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.U6)().zoomToInitialExtent;return(0,l.jsx)(i.IconButton,{id:"home",tooltip:"mapnav.home",tooltipPlacement:"left",onClick:function(){n().catch((function(e){s.vF.logPromiseFailed("Failed to zoomToInitialExtent in home.handleZoom",e)}))},sx:t.navButton,children:(0,l.jsx)(i.HomeIcon,{})})}},13604:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(15205),l=n(6883),c=n(97282);function u(){l.vF.logTraceRender("components/nav-bar/buttons/location");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.U6)().zoomToMyLocation,u=(0,s.dD)().addNotification,d=function(e){n(e).catch((function(e){l.vF.logPromiseFailed("Failed to zoomToMyLocation in location.successCallback",e)}))},h=function(e){u({key:"location",message:"ERROR(".concat(e.code,"): ").concat(e.message),notificationType:"warning",count:0})};return(0,c.jsx)(i.IconButton,{id:"location",tooltip:"mapnav.location",tooltipPlacement:"left",onClick:function(){navigator.geolocation.getCurrentPosition(d,h)},sx:t.navButton,children:(0,c.jsx)(i.EmojiPeopleIcon,{})})}},11282:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(6883),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/zoom-in");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.Bm)(),c=(0,a.U6)().setZoom;return(0,l.jsx)(i.IconButton,{id:"zoomIn",tooltip:"mapnav.zoomIn",tooltipPlacement:"left",onClick:function(){return c(n+.5)},sx:t.navButton,children:(0,l.jsx)(i.ZoomInIcon,{})})}},9951:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47001),i=n(33828),o=n(27604),a=n(74816),s=n(6883),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/zoom-out");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.Bm)(),c=(0,a.U6)().setZoom;return(0,l.jsx)(i.IconButton,{id:"zoomOut",tooltip:"mapnav.zoomOut",tooltipPlacement:"left",onClick:function(){return c(n-.5)},sx:t.navButton,children:(0,l.jsx)(i.ZoomOutIcon,{})})}},83609:(e,t,n)=>{"use strict";n.d(t,{v:()=>y});var r=n(13718),i=n(47280),o=n(42432),a=n(2358),s=n(76200);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";n.d(t,{A:()=>f});var r=n(55907),i=n(30538),o=n(59149),a=n(47001),s=n(27604),l=n(33828),c=n(15205),u=n(17755),d=n(6883),h=n(59293),p=n(97282);function f(e){var t,n,f,g,m,y,v,b=e.buttonPanel;d.vF.logTraceRender("components/nav-bar/nav-bar-panel-button");var w=(0,a.A)(),x=(0,s.S)(w),A=(0,u.Jh)(),S=(0,c.sd)().querySelector('[id^="shell-'.concat(A,'"]')),C=(0,i.useState)(null),E=(0,r.A)(C,2),k=E[0],T=E[1],_=(0,i.useState)(!1),O=(0,r.A)(_,2),P=O[0],I=O[1],M=function(){P&&(I(!1),T(null))};return(0,p.jsx)(o.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:M,children:(0,p.jsxs)(l.Box,{children:[(0,p.jsx)(l.IconButton,{id:b.button.id,tooltip:b.button.tooltip,tooltipPlacement:b.button.tooltipPlacement,sx:x.navButton,onClick:function(e){return function(e){P?(I(!1),T(null)):(T(e.currentTarget),I(!0))}(e)},className:P?"highlighted active":"",children:b.button.children},b.button.id),(0,p.jsx)(l.Popper,{open:P,anchorEl:k,placement:"left-end",onClose:M,container:S,sx:{marginRight:"5px !important"},children:(0,p.jsxs)(l.Paper,{sx:{width:"".concat(null!==(t=null===(n=b.panel)||void 0===n?void 0:n.width)&&void 0!==t?t:300,"px"),maxHeight:"500px"},children:[(0,p.jsx)(l.DialogTitle,{sx:x.popoverTitle,children:null!==(f=null===(g=b.panel)||void 0===g?void 0:g.title)&&void 0!==f?f:""}),(0,p.jsx)(l.DialogContent,{children:null!==(m=b.panel)&&void 0!==m&&m.convertHtmlContent?(0,p.jsx)(h.S,{htmlContent:null===(y=b.panel)||void 0===y?void 0:y.content}):null===(v=b.panel)||void 0===v?void 0:v.content})]})})]})},b.button.id)}},27604:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{navBarRef:{position:"absolute",right:e.spacing(7),padding:"6px",display:"flex",flexDirection:"column-reverse",marginRight:0,zIndex:150,pointerEvents:"all",justifyContent:"center",backgroundColor:"transparent",transition:"bottom 300ms ease-in-out",bottom:"6rem",alignItems:"flex-start",flexWrap:"wrap-reverse",maxHeight:"60%",gap:"15px"},navBtnGroupContainer:{display:"flex",position:"relative",pointerEvents:"auto",overflowY:"hidden",padding:5,flexDirection:"column"},navBtnGroup:{borderRadius:e.spacing(5),backgroundColor:e.palette.geoViewColor.bgColor.light[500],"& .MuiButtonGroup-grouped:not(:last-child)":{borderColor:e.palette.geoViewColor.bgColor.light[900]}},navButton:{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[900],borderRadius:e.spacing(5),width:"44px",height:"44px",maxWidth:"44px",minWidth:"44px",padding:"initial",transition:"background-color 0.3s ease-in-out","&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.light[900])},"&:not(:first-of-type)":{borderTopLeftRadius:0,borderTopRightRadius:0},"&:hover":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[700]},"&:focus":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[700]},"&:active":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[950]}},popoverTitle:{fontSize:e.palette.geoViewFontSize.default,fontWeight:"700",color:e.palette.geoViewColor.textColor.main,borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[100],"}")}}}},26028:(e,t,n)=>{"use strict";n.d(t,{j:()=>A});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(5281),c=n(11282),u=n(9951),d=n(58150),h=n(95864),p=n(13604),f=n(33828),g=n(27604),m=n(73854),y=n(6883),v=n(99868),b=n(97282);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t{"use strict";n.d(t,{A:()=>c});var r=n(55907),i=n(30538),o=n(8058),a=n(24258),s=n(74816),l=n(6883);const c=function(){var e=(0,i.useState)({angle:0}),t=(0,r.A)(e,2),n=t[0],c=t[1],u=(0,i.useState)(0),d=(0,r.A)(u,2),h=d[0],p=d[1],f=(0,i.useRef)(0),g=(0,s.HA)(),m=(0,s.ej)(),y=(0,s.C0)(),v=(0,s.Bm)(),b=(0,s.uE)(),w=(0,s.a7)(),x=(0,s.ht)(),A=(0,s.U6)(),S=A.getPixelFromCoordinate,C=A.setRotation;return(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("USEMANAGEARROW - northArrowElement",m,y),"EPSG:".concat(g)===o.M.PROJECTION_NAMES.LCC&&!m.isNorthVisible){var e=parseFloat(m.degreeRotation),t=270-e;if(y&&(Math.round(f.current)!==Math.round(e)||v>7))f.current=e,C((180-e)*(2*Math.PI)/360),c({angle:0});else{var n=y?b*(180/Math.PI):0;c({angle:90-t+n})}!function(e){var t=x[0]/2,n=t-12;if(y||null===S(a.Tg))p(n);else{var i=S(a.Tg),o=i[1],s={x:n,y:S(w)[1],m:1};if(i[0]<2400&&i[1]>-1300&&-i[1]<3e3){var l=(0,r.A)(i,2);s.x=l[0],s.y=l[1],s.m=-1}var c=s.y/Math.sin(.01745329252*e),u=o<0?s.x+s.m*(Math.sin(.01745329252*(90-e))*c)-12:i[0]-24;u=Math.max(n-.25*t,Math.min(u,n+.25*t)),p(u)}}(t)}}),[m,y]),{rotationAngle:n,northOffset:h}}},31680:(e,t,n)=>{"use strict";n.d(t,{d:()=>o,e:()=>i});var r=n(97282);function i(e){var t=e.width,n=e.height;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",focusable:"false",style:{width:t,height:n},children:(0,r.jsxs)("g",{id:"northarrow",transform:"translate(-285.24 -142.234)",children:[(0,r.jsx)("path",{id:"path3770-7",d:"M305.91 156.648a8.652 8.652 0 0 1-8.654 8.653 8.652 8.652 0 0 1-8.653-8.653 8.653 8.653 0 0 1 8.653-8.653 8.653 8.653 0 0 1 8.653 8.653z",fill:"#fff",stroke:"#fff",strokeWidth:".895"}),(0,r.jsx)("path",{id:"path3770",d:"M304.982 156.648a7.725 7.725 0 0 1-7.726 7.726 7.725 7.725 0 0 1-7.726-7.726 7.725 7.725 0 0 1 7.726-7.726 7.725 7.725 0 0 1 7.726 7.726z",fill:"none",stroke:"#6d6d6d",strokeWidth:".799"}),(0,r.jsx)("path",{id:"path3774",d:"M297.256 156.648v-8.525",fill:"none",stroke:"#000",strokeWidth:".067"}),(0,r.jsx)("path",{d:"M297.258 143.48l8.793 22.432-8.811-8.812-8.812 8.812z",id:"path3778",fill:"#fff",stroke:"#fff",strokeWidth:".912"}),(0,r.jsx)("path",{d:"M297.256 144.805l7.726 19.568-7.726-7.726-7.726 7.726z",id:"path3780",fill:"#d6d6d6",stroke:"#000",strokeWidth:".266",strokeLinecap:"square"}),(0,r.jsx)("path",{id:"path6038",d:"M297.256 144.666l-7.726 19.568 7.726-7.726",fill:"#6d6d6d",strokeWidth:".296",strokeLinecap:"square"})]})})}function o(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[(0,r.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"})]})}},20354:(e,t,n)=>{"use strict";n.d(t,{l:()=>f,g:()=>g});var r=n(30538),i=n(47001),o=n(33828),a=n(8058),s=n(31680),l=function(e){var t,n;return{northArrowContainer:{left:"50%",position:"absolute"},northArrow:{width:null===(t=e.overrides)||void 0===t||null===(t=t.northArrow)||void 0===t?void 0:t.size.width,height:null===(n=e.overrides)||void 0===n||null===(n=n.northArrow)||void 0===n?void 0:n.size.height}}},c=n(74816),u=n(25969),d=n(17755),h=n(6883),p=n(97282);function f(){h.vF.logTraceRender("components/north-arrow/north-arrow");var e=(0,i.A)(),t=l(e),n=(0,r.useRef)(null),d=(0,c.HA)(),f=(0,c.ej)(),g=(0,u.A)(),m=g.rotationAngle,y=g.northOffset;return"EPSG:".concat(d)===a.M.PROJECTION_NAMES.LCC?(0,p.jsx)(o.Box,{ref:n,sx:t.northArrowContainer,style:{transition:e.transitions.create(["all","transform"],{duration:e.transitions.duration.standard,easing:e.transitions.easing.easeOut}),transform:"rotate(".concat(m.angle,"deg)"),visibility:f.isNorthVisible?"hidden":"visible",left:y},children:(0,p.jsx)(s.e,{width:t.northArrow.width,height:t.northArrow.height})}):(0,p.jsx)(o.Box,{})}function g(){var e=(0,d.Jh)(),t="".concat(e,"-northpole"),n=(0,r.useRef)(null),i=(0,c.HA)(),l=(0,c.U6)().setOverlayNorthMarkerRef;return setTimeout((function(){return l(n.current)}),0),(0,p.jsx)(o.Box,{ref:n,id:t,style:{visibility:"EPSG:".concat(i)===a.M.PROJECTION_NAMES.LCC?"visible":"hidden"},children:(0,p.jsx)(s.d,{})})}},57145:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(55907),i=n(67970),o=n.n(i),a=n(30538),s=n(43331),l=n(47001),c=n(59149),u=n(38811),d=n(33828),h=function(e){return{notificationPanel:{display:"flex",flexDirection:"column",width:"350px",maxHeight:"500px",overflowY:"hidden",gap:"8px",marginLeft:"18px",backgroundColor:e.palette.geoViewColor.bgColor.light[200],borderRadius:"5px",boxShadow:2},notificationsHeader:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"20px",borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[100],"}")},notificationsTitle:{fontSize:e.palette.geoViewFontSize.default,fontWeight:"700",color:e.palette.geoViewColor.textColor.main},notificationsList:{overflowY:"auto",padding:"0px 0px 20px 0px"},notificationItem:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",padding:"10px 15px","&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300])},"& .MuiIconButton-root":{color:e.palette.geoViewColor.textColor.lighten(.2,.4),"&:hover":{color:e.palette.geoViewColor.textColor.lighten(.2,.6)}}},notificationsCount:{backgroundColor:e.palette.geoViewColor.bgColor.dark[800],color:e.palette.geoViewColor.bgColor.light[800],fontSize:e.palette.geoViewFontSize.sm,borderRadius:"10px",height:"20px",width:"40px",textAlign:"center",lineHeight:"20px"}}},p=n(15205),f=n(17755),g=n(6883),m=n(74816),y=n(39561),v=n(97282);function b(){var e;g.vF.logTraceRender("components/notifications/notifications");var t=(0,s.useTranslation)().t,n=(0,l.A)(),i=h(n),b=(0,f.Jh)(),w=document.getElementById("shell-".concat(b)),x=(0,a.useState)(null),A=(0,r.A)(x,2),S=A[0],C=A[1],E=(0,a.useState)(!1),k=(0,r.A)(E,2),T=k[0],_=k[1],O=(0,a.useState)(0),P=(0,r.A)(O,2),I=P[0],M=P[1],L=(0,a.useState)(!1),R=(0,r.A)(L,2),j=R[0],F=R[1],D=(0,p.v9)(),N=(0,m.GT)(),B=(0,p.dD)(),z=B.removeNotification,V=B.removeAllNotifications;(0,a.useEffect)((function(){g.vF.logTraceUseEffect("Notifications - notifications list changed",I,D);var e=o()(D,(function(e){return e.count}));e>I&&_(!0),M(e)}),[D,I]),(0,a.useEffect)((function(){if(g.vF.logTraceUseEffect("Notifications - hasNewNotification change",T),T){var e=setTimeout((function(){return _(!1)}),1e3);return function(){return clearTimeout(e)}}}),[T,I]);var $=function(){j&&F(!1)},G=(0,y.yb)(),U=(0,u.CS)(d.Box);function W(e){switch(e.notificationType){case"success":return(0,v.jsx)(d.CheckCircleIcon,{color:"success"});case"info":return(0,v.jsx)(d.InfoIcon,{color:"info"});case"warning":return(0,v.jsx)(d.WarningIcon,{color:"warning"});default:return(0,v.jsx)(d.ErrorIcon,{color:"error"})}}function q(e,t){return(0,v.jsxs)(d.Box,{sx:i.notificationItem,children:[(0,v.jsx)(d.Box,{children:W(e)}),(0,v.jsx)(d.Box,{sx:{flexGrow:1,fontSize:n.palette.geoViewFontSize.sm,color:n.palette.geoViewColor.textColor.light[250]},children:(0,v.jsx)(d.Box,{component:"span",children:e.message})}),e.count>1?(0,v.jsx)(d.Box,{children:(0,v.jsx)(d.Box,{sx:i.notificationsCount,children:e.count})}):null,(0,v.jsx)(d.IconButton,{onClick:function(){return function(e){z(e.key)}(e)},children:(0,v.jsx)(d.CloseIcon,{})})]},t)}return(0,v.jsx)(c.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:$,children:(0,v.jsxs)(d.Box,{children:[(0,v.jsx)(d.Badge,{badgeContent:I>99?"99+":I,color:"error",children:(0,v.jsxs)(d.IconButton,{id:"notification",tooltip:"appbar.notifications","aria-label":"appbar.notifications",tooltipPlacement:"bottom-end",onClick:function(e){C(e.currentTarget),F(!j)},className:"".concat("dynamic"===N?"buttonFilled":"style4"," ").concat(j?"active":""),color:"primary",sx:{width:"2.375rem",height:"2.375rem"},children:[!T&&(0,v.jsx)(d.Box,{sx:{display:"inline-flex",alignItems:"center"},children:(0,v.jsx)(d.NotificationsIcon,{})}),T&&(0,v.jsx)(U,{sx:{display:"inline-flex",alignItems:"center"},style:G,children:(0,v.jsx)(d.NotificationsActiveIcon,{})})]})}),(0,v.jsx)(d.Popper,{open:j,anchorEl:S,placement:"right-end",onClose:$,container:w,children:(0,v.jsxs)(d.Paper,{sx:i.notificationPanel,children:[(0,v.jsxs)(d.Box,{sx:i.notificationsHeader,children:[(0,v.jsx)(d.Typography,{component:"h3",sx:i.notificationsTitle,children:t("appbar.notifications")}),(0,v.jsx)(d.Button,{type:"text",variant:"contained",disabled:0===D.length,size:"small",onClick:function(){V()},"aria-label":null!==(e=t("appbar.removeAllNotifications"))&&void 0!==e?e:"",children:t("appbar.removeAllNotifications")})]}),(0,v.jsx)(d.Box,{sx:i.notificationsList,children:D.length>0?D.map((function(e,t){return q(e,t)})):(0,v.jsx)(d.Typography,{component:"div",sx:{padding:"10px 15px"},children:t("appbar.no_notifications_available")})})]})})]})})}},73518:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r=n(55907),i=n(30538),o=n(43331),a=n(33828),s=n(6883),l=n(44912),c={toggleBtn:{transform:"rotate(45deg)",color:"black",zIndex:150,"&:hover":{cursor:"pointer"},"&.minimapOpen":{transform:"rotate(-45deg)"},"&.minimapClosed":{transform:"rotate(135deg)"}},toggleBtnContainer:{zIndex:150,position:"absolute",top:0,right:0}},u=n(97282);function d(e){var t=e.overviewMap,n=(0,(0,o.useTranslation)().t)("mapctrl.overviewmap.toggle"),d=(0,i.useState)(!0),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useRef)(null);return(0,i.useEffect)((function(){if(s.vF.logTraceUseEffect("OVERVIEW-MAP-TOGGLE - mount"),g&&g.current){var e=g.current.closest("button");e&&(e.setAttribute("aria-label",n),e.addEventListener("click",(function(){var e=t.getCollapsed();f(!e);var n=t.getOverviewMap().getTargetElement();n&&(e?(n.style.width="40px",n.style.height="40px",n.style.margin="0px"):(n.style.width="150px",n.style.height="150px"))})))}}),[]),(0,u.jsx)(a.Tooltip,{title:n,children:(0,u.jsx)(l.A,{ref:g,sx:c.toggleBtnContainer,children:(0,u.jsx)(l.A,{component:"div",sx:c.toggleBtn,className:p?"minimapOpen":"minimapClosed",style:{margin:0,padding:0,height:"initial",minWidth:"initial"},children:(0,u.jsx)(a.ChevronLeftIcon,{})})})})}},42984:(e,t,n)=>{"use strict";n.d(t,{G:()=>D});var r=n(30538),i=n(17004),o=n(68676),a=n(43331),s=n(21451),l=n(90932),c=n(11738),u=n(80739),d=n(85208),h=n(50375),p=n(35552),f=n(73715),g=n(15617),m=n(31576),y=n(27387),v=n(258),b=n(96687),w=n(61170),x=n(15355),A=n(59119),S=n(47064);const C=.75,E=.1;class k extends u.A{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=void 0===e.collapsed||e.collapsed,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=void 0!==e.rotateWithView&&e.rotateWithView,this.viewExtent_=void 0;const t=void 0!==e.className?e.className:"ol-overviewmap",n=void 0!==e.tipLabel?e.tipLabel:"Overview map",r=void 0!==e.collapseLabel?e.collapseLabel:"‹";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r):this.collapseLabel_=r;const i=void 0!==e.label?e.label:"›";"string"==typeof i?(this.label_=document.createElement("span"),this.label_.textContent=i):this.label_=i;const o=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,a=document.createElement("button");a.setAttribute("type","button"),a.title=n,a.appendChild(o),a.addEventListener(d.A.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const s=new h.A({view:e.view,controls:new c.A,interactions:new c.A});this.ovmap_=s,e.layers&&e.layers.forEach((function(e){s.addLayer(e)}));const l=document.createElement("div");l.className="ol-overviewmap-box",l.style.boxSizing="border-box",this.boxOverlay_=new m.A({position:[0,0],positioning:"center-center",element:l}),this.ovmap_.addOverlay(this.boxOverlay_);const u=t+" "+b.XI+" "+b.$N+(this.collapsed_&&this.collapsible_?" "+b.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),p=this.element;p.className=u,p.appendChild(this.ovmapDiv_),p.appendChild(a);const f=this,g=this.boxOverlay_,y=this.boxOverlay_.getElement(),v=function(e){const t={clientX:(n=e).clientX,clientY:n.clientY};var n;const r=s.getEventCoordinate(t);g.setPosition(r)},w=function(e){const t=s.getEventCoordinateInternal(e);f.getMap().getView().setCenterInternal(t),window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",w)};this.ovmapDiv_.addEventListener("pointerdown",(function(){event.target===y&&window.addEventListener("pointermove",v),window.addEventListener("pointerup",w)}))}setMap(e){const t=this.getMap();if(e!==t){if(t){const e=t.getView();e&&this.unbindView_(e),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push((0,x.KT)(e,g.A.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const t=e.getView();t&&this.bindView_(t),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===f.A.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const n=this.getMap().getView();this.bindView_(n)}else this.ovmap_.isRendered()||e.key!==f.A.TARGET&&e.key!==f.A.SIZE||this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new y.Ay({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(v.A.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_(),e.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())}unbindView_(e){e.removeChangeListener(v.A.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&(0,w.equals)(r,this.viewExtent_))return;this.viewExtent_=r;const i=t.getSize(),o=t.getView().calculateExtentInternal(i),a=t.getPixelFromCoordinateInternal((0,w.getTopLeft)(r)),s=t.getPixelFromCoordinateInternal((0,w.getBottomRight)(r)),l=Math.abs(a[0]-s[0]),c=Math.abs(a[1]-s[1]),u=i[0],d=i[1];lu*C||c>d*C?this.resetExtent_():(0,w.containsExtent)(o,r)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtentInternal(n),i=t.getView(),o=Math.log(7.5)/Math.LN2,a=1/(Math.pow(2,o/2)*E);(0,w.scaleFromCenter)(r,a),i.fitInternal((0,A.VY)(r))}recenter_(){const e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView(),i=t.getView(),o=this.rotateWithView_?0:-r.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=r.getCenter(),c=r.getResolution(),u=i.getResolution(),d=n[0]*c/u,h=n[1]*c/u;if(a.setPosition(l),s){s.style.width=d+"px",s.style.height=h+"px";const e="rotate("+o+"rad)";s.style.transform=e}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,x.Jz)(this.ovmap_,p.A.POSTRENDER,(e=>{delete this.ovmapPostrenderKey_,this.updateBox_()})))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(b.nT),this.collapsed_?(0,S.fo)(this.collapseLabel_,this.label_):(0,S.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered())return this.viewExtent_=void 0,void e.render();e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}}const T=k;var _=n(71229),O=n(73518),P=n(17755),I=n(15205),M=n(74816),L=n(27991),R=n(6883),j=n(44912),F=n(97282);function D(e){R.vF.logTraceRender("components/overview-map/overview-map");var t=e.olMap,n=(0,P.Jh)(),c=(0,M.kg)(),u=(0,M.Bm)(),d=(0,M.HA)(),h=(0,I.t)(),p=(0,I.MF)();return(0,r.useEffect)((function(){R.vF.logTraceUseEffect("OVERVIEW-MAP - zoom level changed");var e=t.getControls().getArray().filter((function(e){return e instanceof T}))[0];e&&(u{"use strict";n.d(t,{F:()=>y});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(33828),c=function(e){return{scaleControl:{display:"none"},scaleContainer:{display:"flex",backgroundColor:"transparent",border:"none",height:"100%",":hover":{backgroundColor:"transparent",color:e.palette.geoViewColor.white},"&.interaction-static":{padding:"5px",backdropFilter:"blur(5px)"}},scaleExpandedContainer:{display:"flex",flexDirection:"column",justifyContent:"center",height:"100%",gap:e.spacing(5)},scaleExpandedCheckmarkText:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"18px",maxHeight:"18px"},scaleText:{fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[800],whiteSpace:"nowrap",borderBottom:"2px solid ".concat(e.palette.geoViewColor.primary.light[300]),textTransform:"lowercase",position:"relative",display:"inline-block","&.interaction-static":{fontSize:e.palette.geoViewFontSize.md,fontWeight:"bold",borderBottom:"2px solid","&.hasScaleLine::before, &.hasScaleLine::after":{backgroundColor:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),width:"2px !important"}},"&.hasScaleLine::before, &.hasScaleLine::after":{content:'""',position:"absolute",bottom:"-1px",width:"1px",height:"8px",backgroundColor:e.palette.geoViewColor.bgColor.light[800]},"&.hasScaleLine::before":{left:"0px"},"&.hasScaleLine::after":{right:"0px"}},scaleCheckmark:{paddingRight:5,color:e.palette.geoViewColor.bgColor.light[800]}}},u=n(74816),d=n(73854),h=n(17755),p=n(6883),f=n(97282);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t{"use strict";n.d(t,{V:()=>r,e:()=>i});var r=function(e){var t="light"===e.palette.mode?e.palette.geoViewColor.primary.dark[300]:e.palette.geoViewColor.primary.light[300];return{trap:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:e.spacing(0),left:e.spacing(0),width:"100%",zIndex:e.zIndex.focusDialog,overflow:"hidden"},exitFocus:{border:"unset"},enableFocus:{border:"5px solid ".concat(t,"\n }")}}},i=function(e){return{all:{height:"100%",width:"100%","& .layer-icon":{padding:3,borderRadius:0,border:"1px solid",borderColor:e.palette.geoViewColor.grey.dark[100],boxShadow:2,background:e.palette.geoViewColor.white,objectFit:"scale-down",width:"35px",height:"35px",marginRight:"10px"},"& a[href]":{color:e.palette.geoViewColor.primary.main,"*:hover":{color:e.palette.geoViewColor.primary.dark[300]}},"& *::-webkit-scrollbar":{width:"8px",height:"8px"},"& *::-webkit-scrollbar-track":{background:e.palette.geoViewColor.bgColor.darken(.5,.5),borderRadius:"5px"},"& *::-webkit-scrollbar-thumb":{background:e.palette.geoViewColor.bgColor.darken(.5),borderRadius:"5px"},".bordered":{border:"1px solid ".concat(e.palette.geoViewColor.bgColor.darken(.5,.5)),boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.darken(.2,.5))},".bordered-primary":{border:"1px solid ".concat(e.palette.geoViewColor.primary.darken(.1,.9)),boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.dark[200])}},shell:{display:"flex",flexDirection:"column",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),bottom:e.spacing(0),overflow:"hidden",zIndex:0,height:"100%"},mapShellContainer:{display:"flex",flexDirection:"row",minHeight:"100%",width:"100%",position:"relative",alignItems:"stretch"},mapContainer:{display:"flex",flexDirection:"column",minHeight:"100%",width:"100%",position:"relative",alignItems:"stretch"},skip:{position:"absolute",left:-1e3,height:"1px",width:"1px",textAlign:"left",overflow:"hidden",backgroundColor:e.palette.geoViewColor.white,zIndex:e.zIndex.tooltip,"&:active, &:focus":{left:e.spacing(0),zIndex:e.zIndex.tooltip,width:"auto",height:"auto",overflow:"visible"}}}}},11089:(e,t,n)=>{"use strict";n.d(t,{S:()=>m});var r=n(55907),i=n(30538),o=n(43331),a=n(47001),s=n(86853),l=n(33828),c=n(59293),u=n(86543),d=n(24258),h=n(15205),p=n(73854),f=n(6883),g=n(97282);function m(e){f.vF.logTraceRender("containers/focus-trap/focus-trap");var t=e.mapId,n=e.focusTrapId,m=(0,o.useTranslation)().t,y=(0,a.A)(),v=(0,u.V)(y),b=(0,s.A)(y.breakpoints.down("md")),w=(0,i.useState)(!1),x=(0,r.A)(w,2),A=x[0],S=x[1],C=(0,i.useRef)(),E=(0,h.dD)().setCrosshairActive,k=(0,p.A6)().setActiveTrapGeoView,T=(0,h.sd)(),_=T.querySelector('[id^="mapTargetElement-"]'),O=(0,i.useRef)(_);O.current=_;var P=(0,i.useRef)();function I(e){var t;t=e,O.current===document.activeElement&&"Space"===t.code&&t.preventDefault()}function M(){k(!1),T.classList.remove("map-focus-trap"),T.querySelector(".geoview-shell").removeEventListener("keydown",L),document.removeEventListener("keydown",I),setTimeout((function(){var e;return null===(e=document.getElementById("toplink-".concat(n)))||void 0===e?void 0:e.focus()}),0),E(!1)}void 0!==O.current&&(P.current=O.current);var L=function(e){d.xb.includes(e.code)||(_.style.border=v.exitFocus.border),"KeyQ"===e.code&&e.ctrlKey&&M()};function R(e){var r=e.target.id.split("-")[0];("Tab"===e.code&&!e.shiftKey&&"toplink"===r||"Tab"===e.code&&e.shiftKey&&"bottomlink"===r)&&(e.preventDefault(),e.stopPropagation(),C.current="toplink"===r?"bottomlink-".concat(n):"toplink-".concat(n),S(!0),document.addEventListener("keydown",I),T.querySelector(".geoview-shell").addEventListener("mousemove",(function(){S(!1),M(),document.getElementById("mapTargetElement-".concat(t)).style.border=v.exitFocus.border}),{once:!0}))}return(0,i.useEffect)((function(){var e,t;return null===(e=document.getElementById("bottomlink-".concat(n)))||void 0===e||e.addEventListener("keydown",R),null===(t=document.getElementById("toplink-".concat(n)))||void 0===t||t.addEventListener("keydown",R),function(){var e,t;null===(e=document.getElementById("bottomlink-".concat(n)))||void 0===e||e.removeEventListener("keydown",R),null===(t=document.getElementById("toplink-".concat(n)))||void 0===t||t.removeEventListener("keydown",R),document.removeEventListener("keydown",I)}}),[]),(0,g.jsx)(l.Modal,{container:document.getElementById(n),modalId:n,open:A,"aria-labelledby":"wcag-dialog-title","aria-describedby":"wcag-dialog-description",fullScreen:b,sx:v.trap,titleId:"wcag-dialog-title",title:m("keyboardnav.focusdialog.title"),contentTextId:"wcag-dialog-description",contentModal:(0,g.jsx)(c.S,{htmlContent:m("keyboardnav.focusdialog.main")}),actions:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Button,{id:"enable-focus",tooltip:m("keyboardnav.focusdialog.button.enable"),tooltipPlacement:"top-end",autoFocus:!0,onClick:function(){var e;S(!1),e=T.querySelector(".geoview-shell"),k(!0),e.classList.add("map-focus-trap"),e.addEventListener("keydown",L),setTimeout((function(){var e;return null===(e=document.getElementById("mapTargetElement-".concat(t)))||void 0===e?void 0:e.focus()}),0),E(!0),document.getElementById("mapTargetElement-".concat(t)).style.border=v.enableFocus.border},type:"text",sx:{width:"initial",textTransform:"none"},children:m("keyboardnav.focusdialog.button.enable")}),(0,g.jsx)(l.Button,{id:"skip-focus",tooltip:m("keyboardnav.focusdialog.button.skip"),tooltipPlacement:"top-end",onClick:function(){S(!1),setTimeout((function(){var e;return null===(e=document.getElementById(C.current))||void 0===e?void 0:e.focus()}),0)},type:"text",sx:{width:"initial",textTransform:"none"},children:m("keyboardnav.focusdialog.button.skip")})]})})}},59293:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var r=n(42432),i=n(55723),o=n(31082);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const a=o;var s=n(44912),l=n(97282);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{$:()=>R});var r=n(42432),i=n(55907),o=n(30538),a=n(43331),s=n(47001),l=n(22784),c=n(65988),u=n(76099),d=n(26028),h=n(1102),p=n(9036),f=n(33828),g=n(86543),m=n(74816),y=n(15205),v=n(73854),b=n(59480),w=n(24795),x=n(71068),A=n(6883),S=n(43381),C=n(99707),E=n(97282);function k(){var e,t,n,r,l;A.vF.logTraceRender("components/data-table/data-table-modal");var c=(0,a.useTranslation)().t,u=(0,s.A)(),d=(0,x.S)(u),h=(0,o.useState)(!0),p=(0,i.A)(h,2),g=p[0],m=p[1],y=(0,v.A6)().disableFocusTrap,b=(0,v.NP)().activeElementId,k=(0,w.u1)(),T=(0,S.Xh)(),_=(0,C.bc)(T),O=(0,o.useMemo)((function(){return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - layer",_,k),null==_?void 0:_.find((function(e){return e.layerPath===k}))}),[_,k]),P=(0,o.useCallback)((function(e){return A.vF.logTraceUseCallback("DATA-TABLE-MODAL - getCellValue"),(0,E.jsx)(f.Box,{component:"div",sx:d.tableCell,children:e})}),[d.tableCell]),I=(0,o.useCallback)((function(e){return A.vF.logTraceUseCallback("DATA-TABLE-MODAL - getTableHeader"),(0,E.jsx)(f.Box,{component:"span",sx:{whiteSpace:"nowrap"},children:e})}),[]),M=(0,o.useMemo)((function(){var e;if(A.vF.logTraceUseMemo("DATA-TABLE-MODAL - columns",null==O?void 0:O.features),null==O||!O.fieldInfos)return[];var t=Object.entries(null!==(e=null==O?void 0:O.fieldInfos)&&void 0!==e?e:{}),n=[];return t.forEach((function(e){var t,r=(0,i.A)(e,2),a=r[0],s=r[1];n.push({id:a,accessorFn:function(e){var t,n,r,i;return(0,o.isValidElement)(e[a])?e[a]:("string"==typeof(null===(t=e[a])||void 0===t?void 0:t.value)||"number"==typeof(null===(n=e[a])||void 0===n?void 0:n.value))&&null!==(r=null===(i=e[a])||void 0===i?void 0:i.value)&&void 0!==r?r:""},header:null!==(t=null==s?void 0:s.alias)&&void 0!==t?t:"",Cell:function(e){var t=e.cell;return P(t.getValue())},Header:function(e){var t=e.column;return I(t.columnDef.header)},maxSize:120})})),n}),[null==O?void 0:O.fieldInfos]),L=(0,o.useMemo)((function(){var e,t;return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - rows",null==O?void 0:O.fieldInfos),null!==(e=null==O||null===(t=O.features)||void 0===t?void 0:t.map((function(e){return e.fieldInfo})))&&void 0!==e?e:[]}),[null==O?void 0:O.features,null==O?void 0:O.fieldInfos]);return(0,o.useEffect)((function(){A.vF.logTraceUseEffect("DATA-TABLE-MODAL - query status");var e=T.find((function(e){return e.layerPath===k}));"error"!==(null==e?void 0:e.queryStatus)&&"processed"!==(null==e?void 0:e.queryStatus)?m(!0):m(!1)}),[T,k]),(0,E.jsxs)(f.Dialog,{open:"layerDataTable"===b,onClose:y,maxWidth:"xl",children:[(0,E.jsx)(f.DialogTitle,{children:"".concat(c("legend.tableDetails")," ").concat(null!==(e=null==O?void 0:O.layerName)&&void 0!==e?e:k)}),(0,E.jsxs)(f.DialogContent,{sx:{overflow:"hidden"},children:[g&&(0,E.jsx)(f.Box,{sx:{minHeight:"300px",minWidth:"450px",position:"relative"},children:(0,E.jsx)(f.CircularProgress,{isLoaded:!g,sx:{backgroundColor:"inherit"}})}),!g&&(0,E.jsx)(f.MRTTable,{columns:M,data:L,enableColumnActions:!1,enablePagination:(null!==(t=null==O||null===(n=O.features)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>50,enableBottomToolbar:(null!==(r=null==O||null===(l=O.features)||void 0===l?void 0:l.length)&&void 0!==r?r:0)>50,initialState:{density:"compact",pagination:{pageSize:50,pageIndex:0}},muiPaginationProps:{rowsPerPageOptions:[50,100]},muiTableContainerProps:{sx:{maxHeight:"60vh"}},enableStickyHeader:!0,enableSorting:!0,positionToolbarAlertBanner:"none",enableGlobalFilter:!1,enableColumnFilters:!1,enableDensityToggle:!1,enableFilters:!1,enableFullScreenToggle:!1,enableHiding:!1,enableTopToolbar:!1})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:y,type:"text",autoFocus:!0,children:c("general.close")})})]})}var T=n(63744),_=n(98068);function O(){var e;A.vF.logTraceRender("components/details/feature-detail-modal");var t=(0,a.useTranslation)().t,n=(0,s.A)(),r=(0,T.S)(n),l=(0,v.A6)().disableFocusTrap,c=(0,v.NP)().activeElementId,u=(0,S.j3)(),d=(0,o.useState)(""),h=(0,i.A)(d,2),p=h[0],g=h[1],m=(0,o.useMemo)((function(){var e;A.vF.logTraceUseMemo("DETAILS PANEL - Feature Detail Modal - featureInfoList");var t=u.fieldInfo[null!==u.nameField?u.nameField:0];return g(void 0!==t?t.value:""),Object.keys(null!==(e=null==u?void 0:u.fieldInfo)&&void 0!==e?e:{}).map((function(e){return{fieldKey:u.fieldInfo[e].fieldKey,value:u.fieldInfo[e].value,dataType:u.fieldInfo[e].dataType,alias:u.fieldInfo[e].alias?u.fieldInfo[e].alias:e,domain:null}}))}),[u]);return(0,E.jsxs)(f.Dialog,{open:"featureDetailDataTable"===c&&!!u,onClose:l,maxWidth:"lg",disablePortal:!0,sx:r.featureDetailModal,children:[(0,E.jsx)(f.DialogTitle,{children:t("details.featureDetailModalTitle")}),(0,E.jsxs)(f.DialogContent,{children:[(0,E.jsxs)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",pb:10,children:[(0,E.jsx)(f.Box,{component:"img",alt:null!==(e=null==u?void 0:u.nameField)&&void 0!==e?e:"",src:u.featureIcon.toDataURL().toString(),className:"layer-icon"}),(0,E.jsx)(f.Typography,{sx:{display:"inline-block"},component:"div",children:p})]}),(0,E.jsx)(f.List,{sx:r.featureDetailListContainer,children:(0,E.jsx)(_.P,{featureInfoList:m})})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:l,type:"text",size:"small",autoFocus:!0,children:t("general.close")})})]})}var P=n(17755),I=n(11089);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t{"use strict";n.d(t,{O7:()=>b,oy:()=>x,Jh:()=>w});var r=n(92902);const i=e=>(t,n,r)=>{const i=r.subscribe;r.subscribe=(e,t,n)=>{let o=e;if(t){const i=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());o=n=>{const r=e(n);if(!i(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return i(o)};return e(t,n,r)};var o=n(80363),a=n.n(o),s=n(55061),l=n(15205),c=n(44837),u=n(24795),d=n(74816),h=n(43381),p=n(84287),f=n(29131),g=n(38880),m=n(73854),y=n(6883),v=n(2265),b=i((function(e,t){return y.vF.logTraceCore("Initializing store core states..."),{mapConfig:void 0,setMapConfig:function(n){var r,i,o;y.vF.logDebug("Sending the map config to the store...",n.mapId);for(var s=a()(n),l=0;l<((null===(c=s.map)||void 0===c||null===(c=c.listOfGeoviewLayerConfig)||void 0===c?void 0:c.length)||0);l++){var c,u=(0,v.si)(s.map.listOfGeoviewLayerConfig[l]);s.map.listOfGeoviewLayerConfig[l]=u}e({mapConfig:s,mapId:n.mapId}),t().appState.setDefaultConfigValues(n),t().mapState.setDefaultConfigValues(n),t().uiState.setDefaultConfigValues(n),null!==(r=n.footerBar)&&void 0!==r&&r.tabs.core.includes("time-slider")&&e({timeSliderState:(0,p.mU)(e,t)}),null!==(i=n.footerBar)&&void 0!==i&&i.tabs.core.includes("geochart")&&e({geochartState:(0,f.Dj)(e,t)}),null!==(o=n.corePackages)&&void 0!==o&&o.includes("swiper")&&e({swiperState:(0,g.eC)(e,t)})},appState:(0,l.$g)(e,t),detailsState:(0,c.yw)(e,t),dataTableState:(0,h.Mo)(e,t),layerState:(0,u.tK)(e,t),mapState:(0,d.aM)(e,t),uiState:(0,m.Oz)(e,t)}})),w=((0,r.vt)()(b),function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapId}))}),x=function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapConfig}))}},26265:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>r.Jh,U6:()=>i.U6});var r=n(17755),i=(n(15205),n(43381),n(44837),n(29131),n(24795),n(74816));n(84287),n(73854),n(55061)},15205:(e,t,n)=>{"use strict";n.d(t,{$g:()=>p,D4:()=>f,DR:()=>x,MF:()=>y,_V:()=>b,dD:()=>E,e_:()=>g,iO:()=>C,kv:()=>v,lk:()=>S,sd:()=>w,t:()=>m,v9:()=>A});var r=n(29067),i=n(42432),o=n(92902),a=n(16775),s=n(55061),l=n(6883),c=n(76200),u=n(43852);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";n.d(t,{D5:()=>d,Mo:()=>c,Xh:()=>u,_M:()=>h,eQ:()=>g,j3:()=>f,x9:()=>p});var r=n(42432),i=n(92902),o=n(75687),a=n(55061);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{Jr:()=>p,MQ:()=>f,SK:()=>h,aU:()=>u,yU:()=>d,yw:()=>c});var r=n(29067),i=n(42432),o=n(92902),a=n(55061);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{Dj:()=>l,N3:()=>h,bS:()=>u,eq:()=>d,if:()=>c});var r=n(42432),i=n(92902),o=n(55061);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{$T:()=>v,Uk:()=>w,Yo:()=>f,Zt:()=>p,q5:()=>y,tK:()=>h,u1:()=>g,wU:()=>b,y5:()=>m});var r=n(29067),i=n(42432),o=n(92902),a=n(55061),s=n(24258),l=n(27991),c=n(59155);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{Bm:()=>L,C0:()=>v,GT:()=>b,HA:()=>_,JQ:()=>E,KE:()=>T,Mk:()=>A,NZ:()=>f,Nt:()=>x,Rs:()=>y,U6:()=>R,_I:()=>C,a7:()=>g,aM:()=>h,ej:()=>S,gx:()=>P,ht:()=>I,kI:()=>w,kg:()=>k,re:()=>p,uE:()=>O,wE:()=>M,yC:()=>m});var r=n(29067),i=n(42432),o=n(92902),a=n(55061),s=n(8058),l=n(27991),c=n(43852);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t-1||!1,overviewMap:n.components.indexOf("overview-map")>-1||!1,overviewMapHideZoom:void 0!==n.overviewMap?n.overviewMap.hideOnZoom:0,pointMarkers:(null===(i=n.map.overlayObjects)||void 0===i?void 0:i.pointMarkers)||{},rotation:n.map.viewSettings.rotation||0,zoom:null!==(o=n.map.viewSettings.initialView)&&void 0!==o&&o.zoomAndCenter?n.map.viewSettings.initialView.zoomAndCenter[0]:3.5})})},actions:{createBasemapFromOptions:function(e){return l.d.setBasemap(t().mapId,e)},getPixelFromCoordinate:function(e){return l.d.getPixelFromCoordinate(t().mapId,e)},getIndexFromOrderedLayerInfo:function(e){return l.d.getMapIndexFromOrderedLayerInfo(t().mapId,e)},getLegendCollapsedFromOrderedLayerInfo:function(e){return l.d.getMapLegendCollapsedFromOrderedLayerInfo(t().mapId,e)},getVisibilityFromOrderedLayerInfo:function(e){return l.d.getMapVisibilityFromOrderedLayerInfo(t().mapId,e)},showClickMarker:function(e){l.d.clickMarkerIconShow(t().mapId,e)},hideClickMarker:function(){l.d.clickMarkerIconHide(t().mapId)},highlightBBox:function(e,n){l.d.highlightBBox(t().mapId,e,n)},addHighlightedFeature:function(e){l.d.addHighlightedFeature(t().mapId,e)},removeHighlightedFeature:function(e){l.d.removeHighlightedFeature(t().mapId,e)},addPointMarkers:function(e,n){return l.d.addPointMarkers(t().mapId,e,n)},removePointMarkersOrGroup:function(e,n){return l.d.removePointMarkersOrGroup(t().mapId,e,n)},reorderLayer:function(e,n){l.d.reorderLayer(t().mapId,e,n)},resetBasemap:function(){return l.d.resetBasemap(t().mapId)},setCurrentBasemapOptions:function(e){t().mapState.setterActions.setCurrentBasemapOptions(e)},setLegendCollapsed:function(e,n){t().mapState.setterActions.setLegendCollapsed(e,n)},setOrToggleLayerVisibility:function(e,n){l.d.setOrToggleMapLayerVisibility(t().mapId,e,n)},setMapKeyboardPanInteractions:function(e){l.d.setMapKeyboardPanInteractions(t().mapId,e)},setZoom:function(e,n){l.d.zoom(t().mapId,e,n)},setInteraction:function(e){l.d.setInteraction(t().mapId,e)},setRotation:function(e){l.d.rotate(t().mapId,e)},zoomToExtent:function(e,n){return l.d.zoomToExtent(t().mapId,e,n)},zoomToInitialExtent:function(){return l.d.zoomToInitialExtent(t().mapId)},zoomToGeoLocatorLocation:function(e,n){return l.d.zoomToGeoLocatorLocation(t().mapId,e,n)},zoomToMyLocation:function(e){return l.d.zoomToMyLocation(t().mapId,e)},transformPoints:function(e,n){return s.M.transformPoints(e,"EPSG:".concat(t().mapState.currentProjection),"EPSG:".concat(n))},setClickCoordinates:function(e){return l.d.setClickCoordinates(t().mapId,e)},setFixNorth:function(e){t().mapState.setterActions.setFixNorth(e)},setOverlayClickMarkerRef:function(e){var n=t().mapState.overlayClickMarker;void 0!==n&&n.setElement(e)},setOverlayNorthMarkerRef:function(e){var n=t().mapState.overlayNorthMarker;void 0!==n&&n.setElement(e)}},setterActions:{setMapChangeSize:function(n,r){e({mapState:d(d({},t().mapState),{},{size:n,scale:r})})},setMapLoaded:function(n){e({mapState:d(d({},t().mapState),{},{mapLoaded:n})})},setAttribution:function(n){e({mapState:d(d({},t().mapState),{},{attribution:n})})},setCurrentBasemapOptions:function(n){e({mapState:d(d({},t().mapState),{},{currentBasemapOptions:n})})},setInitialFilters:function(n){e({mapState:d(d({},t().mapState),{},{initialFilters:n})})},setInteraction:function(n){e({mapState:d(d({},t().mapState),{},{interaction:n})})},setZoom:function(n){e({mapState:d(d({},t().mapState),{},{zoom:n})})},setRotation:function(n){e({mapState:d(d({},t().mapState),{},{rotation:n})})},setOverlayClickMarker:function(n){e({mapState:d(d({},t().mapState),{},{overlayClickMarker:n})})},setOverlayNorthMarker:function(n){e({mapState:d(d({},t().mapState),{},{overlayNorthMarker:n})})},setProjection:function(n){e({mapState:d(d({},t().mapState),{},{currentProjection:n})})},setPointMarkers:function(n){e({mapState:d(d({},t().mapState),{},{pointMarkers:n})})},setMapMoveEnd:function(n,r,i,o,a,s){e({mapState:d(d({},t().mapState),{},{centerCoordinates:n,northArrowElement:{degreeRotation:i,isNorthVisible:o},mapExtent:a,scale:s})}),t().mapState.setterActions.setClickMarker(void 0),t().appState.isCrosshairsActive&&t().mapState.setterActions.setPointerPosition(r)},setPointerPosition:function(n){e({mapState:d(d({},t().mapState),{},{pointerPosition:n})})},setClickCoordinates:function(n){e({mapState:d(d({},t().mapState),{},{clickCoordinates:n})})},setFixNorth:function(n){e({mapState:d(d({},t().mapState),{},{fixNorth:n})})},setHighlightedFeatures:function(n){e({mapState:d(d({},t().mapState),{},{highlightedFeatures:n})})},setVisibleLayers:function(n){e({mapState:d(d({},t().mapState),{},{visibleLayers:n})})},setOrderedLayerInfo:function(n){e({mapState:d(d({},t().mapState),{},{orderedLayerInfo:(0,r.A)(n)})})},setHoverable:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));i&&(i.hoverable=n,t().mapState.setterActions.setOrderedLayerInfo(r))},setLegendCollapsed:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));if(i){var o=n||!i.legendCollapsed;i.legendCollapsed=o,t().mapState.setterActions.setOrderedLayerInfo(r)}},setQueryable:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));i&&(i.queryable=n,n&&(i.hoverable=n),t().mapState.setterActions.setOrderedLayerInfo(r))},setClickMarker:function(n){e({mapState:d(d({},t().mapState),{},{clickMarker:n?{lnglat:n}:void 0})})},setHoverFeatureInfo:function(n){e({mapState:d(d({},t().mapState),{},{hoverFeatureInfo:n})})}}}}var p=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.attribution}))},f=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.basemapOptions}))},g=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.centerCoordinates}))},m=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickMarker}))},y=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickCoordinates}))},v=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.fixNorth}))},b=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.interaction}))},w=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.hoverFeatureInfo}))},x=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.mapLoaded}))},A=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrow}))},S=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrowElement}))},C=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.orderedLayerInfo}))},E=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMap}))},k=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMapHideZoom}))},T=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.pointerPosition}))},_=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.currentProjection}))},O=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.rotation}))},P=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.scale}))},I=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.size}))},M=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.visibleLayers}))},L=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.zoom}))},R=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.actions}))}},38880:(e,t,n)=>{"use strict";n.d(t,{eC:()=>c,lT:()=>u});var r=n(42432),i=n(92902),o=n(55061),a=n(50570);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{Gg:()=>h,h4:()=>d,ky:()=>u,mU:()=>c});var r=n(42432),i=n(92902),o=n(55061),a=n(9145);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{A6:()=>E,NP:()=>p,OZ:()=>y,Oz:()=>h,PK:()=>S,Qy:()=>C,Uu:()=>w,XP:()=>m,bd:()=>g,dY:()=>x,ex:()=>v,g_:()=>f,m:()=>A,r4:()=>b});var r=n(29067),i=n(42432),o=n(46900),a=n.n(o),s=n(92902),l=n(55061),c=n(7396);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3];e({uiState:d(d({},t().uiState),{},{activeAppBarTab:{tabId:n,tabGroup:r,isOpen:i,isFocusTrapped:o}})})},setSelectedFooterLayerListItem:function(n){e({uiState:d(d({},t().uiState),{},{selectedFooterLayerListItem:n})})}}};return n}var p=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.focusItem}))},f=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.activeFooterBarTabId}))},g=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.activeAppBarTab}))},m=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.activeTrapGeoView}))},y=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.appBarComponents}))},v=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.footerPanelResizeValue}))},b=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.footerPanelResizeValues}))},w=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.hiddenTabs}))},x=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.mapInfoExpanded}))},A=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.navBarComponents}))},S=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.footerBarIsCollapsed}))},C=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.selectedFooterLayerListItem}))},E=function(){return(0,s.Pj)((0,l.Ni)(),(function(e){return e.uiState.actions}))}},55061:(e,t,n)=>{"use strict";n.d(t,{dE:()=>I,Ic:()=>M,gU:()=>L,e4:()=>R,Ni:()=>j});var r=n(42432),i=n(30538),o=n(13871),a=n(92902),s=n(17004);var l=n(16775),c=n(33663),u=n(59155),d=n(27991),h=n(9145),p=n(54497),f=n(75687),g=n(50570),m=new l.K,y=new c.h,v=new u.K,b=new d.d,w=new f.F,x=new h.t,A=new p.U,S=new g.Z;var C=n(17755),E=n(94514),k=n(6883),T=n(76200);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t{const n=(0,i.useRef)(r.count);return(0,i.useEffect)((()=>{n.current+=1,n.current===r.count+1&&(n.current-=1,t.setState(e))})),null};if(o.displayName=`((${e})) devtool`,"undefined"==typeof document)return;if(!n){let t=document.getElementById(`simple-zustand-devtools-${e}`);t||(t=document.createElement("div"),t.id=`simple-zustand-devtools-${e}`),document.body.appendChild(t),n=t}const a=(0,s.H)(n),l=e=>{e&&(a.render(i.createElement(o,Object.assign({},e))),r.count+=1)};l(t.getState()),t.subscribe(l)}("getViewStore-".concat(e.mapId),c)}},M=function(e){return P.getState().stores[null!=e?e:"unknown"]},L=function(e){return(0,T.whenThisThen)((function(){return M(e)}))},R=function(e){var t,n,r,i;t=M(e),m.destroy(),y.destroy(),v.destroy(),b.destroy(),w.destroy(),null!==(n=t.getState().mapConfig.footerBar)&&void 0!==n&&n.tabs.core.includes("time-slider")&&x.destroy(),null!==(r=t.getState().mapConfig.footerBar)&&void 0!==r&&r.tabs.core.includes("geochart")&&A.destroy(),null!==(i=t.getState().mapConfig.corePackages)&&void 0!==i&&i.includes("swiper")&&S.destroy(),delete P.getState().stores[e]},j=function(){var e=(0,i.useContext)(E.w).mapId;return P.getState().stores[null!=e?e:"unknown"]}},63629:(e,t,n)=>{"use strict";var r=n(68676),i=n(43331);const o=JSON.parse('{"general":{"add":"Add","close":"Close","exit":"Exit","layers":"Layers","name":"Name","open":"Open","remove":"Remove","view":"View","openFullscreen":"Open in fullscreen","closeFullscreen":"Close fullscreen","openGuide":"Open guide","guide":"Guide","fullScreen":"Full screen"},"mapnav":{"arianavbar":"Vertical button group for map navigation","basemap":"Change basemap","fullscreen":"Full screen","home":"Reset to initial view","zoomIn":"Zoom in","zoomOut":"Zoom out","coordinates":"Toggle coordinates format","scale":"Toggle between scale and resolution","location":"Zoom to my location"},"basemaps":{"select":"Select a basemap","default":"Default","transport":"Transport","imagery":"Imagery","simple":"Simple","nogeom":"None"},"mapctrl":{"rotation":{"resetRotation":"Reset Rotation","fixedNorth":"Fix North"},"mouseposition":{"east":"E","west":"W","north":"N","south":"S"},"overviewmap":{"toggle":"Toggle overview map","error":"Error loading overview map"},"attribution":{"defaultnrcan":"© His Majesty the King in Right of Canada, as represented by the Minister of Natural Resources","tooltip":"Attribution"},"crosshair":"Use Arrows, + and - keys to navigate the map, Enter to select and Shift+Arrow Up or Down to modify the pan value."},"appbar":{"export":"Export","notifications":"Notification","no_notifications_available":"No notifications available","layers":"Layers","share":"Share","version":"About GeoView","repoLink":"Github","removeAllNotifications":"Remove all"},"legend":{"title":"Legend","removeLayer":"Remove layer","zoomTo":"Zoom to layer","addLayer":"Add layer","sortLayers":"Sort layers","sort":"Sort","layerError":"Layer has an error...","layerLoading":"Layer is loading...","tableDetails":"Table details","refreshLayer":"Refresh layer","highlightLayer":"Highlight layer","subLayersCount":"{count} sublayers","itemsCount":"{count} of {totalCount} classes","legendInstructions":"Legend Instructions","noLayersAdded":"No layers added to the map","noLayersAddedDescription":"Add layers to the map by clicking on the \'Layers\' button and adding the layers you want to display."},"layers":{"title":"Layers","subLayersList":"Sublayers list","finish":"Finish","continue":"Continue","back":"Back","or":"or","dropzone":"Drop here","upload":"Choose a file","drop":"Drop the file to upload","url":"Enter URL or Geocore id","layer":"Layer","stepOne":"Upload a file or enter URL/Geocore id","stepTwo":"Select format","stepThree":"Configure layer","stepFour":"Enter name","service":"Service type","name":"Name","layerSelect":"Select layer(s)","errorEmpty":"cannot be empty","errorNone":"No file or source added","errorFile":"Only geoJSON, CSV and GeoPackage files can be used","errorServer":"source is not valid","errorNotLoaded":"An error occured when loading the layer","errorProj":"does not support current map projection","only":"only","opacity":"Opacity","opacityMax":"Maximum from parent","reloadLayer":"Reload layer","visibilityIsAlways":"Visibility is always enabled","toggleVisibility":"Toggle visibility","toggleCollapse":"Toggle collapse","querying":"Querying","layerAdded":"Layer __param__ added","layerAddedAndLoading":"Layer __param__ added and loading","layerAddedWithError":"Layer __param__ in error","instructionsNoLayersTitle":"No layers visible","instructionsNoLayersBody":"Add visible layers on the map."},"details":{"title":"Details","zoomTo":"Zoom to feature","select":"Highlight feature on map","externalLink":"External Link","feature":"feature","clickOnMap":"Click on map","nextFeatureBtn":"Next feature","previousFeatureBtn":"Previous feature","clearAllfeatures":"Clear all feature highlights","keepFeatureSelected":"Keep feature highlighted","featureDetailsTitle":"Feature {count} of {total}","featureDetailModalTitle":"Feature Detail"},"lightbox":{"next":"Next","previous":"Previous","close":"Close","download":"Download"},"keyboardnav":{"start":"Skip after map element","end":"Skip before map element","focusdialog":{"title":"Keyboard navigation","main":"If enable, we will keep focus locked on the viewer.\\nTo exit, press CTRL + Q","button":{"enable":"Enable","skip":"Skip"}}},"validation":{"layer":{"loadfailed":"Layer [__param__] failed to load on map __param__.","notfound":"The sublayer __param__ of the layer __param__ does not exist on the server","createtwice":"Can not execute the createGeoViewRasterLayers method twice for the layer __param__ on map __param__","usedtwice":"Duplicate use of layer identifier [__param__] on map __param__","multipleUUID":"GeoCore layers may only have one GeoCore id per layer"},"schema":{"notFound":"A schema error was found, check the console to see what is wrong.","wrongPath":"Cannot find schema ([__param__])"},"changeDisplayLanguageLayers":"Layers can not be relaoded because the configuration does not support this language","changeDisplayLanguage":"Only \'en\' and \'fr\' are supported","changeDisplayTheme":"Theme unsupported","changeDisplayProjection":"Projection unsupported","invalidConfig":"Invalid JSON config, default configuration applied."},"exportModal":{"title":"Export map as PNG","cancelBtn":"Cancel","exportBtn":"Export","exportTitle":"Title","approx":"approx"},"geolocator":{"title":"Geolocator","search":"Search","errorMessage":"No matches found for","province":"Province","category":"Category","clearFilters":"Clear filters","noFilter":"No filter"},"hovertooltip":{"alticon":"Selected feature icon"},"dataTable":{"title":"Data Table","icon":"ICON","zoom":"ZOOM","details":"DETAILS","exportBtn":"Export","jsonExportBtn":"Download GeoJSON","downloadAsCSV":"Download CSV","filterMap":"Filter map","stopFilterMap":"Stop filter map","rowsSelected":"{rowsSelected} of {totalRows} row(s) selected","rowsFiltered":"{rowsFiltered} of {totalRows} row(s) filtered","enlargeBtn":"Enlarge","reduceBtn":"Reduce","features":"feature(s)","featureFiltered":"features filtered","images":"Images","close":"Close","noFeatures":"unknown..."},"geoChart":{"noChartAvailable":"Click on the map on a layer with chart"},"guide":{"title":"Guide","errorMessage":"Sorry, unable to find the help document!"},"footerBar":{"focusToMap":"Focus to map","focusToFooter":"Focus to footer","resizeTooltip":"Resize","noTab":"No tab"}}'),a=JSON.parse('{"general":{"add":"Ajouter","close":"Fermer","layers":"Couches","name":"Nom","exit":"Sortir","open":"Ouvrir","remove":"Retirer","view":"Vue","openFullscreen":"Ouvrir en plein écran","closeFullscreen":"Fermer le plein écran","openGuide":"Ouvrir le guide","guide":"Guide","fullScreen":"Plein écran"},"mapnav":{"arianavbar":"Groupe de buttons vertical pour navigation sur la carte","basemap":"Changer la carte de base","fullscreen":"Plein écran","home":"Retour à la vue initiale","zoomIn":"Zoom avant","zoomOut":"Zoom arrière","coordinates":"Basculer le format des coordonnées","scale":"Basculer entre l\'échelle et la résolution","location":"Zoom sur ma position"},"basemaps":{"select":"Choisir une carte de base","default":"Défaut","transport":"Transport","imagery":"Imagerie Satellitaire","simple":"Simple","nogeom":"Aucun"},"mapctrl":{"rotation":{"resetRotation":"Réinitialiser la rotation","fixedNorth":"Nord fixe"},"mouseposition":{"east":"E","west":"O","north":"N","south":"S"},"overviewmap":{"toggle":"Basculer la carte d\'aperçu","error":"Erreur lors du chargement de la carte d\'aperçu"},"attribution":{"defaultnrcan":"© Sa Majesté le Roi du Chef du Canada, représentée par le ministre des Ressources naturelle","tooltip":"Attribution"},"crosshair":"Utiliser les touches fléchées, + et - pour naviguer sur la carte, Entrée pour sélectionner et Shift+fléchées Haut et Bas pour modfier le déplacement."},"appbar":{"export":"Exporter","notifications":"Notification","no_notifications_available":"Aucune notification disponible","layers":"Couches","share":"Partager","version":"À propos de GéoView","repoLink":"Github","removeAllNotifications":"Effacer tout"},"legend":{"title":"Légende","removeLayer":"Retirer la couche","zoomTo":"Zoom sur la couche","addLayer":"Ajouter une couche","sortLayers":"Trier les couches","sort":"Trier","layerError":"La couche a une erreur...","layerLoading":"La couche se charge...","tableDetails":"Table détaillée","refreshLayer":"Rafraîchir la couche","highlightLayer":"Couche mise en évidence","subLayersCount":"{count} sous-couches","itemsCount":"{count} sur {totalCount} classes","legendInstructions":"Legend Instructions","noLayersAdded":"Aucune couche ajoutée","noLayersAddedDescription":"Ajoutez des couches à la carte en cliquant sur le bouton \'Couches\' et en sélectionnant les couches que vous souhaitez afficher."},"layers":{"title":"Couches","subLayersList":"Liste des sous-couches","finish":"Terminer","continue":"Continuer","back":"Retour","or":"ou","dropzone":"Déposer ici","upload":"Choisir un fichier","drop":"Déposer le fichier à télécharger","url":"Entrer l\'URL ou l\'identifiant Geocore","layer":"Couche","stepOne":"Ajouter un fichier ou entrer l\'URL/ l\'identifiant Geocore","stepTwo":"Sélectionner le format","stepThree":"Configurer la couche","stepFour":"Entrer le nom","service":"Type de service","name":"Nom","layerSelect":"Sélectionner couche(s)","errorEmpty":"ne peut être vide","errorNone":"Pas de fichier ou de source ajouté","errorFile":"Seuls les fichiers geoJSON, CSV et GeoPackage peuvent être utilisés","errorServer":"source n\'est pas valide","errorNotLoaded":"Une erreur s\'est produite lors du chargement de la couche","errorProj":"ne prend pas en charge la projection cartographique actuelle","only":"seulement","opacity":"Opacité","opacityMax":"Maximum du parent","reloadLayer":"Recharger la couche","visibilityIsAlways":"La visibilité est toujours activée","toggleVisibility":"Basculer la visibilité","toggleCollapse":"Basculer la fermeture","querying":"Requête en cours","layerAdded":"Couche __param__ ajoutée","layerAddedAndLoading":"Couche __param__ ajoutée et en chargement","layerAddedWithError":"Couche __param__ en erreur","instructionsNoLayersTitle":"Aucune couche visible","instructionsNoLayersBody":"Ajoutez des couches visibles sur la carte."},"details":{"title":"Détails","zoomTo":"Zoom à l\'élément","select":"Sélectionner l\'élément sur la carte","externalLink":"Lien externe","feature":"élément","clickOnMap":"Cliquer sur la carte","nextFeatureBtn":"Élément suivant","previousFeatureBtn":"Élément précédent","clearAllfeatures":"Déselctionner tout les Élément","keepFeatureSelected":"Garder l\'élément sélectionné","featureDetailsTitle":"Élément {count} sur {total}","featureDetailModalTitle":"Détails de l\'élément"},"lightbox":{"next":"Prochaine","previous":"Précédente","close":"Fermer","download":"Télécharger"},"keyboardnav":{"start":"Aller après l\'élément carte","end":"Aller avant l\'élément carte","focusdialog":{"title":"Navigation clavier","main":"Si activé, le focus sera verrouillé sur le visualiseur. \\nPour sortir, appuyez sur CTRL + Q.","button":{"enable":"Activer","skip":"Sauter"}}},"validation":{"layer":{"loadfailed":"Le chargement de la couche [__param__] a échoué sur la carte __param__.","notfound":"La sous couche __param__ de la couche __param__ n\'existe pas sur le sereur","createtwice":"On ne peut exécuter deux fois la méthode createGeoViewRasterLayers pour la couche __param__ sur la carte __param__","usedtwice":"Utilisation en double de l\'identifiant de couche [__param__] sur la carte __param__","multipleUUID":"Les couches GeoCore ne peuvent avoir qu\'un seul identifiant par couche."},"schema":{"notFound":"Une erreur de schéma a été trouvée, vérifiez la console pour voir ce qui ne va pas.","wrongPath":"Impossible de trouver le schéma ([__param__])"},"changeDisplayLanguageLayers":"Les couches ne peuvent être chargée(s) de nouveau car la configuration ne supporte pas ce langage","changeDisplayLanguage":"Seulement \'en\' et \'fr\' sont supporées","changeDisplayTheme":"Theme non supporté","changeDisplayProjection":"Projection non supportée","invalidConfig":"Configuration JSON non valide, configuration par défaut appliquée."},"exportModal":{"title":"Exporter la carte en PNG","cancelBtn":"Annuler","exportBtn":"Exporter","exportTitle":"Titre","approx":"approx"},"geolocator":{"title":"Géolocalisation","search":"Texte à rechercher","errorMessage":"Aucun résultat correspondant à","province":"Province","category":"Catégorie","clearFilters":"Effacer les filtres","noFilter":"Aucun Filtre"},"hovertooltip":{"alticon":"Symbol de l\'élément sélectionné"},"dataTable":{"title":"Données","icon":"ICÔNE","zoom":"ZOOM","details":"DÉTAILS","exportBtn":"Exporter","jsonExportBtn":"Télécharger GeoJSON","downloadAsCSV":"Télécharger CSV","filterMap":"Filtrer la carte","stopFilterMap":"Arrêt des filtres","rowsSelected":"{rowsSelected} sur {totalRows} ligne(s) sélectionnée(s)","rowsFiltered":"{rowsFiltered} sur {totalRows} ligne(s) filtrée(s)","enlargeBtn":"Agrandir","reduceBtn":"Réduire","features":"Élément(s)","featureFiltered":"élément filtré(s)","images":"Images","close":"Fermer","noFeatures":"inconnue..."},"geochart":{"noChartAvailable":"Cliquer sur une couche de la carte qui contient un graphique"},"guide":{"title":"Guide","errorMessage":"Désolé, impossible de trouver le document d\'aide!"},"footerBar":{"focusToMap":"Aller à la carte","focusToFooter":"Aller au pied de page","resizeTooltip":"Redimensionner","noTab":"Pas d\'onglet"}}');var s=n(6883);r.Ay.use(i.initReactI18next).init({debug:!1,lng:"en",fallbackLng:["en","fr"],supportedLngs:["en","fr"],interpolation:{escapeValue:!1},resources:{en:{translation:o},fr:{translation:a}},react:{useSuspense:!0}}).catch((function(e){s.vF.logPromiseFailed("in init in translation/i18n",e)}))},23853:(e,t,n)=>{"use strict";n.d(t,{KX:()=>i,NK:()=>o});var r=n(55723);n(55061);function i(e){return e}function o(e){if(!(e instanceof Object)||e instanceof Array)throw new Error("Can't convert parameter to TypeJsonObject! typeof = ".concat((0,r.A)(e)));return e}},82527:(e,t,n)=>{"use strict";n.d(t,{z:()=>w});var r=n(96880),i=n(13718),o=n(47280),a=n(74813),s=n.n(a);function l(e,t,n){c(e,t),t.set(e,n)}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t){return e.get(h(e,t))}function d(e,t,n){return e.set(h(e,t),n),n}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakSet,w=function(){return(0,o.A)((function e(t){var n,r;if((0,i.A)(this,e),c(n=this,r=b),r.add(n),l(this,p,void 0),l(this,f,void 0),l(this,g,void 0),l(this,m,void 0),l(this,y,void 0),l(this,v,void 0),t<=0)throw new Error("workersCount must be positive");d(f,this,t),d(p,this,t),d(g,this,[]),d(m,this,[]),h(b,this,k).call(this)}),[{key:"withLock",value:(t=(0,r.A)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h(b,this,C).call(this);case 2:return e.abrupt("return",h(b,this,x).call(this,t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"withLockRunAndForget",value:(e=(0,r.A)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h(b,this,C).call(this);case 2:h(b,this,x).call(this,t);case 3:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"awaitTerminate",value:function(){return u(p,this)0)){var e=function(){},t=new Promise((function(t){e=t}));return u(g,this).push(e),t}d(p,this,u(p,this)-1)}function E(){var e=h(b,this,S).call(this);if(e.length){var t=e.pop();t&&t()}else if(d(p,this,u(p,this)+1),u(p,this)>=u(f,this)){var n=u(y,this);h(b,this,k).call(this),n()}}function k(){var e=function(){};d(v,this,new Promise((function(t){e=t}))),d(y,this,e)}},26323:(e,t,n)=>{"use strict";n.d(t,{O:()=>K});var r=n(55723),i=n(13718),o=n(47280),a=n(42432),s=n(87120),l=n.n(s),c=n(79950),u=n.n(c),d=n(4401),h=n(65372),p=n(93555),f=n(92187),g=n(73611),m=n(42942),y=n(66582),v=n(4078),b=n(85849),w=n(41506),x=n(44894),A=n(2265),S=n(23853),C=n(51640),E=n(34119),k=n(6883),T=n(76200);const _=JSON.parse('{"$id":"https://cgpv/schema","$schema":"http://json-schema.org/draft-07/schema#","title":"GeoView Core Config Schema","type":"object","version":1,"comments":"Configuration for GeoView core packages, each packages manages it own schema. It correspond to the TypeMapFeaturesInstance type.","additionalProperties":false,"definitions":{"TypeLocalizedString":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"en":{"type":"string","description":"The English version of the string."},"fr":{"type":"string","description":"The French version of the string. "}}},"TypeFeatureInfoLayerConfig":{"additionalProperties":false,"type":"object","properties":{"queryable":{"type":"boolean","default":true,"description":"Allow querying. Default = false."},"nameField":{"$ref":"#/definitions/TypeLocalizedString","description":"The display field (English/French) of the layer. If it is not present the viewer will make an attempt to find the first valid field."},"outfields":{"$ref":"#/definitions/TypeLocalizedString","description":"A comma separated list of attribute names (English/French) that should be requested on query (all by default)."},"fieldTypes":{"type":"string","description":"A comma separated list of types. Type at index i is associated to the variable at index i."},"aliasFields":{"$ref":"#/definitions/TypeLocalizedString","description":"A comma separated list of attribute names (English/French) that should be use for alias. If empty, no alias will be set if not found."}},"required":["queryable"]},"TypeFeatureInfoNotQueryable":{"additionalProperties":false,"type":"object","properties":{"queryable":{"type":"boolean","const":false,"description":"Do not allow querying."}},"required":["queryable"]},"TypeStrokeSymbolConfig":{"minProperties":1,"additionalProperties":false,"type":"object","description":"Stroke style for vector features.","properties":{"color":{"type":"string"},"lineStyle":{"enum":["dash","dash-dot","dash-dot-dot","dot","longDash","longDash-dot","null","shortDash","shortDash-dot","shortDash-dot-dot","solid"]},"width":{"type":"number"}}},"TypeLineStringVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["lineString"]},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"}},"required":["type","stroke"]},"TypePolygonVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["filledPolygon"]},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"paternSize":{"type":"number","description":"Distance between patern lines. Default = 8"},"paternWidth":{"type":"number","description":"Patern line width.default = 1."},"fillStyle":{"enum":["solid","backwardDiagonal","cross","diagonalCross","forwardDiagonal","horizontal","null","vertical"],"description":"Kind of filling for vector features. Default = solid. "}},"required":["type","stroke"]},"TypeSimpleSymbolVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["simpleSymbol"]},"rotation":{"type":"number","description":"Symbol rotation in radians."},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"size":{"type":"number"},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"symbol":{"enum":["circle","+","diamond","square","triangle","X","star"]}},"required":["type","symbol"]},"TypeIconSymbolVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["iconSymbol"]},"mimeType":{"type":"string"},"src":{"type":"string"},"width":{"type":"integer","description":"Icon width in pixel."},"height":{"type":"integer","description":"Icon height in pixel."},"rotation":{"type":"number","description":"Icon rotation in radians."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."}},"required":["type","mimeType","src"]},"TypeSimpleStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["simple"]},"label":{"type":"string"},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}},"required":["styleType","label","settings"]},"TypeUniqueValueStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["uniqueValue"]},"defaultLabel":{"type":"string","description":"Label used if field/value association is not found."},"defaultVisible":{"type":"boolean","description":"Flag used to show/hide features associated to the default label (default: true)."},"defaultSettings":{"$ref":"#/definitions/TypeKindOfVectorSettings","description":"Settings used if field/value association is not found."},"fields":{"type":"array","items":{"type":"string"},"minItems":1},"uniqueValueStyleInfo":{"$ref":"#/definitions/TypeUniqueValueStyleInfo"}},"required":["styleType","fields","uniqueValueStyleInfo"]},"TypeUniqueValueStyleInfo":{"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"label":{"type":"string"},"visible":{"type":"boolean","description":"Flag used to show/hide features associated to the label (default: true)."},"values":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"minItems":1},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"minItems":1,"required":["label","values","options"]},"TypeClassBreakStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["classBreaks"]},"defaultLabel":{"type":"string","description":"Label used if field/value association is not found."},"defaultVisible":{"type":"boolean","description":"Flag used to show/hide features associated to the default label (default: true)."},"defaultSettings":{"$ref":"#/definitions/TypeKindOfVectorSettings","description":"Settings used if field/value association is not found."},"field":{"type":"string"},"classBreakStyleInfo":{"$ref":"#/definitions/TypeClassBreakStyleInfo"}},"required":["styleType","field","classBreakStyleInfo"]},"TypeClassBreakStyleInfo":{"additionalProperties":false,"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"label":{"type":"string"},"visible":{"type":"boolean","description":"Flag used to show/hide features associated to the label (default: true)."},"minValue":{"oneOf":[{"type":"string"},{"type":"number"}]},"maxValue":{"oneOf":[{"type":"string"},{"type":"number"}]},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"minItems":1,"required":["label","minValue","maxValue","settings"]},"TypeKindOfVectorSettings":{"oneOf":[{"$ref":"#/definitions/TypeLineStringVectorConfig"},{"$ref":"#/definitions/TypePolygonVectorConfig"},{"$ref":"#/definitions/TypeSimpleSymbolVectorConfig"},{"$ref":"#/definitions/TypeIconSymbolVectorConfig"}]},"TypeStyleSettings":{"oneOf":[{"$ref":"#/definitions/TypeSimpleStyleConfig"},{"$ref":"#/definitions/TypeUniqueValueStyleConfig"},{"$ref":"#/definitions/TypeClassBreakStyleConfig"}]},"TypeStyleConfig":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"Point":{"$ref":"#/definitions/TypeStyleSettings"},"LineString":{"$ref":"#/definitions/TypeStyleSettings"},"Polygon":{"$ref":"#/definitions/TypeStyleSettings"}}},"TypeLayerControls":{"additionalProperties":false,"type":"object","properties":{"highlight":{"type":"boolean","default":true},"hover":{"type":"boolean","default":true},"opacity":{"type":"boolean","default":true},"query":{"type":"boolean","default":true},"remove":{"type":"boolean","default":true},"table":{"type":"boolean","default":true},"visibility":{"type":"boolean","default":true},"zoom":{"type":"boolean","default":true}},"description":"Which UI controls are available."},"TypeLayerStates":{"additionalProperties":false,"type":"object","properties":{"visible":{"type":"boolean","default":true,"description":"Initial visibility setting."},"legendCollapsed":{"type":"boolean","description":"Is the layer\'s legend initially collapsed."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1,"description":"Initial opacity setting."},"hoverable":{"type":"boolean","description":"Is the layer hoverable."},"queryable":{"type":"boolean","description":"Is the layer queryable."}},"description":"Initial layer states."},"TypeLayerInitialSettings":{"additionalProperties":false,"type":"object","properties":{"controls":{"$ref":"#/definitions/TypeLayerControls","description":"The status of various controls for the layer (available/unavailable)."},"bounds":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The geographic bounding box that contains all the layer\'s features."},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"minZoom":{"type":"integer","minimum":0,"maximum":50,"description":"The minimum view zoom level (exclusive) above which this layer will be visible."},"maxZoom":{"type":"integer","minimum":0,"maximum":50,"description":"The maximum view zoom level (inclusive) above which this layer will be visible."},"className":{"type":"string","description":"A CSS class name to set to the layer element."},"states":{"$ref":"#/definitions/TypeLayerStates","description":"The status of initial states for the layer."}}},"TypeVectorSourceFormats":{"enum":["GeoJSON","EsriJSON","KML","WFS","featureAPI","GeoPackage","CSV"],"description":"The feature format used by the XHR feature loader when access path is set."},"TypeVectorSourceInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadataAccessPath will be assigned to it."},"postSettings":{"type":"object","properties":{"header":{"type":"object"},"data":{"type":"object"}}},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"dataProjection":{"type":"string","description":"The projection code of the source. Used only for GeoJSON format. Default value is EPSG:4326."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"strategy":{"enum":["all","bbox"],"default":"all","description":"The loading strategy to use. By default an all strategy is used, a one-off strategy which loads all features at once."},"separator":{"type":"string","description":"The character used to separate columns of csv file"}}},"TypeSourceImageWmsInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"serverType":{"$ref":"#/definitions/TypeOfServer","description":"The type of the remote WMS server. The default value is mapserver."},"style":{"oneOf":[{"type":"string","description":"Single style to apply"},{"type":"array","items":{"type":"string"},"description":"Array of style to choose."}]}}},"TypeOfServer":{"enum":["mapserver","geoserver","qgis"],"description":"The type of the remote WMS server. The default value is mapserver."},"TypeSourceImageStaticInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoNotQueryable"},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent of the static image. Called with [minX, minY, maxX, maxY] extent coordinates."}}},"TypeSourceImageEsriInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeEsriFormatParameter"},"transparent":{"type":"boolean","default":true,"description":"If true, the image will be exported with the background color of the map set as its transparent color. Only the .png and .gif formats support transparency."}}},"TypeEsriFormatParameter":{"enum":["png","jpg","gif","svg"],"default":"png","description":"The format of the exported image. The default format is png."},"TypeSourceTileInitialConfig":{"additionalProperties":false,"properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoNotQueryable"},"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}},"TypeTileGrid":{"additionalProperties":false,"type":"object","properties":{"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"origin":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided."},"resolutions":{"type":"array","items":{"type":"number"},"description":"Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1."},"tileSize":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"default":[256,256],"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided."}},"required":["origin","resolutions"]},"TypeVectorLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["CSV","GeoJSON","esriFeature","ogcWfs","ogcFeature","GeoPackage"]},"entryType":{"enum":["vector"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeVectorSourceInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeVectorTileLayerEntryConfig":{"additionalProperties":false,"type":"object","description":"Layer sources providing vector data divided into a tile grid.","properties":{"schemaTag":{"enum":["not used yet"]},"entryType":{"enum":["vector-tile"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeVectorTileSourceInitialConfig","description":"Information used to configure the source of a vector tile layer."},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeVectorTileSourceInitialConfig":{"additionalProperties":false,"type":"object","description":"Layer sources providing vector data divided into a tile grid.","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"format":{"enum":["GeoJSON","EsriJSON","KML","WFS","MVT","featureAPI"],"description":"The feature format used by the XHR feature loader when access path is set."},"dataProjection":{"type":"string","description":"The projection code of the source. Used only for GeoJSON format. Default value is EPSG:4326."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}},"TypeOgcWmsLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["ogcWms"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageWmsInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeEsriDynamicLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["esriDynamic"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageEsriInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeEsriImageLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["esriImage"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageEsriInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeImageStaticLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["imageStatic"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageStaticInitialConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeTileLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["ogcWms","xyzTiles","vectorTiles"]},"entryType":{"enum":["raster-tile"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceTileInitialConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeLayerEntryType":{"enum":["vector","vector-tile","raster-tile","raster-image","geoCore"],"description":"Layer entry data type."},"TypeLayerGroupEntryConfig":{"additionalProperties":false,"type":"object","description":"Entry used to define a layer Group.","properties":{"entryType":{"enum":["group"]},"layerId":{"type":"string","description":"The id of the layer group to display on the map."},"not":{"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."}},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer group (English/French)."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer group entries at creation time. Initial settings are inherited from the parent in the configuration tree."},"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}},"required":["entryType","layerId","listOfLayerEntryConfig"]},"TypeLayerEntryConfig":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorTileLayerEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"},{"$ref":"#/definitions/TypeOgcWmsLayerEntryConfig"},{"$ref":"#/definitions/TypeEsriDynamicLayerEntryConfig"},{"$ref":"#/definitions/TypeEsriImageLayerEntryConfig"},{"$ref":"#/definitions/TypeTileLayerEntryConfig"}]},"TypeListOfOgcWmsLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeOgcWmsLayerEntryConfig"}]}},"TypeListOfImageStaticLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeImageStaticLayerEntryConfig"}]}},"TypeListOfXyzTilesLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeTileLayerEntryConfig"}]}},"TypeListOfEsriDynamicLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeEsriDynamicLayerEntryConfig"}]}},"TypeListOfEsriFeatureLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfEsriImageLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeEsriImageLayerEntryConfig"}]}},"TypeListOfGeoJSONLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfOgcWfsLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfOgcFeatureLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfGeoPackageLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfCsvLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeCsvLayerEntryConfig"}]}},"TypeListOfLayerEntryConfig":{"type":"array","minItems":1},"TypeMapConfig":{"additionalProperties":false,"type":"object","properties":{"basemapOptions":{"$ref":"#/definitions/TypeBasemapOptions"},"interaction":{"$ref":"#/definitions/TypeInteraction"},"listOfGeoviewLayerConfig":{"$ref":"#/definitions/TypeListOfGeoviewLayerConfig"},"viewSettings":{"$ref":"#/definitions/TypeViewSettings"},"highlightColor":{"$ref":"#/definitions/TypeHighlightColors"},"overlayObjects":{"$ref":"#/definitions/TypeOverlayObjects"},"extraOptions":{"type":"object","description":"Additional options used for OpenLayers map options"}},"required":["basemapOptions","interaction","viewSettings"]},"TypeBasemapOptions":{"additionalProperties":false,"type":"object","properties":{"basemapId":{"$ref":"#/definitions/TypeBasemapId"},"shaded":{"type":"boolean","default":true,"description":"Enable or disable shaded basemap (if basemap id is set to shaded then this should be false)."},"labeled":{"type":"boolean","default":true,"description":"Enable or disable basemap labels"}},"required":["basemapId","shaded","labeled"]},"TypeBasemapId":{"enum":["transport","osm","simple","nogeom","shaded","imagery"],"default":"transport","description":"Id of the basemap to use."},"TypeInteraction":{"enum":["static","dynamic"],"default":"dynamic","description":"If map is dynamic (pan/zoom) or static to act as a thumbnail (no nav bar)."},"TypeHighlightColors":{"enum":["black","white","red","green"],"default":"black","description":"Color to use for feature highlights."},"TypeOverlayObjects":{"type":"object","properties":{"pointMarkers":{"$ref":"#/definitions/TypePointMarkers"}}},"TypePointMarkers":{"type":"object","patternProperties":{"[^]*":{"type":"array","items":{"$ref":"#/definitions/TypePointMarker"}}}},"TypePointMarker":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string","description":"ID for point marker. Must be unique in group."},"coordinate":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"description":"The coordinates of the marker."},"color":{"type":"string","default":"green","description":"Marker color."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"projection":{"type":"number","description":"The projection code of the coordinates. Default value is 4326."}},"required":["id","coordinate"]},"TypeListOfGeoviewLayerConfig":{"description":"List of GeoView Layers in the order which they should be added to the map.","type":"array","additionalProperties":false,"items":{"anyOf":[{"$ref":"#/definitions/TypeGeoviewLayerConfig"},{"$ref":"#/definitions/TypeGeoCoreLayerConfig"}]}},"TypeGeoviewLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"type":"string","description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\')."},"geoviewLayerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"metadataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The GeoView layer access path (English/French)."},"geoviewLayerType":{"$ref":"#/definitions/TypeGeoviewLayerType","description":"Type of GeoView layer."},"serviceDateFormat":{"type":"string","description":"Date format used by the service endpoint."},"externalDateFormat":{"type":"string","description":"Date format used by the getFeatureInfo to output date variable."},"isTimeAware":{"type":"boolean","description":"Flag to mention if layer will use its time dimension if provided. Used to remove a layer from time enabled functions like time slider."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the GeoView layer at creation time."},"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The layer entries to use from the GeoView layer."}},"required":["geoviewLayerType","listOfLayerEntryConfig"]},"TypeGeoCoreLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"type":"string","description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\')."},"geoviewLayerType":{"$ref":"#/definitions/TypeGeoCoreLayerType","description":"Type of GeoCore layer."},"geoviewLayerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the GeoView layer at creation time."}},"required":["geoviewLayerId","geoviewLayerType"]},"TypeGeoviewLayerType":{"type":"string","items":{"enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","GeoPackage","xyzTiles","ogcFeature","ogcWfs","ogcWms","imageStatic","vectorTiles"]},"description":"Type of GeoView layer."},"TypeGeoCoreLayerType":{"type":"string","items":{"enum":["geoCore"]},"description":"Type of GeoCore layer."},"TypeViewSettings":{"additionalProperties":false,"type":"object","properties":{"initialView":{"$ref":"#/definitions/TypeInitialViewSettings","description":"Settings for the initial viewing area of the map."},"enableRotation":{"type":"boolean","default":true,"description":"Enable rotation. If false, a rotation constraint that always sets the rotation to zero is used."},"maxExtent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"default":[-125,30,-60,89],"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"minZoom":{"type":"integer","description":"The minimum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","minimum":0,"maximum":50},"maxZoom":{"type":"integer","description":"The maximum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","minimum":0,"maximum":50},"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes"},"rotation":{"type":"integer","minimum":-360,"maximum":360,"default":0,"description":"The initial rotation for the view in degree (positive rotation clockwise, 0 means North). Will be converted to radiant by the viewer."}}},"TypeInitialViewSettings":{"additionalProperties":false,"type":"object","maxItems":1,"properties":{"zoomAndCenter":{"$ref":"#/definitions/TypeZoomAndCenter"},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent for the initial view. Called with [minX, minY, maxX, maxY] extent coordinates."},"layerIds":{"type":"array","items":{"type":"string"},"description":"Geoview layer ID(s) or layer path(s) of layer(s) to use as initial map focus. If empty, will use all layers."}}},"TypeZoomAndCenter":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":28,"default":3.5,"description":"Initial map zoom level. Zoom level are define by the basemap zoom levels. Levels between whole numbers are supported to fine tune initial view."},[{"type":"number","minimum":-160,"maximum":160,"default":-90,"description":"Initial longitude value for map center."},{"type":"number","minimum":-80,"maximum":80,"default":60,"description":"Initial latitude value for map center."}]],"description":"Initial zoom and center coordinates to set map view."},"TypeValidMapProjectionCodes":{"enum":[3978,3857],"default":3978,"description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"TypeNavBarProps":{"type":"array","uniqueItems":true,"items":{"enum":["zoom","fullscreen","home","location"]},"default":["zoom","fullscreen","home"],"description":"Controls available on the navigation bar.","minItems":0},"TypeFooterBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"type":"object","description":"Available tabs","properties":{"core":{"type":"array","items":{"type":"string","enum":["legend","layers","details","data-table","time-slider","geochart"]},"minItems":1,"default":["legend","layers","details","data-table"],"uniqueItems":true,"description":"Default core tabs of footer bar to use. NOTE: config from packages for time-slider and geochart are in the same loaction as core config (<>-<>.json)."},"custom":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"defaultTabs":{"type":"string"},"contentHTML":{"type":"string"}}},"minItems":0,"default":[],"uniqueItems":true,"description":"Custom tabs of footer bar to use"}},"additionalProperties":false},"collapsed":{"type":"boolean","default":false,"description":"State of footer bar when map is loaded (expanded or collapsed)"},"selectedTab":{"type":"string","enum":["legend","layers","details","data-table","time-slider","geochart"],"description":"Footer tab to be selected at map load"}},"required":["tabs"]},"TypeAppBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"type":"object","description":"Available tabs - controls","properties":{"core":{"type":"array","items":{"type":"string","enum":["geolocator","export","basemap-panel","geochart","details","legend","guide"]},"minItems":0,"default":["geolocator"],"uniqueItems":true,"description":"Default core tabs of app-bar to use. NOTE: config from packages like geochart are in the same loaction as core config (<>-<>.json)."}},"additionalProperties":false},"collapsed":{"description":"State of app bar when map is loaded (expanded or collapsed)","type":"boolean","default":true},"selectedTab":{"type":"string","enum":["geolocator","basemap-panel","geochart","details","legend","guide"],"description":"App bar tab to be selected at map load"}},"required":["tabs"]},"TypeOverviewMapProps":{"type":"object","additionalProperties":false,"properties":{"hideOnZoom":{"type":"number","minimum":0,"maximum":10,"default":0,"description":"Minimum zoom level to show overview map"}}},"TypeMapComponents":{"type":"array","uniqueItems":true,"items":{"enum":["overview-map","north-arrow"]},"default":["overview-map","north-arrow"],"description":"Core components to initialize on viewer load. The schema for those are inside this file.","minItems":0},"TypeMapCorePackages":{"type":"array","uniqueItems":true,"items":{"enum":["swiper"]},"default":[],"description":"Core map packages to initialize on viewer load. The schema for those are on their own package. NOTE: config from packages are in the same loaction as core config (<>-<>.json).","minItems":0},"TypeExternalPackages":{"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"name":{"type":"string","description":"External Package name. The name must be identical to the window external package object to load."},"configUrl":{"type":"string","description":"The url to the external package configuration setting. The core package will read the configuration and pass it inside the package."}},"required":["name"]},"default":[],"description":"List of external packages to initialize on viewer load.","minItems":0},"TypeServiceUrls":{"additionalProperties":false,"type":"object","description":"Service endpoint urls","properties":{"geocoreUrl":{"type":"string","default":"https://geocore.api.geo.ca","description":"Service end point to access API for layers specification (loading and plugins parameters). By default it is GeoCore but can be another endpoint with similar output."},"proxyUrl":{"type":"string","description":"An optional proxy to be used for dealing with same-origin issues. URL must either be a relative path on the same server or an absolute path on a server which sets CORS headers."},"geolocator":{"type":"string","description":"Service end point to access geo location of searched value."}},"required":["geocoreUrl"]},"TypeDisplayLanguage":{"enum":["en","fr"],"description":"Display languages supported."},"TypeLocalizedLanguages":{"enum":["en","fr"],"description":"ISO 639-1 code indicating the languages supported by the configuration file."},"TypeListOfLocalizedLanguages":{"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeLocalizedLanguages"},"default":["en","fr"],"description":"ISO 639-1 code indicating the languages supported by the configuration file. It will use value(s) provided here to access bilangual configuration nodes. For value(s) provided here, each bilingual configuration node MUST provide a value.","minItems":1},"TypeValidVersions":{"enum":["1.0"],"description":"The schema version that can be used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer."},"TypeGlobalSettings":{"additionalProperties":false,"type":"object","description":"Universal map settings","properties":{"canRemoveSublayers":{"type":"boolean","description":"Whether or not sublayers can be removed from layer groups. Default = true."}}},"TypeMapFeaturesInstance":{"description":"The map features configuration. This type is used by the IsValidTypeMapFeaturesInstance method coded in config-validation.ts file. It does the validation down to the list of layer entry config.","additionalProperties":false,"type":"object","properties":{"mapId":{"type":"string"},"map":{"$ref":"#/definitions/TypeMapConfig"},"theme":{"enum":["dark","light","geo.ca"],"default":"dark","description":"Theme style the viewer."},"navBar":{"$ref":"#/definitions/TypeNavBarProps"},"footerBar":{"$ref":"#/definitions/TypeFooterBarProps"},"appBar":{"$ref":"#/definitions/TypeAppBarProps"},"overviewMap":{"$ref":"#/definitions/TypeOverviewMapProps"},"components":{"$ref":"#/definitions/TypeMapComponents"},"corePackages":{"$ref":"#/definitions/TypeMapCorePackages"},"externalPackages":{"$ref":"#/definitions/TypeExternalPackages"},"serviceUrls":{"$ref":"#/definitions/TypeServiceUrls"},"schemaVersionUsed":{"$ref":"#/definitions/TypeValidVersions"},"globalSettings":{"$ref":"#/definitions/TypeGlobalSettings"}},"required":["map"]}}}');var O,P=n(17921),I=n(30762),M=n(7383),L=n(74388),R=n(7358),j=n(12989),F=n(58420),D=n(6552),N=n(3248),B=n(73095),z=n(28126),V=n(58118),$=n(36267),G=n(68705);function U(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function W(e,t,n){return e.set(q(e,t),n),n}function q(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var H=new WeakMap,Y=new WeakSet,K=function(){function e(t){var n,r;(0,i.A)(this,e),U(n=this,r=Y),r.add(n),function(e,t,n){U(e,t),t.set(e,n)}(this,H,void 0),(0,a.A)(this,"displayLanguage",void 0),W(H,this,(0,T.generateId)()),this.displayLanguage=t}return(0,o.A)(e,[{key:"mapId",get:function(){return t=this,(e=H).get(q(e,t));var e,t},set:function(e){W(H,this,e)}},{key:"validateMapConfigAgainstSchema",value:function(t){var n=new(l())({strict:!1,allErrors:!1});n.compile(_);for(var r=!0,i=0;i{"use strict";n.d(t,{d:()=>b});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(42432),u=n(40215);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function f(e,t,n){return e.set(m(e,t),n),n}function g(e,t){return e.get(m(e,t))}function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var y=new WeakMap,v=new WeakMap,b=function(e){function t(e){var n;return(0,r.A)(this,t),n=d(this,t,[e]),(0,c.A)(n,"layerIdExtension",void 0),p(n,y,void 0),p(n,v,void 0),(0,c.A)(n,"filterEquation",void 0),(0,c.A)(n,"legendFilterIsOff",!1),(0,c.A)(n,"source",void 0),(0,c.A)(n,"style",void 0),"style"in n||(n.style=void 0),Object.assign(n,e),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getServiceMetadata",value:function(){return g(y,this)}},{key:"setServiceMetadata",value:function(e){f(y,this,e)}},{key:"getLayerMetadata",value:function(){return g(v,this)}},{key:"setLayerMetadata",value:function(e){f(v,this,e)}},{key:"getTypeGeometries",value:function(){return Object.keys(this.style||{})}},{key:"getFirstStyleSettings",value:function(){var e=this.getTypeGeometries();if(e.length>0)return this.style[e[0]]}},{key:"onSerialize",value:function(){var e,n,r,i,o,l=(e=t,n="onSerialize",r=this,i=3,o=(0,s.A)((0,a.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);return l.initialSettings=this.initialSettings,l.source=this.source,l}}])}(u.c)},40215:(e,t,n)=>{"use strict";n.d(t,{c:()=>y});var r,i=n(13718),o=n(47280),a=n(42432),s=n(2358),l=n(2265),c=n(6883);function u(e,t,n){d(e,t),t.set(e,n)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(p(e,t))}function p(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,g=new WeakMap,m=new WeakSet,y=function(){function e(t){var n,r;(0,i.A)(this,e),d(n=this,r=m),r.add(n),(0,a.A)(this,"_layerId",""),(0,a.A)(this,"_layerPath",""),(0,a.A)(this,"_layerStatus","newInstance"),(0,a.A)(this,"layerIdExtension",void 0),(0,a.A)(this,"layerName",void 0),(0,a.A)(this,"schemaTag",void 0),(0,a.A)(this,"entryType",void 0),(0,a.A)(this,"geoviewLayerConfig",{}),(0,a.A)(this,"initialSettings",{}),(0,a.A)(this,"isMetadataLayerGroup",void 0),(0,a.A)(this,"parentLayerConfig",void 0),u(this,f,!1),u(this,g,[]),Object.assign(this,t),this.geoviewLayerConfig?this._layerPath=v.call(e,t):c.vF.logError("Couldn't calculate layerPath because geoviewLayerConfig has an invalid value")}return(0,o.A)(e,[{key:"layerId",get:function(){return this._layerId},set:function(t){this._layerId=t,this._layerPath=v.call(e,this)}},{key:"layerPath",get:function(){return this._layerPath=v.call(e,this),this._layerPath}},{key:"layerStatus",get:function(){return this._layerStatus},set:function(e){if("loaded"===e&&!(0,l.KD)(this)&&!this.isGreaterThanOrEqualTo("loading")&&!h(f,this))return n=this,r=!0,void(t=f).set(p(t,n),r);var t,n,r;this.isGreaterThanOrEqualTo(e)||(this._layerStatus=e,p(m,this,b).call(this,{layerStatus:e})),"processed"===e&&h(f,this)&&(this.layerStatus="loaded")}},{key:"isGreaterThanOrEqualTo",value:function(e){return w._[this.layerStatus]>=w._[e]}},{key:"serialize",value:function(){return this.onSerialize()}},{key:"onSerialize",value:function(){return{layerName:this.layerName,layerId:this.layerId,layerIdExtension:this.layerIdExtension,schemaTag:this.schemaTag,entryType:this.entryType,layerStatus:this.layerStatus,isMetadataLayerGroup:this.isMetadataLayerGroup}}},{key:"onLayerStatusChanged",value:function(e){s.A.onEvent(h(g,this),e)}},{key:"offLayerStatusChanged",value:function(e){s.A.offEvent(h(g,this),e)}}],[{key:"allLayerStatusAreGreaterThanOrEqualTo",value:function(e,t){var n=this;return!t.find((function(t){return(0,l.KD)(t)?!n.allLayerStatusAreGreaterThanOrEqualTo(e,t.listOfLayerEntryConfig):!t.isGreaterThanOrEqualTo(e||"newInstance")}))}}])}();function v(e,t){var n=t;return void 0===n&&(n=void 0===e.layerIdExtension?e.layerId:"".concat(e.layerId,".").concat(e.layerIdExtension)),e.parentLayerConfig?p(r,this,v).call(this,e.parentLayerConfig,"".concat(e.parentLayerConfig.layerId,"/").concat(n)):"".concat(e.geoviewLayerConfig.geoviewLayerId,"/").concat(n)}function b(e){s.A.emitEvent(this,h(g,this),e)}r=y;var w={_:{newInstance:10,registered:20,processing:30,processed:40,loading:50,loaded:60,error:70}}},36267:(e,t,n)=>{"use strict";n.d(t,{x:()=>p});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(42432),u=n(2265);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n;return(0,r.A)(this,t),n=d(this,t,[e]),(0,c.A)(n,"entryType",u.hJ.GROUP),(0,c.A)(n,"listOfLayerEntryConfig",[]),Object.assign(n,e),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"onSerialize",value:function(){var e,n,r,i,o,l=(e=t,n="onSerialize",r=this,i=3,o=(0,s.A)((0,a.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);return l.listOfLayerEntryConfig=this.listOfLayerEntryConfig.map((function(e){return e.serialize()})),l}}])}(n(40215).c)},28126:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;return(0,i.A)(this,t),n=h(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.ESRI_DYNAMIC),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{Q:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;if((0,i.A)(this,t),n=h(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.ESRI_IMAGE),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),Number.isNaN(n.layerId))throw new Error("The layer entry with layerId equal to ".concat(n.layerPath," must be an integer string"));return n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{V:()=>p});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n;if((0,i.A)(this,t),n=d(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.IMAGE_STATIC),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),!n.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(42930).d)},3248:(e,t,n)=>{"use strict";n.d(t,{Q:()=>g});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(51640),u=n(2265),d=n(42930),h=n(76200);function p(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,f()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var g=function(e){function t(e){var n;return(0,i.A)(this,t),n=p(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.WMS),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=(0,h.createLocalizedString)(""),".xml"!==n.geoviewLayerConfig.metadataAccessPath.en.slice(-4).toLowerCase()&&(n.source.dataAccessPath.en=n.geoviewLayerConfig.metadataAccessPath.en),".xml"!==n.geoviewLayerConfig.metadataAccessPath.fr.slice(-4).toLowerCase()&&(n.source.dataAccessPath.fr=n.geoviewLayerConfig.metadataAccessPath.fr)),n.source.serverType||(n.source.serverType="mapserver"),n}return(0,s.A)(t,e),(0,r.A)(t)}(d.d)},74388:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432);function c(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}var d=function(e){function t(e){var n;if((0,i.A)(this,t),n=c(this,t,[e]),(0,l.A)(n,"tileGrid",void 0),Object.assign(n,e),!e.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(40824).q)},6552:(e,t,n)=>{"use strict";n.d(t,{m:()=>u});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270);function l(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,c()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var u=function(e){function t(e){var n;if((0,i.A)(this,t),n=l(this,t,[e]),Object.assign(n,e),!n.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(40824).q)},40824:(e,t,n)=>{"use strict";n.d(t,{q:()=>h});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(2265);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;return(0,i.A)(this,t),n=u(this,t,[e]),(0,l.A)(n,"entryType",c.hJ.RASTER_TILE),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(42930).d)},39453:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(2265);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;return(0,i.A)(this,t),n=u(this,t,[e]),(0,l.A)(n,"entryType",c.hJ.VECTOR),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(42930).d)},7383:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432),c=n(39453),u=n(2265),d=n(8058);function h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n,r,o,a,s;if((0,i.A)(this,t),s=h(this,t,[e]),(0,l.A)(s,"valueSeparator",","),Object.assign(s,e),!(s.geoviewLayerConfig.metadataAccessPath||null!==(n=s.source)&&void 0!==n&&n.dataAccessPath))throw new Error("dataAccessPath is mandatory for GeoView layer ".concat(s.geoviewLayerConfig.geoviewLayerId," of type CSV when the metadataAccessPath is undefined."));if(void 0===s.entryType&&(s.entryType=u.hJ.VECTOR),s.source||(s.source={format:"CSV",separator:","}),s.source.format||(s.source.format="CSV"),s.source.separator||(s.source.separator=","),!s.source.dataAccessPath){var c=s.geoviewLayerConfig.metadataAccessPath,p=c.en,f=c.fr;p=p.split("/").length>1?p.split("/").slice(0,-1).join("/"):"./",f=f.split("/").length>1?f.split("/").slice(0,-1).join("/"):"./",s.source.dataAccessPath={en:p,fr:f}}return null!==(r=s.source.dataAccessPath.en)&&void 0!==r&&r.startsWith("blob")&&(null===(o=s.source.dataAccessPath.en)||void 0===o||!o.endsWith("/"))||null!==(a=s.source.dataAccessPath.en)&&void 0!==a&&a.toUpperCase().endsWith(".CSV")||(s.source.dataAccessPath.en=s.source.dataAccessPath.en.endsWith("/")?"".concat(s.source.dataAccessPath.en).concat(s.layerId):"".concat(s.source.dataAccessPath.en,"/").concat(s.layerId),s.source.dataAccessPath.fr=s.source.dataAccessPath.fr.endsWith("/")?"".concat(s.source.dataAccessPath.fr).concat(s.layerId):"".concat(s.source.dataAccessPath.fr,"/").concat(s.layerId)),s.source.dataProjection||(s.source.dataProjection=d.M.PROJECTION_NAMES.LNGLAT),s}return(0,s.A)(t,e),(0,r.A)(t)}(c.T)},12989:(e,t,n)=>{"use strict";n.d(t,{h:()=>h});var r=n(42432),i=n(47280),o=n(13718),a=n(75583),s=n(96645),l=n(94270);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,d()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;if((0,o.A)(this,t),n=u(this,t,[e]),Object.assign(n,e),Number.isNaN(n.layerId))throw new Error("The layer entry with layerId equal to ".concat(n.layerPath," must be an integer string"));return n.source||(n.source={format:"EsriJSON"}),n.source.format||(n.source.format="EsriJSON"),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{d:()=>p});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(39453),c=n(2265),u=n(8058);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n,r,o,a,s,l,h;if((0,i.A)(this,t),h=d(this,t,[e]),Object.assign(h,e),!(h.geoviewLayerConfig.metadataAccessPath||null!==(n=h.source)&&void 0!==n&&n.dataAccessPath))throw new Error("dataAccessPath is mandatory for GeoView layer ".concat(h.geoviewLayerConfig.geoviewLayerId," of type GeoJSON when the metadataAccessPath is undefined."));if(void 0===h.entryType&&(h.entryType=c.hJ.VECTOR),h.source||(h.source={format:"GeoJSON"}),h.source.format||(h.source.format="GeoJSON"),!h.source.dataAccessPath){var p=h.geoviewLayerConfig.metadataAccessPath,f=p.en,g=p.fr;f=f.split("/").length>1?f.split("/").slice(0,-1).join("/"):"./",g=g.split("/").length>1?g.split("/").slice(0,-1).join("/"):"./",h.source.dataAccessPath={en:f,fr:g}}return null!==(r=h.source.dataAccessPath.en)&&void 0!==r&&r.startsWith("blob")&&(null===(o=h.source.dataAccessPath.en)||void 0===o||!o.endsWith("/"))||null!==(a=h.source.dataAccessPath.en)&&void 0!==a&&a.toUpperCase().endsWith(".JSON")||null!==(s=h.source.dataAccessPath.en)&&void 0!==s&&s.toUpperCase().endsWith(".GEOJSON")||null!==(l=h.source.dataAccessPath.en)&&void 0!==l&&l.toUpperCase().endsWith("=JSON")||(h.source.dataAccessPath.en=h.source.dataAccessPath.en.endsWith("/")?"".concat(h.source.dataAccessPath.en).concat(h.layerId):"".concat(h.source.dataAccessPath.en,"/").concat(h.layerId),h.source.dataAccessPath.fr=h.source.dataAccessPath.fr.endsWith("/")?"".concat(h.source.dataAccessPath.fr).concat(h.layerId):"".concat(h.source.dataAccessPath.fr,"/").concat(h.layerId)),h.source.dataProjection||(h.source.dataProjection=u.M.PROJECTION_NAMES.LNGLAT),h}return(0,s.A)(t,e),(0,r.A)(t)}(l.T)},58420:(e,t,n)=>{"use strict";n.d(t,{X:()=>p});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(39453),c=n(2265),u=n(8058);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n,r,o,a,s;if((0,i.A)(this,t),s=d(this,t,[e]),Object.assign(s,e),void 0===s.entryType&&(s.entryType=c.hJ.VECTOR),s.source||(s.source={format:"GeoPackage"}),s.source.format||(s.source.format="GeoPackage"),!s.source.dataAccessPath){var l=s.geoviewLayerConfig.metadataAccessPath,h=l.en,p=l.fr;h=h.split("/").length>1?h.split("/").slice(0,-1).join("/"):"./",p=p.split("/").length>1?p.split("/").slice(0,-1).join("/"):"./",s.source.dataAccessPath={en:h,fr:p}}return null!==(n=s.source.dataAccessPath.en)&&void 0!==n&&n.startsWith("blob")&&(null===(r=s.source.dataAccessPath.en)||void 0===r||!r.endsWith("/"))||null!==(o=s.source.dataAccessPath.en)&&void 0!==o&&o.toLowerCase().endsWith(".gpkg")||(s.source.dataAccessPath.en=s.source.dataAccessPath.en.endsWith("/")?"".concat(s.source.dataAccessPath.en).concat(s.layerId):"".concat(s.source.dataAccessPath.en,"/").concat(s.layerId),s.source.dataAccessPath.fr=s.source.dataAccessPath.fr.endsWith("/")?"".concat(s.source.dataAccessPath.fr).concat(s.layerId):"".concat(s.source.dataAccessPath.fr,"/").concat(s.layerId)),null!==(a=s)&&void 0!==a&&null!==(a=a.source)&&void 0!==a&&a.dataProjection||(s.source.dataProjection=u.M.PROJECTION_NAMES.LNGLAT),s}return(0,s.A)(t,e),(0,r.A)(t)}(l.T)},30762:(e,t,n)=>{"use strict";n.d(t,{j:()=>f});var r=n(42432),i=n(47280),o=n(13718),a=n(75583),s=n(96645),l=n(94270),c=n(39453),u=n(8058);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,p()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n,i;return(0,o.A)(this,t),i=h(this,t,[e]),Object.assign(i,e),i.source||(i.source={format:"featureAPI"}),null!==(n=i)&&void 0!==n&&null!==(n=n.source)&&void 0!==n&&n.format||(i.source.format="featureAPI"),i.source.dataAccessPath||(i.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{q:()=>f});var r=n(42432),i=n(47280),o=n(13718),a=n(75583),s=n(96645),l=n(94270),c=n(39453),u=n(8058);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,p()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;return(0,o.A)(this,t),n=h(this,t,[e]),Object.assign(n,e),n.source||(n.source={format:"WFS"}),n.source.format||(n.source.format="WFS"),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{$r:()=>d,Ax:()=>f,DF:()=>h,Dy:()=>r,Fz:()=>g,LK:()=>p,MK:()=>l,RI:()=>c,Tg:()=>s,Wj:()=>a,Xl:()=>o,un:()=>i,vB:()=>m,xb:()=>u});var r="https://github.com/Canadian-Geospatial-Platform/geoview",i={url:"https://geo.ca/",text:"Geo.ca"},o=500,a=11,s=[90,-95],l=[100,100,100,100],c={NEW_INSTANCE:"newInstance",PROCESSING:"processing",LOADING:"loading",LOADED:"loaded",ERROR:"error"},u=["ArrowUp","ArrowRight","ArrowDown","ArrowLefts"],d=[].concat(u,["Space"]),h={LEGEND:"legend",DETAILS:"details",LAYERS:"layers",DATA_TABLE:"data-table",GUIDE:"guide",TIME_SLIDER:"time-slider",GEO_CHART:"geochart"},p={lessThanOrEqualTo:"<=",lessThan:"<",greaterThan:">",greaterThanOrEqualTo:">=",empty:"is null",notEmpty:"is not null",between:">",betweenInclusive:">=",equals:"=",notEquals:"<>"},f={greaterThan:"> date 'value'",greaterThanOrEqualTo:">= date 'value'",lessThan:"< date 'value'",lessThanOrEqualTo:"<= date 'value'",equals:"= date 'value'",empty:"is null",notEmpty:"is not null",notEquals:"<> date 'value'",between:"> date 'value'",betweenInclusive:">= date 'value'"},g={contains:"(filterId) like ('%value%')",startsWith:"(filterId) like ('value%')",endsWith:"(filterId) like ('%value')",empty:"(filterId) is null",notEmpty:"(filterId) is not null",equals:"filterId = 'value'",notEquals:"filterId <> 'value'"},m={APP_BAR:"appBar",FOOTER_BAR:"footerBar"}},25079:(e,t,n)=>{"use strict";n.d(t,{P:()=>E});var r=n(29067),i=n(55723),o=n(55907),a=n(13718),s=n(47280),l=n(85315),c=n.n(l),u=n(92288),d=n.n(u),h=n(14636),p=n.n(h),f=n(1360),g=n.n(f);n(58765),n(99064);function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}c().extend(p());var y=[[0,1,2,3],[0,1,2,3],["-","-","T","+","00:00"]],v={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD"},b={hour:"THHZ",minute:"THH:mmZ",second:"THH:mm:ssZ"},w={esriTimeUnitsHours:"H",esriTimeUnitsDays:"D",esriTimeUnitsWeeks:"W",esriTimeUnitsMonths:"M",esriTimeUnitsYears:"Y"};c().extend(d()),c().extend(p()),c().extend(g());var x="Invalid Date",A="Invalid Time Dimension Duration",S=function(e){return c()(e).isValid()},C=function(e){return c().isDuration(c().duration(e))},E=function(){function e(){(0,a.A)(this,e)}return(0,s.A)(e,null,[{key:"convertToLocal",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (convertToLocal)"));return c()(e).local().format()}},{key:"formatDate",value:function(e,t){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (convertToLocal)"));return c()(e).format(t)}},{key:"convertToUTC",value:function(e){return"string"!=typeof e||S(e)?c()(e).utc(!1).format():""}},{key:"format",value:function(e,t,n){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (format)"));var r="".concat(v[t]).concat(void 0!==n?b[n]:"");return c()(e).utc(!1).format(r)}},{key:"convertToMilliseconds",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (convertToMilliseconds)"));return c()(e).valueOf()}},{key:"convertMilisecondsToDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DDTHH:mm:ss";return c()(e).utc(!1).format(t)}},{key:"extractDateFormat",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(x," (extractDateFormat)"));var t,n,r=e.split("T"),i=(0,o.A)(r,2),a=i[0],s=i[1];if(t=3===a.split("-").length?"day":2===a.split("-").length?"month":"year",s){var l=s.slice(0,8).split(":").length;return n=3===l?"second":2===l?"minute":"hour","".concat(v[t]).concat(b[n])}return v[t]}},{key:"createDimensionFromESRI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.startTimeField,i=e.timeExtent,o=e.timeInterval,a=e.timeIntervalUnits,s="".concat(this.convertMilisecondsToDate(i[0]),"Z/").concat(this.convertMilisecondsToDate(i[1]),"Z").concat((t="",void 0!==a&&void 0!==o&&void 0!==w[a]&&(t="/P".concat(o).concat(w[a])),t)),l=this.createRangeOGC(s);return{field:r,default:l.range[l.range.length-1],unitSymbol:"",range:l,nearestValues:""===r?"absolute":"discrete",singleHandle:n}}},{key:"createDimensionFromOGC",value:function(e){var t="object"===(0,i.A)(e)?e:JSON.parse(e);return{field:t.name,default:t.default,unitSymbol:t.unitSymbol||"",range:this.createRangeOGC(t.values),nearestValues:!1!==t.nearestValues?"absolute":"discrete",singleHandle:!0}}},{key:"createRangeOGC",value:function(t){var n={type:"none",range:[]};if(t.split(",").length>1?n={type:"discrete",range:t.replace(/\s/g,"").split(",")}:!function(e){return 2===e.split("/").length}(t)?function(e){return 3===e.split("/").length}(t)&&(n={type:"discrete",range:m(e,this,k).call(this,t)}):n={type:"relative",range:m(e,this,T).call(this,t)},0===n.range.length)throw"Invalid Time Dimension";return n}},{key:"createDateLocaleTooltip",value:function(e,t){return c()(e).locale("".concat(t,"-CA")).format("".concat(e.split("T").length>1?"LLL":"LL"))}},{key:"getDateFragmentsOrder",value:function(e){var t=[-1,-1,-1,-1],n=[-1,-1,-1,-1],i=[],a=[t,n,i];if(e){var s=e.toUpperCase().replace(/Z/,"+00:00"),l=s,c=(0,r.A)(l.matchAll(/[[\]]/g));if(!(l.startsWith("Y")?[0,2]:[0,2,4]).includes(c.length))throw new Error('The string "'.concat(e,'" is an invalid date format.'));if(l=(l=(l=l.replace(/YYYY\[?[-/]MM\[?[-/]DD\[?[\sT]HH:MM:SS\[?[+-]\d\d:\d\d]?/,"")).replace(/\[?DD[-/]]?MM[-/]]?YYYY\[?[\sT]HH:MM:SS\[?[+-]\d\d:\d\d]?/,"")).replace(/MM[-/]DD[-/]YYYY\[?[\sT]HH:MM:SS[+-]\d\d:\d\d]?|(\[MM[-/]DD[-/]]|MM[-/]\[DD[-/]])YYYY\[[T\s]HH:MM:SS[+-]\d\d:\d\d]/,""))throw new Error('The string "'.concat(e,'" is an invalid date format.'));l=s;for(var u=0;u=0&&(n[t[r]]=r)})),f&&(t[3]=3,n[3]=3,i[4]=f.split(/[+-]/)[1]);for(var m=s.replace(/\[[YMDHMS\d\-+/\sT:]*\]|\[[\sTHMS:]*\]/g,"").split(/-|\/|\s|T|\+/g).length;m<4;m++)n[t[m]]=-1;return a}return y}},{key:"applyInputDateFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return e;var r=t[0],i=t[2],a=e.toUpperCase().replace("Z","+00:00").replaceAll(" ","T").split("T"),s=(0,o.A)(a,2),l=s[0],c=s[1];c||(c="00:00:00");var u=l.replaceAll("/","-").toUpperCase().split("-").map((function(e){return 1===e.length?"0".concat(e):e})),d=[];3===u.length?d=u:(u[0].length<3?d[r[1]]=u[0]:d[r[0]]=u[0],u[1]?u[1].length<3?d[r[1]]=u[1]:d[r[0]]=u[1]:d[r[1]]="01",d[r[2]]="01");var h="".concat(d[r[0]],"-").concat(d[r[1]],"-").concat(d[r[2]],"T").concat(c);return 19===h.length&&(h="".concat(h).concat(i[3]).concat(i[4])),h.endsWith("+00:00")?"Z"===e.slice(-1).toUpperCase()&&(h=h.replace("+00:00","Z")):(n&&(h="".concat(h.slice(0,19)).concat("+"===h.slice(19,20)?"-":"+").concat(h.slice(20))),h=this.convertToUTC(h)),h}},{key:"applyOutputDateFormat",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return e;if(t){var r=t[1],i=t[2],a=this.convertToUTC(e);"Z"===a.slice(-1).toUpperCase()&&(a="".concat(a.slice(0,-1),"+00:00"));var s="+"===i[3]?"-":"+",l=this.convertToUTC("".concat(a.toUpperCase().slice(0,-6)).concat(n?s:i[3]).concat(i[4])).split("T"),c=(0,o.A)(l,2),u=c[0],d=c[1],h=u.toUpperCase().split("-"),p="".concat(r[0]+1?"".concat(h[r[0]]):"");return p&&r[1]+1&&(p="".concat(p).concat(i[0])),r[1]+1&&(p="".concat(p).concat(h[r[1]])),p&&r[2]+1&&(p="".concat(p).concat(i[0])),r[2]+1&&(p="".concat(p).concat(h[r[2]])),r[3]+1&&(p="".concat(p).concat(i[2]).concat(d.slice(0,8))),p}return e}},{key:"deduceDateFormat",value:function(e){var t=null!==e?e.toUpperCase().replaceAll("/","-").replaceAll(" ","T"):"YYYY-MM-DD";return 4===(t=t.replace(/\d{4}/,"YYYY").replace(/^\d{1,2}(?=-\d{1,2}-YYYY)|((?<=^YYYY-\d-)|(?<=^YYYY-\d\d-))\d{1,2}/,"DD").replace(/(?<=^DD-)\d{1,2}(?=-YYYY)|(?<=^YYYY-)\d{1,2}(?=-DD)/,"MM").replace(/(?<=T)\d{1,2}/,"HH").replace(/(?<=THH:)\d{1,2}/,"MM").replace(/(?<=THH:MM:)\d{1,2}/,"SS")).length?t="".concat(t,"-MM-DDTHH:MM:SSZ"):7===t.length?t=t.startsWith("YYYY")?"".concat(t,"-DDTHH:MM:SSZ"):"DD-".concat(t,"THH:MM:SSZ"):10===t.length?t="".concat(t,"THH:MM:SSZ"):19===t.length&&(t="".concat(t,"Z")),t}},{key:"getDayjsDate",value:function(e){return c()(e)}}])}();function k(e){var t=e.split("/"),n=(0,o.A)(t,3),r=n[0],i=n[1],a=n[2];if(!S(r))throw new Error("".concat(x," (createAbsoluteInterval)"));if(!S(i))throw new Error("".concat(x," (createAbsoluteInterval)"));if(!C(a))throw A;var s,l="Z"===r.slice(-1).toUpperCase(),u=this.extractDateFormat(r),d=l?"".concat(c()(r).utc(!1).format(u).slice(0,-6),"Z"):c()(r).utc(!1).format(u),h=l?"".concat(c()(i).utc(!1).format(u).slice(0,-6),"Z"):c()(i).utc(!1).format(u),p=c().duration(a).asMilliseconds(),f=c().duration(p),g=[],m=0;g.push(d);do{if(a.endsWith("M")){var y=g[m].split("-"),v=Number(y[1])+f.months(),b=v<=12?y[0]:String(Number(y[0])+1),w=v<=12?v:v-12;s=c()("".concat(b,"-").concat(String(w).padStart(2,"0"),"-").concat(y[2])).utc(!1).format(u)}else s=c()(g[m]).add(f).utc(!1).format(u);l&&(s="".concat(s.slice(0,-6),"Z")),g.push(s),31536e6===p&&g[m].slice(4,10)!==g[m+1].slice(4,10)&&(s=c()(g[m]).add(c().duration({milliseconds:316224e5})).utc(!1).format(u),l&&(s="".concat(s.slice(0,-6),"Z")),g[m+1]=s),m++}while(c()(g[g.length-1]).isBefore(h));return g[g.length-1]!==h&&g.push(h),g}function T(e){var t=e.split("/"),n=(0,o.A)(t,2),r=n[0],i=n[1];if(!C(i)&&!S(i))throw A;if(!S(r))throw new Error("".concat(x," (createRelativeIntervale)"));var a=this.extractDateFormat(r),s=c().duration(i),l=c()(r).utc(!1).format(a),u=S(i)?c()(i):c()(r).add(s);return[l,c()(u).utc(!1).format(a)]}},6883:(e,t,n)=>{"use strict";n.d(t,{vF:()=>D});var r,i=n(13718),o=n(47280),a=n(42432),s=n(86973),l=n.n(s),c=function(e,t){try{var n=localStorage.getItem(e),r=Number(n);if(r&&!Number.isNaN(r))return r}catch(e){}return t};function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function d(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h,p,f,g=1,m=2,y=3,v=4,b=5,w=6,x=8,A=9,S=10,C=20,E=30,k=40,T=50,_=!!c("GEOVIEW_LOG_ACTIVE"),O=(p=C,f=function(e,t){try{var n=localStorage.getItem(e);if(null!=n&&n.includes(","))return n.split(",").map((function(e){return Number(e.trim())})).filter((function(e){return!!e&&!Number.isNaN(e)}));var r=Number(n);if(r&&!Number.isNaN(r))return r}catch(e){}return t}(h="GEOVIEW_LOG_LEVEL"),void 0!==f?f:(localStorage.setItem(h,p.toString()),p)),P=new WeakSet,I=function(){return(0,o.A)((function e(t){(0,i.A)(this,e),u(this,P),(0,a.A)(this,"loggingLevel",void 0),(0,a.A)(this,"markers",{}),(0,a.A)(this,"trackers",{}),(0,a.A)(this,"trackerInterval",100),this.loggingLevel=t}),[{key:"logTraceDetailed",value:function(){var e;if(_){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?s-1:0),c=1;c1?t-1:0),r=1;r=C||this.loggingLevel.includes(e):this.loggingLevel<=e}function L(e,t,n){for(var i,o=arguments.length,a=new Array(o>3?o-3:0),s=3;s1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";n.d(t,{T$:()=>d,yb:()=>h});var r=n(96880),i=n(42432),o=n(74813),a=n.n(o),s=n(38811);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{addUiComponent:()=>A,createGuideObject:()=>F,createLocalizedString:()=>h,delay:()=>L,escapeRegExp:()=>R,exportPNG:()=>k,findPropertyNameByRegex:()=>T,generateId:()=>m,getLocalizedMessage:()=>f,getLocalizedValue:()=>p,getScriptAndAssetURL:()=>g,getXMLHttpRequest:()=>x,isImage:()=>_,isJsonString:()=>b,parseJSONConfig:()=>E,removeCommentsFromJSON:()=>C,replaceParams:()=>y,sanitizeHtmlContent:()=>S,setAlphaColor:()=>v,stringify:()=>O,whenThisThen:()=>M,whenThisThenThat:()=>I,xmlToJson:()=>w});var r=n(96880),i=n(74813),o=n.n(i),a=n(17004),s=n(68676),l=n(17309),c=n.n(l),u=n(23853),d=n(6883);function h(e){return{en:e,fr:e}}function p(e,t){if(e)return e[t]}function f(e,t){return s.Ay.getFixedT(t)(e)}function g(){var e=document.getElementsByTagName("script"),t="";if(e&&e.length)for(var n=0;n0?e:(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()}function y(e,t){var n=t;return e.forEach((function(e){n=n.replace("__param__",e)})),n}function v(e,t){var n=e;return n[3]=t,n}function b(e){try{if(""===e)return!1;JSON.parse(e)}catch(t){return d.vF.logError("- Invalid JSON string. String passed to the JSON parser:",e,"- JSON Parser error:",t.message,"- See text above."),!1}return!0}function w(e){var t={};if(1===e.nodeType){var n=(0,u.KX)(e);if(n.attributes&&n.attributes.length>0){t["@attributes"]={};for(var r=0;r=400&&t("{}")},n.onerror=function(){t("{}")},n.send(null)}catch(e){t("{}")}}))}function A(e,t){var n=(0,a.H)(document.getElementById(e));return n.render(t),n}function S(e){return c()(e)}function C(e){return e.split(/(?3&&void 0!==arguments[3]?arguments[3]:1e4,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100;P(e,t,n,new Date,r,i)}function M(e,t,n){return new Promise((function(r,i){I(e,r,i,t,n)}))}var L=function(e){return new Promise((function(t){setTimeout(t,e)}))};function R(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function j(e){return e.split("\n")[0].trim().split(" ").filter((function(e){return!e.startsWith("#")&&!e.startsWith("!")})).join(" ")}function F(e,t,n){return D.apply(this,arguments)}function D(){return(D=(0,r.A)(o().mark((function e(t,n,r){var i,a,s,l,c,u,h,p,f,g,m,y,v,b,w,x,A,S,C,E,k,T;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(r,"/locales/").concat(n,"/guide.md"));case 3:return i=e.sent,e.next=6,i.text();case 6:for(a=e.sent,(s=a.replaceAll("{{assetsURL}}",r).split(/=(?=1!)(.*?)=/))[0].trim()||s.shift(),l={},c=0;c1)for(y=1;y{"use strict";n.d(t,{X:()=>de});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(7809),u=n(39488),d=n(85208),h=n(98246),p=n(42669),f=n(96422),g=n(43910),m=n(45866),y=n(9410),v=n(67103),b=n(87620),w=n(32332),x=n(64383),A=n(43806),S=n(59119),C=n(67287),E=n(15877),k=n(20633),T=n(17341),_=n(61170),O=n(32596),P=n(3451),I=n(34520),M=n(82512),L=n(66739);const R="drawstart",j="drawend",F="drawabort";class D extends u.Ay{constructor(e,t){super(e),this.feature=t}}function N(e,t){return(0,O.hG)(e[0],e[1],t[0],t[1])}function B(e,t){const n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function z(e,t,n){let r,i;ta){return N(q(e,r),q(e,i))}let s=0;if(r=n?r-=n:r<0&&(r+=n);let o=r+1;o>=n&&(o-=n);const a=e[r],s=a[0],l=a[1],c=e[o];return[s+(c[0]-s)*i,l+(c[1]-l)*i]}class H extends A.A{constructor(e){const t=e;t.stopDown||(t.stopDown=k.W8),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(e){switch(e){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";case"Circle":return"Circle";default:throw new Error("Invalid type: "+e)}}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:k.rT,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=(e,t,n)=>{const r=t||new c.A([NaN,NaN]),i=(0,M.Ad)(e[0],n),o=(0,I.hG)(i,(0,M.Ad)(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);const a=(0,M.Tf)();return a&&r.transform(n,a),r};else{let t;"Point"===e?t=x.A:"LineString"===e?t=g.A:"Polygon"===e&&(t=S.Ay),n=(n,r,i)=>(r?"Polygon"===e?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r)}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new C.A({source:new E.A({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:Y(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:T.TS,this.freehandCondition_,e.freehand?this.freehandCondition_=T.Gk:this.freehandCondition_=e.freehandCondition?e.freehandCondition:T.Kg,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(f.A.ACTIVE,this.updateState_)}setTrace(e){let t;t=e?!0===e?T.Gk:e:T.Zm,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===d.A.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);let t=e.type===y.A.POINTERMOVE,n=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===y.A.POINTERDRAG){Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===y.A.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===y.A.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===y.A.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===y.A.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===y.A.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout((()=>{this.handlePointerMove_(new m.A(y.A.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active)return void this.deactivateTrace_();const t=this.getMap(),n=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),r=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),i=(0,_.boundingExtent)([n,r]),o=this.traceSource_.getFeaturesInExtent(i);if(0===o.length)return;const a=function(e,t){const n=[];for(let r=0;re.endIndex||!n&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const r=[];if(t=o;--t)r.push(B(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active)return;if(-1===t.targetIndex&&(0,I.Io)(t.startPx,e.pixel)n.startIndex?cn.startIndex&&(c-=r.length)),l=c,s=e)}const c=t.targets[s];let u=c.ring;if(t.targetIndex===s&&u){const e=q(c.coordinates,l),i=n.getPixelFromCoordinate(e);(0,I.Io)(i,t.startPx)>r&&(u=!1)}if(u){const e=c.coordinates,t=e.length,n=c.startIndex,r=l;if(nthis.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(e),this.modifyDrawing_(e.coordinate)):this.createOrUpdateSketchPoint_(e.coordinate.slice())}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)r=!t&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){const t=this.getMap();for(let r=0,o=i.length;r=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):"Polygon"===o&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i=2){this.finishCoordinate_=e[e.length-2].slice();const t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if("Polygon"===r){e=this.sketchCoords_[0],e.splice(-2,1);const r=this.sketchLine_.getGeometry();if(e.length>=2){const t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(1===e.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_;const n=e.getGeometry(),r=this.getMap().getView().getProjection();return"LineString"===this.mode_?(t.pop(),this.geometryFunction_(t,n,r)):"Polygon"===this.mode_&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new b.A([t])):"MultiLineString"===this.type_?e.setGeometry(new v.A([t])):"MultiPolygon"===this.type_&&e.setGeometry(new w.A([t])),this.dispatchEvent(new D(j,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new D(F,e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;let r;if(n&&this.startDrawing_(e[0]),"LineString"===t||"Circle"===t)r=this.sketchCoords_;else{if("Polygon"!==t)return;r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&r.shift(),r.pop();for(let t=0;t{"use strict";n.d(t,{z:()=>G});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(39488),u=n(98246),d=n(9410),h=n(64383),p=n(43806),f=n(67287),g=n(15877),m=n(17341),y=n(61170),v=n(34520),b=n(3451),w=n(59119),x=n(82512);const A="extentchanged";class S extends c.Ay{constructor(e){super(A),this.extent=e}}class C extends p.A{constructor(e){super(e=e||{}),this.on,this.once,this.un,this.condition_=e.condition?e.condition:m.Gk,this.extent_=null,this.pointerHandler_=null,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.extentFeature_=null,this.vertexFeature_=null,e||(e={}),this.extentOverlay_=new f.A({source:new g.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:E(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.vertexOverlay_=new f.A({source:new g.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:k(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&this.setExtent(e.extent)}snapToVertex_(e,t){const n=t.getCoordinateFromPixelInternal(e),r=function(e,t){return(0,v.$x)(n,e)-(0,v.$x)(n,t)},i=this.getExtentInternal();if(i){const o=function(e){return[[[e[0],e[1]],[e[0],e[3]]],[[e[0],e[3]],[e[2],e[3]]],[[e[2],e[3]],[e[2],e[1]]],[[e[2],e[1]],[e[0],e[1]]]]}(i);o.sort(r);const a=o[0];let s=(0,v.sG)(n,a);const l=t.getPixelFromCoordinateInternal(s);if((0,v.Io)(e,l)<=this.pixelTolerance_){const e=t.getPixelFromCoordinateInternal(a[0]),n=t.getPixelFromCoordinateInternal(a[1]),r=(0,v.hG)(l,e),i=(0,v.hG)(l,n),o=Math.sqrt(Math.min(r,i));return this.snappedToVertex_=o<=this.pixelTolerance_,this.snappedToVertex_&&(s=r>i?a[1]:a[0]),s}}return null}handlePointerMove_(e){const t=e.pixel,n=e.map;let r=this.snapToVertex_(t,n);r||(r=n.getCoordinateFromPixelInternal(t)),this.createOrUpdatePointerFeature_(r)}createOrUpdateExtentFeature_(e){let t=this.extentFeature_;return t?e?t.setGeometry((0,w.VY)(e)):t.setGeometry(void 0):(t=e?new u.A((0,w.VY)(e)):new u.A({}),this.extentFeature_=t,this.extentOverlay_.getSource().addFeature(t)),t}createOrUpdatePointerFeature_(e){let t=this.vertexFeature_;if(t){t.getGeometry().setCoordinates(e)}else t=new u.A(new h.A(e)),this.vertexFeature_=t,this.vertexOverlay_.getSource().addFeature(t);return t}handleEvent(e){return!e.originalEvent||!this.condition_(e)||(e.type!=d.A.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),super.handleEvent(e),!1)}handleDownEvent(e){const t=e.pixel,n=e.map,r=this.getExtentInternal();let i=this.snapToVertex_(t,n);const o=function(e){let t=null,n=null;return e[0]==r[0]?t=r[2]:e[0]==r[2]&&(t=r[0]),e[1]==r[1]?n=r[3]:e[1]==r[3]&&(n=r[1]),null!==t&&null!==n?[t,n]:null};if(i&&r){const e=i[0]==r[0]||i[0]==r[2]?i[0]:null,t=i[1]==r[1]||i[1]==r[3]?i[1]:null;null!==e&&null!==t?this.pointerHandler_=T(o(i)):null!==e?this.pointerHandler_=_(o([e,r[1]]),o([e,r[3]])):null!==t&&(this.pointerHandler_=_(o([r[0],t]),o([r[2],t])))}else i=n.getCoordinateFromPixelInternal(t),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=T(i);return!0}handleDragEvent(e){if(this.pointerHandler_){const t=e.coordinate;this.setExtent(this.pointerHandler_(t)),this.createOrUpdatePointerFeature_(t)}}handleUpEvent(e){this.pointerHandler_=null;const t=this.getExtentInternal();return t&&0!==(0,y.getArea)(t)||this.setExtent(null),!1}setMap(e){this.extentOverlay_.setMap(e),this.vertexOverlay_.setMap(e),super.setMap(e)}getExtent(){return(0,x.JR)(this.getExtentInternal(),this.getMap().getView().getProjection())}getExtentInternal(){return this.extent_}setExtent(e){this.extent_=e||null,this.createOrUpdateExtentFeature_(e),this.dispatchEvent(new S(this.extent_))}}function E(){const e=(0,b.mY)();return function(t,n){return e.Polygon}}function k(){const e=(0,b.mY)();return function(t,n){return e.Point}}function T(e){return function(t){return(0,y.boundingExtent)([e,t])}}function _(e,t){return e[0]==t[0]?function(n){return(0,y.boundingExtent)([e,[n[0],t[1]]])}:e[1]==t[1]?function(n){return(0,y.boundingExtent)([e,[t[0],n[1]]])}:null}const O=C;var P=n(2358),I=n(35415),M=n(25293);function L(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,R()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function j(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function F(e,t,n){D(e,t),t.set(e,n)}function D(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function N(e,t){return e.get(B(e,t))}function B(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var z=new WeakMap,V=new WeakMap,$=new WeakSet,G=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=L(this,t,[e]),D(i=n,o=$),o.add(i),F(n,z,void 0),F(n,V,[]);var a={condition:m.Kg,boxStyle:(0,I.convertTypeFeatureStyleToOpenLayersStyle)(e.boxStyle),pixelTolerance:e.pixelTolerance||0};return function(e,t,n){e.set(B(e,t),n)}(z,n,new O(a)),N(z,n).on("extentchanged",B($,n,U).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){j(t,"startInteraction",this,3)([N(z,this)])}},{key:"stopInteraction",value:function(){j(t,"stopInteraction",this,3)([N(z,this)])}},{key:"onExtentChanged",value:function(e){P.A.onEvent(N(V,this),e)}},{key:"offExtentChanged",value:function(e){P.A.offEvent(N(V,this),e)}}])}(M.N);function U(e){P.A.emitEvent(this,N(V,this),e)}},25293:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(13718),i=n(47280),o=n(42432),a=function(){return(0,i.A)((function e(t){(0,r.A)(this,e),(0,o.A)(this,"mapViewer",void 0),this.mapViewer=t.mapViewer}),[{key:"startInteraction",value:function(e){this.mapViewer.map.addInteraction(e)}},{key:"stopInteraction",value:function(e){this.mapViewer.map.removeInteraction(e)}}])}()},72412:(e,t,n)=>{"use strict";n.d(t,{B:()=>ee});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(11738),u=n(43400),d=n(39488),h=n(85208),p=n(98246),f=n(9410),g=n(64383),m=n(43806),y=n(61517),v=n(13481),b=n(67287),w=n(15877),x=n(17341),A=n(61170),S=n(34520),C=n(3451),E=n(47505),k=n(59119),T=n(82512),_=n(45282);const O=[0,0,0,0],P=[],I="modifystart",M="modifyend";class L extends d.Ay{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}}class R extends m.A{constructor(e){let t;if(super(e),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=e.condition?e.condition:x.fs,this.defaultDeleteCondition_=function(e){return(0,x.Js)(e)&&(0,x.t5)(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:x.Gk,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new y.A,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new b.A({source:new w.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:N(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null,e.features?t=e.features:e.source&&(this.source_=e.source,t=new c.A(this.source_.getFeatures()),this.source_.addEventListener(v.A.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(v.A.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!t)throw new Error("The modify interaction requires features, a source or a layer");e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=t,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(u.A.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(u.A.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=void 0===e.snapToPointer?!this.hitDetection_:e.snapToPointer}addFeature_(e){const t=e.getGeometry();if(t){const n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}const n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(h.A.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new c.A;const n=this.featuresBeingModified_.getArray();for(let e=0,r=t.length;e=0;--e){const r=n[e];for(let e=this.dragSegments_.length-1;e>=0;--e)this.dragSegments_[e][0]===r&&this.dragSegments_.splice(e,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){e.feature&&this.features_.push(e.feature)}handleSourceRemove_(e){e.feature&&this.features_.remove(e.feature)}handleFeatureAdd_(e){this.addFeature_(e.element)}handleFeatureChange_(e){if(!this.changingFeature_){const t=e.target;this.removeFeature_(t),this.addFeature_(t)}}handleFeatureRemove_(e){this.removeFeature_(e.element)}writePointGeometry_(e,t){const n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)}writeMultiPointGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r=0;--e)this.insertVertex_(i[e],o)}return!!this.vertexFeature_}handleUpEvent(e){for(let t=this.dragSegments_.length-1;t>=0;--t){const n=this.dragSegments_[t][0],r=n.geometry;if("Circle"===r.getType()){const t=r.getCenter(),i=n.featureSegments[0],o=n.featureSegments[1];i.segment[0]=t,i.segment[1]=t,o.segment[0]=t,o.segment[1]=t,this.rBush_.update((0,A.createOrUpdateFromCoordinate)(t),i);let a=r;const s=(0,T.Tf)();if(s){const t=e.map.getView().getProjection();a=a.clone().transform(s,t),a=(0,k.nD)(a).transform(t,s)}this.rBush_.update(a.getExtent(),o)}else this.rBush_.update((0,A.boundingExtent)(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new L(M,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}handlePointerMove_(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)}handlePointerAtPixel_(e,t,n){const r=n||t.getCoordinateFromPixel(e),i=t.getView().getProjection(),o=function(e,t){return F(r,e,i)-F(r,t,i)};let a,s;if(this.hitDetection_){const n="object"==typeof this.hitDetection_?e=>e===this.hitDetection_:void 0;t.forEachFeatureAtPixel(e,((e,t,n)=>{n&&"Point"===n.getType()&&(n=new g.A((0,T.te)(n.getCoordinates(),i)));const r=n||e.getGeometry();if(e instanceof p.A&&this.features_.getArray().includes(e)){s=r;const t=e.getGeometry().getFlatCoordinates().slice(0,2);a=[{feature:e,geometry:s,segment:[t,t]}]}return!0}),{layerFilter:n})}if(!a){const e=(0,T.SD)((0,A.createOrUpdateFromCoordinate)(r,O),i),n=t.getView().getResolution()*this.pixelTolerance_,o=(0,T.JR)((0,A.buffer)(e,n,O),i);a=this.rBush_.getInExtent(o)}if(a&&a.length>0){const n=a.sort(o)[0],l=n.segment;let c=D(r,n,i);const u=t.getPixelFromCoordinate(c);let d=(0,S.Io)(e,u);if(s||d<=this.pixelTolerance_){const e={};if(e[(0,_.v6)(l)]=!0,this.snapToPointer_||(this.delta_[0]=c[0]-r[0],this.delta_[1]=c[1]-r[1]),"Circle"===n.geometry.getType()&&1===n.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);else{const r=t.getPixelFromCoordinate(l[0]),i=t.getPixelFromCoordinate(l[1]),o=(0,S.hG)(u,r),s=(0,S.hG)(u,i);d=Math.sqrt(Math.min(o,s)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(c=o>s?l[1]:l[0]),this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);const h={};h[(0,_.v6)(n.geometry)]=!0;for(let t=1,n=a.length;t=0;--a)i=e[a],d=i[0],h=(0,_.v6)(d.feature),d.depth&&(h+="-"+d.depth.join("-")),h in t||(t[h]={}),0===i[1]?(t[h].right=d,t[h].index=d.index):1==i[1]&&(t[h].left=d,t[h].index=d.index+1);for(h in t){switch(u=t[h].right,l=t[h].left,s=t[h].index,c=s-1,d=void 0!==l?l:u,c<0&&(c=0),o=d.geometry,r=o.getCoordinates(),n=r,p=!1,o.getType()){case"MultiLineString":r[d.depth[0]].length>2&&(r[d.depth[0]].splice(s,1),p=!0);break;case"LineString":r.length>2&&(r.splice(s,1),p=!0);break;case"MultiPolygon":n=n[d.depth[1]];case"Polygon":n=n[d.depth[0]],n.length>4&&(s==n.length-1&&(s=0),n.splice(s,1),p=!0,0===s&&(n.pop(),n.push(n[0]),c=n.length-1))}if(p){this.setGeometryCoordinates_(o,r);const t=[];if(void 0!==l&&(this.rBush_.remove(l),t.push(l.segment[0])),void 0!==u&&(this.rBush_.remove(u),t.push(u.segment[1])),void 0!==l&&void 0!==u){const e={depth:d.depth,feature:d.feature,geometry:d.geometry,index:c,segment:t};this.rBush_.insert((0,A.boundingExtent)(e.segment),e)}this.updateSegmentIndices_(o,s,d.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.length=0}}return p}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===n||void 0===i.depth||(0,E.aI)(i.depth,n))&&i.index>t&&(i.index+=r)}))}}function j(e,t){return e.index-t.index}function F(e,t,n){const r=t.geometry;if("Circle"===r.getType()){let i=r;if(1===t.index){const t=(0,T.Tf)();t&&(i=i.clone().transform(t,n));const r=(0,S.hG)(i.getCenter(),(0,T.Ad)(e,n)),o=Math.sqrt(r)-i.getRadius();return o*o}}const i=(0,T.Ad)(e,n);return P[0]=(0,T.Ad)(t.segment[0],n),P[1]=(0,T.Ad)(t.segment[1],n),(0,S.$x)(i,P)}function D(e,t,n){const r=t.geometry;if("Circle"===r.getType()&&1===t.index){let t=r;const i=(0,T.Tf)();return i&&(t=t.clone().transform(i,n)),(0,T.te)(t.getClosestPoint((0,T.Ad)(e,n)),n)}const i=(0,T.Ad)(e,n);return P[0]=(0,T.Ad)(t.segment[0],n),P[1]=(0,T.Ad)(t.segment[1],n),(0,T.te)((0,S.sG)(i,P),n)}function N(){const e=(0,C.mY)();return function(t,n){return e.Point}}const B=R;var z=n(2358),V=n(35415),$=n(25293);function G(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,U()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function W(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function q(e,t,n){H(e,t),t.set(e,n)}function H(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Y(e,t){return e.get(K(e,t))}function K(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var X=new WeakMap,Z=new WeakMap,J=new WeakMap,Q=new WeakSet,ee=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=G(this,t,[e]),H(i=n,o=Q),o.add(i),q(n,X,void 0),q(n,Z,[]),q(n,J,[]);var a={style:(0,V.convertTypeFeatureStyleToOpenLayersStyle)(e.style)};if(e.features)a.features=e.features;else if(e.geometryGroupKey){var s,l=null===(s=n.mapViewer.layer.geometry)||void 0===s?void 0:s.createGeometryGroup(e.geometryGroupKey);a.source=null==l?void 0:l.vectorSource}return function(e,t,n){e.set(K(e,t),n)}(X,n,new B(a)),Y(X,n).on("modifystart",K(Q,n,te).bind(n)),Y(X,n).on("modifyend",K(Q,n,ne).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){W(t,"startInteraction",this,3)([Y(X,this)])}},{key:"stopInteraction",value:function(){W(t,"stopInteraction",this,3)([Y(X,this)])}},{key:"onModifyStarted",value:function(e){z.A.onEvent(Y(Z,this),e)}},{key:"offModifyStarted",value:function(e){z.A.offEvent(Y(Z,this),e)}},{key:"onModifyEnded",value:function(e){z.A.onEvent(Y(J,this),e)}},{key:"offModifyEnded",value:function(e){z.A.offEvent(Y(J,this),e)}}])}($.N);function te(e){z.A.emitEvent(this,Y(Z,this),e)}function ne(e){z.A.emitEvent(this,Y(J,this),e)}},73802:(e,t,n)=>{"use strict";n.d(t,{P:()=>F});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(43400),u=n(85208),d=n(43806),h=n(61517),p=n(13481),f=n(20633),g=n(39488);const m="snap";class y extends g.Ay{constructor(e,t){super(e),this.vertex=t.vertex,this.vertexPixel=t.vertexPixel,this.feature=t.feature,this.segment=t.segment}}var v=n(61170),b=n(34520),w=n(59119),x=n(82512),A=n(45282),S=n(15355);function C(e){return e.feature?e.feature:e.element?e.element:null}const E=[];class k extends d.A{constructor(e){const t=e=e||{};t.handleDownEvent||(t.handleDownEvent=f.rT),t.stopDown||(t.stopDown=f.W8),super(t),this.on,this.once,this.un,this.source_=e.source?e.source:null,this.vertex_=void 0===e.vertex||e.vertex,this.edge_=void 0===e.edge||e.edge,this.features_=e.features?e.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.rBush_=new h.A,this.GEOMETRY_SEGMENTERS_={Point:this.segmentPointGeometry_.bind(this),LineString:this.segmentLineStringGeometry_.bind(this),LinearRing:this.segmentLineStringGeometry_.bind(this),Polygon:this.segmentPolygonGeometry_.bind(this),MultiPoint:this.segmentMultiPointGeometry_.bind(this),MultiLineString:this.segmentMultiLineStringGeometry_.bind(this),MultiPolygon:this.segmentMultiPolygonGeometry_.bind(this),GeometryCollection:this.segmentGeometryCollectionGeometry_.bind(this),Circle:this.segmentCircleGeometry_.bind(this)}}addFeature(e,t){t=void 0===t||t;const n=(0,A.v6)(e),r=e.getGeometry();if(r){const t=this.GEOMETRY_SEGMENTERS_[r.getType()];if(t){this.indexedFeaturesExtents_[n]=r.getExtent((0,v.createEmpty)());const i=[];if(t(i,r),1===i.length)this.rBush_.insert((0,v.boundingExtent)(i[0]),{feature:e,segment:i[0]});else if(i.length>1){const t=i.map((e=>(0,v.boundingExtent)(e))),n=i.map((t=>({feature:e,segment:t})));this.rBush_.load(t,n)}}}t&&(this.featureChangeListenerKeys_[n]=(0,S.KT)(e,u.A.CHANGE,this.handleFeatureChange_,this))}getFeatures_(){let e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}handleEvent(e){const t=this.snapTo(e.pixel,e.coordinate,e.map);return t&&(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel,this.dispatchEvent(new y(m,{vertex:e.coordinate,vertexPixel:e.pixel,feature:t.feature,segment:t.segment}))),super.handleEvent(e)}handleFeatureAdd_(e){const t=C(e);t&&this.addFeature(t)}handleFeatureRemove_(e){const t=C(e);t&&this.removeFeature(t)}handleFeatureChange_(e){const t=e.target;if(this.handlingDownUpSequence){const e=(0,A.v6)(t);e in this.pendingFeatures_||(this.pendingFeatures_[e]=t)}else this.updateFeature_(t)}handleUpEvent(e){const t=Object.values(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1}removeFeature(e,t){const n=void 0===t||t,r=(0,A.v6)(e),i=this.indexedFeaturesExtents_[r];if(i){const t=this.rBush_,n=[];t.forEachInExtent(i,(function(t){e===t.feature&&n.push(t)}));for(let e=n.length-1;e>=0;--e)t.remove(n[e])}n&&((0,S.JH)(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])}setMap(e){const t=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();t&&(n.forEach(S.JH),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(S.JH),this.featureChangeListenerKeys_={}),super.setMap(e),e&&(this.features_?n.push((0,S.KT)(this.features_,c.A.ADD,this.handleFeatureAdd_,this),(0,S.KT)(this.features_,c.A.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push((0,S.KT)(this.source_,p.A.ADDFEATURE,this.handleFeatureAdd_,this),(0,S.KT)(this.source_,p.A.REMOVEFEATURE,this.handleFeatureRemove_,this)),r.forEach((e=>this.addFeature(e))))}snapTo(e,t,n){const r=n.getView().getProjection(),i=(0,x.Ad)(t,r),o=(0,x.JR)((0,v.buffer)((0,v.boundingExtent)([i]),n.getView().getResolution()*this.pixelTolerance_),r),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;let l,c,u=1/0,d=null;const h=this.pixelTolerance_*this.pixelTolerance_,p=()=>{if(l){const t=n.getPixelFromCoordinate(l);if((0,b.hG)(e,t)<=h)return{vertex:l,vertexPixel:[Math.round(t[0]),Math.round(t[1])],feature:c,segment:d}}return null};if(this.vertex_){for(let e=0;e{const n=(0,x.Ad)(e,r),o=(0,b.hG)(i,n);o{e.push([t])}))}segmentMultiPolygonGeometry_(e,t){const n=t.getCoordinates();for(let t=0,r=n.length;t{"use strict";n.d(t,{H:()=>F});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(11738),u=n(39488),d=n(98246),h=n(96422),p=n(43806),f=n(20633),g=n(17341),m=n(82512);const y="translatestart",v="translating",b="translateend";class w extends u.Ay{constructor(e,t,n,r,i){super(e),this.features=t,this.coordinate=n,this.startCoordinate=r,this.mapBrowserEvent=i}}class x extends p.A{constructor(e){let t;if(super(e=e||{}),this.on,this.once,this.un,this.lastCoordinate_=null,this.startCoordinate_=null,this.features_=void 0!==e.features?e.features:null,e.layers&&!this.features_)if("function"==typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=f.rT;this.layerFilter_=t,this.filter_=e.filter&&!this.features_?e.filter:f.rT,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.condition_=e.condition?e.condition:g.Gk,this.lastFeature_=null,this.addChangeListener(h.A.ACTIVE,this.handleActiveChanged_)}handleDownEvent(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);const t=this.features_||new c.A([this.lastFeature_]);return this.dispatchEvent(new w(y,t,e.coordinate,this.startCoordinate_,e)),!0}return!1}handleUpEvent(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);const t=this.features_||new c.A([this.lastFeature_]);return this.dispatchEvent(new w(b,t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1}handleDragEvent(e){if(this.lastCoordinate_){const t=e.coordinate,n=e.map.getView().getProjection(),r=(0,m.Ad)(t,n),i=(0,m.Ad)(this.lastCoordinate_,n),o=r[0]-i[0],a=r[1]-i[1],s=this.features_||new c.A([this.lastFeature_]),l=(0,m.Tf)();s.forEach((function(e){const t=e.getGeometry();l?(t.transform(l,n),t.translate(o,a),t.transform(n,l)):t.translate(o,a),e.setGeometry(t)})),this.lastCoordinate_=t,this.dispatchEvent(new w(v,s,t,this.startCoordinate_,e))}}handleMoveEvent(e){const t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),t.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):t.classList.remove("ol-grab","ol-grabbing")}featuresAtPixel_(e,t){return t.forEachFeatureAtPixel(e,((e,t)=>{if(e instanceof d.A&&this.filter_(e,t)&&(!this.features_||this.features_.getArray().includes(e)))return e}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})}getHitTolerance(){return this.hitTolerance_}setHitTolerance(e){this.hitTolerance_=e}setMap(e){const t=this.getMap();super.setMap(e),this.updateState_(t)}handleActiveChanged_(){this.updateState_(null)}updateState_(e){let t=this.getMap();const n=this.getActive();if((!t||!n)&&(t=t||e,t)){t.getViewport().classList.remove("ol-grab","ol-grabbing")}}}const A=x;var S=n(2358),C=n(25293);function E(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,k()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function T(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function _(e,t,n){O(e,t),t.set(e,n)}function O(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(e,t){return e.get(I(e,t))}function I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakSet,F=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=E(this,t,[e]),O(i=n,o=j),o.add(i),_(n,M,void 0),_(n,L,[]),_(n,R,[]);var a={};return e.features&&(a.features=e.features),function(e,t,n){e.set(I(e,t),n)}(M,n,new A(a)),P(M,n).on("translatestart",I(j,n,D).bind(n)),P(M,n).on("translateend",I(j,n,N).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){T(t,"startInteraction",this,3)([P(M,this)])}},{key:"stopInteraction",value:function(){T(t,"stopInteraction",this,3)([P(M,this)])}},{key:"onTranslateStarted",value:function(e){S.A.onEvent(P(L,this),e)}},{key:"offTranslateStarted",value:function(e){S.A.offEvent(P(L,this),e)}},{key:"onTranslateEnded",value:function(e){S.A.onEvent(P(R,this),e)}},{key:"offTranslateEnded",value:function(e){S.A.offEvent(P(R,this),e)}}])}(C.N);function D(e){S.A.emitEvent(this,P(L,this),e)}function N(e){S.A.emitEvent(this,P(R,this),e)}},18354:(e,t,n)=>{"use strict";n.d(t,{i:()=>I});var r=n(96880),i=n(13718),o=n(47280),a=n(42432),s=n(74813),l=n.n(s),c=n(34946),u=n(47031);class d extends u.A{constructor(e){let t;t=void 0!==(e=e||{}).attributions?e.attributions:['© OpenStreetMap contributors.'];const n=void 0!==e.crossOrigin?e.crossOrigin:"anonymous",r=void 0!==e.url?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:t,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:void 0!==e.maxZoom?e.maxZoom:19,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}}const h=d;var p,f=n(15901),g=n(90932),m=n(68705),y=n(23853),v=n(76200),b=n(8058),w=n(27991),x=n(16775),A=n(6883),S=n(2358);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t0||0===i.length&&"nogeom"===m.basemapId)){e.next=39;break}return O={basemapId:o.join(""),layers:i,type:o.join("-"),basemapOptions:m,attribution:"osm"===m.basemapId?["© OpenStreetMap",(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",x.K.getDisplayLanguage(this.mapId))]:[(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",x.K.getDisplayLanguage(this.mapId))],zoomLevels:{min:d,max:p},defaultExtent:c,defaultOrigin:s,defaultResolutions:u,name:"",description:"",descSummary:"",altText:"",thumbnailUrl:""},e.abrupt("return",O);case 39:return e.abrupt("return",void 0);case 40:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"createCustomBasemap",value:function(e,t,n){var r=this,i=e.name,o=e.description,a=e.thumbnailUrl,s=e.attribution,l=void 0===n?x.K.getDisplayLanguage(this.mapId):n,c=E({},e);return c.name="en"===l?i.en:i.fr,c.layers=e.layers.map((function(e){return E(E({},e),{},{url:"en"===l?e.url.en:e.url.fr,source:new u.A({attributions:s[l],projection:b.M.PROJECTIONS[t],url:"en"===l?e.url.en:e.url.fr,crossOrigin:"Anonymous",tileGrid:new f.A({extent:r.defaultExtent,origin:r.defaultOrigin,resolutions:r.defaultResolutions})})})})),c.type="test",c.description="en"===l?o.en:o.fr,c.altText="en"===l?o.en:o.fr,c.thumbnailUrl="en"===l?a.en:a.fr,c.attribution="en"===l?[s.en]:[s.fr],c}},{key:"loadDefaultBasemaps",value:(e=(0,r.A)(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCoreBasemap(w.d.getBasemapOptions(this.mapId),t,n);case 2:(r=e.sent)&&(this.defaultOrigin=null==r?void 0:r.defaultOrigin,this.defaultResolutions=null==r?void 0:r.defaultResolutions,this.defaultExtent=null==r?void 0:r.defaultExtent,this.setBasemap(r));case 4:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"setBasemap",value:function(e){var t=this;if(this.activeBasemap=e,w.d.setMapAttribution(this.mapId,e?e.attribution:[""]),null!=e&&e.layers){for(var n=w.d.getMapViewer(this.mapId).map.getAllLayers(),r=0;r{"use strict";n.d(t,{Kz:()=>g,ns:()=>f});var r=n(47280),i=n(13718),o=n(75583),a=n(96645),s=n(94270),l=n(42432);function c(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e,n){var r;return(0,i.A)(this,t),r=d(this,t,[n]),(0,l.A)(r,"geoviewLayerId",void 0),r.message="A generic error happened for layer ".concat(e," on map ").concat(n),r.geoviewLayerId=e,Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(function(e){function t(e){var n;return(0,i.A)(this,t),n=c(this,t,["An error happened on map ".concat(e)]),(0,l.A)(n,"mapId",void 0),n.mapId=e,Object.setPrototypeOf(n,t.prototype),n}return(0,s.A)(t,e),(0,r.A)(t)}((0,n(88621).A)(Error))),f=function(e){function t(e,n){var r;return(0,i.A)(this,t),(r=d(this,t,[e,n])).message="Failed to create the layer ".concat(e," on map ").concat(n),Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(p),g=function(e){function t(e,n){var r;return(0,i.A)(this,t),r=d(this,t,[e.geoviewLayerId,n]),(0,l.A)(r,"geoviewLayer",void 0),r.message="Can not execute twice the createGeoViewLayers method for layer ".concat(e.geoviewLayerId," on map ").concat(n),r.geoviewLayer=e,Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(p)},96997:(e,t,n)=>{"use strict";n.d(t,{p:()=>M});var r=n(13718),i=n(47280),o=n(42432),a=n(67287),s=n(98246),l=n(15877),c=n(43910),u=n(59119),d=n(7809),h=n(64383),p=n(95005),f=n(58952),g=n(3451),m=n(58373),y=n(57054),v=n(2358),b=n(76200),w=n(8058),x=n(27991),A=n(6883);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t{"use strict";n.d(t,{Bq:()=>me,FB:()=>fe,XY:()=>ge,_B:()=>he,qt:()=>J,y6:()=>de});var r=n(96880),i=n(13718),o=n(47280),a=n(42432),s=n(74813),l=n.n(s),c=n(11738),u=n(37013),d=n(37632),h=n(76200),p=n(23853),f=n(25079),g=n(6883),m=n(82527),y=n(42930),v=n(36267),b=n(2358),w=n(16775),x=n(59155),A=n(27991),S=n(2265),C=n(46363),E=n(58748),k=n(40215),T=n(78861);function _(e,t,n){O(e,t),t.set(e,n)}function O(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(e,t){return e.get(M(e,t))}function I(e,t,n){return e.set(M(e,t),n),n}function M(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var L={CSV:"CSV Layer",esriDynamic:"Esri Dynamic Layer",esriFeature:"Esri Feature Layer",esriImage:"Esri Image Layer",imageStatic:"Static Image Layer",GeoJSON:"GeoJson Layer",GeoPackage:"GeoPackage Layer",xyzTiles:"XYZ Tiles",vectorTiles:"Vector Tiles",ogcFeature:"OGC Feature Layer",ogcWfs:"WFS Layer",ogcWms:"WMS Layer"},R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,B=new WeakMap,z=new WeakMap,V=new WeakMap,$=new WeakMap,G=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakMap,Y=new WeakMap,K=new WeakMap,X=new WeakMap,Z=new WeakSet,J=function(){return(0,o.A)((function e(t,n,r){var o,s,l,c,u,d;(0,i.A)(this,e),O(u=this,d=Z),d.add(u),(0,a.A)(this,"hitTolerance",e.DEFAULT_HIT_TOLERANCE),(0,a.A)(this,"mapId",void 0),(0,a.A)(this,"type",void 0),(0,a.A)(this,"geoviewLayerId",void 0),(0,a.A)(this,"geoviewLayerName",(0,h.createLocalizedString)("")),(0,a.A)(this,"metadataAccessPath",(0,h.createLocalizedString)("")),(0,a.A)(this,"listOfLayerEntryConfig",[]),(0,a.A)(this,"initialSettings",void 0),(0,a.A)(this,"layerLoadError",[]),(0,a.A)(this,"olRootLayer",void 0),(0,a.A)(this,"metadata",null),_(this,R,{}),_(this,j,{}),_(this,F,{}),_(this,D,{}),_(this,N,[]),(0,a.A)(this,"serverDateFragmentsOrder",void 0),(0,a.A)(this,"externalFragmentsOrder",void 0),_(this,B,!0),_(this,z,[]),_(this,V,[]),_(this,$,[]),_(this,G,[]),_(this,U,[]),_(this,W,[]),_(this,q,[]),_(this,H,[]),_(this,Y,[]),_(this,K,[]),_(this,X,[]),this.mapId=r,this.type=t,this.geoviewLayerId=n.geoviewLayerId||(0,h.generateId)(""),this.geoviewLayerName.en=null!=n&&null!==(o=n.geoviewLayerName)&&void 0!==o&&o.en?n.geoviewLayerName.en:L[t],this.geoviewLayerName.fr=null!=n&&null!==(s=n.geoviewLayerName)&&void 0!==s&&s.fr?n.geoviewLayerName.fr:L[t],null!==(l=n.metadataAccessPath)&&void 0!==l&&l.en&&(this.metadataAccessPath.en=n.metadataAccessPath.en.trim()),null!==(c=n.metadataAccessPath)&&void 0!==c&&c.fr&&(this.metadataAccessPath.fr=n.metadataAccessPath.fr.trim()),this.initialSettings=n.initialSettings,this.serverDateFragmentsOrder=n.serviceDateFormat?f.P.getDateFragmentsOrder(n.serviceDateFormat):void 0,this.externalFragmentsOrder=f.P.getDateFragmentsOrder(n.externalDateFormat),I(B,this,void 0===n.isTimeAware||n.isTimeAware),M(Z,this,Q).call(this,n,n.listOfLayerEntryConfig)}),[{key:"getMapViewer",value:function(){return A.d.getMapViewer(this.mapId)}},{key:"getLayerConfig",value:function(e){return this.getMapViewer().layer.getLayerEntryConfig(e)}},{key:"getOLLayer",value:function(e){return this.getMapViewer().layer.getOLLayer(e)}},{key:"getGeoviewLayerId",value:function(){return this.geoviewLayerId}},{key:"getGeoviewLayerName",value:function(){return this.geoviewLayerName}},{key:"getLayerStatus",value:function(e){return this.getLayerConfig(e).layerStatus}},{key:"getLayerName",value:function(e){var t;return P(R,this)[e]?P(R,this)[e]:null===(t=this.getLayerConfig(e))||void 0===t?void 0:t.layerName}},{key:"setLayerName",value:function(e,t){P(R,this)[e]=t,M(Z,this,re).call(this,{layerPath:e,layerName:t})}},{key:"getStyle",value:function(e){return P(D,this)[e]}},{key:"setStyle",value:function(e,t){P(D,this)[e]=t,M(Z,this,le).call(this,{style:t,layerPath:e})}},{key:"getAttributions",value:function(){return P(N,this)}},{key:"setAttributions",value:function(e){I(N,this,e)}},{key:"getLayerMetadata",value:function(e){return P(j,this)[e]}},{key:"setLayerMetadata",value:function(e,t){P(j,this)[e]=t}},{key:"getTemporalDimension",value:function(e){return P(F,this)[e]}},{key:"setTemporalDimension",value:function(e,t){P(F,this)[e]=t}},{key:"getIsTimeAware",value:function(){return P(B,this)}},{key:"countErrorStatus",value:function(){var e=this;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.listOfLayerEntryConfig).reduce((function(t,n){return(0,S.KD)(n)?t+e.countErrorStatus(n.listOfLayerEntryConfig):"error"===n.layerStatus?t+1:t}),0)}},{key:"createGeoViewLayers",value:(pe=(0,r.A)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.olRootLayer){e.next=13;break}return g.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - createGeoViewLayers",this.listOfLayerEntryConfig),this.listOfLayerEntryConfig.length>0&&(t="".concat(this.mapId," | ").concat(this.listOfLayerEntryConfig[0].layerPath)),t&&g.vF.logMarkerStart(t),e.next=6,this.getAdditionalServiceDefinition();case 6:return t&&g.vF.logMarkerCheck(t,"to get additional service definition"),e.next=9,this.processListOfLayerEntryConfig(this.listOfLayerEntryConfig);case 9:this.olRootLayer=e.sent,t&&g.vF.logMarkerCheck(t,"to process list of layer entry config"),e.next=14;break;case 13:throw new C.Kz(this,this.mapId);case 14:case"end":return e.stop()}}),e,this)}))),function(){return pe.apply(this,arguments)})},{key:"getAdditionalServiceDefinition",value:(he=(0,r.A)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchServiceMetadata();case 3:if(!this.listOfLayerEntryConfig.length){e.next=6;break}return e.next=6,this.validateAndExtractLayerMetadata();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),g.vF.logError(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return he.apply(this,arguments)})},{key:"validateAndExtractLayerMetadata",value:(de=(0,r.A)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.validateListOfLayerEntryConfig(this.listOfLayerEntryConfig),e.next=4,this.processListOfLayerEntryMetadata(this.listOfLayerEntryConfig);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),g.vF.logError(e.t0);case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return de.apply(this,arguments)})},{key:"fetchServiceMetadata",value:(te=(0,r.A)(l().mark((function e(){var t,n,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,h.getLocalizedValue)(this.metadataAccessPath,w.K.getDisplayLanguage(this.mapId)))){e.next=13;break}return e.prev=2,e.next=5,(0,h.getXMLHttpRequest)("".concat(t,"?f=json"));case 5:"{}"===(n=e.sent)?this.metadata=null:(this.metadata=(0,p.NK)(JSON.parse(n)),r=this.metadata.copyrightText,i=this.getAttributions(),r&&!i.includes(r)&&(i.push(r),this.setAttributions(i))),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),g.vF.logError(e.t0),this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata");case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return te.apply(this,arguments)})},{key:"processListOfLayerEntryMetadata",value:(J=(0,r.A)(l().mark((function e(t){var n,r,i,o=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,n=[],r=0;case 3:if(!(r2&&void 0!==u[2]?u[2]:null,e.prev=1,null!=(o=this.getLayerConfig(n))&&null!==(i=o.source)&&void 0!==i&&null!==(i=i.featureInfo)&&void 0!==i&&i.queryable){e.next=6;break}return g.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:g.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - getFeatureInfo",t,n),a="".concat(t," | ").concat(n),g.vF.logMarkerStart(a),e.t0=t,e.next="all"===e.t0?12:"at_pixel"===e.t0?14:"at_coordinate"===e.t0?16:"at_long_lat"===e.t0?18:"using_a_bounding_box"===e.t0?20:"using_a_polygon"===e.t0?22:24;break;case 12:return s=this.getAllFeatureInfo(n),e.abrupt("break",26);case 14:return s=this.getFeatureInfoAtPixel(r,n),e.abrupt("break",26);case 16:return s=this.getFeatureInfoAtCoordinate(r,n),e.abrupt("break",26);case 18:return s=this.getFeatureInfoAtLongLat(r,n),e.abrupt("break",26);case 20:return s=this.getFeatureInfoUsingBBox(r,n),e.abrupt("break",26);case 22:return s=this.getFeatureInfoUsingPolygon(r,n),e.abrupt("break",26);case 24:s=Promise.resolve([]),g.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return c=e.sent,g.vF.logMarkerCheck(a,"to getFeatureInfo",c),e.abrupt("return",c);case 33:return e.prev=33,e.t1=e.catch(1),g.vF.logError(e.t1),e.abrupt("return",null);case 37:case"end":return e.stop()}}),e,this,[[1,33]])}))),function(e,t){return s.apply(this,arguments)})},{key:"getAllFeatureInfo",value:function(e){return g.vF.logError("getAllFeatureInfo is not implemented! for ".concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtPixel",value:function(e,t){return g.vF.logError("getFeatureInfoAtPixel is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){return g.vF.logError("getFeatureInfoAtCoordinate is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtLongLat",value:function(e,t){return g.vF.logError("getFeatureInfoAtLongLat is not implemented for ".concat(t," - ").concat(e,"!")),Promise.resolve(null)}},{key:"getFeatureInfoUsingBBox",value:function(e,t){return g.vF.logError("getFeatureInfoUsingBBox is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoUsingPolygon",value:function(e,t){return g.vF.logError("getFeatureInfoUsingPolygon is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"queryLegend",value:function(e){var t=this;M(Z,this,ie).call(this,{layerPath:e});var n=this.getLegend(e);return n.then((function(n){n&&(t.updateIconImageCache(n),M(Z,t,oe).call(t,{layerPath:e,legend:n}))})).catch((function(e){g.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGeoviewLayer",e)})),n}},{key:"updateIconImageCache",value:function(e){var t=this.getMapViewer().iconImageCacheSize;e.styleConfig&&Object.keys(e.styleConfig).forEach((function(n){var r,i,o,a;!e.styleConfig||"uniqueValue"!==(null===(r=e.styleConfig[n])||void 0===r?void 0:r.styleType)&&"classBreaks"!==(null===(i=e.styleConfig[n])||void 0===i?void 0:i.styleType)||(null!==(o=e.styleConfig[n].uniqueValueStyleInfo)&&void 0!==o&&o.length&&(t+=e.styleConfig[n].uniqueValueStyleInfo.length),null!==(a=e.styleConfig[n].classBreakStyleInfo)&&void 0!==a&&a.length&&(t+=e.styleConfig[n].classBreakStyleInfo.length))})),d.ue.setSize(t),this.getMapViewer().iconImageCacheSize=t}},{key:"createLayerGroup",value:function(e,t){var n,r={layers:new c.A,properties:{layerConfig:e}};void 0!==(null==t?void 0:t.extent)&&(r.extent=t.extent),void 0!==(null==t?void 0:t.maxZoom)&&(r.maxZoom=t.maxZoom),void 0!==(null==t?void 0:t.minZoom)&&(r.minZoom=t.minZoom),void 0!==(null==t||null===(n=t.states)||void 0===n?void 0:n.opacity)&&(r.opacity=t.states.opacity);var i=new u.A(r);return this.emitLayerCreation({config:e,layer:i}),i}},{key:"getFieldDomain",value:function(e,t){return g.vF.logWarning("getFieldDomain is not implemented for ".concat(e," - ").concat(t)),null}},{key:"getFieldType",value:function(e,t){return g.vF.logWarning("getFieldType is not implemented for ".concat(e," - ").concat(t)),"string"}},{key:"getExtent",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getExtent()}},{key:"setExtent",value:function(e,t){var n=this.getOLLayer(t);n&&n.setExtent(e)}},{key:"getOpacity",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getOpacity()}},{key:"setOpacity",value:function(e,t){var n=this.getOLLayer(t);n&&(n.setOpacity(e),M(Z,this,ce).call(this,{layerPath:t,opacity:e}))}},{key:"getVisible",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getVisible()}},{key:"setVisible",value:function(e,t){var n=this.getOLLayer(t);if(n){var r=this.getVisible(t);n.setVisible(e),e!==r&&M(Z,this,ae).call(this,{layerPath:t,visible:e})}}},{key:"getMinZoom",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getMinZoom()}},{key:"setMinZoom",value:function(e,t){var n=this.getOLLayer(t);n&&n.setMinZoom(e)}},{key:"getMaxZoom",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getMaxZoom()}},{key:"setMaxZoom",value:function(e,t){var n=this.getOLLayer(t);n&&n.setMaxZoom(e)}},{key:"getLegend",value:(n=(0,r.A)(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this.type,e.t1=this.getStyle(t),e.next=5,(0,E.qC)(this.getStyle(t));case 5:return e.t2=e.sent,n={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",n);case 10:return e.prev=10,e.t3=e.catch(0),g.vF.logError(e.t3),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return n.apply(this,arguments)})},{key:"getFieldValue",value:function(e,t,n){var r,i=e.get(t);if("date"===n){"string"==typeof i?(this.serverDateFragmentsOrder||(this.serverDateFragmentsOrder=f.P.getDateFragmentsOrder(f.P.deduceDateFormat(i))),r=f.P.applyInputDateFormat(i,this.serverDateFragmentsOrder)):r=f.P.convertToUTC("".concat(f.P.convertMilisecondsToDate(i),"Z"));return this.externalFragmentsOrder&&(r=f.P.applyOutputDateFormat(r,this.externalFragmentsOrder,!0)),r}return i}},{key:"formatFeatureInfoResult",value:(t=(0,r.A)(l().mark((function e(t,n){var i,o,a,s,c,u,d,p,f,y,v,b,A,S,C,k,T,_=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.length){e.next=3;break}return e.abrupt("return",[]);case 3:return u=new m.z(1),d=function(){return u.withLock((0,r.A)(l().mark((function e(){var t,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==c){e.next=7;break}return c=null,e.next=4,_.queryLegend(n.layerPath);case 4:t=e.sent,(r=x.K.getLayerIconImage(t))&&(c=r[0].iconImage||null);case 7:return e.abrupt("return",c);case 8:case"end":return e.stop()}}),e)}))))},p=null==n||null===(i=n.source)||void 0===i?void 0:i.featureInfo,f=null==p||null===(o=p.fieldTypes)||void 0===o?void 0:o.split(","),y=null===(a=(0,h.getLocalizedValue)(null==p?void 0:p.outfields,w.K.getDisplayLanguage(this.mapId)))||void 0===a?void 0:a.split(","),v=null===(s=(0,h.getLocalizedValue)(null==p?void 0:p.aliasFields,w.K.getDisplayLanguage(this.mapId)))||void 0===s?void 0:s.split(","),b=[],t.forEach((function(e){b.push(new Promise((function(t){(0,E.$G)(e,_.getStyle(n.layerPath),n.filterEquation,n.legendFilterIsOff,!0,d).then((function(n){t({feature:e,canvas:n})})).catch((function(e){g.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGeoViewLayer",e)}))})))})),A={},S={},C=0,k=0,T=[],e.next=18,Promise.all(b);case 18:return e.sent.forEach((function(e){var t,r,i=e.feature,o=e.canvas;i.getGeometry()&&(r=i.getGeometry().getExtent());var a={featureKey:C++,geoviewLayerType:_.type,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,h.getLocalizedValue)(null==n||null===(t=n.source)||void 0===t||null===(t=t.featureInfo)||void 0===t?void 0:t.nameField,w.K.getDisplayLanguage(_.mapId))||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=_.getFieldDomain(e,n));var t=A[e];e in S||(S[e]=_.getFieldType(e,n));var r=S[e];if(null!=y&&y.includes(e)){var o=y.indexOf(e);a.fieldInfo[e]={fieldKey:k++,value:_.getFieldValue(i,e,f[o]),dataType:f[o],alias:v[o],domain:t}}else y||(a.fieldInfo[e]={fieldKey:k++,value:_.getFieldValue(i,e,r),dataType:r,alias:e,domain:t})}})),T.push(a)})),e.abrupt("return",T);case 23:return e.prev=23,e.t0=e.catch(0),g.vF.logError(e.t0),e.abrupt("return",[]);case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e,n){return t.apply(this,arguments)})},{key:"getLayerFilter",value:function(e){var t=this.getLayerConfig(e);return null==t?void 0:t.layerFilter}},{key:"onLoaded",value:function(e){var t;e.layerStatus="loaded",M(Z,this,ue).call(this,{layerPath:e.layerPath}),this.setVisible(!1!==(null===(t=e.initialSettings)||void 0===t||null===(t=t.states)||void 0===t?void 0:t.visible),e.layerPath)}},{key:"onError",value:function(e){e.layerStatus="error"}},{key:"getExtentFromFeatures",value:function(e,t){return g.vF.logError("Feature geometry for ".concat(t," is unavailable from ").concat(e)),Promise.resolve(void 0)}},{key:"setAllLayerStatusTo",value:function(e,t,n){var r=this;t.forEach((function(t){if((0,S.KD)(t))r.setAllLayerStatusTo(e,t.listOfLayerEntryConfig,n);else{if("error"===t.layerStatus)return;if(t.layerStatus=e,"error"===e){var i=t.layerPath;r.layerLoadError.push({layer:i,loggerMessage:"".concat(n," for layer ").concat(i," of map ").concat(r.mapId)})}}}))}},{key:"allLayerStatusAreGreaterThanOrEqualTo",value:function(e){return k.c.allLayerStatusAreGreaterThanOrEqualTo(e,this.listOfLayerEntryConfig)}},{key:"waitForAllLayerStatusAreGreaterThanOrEqualTo",value:(e=(0,r.A)(l().mark((function e(t,n){var r=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.whenThisThen)((function(){return r.allLayerStatusAreGreaterThanOrEqualTo("processed")}),t,n);case 2:return e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})},{key:"setLayerAndLoadEndListeners",value:function(e,t,n){var r=this;if(!t)throw new Error("An OpenLayer must be provided to register listeners. Layer path ".concat(e.layerPath));if(!n)throw new Error("A listenerType must be provided to register listeners. Layer path ".concat(e.layerPath));if(!T.A.LAYERS_HYBRID_MODE&&e.entryType!==S.hJ.GROUP){var i,o=function(){r.onLoaded(e),t.get("source").un("".concat(n,"loaderror"),i)};i=function(){r.onError(e),t.get("source").un("".concat(n,"loadend"),o)},t.get("source").once("".concat(n,"loaderror"),i),t.get("source").once("".concat(n,"loadend"),o)}}},{key:"getAllLayerEntryConfigs",value:function(){var e=this,t=[];return this.listOfLayerEntryConfig.forEach((function(n){M(Z,e,ne).call(e,t,n)})),t}},{key:"onLayerNameChanged",value:function(e){b.A.onEvent(P(z,this),e)}},{key:"offLayerNameChanged",value:function(e){b.A.offEvent(P(z,this),e)}},{key:"onLegendQuerying",value:function(e){b.A.onEvent(P($,this),e)}},{key:"offLegendQuerying",value:function(e){b.A.offEvent(P($,this),e)}},{key:"onLegendQueried",value:function(e){b.A.onEvent(P(G,this),e)}},{key:"offLegendQueried",value:function(e){b.A.offEvent(P(G,this),e)}},{key:"onVisibleChanged",value:function(e){b.A.onEvent(P(U,this),e)}},{key:"offVisibleChanged",value:function(e){b.A.offEvent(P(U,this),e)}},{key:"onLayerEntryProcessed",value:function(e){b.A.onEvent(P(W,this),e)}},{key:"offLayerEntryProcessed",value:function(e){b.A.offEvent(P(W,this),e)}},{key:"emitLayerRequesting",value:function(e){return b.A.emitEvent(this,P(q,this),e)}},{key:"onLayerRequesting",value:function(e){b.A.onEvent(P(q,this),e)}},{key:"offLayerRequesting",value:function(e){b.A.offEvent(P(q,this),e)}},{key:"emitLayerCreation",value:function(e){b.A.emitEvent(this,P(H,this),e)}},{key:"onLayerCreation",value:function(e){b.A.onEvent(P(H,this),e)}},{key:"offLayerCreation",value:function(e){b.A.offEvent(P(H,this),e)}},{key:"emitLayerFilterApplied",value:function(e){b.A.emitEvent(this,P(Y,this),e)}},{key:"onLayerFilterApplied",value:function(e){b.A.onEvent(P(Y,this),e)}},{key:"offLayerFilterApplied",value:function(e){b.A.offEvent(P(Y,this),e)}},{key:"onLayerStyleChanged",value:function(e){b.A.onEvent(P(V,this),e)}},{key:"offLayerStyleChanged",value:function(e){b.A.offEvent(P(V,this),e)}},{key:"onLayerOpacityChanged",value:function(e){b.A.onEvent(P(K,this),e)}},{key:"offLayerOpacityChanged",value:function(e){b.A.offEvent(P(K,this),e)}},{key:"onIndividualLayerLoaded",value:function(e){b.A.onEvent(P(X,this),e)}},{key:"offIndividualLayerLoaded",value:function(e){b.A.offEvent(P(X,this),e)}}]);var e,t,n,s,v,J,te,de,he,pe}();function Q(e,t){if(0!==t.length){if(1===t.length)this.listOfLayerEntryConfig=t;else{var n=new v.x({geoviewLayerConfig:t[0].geoviewLayerConfig,layerId:this.geoviewLayerId,layerName:this.geoviewLayerName,isMetadataLayerGroup:!1,initialSettings:e.initialSettings,listOfLayerEntryConfig:t});this.listOfLayerEntryConfig=[n],n.listOfLayerEntryConfig.forEach((function(e){e.parentLayerConfig=n}))}this.listOfLayerEntryConfig[0].geoviewLayerConfig.listOfLayerEntryConfig=t}}function ee(e){return te.apply(this,arguments)}function te(){return(te=(0,r.A)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.processListOfLayerEntryMetadata(t.listOfLayerEntryConfig);case 3:return t.layerStatus="processed",M(Z,this,se).call(this,{config:t}),e.abrupt("return",t);case 8:e.prev=8,e.t0=e.catch(0),g.vF.logError(e.t0);case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,this,[[0,8]])})))).apply(this,arguments)}function ne(e,t){var n,r=this;e.push(t),null===(n=t.listOfLayerEntryConfig)||void 0===n||n.forEach((function(t){M(Z,r,ne).call(r,e,t)}))}function re(e){b.A.emitEvent(this,P(z,this),e)}function ie(e){b.A.emitEvent(this,P($,this),e)}function oe(e){b.A.emitEvent(this,P(G,this),e)}function ae(e){b.A.emitEvent(this,P(U,this),e)}function se(e){b.A.emitEvent(this,P(W,this),e)}function le(e){b.A.emitEvent(this,P(V,this),e)}function ce(e){b.A.emitEvent(this,P(K,this),e)}function ue(e){b.A.emitEvent(this,P(X,this),e)}(0,a.A)(J,"DEFAULT_HIT_TOLERANCE",4);var de={CSV:"CSV",ESRI_DYNAMIC:"esriDynamic",ESRI_FEATURE:"esriFeature",ESRI_IMAGE:"esriImage",IMAGE_STATIC:"imageStatic",GEOJSON:"GeoJSON",GEOPACKAGE:"GeoPackage",XYZ_TILES:"xyzTiles",VECTOR_TILES:"vectorTiles",OGC_FEATURE:"ogcFeature",WFS:"ogcWfs",WMS:"ogcWms"},he={CSV:"TypeVectorLayerEntryConfig",imageStatic:"TypeImageStaticLayerEntryConfig",esriDynamic:"TypeEsriDynamicLayerEntryConfig",esriFeature:"TypeVectorLayerEntryConfig",esriImage:"TypeEsriImageLayerEntryConfig",GeoJSON:"TypeVectorLayerEntryConfig",GeoPackage:"TypeVectorLayerEntryConfig",xyzTiles:"TypeTileLayerEntryConfig",vectorTiles:"TypeTileLayerEntryConfig",ogcFeature:"TypeVectorLayerEntryConfig",ogcWfs:"TypeVectorLayerEntryConfig",ogcWms:"TypeOgcWmsLayerEntryConfig"},pe=[de.CSV,de.GEOJSON,de.ESRI_DYNAMIC,de.ESRI_FEATURE,de.ESRI_IMAGE,de.OGC_FEATURE,de.WFS,de.GEOPACKAGE],fe=function(e){return pe.includes(null==e?void 0:e.type)},ge=function(e){return(null==e?void 0:e.type)===de.WMS},me=function(e){return(null==e?void 0:e.type)===de.IMAGE_STATIC}},92409:(e,t,n)=>{"use strict";n.d(t,{$A:()=>R,KS:()=>I,Nf:()=>F,RW:()=>L,Sh:()=>P,YX:()=>M,gm:()=>j,mF:()=>_});var r=n(42432),i=n(96880),o=n(74813),a=n.n(o),s=n(34946),l=n(80363),c=n.n(l),u=n(27991),d=n(23853),h=n(76200),p=n(35415),f=n(8058),g=n(25079),m=n(6883),y=n(12989),v=n(28126),b=n(36267),w=n(2265),x=n(51640),A=n(73611),S=n(42942),C=n(501),E=n(16775);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t{"use strict";n.d(t,{A:()=>p});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(51640),u=n(8058);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(){return(0,r.A)(this,t),d(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getSourceProjection",value:function(e){var n,r,i,o,l,c;return(null===(n=(r=t,i="getOLLayer",o=this,l=3,c=(0,s.A)((0,a.A)(1&l?r.prototype:r),i,o),2&l&&"function"==typeof c?function(e){return c.apply(o,e)}:c)([e]).getSource())||void 0===n?void 0:n.getProjection())||void 0}},{key:"getMetadataProjection",value:function(){var e;return u.M.getProjection("EPSG:".concat(null===(e=this.metadata)||void 0===e||null===(e=e.fullExtent)||void 0===e||null===(e=e.spatialReference)||void 0===e?void 0:e.wkid))||void 0}},{key:"getMetadataExtent",value:function(){var e,t,n,r,i;if(null!==(e=this.metadata)&&void 0!==e&&e.fullExtent)return[null===(t=this.metadata)||void 0===t?void 0:t.fullExtent.xmin,null===(n=this.metadata)||void 0===n?void 0:n.fullExtent.ymin,null===(r=this.metadata)||void 0===r?void 0:r.fullExtent.xmax,null===(i=this.metadata)||void 0===i?void 0:i.fullExtent.ymax]}}])}(c.qt)},73611:(e,t,n)=>{"use strict";n.d(t,{IU:()=>N,xM:()=>B,zt:()=>V});var r=n(29067),i=n(55907),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(42432),p=n(74813),f=n.n(p),g=n(88752),m=n(39684),y=n(58699),v=n(98246),b=n(96997),w=n(76200),x=n(51640),A=n(1691),S=n(35415),C=n(8058),E=n(6883),k=n(25079),T=n(28126),_=n(2265),O=n(92409),P=n(16775);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t0&&(l=s[0]),l||(y={source:a,properties:{layerConfig:n}},void 0!==(null===(c=n.initialSettings)||void 0===c?void 0:c.className)&&(y.className=n.initialSettings.className),void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.extent)&&(y.extent=n.initialSettings.extent),void 0!==(null===(d=n.initialSettings)||void 0===d?void 0:d.maxZoom)&&(y.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(h=n.initialSettings)||void 0===h?void 0:h.minZoom)&&(y.minZoom=n.initialSettings.minZoom),void 0!==(null===(p=n.initialSettings)||void 0===p||null===(p=p.states)||void 0===p?void 0:p.opacity)&&(y.opacity=n.initialSettings.states.opacity),l=new m.A(y),this.setLayerAndLoadEndListeners(n,l,"image")),this.emitLayerCreation({config:n,layer:l}),e.abrupt("return",Promise.resolve(l));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"getAllFeatureInfo",value:(c=(0,o.A)(f().mark((function e(t){var n,o,a,s,l,c,u,d,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getLayerConfig(t),o=n.getTypeGeometries(),a=(0,i.A)(o,1),s=a[0],(l=n.geoviewLayerConfig.metadataAccessPath[P.K.getDisplayLanguage(this.mapId)]).endsWith("/")||(l+="/"),c="".concat(l).concat(n.layerId,"/query?where=1=1&outFields=*&f=json&returnGeometry=false"),e.next=8,fetch(c);case 8:return u=e.sent,e.next=11,u.json();case 11:if(!(d=e.sent).features){e.next=20;break}if(h=d.features.map((function(e){var t;if(e.geometry){var n=e.geometry.points||e.geometry.paths||e.geometry.rings||[e.geometry.x,e.geometry.y];t=b.p.createGeometryFromType(s,n)}var r=e.attributes;return new v.A(M(M({},r),{},{geometry:t}))})),!d.exceededTransferLimit){e.next=19;break}return e.next=17,D(z,this,$).call(this,n,c,h.length);case 17:e.sent.forEach((function(e){var t=e.features.map((function(e){var t;if(e.geometry){var n=e.geometry.points||e.geometry.paths||e.geometry.rings||[e.geometry.x,e.geometry.y];t=b.p.createGeometryFromType(s,n)}var r=e.attributes;return new v.A(M(M({},r),{},{geometry:t}))}));h.push.apply(h,(0,r.A)(t))}));case 19:return e.abrupt("return",this.formatFeatureInfoResult(h,n));case 20:throw new Error("Error querying service. No features were returned.");case 23:return e.prev=23,e.t0=e.catch(0),E.vF.logError("esri-dynamic.getAllFeatureInfo()\n",e.t0),e.abrupt("return",null);case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return c.apply(this,arguments)})},{key:"getFeatureInfoAtPixel",value:function(e,t){return this.getFeatureInfoAtCoordinate(this.getMapViewer().map.getCoordinateFromPixel(e),t)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){var n=this.getMapViewer().convertCoordinateMapProjToLngLat(e);return this.getFeatureInfoAtLongLat(n,t)}},{key:"getFeatureInfoAtLongLat",value:(l=(0,o.A)(f().mark((function e(t,n){var r,i,o,a,s,l,c,u,d,h,p,g,m,v,b,x,A;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.getVisible(n)){e.next=3;break}return e.abrupt("return",[]);case 3:if(o=this.getLayerConfig(n),a=this.getOLLayer(n),null!==(r=o.source)&&void 0!==r&&null!==(r=r.featureInfo)&&void 0!==r&&r.queryable){e.next=7;break}return e.abrupt("return",[]);case 7:if(s=(0,w.getLocalizedValue)(null===(i=o.source)||void 0===i?void 0:i.dataAccessPath,P.K.getDisplayLanguage(this.mapId))){e.next=10;break}return e.abrupt("return",[]);case 10:return s=s.endsWith("/")?s:"".concat(s,"/"),l=this.getMapViewer(),c=l.getView().calculateExtent(),u=l.convertCoordinateMapProjToLngLat([c[0],c[1]]),d=l.convertCoordinateMapProjToLngLat([c[2],c[3]]),h={xmin:u[0],ymin:u[1],xmax:d[0],ymax:d[1]},p=a.getSource(),g=(null==p?void 0:p.getParams().layerDefs)||"",m=l.map.getSize(),s="".concat(s,"identify?f=json&tolerance=").concat(this.hitTolerance)+"&mapExtent=".concat(h.xmin,",").concat(h.ymin,",").concat(h.xmax,",").concat(h.ymax)+"&imageDisplay=".concat(m[0],",").concat(m[1],",96")+"&layers=visible:".concat(o.layerId)+"&layerDefs=".concat(g)+"&returnFieldName=true&sr=4326&returnGeometry=true"+"&geometryType=esriGeometryPoint&geometry=".concat(t[0],",").concat(t[1]),e.next=22,fetch(s);case 22:return v=e.sent,e.next=25,v.json();case 25:if(!(b=e.sent).error){e.next=29;break}throw E.vF.logInfo("There is a problem with this query: ",s),new Error("Error code = ".concat(b.error.code," ").concat(b.error.message)||0);case 29:return x=(new y.A).readFeatures({features:b.results},{dataProjection:C.M.PROJECTION_NAMES.LNGLAT,featureProjection:l.getProjection().getCode()}),e.next=32,this.formatFeatureInfoResult(x,o);case 32:return A=e.sent,e.abrupt("return",A);case 36:return e.prev=36,e.t0=e.catch(0),E.vF.logError("esri-dynamic.getFeatureInfoAtLongLat()\n",e.t0),e.abrupt("return",null);case 40:case"end":return e.stop()}}),e,this,[[0,36]])}))),function(e,t){return l.apply(this,arguments)})},{key:"getViewFilter",value:function(e){var n=this.getLayerConfig(e),r=n.layerFilter;if(this.getStyle(n.layerPath)){var i=function(e){void 0===e.defaultVisible&&(e.defaultVisible=!0);for(var t=(0,_.IG)(e)?e.uniqueValueStyleInfo:e.classBreakStyleInfo,n=0;n= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[0].minValue,n.source.featureInfo))):!1===a.classBreakStyleInfo[0].visible&&!1!==a.defaultVisible&&(d.push("".concat(a.field," < ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[0].minValue,n.source.featureInfo))),h=p):!1!==a.classBreakStyleInfo[p].visible&&!1===a.defaultVisible?(d.push("".concat(a.field," > ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo)))):!1===a.classBreakStyleInfo[p].visible&&!1!==a.defaultVisible&&(d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),h=p):!1===a.defaultVisible?!1===a.classBreakStyleInfo[p].visible?d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))):p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo))):!1!==a.classBreakStyleInfo[p].visible?(d.push("".concat(a.field," > ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))),h=-1):h=p;if(-1!==h&&d.push("".concat(a.field," > ").concat(D(z,this,H).call(this,a.field,a.classBreakStyleInfo[h].maxValue,n.source.featureInfo))),!1!==a.defaultVisible){var f="".concat(d.slice(0,-1).reduce((function(e,t,n){return 0===n?"(".concat(t," or "):n%2==0?"".concat(e," and ").concat(t,") or "):"".concat(e,"(").concat(t)}),"")).concat(d.slice(-1)[0],")");return"".concat(f).concat(r?" and (".concat(r,")"):"")}var g=d.length?"".concat(d.reduce((function(e,t,n){return 0===n?"((".concat(t," and "):n%2==0?"".concat(e," or (").concat(t," and "):"".concat(e).concat(t,")")}),""),")"):"(1=0)";return"".concat(g).concat(r?" and (".concat(r,")"):"")}}return"(1=1)"}},{key:"onLoaded",value:function(e){j(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n,i=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];E.vF.logTraceCore("ESRI-DYNAMIC - applyViewFilter",e);var a=this.getLayerConfig(e),s=this.getOLLayer(e),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,a.layerFilter=l,o&&(l=this.getViewFilter(e));var c=(0,r.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=k.P.applyInputDateFormat(e[0],i.externalFragmentsOrder,t);n=(n=n.slice(0,20===n.length?-1:-6)).replace("T"," "),l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))})),null==s||s.getSource().updateParams({layerDefs:'{"'.concat(a.layerId,'": "').concat(l,'"}')}),null==s||s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,S.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}},{key:"getExtentFromFeatures",value:(n=(0,o.A)(f().mark((function e(t,n){var r,i,o,a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getLayerConfig(t),i=(0,w.getLocalizedValue)(r.source.dataAccessPath,P.K.getDisplayLanguage(this.mapId)),o=n.join("%2C"),!i){e.next=21;break}return i.endsWith("/")||(i+="/"),a="".concat(i).concat(r.layerId,"/query?&f=json&where=&objectIds=").concat(o,"&returnGeometry=true"),e.prev=6,e.next=9,fetch(a);case 9:return s=e.sent,e.next=12,s.json();case 12:return l=e.sent,(new y.A).readFeatures({features:l.features},{dataProjection:"EPSG:".concat(l.spatialReference.wkid),featureProjection:this.getMapViewer().getProjection().getCode()}).forEach((function(e){var t,n=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();n&&(c?(0,S.getMinOrMaxExtents)(c,n):c=n)})),e.abrupt("return",c);case 18:e.prev=18,e.t0=e.catch(6),E.vF.logError("Error fetching geometry from ".concat(a),e.t0);case 21:return e.abrupt("return",void 0);case 22:case"end":return e.stop()}}),e,this,[[6,18]])}))),function(e,t){return n.apply(this,arguments)})}]);var n,l,c,u}(A.A);function $(e,t,n,r){return G.apply(this,arguments)}function G(){return(G=(0,o.A)(f().mark((function e(t,n,i,o){var a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],s="".concat(n,"&resultOffset=").concat(o||i),e.prev=2,e.next=5,fetch(s);case 5:return l=e.sent,e.next=8,l.json();case 8:if(c=e.sent,a.push(c),!c.exceededTransferLimit){e.next=19;break}return e.t0=a.push,e.t1=a,e.t2=r.A,e.next=16,D(z,this,$).call(this,t,n,i,o?o+i:2*i);case 16:e.t3=e.sent,e.t4=(0,e.t2)(e.t3),e.t0.apply.call(e.t0,e.t1,e.t4);case 19:e.next=24;break;case 21:e.prev=21,e.t5=e.catch(2),E.vF.logError("Error loading additional features for ".concat(t.layerPath," from ").concat(s),e.t5);case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[2,21]])})))).apply(this,arguments)}function U(e){return e.uniqueValueStyleInfo.reduce((function(t,n){return(!1===n.visible&&!1!==e.defaultVisible||!1!==n.visible&&!1===e.defaultVisible)&&n.values.forEach((function(e,n){var r=t[n].find((function(t){return t.value===e}));r?r.nbOccurence++:t[n].push({value:e,nbOccurence:1})})),t}),e.fields.map((function(){return[]})))}function W(e,t){for(var n=e.fields.map((function(){return!0})),r=[],i=0;-1!==i;i=n.findIndex((function(e){return e}))){for(var o=t[i].reduce((function(e,t){return e+t.nbOccurence}),0),a=0;at[a].length||t[i].length===t[a].length&&o{"use strict";n.d(t,{$x:()=>M,sV:()=>I,yl:()=>P});var r=n(42432),i=n(29067),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(74813),p=n.n(h),f=n(88752),g=n(39684),m=n(76200),y=n(25079),v=n(6883),b=n(58118),w=n(51640),x=n(1691),A=n(2265),S=n(92409),C=n(16775),E=n(35415),k=n(58748);function T(e,t,n){return t=(0,c.A)(t),(0,l.A)(e,_()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function O(e,t,n,r){var i=(0,u.A)((0,c.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var P=function(e){return(null==e?void 0:e.geoviewLayerType)===w.y6.ESRI_IMAGE},I=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===w.y6.ESRI_IMAGE},M=function(e){function t(e,n){return(0,a.A)(this,t),n.serviceDateFormat||(n.serviceDateFormat="DD/MM/YYYY HH:MM:SSZ"),T(this,t,[w.y6.ESRI_IMAGE,n,e])}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getLegend",value:(l=(0,o.A)(p().mark((function e(t){var n,r,i,o,a,s,l,c,u,d;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=4;break}return e.abrupt("return",null);case 4:return r="".concat((0,m.getLocalizedValue)(n.geoviewLayerConfig.metadataAccessPath,C.K.getDisplayLanguage(this.mapId)),"/legend?f=json"),e.next=7,fetch(r);case 7:return i=e.sent,e.next=10,i.json();case 10:if((o=e.sent).layers&&1===o.layers.length?a=o.layers[0].legend:o.layers.length&&(s=o.layers.find((function(e){return e.layerId===n.layerId})))&&(a=s.legend),a){e.next=15;break}return l={type:w.y6.ESRI_IMAGE,styleConfig:this.getStyle(t),legend:null},e.abrupt("return",l);case 15:return c=[],a.forEach((function(e){var t={label:e.label,values:e.label.split(","),settings:{type:"iconSymbol",mimeType:e.contentType,src:e.imageData,width:e.width,height:e.height}};c.push(t)})),u={Point:{styleType:"uniqueValue",fields:["default"],uniqueValueStyleInfo:c}},this.setStyle(t,u),e.t0=w.y6.ESRI_IMAGE,e.t1=u,e.next=24,(0,k.qC)(this.getStyle(t));case 24:return e.t2=e.sent,d={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",d);case 29:return e.prev=29,e.t3=e.catch(0),v.vF.logError("Get Legend for ".concat(t," error"),e.t3),e.abrupt("return",null);case 33:case"end":return e.stop()}}),e,this,[[0,29]])}))),function(e){return l.apply(this,arguments)})},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n=e.layerPath;(0,A.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),e.listOfLayerEntryConfig.length||(t.layerLoadError.push({layer:n,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),e.layerStatus="error"))}))}},{key:"getFieldType",value:function(e,t){return(0,S.KS)(this,e,t)}},{key:"getFieldDomain",value:function(e,t){return(0,S.YX)(this,e,t)}},{key:"processTemporalDimension",value:function(e,t){(0,S.RW)(this,e,t,!0)}},{key:"processFeatureInfoConfig",value:function(e){(0,S.$A)(this,e)}},{key:"processInitialSettings",value:function(e){(0,S.gm)(this,e)}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof b.Q))throw new Error("Invalid layer configuration type provided");return(0,S.Nf)(this,e)}},{key:"processOneLayerEntry",value:(n=(0,o.A)(p().mark((function e(n){var r,i,o,a,s,l,c,u,d,h;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(t,"processOneLayerEntry",this,3)([n]);case 2:if(n instanceof b.Q){e.next=4;break}throw new Error("Invalid layer configuration type provided");case 4:return(r={}).attributions=[this.metadata.copyrightText?this.metadata.copyrightText:""],r.url=(0,m.getLocalizedValue)(n.source.dataAccessPath,C.K.getDisplayLanguage(this.mapId)),r.params={LAYERS:"show:".concat(n.layerId)},n.source.transparent&&Object.defineProperty(r.params,"transparent",n.source.transparent),n.source.format&&Object.defineProperty(r.params,"format",n.source.format),n.source.crossOrigin?r.crossOrigin=n.source.crossOrigin:r.crossOrigin="Anonymous",n.source.projection&&(r.projection="EPSG:".concat(n.source.projection)),i=new f.A(r),(o=this.emitLayerRequesting({config:n,source:i})).length>0&&(a=o[0]),a||(h={source:i,properties:{layerConfig:n}},void 0!==(null===(s=n.initialSettings)||void 0===s?void 0:s.className)&&(h.className=n.initialSettings.className),void 0!==(null===(l=n.initialSettings)||void 0===l?void 0:l.extent)&&(h.extent=n.initialSettings.extent),void 0!==(null===(c=n.initialSettings)||void 0===c?void 0:c.maxZoom)&&(h.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.minZoom)&&(h.minZoom=n.initialSettings.minZoom),void 0!==(null===(d=n.initialSettings)||void 0===d||null===(d=d.states)||void 0===d?void 0:d.opacity)&&(h.opacity=n.initialSettings.states.opacity),a=new g.A(h),this.setLayerAndLoadEndListeners(n,a,"image")),this.emitLayerCreation({config:n,layer:a}),e.abrupt("return",Promise.resolve(a));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"onLoaded",value:function(e){O(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t,n){var o=this;v.vF.logTraceCore("ESRIImage - applyViewFilter",e);var a=this.getLayerConfig(e),s=this.getOLLayer(e),l=s.getSource();if(l){var c=t;if(a.legendFilterIsOff=!n,n&&(a.layerFilter=t),c){var u=(c=c.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),d=u[0].trim();c=u[1].trim();var h=(0,i.A)("".concat(c," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));h.reverse(),h.forEach((function(e){var t=![20,25].includes(e[0].length),n=y.P.applyInputDateFormat(e[0],o.externalFragmentsOrder,t);c="".concat(c.slice(0,e.index-6)).concat(n).concat(c.slice(e.index+e[0].length+2))})),l.updateParams((0,r.A)({},d,c.replace(/\s*/g,""))),s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:c})}}}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,E.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}}]);var n,l}(x.A)},65372:(e,t,n)=>{"use strict";n.d(t,{HO:()=>O,Qn:()=>P,S6:()=>M});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(34946),p=n(33069),f=n(39684),g=n(23853),m=n(51640),y=n(1691),v=n(2265),b=n(76200),w=n(6883),x=n(73095),A=n(16775),S=n(58748);function C(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,E()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}function k(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function T(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function _(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var O=function(e){return(null==e?void 0:e.geoviewLayerType)===m.y6.IMAGE_STATIC},P=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===m.y6.IMAGE_STATIC},I=new WeakSet,M=function(e){function t(e,n){var r;return(0,i.A)(this,t),T(r=C(this,t,[m.y6.IMAGE_STATIC,n,e]),I),r}return(0,c.A)(t,e),(0,o.A)(t,[{key:"fetchServiceMetadata",value:function(){return new Promise((function(e){e()}))}},{key:"getLegend",value:(a=(0,r.A)(d().mark((function e(t){var n,r,i,o,a,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,_(I,this,L).call(this,n);case 6:if(r=e.sent){e.next=10;break}return i={type:m.y6.IMAGE_STATIC,legend:null},e.abrupt("return",i);case 10:return e.next=12,(0,S.yt)(r);case 12:if(!(o=e.sent)){e.next=21;break}return(a=document.createElement("canvas")).width=o.width,a.height=o.height,a.getContext("2d").drawImage(o,0,0),s={type:m.y6.IMAGE_STATIC,legend:a},e.abrupt("return",s);case 21:return l={type:m.y6.IMAGE_STATIC,legend:null},e.abrupt("return",l);case 25:return e.prev=25,e.t0=e.catch(0),w.vF.logError("Error getting legend for ".concat(t),e.t0),e.abrupt("return",null);case 29:case"end":return e.stop()}}),e,this,[[0,25]])}))),function(e){return a.apply(this,arguments)})},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r=e.layerPath;if((0,v.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:r,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",t.metadata){var i;if(Array.isArray(null===(n=t.metadata)||void 0===n?void 0:n.listOfLayerEntryConfig))return(0,g.KX)(null===(i=t.metadata)||void 0===i?void 0:i.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId}))?void 0:(t.layerLoadError.push({layer:r,loggerMessage:"GeoJSON layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error"));throw new Error("Invalid GeoJSON metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")"))}}))}},{key:"processOneLayerEntry",value:(n=(0,r.A)(d().mark((function e(n){var r,i,o,a,s,l,c,u,h,g,m,y;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t,"processOneLayerEntry",this,3)([n]);case 2:if(n instanceof x.V){e.next=4;break}throw new Error("Invalid layer configuration type provided");case 4:if(null!=n&&null!==(r=n.source)&&void 0!==r&&r.extent){e.next=6;break}throw new Error("Parameter extent is not defined in source element of layerConfig.");case 6:if(a={url:(0,b.getLocalizedValue)(n.source.dataAccessPath,A.K.getDisplayLanguage(this.mapId))||"",imageExtent:n.source.extent},null!=n&&null!==(i=n.source)&&void 0!==i&&i.crossOrigin?a.crossOrigin=n.source.crossOrigin:a.crossOrigin="Anonymous",null==n||null===(o=n.source)||void 0===o||!o.projection){e.next=12;break}a.projection="EPSG:".concat(n.source.projection),e.next=13;break;case 12:throw new Error("Parameter projection is not define in source element of layerConfig.");case 13:return s=new p.A(a),(l=this.emitLayerRequesting({config:n,source:s})).length>0&&(c=l[0]),c||(y={source:s},void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.extent)&&(y.extent=n.initialSettings.extent),void 0!==(null===(h=n.initialSettings)||void 0===h?void 0:h.maxZoom)&&(y.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(g=n.initialSettings)||void 0===g?void 0:g.minZoom)&&(y.minZoom=n.initialSettings.minZoom),void 0!==(null===(m=n.initialSettings)||void 0===m||null===(m=m.states)||void 0===m?void 0:m.opacity)&&(y.opacity=n.initialSettings.states.opacity),c=new f.A(y),this.setLayerAndLoadEndListeners(n,c,"image")),this.emitLayerCreation({config:n,layer:c}),e.abrupt("return",Promise.resolve(c));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e),r=this.getSourceProjection(e),i=null==n||null===(t=n.getSource())||void 0===t?void 0:t.getImageExtent();return i&&(i=this.getMapViewer().convertExtentFromProjToMapProj(i,r)),i}}]);var n,a}(y.A);function L(e){var t=this;return new Promise((function(n){var r=(0,b.getLocalizedValue)(e.source.dataAccessPath,A.K.getDisplayLanguage(t.mapId));r?(r=r.toLowerCase().startsWith("http:")?"https".concat(r.slice(4)):r,h.A.get(r,{responseType:"blob",withCredentials:!1}).then((function(e){var t;n((t=(0,g.KX)(e.data),new Promise((function(e){var n=new FileReader;n.onloadend=function(){return e(n.result)},n.onerror=function(){return e(null)},n.readAsDataURL(t)}))))})).catch((function(){return n(null)}))):n(null)}))}},92187:(e,t,n)=>{"use strict";n.d(t,{RZ:()=>uo,Pg:()=>co,c9:()=>lo});var r=n(42432),i=n(96880),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(74813),h=n.n(d),p=n(77796),f=n(97446),g=n(15901),m=n(92368),y=n(95005),v=n(58373),b=n(22527),w=n(58952),x=n(3451),A=n(10851),S=n(20633),C=n(53029),E=n(98765),k=n(58033),T=n(75894),_=n(45282),O=n(7725),P=(n(70003),n(37013),n(4472)),I=n(43910),M=n(67103),L=n(87620),R=n(32332);const j=4294967296,F=1/j,D="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");class N{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(e,t,n=this.length){for(;this.pos>3,i=this.pos;this.type=7&n,e(r,t,this),this.pos===i&&this.skip(n)}return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){const e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){const e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*j;return this.pos+=8,e}readSFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*j;return this.pos+=8,e}readFloat(){const e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){const e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){const t=this.buf;let n,r;return r=t[this.pos++],n=127&r,r<128?n:(r=t[this.pos++],n|=(127&r)<<7,r<128?n:(r=t[this.pos++],n|=(127&r)<<14,r<128?n:(r=t[this.pos++],n|=(127&r)<<21,r<128?n:(r=t[this.pos],n|=(15&r)<<28,function(e,t,n){const r=n.buf;let i,o;if(o=r[n.pos++],i=(112&o)>>4,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<3,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<10,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<17,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(127&o)<<24,o<128)return B(e,i,t);if(o=r[n.pos++],i|=(1&o)<<31,o<128)return B(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(n,e,this)))))}readVarint64(){return this.readVarint(!0)}readSVarint(){const e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return Boolean(this.readVarint())}readString(){const e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&D?D.decode(this.buf.subarray(t,e)):function(e,t,n){let r="",i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+c>n)break;1===c?t<128&&(l=t):2===c?(o=e[i+1],128==(192&o)&&(l=(31&t)<<6|63&o,l<=127&&(l=null))):3===c?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&t)<<12|(63&o)<<6|63&a,(l<=2047||l>=55296&&l<=57343)&&(l=null))):4===c&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&t)<<18|(63&o)<<12|(63&a)<<6|63&s,(l<=65535||l>=1114112)&&(l=null))),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=c}return r}(this.buf,t,e)}readBytes(){const e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){const n=this.readPackedEnd();for(;this.pos127;);else if(2===t)this.pos=this.readVarint()+this.pos;else if(5===t)this.pos+=4;else{if(1!==t)throw new Error(`Unimplemented type: ${t}`);this.pos+=8}}writeTag(e,t){this.writeVarint(e<<3|t)}realloc(e){let t=this.length||16;for(;t268435455||e<0?function(e,t){let n,r;e>=0?(n=e%4294967296|0,r=e/4294967296|0):(n=~(-e%4294967296),r=~(-e/4294967296),4294967295^n?n=n+1|0:(n=0,r=r+1|0));if(e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){const n=(7&e)<<4;if(t.buf[t.pos++]|=n|((e>>>=3)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;t.buf[t.pos++]=127&e}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))}writeSVarint(e){this.writeVarint(e<0?2*-e-1:2*e)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(4*e.length),this.pos++;const t=this.pos;this.pos=function(e,t,n){for(let r,i,o=0;o55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);const n=this.pos-t;n>=128&&z(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){const t=e.length;this.writeVarint(t),this.realloc(t);for(let n=0;n=128&&z(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r}writeMessage(e,t,n){this.writeTag(e,2),this.writeRawMessage(t,n)}writePackedVarint(e,t){t.length&&this.writeMessage(e,V,t)}writePackedSVarint(e,t){t.length&&this.writeMessage(e,$,t)}writePackedBoolean(e,t){t.length&&this.writeMessage(e,W,t)}writePackedFloat(e,t){t.length&&this.writeMessage(e,G,t)}writePackedDouble(e,t){t.length&&this.writeMessage(e,U,t)}writePackedFixed32(e,t){t.length&&this.writeMessage(e,q,t)}writePackedSFixed32(e,t){t.length&&this.writeMessage(e,H,t)}writePackedFixed64(e,t){t.length&&this.writeMessage(e,Y,t)}writePackedSFixed64(e,t){t.length&&this.writeMessage(e,K,t)}writeBytesField(e,t){this.writeTag(e,2),this.writeBytes(t)}writeFixed32Field(e,t){this.writeTag(e,5),this.writeFixed32(t)}writeSFixed32Field(e,t){this.writeTag(e,5),this.writeSFixed32(t)}writeFixed64Field(e,t){this.writeTag(e,1),this.writeFixed64(t)}writeSFixed64Field(e,t){this.writeTag(e,1),this.writeSFixed64(t)}writeVarintField(e,t){this.writeTag(e,0),this.writeVarint(t)}writeSVarintField(e,t){this.writeTag(e,0),this.writeSVarint(t)}writeStringField(e,t){this.writeTag(e,2),this.writeString(t)}writeFloatField(e,t){this.writeTag(e,5),this.writeFloat(t)}writeDoubleField(e,t){this.writeTag(e,1),this.writeDouble(t)}writeBooleanField(e,t){this.writeVarintField(e,+t)}}function B(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function z(e,t,n){const r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(let t=n.pos-1;t>=e;t--)n.buf[t+r]=n.buf[t]}function V(e,t){for(let n=0;n>3}if(a--,1===o||2===o)s+=e.readSVarint(),l+=e.readSVarint(),1===o&&c>u&&(r.push(c),u=c),n.push(s,l),c+=2;else{if(7!==o)throw new Error("Invalid command found in the PBF");c>u&&(n.push(n[u],n[u+1]),c+=2)}}c>u&&(r.push(c),u=c)}createFeature_(e,t,n){const r=t.type;if(0===r)return null;let i;const o=t.properties;let a;this.idProperty_?(a=o[this.idProperty_],delete o[this.idProperty_]):a=t.id,o[this.layerName_]=t.layer.name;const s=[],l=[];this.readRawGeometry_(e,t,s,l);const c=function(e,t){let n;1===e?n=1===t?"Point":"MultiPoint":2===e?n=1===t?"LineString":"MultiLineString":3===e&&(n="Polygon");return n}(r,l.length);if(this.featureClass===b.Ay)i=new this.featureClass(c,s,l,2,o,a),i.transform(n.dataProjection);else{let e;if("Polygon"==c){const t=(0,ee.yJ)(s,l);e=t.length>1?new R.A(s,"XY",t):new Z.Ay(s,"XY",l)}else e="Point"===c?new X.A(s,"XY"):"LineString"===c?new I.A(s,"XY"):"MultiPoint"===c?new L.A(s,"XY"):"MultiLineString"===c?new M.A(s,"XY",l):null;i=new(0,this.featureClass),this.geometryName_&&i.setGeometryName(this.geometryName_);const t=(0,P.hX)(e,!1,n);i.setGeometry(t),void 0!==a&&i.setId(a),i.setProperties(o,!0)}return i}getType(){return"arraybuffer"}readFeatures(e,t){const n=this.layers_;t=this.adaptOptions(t);const r=(0,Q.Jt)(t.dataProjection);r.setWorldExtent(t.extent),t.dataProjection=r;const i=new N(e),o=i.readFields(ne,{}),a=[];for(const e in o){if(n&&!n.includes(e))continue;const s=o[e],l=s?[0,0,s.extent,s.extent]:null;r.setExtent(l);for(let e=0,n=s.length;e>3)?n.readString():2===e?n.readFloat():3===e?n.readDouble():4===e?n.readVarint64():5===e?n.readVarint():6===e?n.readSVarint():7===e?n.readBoolean():null;t.values.push(r)}}function ie(e,t,n){if(1==e)t.id=n.readVarint();else if(2==e){const e=n.readVarint()+n.pos;for(;n.pos=200&&t.status<300){let e;try{e=JSON.parse(t.responseText)}catch(e){return void this.handleTileJSONError()}this.handleTileJSONResponse(e)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=(0,Q.Jt)("EPSG:4326"),n=this.getProjection();let r;if(void 0!==e.bounds){const i=(0,Q.FO)(t,n);r=(0,le.applyTransform)(e.bounds,i)}const i=(0,ue.kZ)(n),o=e.minzoom||0,a=e.maxzoom||22,s=(0,ue.EN)({extent:i,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=(0,ce.Qz)(e.tiles,s),e.attribution&&!this.getAttributions()){const t=void 0!==r?r:i;this.setAttributions((function(n){return(0,le.intersects)(t,n.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const he=de;var pe=n(67287),fe=n(15877),ge=n(50273),me=n(16597),ye=n(39488);n(85208);function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var be,we={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function xe(e){return(e=Math.round(e))<0?0:e>255?255:e}function Ae(e){return e<0?0:e>1?1:e}function Se(e){return"%"===e[e.length-1]?xe(parseFloat(e)/100*255):xe(parseInt(e))}function Ce(e){return"%"===e[e.length-1]?Ae(parseFloat(e)/100):Ae(parseFloat(e))}function Ee(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{be={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in we)return we[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var r=n.indexOf("("),i=n.indexOf(")");if(-1!==r&&i+1===n.length){var o=n.substr(0,r),a=n.substr(r+1,i-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=Ce(a.pop());case"rgb":return 3!==a.length?null:[Se(a[0]),Se(a[1]),Se(a[2]),s];case"hsla":if(4!==a.length)return null;s=Ce(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,c=Ce(a[1]),u=Ce(a[2]),d=u<=.5?u*(c+1):u+c-u*c,h=2*u-d;return[xe(255*Ee(h,d,l+1/3)),xe(255*Ee(h,d,l)),xe(255*Ee(h,d,l-1/3)),s];default:return null}}return null}}catch(e){}class ke{constructor(e,t,n,r=1){this.r=e,this.g=t,this.b=n,this.a=r}static parse(e){if(!e)return;if(e instanceof ke)return e;if("string"!=typeof e)return;const t=be(e);return t?new ke(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,r]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${r})`}toArray(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]}toArray01(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[e/r,t/r,n/r,r]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:r}=this;return[e,t,n,r]}}ke.black=new ke(0,0,0,1),ke.white=new ke(1,1,1,1),ke.transparent=new ke(0,0,0,0),ke.red=new ke(1,0,0,1),ke.blue=new ke(0,0,1,1);var Te=ke;function _e(e){return"object"==typeof e?["literal",e]:e}function Oe(e,t){let n=e.stops;if(!n)return function(e,t){const n=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",n]:n;if("enum"===t.type)return["match",n,Object.keys(t.values),n,e.default];{const r=["color"===t.type?"to-color":t.type,n,_e(e.default)];return"array"===t.type&&r.splice(1,0,t.value,t.length||null),r}}(e,t);const r=n&&"object"==typeof n[0][0],i=r||void 0!==e.property,o=r||!i;return n=n.map((e=>!i&&t.tokens&&"string"==typeof e[1]?[e[0],Fe(e[1])]:[e[0],_e(e[1])])),r?function(e,t,n){const r={},i={},o=[];for(let t=0;t3&&t===e[e.length-2]||(r&&2===e.length||e.push(t),e.push(n))}function je(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function Fe(e){const t=["concat"],n=/{([^{}]+)}/g;let r=0;for(let i=n.exec(e);null!==i;i=n.exec(e)){const o=e.slice(r,n.lastIndex-i[0].length);r=n.lastIndex,o.length>0&&t.push(o),t.push(["get",i[1]])}if(1===t.length)return e;if(r`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Qe=[Ve,$e,Ge,Ue,We,Ke,qe,Ze(He),Xe];function et(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!et(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Qe)if(!et(e,t))return null}return`Expected ${Je(e)} but found ${Je(t)} instead.`}function tt(e,t){return t.some((t=>t.kind===e.kind))}function nt(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}class rt{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class it{constructor(e,t,n,r,i){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i}}class ot{constructor(e){this.sections=e}static fromString(e){return new ot([new it(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.name.length))}static factory(e){return e instanceof ot?e:ot.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class at{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new at({name:e,available:!1}):null}serialize(){return["image",this.name]}}function st(e,t,n,r){if(!("number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255)){return`Invalid rgba value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}return void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`}function lt(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Te)return!0;if(e instanceof rt)return!0;if(e instanceof ot)return!0;if(e instanceof at)return!0;if(Array.isArray(e)){for(const t of e)if(!lt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!lt(e[t]))return!1;return!0}return!1}function ct(e){if(null===e)return Ve;if("string"==typeof e)return Ge;if("boolean"==typeof e)return Ue;if("number"==typeof e)return $e;if(e instanceof Te)return We;if(e instanceof rt)return Ye;if(e instanceof ot)return Ke;if(e instanceof at)return Xe;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=ct(t);if(n){if(n===e)continue;n=He;break}n=e}return Ze(n||He,t)}return qe}function ut(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Te||e instanceof ot||e instanceof at?e.toString():JSON.stringify(e)}class dt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!lt(e[1]))return t.error("invalid value");const n=e[1];let r=ct(n);const i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new dt(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Te?["rgba"].concat(this.value.toArray()):this.value instanceof ot?this.value.serialize():this.value}}var ht=dt;var pt=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const ft={string:Ge,number:$e,boolean:Ue,object:qe};class gt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,r=1;const i=e[0];if("array"===i){let i,o;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in ft)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=ft[n],r++}else i=He;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=Ze(i,o)}else n=ft[i];const o=[];for(;re.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((e=>e.serialize())))}}var mt=gt;class yt{constructor(e){this.type=Ke,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const r=[];let i=!1;for(let n=1;n<=e.length-1;++n){const o=e[n];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;let e=null;if(o["font-scale"]&&(e=t.parse(o["font-scale"],1,$e),!e))return null;let n=null;if(o["text-font"]&&(n=t.parse(o["text-font"],1,Ze(Ge)),!n))return null;let a=null;if(o["text-color"]&&(a=t.parse(o["text-color"],1,We),!a))return null;const s=r[r.length-1];s.scale=e,s.font=n,s.textColor=a}else{const o=t.parse(e[n],1,He);if(!o)return null;const a=o.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new yt(r)}evaluate(e){return new ot(this.sections.map((t=>{const n=t.content.evaluate(e);return ct(n)===Xe?new it("",n,null,null,null):new it(ut(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class vt{constructor(e){this.type=Xe,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,Ge);return n?new vt(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=at.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const bt={"to-boolean":Ue,"to-color":We,"to-number":$e,"to-string":Ge};class wt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const r=bt[n],i=[];for(let n=1;n4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:st(t[0],t[1],t[2],t[3]),!n))return new Te(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new pt(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const r=Number(t);if(!isNaN(r))return r}throw new pt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?ot.fromString(ut(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?at.fromString(ut(this.args[0].evaluate(e))):ut(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new yt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new vt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var xt=wt;const At=["Unknown","Point","LineString","Polygon"];var St=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?At[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:r}=this.featureTileCoord,i=n*t-e[0],o=r*t-e[1];return this.featureDistanceData.bearing[0]*i+this.featureDistanceData.bearing[1]*o}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Te.parse(e)),t}};class Ct{constructor(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const n=e[0],r=Ct.definitions[n];if(!r)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,a=o.filter((([t])=>!Array.isArray(t)||t.length===e.length-1));let s=null;for(const[r,o]of a){s=new Jt(t.registry,t.path,null,t.scope);const a=[];let l=!1;for(let t=1;t{return t=e,Array.isArray(t)?`(${t.map(Je).join(", ")})`:`(${Je(t.type)}...)`;var t})).join(" | "),r=[];for(let n=1;n=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function Pt(e,t){const n=(180+e[0])/360;const r=(i=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360);var i;const o=Math.pow(2,t.z);return[Math.round(n*o*Tt),Math.round(r*o*Tt)]}function It(e,t,n){const r=e[0]-t[0],i=e[1]-t[1],o=e[0]-n[0],a=e[1]-n[1];return r*a-o*i==0&&r*o<=0&&i*a<=0}function Mt(e,t){let n=!1;for(let a=0,s=t.length;ar[1]!=o[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]&&(n=!n)}}var r,i,o;return n}function Lt(e,t){for(let n=0;n0&&d<0||u<0&&d>0}function jt(e,t,n,r){const i=[t[0]-e[0],t[1]-e[1]],o=[r[0]-n[0],r[1]-n[1]];return 0!=(a=o)[0]*(s=i)[1]-a[1]*s[0]&&!(!Rt(e,t,n,r)||!Rt(n,r,e,t));var a,s}function Ft(e,t,n){for(const r of n)for(let n=0;nn[2]){const t=.5*r;let i=e[0]-n[0]>t?-r:n[0]-e[0]>t?r:0;0===i&&(i=e[0]-n[2]>t?-r:n[2]-e[0]>t?r:0),e[0]+=i}_t(t,e)}function $t(e,t,n,r){const i=Math.pow(2,r.z)*Tt,o=[r.x*Tt,r.y*Tt],a=[];if(!e)return a;for(const r of e)for(const e of r){const r=[e.x+o[0],e.y+o[1]];Vt(r,t,n,i),a.push(r)}return a}function Gt(e,t,n,r){const i=Math.pow(2,r.z)*Tt,o=[r.x*Tt,r.y*Tt],a=[];if(!e)return a;for(const n of e){const e=[];for(const r of n){const n=[r.x+o[0],r.y+o[1]];_t(t,n),e.push(n)}a.push(e)}if(t[2]-t[0]<=i/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of a)for(const r of e)Vt(r,t,n,i)}var s;return a}class Ut{constructor(e,t){this.type=Ue,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(lt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e{t&&!qt(e)&&(t=!1)})),t}function Ht(e){if(e instanceof Et&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!Ht(e)&&(t=!1)})),t}function Yt(e,t){if(e instanceof Et&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!Yt(e,t)&&(n=!1)})),n}class Kt{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new Kt(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Xt=Kt;class Zt{constructor(e,t=[],n,r=new ze,i=[]){this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=r,this.errors=i,this.expectedType=n}parse(e,t,n,r,i={}){return t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)}_parse(e,t){function n(e,t,n){return"assert"===n?new mt(t,[e]):"coerce"===n?new xt(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[r];if(i){let r=i.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,i=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==i.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(e,i))return null}else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"assert")}if(!(r instanceof ht)&&"resolvedImage"!==r.type.kind&&Qt(r)){const e=new St;try{r=new ht(r.type,r.evaluate(e))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new Zt(this.registry,r,t||null,i,this.errors)}error(e,...t){const n=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new Ne(n,e))}checkSubtype(e,t){const n=et(e,t);return n&&this.error(n),n}}var Jt=Zt;function Qt(e){if(e instanceof Xt)return Qt(e.boundExpression);if(e instanceof Et&&"error"===e.name)return!1;if(e instanceof kt)return!1;if(e instanceof Wt)return!1;const t=e instanceof xt||e instanceof mt;let n=!0;return e.eachChild((e=>{n=t?n&&Qt(e):n&&e instanceof ht})),!!n&&(qt(e)&&Yt(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function en(e,t){const n=e.length-1;let r,i,o=0,a=n,s=0;for(;o<=a;)if(s=Math.floor((o+a)/2),r=e[s],i=e[s+1],r<=t){if(s===n||tt))throw new pt("Input is not a number.");a=s-1}return 0}class tn{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,$e);if(!n)return null;const r=[];let i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(let n=1;n=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const c=t.parse(a,l,i);if(!c)return null;i=i||c.type,r.push([o,c])}return new tn(i,n,r)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);return n[en(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var nn=tn,rn=on;function on(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}on.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},on.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},on.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},on.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)(r=1))return r;for(;no?n=i:r=i,i=.5*(r-n)+n}return i},on.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var an=ve(rn);function sn(e,t,n){return e*(1-n)+t*n}var ln=Object.freeze({__proto__:null,number:sn,color:function(e,t,n){return new Te(sn(e.r,t.r,n),sn(e.g,t.g,n),sn(e.b,t.b,n),sn(e.a,t.a,n))},array:function(e,t,n){return e.map(((e,r)=>sn(e,t[r],n)))}});const cn=.95047,un=1,dn=1.08883,hn=4/29,pn=6/29,fn=3*pn*pn,gn=pn*pn*pn,mn=Math.PI/180,yn=180/Math.PI;function vn(e){return e>gn?Math.pow(e,1/3):e/fn+hn}function bn(e){return e>pn?e*e*e:fn*(e-hn)}function wn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function An(e){const t=xn(e.r),n=xn(e.g),r=xn(e.b),i=vn((.4124564*t+.3575761*n+.1804375*r)/cn),o=vn((.2126729*t+.7151522*n+.072175*r)/un);return{l:116*o-16,a:500*(i-o),b:200*(o-vn((.0193339*t+.119192*n+.9503041*r)/dn)),alpha:e.a}}function Sn(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=un*bn(t),n=cn*bn(n),r=dn*bn(r),new Te(wn(3.2404542*n-1.5371385*t-.4985314*r),wn(-.969266*n+1.8760108*t+.041556*r),wn(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Cn(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const En={forward:An,reverse:Sn,interpolate:function(e,t,n){return{l:sn(e.l,t.l,n),a:sn(e.a,t.a,n),b:sn(e.b,t.b,n),alpha:sn(e.alpha,t.alpha,n)}}},kn={forward:function(e){const{l:t,a:n,b:r}=An(e),i=Math.atan2(r,n)*yn;return{h:i<0?i+360:i,c:Math.sqrt(n*n+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*mn,n=e.c;return Sn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Cn(e.h,t.h,n),c:sn(e.c,t.c,n),l:sn(e.l,t.l,n),alpha:sn(e.alpha,t.alpha,n)}}};class Tn{constructor(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,n,r){let i=0;if("exponential"===e.name)i=_n(t,e.base,n,r);else if("linear"===e.name)i=_n(t,1,n,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;i=new an(o[0],o[1],o[2],o[3]).solve(_n(t,1,n,r))}return i}static parse(e,t){let[n,r,i,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(i=t.parse(i,2,$e),!i)return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=We:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let e=0;e=n)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const c=t.parse(r,l,s);if(!c)return null;s=s||c.type,a.push([n,c])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new Tn(s,n,r,i,a):t.error(`Type ${Je(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);const o=en(t,r),a=t[o],s=t[o+1],l=Tn.interpolationFactor(this.interpolation,r,a,s),c=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?ln[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?kn.reverse(kn.interpolate(kn.forward(c),kn.forward(u),l)):En.reverse(En.interpolate(En.forward(c),En.forward(u),l))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;eet(r,e.type)));return new Pn(o?He:n,i)}evaluate(e){let t,n=null,r=0;for(const i of this.args){if(r++,n=i.evaluate(e),n&&n instanceof at&&!n.available&&(t||(t=n),n=null,r===this.args.length))return t;if(null!==n)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var In=Pn;class Mn{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let r=1;r=n.length)throw new pt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new pt(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var jn=Rn;class Fn{constructor(e,t){this.type=Ue,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,He),r=t.parse(e[2],2,He);return n&&r?tt(n.type,[Ue,Ge,$e,Ve,He])?new Fn(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!nt(t,["boolean","string","number","null"]))throw new pt(`Expected first argument to be of type boolean, string, number or null, but found ${Je(ct(t))} instead.`);if(!nt(n,["string","array"]))throw new pt(`Expected second argument to be of type array or string, but found ${Je(ct(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Dn=Fn;class Nn{constructor(e,t,n){this.type=$e,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,He),r=t.parse(e[2],2,He);if(!n||!r)return null;if(!tt(n.type,[Ue,Ge,$e,Ve,He]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,$e);return i?new Nn(n,r,i):null}return new Nn(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!nt(t,["boolean","string","number","null"]))throw new pt(`Expected first argument to be of type boolean, string, number or null, but found ${Je(ct(t))} instead.`);if(!nt(n,["string","array"]))throw new pt(`Expected second argument to be of type array or string, but found ${Je(ct(n))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Bn=Nn;class zn{constructor(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const i={},o=[];for(let a=2;aNumber.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,ct(e)))return null}else n=ct(e);if(void 0!==i[String(e)])return c.error("Branch labels must be unique.");i[String(e)]=o.length}const u=t.parse(l,a,r);if(!u)return null;r=r||u.type,o.push(u)}const a=t.parse(e[1],1,He);if(!a)return null;const s=t.parse(e[e.length-1],e.length-1,r);return s?"value"!==a.type.kind&&t.concat(1).checkSubtype(n,a.type)?null:new zn(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(ct(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],r={};for(const e of t){const t=r[this.cases[e]];void 0===t?(r[this.cases[e]]=n.length,n.push([this.cases[e],[e]])):n[t][1].push(e)}const i=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,r]of n)1===r.length?e.push(i(r[0])):e.push(r.map(i)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}var Vn=zn;class $n{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r=[];for(let i=1;it.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Gn=$n;class Un{constructor(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,He),r=t.parse(e[2],2,$e);if(!n||!r)return null;if(!tt(n.type,[Ze(He),Ge,He]))return t.error(`Expected first argument to be of type array or string, but found ${Je(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,$e);return i?new Un(n.type,n,r,i):null}return new Un(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!nt(t,["string","array"]))throw new pt(`Expected first argument to be of type array or string, but found ${Je(ct(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Wn=Un;function qn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Hn(e,t,n,r){return 0===r.compare(t,n)}function Yn(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=Ue,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let o=t.parse(e[1],1,He);if(!o)return null;if(!qn(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${Je(o.type)}'.`);let a=t.parse(e[2],2,He);if(!a)return null;if(!qn(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${Je(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${Je(o.type)}' and '${Je(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new mt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new mt(o.type,[a])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,Ye),!s)return null}return new i(o,a,s)}evaluate(i){const o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){const t=ct(o),n=ct(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new pt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=ct(o),n=ct(a);if("string"!==e.kind||"string"!==n.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const Kn=Yn("==",(function(e,t,n){return t===n}),Hn),Xn=Yn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!Hn(0,t,n,r)})),Zn=Yn("<",(function(e,t,n){return t",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),Qn=Yn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),er=Yn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0}));class tr{constructor(e,t,n,r,i,o){this.type=Ge,this.number=e,this.locale=t,this.currency=n,this.unit=r,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,$e);if(!n)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let i=null;if(r.locale&&(i=t.parse(r.locale,1,Ge),!i))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,Ge),!o))return null;let a=null;if(r.unit&&(a=t.parse(r.unit,1,Ge),!a))return null;let s=null;if(r["min-fraction-digits"]&&(s=t.parse(r["min-fraction-digits"],1,$e),!s))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,$e),!l)?null:new tr(n,i,o,a,s,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class nr{constructor(e){this.type=$e,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${Je(n.type)} instead.`):new nr(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new pt(`Expected value to be of type string or array, but found ${Je(ct(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const rr={"==":Kn,"!=":Xn,">":Jn,"<":Zn,">=":er,"<=":Qn,array:mt,at:jn,boolean:mt,case:Gn,coalesce:In,collator:kt,format:yt,image:vt,in:Dn,"index-of":Bn,interpolate:On,"interpolate-hcl":On,"interpolate-lab":On,length:nr,let:Ln,literal:ht,match:Vn,number:mt,"number-format":tr,object:mt,slice:Wn,step:nn,string:mt,"to-boolean":xt,"to-color":xt,"to-number":xt,"to-string":xt,var:Xt,within:Wt};function ir(e,[t,n,r,i]){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,a=st(t,n,r,o);if(a)throw new pt(a);return new Te(t/255*o,n/255*o,r/255*o,o)}function or(e,t){return e in t}function ar(e,t){const n=t[e];return void 0===n?null:n}function sr(e){return{type:e}}Et.register(rr,{error:[{kind:"error"},[Ge],(e,[t])=>{throw new pt(t.evaluate(e))}],typeof:[Ge,[He],(e,[t])=>Je(ct(t.evaluate(e)))],"to-rgba":[Ze($e,4),[We],(e,[t])=>t.evaluate(e).toArray()],rgb:[We,[$e,$e,$e],ir],rgba:[We,[$e,$e,$e,$e],ir],has:{type:Ue,overloads:[[[Ge],(e,[t])=>or(t.evaluate(e),e.properties())],[[Ge,qe],(e,[t,n])=>or(t.evaluate(e),n.evaluate(e))]]},get:{type:He,overloads:[[[Ge],(e,[t])=>ar(t.evaluate(e),e.properties())],[[Ge,qe],(e,[t,n])=>ar(t.evaluate(e),n.evaluate(e))]]},"feature-state":[He,[Ge],(e,[t])=>ar(t.evaluate(e),e.featureState||{})],properties:[qe,[],e=>e.properties()],"geometry-type":[Ge,[],e=>e.geometryType()],id:[He,[],e=>e.id()],zoom:[$e,[],e=>e.globals.zoom],pitch:[$e,[],e=>e.globals.pitch||0],"distance-from-center":[$e,[],e=>e.distanceFromCenter()],"heatmap-density":[$e,[],e=>e.globals.heatmapDensity||0],"line-progress":[$e,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[$e,[],e=>e.globals.skyRadialProgress||0],accumulated:[He,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[$e,sr($e),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[$e,sr($e),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:$e,overloads:[[[$e,$e],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[$e],(e,[t])=>-t.evaluate(e)]]},"/":[$e,[$e,$e],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[$e,[$e,$e],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[$e,[],()=>Math.LN2],pi:[$e,[],()=>Math.PI],e:[$e,[],()=>Math.E],"^":[$e,[$e,$e],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[$e,[$e],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[$e,[$e],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[$e,[$e],(e,[t])=>Math.log(t.evaluate(e))],log2:[$e,[$e],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[$e,[$e],(e,[t])=>Math.sin(t.evaluate(e))],cos:[$e,[$e],(e,[t])=>Math.cos(t.evaluate(e))],tan:[$e,[$e],(e,[t])=>Math.tan(t.evaluate(e))],asin:[$e,[$e],(e,[t])=>Math.asin(t.evaluate(e))],acos:[$e,[$e],(e,[t])=>Math.acos(t.evaluate(e))],atan:[$e,[$e],(e,[t])=>Math.atan(t.evaluate(e))],min:[$e,sr($e),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[$e,sr($e),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[$e,[$e],(e,[t])=>Math.abs(t.evaluate(e))],round:[$e,[$e],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[$e,[$e],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[$e,[$e],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ue,[Ge,He],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[Ue,[He],(e,[t])=>e.id()===t.value],"filter-type-==":[Ue,[Ge],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r{const n=e.id(),r=t.value;return typeof n==typeof r&&n":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[Ue,[He],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[Ue,[He],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[Ue,[Ge,He],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[Ue,[He],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[Ue,[He],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ue,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ue,[Ze(Ge)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ue,[Ze(He)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ue,[Ge,Ze(He)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ue,[Ge,Ze(He)],(e,[t,n])=>function(e,t,n,r){for(;n<=r;){const i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:Ue,overloads:[[[Ue,Ue],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[sr(Ue),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:Ue,overloads:[[[Ue,Ue],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[sr(Ue),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[Ue,[Ue],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ue,[Ge],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[Ge,[Ge],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Ge,[Ge],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Ge,sr(He),(e,t)=>t.map((t=>ut(t.evaluate(e)))).join("")],"resolved-locale":[Ge,[Ye],(e,[t])=>t.evaluate(e).resolvedLocale()]});var lr=rr;function cr(e){return{result:"success",value:e}}function ur(e){return{result:"error",value:e}}function dr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}class hr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new St,this._defaultValue=t?function(e){return"color"===e.type&&(dr(e.default)||Array.isArray(e.default))?new Te(0,0,0,0):"color"===e.type?Te.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,r,i,o,a,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,r,i,o,a,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new pt(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function pr(e,t){const n=new Jt(lr,[],t?function(e){const t={color:We,string:Ge,number:$e,enum:Ge,boolean:Ue,formatted:Ke,resolvedImage:Xe};if("array"===e.type)return Ze(t[e.value]||He,e.length);return t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?cr(new hr(r,t)):ur(n.errors)}class fr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Ht(t.expression)}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}}class gr{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Ht(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}interpolationFactor(e,t,n){return this.interpolationType?On.interpolationFactor(this.interpolationType,e,t,n):0}}function mr(e,t){if("error"===(e=pr(e,t)).result)return e;const n=e.value.expression,r=qt(n);if(!r&&!function(e){return"data-driven"===e["property-type"]}(t))return ur([new Ne("","data expressions not supported")]);const i=Yt(n,["zoom","pitch","distance-from-center"]);if(!i&&!function(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}(t))return ur([new Ne("","zoom expressions not supported")]);const o=yr(n);if(!o&&!i)return ur([new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof Ne)return ur([o]);if(o instanceof On&&!function(e){return!!e.expression&&e.expression.interpolated}(t))return ur([new Ne("",'"interpolate" expressions cannot be used with this property')]);if(!o)return cr(new fr(r?"constant":"source",e.value));const a=o instanceof On?o.interpolation:void 0;return cr(new gr(r?"camera":"composite",e.value,o.labels,a))}function yr(e){let t=null;if(e instanceof Ln)t=yr(e.result);else if(e instanceof In){for(const n of e.args)if(t=yr(n),t)break}else(e instanceof nn||e instanceof On)&&e.input instanceof Et&&"zoom"===e.input.name&&(t=e);return t instanceof Ne||e.eachChild((e=>{const n=yr(e);n instanceof Ne?t=n:!t&&n?t=new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new Ne("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function vr(e){if(Array.isArray(e))return e.map(vr);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=vr(e[n]);return t}return function(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}(e)}var br={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],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",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function wr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!wr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function xr(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};wr(e)||(e=_r(e));const n=e;let r=!0;try{r=function(e){if(!Cr(e))return e;let t=vr(e);return Sr(t),t=Ar(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n `)}const i=br[`filter_${t}`],o=pr(r,i);let a=null;if("error"===o.result)throw new Error(o.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(e,t,n)=>o.value.evaluate(e,t,{},n);let s=null,l=null;if(r!==n){const e=pr(n,i);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s=(t,n,r,i,o)=>e.value.evaluate(t,n,{},r,void 0,void 0,i,o),l=!qt(e.value.expression)}return{filter:a,dynamicFilter:s||void 0,needGeometry:Tr(r),needFeature:!!l}}function Ar(e){if(!Array.isArray(e))return e;const t=function(e){if(Er.has(e[0]))for(let t=1;tAr(e)))}function Sr(e){let t=!1;const n=[];if("case"===e[0]){for(let r=1;r",">=","<","<=","to-boolean"]);function kr(e,t){return et?1:0}function Tr(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t"===t||"<="===t||">="===t?Or(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(_r))):"all"===t?["all"].concat(e.slice(1).map(_r)):"none"===t?["all"].concat(e.slice(1).map(_r).map(Mr)):"in"===t?Pr(e[1],e.slice(2)):"!in"===t?Mr(Pr(e[1],e.slice(2))):"has"===t?Ir(e[1]):"!has"===t?Mr(Ir(e[1])):"within"!==t||e}function Or(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function Pr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(kr)]]:["filter-in-small",e,["literal",t]]}}function Ir(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Mr(e){return["!",e]}var Lr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Rr(e,t){const n={};for(const t in e)"ref"!==t&&(n[t]=e[t]);return Lr.forEach((e=>{e in t&&(n[e]=t[e])})),n}function jr(e){e=e.slice();const t=Object.create(null);for(let n=0;n1?d[d.length-2].toLowerCase():"";if(h==p||h==p.replace("-","")||f+"-"+h==p){a=i?a:Fr[p],d.pop(),f&&p.startsWith(f)&&d.pop();break}}i||"number"!=typeof h||(a=h,i=!0);var g=d.join(Dr).replace("Klokantech Noto Sans","Noto Sans");-1!==g.indexOf(Dr)&&(g='"'+g+'"'),l.push(g)}r=Br[e]=[s,a,l]}return r[0]+Dr+r[1]+Dr+t+"px"+(n?"/"+n:"")+Dr+r[2]}));const Vr="https://api.mapbox.com";function $r(e){const t="mapbox://";return 0!==e.indexOf(t)?"":e.slice(9)}function Gr(e,t){const n=$r(e);if(!n)return decodeURI(new URL(e,location.href).href);const r="styles/";if(0!==n.indexOf(r))throw new Error(`unexpected style url: ${e}`);const i=n.slice(7);return`${Vr}/styles/v1/${i}?&access_token=${t}`}function Ur(e,t,n,r){const i=new URL(e,r),o=$r(e);if(!o)return t?(i.searchParams.has(n)||i.searchParams.set(n,t),decodeURI(i.href)):decodeURI(i.href);if("mapbox.satellite"===o){return`https://api.mapbox.com/v4/${o}/{z}/{x}/{y}${window.devicePixelRatio>=1.5?"@2x":""}.webp?access_token=${t}`}return`https://{a-d}.tiles.mapbox.com/v4/${o}/{z}/{x}/{y}.vector.pbf?access_token=${t}`}const Wr={},qr={};let Hr=0;function Yr(e){return e.id||(e.id=Hr++),e.id}function Kr(e,t){return Yr(e)+"."+(0,_.v6)(t)}function Xr(e){let t=Wr[e.id];return t||(t={},Wr[Yr(e)]=t),t}function Zr(e){let t=qr[e.id];return t||(t={},qr[Yr(e)]=t),t}function Jr(e){return e*Math.PI/180}const Qr=function(){const e=[];for(let t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function ei(e,t){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(e,t);const n=document.createElement("canvas");return n.width=e,n.height=t,n}function ti(e,t){let n=0;const r=t.length;for(;ni)).then((e=>(e instanceof Request||(e=new Request(e)),e.headers.get("Accept")||e.headers.set("Accept","application/json"),r&&(r.request=e),fetch(e).then((function(e){return delete ri[t],e.ok?e.json():Promise.reject(new Error("Error fetching source "+t))})).catch((function(e){return delete ri[t],Promise.reject(new Error("Error fetching source "+t))})))));return ri[t]=[i,o],o}function oi(e,t){if("string"!=typeof e)return Promise.resolve(e);if(!e.trim().startsWith("{"))return ii("Style",e=Gr(e,t.accessToken),t);try{const t=JSON.parse(e);return Promise.resolve(t)}catch(e){return Promise.reject(e)}}const ai={};function si(e,t,n={}){const r=[t,JSON.stringify(e)].toString();let i=ai[r];if(!i||n.transformRequest){let o;n.transformRequest&&(o=(e,t)=>{const r=n.transformRequest&&n.transformRequest(t,"Tiles")||t;if(e instanceof k.A)e.setLoader(((t,n,i)=>{(0,S.hq)((()=>r)).then((n=>{fetch(n).then((e=>e.arrayBuffer())).then((n=>{const r=e.getFormat().readFeatures(n,{extent:t,featureProjection:i});e.setFeatures(r)})).catch((t=>e.setState(E.A.ERROR)))}))}));else{const t=e.getImage();(0,S.hq)((()=>r)).then((n=>{n instanceof Request?fetch(n).then((e=>e.blob())).then((e=>{const n=URL.createObjectURL(e);t.addEventListener("load",(()=>URL.revokeObjectURL(n))),t.addEventListener("error",(()=>URL.revokeObjectURL(n))),t.src=n})).catch((t=>e.setState(E.A.ERROR))):t.src=n}))}});const a=e.url;if(a&&!e.tiles){const r=Ur(a,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(a.startsWith("mapbox://"))i=Promise.resolve({tileJson:Object.assign({},e,{url:void 0,tiles:(0,T.Uu)(r)}),tileLoadFunction:o});else{const e={};i=ii("Source",r,n,e).then((function(t){return t.tiles=t.tiles.map((function(r){return"tms"===t.scheme&&(r=r.replace("{y}","{-y}")),Ur(r,n.accessToken,n.accessTokenParam||"access_token",e.request.url)})),Promise.resolve({tileJson:t,tileLoadFunction:o})}))}}else e=Object.assign({},e,{tiles:e.tiles.map((function(r){return"tms"===e.scheme&&(r=r.replace("{y}","{-y}")),Ur(r,n.accessToken,n.accessTokenParam||"access_token",t||location.href)}))}),i=Promise.resolve({tileJson:Object.assign({},e),tileLoadFunction:o});ai[r]=i}return i}function li(e,t,n,r){const i=[2*n*t.pixelRatio+t.width,2*n*t.pixelRatio+t.height],o=ei(i[0],i[1]),a=o.getContext("2d");a.drawImage(e,t.x,t.y,t.width,t.height,n*t.pixelRatio,n*t.pixelRatio,t.width,t.height);const s=a.getImageData(0,0,i[0],i[1]);a.globalCompositeOperation="destination-over",a.fillStyle=`rgba(${255*r.r},${255*r.g},${255*r.b},${r.a})`;const l=s.data;for(let e=0,r=s.width;e0&&a.arc(e,i,n*t.pixelRatio,0,2*Math.PI)}return a.fill(),o}function ci(e,t,n){const r=Math.max(0,Math.min(1,(n-e)/(t-e)));return r*r*(3-2*r)}function ui(e,t,n){const r=ei(t.width,t.height),i=r.getContext("2d");i.drawImage(e,t.x,t.y,t.width,t.height,0,0,t.width,t.height);const o=i.getImageData(0,0,t.width,t.height),a=o.data;for(let e=0,t=o.width;e0?(a[i+0]=Math.round(255*n.r*l),a[i+1]=Math.round(255*n.g*l),a[i+2]=Math.round(255*n.b*l),a[i+3]=Math.round(255*l)):a[i+3]=0}return i.putImageData(o,0,0),r}const di=Array(256).join(" ");function hi(e,t){if(t>=.05){let n="";const r=e.split("\n"),i=di.slice(0,Math.round(t/.1));for(let e=0,t=r.length;e0&&(n+="\n"),n+=r[e].split("").join(i);return n}return e}let pi;function fi(){return pi||(pi=ei(1,1).getContext("2d")),pi}function gi(e,t){return fi().measureText(e).width+(e.length-1)*t}const mi={};function yi(e,t,n,r){if(-1!==e.indexOf("\n")){const i=e.split("\n"),o=[];for(let e=0,a=i.length;e1){const e=fi();e.font=t;const i=e.measureText("M").width*n;let s="";const l=[];for(let e=0,t=a.length;e1;++e){const n=l[e];if(gi(n,r)<.35*i){const i=e>0?gi(l[e-1],r):1/0,o=e.7*i&&gi(o,r)<.6*i){const a=n.split(" "),s=a.pop();gi(s,r)<.2*i&&(l[e]=a.join(" "),l[e+1]=s+" "+o),t-=1}}o=l.join("\n")}else o=e;o=hi(o,r),mi[i]=o}return o}const vi=/font-family: ?([^;]*);/,bi=/("|')/g;let wi;function xi(e){if(!wi){wi={};const e=document.styleSheets;for(let t=0,n=e.length;t`${e.key}: ${e.message}`)).join(", "));return n.value},ki={},Ti={zoom:0};let _i,Oi;function Pi(e,t,n,r,i,o,a){const s=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});const l=o[s];if(!l[n]){let r=(e[t]||ki)[n];const i=br[`${t}_${e.type}`][n];void 0===r&&(r=i.default);let o=(c=r,Array.isArray(c)&&c.length>0&&"string"==typeof c[0]&&c[0]in lr);if(!o&&dr(r)&&(r=Oe(r,i),o=!0),o){const e=Ei(r,i);l[n]=e.evaluate.bind(e)}else"color"==i.type&&(r=Te.parse(r)),l[n]=function(){return r}}var c;return Ti.zoom=r,l[n](Ti,i,a)}function Ii(e,t,n,r,i){if(!Pi(e,"layout",`${r}-allow-overlap`,t,n,i))return"declutter";return Pi(e,"layout",`${r}-ignore-placement`,t,n,i)?"none":"obstacle"}function Mi(e,t,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=xr(t).filter),Ti.zoom=r,i[e](Ti,n)}let Li=!1;function Ri(e,t){if(e){if(!Li&&(0===e.a||0===t))return;const n=e.a;return t=void 0===t?1:t,0===n?"transparent":"rgba("+Math.round(255*e.r/n)+","+Math.round(255*e.g/n)+","+Math.round(255*e.b/n)+","+n*t+")"}return e}const ji=/\{[^{}}]*\}/g;function Fi(e,t){return e.replace(ji,(function(e){return t[e.slice(1,-1)]||""}))}let Di=!1;const Ni={};function Bi(e,t,n,r=Qr,i=void 0,o=void 0,a=void 0,s=void 0){if("string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");let l,c,u;if(Ni[Kr(t,e)]=Array.from(arguments),o)if("undefined"!=typeof Image){const t=new Image;let n;(0,S.hq)((()=>o)).then((e=>{e instanceof Request?fetch(e).then((e=>e.blob())).then((e=>{n=URL.createObjectURL(e),t.src=n})).catch((()=>{})):(t.crossOrigin="anonymous",t.src=e,n&&URL.revokeObjectURL(n))})),t.onload=function(){l=t,c=[t.width,t.height],e.changed(),t.onload=null}}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){const e=self;e.postMessage({action:"loadImage",src:o}),e.addEventListener("message",(function(e){"imageLoaded"===e.data.action&&e.data.src===o&&(l=e.data.image,c=[l.width,l.height])}))}const d=jr(t.layers),h={},p=[],f={},g={},C=Xr(t),E=Zr(t);let k;for(let e=0,r=d.length;e=j.maxzoom)continue;const B=j.filter;if(!B||Mi(F,B,I,k,E)){let r,d,S,E,F,B;L=j;const z=h.index;if(3==P&&("fill"==j.type||"fill-extrusion"==j.type))if(d=Pi(j,"paint",j.type+"-opacity",k,I,C,M),j.type+"-pattern"in N){const e=Pi(j,"paint",j.type+"-pattern",k,I,C,M);if(e){const t="string"==typeof e?Fi(e,p):e.toString();if(l&&i&&i[t]){++R,B=O[R],B&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new x.Ay({fill:new y.A}),O[R]=B),S=B.getFill(),B.setZIndex(z);const e=t+"."+d;let n=g[e];if(!n){const r=i[t],o=ei(r.width,r.height),a=o.getContext("2d");a.globalAlpha=d,a.drawImage(l,r.x,r.y,r.width,r.height,0,0,r.width,r.height),n=a.createPattern(o,"repeat"),g[e]=n}S.setColor(n)}}}else r=Ri(Pi(j,"paint",j.type+"-color",k,I,C,M),d),j.type+"-outline-color"in N&&(F=Ri(Pi(j,"paint",j.type+"-outline-color",k,I,C,M),d)),F||(F=r),(r||F)&&(++R,B=O[R],(!B||r&&!B.getFill()||!r&&B.getFill()||F&&!B.getStroke()||!F&&B.getStroke()||B.getText())&&(B=new x.Ay({fill:r?new y.A:void 0,stroke:F?new w.A:void 0}),O[R]=B),r&&(S=B.getFill(),S.setColor(r)),F&&(E=B.getStroke(),E.setColor(F),E.setWidth(.5)),B.setZIndex(z));if(1!=P&&"line"==j.type){r="line-pattern"in N?void 0:Ri(Pi(j,"paint","line-color",k,I,C,M),Pi(j,"paint","line-opacity",k,I,C,M));const e=Pi(j,"paint","line-width",k,I,C,M);r&&e>0&&(++R,B=O[R],B&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new x.Ay({stroke:new w.A}),O[R]=B),E=B.getStroke(),E.setLineCap(Pi(j,"layout","line-cap",k,I,C,M)),E.setLineJoin(Pi(j,"layout","line-join",k,I,C,M)),E.setMiterLimit(Pi(j,"layout","line-miter-limit",k,I,C,M)),E.setColor(r),E.setWidth(e),E.setLineDash(N["line-dasharray"]?Pi(j,"paint","line-dasharray",k,I,C,M).map((function(t){return t*e})):null),B.setZIndex(z))}let V,$,G,U,W,q,H,Y,K,X=!1,Z=null,J=0;if((1==P||2==P)&&"icon-image"in D){const t=Pi(j,"layout","icon-image",k,I,C,M);if(t){let r;V="string"==typeof t?Fi(t,p):t.toString();const a=s?s(e,V):void 0;if(l&&i&&i[V]||a){const e=Pi(j,"layout","icon-rotation-alignment",k,I,C,M);if(2==P){const t=n.getGeometry();if(t.getFlatMidpoint||t.getFlatMidpoints){const n=t.getExtent();if(Math.sqrt(Math.max(Math.pow((n[2]-n[0])/o,2),Math.pow((n[3]-n[1])/o,2)))>150){const n="MultiLineString"===t.getType()?t.getFlatMidpoints():t.getFlatMidpoint();Oi||(_i=[NaN,NaN],Oi=new b.Ay("Point",_i,[],2,{},void 0)),r=Oi,_i[0]=n[0],_i[1]=n[1];if("line"===Pi(j,"layout","symbol-placement",k,I,C,M)&&"map"===e){const e=t.getStride(),r=t.getFlatCoordinates();for(let t=0,i=r.length-e;t=l&&n[0]<=u&&n[1]>=c&&n[1]<=d){J=Math.atan2(o-s,a-i);break}}}}}}if(2!==P||r){const t=Pi(j,"layout","icon-size",k,I,C,M),n=void 0!==N["icon-color"]?Pi(j,"paint","icon-color",k,I,C,M):null;if(!n||0!==n.a){const r=Pi(j,"paint","icon-halo-color",k,I,C,M),o=Pi(j,"paint","icon-halo-width",k,I,C,M);let s=`${V}.${t}.${o}.${r}`;if(null!==n&&(s+=`.${n}`),$=f[s],!$){const d=Ii(j,k,I,"icon",C);let h;"icon-offset"in D&&(h=Pi(j,"layout","icon-offset",k,I,C,M).slice(0),h[0]*=t,h[1]*=-t);let p=n?[255*n.r,255*n.g,255*n.b,n.a]:void 0;if(a){const n={color:p,rotateWithView:"map"===e,displacement:h,declutterMode:d,scale:t};"string"==typeof a?n.src=a:(n.img=a,n.imgSize=[a.width,a.height]),$=new v.A(n)}else{const a=i[V];let s,f,g;o?a.sdf?(s=li(ui(l,a,n||[0,0,0,1]),{x:0,y:0,width:a.width,height:a.height,pixelRatio:a.pixelRatio},o,r),p=void 0):s=li(l,a,o,r):(a.sdf?(u||(u=ui(l,{x:0,y:0,width:c[0],height:c[1]},{r:1,g:1,b:1,a:1})),s=u):s=l,f=[a.width,a.height],g=[a.x,a.y]),$=new v.A({color:p,img:s,imgSize:c,size:f,offset:g,rotateWithView:"map"===e,scale:t/a.pixelRatio,displacement:h,declutterMode:d})}f[s]=$}}$&&(++R,B=O[R],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new x.Ay,O[R]=B),B.setGeometry(r),$.setRotation(J+Jr(Pi(j,"layout","icon-rotate",k,I,C,M))),$.setOpacity(Pi(j,"paint","icon-opacity",k,I,C,M)),$.setAnchor(Ci[Pi(j,"layout","icon-anchor",k,I,C,M)]),B.setImage($),Z=B.getText(),B.setText(void 0),B.setZIndex(z),X=!0,G=!1)}else G=!0}}}if(1==P&&"circle"===j.type){++R,B=O[R],B&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new x.Ay,O[R]=B);const e="circle-radius"in N?Pi(j,"paint","circle-radius",k,I,C,M):5,t=Ri(Pi(j,"paint","circle-stroke-color",k,I,C,M),Pi(j,"paint","circle-stroke-opacity",k,I,C,M)),n=Pi(j,"paint","circle-translate",k,I,C,M),r=Ri(Pi(j,"paint","circle-color",k,I,C,M),Pi(j,"paint","circle-opacity",k,I,C,M)),i=Pi(j,"paint","circle-stroke-width",k,I,C,M),o=e+"."+t+"."+r+"."+i+"."+n[0]+"."+n[1];$=f[o],$||($=new m.A({radius:e,displacement:[n[0],-n[1]],stroke:t&&i>0?new w.A({width:i,color:t}):void 0,fill:r?new y.A({color:r}):void 0,declutterMode:"none"}),f[o]=$),B.setImage($),Z=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(z),X=!0}if("text-field"in D){H=Math.round(Pi(j,"layout","text-size",k,I,C,M));const e=Pi(j,"layout","text-font",k,I,C,M);q=Pi(j,"layout","text-line-height",k,I,C,M),W=zr(a?a(e,t.metadata?t.metadata["ol:webfonts"]:void 0):e,H,q),W.includes("sans-serif")||(W+=",sans-serif"),Y=Pi(j,"layout","text-letter-spacing",k,I,C,M),K=Pi(j,"layout","text-max-width",k,I,C,M);const n=Pi(j,"layout","text-field",k,I,C,M);U="object"==typeof n&&n.sections?1===n.sections.length?n.toString():n.sections.reduce(((t,n,r)=>{const i=n.fontStack?n.fontStack.split(","):e,o=zr(a?a(i):i,H*(n.scale||1),q);let s=n.text;if("\n"===s)return t.push("\n",""),t;if(2!=P){s=yi(s,o,K,Y).split("\n");for(let e=0,n=s.length;e0&&t.push("\n",""),t.push(s[e],o);return t}t.push(hi(s,Y),o)}),[]):Fi(n,p).trim(),d=Pi(j,"paint","text-opacity",k,I,C,M)}if(U&&d&&!G){X||(++R,B=O[R],B&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new x.Ay,O[R]=B),B.setImage(void 0),B.setGeometry(void 0));const e=Ii(j,k,I,"text",C);B.getText()||B.setText(Z),Z=B.getText(),(!Z||"getDeclutterMode"in Z&&Z.getDeclutterMode()!==e)&&(Z=new A.A({padding:[2,2,2,2],declutterMode:e}),B.setText(Z));const t=Pi(j,"layout","text-transform",k,I,C,M);"uppercase"==t?U=Array.isArray(U)?U.map(((e,t)=>t%2?e:e.toUpperCase())):U.toUpperCase():"lowercase"==t&&(U=Array.isArray(U)?U.map(((e,t)=>t%2?e:e.toLowerCase())):U.toLowerCase());const n=Array.isArray(U)?U:2==P?hi(U,Y):yi(U,W,K,Y);Z.setText(n),Z.setFont(W),Z.setRotation(Jr(Pi(j,"layout","text-rotate",k,I,C,M)));const r=Pi(j,"layout","text-anchor",k,I,C,M),i=X||1==P?"point":Pi(j,"layout","symbol-placement",k,I,C,M);let o;if("line-center"===i?(Z.setPlacement("line"),o="center"):Z.setPlacement(i),"line"===i&&"function"==typeof Z.setRepeat){const e=Pi(j,"layout","symbol-spacing",k,I,C,M);Z.setRepeat(2*e)}Z.setOverflow("point"===i);let a=Pi(j,"paint","text-halo-width",k,I,C,M);const s=Pi(j,"layout","text-offset",k,I,C,M),l=Pi(j,"paint","text-translate",k,I,C,M);let c=0,u=0;if("point"==i){o="center",-1!==r.indexOf("left")?(o="left",u=a):-1!==r.indexOf("right")&&(o="right",u=-a);const e=Pi(j,"layout","text-rotation-alignment",k,I,C,M);Z.setRotateWithView("map"==e)}else Z.setMaxAngle(Jr(Pi(j,"layout","text-max-angle",k,I,C,M))*U.length/n.length),Z.setRotateWithView(!1);Z.setTextAlign(o);let h="middle";0==r.indexOf("bottom")?(h="bottom",c=-a-.5*(q-1)*H):0==r.indexOf("top")&&(h="top",c=a+.5*(q-1)*H),Z.setTextBaseline(h);const p=Pi(j,"layout","text-justify",k,I,C,M);Z.setJustify("auto"===p?void 0:p),Z.setOffsetX(s[0]*H+u+l[0]),Z.setOffsetY(s[1]*H+c+l[1]),_.setColor(Ri(Pi(j,"paint","text-color",k,I,C,M),d)),Z.setFill(_);const f=Ri(Pi(j,"paint","text-halo-color",k,I,C,M),d);if(f&&a>0){T.setColor(f),a*=2;const e=.5*H;T.setWidth(a<=e?a:e),Z.setStroke(T)}else Z.setStroke(void 0);const g=Pi(j,"layout","text-padding",k,I,C,M),m=Z.getPadding();g!==m[0]&&(m[0]=g,m[1]=g,m[2]=g,m[3]=g),B.setZIndex(z)}}}return R>-1?(O.length=R+1,Di&&("set"in n?n.set("mapbox-layer",L):n.getProperties()["mapbox-layer"]=L),O):void 0};return e.setStyle(P),e.set("mapbox-source",k),e.set("mapbox-layers",p),e.set("mapbox-featurestate",e.get("mapbox-featurestate")||{}),P}function zi(e,t=512){return e.getExtent()?(0,ue.EN)({extent:e.getExtent(),tileSize:t,maxZoom:22}).getResolutions():Qr}function Vi(e,t){if(!t.accessToken){t=Object.assign({},t);new URL(e).searchParams.forEach(((e,n)=>{t.accessToken=e,t.accessTokenParam=n}))}return t}function $i(e,t,n="",r={},i=void 0){let o,a,s,l,c=!0;return"string"==typeof n||Array.isArray(n)?l=n:(s=n,l=s.source||s.layers,r=s),"string"==typeof r?(o=r,s={}):(o=r.styleUrl,s=r),!1===s.updateSource&&(c=!1),i||(i=s.resolutions),o||"string"!=typeof t||t.trim().startsWith("{")||(o=t),o&&(o=o.startsWith("data:")?location.href:Gr(o,s.accessToken),s=Vi(o,s)),new Promise((function(n,r){oi(t,s).then((function(t){if(8!=t.version)return r(new Error("glStyle version 8 required."));if(!(e instanceof pe.A||e instanceof p.A))return r(new Error("Can only apply to VectorLayer or VectorTileLayer"));const u=e instanceof p.A?"vector":"geojson";if(l?a=Array.isArray(l)?t.layers.find((function(e){return e.id===l[0]})).source:l:(a=Object.keys(t.sources).find((function(e){return t.sources[e].type===u})),l=a),!a)return r(new Error(`No ${u} source found in the glStyle.`));function d(){if(!c)return Promise.resolve();if(e instanceof p.A)return Ui(t.sources[a],o,s).then((function(t){const n=e.getSource();n?t!==n&&(n.setTileUrlFunction(t.getTileUrlFunction()),"function"==typeof n.setUrls&&"function"==typeof t.getUrls&&n.setUrls(t.getUrls()),n.format_||(n.format_=t.format_),n.getAttributions()||n.setAttributions(t.getAttributions()),n.getTileLoadFunction()===f.Y&&n.setTileLoadFunction(t.getTileLoadFunction()),(0,Q.tI)(n.getProjection(),t.getProjection())&&(n.tileGrid=t.getTileGrid())):e.setSource(t);const r=e.getSource().getTileGrid();!isFinite(e.getMaxResolution())&&!isFinite(e.getMinZoom())&&r.getMinZoom()>0&&e.setMaxResolution(ni(Math.max(0,r.getMinZoom()-1e-12),r.getResolutions()))}));const n=t.sources[a];let r=e.getSource();r&&r.get("mapbox-source")===n||(r=qi(n,o,s));const i=e.getSource();return i?r!==i&&(i.getAttributions()||i.setAttributions(r.getAttributions()),i.format_||(i.format_=r.getFormat()),i.url_=r.getUrl()):e.setSource(r),Promise.resolve()}let h,g,m,y;function v(){if(y||t.sprite&&!g)y?(e.setStyle(y),d().then(n).catch(r)):r(new Error("Something went wrong trying to apply style."));else{if(s.projection&&!i){const e=(0,Q.Jt)(s.projection).getUnits();"m"!==e&&(i=Qr.map((t=>t/ge.I[e])))}y=Bi(e,t,l,i,g,m,((e,t=s.webfonts)=>function(e,t="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const n=e.toString();if(n in Ai)return Ai[n];const r=[];for(let t=0,n=e.length;t=1.5?.5:1;const n=.5==h?"@2x":"";let i=e.origin+e.pathname+n+".json"+e.search;new Promise((function(t,n){ii("Sprite",i,s).then(t).catch((function(r){i=e.origin+e.pathname+".json"+e.search,ii("Sprite",i,s).then(t).catch(n)}))})).then((function(t){if(void 0===t&&r(new Error("No sprites found.")),g=t,m=e.origin+e.pathname+n+".png"+e.search,s.transformRequest){const e=s.transformRequest(m,"SpriteImage")||m;(e instanceof Request||e instanceof Promise)&&(m=e)}v()})).catch((function(e){r(new Error(`Sprites cannot be loaded: ${i}: ${e.message}`))}))}else v()})).catch(r)}))}function Gi(e,t,n){const r=new he({tileJSON:t,tileSize:e.tileSize||t.tileSize||512}),i=r.getTileJSON(),o=r.getTileGrid(),a=(0,Q.Jt)(n.projection||"EPSG:3857"),s=function(e,t){const n=e.bounds;if(n){const e=(0,Q.Rb)([n[0],n[1]],t),r=(0,Q.Rb)([n[2],n[3]],t);return[e[0],e[1],r[0],r[1]]}return(0,Q.Jt)(t).getExtent()}(i,a),l=a.getExtent(),c=i.minzoom||0,u=i.maxzoom||22,d={attributions:r.getAttributions(),projection:a,tileGrid:new g.A({origin:l?(0,le.getTopLeft)(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:c,resolutions:zi(a,t.tileSize).slice(0,u+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?d.urls=i.tiles:d.url=i.tiles,d}function Ui(e,t,n){return new Promise((function(r,i){si(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=Gi(e,t,n);o.tileLoadFunction=i,o.format=new ae,r(new f.A(o))})).catch(i)}))}function Wi(e){return`{bbox-${(e?e.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function qi(e,t,n){const r=n.projection?new O.A({dataProjection:n.projection}):new O.A,i=e.data,o={};if("string"==typeof i){const o=Ur(i,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(o)){const t=(e,t,n)=>{const r=Wi(n);return o.replace(r,`${e.join(",")}`)},i=new fe.A({attributions:e.attribution,format:r,loader:(e,r,o,a,s)=>{ii("GeoJSON","function"==typeof t?t(e,r,o):t,n).then((e=>{const t=i.getFormat().readFeatures(e,{featureProjection:o});i.addFeatures(t),a(t)})).catch((t=>{i.removeLoadedExtent(e),s()}))},strategy:me.Qk});return i.set("mapbox-source",e),i}const a=new fe.A({attributions:e.attribution,format:r,url:o,loader:(e,t,r,i,s)=>{ii("GeoJSON",o,n).then((e=>{const t=a.getFormat().readFeatures(e,{featureProjection:r});a.addFeatures(t),i(t)})).catch((t=>{a.removeLoadedExtent(e),s()}))}});return a}o.features=r.readFeatures(i,{featureProjection:(0,Q.Tf)()||"EPSG:3857"});const a=new fe.A(Object.assign({attributions:e.attribution,format:r},o));return a.set("mapbox-source",e),a}ye.Ay;p.A;var Hi=n(51640),Yi=n(1691),Ki=n(2265),Xi=n(76200),Zi=n(23853),Ji=n(35415),Qi=n(68705),eo=n(74388),to=n(6883),no=n(16775);function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function io(e){for(var t=1;t0&&(b=v[0]),b||(E={source:y},void 0!==(null===(w=n.initialSettings)||void 0===w?void 0:w.className)&&(E.className=n.initialSettings.className),void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.extent)&&(E.extent=n.initialSettings.extent),void 0!==(null===(A=n.initialSettings)||void 0===A?void 0:A.maxZoom)&&(E.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(S=n.initialSettings)||void 0===S?void 0:S.minZoom)&&(E.minZoom=n.initialSettings.minZoom),void 0!==(null===(C=n.initialSettings)||void 0===C||null===(C=C.states)||void 0===C?void 0:C.opacity)&&(E.opacity=n.initialSettings.states.opacity),k="LYR2"!==this.mapId,b=new p.A(io(io({},E),{},{declutter:k})),this.setLayerAndLoadEndListeners(n,b,"tile")),this.emitLayerCreation({config:n,layer:b}),T=o.tileGrid.getResolutions(),null!==(i=this.metadata)&&void 0!==i&&i.defaultStyles&&$i(b,"".concat((0,Xi.getLocalizedValue)(this.metadataAccessPath,no.K.getDisplayLanguage(this.mapId))).concat(this.metadata.defaultStyles,"/root.json"),{resolutions:null!=T&&T.length?T:[]}).catch((function(e){to.vF.logPromiseFailed("applyStyle in processOneLayerEntry in VectorTiles",e)})),e.abrupt("return",Promise.resolve(b));case 23:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof eo.E))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t=this.metadata.tileInfo,n=this.metadata.fullExtent,r={extent:[n.xmin,n.ymin,n.xmax,n.ymax],origin:[t.origin.x,t.origin.y],resolutions:t.lods.map((function(e){return e.resolution})),tileSize:[t.rows,t.cols]};e.source.tileGrid=r,e.initialSettings.extent=(0,Ji.validateExtentWhenDefined)(e.initialSettings.extent)}return Promise.resolve(e)}},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e),r=this.getSourceProjection(e),i=null==n||null===(t=n.getSource())||void 0===t||null===(t=t.getTileGrid())||void 0===t?void 0:t.getExtent();return i&&(i=this.getMapViewer().convertExtentFromProjToMapProj(i,r)),i}},{key:"setVectorTileStyle",value:function(e,t){return $i(this.getMapViewer().layer.getOLLayer(e),t)}}]);var n}(Yi.A)},4401:(e,t,n)=>{"use strict";n.d(t,{GB:()=>G,Xx:()=>z,w6:()=>V});var r=n(55723),i=n(55907),o=n(29067),a=n(96880),s=n(13718),l=n(47280),c=n(75583),u=n(96645),d=n(6620),h=n(94270),p=n(42432),f=n(74813),g=n.n(f),m=n(34946),y=n(39684),v=n(69341),b=n(18064),w=n(80363),x=n.n(w),A=n(23853),S=n(51640),C=n(1691),E=n(2265),k=n(76200),T=n(25079),_=n(35415),O=n(68705),P=n(27991),I=n(6883),M=n(3248),L=n(16775),R=n(58748);function j(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,F()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F=function(){return!!e})()}function D(e,t,n,r){var i=(0,d.A)((0,u.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function N(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function B(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var z=function(e){return(null==e?void 0:e.geoviewLayerType)===S.y6.WMS},V=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===S.y6.WMS},$=new WeakSet,G=function(e){function t(e,n){var r;return(0,s.A)(this,t),N(r=j(this,t,[S.y6.WMS,n,e]),$),(0,p.A)(r,"WMSStyles",void 0),r.WMSStyles=[],r}return(0,h.A)(t,e),(0,l.A)(t,[{key:"fetchServiceMetadata",value:(u=(0,a.A)(g().mark((function e(){var t,n,r,i,o,a,s,l,c,u,d=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,k.getLocalizedValue)(this.metadataAccessPath,L.K.getDisplayLanguage(this.mapId)))){e.next=40;break}if(".xml"!==t.slice(-4).toLowerCase()){e.next=8;break}return e.next=6,B($,this,q).call(this,t);case 6:e.next=38;break;case 8:if(0!==(n=B($,this,X).call(this)).length){e.next=23;break}return e.prev=10,e.next=13,B($,this,U).call(this,"".concat(t,"?service=WMS&version=1.3.0&request=GetCapabilities"));case 13:r=e.sent,this.metadata=r,B($,this,Z).call(this),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),I.vF.logError("Unable to read service metadata for GeoView layer ".concat(this.geoviewLayerId," of map ").concat(this.mapId,"."));case 21:e.next=38;break;case 23:return i=[],n.forEach((function(e,r){for(o=0;n[o].layerId!==e.layerId;o++);o===r?i.push(B($,d,U).call(d,"".concat(t,"?service=WMS&version=1.3.0&request=GetCapabilities&Layers=").concat(e.layerId))):i.push(i[o])})),e.prev=25,e.next=28,Promise.all(i);case 28:for(a=e.sent,o=0;o1)for(this.WMSStyles=[],d=0;d0&&(m=f[0]),m||(E={source:p,properties:{layerCapabilities:r,layerConfig:n}},void 0!==(null===(b=n.initialSettings)||void 0===b?void 0:b.className)&&(E.className=n.initialSettings.className),void 0!==(null===(w=n.initialSettings)||void 0===w?void 0:w.extent)&&(E.extent=n.initialSettings.extent),void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.maxZoom)&&(E.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(A=n.initialSettings)||void 0===A?void 0:A.minZoom)&&(E.minZoom=n.initialSettings.minZoom),void 0!==(null===(C=n.initialSettings)||void 0===C||null===(C=C.states)||void 0===C?void 0:C.opacity)&&(E.opacity=n.initialSettings.states.opacity),m=new y.A(E),this.setLayerAndLoadEndListeners(n,m,"image")),this.emitLayerCreation({config:n,layer:m}),e.abrupt("return",Promise.resolve(m));case 22:return O.FHQ.maps[this.mapId].notifications.showError("validation.layer.notfound",[n.layerId,this.geoviewLayerId]),e.abrupt("return",Promise.resolve(void 0));case 24:return I.vF.logError("geoviewLayerType must be ".concat(S.y6.WMS)),e.abrupt("return",Promise.resolve(void 0));case 26:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof M.Q))throw new Error("Invalid layer configuration type provided");if(V(e)){var t=B($,this,Q).call(this,e.layerId);if(this.setLayerMetadata(e.layerPath,t),t){var n,r,i=this.getAttributions();if(t.Attribution&&!i.includes(null===(n=t.Attribution)||void 0===n?void 0:n.Title)&&(i.push(t.Attribution.Title),this.setAttributions(i)),e.source.featureInfo||(e.source.featureInfo={queryable:!!t.queryable}),P.d.setMapLayerQueryable(this.mapId,e.layerPath,e.source.featureInfo.queryable),e.initialSettings.extent=(0,_.validateExtentWhenDefined)(e.initialSettings.extent),null!==(r=e.initialSettings)&&void 0!==r&&r.bounds||!t.EX_GeographicBoundingBox||(e.initialSettings.bounds=(0,_.validateExtent)(t.EX_GeographicBoundingBox)),t.Dimension){var o=t.Dimension.find((function(e){return"time"===e.name}));o&&this.processTemporalDimension(o,e)}}}return Promise.resolve(e)}},{key:"processTemporalDimension",value:function(e,t){void 0!==e&&this.setTemporalDimension(t.layerPath,T.P.createDimensionFromOGC(e))}},{key:"getFeatureInfoAtPixel",value:function(e,t){return this.getFeatureInfoAtCoordinate(this.getMapViewer().map.getCoordinateFromPixel(e),t)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){var n=this.getMapViewer().convertCoordinateMapProjToLngLat(e);return this.getFeatureInfoAtLongLat(n,t)}},{key:"getFeatureInfoAtLongLat",value:(r=(0,a.A)(g().mark((function e(n,r){var i,o,a,s,l,c,u,d,h,p,f,y,v,b,w,x,A,S,C,E,T,_,O,P;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o=this.getLayerConfig(r),a=this.getOLLayer(r),this.getVisible(r)){e.next=5;break}return e.abrupt("return",[]);case 5:if(s=this.getMapViewer().convertCoordinateLngLatToMapProj(n),!(n[0]1)){e.next=16;break}a=0;case 8:if(!(a1?o:void 0},e.abrupt("return",r);case 32:return e.prev=32,e.t0=e.catch(0),I.vF.logError("wms.getLegend()\n",e.t0),e.abrupt("return",null);case 36:case"end":return e.stop()}}),e,this,[[0,32]])}))),function(e){return n.apply(this,arguments)})},{key:"setWmsStyle",value:function(e,t){var n,r=this.getOLLayer(t);r&&(null===(n=r.getSource())||void 0===n||n.updateParams({STYLES:e}))}},{key:"onLoaded",value:function(e){D(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.getLayerConfig(e),a=this.getOLLayer(e);I.vF.logTraceCore("WMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(i.legendFilterIsOff=!r,r&&(i.layerFilter=t),l){var c=(l=l.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),u=c[0].trim();l=c[1].trim();var d=(0,o.A)("".concat(l," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));d.reverse(),d.forEach((function(e){var t=![20,25].includes(e[0].length),r=T.P.applyInputDateFormat(e[0],n.externalFragmentsOrder,t);l="".concat(l.slice(0,e.index-6)).concat(r).concat(l.slice(e.index+e[0].length+2))})),s.updateParams((0,p.A)({},u,l.replace(/\s*/g,""))),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}}},{key:"getBounds",value:function(e){var t,n=this.getLayerConfig(e),r=this.getSourceProjection(e),o=null==n||null===(t=n.initialSettings)||void 0===t?void 0:t.bounds;o&&(o=this.getMapViewer().convertExtentFromProjToMapProj(o,"EPSG:4326"));var a,s=B($,this,ae).call(this,(null==r?void 0:r.getCode())||"");if(s){var l=(0,i.A)(s,2),c=l[0],u=l[1];a=this.getMapViewer().convertExtentFromProjToMapProj(u,c)}return o&&a&&(a=(0,_.getExtentIntersection)(a,o)),(a=(0,_.validateExtentWhenDefined)(a,this.getMapViewer().getProjection().getCode()))||o}}]);var n,r,c,u}(C.A);function U(e){return W.apply(this,arguments)}function W(){return(W=(0,a.A)(g().mark((function e(t){var n,r,i,o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:return r=e.sent,i=new b.A,o=i.read(r),e.abrupt("return",o);case 12:return e.prev=12,e.t0=e.catch(0),this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata"),e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,this,[[0,12]])})))).apply(this,arguments)}function q(e){return H.apply(this,arguments)}function H(){return(H=(0,a.A)(g().mark((function e(t){var n,r,i,o,a,s,l,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new b.A,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:i=e.sent,this.metadata=n.read(i),this.metadata?(B($,this,Z).call(this),s=null===(o=this.metadata)||void 0===o?void 0:o.Capability.Request.GetMap.DCPType[0].HTTP.Get.OnlineResource,this.metadataAccessPath.en=s,this.metadataAccessPath.fr=s,l=null===(a=this.metadata)||void 0===a?void 0:a.Capability.Request.GetMap.DCPType[0].HTTP.Get.OnlineResource,(c=function(e){e.forEach((function(e){(0,E.KD)(e)?c(e.listOfLayerEntryConfig):(e.source.dataAccessPath.en=l,e.source.dataAccessPath.fr=l)}))})(this.listOfLayerEntryConfig)):this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata");case 15:case"end":return e.stop()}}),e,this,[[0,12]])})))).apply(this,arguments)}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=(0,o.A)(n);if(Array.isArray(t))for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:e.listOfLayerEntryConfig;r.length&&r.forEach((function(e){(0,E.KD)(e)?n(e.listOfLayerEntryConfig):t.push(e)}))};return n(),t}function Z(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=this.metadata)||void 0===t||null===(t=t.Capability)||void 0===t?void 0:t.Layer;e&&r&&(void 0===r.EX_GeographicBoundingBox&&(r.EX_GeographicBoundingBox=e.EX_GeographicBoundingBox),void 0===r.queryable&&(r.queryable=e.queryable),void 0===r.cascaded&&(r.cascaded=e.cascaded),void 0===r.opaque&&(r.opaque=e.opaque),void 0===r.noSubsets&&(r.noSubsets=e.noSubsets),void 0===r.fixedWidth&&(r.fixedWidth=e.fixedWidth),void 0===r.fixedHeight&&(r.fixedHeight=e.fixedHeight),void 0===r.MinScaleDenominator&&(r.MinScaleDenominator=e.MinScaleDenominator),void 0===r.MaxScaleDenominator&&(r.MaxScaleDenominator=e.MaxScaleDenominator),void 0===r.BoundingBox&&(r.BoundingBox=e.BoundingBox),void 0===r.Dimension&&(r.Dimension=e.Dimension),void 0===r.Attribution&&(r.Attribution=e.Attribution),void 0===r.MaxScaleDenominator&&(r.MaxScaleDenominator=e.MaxScaleDenominator),void 0===r.MaxScaleDenominator&&(r.MaxScaleDenominator=e.MaxScaleDenominator),e.Style&&(r.Style||(r.Style=[]),e.Style.forEach((function(e){r.Style.find((function(t){return t.Name===e.Name}))||r.Style.push(e)}))),e.CRS&&(r.CRS||(r.CRS=[]),e.CRS.forEach((function(e){r.CRS.find((function(t){return t.Name===e}))||r.CRS.push(e)})))),void 0!==(null==r?void 0:r.Layer)&&r.Layer.forEach((function(e){return B($,n,Z).call(n,r,e)}))}function J(e,t){var n=this,r=[];(Array.isArray(e.Layer)?e.Layer:[e.Layer]).forEach((function(e){I.vF.logTraceCore("WMS - createGroupLayer","Cloning the layer config",t.layerPath);var i=x()(t);i.parentLayerConfig=(0,A.KX)(t),i.layerId=e.Name,i.layerName={en:e.Title,fr:e.Title},r.push(i),n.getMapViewer().layer.registerLayerConfigInit(i)}));var i=(0,A.KX)(t);i.entryType=E.hJ.GROUP,i.layerName={en:e.Title,fr:e.Title},i.isMetadataLayerGroup=!0,i.listOfLayerEntryConfig=r,this.validateListOfLayerEntryConfig(r)}function Q(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=this.metadata)||void 0===t||null===(t=t.Capability)||void 0===t?void 0:t.Layer;if(!n)return null;if("Name"in n&&n.Name===e)return n;if("Layer"in n){if(Array.isArray(n.Layer)){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"";Object.keys(e).forEach((function(n){if(!n.endsWith("Geometry")&&!n.startsWith("@")){var i=n.split(":").slice(-1)[0];"object"===(0,r.A)(e[n])?"#text"in e[n]?g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n]["#text"],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}:m(e[n],i):g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}}}))};(m(e),c)?(f=0,Object.keys(g.fieldInfo).filter((function(e){if(null!=c&&c.includes(e)){var t=c.indexOf(e);return g.fieldInfo[e].fieldKey=f++,g.fieldInfo[e].alias=d[t],g.fieldInfo[e].dataType=u[t],!1}return!0})).forEach((function(e){delete g.fieldInfo[e]})),h.push(g)):h.push(g);return h}function oe(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}function ae(e){var t,n=null===(t=this.metadata)||void 0===t?void 0:t.Capability.Layer.BoundingBox;if(n){for(var r=0;r0)return[n[0].crs,[n[0].extent[1],n[0].extent[0],n[0].extent[3],n[0].extent[2]]]}}},93555:(e,t,n)=>{"use strict";n.d(t,{P5:()=>O,ik:()=>_,nd:()=>P});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(90932),p=n(47031),f=n(15901),g=n(79950),m=n.n(g),y=n(51640),v=n(1691),b=n(2265),w=n(76200),x=n(23853),A=n(35415),S=n(6552),C=n(16775);function E(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,k()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function T(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var _=function(e){return(null==e?void 0:e.geoviewLayerType)===y.y6.XYZ_TILES},O=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===y.y6.XYZ_TILES},P=function(e){function t(e,n){return(0,i.A)(this,t),E(this,t,[y.y6.XYZ_TILES,n,e])}return(0,c.A)(t,e),(0,o.A)(t,[{key:"getFieldType",value:function(e,t){var n,r=this.getLayerMetadata(t.layerPath).source.featureInfo,i=null===(n=(0,w.getLocalizedValue)((0,x.KX)(r.outfields),C.K.getDisplayLanguage(this.mapId)))||void 0===n?void 0:n.split(",").indexOf(e);return i&&-1!==i?r.fieldTypes.split(",")[i]:"string"}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r=e.layerPath;if((0,b.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:r,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",t.metadata){var i;if(Array.isArray(null===(n=t.metadata)||void 0===n?void 0:n.listOfLayerEntryConfig))return(0,x.KX)(null===(i=t.metadata)||void 0===i?void 0:i.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId}))?void 0:(t.layerLoadError.push({layer:r,loggerMessage:"XYZ layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error"));throw new Error("Invalid GeoJSON metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")"))}}))}},{key:"processOneLayerEntry",value:(n=(0,r.A)(d().mark((function e(n){var r,i,o,a,s,l,c,u,g,m,y,v,b,x,A,E,k;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(t,"processOneLayerEntry",this,3)([n]);case 2:if(n instanceof S.m){e.next=4;break}throw new Error("Invalid layer configuration type provided");case 4:return r={url:(0,w.getLocalizedValue)(n.source.dataAccessPath,C.K.getDisplayLanguage(this.mapId))},n.source.crossOrigin?r.crossOrigin=n.source.crossOrigin:r.crossOrigin="Anonymous",n.source.projection&&(r.projection="EPSG:".concat(n.source.projection)),n.source.tileGrid&&(u={origin:null===(i=n.source.tileGrid)||void 0===i?void 0:i.origin,resolutions:null===(o=n.source.tileGrid)||void 0===o?void 0:o.resolutions},null!==(a=n.source.tileGrid)&&void 0!==a&&a.tileSize&&(u.tileSize=null===(s=n.source.tileGrid)||void 0===s?void 0:s.tileSize),null!==(l=n.source.tileGrid)&&void 0!==l&&l.extent&&(u.extent=null===(c=n.source.tileGrid)||void 0===c?void 0:c.extent),r.tileGrid=new f.A(u)),g=new p.A(r),(m=this.emitLayerRequesting({config:n,source:g})).length>0&&(y=m[0]),y||(k={source:g},void 0!==(null===(v=n.initialSettings)||void 0===v?void 0:v.className)&&(k.className=n.initialSettings.className),void 0!==(null===(b=n.initialSettings)||void 0===b?void 0:b.extent)&&(k.extent=n.initialSettings.extent),void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.maxZoom)&&(k.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(A=n.initialSettings)||void 0===A?void 0:A.minZoom)&&(k.minZoom=n.initialSettings.minZoom),void 0!==(null===(E=n.initialSettings)||void 0===E||null===(E=E.states)||void 0===E?void 0:E.opacity)&&(k.opacity=n.initialSettings.states.opacity),y=new h.A(k),this.setLayerAndLoadEndListeners(n,y,"tile")),this.emitLayerCreation({config:n,layer:y}),e.abrupt("return",Promise.resolve(y));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof S.m))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t,n=(0,x.KX)(null===(t=this.metadata)||void 0===t?void 0:t.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId}));this.setLayerMetadata(e.layerPath,(0,x.NK)(n)),e.source=m()(e.source,n.source),e.initialSettings=m()(e.initialSettings,n.initialSettings),e.initialSettings.extent=(0,A.validateExtentWhenDefined)(e.initialSettings.extent)}return Promise.resolve(e)}},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e),r=this.getSourceProjection(e),i=null==n||null===(t=n.getSource())||void 0===t||null===(t=t.getTileGrid())||void 0===t?void 0:t.getExtent();return i&&(i=this.getMapViewer().convertExtentFromProjToMapProj(i,r)),i}}]);var n}(v.A)},41538:(e,t,n)=>{"use strict";n.d(t,{W:()=>oe});var r=n(42432),i=n(29067),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(74813),p=n.n(h),f=n(98246),g=n(15877),m=n(12159),y=n(6129),v=n(88567),b=n(85208),w=n(46020),x=n(87701);class A extends x.Ay{constructor(e,t,n,r,i){super(e,t,n,void 0!==i?w.A.IDLE:w.A.LOADED),this.loader_=void 0!==i?i:null,this.canvas_=r,this.error_=null}getError(){return this.error_}handleLoad_(e){e?(this.error_=e,this.state=w.A.ERROR):this.state=w.A.LOADED,this.changed()}load(){this.state==w.A.IDLE&&(this.state=w.A.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const S=A;var C=n(23433),E=n(95722),k=n(58600),T=n(67468),_=n(61170);class O extends y.A{constructor(e){super(e),this.vectorRenderer_=new v.A(e),this.layerImageRatio_=e.getImageRatio(),this.coordinateToVectorPixelTransform_=(0,k.vt)(),this.renderedPixelToCoordinateTransform_=null}disposeInternal(){this.vectorRenderer_.dispose(),super.disposeInternal()}getFeatures(e){if(!this.vectorRenderer_)return Promise.resolve([]);const t=(0,k.Bb)(this.coordinateToVectorPixelTransform_,(0,k.Bb)(this.renderedPixelToCoordinateTransform_,e.slice()));return this.vectorRenderer_.getFeatures(t)}handleFontsChanged(){this.vectorRenderer_.handleFontsChanged()}prepareFrame(e){const t=e.pixelRatio,n=e.viewState,r=n.resolution,i=e.viewHints,o=this.vectorRenderer_;let a=e.extent;1!==this.layerImageRatio_&&(a=a.slice(0),(0,_.scaleFromCenter)(a,this.layerImageRatio_));const s=(0,_.getWidth)(a)/r,l=(0,_.getHeight)(a)/r;if(!i[E.A.ANIMATING]&&!i[E.A.INTERACTING]&&!(0,_.isEmpty)(a)){o.useContainer(null,null);const i=o.context,c=e.layerStatesArray[e.layerIndex],u=Object.assign({},c,{opacity:1}),d=Object.assign({},e,{extent:a,size:[s,l],viewState:Object.assign({},e.viewState,{rotation:0}),layerStatesArray:[u],layerIndex:0,declutter:null}),h=this.getLayer().getDeclutter();h&&(d.declutter={[h]:new C.A(9)});let p=!0;const f=new S(a,r,t,i.canvas,(function(e){o.prepareFrame(d)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(d,null)&&(o.renderDeclutter(d),o.renderDeferred(d),p=!1),e())}));f.addEventListener(b.A.CHANGE,(()=>{if(f.getState()!==w.A.LOADED)return;this.image=p?null:f;const e=f.getPixelRatio(),r=(0,T.m)(f.getResolution())*t/e;this.renderedResolution=r,this.coordinateToVectorPixelTransform_=(0,k.Zz)(this.coordinateToVectorPixelTransform_,s/2,l/2,1/r,-1/r,0,-n.center[0],-n.center[1])})),f.load()}return this.image&&(this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice()),!!this.image}preRender(){}postRender(){}renderDeclutter(){}forEachFeatureAtCoordinate(e,t,n,r,i){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,t,n,r,i):super.forEachFeatureAtCoordinate(e,t,n,r,i)}}const P=O;class I extends m.A{constructor(e){e=e||{};const t=Object.assign({},e);delete t.imageRatio,super(t),this.imageRatio_=void 0!==e.imageRatio?e.imageRatio:1}getImageRatio(){return this.imageRatio_}createRenderer(){return new P(this)}}const M=I;var L=n(7725),R=n(16597),j=n(64383),F=n(45282),D=n(68705),N=n(51640),B=n(76200),z=n(25079),V=n(25488),$=(n(24258),n(6883)),G=n(39453),U=n(23853),W=n(16775),q=n(58748),H=n(8637),Y=n(27991),K=n(8058),X=n(35415);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getAttributions().length>0&&(a.attributions=this.getAttributions()),a.strategy="bbox"===e.source.strategy?R.Qk:R.Q7,a.loader=function(a,l,c,u,d){var h,f,g=n.getUrl();"function"==typeof g&&(g=g(a,l,c));var m=new XMLHttpRequest;if(null!==(h=e.source)&&void 0!==h&&h.postSettings){var y=e.source.postSettings;m.open("POST",g),y.header&&Object.keys(y.header).forEach((function(e){m.setRequestHeader(e,y.header[e])}))}else m.open("GET",g);var v=function(){n.removeLoadedExtent(a),d&&d()};m.onerror=v,m.onload=(0,o.A)(p().mark((function o(){var l,d,h,f,y,b,w,x,A,S,C,E,k,T,_;return p().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(200!==m.status){o.next=20;break}if(e.schemaTag!==N.y6.CSV){o.next=5;break}l=t.convertCsv(r.mapId,m.responseText,e),o.next=14;break;case 5:if(e.schemaTag!==N.y6.ESRI_FEATURE){o.next=13;break}return o.next=8,t.getEsriFeatures(e.layerPath,g,JSON.parse(m.responseText).count,null===(d=r.getLayerMetadata(e.layerPath))||void 0===d?void 0:d.maxRecordCount);case 8:h=o.sent,l=[],h.forEach((function(e){var t;(t=l).push.apply(t,(0,i.A)(n.getFormat().readFeatures(e,J(J({},s),{},{featureProjection:c,extent:a}))))})),o.next=14;break;case 13:l=n.getFormat().readFeatures(m.responseText,J(J({},s),{},{featureProjection:c,extent:a}));case 14:l&&(l.forEach((function(e){var t=e.get("OBJECTID")?e.get("OBJECTID"):(0,F.v6)(e);e.setId(t)})),(null===(f=e.source)||void 0===f||!f.featureInfo)&&l.length>0&&(b=l[0],w=Object.keys(b.getProperties()),x=Object.values(b.getProperties()),se.call(t,w,x,ie,e)),null!==(y=e.source)&&void 0!==y&&null!==(y=y.featureInfo)&&void 0!==y&&y.queryable&&(C=e.source.featureInfo,E=(null===(A=C.fieldTypes)||void 0===A?void 0:A.split(","))||[],k=(null===(S=(0,B.getLocalizedValue)(C.outfields,W.K.getDisplayLanguage(r.mapId)))||void 0===S?void 0:S.split(","))||[],null!=(T=null==E?void 0:E.reduce((function(e,t,n){return"date"===t&&e.push(k[n]),e}),[]))&&T.length&&l.forEach((function(e){T.forEach((function(t){var n=e.get(t);if("number"==typeof n){var i=z.P.convertMilisecondsToDate(n);i=z.P.applyInputDateFormat(i,r.serverDateFragmentsOrder),e.set(t,z.P.convertToMilliseconds(i),!0)}else r.serverDateFragmentsOrder||(r.serverDateFragmentsOrder=z.P.getDateFragmentsOrder(z.P.deduceDateFormat(n))),n=z.P.applyInputDateFormat(n,r.serverDateFragmentsOrder),e.set(t,z.P.convertToMilliseconds(n),!0)}))}))),n.addFeatures(l)),u&&u(l),null==(_=r.getOLLayer(e.layerPath))||_.changed(),o.next=21;break;case 20:v();case 21:case"end":return o.stop()}}),o)}))),m.send(JSON.stringify(null===(f=e.source.postSettings)||void 0===f?void 0:f.data))},n=new g.A(a)}},{key:"createVectorLayer",value:function(e,t){var n,r=this,i=W.K.getDisplayLanguage(this.mapId),o=(0,B.getLocalizedValue)(e.layerName,i)||e.layerId,a=this.emitLayerRequesting({config:e,source:t});if(a.length>0&&(n=a[0]),!n){var s,l,c,u,d={properties:{layerConfig:e},source:t,style:function(t){return H.p.calculateStyleForFeature(r,t,o,e.layerPath,e.filterEquation,e.legendFilterIsOff)}};void 0!==(null===(s=e.initialSettings)||void 0===s?void 0:s.extent)&&(d.extent=e.initialSettings.extent),void 0!==(null===(l=e.initialSettings)||void 0===l?void 0:l.maxZoom)&&(d.maxZoom=e.initialSettings.maxZoom),void 0!==(null===(c=e.initialSettings)||void 0===c?void 0:c.minZoom)&&(d.minZoom=e.initialSettings.minZoom),void 0!==(null===(u=e.initialSettings)||void 0===u||null===(u=u.states)||void 0===u?void 0:u.opacity)&&(d.opacity=e.initialSettings.states.opacity),n=new M(d),this.setLayerAndLoadEndListeners(e,n,"features")}return this.emitLayerCreation({config:e,layer:n}),n}},{key:"getAllFeatureInfo",value:(n=(0,o.A)(p().mark((function e(t){var n,r,i,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getLayerConfig(t),r=this.getOLLayer(t),i=r.getSource().getFeatures(),e.next=6,this.formatFeatureInfoResult(i,n);case 6:return o=e.sent,e.abrupt("return",o);case 10:return e.prev=10,e.t0=e.catch(0),$.vF.logError("abstract-geoview-vector.getAllFeatureInfo()\n",e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return n.apply(this,arguments)})},{key:"getFeatureInfoAtPixel",value:function(e,t){try{var n,r=null===(n=this.getOLLayer(t))||void 0===n?void 0:n.get("source"),i=this.getMapViewer().map.getFeaturesAtPixel(e,{hitTolerance:this.hitTolerance,layerFilter:function(e){var t=e.get("source");return r&&t&&r===t}});return this.formatFeatureInfoResult(i,this.getLayerConfig(t))}catch(e){return $.vF.logError("abstract-geoview-vector.getFeatureInfoAtPixel()\n",e),Promise.resolve(null)}}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){return this.getFeatureInfoAtPixel(this.getMapViewer().map.getPixelFromCoordinate(e),t)}},{key:"getFeatureInfoAtLongLat",value:function(e,t){var n=this.getMapViewer().convertCoordinateLngLatToMapProj(e);return this.getFeatureInfoAtPixel(this.getMapViewer().map.getPixelFromCoordinate(n),t)}},{key:"getBounds",value:function(e){var t,n=this.getOLLayer(e);return null==n||null===(t=n.getSource())||void 0===t?void 0:t.getExtent()}},{key:"getExtentFromFeatures",value:function(e,t){var n,r=this,i=t.map((function(t){var n;return null===(n=r.getOLLayer(e).getSource())||void 0===n?void 0:n.getFeatureById(t)}));return i?(i.forEach((function(e){if(null!=e&&e.getGeometry()){var t,r=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();r&&(n?(0,X.getMinOrMaxExtents)(n,r):n=r)}})),Promise.resolve(n)):Promise.resolve(void 0)}},{key:"getFeaturesAsGeoJSON",value:function(e){var t=this.getMapViewer().getProjection().getCode(),n=(new L.A).writeFeatures(this.getOLLayer(e).getSource().getFeatures(),{dataProjection:"EPSG:4326",featureProjection:t});return JSON.parse(n)}},{key:"onLoaded",value:function(e){te(t,"onLoaded",this,3)([e]),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n,r=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];$.vF.logTraceCore("ABSTRACT-GEOVIEW-VECTOR - applyViewFilter",e);var a=this.getLayerConfig(e),s=this.getOLLayer(e),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,o&&(a.layerFilter=t);var c=(0,i.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=z.P.applyInputDateFormat(e[0],r.externalFragmentsOrder,t);l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))}));try{var u=(0,q.WN)([{nodeType:V.Z6.unprocessedNode,nodeValue:l}]);a.filterEquation=u}catch(t){throw new Error("Invalid vector layer filter (".concat(t.message,").\nfilter = ").concat(this.getLayerFilter(e),"\ninternal filter = ").concat(l))}null==s||s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}],[{key:"getEsriFeatures",value:function(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:500,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:10,a=t.replace("&where=1%3D1&returnCountOnly=true","&outfields=*"),s=r&&r=l.length)){var t=l[d];d++;try{var n=fetch(t).then((function(e){return e.text()}));u.push(n)}catch(n){$.vF.logError("Error loading features for ".concat(e," from ").concat(t),n)}finally{h()}}},p=0;p{"use strict";n.d(t,{WW:()=>b,fK:()=>w,pf:()=>x});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(7725),u=n(91896),d=n(51640),h=n(41538),p=n(2265),f=n(76200),g=n(39453),m=n(16775);function y(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,v()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var b=function(e){return(null==e?void 0:e.geoviewLayerType)===d.y6.CSV},w=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===d.y6.CSV},x=function(e){function t(e,n){return(0,r.A)(this,t),y(this,t,[d.y6.CSV,n,e])}return(0,l.A)(t,e),(0,i.A)(t,[{key:"fetchServiceMetadata",value:function(){return Promise.resolve()}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n=e.layerPath;if((0,p.KD)(e))return t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),void(e.listOfLayerEntryConfig.length||(t.layerLoadError.push({layer:n,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),e.layerStatus="error"));if(t.metadata)throw new Error("Invalid CSV metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")"))}))}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof g.T))throw new Error("Invalid layer configuration type provided");return this.setLayerMetadata(e.layerPath,(0,u.K)(e)),Promise.resolve(e)}},{key:"createVectorSource",value:function(e){var n,r,i,o,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.dataProjection=e.source.dataProjection,u.url=(0,f.getLocalizedValue)(e.source.dataAccessPath,m.K.getDisplayLanguage(this.mapId)),u.format=new c.A,(n=t,r="createVectorSource",i=this,o=3,l=(0,s.A)((0,a.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof l?function(e){return l.apply(i,e)}:l)([e,u,d])}}])}(h.W)},42942:(e,t,n)=>{"use strict";n.d(t,{$f:()=>v,SP:()=>b,Uw:()=>w});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(58699),u=n(76200),d=n(41538),h=n(12989),p=n(51640),f=n(92409),g=n(16775);function m(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,y()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var v=function(e){return(null==e?void 0:e.geoviewLayerType)===p.y6.ESRI_FEATURE},b=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===p.y6.ESRI_FEATURE},w=function(e){function t(e,n){return(0,r.A)(this,t),m(this,t,[p.y6.ESRI_FEATURE,n,e])}return(0,l.A)(t,e),(0,i.A)(t,[{key:"fetchServiceMetadata",value:function(){return(0,f.mF)(this)}},{key:"validateListOfLayerEntryConfig",value:function(e){(0,f.Sh)(this,e)}},{key:"esriChildHasDetectedAnError",value:function(e,t){return"Feature Layer"!==this.metadata.layers[t].type&&(this.layerLoadError.push({layer:e.layerPath,loggerMessage:"LayerId ".concat(e.layerPath," of map ").concat(this.mapId," is not a feature layer")}),!0)}},{key:"getFieldType",value:function(e,t){return(0,f.KS)(this,e,t)}},{key:"getFieldDomain",value:function(e,t){return(0,f.YX)(this,e,t)}},{key:"processTemporalDimension",value:function(e,t){(0,f.RW)(this,e,t)}},{key:"processFeatureInfoConfig",value:function(e){(0,f.$A)(this,e)}},{key:"processInitialSettings",value:function(e){(0,f.gm)(this,e)}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof h.h))throw new Error("Invalid layer configuration type provided");return(0,f.Nf)(this,e)}},{key:"createVectorSource",value:function(e){var n,r,i,o,l,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.url=(0,u.getLocalizedValue)(e.source.dataAccessPath,g.K.getDisplayLanguage(this.mapId)),d.url="".concat(d.url,"/").concat(e.layerId,"/query?f=json&where=1%3D1&returnCountOnly=true"),d.format=new c.A,(n=t,r="createVectorSource",i=this,o=3,l=(0,s.A)((0,a.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof l?function(e){return l.apply(i,e)}:l)([e,d,h])}}])}(d.W)},85849:(e,t,n)=>{"use strict";n.d(t,{eq:()=>P,kx:()=>I,vM:()=>O});var r=n(42432),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(7725),d=n(79950),h=n.n(d),p=n(51640),f=n(41538),g=n(2265),m=n(35415),y=n(23853),v=n(76200),b=n(6883),w=n(39453),x=n(16775),A=n(8058),S=n(59155),C=n(75687),E=n(33663);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,_()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}var O=function(e){return(null==e?void 0:e.geoviewLayerType)===p.y6.GEOJSON},P=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===p.y6.GEOJSON},I=function(e){function t(e,n){return(0,i.A)(this,t),T(this,t,[p.y6.GEOJSON,n,e])}return(0,c.A)(t,e),(0,o.A)(t,[{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r=e.layerPath;if((0,g.KD)(e))return t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),void(e.listOfLayerEntryConfig.length||(t.layerLoadError.push({layer:r,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),e.layerStatus="error"));if(e.layerStatus="processing",t.metadata){var i;if(Array.isArray(null===(n=t.metadata)||void 0===n?void 0:n.listOfLayerEntryConfig))return(0,y.KX)(null===(i=t.metadata)||void 0===i?void 0:i.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId&&t.layerIdExtension===e.layerIdExtension}))?void 0:(t.layerLoadError.push({layer:r,loggerMessage:"GeoJSON layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error"));throw new Error("Invalid GeoJSON metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")"))}}))}},{key:"processLayerMetadata",value:function(e){if(!(e instanceof w.T))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t,n=(0,y.KX)(null===(t=this.metadata)||void 0===t?void 0:t.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId&&t.layerIdExtension===e.layerIdExtension}));if(n){var i;e.layerName=e.layerName||n.layerName,e.source=h()(e.source,n.source),e.initialSettings=h()(e.initialSettings,n.initialSettings),e.style=h()(e.style,n.style);var o,a,s=(0,v.getLocalizedValue)(null===(i=e.geoviewLayerConfig)||void 0===i?void 0:i.metadataAccessPath,x.K.getDisplayLanguage(this.mapId));if(s)s=s.split("/").length>1?s.split("/").slice(0,-1).join("/"):"./","".concat(s,"/").concat(e.layerId)===(0,v.getLocalizedValue)(null===(o=e.source)||void 0===o?void 0:o.dataAccessPath,x.K.getDisplayLanguage(this.mapId))&&(0,v.getLocalizedValue)(null===(a=n.source)||void 0===a?void 0:a.dataAccessPath,x.K.getDisplayLanguage(this.mapId))&&(e.source.dataAccessPath=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.dataProjection=e.source.dataProjection,c.url=(0,v.getLocalizedValue)(e.source.dataAccessPath,x.K.getDisplayLanguage(this.mapId)),c.format=new u.A,(n=t,r="createVectorSource",i=this,o=3,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e,c,d])}},{key:"overrideGeojsonSource",value:function(e,t){var n,r="string"==typeof t?JSON.parse(t):t,i=(null===(n=r.crs)||void 0===n||null===(n=n.properties)||void 0===n?void 0:n.name)||A.M.PROJECTION_NAMES.LNGLAT,o=(new u.A).readFeatures(r,{dataProjection:i,featureProjection:this.getMapViewer().getProjection()}),a=this.getOLLayer(e);if(a&&o.length){var s,l;null===(s=a.getSource())||void 0===s||s.clear(),null===(l=a.getSource())||void 0===l||l.addFeatures(o),a.changed();var c=this.getBounds(e);c&&S.K.setLayerBounds(this.mapId,e,c),E.h.resetResultSet(this.mapId,e),C.F.triggerGetAllFeatureInfo(this.mapId,e).catch((function(t){b.vF.logPromiseFailed("Update all feature info in overrideGeojsonSource failed for layer ".concat(e),t)}))}}}])}(f.W)},44894:(e,t,n)=>{"use strict";n.d(t,{OH:()=>ae,wm:()=>oe,P0:()=>ie});var r=n(55723),i=n(96880),o=n(42432),a=n(55907),s=n(13718),l=n(47280),c=n(75583),u=n(96645),d=n(6620),h=n(94270),p=n(74813),f=n.n(p),g=n(98246),m=n(4472),y=n(42669),v=n(43910),b=n(67103),w=n(87620),x=n(32332),A=n(64383),S=n(59119),C=n(82512),E=n(66739);const k=1,T=2,_=3,O=4,P=5,I=6,M=7,L=15,R=16,j=17;class F{constructor(e){this.view_=e,this.pos_=0,this.initialized_=!1,this.isLittleEndian_=!1,this.hasZ_=!1,this.hasM_=!1,this.srid_=null,this.layout_="XY"}readUint8(){return this.view_.getUint8(this.pos_++)}readUint32(e){return this.view_.getUint32((this.pos_+=4)-4,void 0!==e?e:this.isLittleEndian_)}readDouble(e){return this.view_.getFloat64((this.pos_+=8)-8,void 0!==e?e:this.isLittleEndian_)}readPoint(){const e=[];return e.push(this.readDouble()),e.push(this.readDouble()),this.hasZ_&&e.push(this.readDouble()),this.hasM_&&e.push(this.readDouble()),e}readLineString(){const e=this.readUint32(),t=[];for(let n=0;n0,n=this.readUint32(t),r=Math.floor((268435455&n)/1e3),i=Boolean(2147483648&n)||1===r||3===r,o=Boolean(1073741824&n)||2===r||3===r,a=Boolean(536870912&n),s=(268435455&n)%1e3,l=["XY",i?"Z":"",o?"M":""].join(""),c=a?this.readUint32(t):null;if(void 0!==e&&e!==s)throw new Error("Unexpected WKB geometry type "+s);if(this.initialized_){if(this.isLittleEndian_!==t)throw new Error("Inconsistent endian");if(this.layout_!==l)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=t,this.hasZ_=i,this.hasM_=o,this.layout_=l,this.srid_=c,this.initialized_=!0;return s}readWkbPayload(e){switch(e){case k:return this.readPoint();case T:return this.readLineString();case _:case j:return this.readPolygon();case O:return this.readMultiPoint();case P:return this.readMultiLineString();case I:case L:case R:return this.readMultiPolygon();case M:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}}readWkbBlock(e){return this.readWkbPayload(this.readWkbHeader(e))}readWkbCollection(e,t){const n=this.readUint32(),r=[];for(let i=0;i({[t]:e[n]}))));for(const e of this.layout_)this.writeDouble(e in n?n[e]:this.nodata_[e])}writeLineString(e,t){this.writeUint32(e.length);for(let n=0;ne+t[0]),0),t=new ArrayBuffer(e),n=new DataView(t);let r=0;return this.writeQueue_.forEach((e=>{switch(e[0]){case 1:n.setUint8(r,e[1]);break;case 4:n.setUint32(r,e[1],this.isLittleEndian_);break;case 8:n.setFloat64(r,e[1],this.isLittleEndian_)}r+=e[0]})),t}}class N extends m.Ay{constructor(e){super(),e=e||{},this.splitCollection=Boolean(e.splitCollection),this.viewCache_=null,this.hex_=!1!==e.hex,this.littleEndian_=!1!==e.littleEndian,this.ewkb_=!1!==e.ewkb,this.layout_=e.geometryLayout,this.nodataZ_=e.nodataZ||0,this.nodataM_=e.nodataM||0,this.srid_=e.srid}getType(){return this.hex_?"text":"arraybuffer"}readFeature(e,t){return new g.A({geometry:this.readGeometry(e,t)})}readFeatures(e,t){let n=[];const r=this.readGeometry(e,t);return n=this.splitCollection&&r instanceof y.A?r.getGeometriesArray():[r],n.map((e=>new g.A({geometry:e})))}readGeometry(e,t){const n=B(e);if(!n)return null;const r=new F(n).readGeometry();return this.viewCache_=n,t=this.getReadOptions(e,t),this.viewCache_=null,(0,m.hX)(r,!1,t)}readProjection(e){const t=this.viewCache_||B(e);if(!t)return;const n=new F(t);return n.readWkbHeader(),n.getSrid()&&(0,C.Jt)("EPSG:"+n.getSrid())||void 0}writeFeature(e,t){return this.writeGeometry(e.getGeometry(),t)}writeFeatures(e,t){return this.writeGeometry(new y.A(e.map((e=>e.getGeometry()))),t)}writeGeometry(e,t){t=this.adaptOptions(t);const n=new D({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}});let r=Number.isInteger(this.srid_)?Number(this.srid_):null;if(!1!==this.srid_&&!Number.isInteger(this.srid_)){const e=t.dataProjection&&(0,C.Jt)(t.dataProjection);if(e){const t=e.getCode();t.startsWith("EPSG:")&&(r=Number(t.substring(5)))}}n.writeGeometry((0,m.hX)(e,!0,t),r);const i=n.getBuffer();return this.hex_?function(e){const t=new Uint8Array(e);return Array.from(t.values()).map((e=>(e<16?"0":"")+Number(e).toString(16).toUpperCase())).join("")}(i):i}}function B(e){return"string"==typeof e?function(e){const t=new Uint8Array(e.length/2);for(let n=0;n1?(t||(t=n.createLayerGroup(e[0].parentLayerConfig,e[0].initialSettings)),e.forEach((function(i){if((0,Y.KD)(i)){var o=n.createLayerGroup(i,i.initialSettings);n.processListOfLayerEntryConfig(i.listOfLayerEntryConfig,o).then((function(o){o?t.getLayers().push(o):(n.layerLoadError.push({layer:e[0].layerPath,loggerMessage:"Unable to create group layer ".concat(i.layerPath," on map ").concat(n.mapId)}),r(void 0))})).catch((function(e){J.vF.logPromiseFailed("processListOfLayerEntryConfig (2) in processListOfLayerEntryConfig in GeoPackage",e)}))}else n.processOneLayerEntry(i).then((function(r){r?(t.getLayers().push(r),i.layerStatus="processed"):(n.layerLoadError.push({layer:e[0].layerPath,loggerMessage:"Unable to create layer ".concat(i.layerPath," on map ").concat(n.mapId)}),i.layerStatus="error")})).catch((function(e){J.vF.logPromiseFailed("processListOfLayerEntryConfig (3) in processListOfLayerEntryConfig in GeoPackage",e)}))})),t&&r(t)):n.processOneLayerEntry(e[0],t).then((function(t){t?(e[0].layerStatus="processed",r(t)):(n.layerLoadError.push({layer:e[0].layerPath,loggerMessage:"Unable to create layer ".concat(e[0].layerPath," on map ").concat(n.mapId)}),e[0].layerStatus="error")})).catch((function(e){J.vF.logPromiseFailed("processListOfLayerEntryConfig (4) in processListOfLayerEntryConfig in GeoPackage",e)}))}))}},{key:"extractGeopackageData",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o){var s=(0,Z.getLocalizedValue)(e.source.dataAccessPath,K.K.getDisplayLanguage(n.mapId)),l=n.getAttributions();l.length>0&&(r.attributions=l);var c=[],u={},d=new XMLHttpRequest;d.responseType="arraybuffer",G()({locateFile:function(e){return"https://sql.js.org/dist/".concat(e)}}).then((function(e){d.open("GET",s),d.onload=function(){if(200===d.status){for(var s=new e.Database(new Uint8Array(d.response)),l=[],h=s.prepare("\n SELECT gpkg_contents.table_name, gpkg_contents.srs_id,\n gpkg_geometry_columns.column_name\n FROM gpkg_contents JOIN gpkg_geometry_columns\n WHERE gpkg_contents.data_type='features' AND\n gpkg_contents.table_name=gpkg_geometry_columns.table_name;\n ");h.step();){var p,f=h.get();l.unshift({table_name:f[0],srs_id:null===(p=f[1])||void 0===p?void 0:p.toString(),geometry_column_name:f[2]})}if((h=s.prepare("\n SELECT gpkg_contents.table_name\n FROM gpkg_contents\n WHERE gpkg_contents.table_name='layer_styles'\n ")).step())for(h=s.prepare("SELECT f_table_name, styleSLD FROM layer_styles");h.step();){var g=h.get();if(g[1]){var m=(0,a.A)(g,2);u[g[0]]=m[1]}}for(var y=new z,v=function(){var e,o=l[b],a=o.table_name,u="EPSG:".concat(o.srs_id),d=o.geometry_column_name,p=[];for(h=s.prepare("SELECT * FROM '".concat(a,"'"));h.step();){var f=(e=h.getAsObject())[d];delete e[d];var g=t.parseGpkgGeom(f),m=y.readFeatures(g,ee(ee({},i),{},{dataProjection:u,featureProjection:n.getMapViewer().getProjection().getCode()}));m[0].setProperties(e),p.push(m[0])}var v=new V.A(ee(ee({},r),{},{loader:function(e,t,n,r,i){void 0!==p?(v.addFeatures(p),r(p)):i()}}));c.push({name:a,source:v,properties:e})},b=0;b>1&7){case 0:t=0;break;case 1:t=32;break;case 2:case 3:t=48;break;case 4:t=64;break;default:throw new Error("Invalid geometry envelope size flag in GeoPackage")}return e.subarray(t+8)}}]);var n}(H.W);function se(e,t){var n,i;if(t.source||(t.source={}),t.source.featureInfo||(t.source.featureInfo={queryable:!0}),null===(n=t.source.featureInfo.outfields)||void 0===n||!n.en||null===(i=t.source.featureInfo.aliasFields)||void 0===i||!i.en){var o,a,s,l,c,u,d,h=!(null!==(o=t.source.featureInfo.outfields)&&void 0!==o&&o.en),p=!(null!==(a=t.source.featureInfo.aliasFields)&&void 0!==a&&a.en);h&&(t.source.featureInfo.outfields={en:""},t.source.featureInfo.fieldTypes=""),p&&(t.source.featureInfo.aliasFields={en:""}),Object.keys(e).forEach((function(n){if(e[n]&&"Geometry"!==e[n].type){if(h){t.source.featureInfo.outfields.en="".concat(t.source.featureInfo.outfields.en).concat(n,",");var i="string";"date"===e[n].type?i="date":["bigint","number"].includes((0,r.A)(e[n]))&&(i="number"),t.source.featureInfo.fieldTypes="".concat(t.source.featureInfo.fieldTypes).concat(i,",")}t.source.featureInfo.aliasFields.en="".concat(t.source.featureInfo.aliasFields.en).concat(n,",")}})),t.source.featureInfo.outfields.en=null===(s=t.source.featureInfo.outfields)||void 0===s||null===(s=s.en)||void 0===s?void 0:s.slice(0,-1),t.source.featureInfo.fieldTypes=null===(l=t.source.featureInfo.fieldTypes)||void 0===l?void 0:l.slice(0,-1),t.source.featureInfo.aliasFields.en=null===(c=t.source.featureInfo.aliasFields)||void 0===c||null===(c=c.en)||void 0===c?void 0:c.slice(0,-1),t.source.featureInfo.outfields.fr=null===(u=t.source.featureInfo.outfields)||void 0===u?void 0:u.en,t.source.featureInfo.aliasFields.fr=null===(d=t.source.featureInfo.aliasFields)||void 0===d?void 0:d.en}if(!t.source.featureInfo.nameField){var f,g,m=(null===(f=t.source.featureInfo.outfields.en)||void 0===f?void 0:f.split(",")[0])||(null===(g=t.source.featureInfo.outfields.fr)||void 0===g?void 0:g.split(",")[0]),y=m;m&&(t.source.featureInfo.nameField={en:m,fr:y})}}},4078:(e,t,n)=>{"use strict";n.d(t,{UU:()=>k,dr:()=>E,ke:()=>T});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(34946),p=n(7725),f=n(51640),g=n(41538),m=n(2265),y=n(35415),v=n(8058),b=n(6883),w=n(39453),x=n(76200),A=n(16775);function S(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,C()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var E=function(e){return(null==e?void 0:e.geoviewLayerType)===f.y6.OGC_FEATURE},k=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===f.y6.OGC_FEATURE},T=function(e){function t(e,n){return(0,i.A)(this,t),S(this,t,[f.y6.OGC_FEATURE,n,e])}return(0,c.A)(t,e),(0,o.A)(t,[{key:"getFieldType",value:function(e,t){var n=this.getLayerMetadata(t.layerPath)[e].type.split(":").slice(-1)[0];return"date"===n?"date":["int","number"].includes(n)?"number":"string"}},{key:"fetchServiceMetadata",value:function(){var e=this;return new Promise((function(t){var n=(0,x.getLocalizedValue)(e.metadataAccessPath,A.K.getDisplayLanguage(e.mapId));if(n){var r=n.endsWith("/")?"".concat(n,"collections?f=json"):"".concat(n,"/collections?f=json");h.A.get(r).then((function(n){e.metadata=n.data,t()})).catch((function(n){e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata"),b.vF.logError("Unable to fetch metadata",e.metadataAccessPath,n),t()}))}else e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata")}))}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n=e.layerPath;if((0,m.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:n,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",!Array.isArray(t.metadata.collections))throw new Error("Invalid collection's metadata prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")"));var r,i,o=t.metadata.collections.find((function(t){return t.id===e.layerId}));if(!o)return t.layerLoadError.push({layer:n,loggerMessage:"OGC feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),void(e.layerStatus="error");if(o.description&&(e.layerName={en:o.description,fr:o.description}),e.initialSettings.extent=(0,y.validateExtentWhenDefined)(e.initialSettings.extent),!e.initialSettings.bounds&&null!==(r=o.extent)&&void 0!==r&&null!==(r=r.spatial)&&void 0!==r&&r.bbox&&null!==(i=o.extent)&&void 0!==i&&null!==(i=i.spatial)&&void 0!==i&&i.crs){var a=v.M.transformExtent(o.extent.spatial.bbox[0],v.M.getProjection(o.extent.spatial.crs),v.M.PROJECTION_NAMES.LNGLAT);e.initialSettings.bounds=a}e.initialSettings.bounds=(0,y.validateExtentWhenDefined)(e.initialSettings.bounds)}))}},{key:"processLayerMetadata",value:(n=(0,r.A)(d().mark((function e(n){var r,i,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n instanceof w.T){e.next=2;break}throw new Error("Invalid layer configuration type provided");case 2:if(e.prev=2,!(r=(0,x.getLocalizedValue)(this.metadataAccessPath,A.K.getDisplayLanguage(this.mapId)))){e.next=10;break}return i=r.endsWith("/")?"".concat(r,"collections/").concat(n.layerId,"/queryables?f=json"):"".concat(r,"/collections/").concat(n.layerId,"/queryables?f=json"),e.next=8,h.A.get(i);case 8:(o=e.sent).data.properties&&(this.setLayerMetadata(n.layerPath,o.data.properties),_.call(t,o.data.properties,n));case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),b.vF.logError('Error processing layer metadata for layer path "'.concat(n.layerPath),e.t0),n.layerStatus="error";case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[2,12]])}))),function(e){return n.apply(this,arguments)})},{key:"createVectorSource",value:function(e){var n,r,i,o,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u.dataProjection=e.source.dataProjection,c.url=(0,x.getLocalizedValue)(e.source.dataAccessPath,A.K.getDisplayLanguage(this.mapId)),c.url="".concat(c.url,"/collections/").concat(e.layerId,"/items?f=json"),c.format=new p.A,(n=t,r="createVectorSource",i=this,o=3,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e,c,u])}}]);var n}(g.W);function _(e,t){var n,r;if(t.source||(t.source={}),t.source.featureInfo||(t.source.featureInfo={queryable:!0}),null===(n=t.source.featureInfo.outfields)||void 0===n||!n.en||null===(r=t.source.featureInfo.aliasFields)||void 0===r||!r.en){var i,o,a,s,l,c,u,d=!(null!==(i=t.source.featureInfo.outfields)&&void 0!==i&&i.en),h=!(null!==(o=t.source.featureInfo.aliasFields)&&void 0!==o&&o.en);d&&(t.source.featureInfo.outfields={en:""},t.source.featureInfo.fieldTypes=""),h&&(t.source.featureInfo.aliasFields={en:""}),Object.keys(e).forEach((function(n){if("Geometry"!==e[n].type){var r;if(d)t.source.featureInfo.outfields.en="".concat(t.source.featureInfo.outfields.en).concat(n,","),r="date"===e[n].type?"date":["int","number"].includes(e[n].type)?"number":"string",t.source.featureInfo.fieldTypes="".concat(t.source.featureInfo.fieldTypes).concat(r,",");t.source.featureInfo.aliasFields.en="".concat(t.source.featureInfo.aliasFields.en).concat(n,",")}})),t.source.featureInfo.outfields.en=null===(a=t.source.featureInfo.outfields)||void 0===a||null===(a=a.en)||void 0===a?void 0:a.slice(0,-1),t.source.featureInfo.fieldTypes=null===(s=t.source.featureInfo.fieldTypes)||void 0===s?void 0:s.slice(0,-1),t.source.featureInfo.aliasFields.en=null===(l=t.source.featureInfo.aliasFields)||void 0===l||null===(l=l.en)||void 0===l?void 0:l.slice(0,-1),t.source.featureInfo.outfields.fr=null===(c=t.source.featureInfo.outfields)||void 0===c?void 0:c.en,t.source.featureInfo.aliasFields.fr=null===(u=t.source.featureInfo.aliasFields)||void 0===u?void 0:u.en}if(!t.source.featureInfo.nameField){var p,f,g=(null===(p=t.source.featureInfo.outfields.en)||void 0===p?void 0:p.split(",")[0])||(null===(f=t.source.featureInfo.outfields.fr)||void 0===f?void 0:f.split(",")[0]),m=g;g&&(t.source.featureInfo.nameField={en:g,fr:m})}}},66582:(e,t,n)=>{"use strict";n.d(t,{dS:()=>it,Vk:()=>tt,OV:()=>et});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(98246),p=n(2197),f=n(43910),g=n(87882),m=n(67103),y=n(87620),v=n(32332),b=n(64383),w=n(59119),x=n(4472),A=n(45282),S=n(47505),C=n(51249);class E extends x.Ay{constructor(){super(),this.xmlSerializer_=(0,C.mc)()}getType(){return"xml"}readFeature(e,t){if(!e)return null;if("string"==typeof e){const n=(0,C.qg)(e);return this.readFeatureFromDocument(n,t)}return(0,C.wz)(e)?this.readFeatureFromDocument(e,t):this.readFeatureFromNode(e,t)}readFeatureFromDocument(e,t){const n=this.readFeaturesFromDocument(e,t);return n.length>0?n[0]:null}readFeatureFromNode(e,t){return null}readFeatures(e,t){if(!e)return[];if("string"==typeof e){const n=(0,C.qg)(e);return this.readFeaturesFromDocument(n,t)}return(0,C.wz)(e)?this.readFeaturesFromDocument(e,t):this.readFeaturesFromNode(e,t)}readFeaturesFromDocument(e,t){const n=[];for(let r=e.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,S.X$)(n,this.readFeaturesFromNode(r,t));return n}readFeaturesFromNode(e,t){return(0,A.b0)()}readGeometry(e,t){if(!e)return null;if("string"==typeof e){const n=(0,C.qg)(e);return this.readGeometryFromDocument(n,t)}return(0,C.wz)(e)?this.readGeometryFromDocument(e,t):this.readGeometryFromNode(e,t)}readGeometryFromDocument(e,t){return null}readGeometryFromNode(e,t){return null}readProjection(e){if(!e)return null;if("string"==typeof e){const t=(0,C.qg)(e);return this.readProjectionFromDocument(t)}return(0,C.wz)(e)?this.readProjectionFromDocument(e):this.readProjectionFromNode(e)}readProjectionFromDocument(e){return this.dataProjection}readProjectionFromNode(e){return this.dataProjection}writeFeature(e,t){const n=this.writeFeatureNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeatureNode(e,t){return null}writeFeatures(e,t){const n=this.writeFeaturesNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeFeaturesNode(e,t){return null}writeGeometry(e,t){const n=this.writeGeometryNode(e,t);return this.xmlSerializer_.serializeToString(n)}writeGeometryNode(e,t){return null}}const k=E;var T=n(82512);const _="http://www.opengis.net/gml",O=/^\s*$/;class P extends k{constructor(e){super(),e=e||{},this.featureType=e.featureType,this.featureNS=e.featureNS,this.srsName=e.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:(0,C.VT)(this.readFeaturesInternal),featureMembers:(0,C.Tb)(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(e,t){const n=e.localName;let r=null;if("FeatureCollection"==n)r=(0,C.eY)([],this.FEATURE_COLLECTION_PARSERS,e,t,this);else if("featureMembers"==n||"featureMember"==n||"member"==n){const i=t[0];let o=i.featureType,a=i.featureNS;const s="p",l="p0";if(!o&&e.childNodes){o=[],a={};for(let t=0,n=e.childNodes.length;t0&&!(e instanceof p.A)){e={_content_:e};for(let t=0;t=2,"At least 2 conditions are required")}};const H=class extends q{constructor(e){super("And",Array.prototype.slice.call(arguments))}};const Y=class extends U{constructor(e,t,n){if(super("BBOX"),this.geometryName=e,this.extent=t,4!==t.length)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=n}};const K={"http://www.opengis.net/gml":{boundedBy:(0,C.kW)(I.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:(0,C.VT)(I.prototype.readFeaturesInternal)}},X={"http://www.opengis.net/wfs":{totalInserted:(0,C.kW)(L.yg),totalUpdated:(0,C.kW)(L.yg),totalDeleted:(0,C.kW)(L.yg)},"http://www.opengis.net/wfs/2.0":{totalInserted:(0,C.kW)(L.yg),totalUpdated:(0,C.kW)(L.yg),totalDeleted:(0,C.kW)(L.yg)}},Z={"http://www.opengis.net/wfs":{TransactionSummary:(0,C.kW)(le,"transactionSummary"),InsertResults:(0,C.kW)(he,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:(0,C.kW)(le,"transactionSummary"),InsertResults:(0,C.kW)(he,"insertIds")}},J={"http://www.opengis.net/wfs":{PropertyName:(0,C.mm)(L.uB)},"http://www.opengis.net/wfs/2.0":{PropertyName:(0,C.mm)(L.uB)}},Q={"http://www.opengis.net/wfs":{Insert:(0,C.mm)(pe),Update:(0,C.mm)(ye),Delete:(0,C.mm)(me),Property:(0,C.mm)(ve),Native:(0,C.mm)(be)},"http://www.opengis.net/wfs/2.0":{Insert:(0,C.mm)(pe),Update:(0,C.mm)(ye),Delete:(0,C.mm)(me),Property:(0,C.mm)(ve),Native:(0,C.mm)(be)}},ee="feature",te="http://www.w3.org/2000/xmlns/",ne={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},re={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},ie={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},oe={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},ae={"2.0.0":G,"1.1.0":V,"1.0.0":D};function se(e,t,n,r){(0,C.NQ)(r,Q,(0,C.X1)(e),t,n)}function le(e,t){return(0,C.eY)({},X,e,t)}const ce={"http://www.opengis.net/ogc":{FeatureId:(0,C.VT)((function(e,t){return e.getAttribute("fid")}))},"http://www.opengis.net/ogc/1.1":{FeatureId:(0,C.VT)((function(e,t){return e.getAttribute("fid")}))}};function ue(e,t){(0,C.UN)(ce,e,t)}const de={"http://www.opengis.net/wfs":{Feature:ue},"http://www.opengis.net/wfs/2.0":{Feature:ue}};function he(e,t){return(0,C.eY)([],de,e,t)}function pe(e,t,n){const r=n[n.length-1],i=r.featureType,o=r.featureNS,a=r.gmlVersion,s=(0,C.qq)(o,i);e.appendChild(s),2===a?D.prototype.writeFeatureElement(s,t,n):3===a?V.prototype.writeFeatureElement(s,t,n):G.prototype.writeFeatureElement(s,t,n)}function fe(e,t,n){const r=n[n.length-1].version,i=ne[r],o=(0,C.qq)(i,"Filter"),a=(0,C.qq)(i,"FeatureId");o.appendChild(a),a.setAttribute("fid",t),e.appendChild(o)}function ge(e,t){const n=(e=e||ee)+":";return t.startsWith(n)?t:n+t}function me(e,t,n){const r=n[n.length-1];(0,W.v)(void 0!==t.getId(),"Features must have an id set");const i=r.featureType,o=r.featurePrefix,a=r.featureNS,s=ge(o,i);e.setAttribute("typeName",s),e.setAttributeNS(te,"xmlns:"+o,a);const l=t.getId();void 0!==l&&fe(e,l,n)}function ye(e,t,n){const r=n[n.length-1];(0,W.v)(void 0!==t.getId(),"Features must have an id set");const i=r.version,o=r.featureType,a=r.featurePrefix,s=r.featureNS,l=ge(a,o),c=t.getGeometryName();e.setAttribute("typeName",l),e.setAttributeNS(te,"xmlns:"+a,s);const u=t.getId();if(void 0!==u){const o=t.getKeys(),a=[];for(let e=0,n=o.length;e{const i=this.combineBboxAndFilter(r.geometryName,r.bbox,e.srsName,e.filter);Object.assign(n,{geometryName:r.geometryName,filter:i}),De(t,[r.name],[n])}));return t}combineBboxAndFilter(e,t,n,r){const i=function(e,t,n){return new Y(e,t,n)}(e,t,n);return r?function(e){const t=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(H,t))}(r,i):i}writeTransaction(e,t,n,r){const i=[],o=r.version?r.version:this.version_,a=(0,C.qq)(re[o],"Transaction");let s;a.setAttribute("service","WFS"),a.setAttribute("version",o),r&&(s=r.gmlOptions?r.gmlOptions:{},r.handle&&a.setAttribute("handle",r.handle)),a.setAttributeNS(C.pF,"xsi:schemaLocation",oe[o]);const l=function(e,t,n,r){const i=r.featurePrefix?r.featurePrefix:ee;let o;"1.0.0"===n?o=2:"1.1.0"===n?o=3:"2.0.0"===n&&(o=3.2);const a=Object.assign({node:e},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:i,gmlVersion:o,hasZ:r.hasZ,srsName:r.srsName},t);return a}(a,s,o,r);return e&&se("Insert",e,i,l),t&&se("Update",t,i,l),n&&se("Delete",n,i,l),r.nativeElements&&se("Native",r.nativeElements,i,l),a}readProjectionFromDocument(e){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(t);return null}readProjectionFromNode(e){if(e.firstElementChild&&e.firstElementChild.firstElementChild)for(let t=(e=e.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){const e=[{}];return this.gmlFormat_.readGeometryElement(t,e),(0,T.Jt)(e.pop().srsName)}return null}};var ze=n(16597),Ve=n(51640),$e=n(41538),Ge=n(2265),Ue=n(76200),We=n(6883),qe=n(39453),He=n(16775),Ye=n(35415);function Ke(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,Xe()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function Xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xe=function(){return!!e})()}function Ze(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Je(e,t){return e.get(Qe(e,t))}function Qe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var et=function(e){return(null==e?void 0:e.geoviewLayerType)===Ve.y6.WFS},tt=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===Ve.y6.WFS},nt=new WeakMap,rt=new WeakSet,it=function(e){function t(e,n){var r,o,a;return(0,i.A)(this,t),r=Ke(this,t,[Ve.y6.WFS,n,e]),Ze(o=r,a=rt),a.add(o),function(e,t,n){Ze(e,t),t.set(e,n)}(r,nt,"2.0.0"),r}return(0,c.A)(t,e),(0,o.A)(t,[{key:"getFieldType",value:function(e,t){var n=this.getLayerMetadata(t.layerPath).find((function(t){return t.name===e}));if(!n)return"string";var r=n.type.split(":").slice(-1)[0];return"date"===r?"date":["int","number"].includes(r)?"number":"string"}},{key:"fetchServiceMetadata",value:function(){var e=this;return new Promise((function(t){var n=(0,Ue.getLocalizedValue)(e.metadataAccessPath,He.K.getDisplayLanguage(e.mapId)),r=n.indexOf("?")>-1?n.substring(n.indexOf("?")):"?service=WFS&request=GetCapabilities";(n=n.indexOf("?")>-1?n.substring(0,n.indexOf("?")):n)?(0,Ue.getXMLHttpRequest)("".concat(n).concat(r)).then((function(n){if("{}"===n)e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata");else{var r=(new DOMParser).parseFromString(n,"text/xml"),i=(0,Ue.xmlToJson)(r),o=(0,Ue.findPropertyNameByRegex)(i,/(?:WFS_Capabilities)/);e.metadata=o,a=nt,s=e,l=o["@attributes"].version,a.set(Qe(a,s),l),t()}var a,s,l})).catch((function(n){e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata"),We.vF.logError("Unableto fetch metadata",e.metadataAccessPath,n),t()})):e.setAllLayerStatusTo("error",e.listOfLayerEntryConfig,"Unable to read metadata")}))}},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r,i,o=e.layerPath;if((0,Ge.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:o,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(o,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",Array.isArray(null===(n=t.metadata)||void 0===n||null===(n=n.FeatureTypeList)||void 0===n?void 0:n.FeatureType)||(t.metadata.FeatureTypeList.FeatureType=[null===(r=t.metadata)||void 0===r||null===(r=r.FeatureTypeList)||void 0===r?void 0:r.FeatureType]),Array.isArray(null===(i=t.metadata)||void 0===i||null===(i=i.FeatureTypeList)||void 0===i?void 0:i.FeatureType)){var a,s,l=(null===(a=t.metadata)||void 0===a?void 0:a.FeatureTypeList.FeatureType).find((function(t){return(t.Name&&t.Name["#text"]).includes(e.layerId)}));if(!l)return t.layerLoadError.push({layer:o,loggerMessage:"WFS feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(o,")")}),void(e.layerStatus="error");if(e.initialSettings.extent=(0,Ye.validateExtentWhenDefined)(e.initialSettings.extent),(null===(s=e.initialSettings)||void 0===s||!s.bounds)&&l["ows:WGS84BoundingBox"]){var c=l["ows:WGS84BoundingBox"]["ows:LowerCorner"]["#text"].split(" "),u=l["ows:WGS84BoundingBox"]["ows:UpperCorner"]["#text"].split(" "),d=[Number(c[0]),Number(c[1]),Number(u[0]),Number(u[1])];e.initialSettings.bounds=d}e.initialSettings.bounds=(0,Ye.validateExtentWhenDefined)(e.initialSettings.bounds)}}))}},{key:"processLayerMetadata",value:(n=(0,r.A)(d().mark((function e(t){var n,r,i,o,a,s,l,c,u,h,p,f,g;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof qe.T){e.next=2;break}throw new Error("Invalid layer configuration type provided");case 2:if(e.prev=2,n=(n=(0,Ue.getLocalizedValue)(t.source.dataAccessPath,He.K.getDisplayLanguage(this.mapId))).indexOf("?")>-1?n.substring(0,n.indexOf("?")):n,r=this.metadata["ows:OperationsMetadata"]["ows:Operation"][1]["ows:Parameter"],i=(0,Ue.findPropertyNameByRegex)(r,/(?:Value)/),o="",void 0!==i&&(o=Array.isArray(i["ows:Value"])?i["ows:Value"][0]["#text"]:void 0===i["ows:Value"]?i[0]["#text"]:i["ows:Value"]["#text"]),!(a="".concat(n,"?service=WFS&request=DescribeFeatureType&version=").concat(Je(nt,this),"&outputFormat=").concat(encodeURIComponent(o),"&typeName=").concat(t.layerId))||"application/json"!==o){e.next=19;break}return e.next=13,fetch(a);case 13:return e.next=15,e.sent.json();case 15:s=e.sent,Array.isArray(s.featureTypes)&&Array.isArray(s.featureTypes[0].properties)&&(this.setLayerMetadata(t.layerPath,s.featureTypes[0].properties),Qe(rt,this,ot).call(this,s.featureTypes[0].properties,t)),e.next=31;break;case 19:if(!a||!o.toUpperCase().includes("XML")){e.next=31;break}return e.next=22,fetch(a);case 22:return e.next=24,e.sent.text();case 24:l=e.sent,c=(new DOMParser).parseFromString(l,"text/xml"),u=(0,Ue.xmlToJson)(c),h=Object.keys(u)[0].includes("xsd:")?"xsd:":"",p=u["".concat(h,"schema")],f=void 0!==p["".concat(h,"complexType")]?p["".concat(h,"complexType")]["".concat(h,"complexContent")]["".concat(h,"extension")]["".concat(h,"sequence")]["".concat(h,"element")]:[],Array.isArray(f)&&(g=[],f.forEach((function(e){g.push(e["@attributes"])})),this.setLayerMetadata(t.layerPath,g),Qe(rt,this,ot).call(this,g,t));case 31:e.next=37;break;case 33:e.prev=33,e.t0=e.catch(2),We.vF.logError('Error processing layer metadata for layer path "'.concat(t.layerPath),e.t0),t.layerStatus="error";case 37:return e.abrupt("return",t);case 38:case"end":return e.stop()}}),e,this,[[2,33]])}))),function(e){return n.apply(this,arguments)})},{key:"createVectorSource",value:function(e){var n,r,i,o,a,c=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d.dataProjection=e.source.dataProjection,u.url=function(t){var n=(0,Ue.getLocalizedValue)(e.source.dataAccessPath,He.K.getDisplayLanguage(c.mapId));return n=n.indexOf("?")>-1?n.substring(0,n.indexOf("?")):n,n="".concat(n,"?service=WFS&request=getFeature&version=").concat(Je(nt,c)),n="".concat(n,"&typeName=").concat(e.layerId),u.strategy===ze.Qk&&Number.isFinite(t[0])&&(n="".concat(n,"&bbox=").concat(t,",").concat(c.getMapViewer().getProjection().getCode())),n},u.format=new Be({version:Je(nt,this)}),(n=t,r="createVectorSource",i=this,o=3,a=(0,l.A)((0,s.A)(1&o?n.prototype:n),r,i),2&o&&"function"==typeof a?function(e){return a.apply(i,e)}:a)([e,u,d])}}]);var n}($e.W);function ot(e,t){var n,r,i=this;if(t.source||(t.source={}),t.source.featureInfo||(t.source.featureInfo={queryable:!0}),null===(n=t.source.featureInfo.outfields)||void 0===n||!n.en||null===(r=t.source.featureInfo.aliasFields)||void 0===r||!r.en){var o,a,s,l,c,u,d,h=!(null!==(o=t.source.featureInfo.outfields)&&void 0!==o&&o.en),p=!(null!==(a=t.source.featureInfo.aliasFields)&&void 0!==a&&a.en);h&&(t.source.featureInfo.outfields={en:""},t.source.featureInfo.fieldTypes=""),p&&(t.source.featureInfo.aliasFields={en:""}),e.forEach((function(e){"Geometry"!==e.type.split(":").slice(-1)[0]&&(h&&(t.source.featureInfo.outfields.en="".concat(t.source.featureInfo.outfields.en).concat(e.name,","),t.source.featureInfo.fieldTypes="".concat(t.source.featureInfo.fieldTypes).concat(i.getFieldType(e.name,t),",")),t.source.featureInfo.aliasFields.en="".concat(t.source.featureInfo.aliasFields.en).concat(e.name,","))})),t.source.featureInfo.outfields.en=null===(s=t.source.featureInfo.outfields)||void 0===s||null===(s=s.en)||void 0===s?void 0:s.slice(0,-1),t.source.featureInfo.fieldTypes=null===(l=t.source.featureInfo.fieldTypes)||void 0===l?void 0:l.slice(0,-1),t.source.featureInfo.aliasFields.en=null===(c=t.source.featureInfo.aliasFields)||void 0===c||null===(c=c.en)||void 0===c?void 0:c.slice(0,-1),t.source.featureInfo.outfields.fr=null===(u=t.source.featureInfo.outfields)||void 0===u?void 0:u.en,t.source.featureInfo.aliasFields.fr=null===(d=t.source.featureInfo.aliasFields)||void 0===d?void 0:d.en}if(!t.source.featureInfo.nameField){var f,g,m=(null===(f=t.source.featureInfo.outfields.en)||void 0===f?void 0:f.split(",")[1])||(null===(g=t.source.featureInfo.outfields.fr)||void 0===g?void 0:g.split(",")[1]),y=m;m&&(t.source.featureInfo.nameField={en:m,fr:y})}}},13209:(e,t,n)=>{"use strict";n.d(t,{F:()=>w});var r=n(13718),i=n(47280),o=n(42432),a=n(2358),s=n(6883);function l(e,t,n){c(e,t),t.set(e,n)}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t){return e.get(h(e,t))}function d(e,t,n){return e.set(h(e,t),n),n}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakSet,w=function(){return(0,i.A)((function e(t,n){var i,a;(0,r.A)(this,e),c(i=this,a=b),a.add(i),l(this,p,void 0),l(this,f,void 0),(0,o.A)(this,"olLayer",void 0),l(this,g,void 0),l(this,m,[]),l(this,y,[]),l(this,v,[]),d(p,this,t),d(f,this,n),d(g,this,n.layerName)}),[{key:"getMapId",value:function(){return u(p,this)}},{key:"getLayerConfig",value:function(){return u(f,this)}},{key:"getOLLayer",value:function(){return this.olLayer}},{key:"getLayerPath",value:function(){return u(f,this).layerPath}},{key:"getGeoviewLayerId",value:function(){return u(f,this).geoviewLayerConfig.geoviewLayerId}},{key:"getGeoviewLayerName",value:function(){return u(f,this).geoviewLayerConfig.geoviewLayerName}},{key:"getLayerStatus",value:function(e){return this.getLayerConfig().layerStatus}},{key:"getLayerName",value:function(e){return u(g,this)}},{key:"setLayerName",value:function(e,t){d(g,this,t),h(b,this,x).call(this,{layerPath:e,layerName:t})}},{key:"getExtent",value:function(){return this.getOLLayer().getExtent()}},{key:"setExtent",value:function(e){this.getOLLayer().setExtent(e)}},{key:"getExtentFromFeatures",value:function(e,t){return s.vF.logError("Feature geometry for ".concat(t," is unavailable from ").concat(e)),Promise.resolve(void 0)}},{key:"getOpacity",value:function(){return this.getOLLayer().getOpacity()}},{key:"setOpacity",value:function(e){this.getOLLayer().setOpacity(e),h(b,this,S).call(this,{layerPath:this.getLayerPath(),opacity:e})}},{key:"getVisible",value:function(){return this.getOLLayer().getVisible()}},{key:"setVisible",value:function(e){var t=this.getVisible();this.getOLLayer().setVisible(e),e!==t&&h(b,this,A).call(this,{visible:e})}},{key:"getMinZoom",value:function(){return this.getOLLayer().getMinZoom()}},{key:"setMinZoom",value:function(e){this.getOLLayer().setMinZoom(e)}},{key:"getMaxZoom",value:function(){return this.getOLLayer().getMaxZoom()}},{key:"setMaxZoom",value:function(e){this.getOLLayer().setMaxZoom(e)}},{key:"onLayerNameChanged",value:function(e){a.A.onEvent(u(m,this),e)}},{key:"offLayerNameChanged",value:function(e){a.A.offEvent(u(m,this),e)}},{key:"onVisibleChanged",value:function(e){a.A.onEvent(u(y,this),e)}},{key:"offVisibleChanged",value:function(e){a.A.offEvent(u(y,this),e)}},{key:"onLayerOpacityChanged",value:function(e){a.A.onEvent(u(v,this),e)}},{key:"offLayerOpacityChanged",value:function(e){a.A.offEvent(u(v,this),e)}}])}();function x(e){a.A.emitEvent(this,u(m,this),e)}function A(e){a.A.emitEvent(this,u(y,this),e)}function S(e){a.A.emitEvent(this,u(v,this),e)}},45361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(42432),d=n(74813),h=n.n(d),p=n(37632),f=n(76200),g=n(25079),m=n(6883),y=n(82527),v=n(2358),b=n(59155),w=n(58748),x=n(27991),A=n(13209);function S(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,C()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function E(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function k(e,t,n){T(e,t),t.set(e,n)}function T(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _(e,t){return e.get(P(e,t))}function O(e,t,n){return e.set(P(e,t),n),n}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,B=new WeakMap,z=new WeakMap,V=new WeakMap,$=new WeakSet,G=function(e){function t(e,n,r){var o,a,s;return(0,i.A)(this,t),o=S(this,t,[e,r]),T(a=o,s=$),s.add(a),(0,u.A)(o,"hitTolerance",t.DEFAULT_HIT_TOLERANCE),k(o,I,void 0),k(o,M,void 0),k(o,L,void 0),k(o,R,void 0),k(o,j,void 0),k(o,F,!0),k(o,D,[]),k(o,N,[]),k(o,B,[]),k(o,z,[]),k(o,V,[]),O(I,o,n),O(R,o,r.geoviewLayerConfig.serviceDateFormat?g.P.getDateFragmentsOrder(r.geoviewLayerConfig.serviceDateFormat):void 0),O(j,o,g.P.getDateFragmentsOrder(r.geoviewLayerConfig.externalDateFormat)),O(F,o,void 0===r.geoviewLayerConfig.isTimeAware||r.geoviewLayerConfig.isTimeAware),o}return(0,c.A)(t,e),(0,o.A)(t,[{key:"init",value:function(){_(I,this).once(["featuresloadend","imageloadend","tileloadend"],this.onLoaded.bind(this)),_(I,this).once(["featuresloaderror","imageloaderror","tileloaderror"],this.onError.bind(this))}},{key:"getMapViewer",value:function(){return x.d.getMapViewer(this.getMapId())}},{key:"getOLLayer",value:function(){return E(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return _(I,this)}},{key:"getLayerConfig",value:function(){return E(t,"getLayerConfig",this,3)([])}},{key:"getStyle",value:function(e){return _(M,this)}},{key:"setStyle",value:function(e,t){O(M,this,t),P($,this,q).call(this,{style:t,layerPath:e})}},{key:"getAttributions",value:function(){var e,t=null===(e=this.getOLSource().getAttributions())||void 0===e?void 0:e({});return t?"string"==typeof t?[t]:t:[]}},{key:"getTemporalDimension",value:function(){return _(L,this)}},{key:"setTemporalDimension",value:function(e){O(L,this,e)}},{key:"getIsTimeAware",value:function(){return _(F,this)}},{key:"getExternalFragmentsOrder",value:function(){return _(j,this)}},{key:"onLoaded",value:function(){var e;this.getLayerConfig().layerStatus="loaded",P($,this,H).call(this,{layerPath:this.getLayerPath()}),this.setVisible(!1!==(null===(e=this.getLayerConfig().initialSettings)||void 0===e||null===(e=e.states)||void 0===e?void 0:e.visible))}},{key:"onError",value:function(){this.getLayerConfig().layerStatus="error"}},{key:"getFeatureInfo",value:(s=(0,r.A)(h().mark((function e(t,n){var r,i,o,a,s,l,c=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>2&&void 0!==c[2]?c[2]:null,e.prev=1,o=this.getLayerConfig(),null!==(i=o.source)&&void 0!==i&&null!==(i=i.featureInfo)&&void 0!==i&&i.queryable){e.next=6;break}return m.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:m.vF.logTraceCore("ABSTRACT-GV-LAYERS - getFeatureInfo",t),a="".concat(t),m.vF.logMarkerStart(a),e.t0=t,e.next="all"===e.t0?12:"at_pixel"===e.t0?14:"at_coordinate"===e.t0?16:"at_long_lat"===e.t0?18:"using_a_bounding_box"===e.t0?20:"using_a_polygon"===e.t0?22:24;break;case 12:return s=this.getAllFeatureInfo(),e.abrupt("break",26);case 14:return s=this.getFeatureInfoAtPixel(r),e.abrupt("break",26);case 16:return s=this.getFeatureInfoAtCoordinate(r),e.abrupt("break",26);case 18:return s=this.getFeatureInfoAtLongLat(r),e.abrupt("break",26);case 20:return s=this.getFeatureInfoUsingBBox(r),e.abrupt("break",26);case 22:return s=this.getFeatureInfoUsingPolygon(r),e.abrupt("break",26);case 24:s=Promise.resolve([]),m.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return l=e.sent,m.vF.logMarkerCheck(a,"to getFeatureInfo",l),e.abrupt("return",l);case 33:return e.prev=33,e.t1=e.catch(1),m.vF.logError(e.t1),e.abrupt("return",null);case 37:case"end":return e.stop()}}),e,this,[[1,33]])}))),function(e,t){return s.apply(this,arguments)})},{key:"getAllFeatureInfo",value:function(){throw new Error("Not implemented exception getAllFeatureInfo on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoAtPixel",value:function(e){throw new Error("Not implemented exception for getFeatureInfoAtPixel on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoAtCoordinate",value:function(e){throw new Error("Not implemented exception for getFeatureInfoAtCoordinate on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoAtLongLat",value:function(e){throw new Error("Not implemented exception for getFeatureInfoAtLongLat on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoUsingBBox",value:function(e){throw new Error("Not implemented exception for getFeatureInfoUsingBBox on layer path ".concat(this.getLayerPath()))}},{key:"getFeatureInfoUsingPolygon",value:function(e){throw new Error("Not implemented exception for getFeatureInfoUsingPolygon on layer path ".concat(this.getLayerPath()))}},{key:"getFieldDomain",value:function(e){return m.vF.logWarning("getFieldDomain is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),null}},{key:"getFieldType",value:function(e){return m.vF.logWarning("getFieldType is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),"string"}},{key:"queryLegend",value:function(){var e=this;P($,this,U).call(this);var t=this.getLegend();return t.then((function(t){t&&(e.updateIconImageCache(t),P($,e,W).call(e,{legend:t}))})).catch((function(e){m.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGVLayer",e)})),t}},{key:"updateIconImageCache",value:function(e){var t=this.getMapViewer().iconImageCacheSize;e.styleConfig&&Object.keys(e.styleConfig).forEach((function(n){var r,i,o,a;!e.styleConfig||"uniqueValue"!==(null===(r=e.styleConfig[n])||void 0===r?void 0:r.styleType)&&"classBreaks"!==(null===(i=e.styleConfig[n])||void 0===i?void 0:i.styleType)||(null!==(o=e.styleConfig[n].uniqueValueStyleInfo)&&void 0!==o&&o.length&&(t+=e.styleConfig[n].uniqueValueStyleInfo.length),null!==(a=e.styleConfig[n].classBreakStyleInfo)&&void 0!==a&&a.length&&(t+=e.styleConfig[n].classBreakStyleInfo.length))})),p.ue.setSize(t),this.getMapViewer().iconImageCacheSize=t}},{key:"getLegend",value:(a=(0,r.A)(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=this.getLayerConfig().geoviewLayerConfig.geoviewLayerType,e.t1=this.getStyle(this.getLayerPath()),e.next=5,(0,w.qC)(this.getStyle(this.getLayerPath()));case 5:return e.t2=e.sent,t={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",t);case 10:return e.prev=10,e.t3=e.catch(0),m.vF.logError(e.t3),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return a.apply(this,arguments)})},{key:"getFieldValue",value:function(e,t,n){var r,i=e.get(t);if("date"===n){"string"==typeof i?(_(R,this)||O(R,this,g.P.getDateFragmentsOrder(g.P.deduceDateFormat(i))),r=g.P.applyInputDateFormat(i,_(R,this))):r=g.P.convertToUTC("".concat(g.P.convertMilisecondsToDate(i),"Z"));return _(j,this)&&(r=g.P.applyOutputDateFormat(r,_(j,this),!0)),r}return i}},{key:"formatFeatureInfoResult",value:(n=(0,r.A)(h().mark((function e(t,n){var i,o,a,s,l,c,u,d,p,g,v,x,A,S,C,E,k,T=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.length){e.next=3;break}return e.abrupt("return",[]);case 3:return c=new y.z(1),u=function(){return c.withLock((0,r.A)(h().mark((function e(){var t,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==l){e.next=7;break}return l=null,e.next=4,T.queryLegend();case 4:t=e.sent,(n=b.K.getLayerIconImage(t))&&(l=n[0].iconImage||null);case 7:return e.abrupt("return",l);case 8:case"end":return e.stop()}}),e)}))))},d=null==n||null===(i=n.source)||void 0===i?void 0:i.featureInfo,p=null==d||null===(o=d.fieldTypes)||void 0===o?void 0:o.split(","),g=null===(a=(0,f.getLocalizedValue)(null==d?void 0:d.outfields,"en"))||void 0===a?void 0:a.split(","),v=null===(s=(0,f.getLocalizedValue)(null==d?void 0:d.aliasFields,"en"))||void 0===s?void 0:s.split(","),x=[],t.forEach((function(e){x.push(new Promise((function(t){(0,w.$G)(e,T.getStyle(n.layerPath),n.filterEquation,n.legendFilterIsOff,!0,u).then((function(n){t({feature:e,canvas:n})})).catch((function(e){m.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGVLayer",e)}))})))})),A={},S={},C=0,E=0,k=[],e.next=18,Promise.all(x);case 18:return e.sent.forEach((function(e){var t,r,i=e.feature,o=e.canvas;i.getGeometry()&&(r=i.getGeometry().getExtent());var a={featureKey:C++,geoviewLayerType:T.getLayerConfig().geoviewLayerConfig.geoviewLayerType,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,f.getLocalizedValue)(null==n||null===(t=n.source)||void 0===t||null===(t=t.featureInfo)||void 0===t?void 0:t.nameField,"en")||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=T.getFieldDomain(e));var t=A[e];e in S||(S[e]=T.getFieldType(e));var n=S[e];if(null!=g&&g.includes(e)){var r=g.indexOf(e);a.fieldInfo[e]={fieldKey:E++,value:T.getFieldValue(i,e,p[r]),dataType:p[r],alias:v[r],domain:t}}else g||(a.fieldInfo[e]={fieldKey:E++,value:T.getFieldValue(i,e,n),dataType:n,alias:e,domain:t})}})),k.push(a)})),e.abrupt("return",k);case 23:return e.prev=23,e.t0=e.catch(0),m.vF.logError(e.t0),e.abrupt("return",[]);case 27:case"end":return e.stop()}}),e,null,[[0,23]])}))),function(e,t){return n.apply(this,arguments)})},{key:"getLayerFilter",value:function(e){var t=this.getLayerConfig();return null==t?void 0:t.layerFilter}},{key:"onLegendQuerying",value:function(e){v.A.onEvent(_(N,this),e)}},{key:"offLegendQuerying",value:function(e){v.A.offEvent(_(N,this),e)}},{key:"onLegendQueried",value:function(e){v.A.onEvent(_(B,this),e)}},{key:"offLegendQueried",value:function(e){v.A.offEvent(_(B,this),e)}},{key:"emitLayerFilterApplied",value:function(e){v.A.emitEvent(this,_(z,this),e)}},{key:"onLayerFilterApplied",value:function(e){v.A.onEvent(_(z,this),e)}},{key:"offLayerFilterApplied",value:function(e){v.A.offEvent(_(z,this),e)}},{key:"onLayerStyleChanged",value:function(e){v.A.onEvent(_(D,this),e)}},{key:"offLayerStyleChanged",value:function(e){v.A.offEvent(_(D,this),e)}},{key:"onIndividualLayerLoaded",value:function(e){v.A.onEvent(_(V,this),e)}},{key:"offIndividualLayerLoaded",value:function(e){v.A.offEvent(_(V,this),e)}}],[{key:"initOptionsWithInitialSettings",value:function(e,t){var n,r,i,o,a;void 0!==(null===(n=t.initialSettings)||void 0===n?void 0:n.className)&&(e.className=t.initialSettings.className),void 0!==(null===(r=t.initialSettings)||void 0===r?void 0:r.extent)&&(e.extent=t.initialSettings.extent),void 0!==(null===(i=t.initialSettings)||void 0===i?void 0:i.maxZoom)&&(e.maxZoom=t.initialSettings.maxZoom),void 0!==(null===(o=t.initialSettings)||void 0===o?void 0:o.minZoom)&&(e.minZoom=t.initialSettings.minZoom),void 0!==(null===(a=t.initialSettings)||void 0===a||null===(a=a.states)||void 0===a?void 0:a.opacity)&&(e.opacity=t.initialSettings.states.opacity)}}]);var n,a,s}(A.F);function U(){v.A.emitEvent(this,_(N,this),void 0)}function W(e){v.A.emitEvent(this,_(B,this),e)}function q(e){v.A.emitEvent(this,_(D,this),e)}function H(e){v.A.emitEvent(this,_(V,this),e)}(0,u.A)(G,"DEFAULT_HIT_TOLERANCE",4)},77265:(e,t,n)=>{"use strict";n.d(t,{z:()=>h});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(8058);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(){return(0,r.A)(this,t),u(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getOLLayer",value:function(){return(e=t,n="getOLLayer",r=this,i=3,o=(0,s.A)((0,a.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}},{key:"getMetadataProjection",value:function(){var e;return c.M.getProjection("EPSG:".concat(null===(e=this.getLayerConfig().getServiceMetadata())||void 0===e||null===(e=e.fullExtent)||void 0===e||null===(e=e.spatialReference)||void 0===e?void 0:e.wkid))||void 0}},{key:"getMetadataExtent",value:function(){var e=this.getLayerConfig().getServiceMetadata();if(null!=e&&e.fullExtent)return[null==e?void 0:e.fullExtent.xmin,null==e?void 0:e.fullExtent.ymin,null==e?void 0:e.fullExtent.xmax,null==e?void 0:e.fullExtent.ymax]}}])}(n(45361).Z)},96734:(e,t,n)=>{"use strict";n.d(t,{Y:()=>F});var r=n(29067),i=n(55907),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(42432),p=n(74813),f=n.n(p),g=n(39684),m=n(58699),y=n(98246),v=n(96997),b=n(76200),w=n(35415),x=n(8058),A=n(16775),S=n(6883),C=n(25079),E=n(2265),k=n(79760),T=n(77265);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[0].minValue,e.source.featureInfo))):!1===o.classBreakStyleInfo[0].visible&&!1!==o.defaultVisible&&(u.push("".concat(o.field," < ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[0].minValue,e.source.featureInfo))),d=h):!1!==o.classBreakStyleInfo[h].visible&&!1===o.defaultVisible?(u.push("".concat(o.field," > ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].minValue,e.source.featureInfo))),h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].maxValue,e.source.featureInfo)))):!1===o.classBreakStyleInfo[h].visible&&!1!==o.defaultVisible&&(u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].minValue,e.source.featureInfo))),d=h):!1===o.defaultVisible?!1===o.classBreakStyleInfo[h].visible?u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h-1].maxValue,e.source.featureInfo))):h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h].maxValue,e.source.featureInfo))):!1!==o.classBreakStyleInfo[h].visible?(u.push("".concat(o.field," > ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[h-1].maxValue,e.source.featureInfo))),d=-1):d=h;if(-1!==d&&u.push("".concat(o.field," > ").concat(R(j,this,G).call(this,o.field,o.classBreakStyleInfo[d].maxValue,e.source.featureInfo))),!1!==o.defaultVisible){var p="".concat(u.slice(0,-1).reduce((function(e,t,n){return 0===n?"(".concat(t," or "):n%2==0?"".concat(e," and ").concat(t,") or "):"".concat(e,"(").concat(t)}),"")).concat(u.slice(-1)[0],")");return"".concat(p).concat(n?" and (".concat(n,")"):"")}var f=u.length?"".concat(u.reduce((function(e,t,n){return 0===n?"((".concat(t," and "):n%2==0?"".concat(e," or (").concat(t," and "):"".concat(e).concat(t,")")}),""),")"):"(1=0)";return"".concat(f).concat(n?" and (".concat(n,")"):"")}}return"(1=1)"}},{key:"onLoaded",value:function(){M(t,"onLoaded",this,3)([]),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n,i=this,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];S.vF.logTraceCore("GV-ESRI-DYNAMIC - applyViewFilter");var a=this.getLayerConfig(),s=this.getOLLayer(),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,a.layerFilter=l,o&&(l=this.getViewFilter());var c=(0,r.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=C.P.applyInputDateFormat(e[0],i.getExternalFragmentsOrder(),t);n=(n=n.slice(0,20===n.length?-1:-6)).replace("T"," "),l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))})),null==s||s.getSource().updateParams({layerDefs:'{"'.concat(a.layerId,'": "').concat(l,'"}')}),null==s||s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,w.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}},{key:"getExtentFromFeatures",value:(n=(0,o.A)(f().mark((function e(t,n){var r,i,o,a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getLayerConfig(),i=(0,b.getLocalizedValue)(r.source.dataAccessPath,A.K.getDisplayLanguage(this.getMapId())),o=n.join("%2C"),!i){e.next=21;break}return i.endsWith("/")||(i+="/"),a="".concat(i).concat(r.layerId,"/query?&f=json&where=&objectIds=").concat(o,"&returnGeometry=true"),e.prev=6,e.next=9,fetch(a);case 9:return s=e.sent,e.next=12,s.json();case 12:return l=e.sent,(new m.A).readFeatures({features:l.features},{dataProjection:"EPSG:".concat(l.spatialReference.wkid),featureProjection:this.getMapViewer().getProjection().getCode()}).forEach((function(e){var t,n=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();n&&(c?(0,w.getMinOrMaxExtents)(c,n):c=n)})),e.abrupt("return",c);case 18:e.prev=18,e.t0=e.catch(6),S.vF.logError("Error fetching geometry from ".concat(a),e.t0);case 21:return e.abrupt("return",void 0);case 22:case"end":return e.stop()}}),e,this,[[6,18]])}))),function(e,t){return n.apply(this,arguments)})}]);var n,l,c}(T.z);function D(e,t,n,r){return N.apply(this,arguments)}function N(){return(N=(0,o.A)(f().mark((function e(t,n,i,o){var a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],s="".concat(n,"&resultOffset=").concat(o||i),e.prev=2,e.next=5,fetch(s);case 5:return l=e.sent,e.next=8,l.json();case 8:if(c=e.sent,a.push(c),!c.exceededTransferLimit){e.next=19;break}return e.t0=a.push,e.t1=a,e.t2=r.A,e.next=16,R(j,this,D).call(this,t,n,i,o?o+i:2*i);case 16:e.t3=e.sent,e.t4=(0,e.t2)(e.t3),e.t0.apply.call(e.t0,e.t1,e.t4);case 19:e.next=24;break;case 21:e.prev=21,e.t5=e.catch(2),S.vF.logError("Error loading additional features for ".concat(t.layerPath," from ").concat(s),e.t5);case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[2,21]])})))).apply(this,arguments)}function B(e){return e.uniqueValueStyleInfo.reduce((function(t,n){return(!1===n.visible&&!1!==e.defaultVisible||!1!==n.visible&&!1===e.defaultVisible)&&n.values.forEach((function(e,n){var r=t[n].find((function(t){return t.value===e}));r?r.nbOccurence++:t[n].push({value:e,nbOccurence:1})})),t}),e.fields.map((function(){return[]})))}function z(e,t){for(var n=e.fields.map((function(){return!0})),r=[],i=0;-1!==i;i=n.findIndex((function(e){return e}))){for(var o=t[i].reduce((function(e,t){return e+t.nbOccurence}),0),a=0;at[a].length||t[i].length===t[a].length&&o{"use strict";n.d(t,{o:()=>T});var r=n(42432),i=n(29067),o=n(96880),a=n(13718),s=n(47280),l=n(75583),c=n(96645),u=n(6620),d=n(94270),h=n(74813),p=n.n(h),f=n(39684),g=n(76200),m=n(25079),y=n(6883),v=n(51640),b=n(79760),w=n(16775),x=n(35415),A=n(58748),S=n(77265);function C(e,t,n){return t=(0,c.A)(t),(0,l.A)(e,E()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}function k(e,t,n,r){var i=(0,u.A)((0,c.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var T=function(e){function t(e,n,r){var i;(0,a.A)(this,t),i=C(this,t,[e,n,r]);var o={source:n,properties:{layerConfig:r}};return S.z.initOptionsWithInitialSettings(o,r),i.olLayer=new f.A(o),i}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getOLLayer",value:function(){return k(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return k(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return k(t,"getLayerConfig",this,3)([])}},{key:"getFieldType",value:function(e){return(0,b.UB)(this.getLayerConfig(),e)}},{key:"getFieldDomain",value:function(e){return(0,b.k7)(this.getLayerConfig(),e)}},{key:"getLegend",value:(n=(0,o.A)(p().mark((function e(){var t,n,r,i,o,a,s,l,c,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getLayerConfig(),e.prev=1,t){e.next=4;break}return e.abrupt("return",null);case 4:return n="".concat((0,g.getLocalizedValue)(t.geoviewLayerConfig.metadataAccessPath,w.K.getDisplayLanguage(this.getMapId())),"/legend?f=json"),e.next=7,fetch(n);case 7:return r=e.sent,e.next=10,r.json();case 10:if((i=e.sent).layers&&1===i.layers.length?o=i.layers[0].legend:i.layers.length&&(a=i.layers.find((function(e){return e.layerId===t.layerId})))&&(o=a.legend),o){e.next=15;break}return s={type:v.y6.ESRI_IMAGE,styleConfig:this.getStyle(t.layerPath),legend:null},e.abrupt("return",s);case 15:return l=[],o.forEach((function(e){var t={label:e.label,values:e.label.split(","),settings:{type:"iconSymbol",mimeType:e.contentType,src:e.imageData,width:e.width,height:e.height}};l.push(t)})),c={Point:{styleType:"uniqueValue",fields:["default"],uniqueValueStyleInfo:l}},this.setStyle(t.layerPath,c),e.t0=v.y6.ESRI_IMAGE,e.t1=c,e.next=24,(0,A.qC)(this.getStyle(t.layerPath));case 24:return e.t2=e.sent,u={type:e.t0,styleConfig:e.t1,legend:e.t2},e.abrupt("return",u);case 29:return e.prev=29,e.t3=e.catch(1),y.vF.logError("Get Legend for ".concat(t.layerPath," error"),e.t3),e.abrupt("return",null);case 33:case"end":return e.stop()}}),e,this,[[1,29]])}))),function(){return n.apply(this,arguments)})},{key:"onLoaded",value:function(){k(t,"onLoaded",this,3)([]),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t,n){var o=this;y.vF.logTraceCore("GV-ESRI-IMAGE - applyViewFilter",e);var a=this.getLayerConfig(),s=this.getOLLayer(),l=s.getSource();if(l){var c=t;if(a.legendFilterIsOff=!n,n&&(a.layerFilter=t),c){var u=(c=c.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),d=u[0].trim();c=u[1].trim();var h=(0,i.A)("".concat(c," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));h.reverse(),h.forEach((function(e){var t=![20,25].includes(e[0].length),n=m.P.applyInputDateFormat(e[0],o.getExternalFragmentsOrder(),t);c="".concat(c.slice(0,e.index-6)).concat(n).concat(c.slice(e.index+e[0].length+2))})),l.updateParams((0,r.A)({},d,c.replace(/\s*/g,""))),s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:c})}}}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r),t=(0,x.validateExtent)(t,this.getMapViewer().getProjection().getCode())}return t}}]);var n}(S.z)},17102:(e,t,n)=>{"use strict";n.d(t,{V:()=>L});var r=n(55723),i=n(55907),o=n(29067),a=n(96880),s=n(13718),l=n(47280),c=n(75583),u=n(96645),d=n(6620),h=n(94270),p=n(42432),f=n(74813),g=n.n(f),m=n(34946),y=n(39684),v=n(23853),b=n(51640),w=n(76200),x=n(25079),A=n(35415),S=n(6883),C=n(16775),E=n(58748),k=n(77265);function T(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,_()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function O(e,t,n,r){var i=(0,d.A)((0,u.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function P(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var M=new WeakSet,L=function(e){function t(e,n,r,i){var o;if((0,s.A)(this,t),P(o=T(this,t,[e,n,r]),M),(0,p.A)(o,"WMSStyles",[]),!i)throw new Error("No layer capabilities were provided");var a={source:n,properties:{layerCapabilities:i,layerConfig:r}};return k.z.initOptionsWithInitialSettings(a,r),o.olLayer=new y.A(a),o}return(0,h.A)(t,e),(0,l.A)(t,[{key:"getOLLayer",value:function(){return O(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return O(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return O(t,"getLayerConfig",this,3)([])}},{key:"getFeatureInfoAtPixel",value:function(e){return this.getFeatureInfoAtCoordinate(this.getMapViewer().map.getCoordinateFromPixel(e))}},{key:"getFeatureInfoAtCoordinate",value:function(e){var t=this.getMapViewer().convertCoordinateMapProjToLngLat(e);return this.getFeatureInfoAtLongLat(t)}},{key:"getFeatureInfoAtLongLat",value:(r=(0,a.A)(g().mark((function e(n){var r,i,o,a,s,l,c,u,d,h,p,f,y,v,b,x,A,C,E,k;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.getVisible()){e.next=3;break}return e.abrupt("return",[]);case 3:if(i=this.getLayerConfig(),o=this.getMapViewer().convertCoordinateLngLatToMapProj(n),!(n[0]1)){e.next=16;break}o=0;case 8:if(!(o1?i:void 0},e.abrupt("return",n);case 32:return e.prev=32,e.t0=e.catch(0),S.vF.logError("gv-wms.getLegend()\n",e.t0),e.abrupt("return",null);case 36:case"end":return e.stop()}}),e,this,[[0,32]])}))),function(){return n.apply(this,arguments)})},{key:"setWmsStyle",value:function(e,t){var n;null===(n=this.getOLSource())||void 0===n||n.updateParams({STYLES:e})}},{key:"onLoaded",value:function(){O(t,"onLoaded",this,3)([]),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.getLayerConfig(),a=this.getOLLayer();S.vF.logTraceCore("GVWMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(i.legendFilterIsOff=!r,r&&(i.layerFilter=t),l){var c=(l=l.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),u=c[0].trim();l=c[1].trim();var d=(0,o.A)("".concat(l," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));d.reverse(),d.forEach((function(e){var t=![20,25].includes(e[0].length),r=x.P.applyInputDateFormat(e[0],n.getExternalFragmentsOrder(),t);l="".concat(l.slice(0,e.index-6)).concat(r).concat(l.slice(e.index+e[0].length+2))})),s.updateParams((0,p.A)({},u,l.replace(/\s*/g,""))),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}}},{key:"getBounds",value:function(e){var t,n=this.getLayerConfig(),r=this.getOLSource().getProjection()||void 0,o=null==n||null===(t=n.initialSettings)||void 0===t?void 0:t.bounds;o&&(o=this.getMapViewer().convertExtentFromProjToMapProj(o,"EPSG:4326"));var a,s=I(M,this,V).call(this,(null==r?void 0:r.getCode())||"");if(s){var l=(0,i.A)(s,2),c=l[0],u=l[1];a=this.getMapViewer().convertExtentFromProjToMapProj(u,c)}return o&&a&&(a=(0,A.getExtentIntersection)(a,o)),a=(0,A.validateExtentWhenDefined)(a,this.getMapViewer().getProjection().getCode())}}]);var n,r}(k.z);function R(e,t){var n=I(M,this,j).call(this,e.layerId);if(Array.isArray(null==n?void 0:n.Style)){var r,o,a=!1;if(n.Style.forEach((function(e){"default"===e.Name&&(a=!0)})),t){var s=n.Style.filter((function(e){return e.Name===t}));o=(0,i.A)(s,1)[0]}else o=null==n?void 0:n.Style.find((function(t){var n,r;return null!=e&&null!==(n=e.source)&&void 0!==n&&n.style&&!Array.isArray(null==e||null===(r=e.source)||void 0===r?void 0:r.style)?e.source.style===t.Name:a?"default"===t.Name:t.Name}));if(Array.isArray(null===(r=o)||void 0===r?void 0:r.LegendURL))return o.LegendURL.find((function(e){return"image/png"===e.Format}))||null}return null}function j(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=this.getLayerConfig().getServiceMetadata())||void 0===t||null===(t=t.Capability)||void 0===t?void 0:t.Layer;if(!n)return null;if("Name"in n&&n.Name===e)return n;if("Layer"in n){if(Array.isArray(n.Layer)){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"";Object.keys(e).forEach((function(n){if(!n.endsWith("Geometry")&&!n.startsWith("@")){var i=n.split(":").slice(-1)[0];"object"===(0,r.A)(e[n])?"#text"in e[n]?g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n]["#text"],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}:m(e[n],i):g.fieldInfo["".concat(t).concat(t?".":"").concat(i)]={fieldKey:f++,value:e[n],dataType:"string",alias:"".concat(t).concat(t?".":"").concat(i),domain:null}}}))};(m(e),c)?(f=0,Object.keys(g.fieldInfo).filter((function(e){if(null!=c&&c.includes(e)){var t=c.indexOf(e);return g.fieldInfo[e].fieldKey=f++,g.fieldInfo[e].alias=d[t],g.fieldInfo[e].dataType=u[t],!1}return!0})).forEach((function(e){delete g.fieldInfo[e]})),h.push(g)):h.push(g);return h}function z(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}function V(e){var t,n=null===(t=this.getLayerConfig().getServiceMetadata())||void 0===t?void 0:t.Capability.Layer.BoundingBox;if(n){for(var r=0;r0)return[n[0].crs,[n[0].extent[1],n[0].extent[0],n[0].extent[3],n[0].extent[2]]]}}},79760:(e,t,n)=>{"use strict";n.d(t,{UB:()=>a,Vk:()=>o,k7:()=>s});n(74813);var r=n(23853),i=(n(6883),n(76200));function o(e,t,n){var o,a=e.getLayerMetadata().source.featureInfo,s=null===(o=(0,i.getLocalizedValue)((0,r.KX)(a.outfields),n))||void 0===o?void 0:o.split(",").indexOf(t);return s&&-1!==s?a.fieldTypes.split(",")[s]:"string"}function a(e,t){var n,r=(null===(n=e.getLayerMetadata())||void 0===n?void 0:n.fields).find((function(e){return e.name===t}));if(!r)return"string";var i=r.type;return"esriFieldTypeDate"===i?"date":["esriFieldTypeDouble","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeOID"].includes(i)?"number":"string"}function s(e,t){var n,i=(null===(n=e.getLayerMetadata())||void 0===n?void 0:n.fields).find((function(e){return e.name===t}));return i?(0,r.KX)(i.domain):null}},8637:(e,t,n)=>{"use strict";n.d(t,{p:()=>T});var r=n(42432),i=n(29067),o=n(13718),a=n(47280),s=n(75583),l=n(96645),c=n(6620),u=n(94270),d=n(67287),h=n(7725),p=n(25079),f=n(25488),g=n(16775),m=n(6883),y=n(58748),v=n(79760),b=n(45361),w=n(76200),x=n(35415);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];m.vF.logTraceCore("ABSTRACT-GV-VECTOR - applyViewFilter");var a=this.getLayerConfig(),s=this.getOLLayer(),l=t.replaceAll(/\s{2,}/g," ").trim();a.legendFilterIsOff=!o,o&&(a.layerFilter=t);var c=(0,i.A)("".concat(null===(n=l)||void 0===n?void 0:n.replaceAll(/\s{2,}/g," ").trim()," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));c.reverse(),c.forEach((function(e){var t=![20,25].includes(e[0].length),n=p.P.applyInputDateFormat(e[0],r.getExternalFragmentsOrder(),t);l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))}));try{var u=(0,y.WN)([{nodeType:f.Z6.unprocessedNode,nodeValue:l}]);a.filterEquation=u}catch(t){throw new Error("Invalid vector layer filter (".concat(t.message,").\nfilter = ").concat(this.getLayerFilter(e),"\ninternal filter = ").concat(l))}s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}},{key:"getBounds",value:function(e){return this.getOLSource().getExtent()}},{key:"getExtentFromFeatures",value:function(e,t){var n,r=this,i=t.map((function(e){var t;return null===(t=r.getOLLayer().getSource())||void 0===t?void 0:t.getFeatureById(e)}));return i?(i.forEach((function(e){if(null!=e&&e.getGeometry()){var t,r=null===(t=e.getGeometry())||void 0===t?void 0:t.getExtent();r&&(n?(0,x.getMinOrMaxExtents)(n,r):n=r)}})),Promise.resolve(n)):Promise.resolve(void 0)}},{key:"getFeaturesAsGeoJSON",value:function(){var e=this.getMapViewer().getProjection().getCode(),t=(new h.A).writeFeatures(this.getOLLayer().getSource().getFeatures(),{dataProjection:"EPSG:4326",featureProjection:e});return JSON.parse(t)}}],[{key:"calculateStyleForFeature",value:function(e,t,n,i,o,a){var s=e.getStyle(i)||{};return(0,y.nS)(t,s,n,o,a,(function(t,n){m.vF.logDebug("A new style has been created on-the-fly",t,e),e.setStyle(i,S(S({},s),(0,r.A)({},t,n)))}))}}])}(b.Z)},11173:(e,t,n)=>{"use strict";n.d(t,{M:()=>I});var r=n(96880),i=n(13718),o=n(47280),a=n(42432),s=n(74813),l=n.n(s),c=n(2358),u=n(76200),d=n(40215),h=n(16775),p=n(73611),f=n(41538),g=n(4401),m=n(96734),y=n(8637),v=n(17102),b=n(6883);function w(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function A(e,t){return e.get(C(e,t))}function S(e,t,n){return e.set(C(e,t),n),n}function C(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,k=new WeakMap,T=new WeakMap,_=new WeakMap,O=new WeakMap,P=new WeakSet,I=function(){return(0,o.A)((function e(t){var n,r;(0,i.A)(this,e),x(n=this,r=P),r.add(n),(0,a.A)(this,"layerApi",void 0),(0,a.A)(this,"resultSet",{}),w(this,E,!1),w(this,k,[]),w(this,T,[]),w(this,_,void 0),w(this,O,void 0),this.layerApi=t,S(_,this,C(P,this,L).bind(this)),S(O,this,C(P,this,R).bind(this))}),[{key:"getMapId",value:function(){return this.layerApi.getMapId()}},{key:"registerLayerConfig",value:function(e){this.onRegisterLayerConfigCheck(e)&&!(e.layerPath in this.resultSet)&&(this.onRegisterLayerConfig(e),this.onPropagateToStore(this.resultSet[e.layerPath],"config-registration"),this.onLayerSetUpdatedProcess(e.layerPath)),C(P,this,M).call(this,e)}},{key:"onRegisterLayerConfigCheck",value:function(e){return A(E,this)}},{key:"onRegisterLayerConfig",value:function(e){this.resultSet[e.layerPath]={layerPath:e.layerPath,layerStatus:e.layerStatus,layerName:(0,u.getLocalizedValue)(e.layerName,h.K.getDisplayLanguage(this.getMapId()))},e.onLayerStatusChanged(A(_,this))}},{key:"registerLayer",value:(e=(0,r.A)(l().mark((function e(t,n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.whenThisThen)((function(){return"loaded"===t.getLayerStatus(n)}),2e4);case 2:if(!A(k,this).includes(n)){e.next=4;break}return e.abrupt("return");case 4:this.onRegisterLayerCheck(t,n)&&(this.onRegisterLayer(t,n),this.onPropagateToStore(this.resultSet[n],"layer-registration"),this.onLayerSetUpdatedProcess(n));case 5:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"onRegisterLayerCheck",value:function(e,t){var n;return"group"!==(null===(n=this.layerApi.getGeoviewLayerHybrid(t))||void 0===n||null===(n=n.getLayerConfig(t))||void 0===n?void 0:n.entryType)}},{key:"onRegisterLayer",value:function(e,t){var n=(0,u.getLocalizedValue)(e.getLayerName(t),h.K.getDisplayLanguage(this.getMapId()));t in this.resultSet?(this.resultSet[t].layerStatus=e.getLayerStatus(t),this.resultSet[t].layerName=n):this.resultSet[t]={layerPath:t,layerStatus:e.getLayerStatus(t),layerName:n},A(k,this).push(t),e.onLayerNameChanged(A(O,this))}},{key:"unregister",value:function(e){this.onUnregisterLayerConfig(this.layerApi.getLayerEntryConfig(e)),this.onUnregisterLayer(this.layerApi.getGeoviewLayerHybrid(e)),this.onDeleteFromStore(e),delete this.resultSet[e],this.onLayerSetUpdatedProcess(e)}},{key:"onUnregisterLayerConfig",value:function(e){null==e||e.offLayerStatusChanged(A(_,this))}},{key:"onUnregisterLayer",value:function(e){null==e||e.offLayerNameChanged(A(O,this))}},{key:"onProcessLayerStatusChanged",value:function(e,t){this.resultSet[e.layerPath].layerStatus=t,this.resultSet[e.layerPath].layerName=(0,u.getLocalizedValue)(e.layerName||e.geoviewLayerConfig.geoviewLayerName,h.K.getDisplayLanguage(this.getMapId()))}},{key:"onProcessNameChanged",value:function(e,t){this.resultSet[e].layerName=t}},{key:"onLayerSetUpdatedProcess",value:function(e){C(P,this,j).call(this,{layerPath:e,resultSet:this.resultSet})}},{key:"onLayerSetUpdated",value:function(e){c.A.onEvent(A(T,this),e)}},{key:"offLayerSetUpdated",value:function(e){c.A.offEvent(A(T,this),e)}}],[{key:"queryLayerFeatures",value:function(e,t,n,r){return t.getFeatureInfo(n,e.layerPath,r)}},{key:"isQueryableType",value:function(e){return e instanceof f.W||e instanceof y.p||e instanceof p.zt||e instanceof m.Y||e instanceof g.GB||e instanceof v.V}},{key:"isSourceQueryable",value:function(e,t){var n;return!(!1===(null===(n=e.getLayerConfig(t))||void 0===n||null===(n=n.source)||void 0===n||null===(n=n.featureInfo)||void 0===n?void 0:n.queryable))}},{key:"isStateQueryable",value:function(e,t){var n;return!(!1===(null===(n=e.getLayerConfig(t))||void 0===n||null===(n=n.initialSettings)||void 0===n||null===(n=n.states)||void 0===n?void 0:n.queryable))}}]);var e}();function M(e){var t=this;e.onLayerStatusChanged((function(){try{if("loaded"===e.layerStatus){if(e.parentLayerConfig){var n=e.parentLayerConfig.listOfLayerEntryConfig.map((function(e){return t.layerApi.getLayerEntryConfig(e.layerPath)})).filter((function(e){return e}));if(d.c.allLayerStatusAreGreaterThanOrEqualTo("loaded",n)){var r=t.layerApi.getLayerEntryConfig(e.parentLayerConfig.layerPath);r&&(r.layerStatus="loaded")}}var i=t.layerApi.getGeoviewLayerHybrid(e.layerPath);i&&t.registerLayer(i,e.layerPath).catch((function(e){b.vF.logPromiseFailed("in registerLayer in registerLayerConfig",e)}))}}catch(e){b.vF.logError("Error trying to register the layer coming from the layer config",e)}}))}function L(e,t){try{this.onProcessLayerStatusChanged(e,t.layerStatus),this.resultSet[e.layerPath]&&this.onPropagateToStore(this.resultSet[e.layerPath],"layerStatus"),this.onLayerSetUpdatedProcess(e.layerPath)}catch(t){b.vF.logError("CAUGHT in handleLayerStatusChanged",e.layerPath,t)}}function R(e,t){try{this.resultSet[t.layerPath]&&(this.onProcessNameChanged(t.layerPath,(0,u.getLocalizedValue)(t.layerName,h.K.getDisplayLanguage(this.getMapId()))),this.onPropagateToStore(this.resultSet[t.layerPath],"layerName"),this.onLayerSetUpdatedProcess(t.layerPath))}catch(e){b.vF.logError("CAUGHT in handleLayerStatusChanged",t.layerPath,e)}}function j(e){c.A.emitEvent(this,A(T,this),e)}},34156:(e,t,n)=>{"use strict";n.d(t,{P:()=>C});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(75687),p=n(51640),f=n(45361),g=n(4401),m=n(17102),y=n(11173);function v(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,b()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function x(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function A(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var S=new WeakSet,C=function(e){function t(){var e;(0,i.A)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==a[1]?a[1]:"all",!this.resultSet[t]){e.next=21;break}if(this.resultSet[t].eventListenerEnabled){e.next=4;break}return e.abrupt("return",Promise.resolve());case 4:if(!(r=this.layerApi.getGeoviewLayerHybrid(t))||!(r instanceof p.qt||r instanceof f.Z)){e.next=18;break}if(y.M.isStateQueryable(r,t)){e.next=8;break}return e.abrupt("return",Promise.resolve());case 8:return this.resultSet[t].queryStatus="processing",A(S,this,E).call(this,this.resultSet[t]),i=y.M.queryLayerFeatures(this.resultSet[t],r,n,t),e.next=13,i;case 13:o=e.sent,this.resultSet[t].features=o,this.resultSet[t].queryStatus=o?"processed":"error",e.next=20;break;case 18:this.resultSet[t].features=null,this.resultSet[t].queryStatus="error";case 20:A(S,this,E).call(this,this.resultSet[t]);case 21:return e.abrupt("return",this.resultSet);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n}(y.M);function E(e){"loaded"===e.layerStatus&&h.F.propagateFeatureInfoToStore(this.getMapId(),e)}},20146:(e,t,n)=>{"use strict";n.d(t,{I:()=>T});var r=n(96880),i=n(13718),o=n(47280),a=n(75583),s=n(96645),l=n(6620),c=n(94270),u=n(74813),d=n.n(u),h=n(33663),p=n(2358),f=n(6883),g=n(51640),m=n(45361),y=n(11173),v=n(76200);function b(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,w()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function x(e,t,n,r){var i=(0,l.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function A(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S(e,t){return e.get(C(e,t))}function C(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,k=new WeakSet,T=function(e){function t(e){var n,r,o;return(0,i.A)(this,t),n=b(this,t,[e]),A(r=n,o=k),o.add(r),function(e,t,n){A(e,t),t.set(e,n)}(n,E,[]),n.layerApi.mapViewer.onMapSingleClick((function(e,t){n.queryLayers(t.lnglat).catch((function(e){f.vF.logPromiseFailed("queryLayers in onMapSingleClick in FeatureInfoLayerSet",e)}))})),n}return(0,c.A)(t,e),(0,o.A)(t,[{key:"onRegisterLayerCheck",value:function(e,n){return x(t,"onRegisterLayerCheck",this,3)([e,n])&&y.M.isQueryableType(e)&&y.M.isSourceQueryable(e,n)}},{key:"onRegisterLayer",value:function(e,n){x(t,"onRegisterLayer",this,3)([e,n]),this.resultSet[n].eventListenerEnabled=!0,this.resultSet[n].queryStatus="processed",this.resultSet[n].features=[]}},{key:"onPropagateToStore",value:function(e,t){C(k,this,_).call(this,e,"layerName"===t?"name":"click")}},{key:"onDeleteFromStore",value:function(e){h.h.deleteFeatureInfo(this.getMapId(),e)}},{key:"queryLayers",value:(n=(0,r.A)(d().mark((function e(t){var n,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],Object.keys(this.resultSet).forEach((function(e){if(r.resultSet[e].eventListenerEnabled){var i=r.layerApi.getGeoviewLayerHybrid(e);if(i&&(i instanceof g.qt||i instanceof m.Z)){if(!y.M.isStateQueryable(i,e))return;r.resultSet[e].features=void 0,r.resultSet[e].queryStatus="processing",C(k,r,_).call(r,r.resultSet[e]);var o=y.M.queryLayerFeatures(r.resultSet[e],i,"at_long_lat",t);n.push(o),o.then((function(t){null!=t&&t.length&&r.patchMissingMetadataIfNecessary(e,t[0]),r.resultSet[e].features=t,r.resultSet[e].queryStatus=t?"processed":"error",C(k,r,_).call(r,r.resultSet[e])})).catch((function(e){f.vF.logPromiseFailed("queryLayerFeatures in queryLayers in FeatureInfoLayerSet",e)}))}else r.resultSet[e].features=null,r.resultSet[e].queryStatus="error"}})),e.next=5,Promise.allSettled(n);case 5:return C(k,this,P).call(this,{coordinate:t,resultSet:this.resultSet,eventType:"click"}),e.abrupt("return",this.resultSet);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"enableClickListener",value:function(e){var t=this;e?C(k,this,O).call(this,e,!0):Object.keys(this.resultSet).forEach((function(e){C(k,t,O).call(t,e,!0)}))}},{key:"disableClickListener",value:function(e){var t=this;e?C(k,this,O).call(this,e,!1):Object.keys(this.resultSet).forEach((function(e){C(k,t,O).call(t,e,!1)}))}},{key:"isClickListenerEnabled",value:function(e){var t,n,r=this;return e?!(null===(t=this.resultSet)||void 0===t||null===(t=t[e])||void 0===t||!t.eventListenerEnabled):(Object.keys(this.resultSet).forEach((function(e,t){0===t&&(n=r.resultSet[e].eventListenerEnabled),n!==r.resultSet[e].eventListenerEnabled&&(n=void 0)})),n)}},{key:"patchMissingMetadataIfNecessary",value:function(e,t){var n,r=this.layerApi.getLayerEntryConfig(e);r.source||(r.source={}),null!==(n=r.source)&&void 0!==n&&n.featureInfo||(r.source.featureInfo={queryable:!0});var i=r.source.featureInfo;if(!i.outfields){var o,a,s=Object.keys(t.fieldInfo);i.outfields=(0,v.createLocalizedString)(s.join(","));var l=[];s.forEach((function(e){var n;null!==(n=t.fieldInfo[e])&&void 0!==n&&n.alias&&l.push(t.fieldInfo[e].alias)}));var c=l.join(",");null!==(o=i.aliasFields)&&void 0!==o&&null!==(o=o.en)&&void 0!==o&&o.split(",").length||c.length!==s.length?null!==(a=i.aliasFields)&&void 0!==a&&null!==(a=a.en)&&void 0!==a&&a.split(",").length||(i.aliasFields=i.outfields):i.aliasFields=(0,v.createLocalizedString)(c);var u=s.map((function(e){var n;if(null!==(n=t.fieldInfo[e])&&void 0!==n&&n.dataType)return t.fieldInfo[e].dataType}));i.fieldTypes=u.join(",")}}},{key:"onQueryEnded",value:function(e){p.A.onEvent(S(E,this),e)}},{key:"offQueryEnded",value:function(e){p.A.offEvent(S(E,this),e)}}]);var n}(y.M);function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click";h.h.propagateFeatureInfoToStore(this.getMapId(),t,e).catch((function(e){f.vF.logPromiseFailed("FeatureInfoEventProcessor.propagateToStore in FeatureInfoLayerSet",e)}))}function O(e,t){this.resultSet[e].eventListenerEnabled=t,this.resultSet[e].features=[],C(k,this,_).call(this,this.resultSet[e])}function P(e){p.A.emitEvent(this,S(E,this),e)}},83907:(e,t,n)=>{"use strict";n.d(t,{E:()=>x});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(44481),u=n.n(c),d=n(6883),h=n(51640),p=n(45361),f=n(4401),g=n(17102),m=n(11173),y=n(27991);function v(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,b()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var x=function(e){function t(e){var n;return(0,r.A)(this,t),n=v(this,t,[e]),e.mapViewer.onMapPointerMove(u()((function(e,t){n.queryLayers(t.pixel)}),750).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"onRegisterLayerCheck",value:function(e,n){return w(t,"onRegisterLayerCheck",this,3)([e,n])&&m.M.isQueryableType(e)&&!(e instanceof f.GB)&&!(e instanceof g.V)&&m.M.isSourceQueryable(e,n)}},{key:"onRegisterLayer",value:function(e,n){w(t,"onRegisterLayer",this,3)([e,n]),this.resultSet[n].eventListenerEnabled=!0,this.resultSet[n].queryStatus="processed",this.resultSet[n].feature=void 0}},{key:"onPropagateToStore",value:function(e,t){}},{key:"onDeleteFromStore",value:function(e){}},{key:"queryLayers",value:function(e){var t=this;Object.keys(this.resultSet).forEach((function(n){if(t.resultSet[n].eventListenerEnabled){var r=t.layerApi.getGeoviewLayerHybrid(n);if(r&&(r instanceof h.qt||r instanceof p.Z)){if(!m.M.isStateQueryable(r,n))return;t.resultSet[n].feature=void 0,t.resultSet[n].queryStatus="init",y.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature),m.M.queryLayerFeatures(t.resultSet[n],r,"at_pixel",e).then((function(e){if(null===e)t.resultSet[n].queryStatus="error",t.resultSet[n].feature=null;else{if(null!=e&&e.length){var r=e[0].nameField||Object.entries(e[0].fieldInfo)[0],i=e[0].fieldInfo[r];t.resultSet[n].feature={featureIcon:e[0].featureIcon,fieldInfo:i,geoviewLayerType:e[0].geoviewLayerType,nameField:r}}else t.resultSet[n].feature=void 0;t.resultSet[n].queryStatus="processed"}y.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature)})).catch((function(e){d.vF.logPromiseFailed("queryLayerFeatures in queryLayers in hoverFeatureInfoLayerSet",e)}))}else t.resultSet[n].feature=null,t.resultSet[n].queryStatus="error",y.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature)}}))}},{key:"enableHoverListener",value:function(e){var t=this;e?this.resultSet[e].eventListenerEnabled=!0:Object.keys(this.resultSet).forEach((function(e){t.resultSet[e].eventListenerEnabled=!0}))}},{key:"disableHoverListener",value:function(e){var t=this;e?this.resultSet[e].eventListenerEnabled=!1:Object.keys(this.resultSet).forEach((function(e){t.resultSet[e].eventListenerEnabled=!1}))}},{key:"isHoverListenerEnabled",value:function(e){var t,n,r=this;return e?!(null===(t=this.resultSet)||void 0===t||null===(t=t[e])||void 0===t||!t.eventListenerEnabled):(Object.keys(this.resultSet).forEach((function(e,t){0===t&&(n=r.resultSet[e].eventListenerEnabled),n!==r.resultSet[e].eventListenerEnabled&&(n=void 0)})),n)}}])}(m.M)},60543:(e,t,n)=>{"use strict";n.d(t,{C:()=>x});var r=n(13718),i=n(47280),o=n(75583),a=n(96645),s=n(6620),l=n(94270),c=n(59155),u=n(6883),d=n(11173),h=n(51640),p=n(45361);function f(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,g()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e,t,n,r){var i=(0,s.A)((0,a.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var b=new WeakMap,w=new WeakSet,x=function(e){function t(e){var n,i,o;return(0,r.A)(this,t),n=f(this,t,[e]),y(i=n,o=w),o.add(i),function(e,t,n){y(e,t),t.set(e,n)}(n,b,void 0),function(e,t,n){e.set(v(e,t),n)}(b,n,v(w,n,E).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"onRegisterLayerConfigCheck",value:function(e){return!0}},{key:"onRegisterLayerCheck",value:function(e,t){return!0}},{key:"onRegisterLayerConfig",value:function(e){m(t,"onRegisterLayerConfig",this,3)([e]),this.resultSet[e.layerPath].legendQueryStatus="init",v(w,this,S).call(this,e.layerPath,!1)}},{key:"onRegisterLayer",value:function(e,n){var r,i;m(t,"onRegisterLayer",this,3)([e,n]),(e instanceof h.qt||e instanceof p.Z)&&e.onLayerStyleChanged((i=this,(r=b).get(v(r,i))))}},{key:"onProcessLayerStatusChanged",value:function(e,n){m(t,"onProcessLayerStatusChanged",this,3)([e,n]),v(w,this,S).call(this,e.layerPath,!1)}},{key:"onPropagateToStore",value:function(e,t){v(w,this,A).call(this,e)}},{key:"onDeleteFromStore",value:function(e){c.K.deleteLayerFromLegendLayers(this.getMapId(),e)}}])}(d.M);function A(e){c.K.propagateLegendToStore(this.getMapId(),e)}function S(e,t){var n=this,r=this.layerApi.getGeoviewLayerHybrid(e),i=null==r?void 0:r.getLayerConfig(e);if(r&&i&&(r instanceof h.qt||r instanceof p.Z)&&"querying"!==this.resultSet[e].legendQueryStatus&&(v(w,this,C).call(this,i)||t)){this.resultSet[e].legendQueryStatus="querying",v(w,this,A).call(this,this.resultSet[e]);var o=r.queryLegend(e);null==o||o.then((function(t){t&&(n.resultSet[e].legendQueryStatus="queried",n.resultSet[e].data=t,v(w,n,A).call(n,n.resultSet[e]),n.onLayerSetUpdatedProcess(e))})).catch((function(e){u.vF.logPromiseFailed("legendPromise in #checkQueryLegend in LegendsLayerSet",e)}))}}function C(e){return!(null==e||!e.isGreaterThanOrEqualTo("processed"))&&"init"===this.resultSet[e.layerPath].legendQueryStatus}function E(e,t){v(w,this,S).call(this,t.layerPath,!0)}},78861:(e,t,n)=>{"use strict";n.d(t,{A:()=>jt});var r=n(96880),i=n(29067),o=n(13718),a=n(47280),s=n(42432),l=n(74813),c=n.n(l),u=n(88752),d=n(69341),h=n(97446),p=n(47031),f=n(33069),g=n(15877),m=n(37013),y=n(46850),v=n(96997),b=n(34775),w=n(27991),x=n(26323),A=n(76200),S=n(6883),C=n(51640),E=n(2265),k=n(85849),T=n(44894),_=n(4401),O=n(73611),P=n(42942),I=n(34119),M=n(65372),L=n(66582),R=n(4078),j=n(93555),F=n(92187),D=n(41506),N=n(83907),B=n(34156),z=n(60543),V=n(20146),$=n(46363),G=n(35415),U=n(2358),W=n(68705),q=n(9145),H=n(54497),Y=n(50570),K=n(42930),X=n(45361),Z=n(96734),J=n(57366),Q=n(75583),ee=n(96645),te=n(6620),ne=n(94270),re=n(39684),ie=n(34946),oe=n(23853),ae=n(16775),se=n(58748),le=n(77265);function ce(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,ue()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ue=function(){return!!e})()}function de(e,t,n,r){var i=(0,te.A)((0,ee.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function he(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function pe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var fe=new WeakSet,ge=function(e){function t(e,n,r){var i;(0,o.A)(this,t),he(i=ce(this,t,[e,n,r]),fe);var a={source:n};return le.z.initOptionsWithInitialSettings(a,r),i.olLayer=new re.A(a),i}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return de(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return de(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return de(t,"getLayerConfig",this,3)([])}},{key:"getLegend",value:(n=(0,r.A)(c().mark((function e(){var t,n,r,i,o,a,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.getLayerConfig(),e.prev=1,e.next=4,pe(fe,this,me).call(this,t);case 4:if(n=e.sent){e.next=8;break}return r={type:C.y6.IMAGE_STATIC,legend:null},e.abrupt("return",r);case 8:return e.next=10,(0,se.yt)(n);case 10:if(!(i=e.sent)){e.next=19;break}return(o=document.createElement("canvas")).width=i.width,o.height=i.height,o.getContext("2d").drawImage(i,0,0),a={type:C.y6.IMAGE_STATIC,legend:o},e.abrupt("return",a);case 19:return s={type:C.y6.IMAGE_STATIC,legend:null},e.abrupt("return",s);case 23:return e.prev=23,e.t0=e.catch(1),S.vF.logError("Error getting legend for ".concat(t.layerPath),e.t0),e.abrupt("return",null);case 27:case"end":return e.stop()}}),e,this,[[1,23]])}))),function(){return n.apply(this,arguments)})},{key:"getBounds",value:function(e){var t,n=this.getOLSource().getProjection()||void 0,r=null===(t=this.getOLSource())||void 0===t?void 0:t.getImageExtent();return r&&(r=this.getMapViewer().convertExtentFromProjToMapProj(r,n)),r}}]);var n}(le.z);function me(e){var t=this;return new Promise((function(n){var r=(0,A.getLocalizedValue)(e.source.dataAccessPath,ae.K.getDisplayLanguage(t.getMapId()));r?(r=r.toLowerCase().startsWith("http:")?"https".concat(r.slice(4)):r,ie.A.get(r,{responseType:"blob",withCredentials:!1}).then((function(e){var t;n((t=(0,oe.KX)(e.data),new Promise((function(e){var n=new FileReader;n.onloadend=function(){return e(n.result)},n.onerror=function(){return e(null)},n.readAsDataURL(t)}))))})).catch((function(){return n(null)}))):n(null)}))}var ye=n(17102),ve=n(90932);function be(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,we()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function we(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(we=function(){return!!e})()}var xe=function(e){function t(){return(0,o.A)(this,t),be(this,t,arguments)}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(e=t,n="getOLLayer",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}}])}(X.Z),Ae=n(79760);function Se(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Ce()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ce=function(){return!!e})()}function Ee(e,t,n,r){var i=(0,te.A)((0,ee.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var ke=function(e){function t(e,n,r){var i;(0,o.A)(this,t),i=Se(this,t,[e,n,r]);var a={source:n};return xe.initOptionsWithInitialSettings(a,r),i.olLayer=new ve.A(a),i}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return Ee(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return Ee(t,"getOLSource",this,3)([])}},{key:"getLayerConfig",value:function(){return Ee(t,"getLayerConfig",this,3)([])}},{key:"getFieldType",value:function(e){return(0,Ae.Vk)(this.getLayerConfig(),e,ae.K.getDisplayLanguage(this.getMapId()))}},{key:"getBounds",value:function(e){var t,n,r=this.getOLLayer(),i=(null===(t=this.getOLSource())||void 0===t?void 0:t.getProjection())||void 0,o=null==r||null===(n=r.getSource())||void 0===n||null===(n=n.getTileGrid())||void 0===n?void 0:n.getExtent();return o&&(o=this.getMapViewer().convertExtentFromProjToMapProj(o,i),o=(0,G.validateExtent)(o,this.getMapViewer().getProjection().getCode())),o}}])}(xe),Te=n(8637);function _e(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Oe()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Oe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oe=function(){return!!e})()}var Pe=function(e){function t(e,n,r){return(0,o.A)(this,t),_e(this,t,[e,n,r])}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(e=t,n="getLayerConfig",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}},{key:"getFieldType",value:function(e){return(0,Ae.UB)(this.getLayerConfig(),e)}},{key:"getFieldDomain",value:function(e){return(0,Ae.k7)(this.getLayerConfig(),e)}}])}(Te.p);function Ie(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Me()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Me=function(){return!!e})()}var Le=function(e){function t(e,n,r){return(0,o.A)(this,t),Ie(this,t,[e,n,r])}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(e=t,n="getLayerConfig",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}}])}(Te.p);function Re(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,je()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(je=function(){return!!e})()}var Fe=function(e){function t(e,n,r){return(0,o.A)(this,t),Re(this,t,[e,n,r])}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(e=t,n="getLayerConfig",r=this,i=3,o=(0,te.A)((0,ee.A)(1&i?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([]);var e,n,r,i,o}},{key:"getFieldType",value:function(e){var t=this.getLayerConfig().getLayerMetadata()[e].type.split(":").slice(-1)[0];return"date"===t?"date":["int","number"].includes(t)?"number":"string"}}])}(Te.p),De=n(77796);function Ne(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Be()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Be=function(){return!!e})()}function ze(e,t,n,r){var i=(0,te.A)((0,ee.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}var Ve=function(e){function t(){return(0,o.A)(this,t),Ne(this,t,arguments)}return(0,ne.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return ze(t,"getOLLayer",this,3)([])}},{key:"getOLSource",value:function(){return ze(t,"getOLSource",this,3)([])}},{key:"getBounds",value:function(e){var t,n=this.getOLSource().getProjection()||void 0,r=null===(t=this.getOLSource().getTileGrid())||void 0===t?void 0:t.getExtent();return r&&(r=this.getMapViewer().convertExtentFromProjToMapProj(r,n),r=(0,G.validateExtent)(r,this.getMapViewer().getProjection().getCode())),r}}])}(X.Z);function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e,t,n){return t=(0,ee.A)(t),(0,Q.A)(e,Ue()?Reflect.construct(t,n||[],(0,ee.A)(e).constructor):t.apply(e,n))}function Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ue=function(){return!!e})()}var We=function(e){function t(e,n,r){var i;(0,o.A)(this,t),i=Ge(this,t,[e,n,r]);var a={source:n};return Ve.initOptionsWithInitialSettings(a,r),i.olLayer=new De.A(function(e){for(var t=1;t0;return this.getGeoviewLayers().forEach((function(t){t.allLayerStatusAreGreaterThanOrEqualTo(e)||(null==n||n(t),r=!1)})),[r,Object.keys(bt(Ct,this)).length]}},{key:"checkFeatureInfoLayerResultSetsReady",value:function(e){var t=this,n=!0;return this.getLayerEntryConfigs().forEach((function(r){var i;if(r instanceof K.d&&null!==(i=r.source)&&void 0!==i&&null!==(i=i.featureInfo)&&void 0!==i&&i.queryable){var o=t.featureInfoLayerSet.resultSet;Object.keys(o).includes(r.layerPath)||(null==e||e(r),n=!1)}})),n}},{key:"removeAllGeoviewLayers",value:function(){var e=this;this.getGeoviewLayersHybrid().forEach((function(t){e.removeLayerUsingPath(t.getGeoviewLayerId())}))}},{key:"removeLayerUsingPath",value:function(e){var t,n,r=this,i=e.split("/"),o=bt(St,this)[e]?null===(t=bt(St,this)[e].parentLayerConfig)||void 0===t?void 0:t.listOfLayerEntryConfig.findIndex((function(t){return t===bt(St,r)[e]})):void 0,a=null===(n=bt(St,this)[e])||void 0===n||null===(n=n.parentLayerConfig)||void 0===n?void 0:n.listOfLayerEntryConfig;if(this.getLayerEntryConfigIds().forEach((function(t){t.startsWith(e)&&(r.getOLLayer(t)&&r.mapViewer.map.removeLayer(r.getOLLayer(t)),r.unregisterLayerConfig(r.getLayerEntryConfig(t)),delete bt(St,r)[e])})),a&&a.splice(o,1),bt(Ct,this)[i[0]]){var s=bt(Ct,this)[i[0]];if(1===i.length||2===i.length&&1===s.listOfLayerEntryConfig.length){var l;null===(l=s.olRootLayer)||void 0===l||l.dispose(),delete bt(Ct,this)[i[0]];var c=this.mapViewer.mapFeaturesConfig;c.map.listOfGeoviewLayerConfig&&(c.map.listOfGeoviewLayerConfig=c.map.listOfGeoviewLayerConfig.filter((function(t){return t.geoviewLayerId!==e})))}else if(2===i.length){var u=s.listOfLayerEntryConfig.filter((function(e){return e.layerId!==i[1]}));s.listOfLayerEntryConfig=u}else for(var d=s.listOfLayerEntryConfig.find((function(e){return e.layerId===i[1]})),h=function(e){if(e===i.length-1&&d){var t=d.listOfLayerEntryConfig.filter((function(t){return t.layerId!==i[e]}));s.listOfLayerEntryConfig=t}else d&&(d=d.listOfLayerEntryConfig.find((function(t){return t.layerId===i[e]})))},p=1;p0&&void 0!==arguments[0]?arguments[0]:Object.keys(bt(St,this)),n=[];return t.forEach((function(t){Object.keys(bt(St,e)).filter((function(e){return e.startsWith(t)})).forEach((function(t){var r=gt.K.getLayerBounds(e.getMapId(),t);!n.length&&r?n=r:r&&(n=(0,G.getMinOrMaxExtents)(n,r))}))})),n}},{key:"refreshLayers",value:function(){var e=this;this.getGeoviewLayers().forEach((function(t){t.olRootLayer&&e.refreshBaseLayer(t.olRootLayer)}))}},{key:"refreshBaseLayer",value:function(e){var t=this,n=e.get("layers");n?n.forEach((function(e){t.refreshBaseLayer(e)})):e.get("source").refresh()}},{key:"setItemVisibility",value:function(e,t,n){var r,i,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.getGeoviewLayerHybrid(e);if(n&&!w.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),e)&&w.d.setOrToggleMapLayerVisibility(this.getMapId(),e,!0),a instanceof C.qt||a instanceof X.Z)if("classBreaks"===(null==a||null===(r=a.getStyle(e))||void 0===r||null===(r=r[t.geometryType])||void 0===r?void 0:r.styleType)){var s=a.getStyle(e)[t.geometryType],l=s.classBreakStyleInfo.find((function(e){return e.label===t.name}));l?l.visible=n:s.defaultVisible=n}else if("uniqueValue"===(null==a||null===(i=a.getStyle(e))||void 0===i||null===(i=i[t.geometryType])||void 0===i?void 0:i.styleType)){var c=a.getStyle(e)[t.geometryType],u=c.uniqueValueStyleInfo.find((function(e){return e.label===t.name}));u?u.visible=n:c.defaultVisible=n}o&>.K.setItemVisibility(this.getMapId(),t,n),w.d.applyLayerFilters(this.getMapId(),e),xt(Rt,this,nn).call(this,{layerPath:e,itemName:t.name,visibility:n})}},{key:"setAllLayersVisibility",value:function(e){var t=this;this.getLayerEntryConfigIds().forEach((function(n){t.setOrToggleLayerVisibility(n,e)}))}},{key:"setOrToggleLayerVisibility",value:function(e,t){var n=this,r=w.d.getMapOrderedLayerInfo(this.getMapId()),i=w.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),e),o=void 0!==t?t:!i,a=r.filter((function(t){return t.layerPath.startsWith(e)})),s=e.split("/");s.pop();var l=s.join("/"),c=r.find((function(e){return e.layerPath===l}));if(a.forEach((function(e){var t;e&&(o!==i&&(e.visible=o,null===(t=n.getGeoviewLayerHybrid(e.layerPath))||void 0===t||t.setVisible(e.visible,e.layerPath),xt(Rt,n,tn).call(n,{layerPath:e.layerPath,visibility:e.visible})))})),void 0!==c){var u,d=w.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),l);if((!i||t)&&!1===d)if(c)c.visible=!0,null===(u=this.getGeoviewLayerHybrid(l))||void 0===u||u.setVisible(!0,l),xt(Rt,this,tn).call(this,{layerPath:l,visibility:!0});r.filter((function(e){return e.layerPath.startsWith(l)&&e.layerPath!==l})).some((function(e){return!0===e.visible}))||(this.setOrToggleLayerVisibility(l,!1),xt(Rt,this,tn).call(this,{layerPath:e,visibility:!1}))}w.d.setOrderedLayerInfoWithNoOrderChangeState(this.getMapId(),r)}},{key:"setLayerName",value:function(e,t){var n=this.getGeoviewLayerHybrid(e);n?n.setLayerName(e,(0,A.createLocalizedString)(t)):S.vF.logError("Unable to find layer ".concat(e))}},{key:"redefineFeatureFields",value:function(e,t,n){var r,i=bt(St,this)[e];i?null!==(r=i.source)&&void 0!==r&&r.featureInfo&&!1!==i.source.featureInfo.queryable?i.source.featureInfo[n]=(0,A.createLocalizedString)(t):S.vF.logError("".concat(e," is not queryable")):S.vF.logError("Unable to find layer ".concat(e))}},{key:"calculateBounds",value:function(e){var t,n=this.getLayerEntryConfig(e),r=[];return n&&xt(Rt,this,Kt).call(this,n,r),r.forEach((function(e){t=(0,G.getExtentUnionMaybe)(t,e)})),t}},{key:"onLayerAdded",value:function(e){U.A.onEvent(bt(_t,this),e)}},{key:"offLayerAdded",value:function(e){U.A.offEvent(bt(_t,this),e)}},{key:"onLayerLoaded",value:function(e){U.A.onEvent(bt(Ot,this),e)}},{key:"offLayerLoaded",value:function(e){U.A.offEvent(bt(Ot,this),e)}},{key:"onLayerError",value:function(e){U.A.onEvent(bt(Pt,this),e)}},{key:"offLayerError",value:function(e){U.A.offEvent(bt(Pt,this),e)}},{key:"onLayerRemoved",value:function(e){U.A.onEvent(bt(It,this),e)}},{key:"offLayerRemoved",value:function(e){U.A.offEvent(bt(It,this),e)}},{key:"onLayerVisibilityToggled",value:function(e){U.A.onEvent(bt(Mt,this),e)}},{key:"offLayerVisibilityToggled",value:function(e){U.A.offEvent(bt(Mt,this),e)}},{key:"onLayerItemVisibilityToggled",value:function(e){U.A.onEvent(bt(Lt,this),e)}},{key:"offLayerItemVisibilityToggled",value:function(e){U.A.offEvent(bt(Lt,this),e)}}],[{key:"generateArrayOfLayerOrderInfo",value:function(e){var t=[],n=function(e,r){var i,o,a,s,l,c,u,d,h,p=r.endsWith(e.layerId)?r:"".concat(r,"/").concat(e.layerId),f={layerPath:p,visible:!1!==(null===(i=e.initialSettings)||void 0===i||null===(i=i.states)||void 0===i?void 0:i.visible),queryable:void 0===(null===(o=e.source)||void 0===o||null===(o=o.featureInfo)||void 0===o?void 0:o.queryable)||(null===(a=e.source)||void 0===a||null===(a=a.featureInfo)||void 0===a?void 0:a.queryable),hoverable:void 0===(null===(s=e.initialSettings)||void 0===s||null===(s=s.states)||void 0===s?void 0:s.hoverable)||(null===(l=e.initialSettings)||void 0===l||null===(l=l.states)||void 0===l?void 0:l.hoverable),legendCollapsed:void 0!==(null===(c=e.initialSettings)||void 0===c||null===(c=c.states)||void 0===c?void 0:c.legendCollapsed)&&(null===(u=e.initialSettings)||void 0===u||null===(u=u.states)||void 0===u?void 0:u.legendCollapsed)};(t.push(f),null!==(d=e.listOfLayerEntryConfig)&&void 0!==d&&d.length)&&(null===(h=e.listOfLayerEntryConfig)||void 0===h||h.forEach((function(e){n(e,p)})))};if(e.geoviewLayerId)if(e.listOfLayerEntryConfig.length>1){var r,i,o,a="".concat(e.geoviewLayerId,"/").concat(e.geoviewLayerId),s={layerPath:a,legendCollapsed:void 0!==(null===(r=e.initialSettings)||void 0===r||null===(r=r.states)||void 0===r?void 0:r.legendCollapsed)&&(null===(i=e.initialSettings)||void 0===i||null===(i=i.states)||void 0===i?void 0:i.legendCollapsed),visible:!1!==(null===(o=e.initialSettings)||void 0===o||null===(o=o.states)||void 0===o?void 0:o.visible)};t.push(s),e.listOfLayerEntryConfig.forEach((function(e){n(e,a)}))}else{var l=e.listOfLayerEntryConfig[0];n(l,l.layerPath)}else n(e,e.layerPath);return t}}]);var t}();function Ft(e){var t=this;return e&&e.length>0?e.filter((function(n,r){for(var i=0;ii)return xt(Rt,t,Dt).call(t,n),!1;return!0})):[]}function Dt(e){W.FHQ.maps[this.getMapId()].notifications.showError("validation.layer.usedtwice",[e.geoviewLayerId,this.getMapId()]),S.vF.logError("Duplicate use of geoview layer identifier ".concat(e.geoviewLayerId," on map ").concat(this.getMapId()))}function Nt(e){var t,n=this;if((0,k.vM)(e)?t=new k.kx(this.getMapId(),e):(0,T.P0)(e)?t=new T.OH(this.getMapId(),e):(0,D.WW)(e)?t=new D.pf(this.getMapId(),e):(0,_.Xx)(e)?t=new _.GB(this.getMapId(),e):(0,O.IU)(e)?t=new O.zt(this.getMapId(),e):(0,P.$f)(e)?t=new P.Uw(this.getMapId(),e):(0,I.yl)(e)?t=new I.$x(this.getMapId(),e):(0,M.HO)(e)?t=new M.S6(this.getMapId(),e):(0,L.OV)(e)?t=new L.dS(this.getMapId(),e):(0,R.dr)(e)?t=new R.ke(this.getMapId(),e):(0,j.ik)(e)?t=new j.nd(this.getMapId(),e):(0,F.c9)(e)&&(t=new F.RZ(this.getMapId(),e)),t){bt(Ct,this)[t.geoviewLayerId]=t,t.getAllLayerEntryConfigs().forEach((function(e){S.vF.logDebug("Layer entry config being registered for ".concat(e.layerPath," on map ").concat(n.getMapId()),e),n.registerLayerConfigInit(e),xt(Rt,n,Xt).call(n,e)})),t.onLayerEntryProcessed((function(e,t){S.vF.logDebug("Layer entry config processed for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config)})),t.onLayerRequesting((function(e,t){if(S.vF.logDebug("Requesting layer for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config),tt.LAYERS_HYBRID_MODE){var r=xt(Rt,n,Bt).call(n,n.getMapId(),e,t.source,t.config,t.extraConfig);if(r)return r.getOLLayer()}})),t.onLayerCreation((function(e,t){S.vF.logDebug("OpenLayer created for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config),bt(Et,n)[t.config.layerPath]=t.layer,tt.LAYERS_HYBRID_MODE&&t.layer instanceof m.A&&t.config instanceof mt.x&&xt(Rt,n,zt).call(n,n.getMapId(),t.layer,t.config)}));var r=new Promise((function(e,r){t.createGeoViewLayers().then((function(){t.onIndividualLayerLoaded((function(e,t){S.vF.logDebug("".concat(t.layerPath," loaded on map ").concat(n.getMapId())),xt(Rt,n,Jt).call(n,{layer:e,layerPath:t.layerPath})})),xt(Rt,n,Vt).call(n,t),e(),xt(Rt,n,Zt).call(n,{layer:t})})).catch((function(e){r(e)}))}));return{layer:t,promiseLayer:r}}}function Bt(e,t,n,r,i){var o,a,s,l,c;if(tt.LAYERS_HYBRID_MODE&&(o=t.metadata,a=t.getLayerMetadata(r.layerPath),s=t.getTemporalDimension(r.layerPath),l=t.getStyle(r.layerPath),r instanceof K.d&&(o&&r.setServiceMetadata(o),a&&r.setLayerMetadata(a))),n instanceof u.A&&r instanceof it.q?c=new Z.Y(e,n,r):n instanceof u.A&&r instanceof lt.Q?c=new J.o(e,n,r):n instanceof f.A&&r instanceof ct.V?c=new ge(e,n,r):n instanceof d.A&&r instanceof st.Q?c=new ye.V(e,n,r,i.layerCapabilities):n instanceof g.A&&r instanceof rt.h?c=new Pe(e,n,r):n instanceof g.A&&r instanceof ot.d?c=new Le(e,n,r):n instanceof g.A&&r instanceof at.j?c=new Fe(e,n,r):n instanceof g.A&&r instanceof ht.q?c=new Ye(e,n,r):n instanceof g.A&&r instanceof pt.A?c=new Ze(e,n,r):n instanceof h.A&&r instanceof ut.E?c=new We(e,n,r):n instanceof p.A&&r instanceof dt.m&&(c=new ke(e,n,r)),c)return bt(kt,this)[r.layerPath]=c,s&&c.setTemporalDimension(s),l&&c.setStyle(r.layerPath,l),c.init(),c;S.vF.logError("Unsupported GVLayer for ".concat(r.layerPath))}function zt(e,t,n){var r=new nt(e,t,n);return bt(kt,this)[n.layerPath]=r,r}function Vt(e){var t=this;0!==e.layerLoadError.length&&e.layerLoadError.forEach((function(e){var n=e.layer,r=e.loggerMessage;S.vF.logError(r),W.FHQ.maps[t.getMapId()].notifications.showError("validation.layer.loadfailed",[n,t.getMapId()]),xt(Rt,t,Qt).call(t,{layerPath:n,errorMessage:r})})),e.allLayerStatusAreGreaterThanOrEqualTo("error")||this.mapViewer.map.addLayer(e.olRootLayer),S.vF.logInfo("GeoView Layer ".concat(e.geoviewLayerId," added to map ").concat(this.getMapId()),e),w.d.setLayerZIndices(this.getMapId())}function $t(e){if(-1===w.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),e.layerPath)){var t=e.layerPath.split(".")[1];if(-1!==w.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),t))w.d.replaceOrderedLayerInfo(this.getMapId(),e,t);else if(e.parentLayerConfig){var n=e.layerPath.split("/");n.pop();var r=n.join("/"),i=w.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),r),o=w.d.getMapOrderedLayerInfo(this.getMapId()).filter((function(e){return e.layerPath.startsWith(r)})).length;-1!==i?w.d.addOrderedLayerInfo(this.getMapId(),e,i+o):w.d.addOrderedLayerInfo(this.getMapId(),e.parentLayerConfig)}else w.d.addOrderedLayerInfo(this.getMapId(),e)}}function Gt(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,r.A)(c().mark((function e(t){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,A.whenThisThen)((function(){return t.isGreaterThanOrEqualTo("processed")}),rn._);case 3:((n=this.getGeoviewLayerHybrid(t.layerPath))instanceof C.qt||n instanceof X.Z)&&n.getIsTimeAware()&&q.t.checkInitTimeSliderLayerAndApplyFilters(this.getMapId(),t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})))).apply(this,arguments)}function Wt(e){w.d.removeOrderedLayerInfo(this.getMapId(),e.layerPath)}function qt(e){q.t.removeTimeSliderLayer(this.getMapId(),e.layerPath)}function Ht(e){H.U.removeGeochartChart(this.getMapId(),e.layerPath)}function Yt(e){Y.Z.removeLayerPath(this.getMapId(),e.layerPath)}function Kt(e,t){var n=this;if((0,E.KD)(e))e.listOfLayerEntryConfig.forEach((function(e){xt(Rt,n,Kt).call(n,e,t)}));else{var r=this.getGeoviewLayerHybrid(e.layerPath).getBounds(e.layerPath);r&&t.push(r)}}function Xt(e){e.layerFilter&&w.d.addInitialFilter(this.getMapId(),e.layerPath,e.layerFilter)}function Zt(e){U.A.emitEvent(this,bt(_t,this),e)}function Jt(e){U.A.emitEvent(this,bt(Ot,this),e)}function Qt(e){U.A.emitEvent(this,bt(Pt,this),e)}function en(e){U.A.emitEvent(this,bt(It,this),e)}function tn(e){U.A.emitEvent(this,bt(Mt,this),e)}function nn(e){U.A.emitEvent(this,bt(Lt,this),e)}tt=jt;var rn={_:2e4};(0,s.A)(jt,"LAYERS_HYBRID_MODE",!1)},46850:(e,t,n)=>{"use strict";n.d(t,{h:()=>V});var r=n(96880),i=n(13718),o=n(47280),a=n(74813),s=n.n(a),l=n(42432),c=n(34946),u=n(2265),d=n(51640),h=n(76200),p=n(6883),f=n(17921),g=n(30762),m=n(74388),y=n(7358),v=n(12989),b=n(58420),w=n(6552),x=n(73095),A=n(3248),S=n(58118),C=n(28126);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t0){var o=r.layers[0];if(o){var a=o.layerType,s=o.layerEntries,l=o.name,c=o.url,E=o.id,k=o.serverType,T=o.isTimeAware,_=c.indexOf("FeatureServer")>-1;if(a!==d.y6.ESRI_DYNAMIC||_)if(_){var O=c.split("/").slice(0,-1).join("/"),P=c.split("/").pop(),I={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(O),geoviewLayerType:d.y6.ESRI_FEATURE,isTimeAware:T,listOfLayerEntryConfig:[]};I.listOfLayerEntryConfig=[new v.h({geoviewLayerConfig:I,schemaTag:d.y6.ESRI_FEATURE,entryType:u.hJ.VECTOR,layerId:P,source:{format:"EsriJSON",dataAccessPath:(0,h.createLocalizedString)(O)}})],n.push(I)}else if(a===d.y6.ESRI_FEATURE){var M={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.ESRI_FEATURE,isTimeAware:T,listOfLayerEntryConfig:[]};M.listOfLayerEntryConfig=s.map((function(e){return new v.h({geoviewLayerConfig:M,schemaTag:d.y6.ESRI_FEATURE,entryType:u.hJ.VECTOR,layerId:"".concat(e.index),source:{format:"EsriJSON",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(M)}else if(a===d.y6.WMS){var L={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.WMS,isTimeAware:T,listOfLayerEntryConfig:[]};L.listOfLayerEntryConfig=s.map((function(e){return new A.Q({geoviewLayerConfig:L,schemaTag:d.y6.WMS,entryType:u.hJ.RASTER_IMAGE,layerId:"".concat(e.id),source:{dataAccessPath:(0,h.createLocalizedString)(c),serverType:void 0===k?"mapserver":k}})})),n.push(L)}else if(a===d.y6.WFS){var R={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.WFS,isTimeAware:T,listOfLayerEntryConfig:[]};R.listOfLayerEntryConfig=s.map((function(e){return new f.q({geoviewLayerConfig:R,schemaTag:d.y6.WFS,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"WFS",strategy:"all",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(R)}else if(a===d.y6.OGC_FEATURE){var j={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.OGC_FEATURE,isTimeAware:T,listOfLayerEntryConfig:[]};j.listOfLayerEntryConfig=s.map((function(e){return new g.j({geoviewLayerConfig:j,schemaTag:d.y6.OGC_FEATURE,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"featureAPI",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(j)}else if(a===d.y6.GEOJSON){var F={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.GEOJSON,isTimeAware:T,listOfLayerEntryConfig:[]};F.listOfLayerEntryConfig=s.map((function(e){return new y.d({geoviewLayerConfig:F,schemaTag:d.y6.GEOJSON,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"GeoJSON",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(F)}else if(a===d.y6.XYZ_TILES){var D={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.XYZ_TILES,isTimeAware:T,listOfLayerEntryConfig:[]};D.listOfLayerEntryConfig=s.map((function(e){return new w.m({geoviewLayerConfig:D,schemaTag:d.y6.XYZ_TILES,entryType:u.hJ.RASTER_TILE,layerId:"".concat(e.id),source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(D)}else if(a===d.y6.VECTOR_TILES){var N={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.VECTOR_TILES,isTimeAware:T,listOfLayerEntryConfig:[]};N.listOfLayerEntryConfig=s.map((function(e){return new m.E({schemaTag:d.y6.VECTOR_TILES,entryType:u.hJ.RASTER_TILE,layerId:"".concat(e.id),tileGrid:e.tileGrid,source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(N)}else if(a===d.y6.GEOPACKAGE){var B={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),geoviewLayerType:d.y6.GEOPACKAGE,isTimeAware:T,listOfLayerEntryConfig:[]};B.listOfLayerEntryConfig=s.map((function(e){return new b.X({geoviewLayerConfig:B,schemaTag:d.y6.GEOPACKAGE,entryType:u.hJ.VECTOR,layerId:"".concat(e.id),source:{format:"GeoPackage",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(B)}else if(a===d.y6.IMAGE_STATIC){var z={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.IMAGE_STATIC,isTimeAware:T,listOfLayerEntryConfig:[]};z.listOfLayerEntryConfig=s.map((function(e){return new x.V({geoviewLayerConfig:z,schemaTag:d.y6.IMAGE_STATIC,entryType:u.hJ.RASTER_IMAGE,layerId:"".concat(e.id),source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(z)}else if(a===d.y6.ESRI_IMAGE){var V={geoviewLayerId:"".concat(E),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.ESRI_IMAGE,isTimeAware:T,listOfLayerEntryConfig:[]};V.listOfLayerEntryConfig=[new S.Q({geoviewLayerConfig:V,schemaTag:d.y6.ESRI_IMAGE,entryType:u.hJ.RASTER_IMAGE,layerId:c.split("/").slice(-2,-1)[0]})],n.push(V)}else p.vF.logWarning("Layer type ".concat(a," not supported"));else{var $={geoviewLayerId:"".concat(E.split(".")[1]),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(c),geoviewLayerType:d.y6.ESRI_DYNAMIC,isTimeAware:T,listOfLayerEntryConfig:[]};$.listOfLayerEntryConfig=s.map((function(e){return new C.q({geoviewLayerConfig:$,schemaTag:d.y6.ESRI_DYNAMIC,entryType:u.hJ.RASTER_IMAGE,layerId:"".concat(e.index),source:{dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push($)}}}},i=0;i{"use strict";n.d(t,{H:()=>K});var r=n(13718),i=n(47280),o=n(42432),a=n(45282),s=n(67287),l=n(15877),c=n(95005),u=n(3451),d=n(58952),h=n(92368),p=n(98246),f=n(59119),g=n(43910),m=n(67103),y=n(87620),v=n(64383),b=n(32332),w=n(61170),x=n(6883),A=n(58373),S=n(8058),C=n(35415),E=n(27991),k=n(68705);function T(e,t,n){_(e,t),t.set(e,n)}function _(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function O(e,t){return e.get(I(e,t))}function P(e,t,n){return e.set(I(e,t),n),n}function I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var M=new WeakMap,L=new WeakMap,R=new WeakSet,j=function(){return(0,i.A)((function e(t,n){var i,a;(0,r.A)(this,e),_(i=this,a=R),a.add(i),T(this,M,void 0),(0,o.A)(this,"mapProjection",void 0),(0,o.A)(this,"mapId",void 0),T(this,L,[]),this.mapProjection=t.map.getView().getProjection().getCode(),this.mapId=t.mapId,P(M,this,n),Object.keys(E.d.getPointMarkers(this.mapId)).length&&this.updatePointMarkers(E.d.getPointMarkers(this.mapId))}),[{key:"updatePointMarkers",value:function(e){var t=this;I(R,this,F).call(this),Object.keys(e).forEach((function(n){e[n].forEach((function(e){var r=new u.Ay({image:new A.A({anchor:[.5,1],src:"".concat((0,k.Mhq)(),"/img/marker-icon36.png"),color:e.color||"green",opacity:e.opacity||1,scale:.25})}),i=new p.A({geometry:new v.A(S.M.transformPoints([e.coordinate],"EPSG:".concat(e.projectionCode||4326),t.mapProjection)[0])}),o="".concat(n,"-").concat(e.id);i.setId(o),i.setStyle(r),O(M,t).highlighSource.addFeature(i),O(L,t).push(o)}))}))}},{key:"addPointMarkers",value:function(e,t){E.d.addPointMarkers(this.mapId,e,t)}},{key:"removePointMarkersOrGroup",value:function(e,t){E.d.removePointMarkersOrGroup(this.mapId,e,t)}},{key:"zoomToPointMarkerGroup",value:function(e){var t=E.d.getPointMarkers(this.mapId)[e];if(t){var n=t.map((function(e){return e.id}));n.length?this.zoomToPointMarkers(e,n):x.vF.logError("Point marker group ".concat(e," has no markers."))}else x.vF.logError("Point marker group ".concat(e," does not exist."))}},{key:"zoomToPointMarkers",value:function(e,t){var n=t.map((function(t){return"".concat(e,"-").concat(t)})),r=this.getExtentFromMarkerIds(n);r?E.d.zoomToExtent(this.mapId,r).catch((function(e){x.vF.logPromiseFailed("zoomToExtent in zoomToPointMarkersOrGroup in MapEventProcessor",e)})):x.vF.logError("Point marker group ".concat(e," has no markers or does not exist, or point marker ids ").concat(t," are not correct."))}},{key:"getExtentFromMarkerIds",value:function(e){var t=this;if(e.length){var n=e.map((function(e){var n=O(M,t).highlighSource.getFeatureById(e);if(n){var r=(null==n?void 0:n.getGeometry()).getCoordinates();return[r[0],r[1],r[0],r[1]]}})).filter((function(e){return e}));if(1===n.length)return n[0];if(n.length){for(var r=n[0],i=1;i=0;n--)(z(q,this)[n]===e||z(q,this)[n].startsWith("".concat(e,"-")))&&(this.highlighSource.getFeatureById(z(q,this)[n])&&this.highlighSource.removeFeature(this.highlighSource.getFeatureById(z(q,this)[n])),z(q,this).splice(n,1))}},{key:"highlightFeature",value:function(e){var t=e.geometry.getGeometry();if(t instanceof f.Ay){var n=e.geometry.getGeometry(),r=new p.A(n),i=(0,a.v6)(e.geometry);V(Y,this,X).call(this,r,i)}else if(t instanceof g.A||t instanceof m.A){var o,s=null===(o=e.geometry)||void 0===o?void 0:o.getGeometry(),l=new p.A(s),c=(0,a.v6)(e.geometry);V(Y,this,X).call(this,l,c)}else if(t instanceof y.A)for(var x=e.featureIcon,A=x.height,S=x.width,C=Math.min(A,S)/2-2<7?7:Math.min(A,S)/2-2,E=t.getCoordinates(),k=(0,a.v6)(e.geometry),T=0;T1&&void 0!==arguments[1]&&arguments[1];this.highlighSource.getFeatureById("geoLocatorFeature")&&(this.highlighSource.removeFeature(this.highlighSource.getFeatureById("geoLocatorFeature")),clearTimeout(z(H,this)));var r=(0,f.VY)(e),i=new p.A(r),o=z(W,this);i.setStyle(o),i.setId("geoLocatorFeature"),this.highlighSource.addFeature(i),n||B(H,this,setTimeout((function(){return t.highlighSource.removeFeature(t.highlighSource.getFeatureById("geoLocatorFeature"))}),5e3))}},{key:"removeBBoxHighlight",value:function(){this.highlighSource.removeFeature(this.highlighSource.getFeatureById("geoLocatorFeature"))}}])}();function X(e,t){e.setStyle(z(U,this)),e.setId(t),z(q,this).push(t),this.highlighSource.addFeature(e)}},2265:(e,t,n)=>{"use strict";n.d(t,{$h:()=>g,C:()=>u,I0:()=>s,IG:()=>f,KD:()=>a,NF:()=>c,cw:()=>d,hJ:()=>i,hc:()=>h,s0:()=>p,si:()=>l,wB:()=>o});var r=n(51640),i={VECTOR:"vector",VECTOR_TILE:"vector-tile",RASTER_TILE:"raster-tile",RASTER_IMAGE:"raster-image",GROUP:"group",GEOCORE:"geoCore"},o=function(e){switch(e){case r.y6.CSV:case r.y6.GEOJSON:case r.y6.GEOPACKAGE:case r.y6.OGC_FEATURE:case r.y6.WFS:case r.y6.ESRI_FEATURE:return i.VECTOR;case r.y6.IMAGE_STATIC:case r.y6.ESRI_DYNAMIC:case r.y6.ESRI_IMAGE:case r.y6.WMS:return i.RASTER_IMAGE;case r.y6.XYZ_TILES:case r.y6.VECTOR_TILES:return i.RASTER_TILE;default:throw new Error("Unsupported layer type ".concat(e," to convert to layer entry"))}},a=function(e){return(null==e?void 0:e.entryType)===i.GROUP},s=function(e){return e.geoviewLayerType===i.GEOCORE},l=function(e){if(s(e))return{geoviewLayerId:e.geoviewLayerId,geoviewLayerName:e.geoviewLayerName,geoviewLayerType:e.geoviewLayerType};for(var t=e,n={geoviewLayerId:t.geoviewLayerId,geoviewLayerName:t.geoviewLayerName,geoviewLayerType:t.geoviewLayerType,metadataAccessPath:t.metadataAccessPath,serviceDateFormat:t.serviceDateFormat,externalDateFormat:t.externalDateFormat,initialSettings:t.initialSettings,isTimeAware:t.isTimeAware,listOfLayerEntryConfig:[]},r=0;r<((null===(i=t.listOfLayerEntryConfig)||void 0===i?void 0:i.length)||0);r++){var i;if("serialize"in t.listOfLayerEntryConfig[r]){var o=t.listOfLayerEntryConfig[r].serialize();n.listOfLayerEntryConfig.push(o)}else n.listOfLayerEntryConfig.push(t.listOfLayerEntryConfig[r])}return n},c=function(e){return"lineString"===(null==e?void 0:e.type)},u=function(e){return"filledPolygon"===(null==e?void 0:e.type)},d=function(e){return"simpleSymbol"===(null==e?void 0:e.type)},h=function(e){return"iconSymbol"===(null==e?void 0:e.type)},p=function(e){return"simple"===(null==e?void 0:e.styleType)},f=function(e){return"uniqueValue"===(null==e?void 0:e.styleType)},g=function(e){return"classBreaks"===(null==e?void 0:e.styleType)}},1220:(e,t,n)=>{"use strict";n.d(t,{F:()=>dt});var r=n(55907),i=n(96880),o=n(13718),a=n(47280),s=n(42432),l=n(44481),c=n.n(l),u=n(74813),d=n.n(u),h=n(50375),p=n(27387),f=n(86458),g=n(43852),m=n(55061),y=n(18354),v=n(78861),b=n(8058),w=n(68705),x=n(23220),A=n(95985),S=n(83609),C=n(51801),E=n(29067),k=n(54497),T=n(59155),_=n(27991),O=n(50570),P=n(9145),I=n(6883),M=n(2358);function L(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t){return e.get(j(e,t))}function j(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var F=new WeakMap,D=new WeakSet,N=function(){return(0,a.A)((function e(t){var n,r;(0,o.A)(this,e),L(n=this,r=D),r.add(n),(0,s.A)(this,"mapId",void 0),function(e,t,n){L(e,t),t.set(e,n)}(this,F,[]),this.mapId=t}),[{key:"getLayerPanelState",value:function(e){return T.K.getLayerPanelState(this.mapId,e)}},{key:"getLegendLayerInfo",value:function(e){return T.K.getLegendLayerInfo(this.mapId,e)}},{key:"getLegendCollapsedState",value:function(e){return _.d.getMapLegendCollapsedFromOrderedLayerInfo(this.mapId,e)}},{key:"getPluginState",value:function(e,t){if("geochart"===e){if(["geochartChartsConfig","layerDataArray","layerDataArrayBatchLayerPathBypass","selectedLayerPath"].includes(t))return k.U.getSingleGeochartState(this.mapId,t);I.vF.logError("".concat(t," not available from geochart"))}if("swiper"===e){if("layerPaths"===t)return O.Z.getLayerPaths(this.mapId);I.vF.logError("".concat(t," not available from swiper"))}if("time-slider"===e){if("timeSliderLayers"===t)return P.t.getTimeSliderLayers(this.mapId);I.vF.logError("".concat(t," not available from time slider"))}}},{key:"setLegendCollapsedState",value:function(e,t){_.d.setMapLegendCollapsed(this.mapId,e,t)}},{key:"setSelectedLayersTabLayer",value:function(e){T.K.setSelectedLayersTabLayer(this.mapId,e)}},{key:"reorderLayers",value:function(e,t,n){for(var r=n<0?-1:1,i=Math.abs(n),o=(0,E.A)(_.d.getMapOrderedLayerInfo(this.mapId)),a=-1,s=0;s0;)(u+=r)===o.length||0===u?i=0:o[u].layerPath.split("/").length===d&&i--;o.splice.apply(o,[u,0].concat((0,E.A)(c))),_.d.setMapOrderedLayerInfo(e,o),j(D,this,B).call(this,{orderedLayers:o})}},{key:"onLayersReordered",value:function(e){M.A.onEvent(R(F,this),e)}},{key:"offLayersReordered",value:function(e){M.A.offEvent(R(F,this),e)}}])}();function B(e){M.A.emitEvent(this,R(F,this),e)}var z=n(75583),V=n(96645),$=n(6620),G=n(94270),U=n(11738),W=n(43400),q=n(39488),H=n(98246),Y=n(91451),K=n(67287),X=n(20633),Z=n(27893),J=n(3451),Q=n(47505),ee=n(45282),te=n(17341);const ne="select";class re extends q.Ay{constructor(e,t,n,r){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=r}}const ie={};class oe extends Y.Ay{constructor(e){let t;if(super(),this.on,this.once,this.un,e=e||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:te.t5,this.addCondition_=e.addCondition?e.addCondition:te.Zm,this.removeCondition_=e.removeCondition?e.removeCondition:te.Zm,this.toggleCondition_=e.toggleCondition?e.toggleCondition:te.Kg,this.multi_=!!e.multi&&e.multi,this.filter_=e.filter?e.filter:X.rT,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=void 0!==e.style?e.style:function(){const e=(0,J.mY)();return(0,Q.X$)(e.Polygon,e.LineString),(0,Q.X$)(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}(),this.features_=e.features||new U.A,e.layers)if("function"==typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=X.rT;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[(0,ee.v6)(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[(0,ee.v6)(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(W.A.ADD,this.boundAddFeature_),this.features_.addEventListener(W.A.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(W.A.ADD,this.boundAddFeature_),this.features_.removeEventListener(W.A.REMOVE,this.boundRemoveFeature_))}addFeature_(e){const t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){const e=this.getMap().getAllLayers().find((function(e){if(e instanceof K.A&&e.getSource()&&e.getSource().hasFeature(t))return e}));e&&this.addFeatureLayerAssociation_(t,e)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element)}getStyle(){return this.style_}applySelectedStyle_(e){const t=(0,ee.v6)(e);t in ie||(ie[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(e){const t=this.getMap().getInteractions().getArray();for(let n=t.length-1;n>=0;--n){const r=t[n];if(r!==this&&r instanceof oe&&r.getStyle()&&-1!==r.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(r.getStyle())}const n=(0,ee.v6)(e);e.setStyle(ie[n]),delete ie[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[(0,ee.v6)(e)]}handleEvent(e){if(!this.condition_(e))return!0;const t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,o=e.map,a=this.getFeatures(),s=[],l=[];if(i){(0,Z.I)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,((e,t)=>{if(e instanceof H.A&&this.filter_(e,t))return this.addFeatureLayerAssociation_(e,t),l.push(e),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=a.getLength()-1;e>=0;--e){const t=a.item(e),n=l.indexOf(t);n>-1?l.splice(n,1):(a.remove(t),s.push(t))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(e.pixel,((e,i)=>{if(e instanceof H.A&&this.filter_(e,i))return!t&&!r||a.getArray().includes(e)?(n||r)&&a.getArray().includes(e)&&(s.push(e),this.removeFeatureLayerAssociation_(e)):(this.addFeatureLayerAssociation_(e,i),l.push(e)),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=s.length-1;e>=0;--e)a.remove(s[e]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new re(ne,l,s,e)),!0}}const ae=oe;var se=n(35415),le=n(25293);function ce(e,t,n){return t=(0,V.A)(t),(0,z.A)(e,ue()?Reflect.construct(t,n||[],(0,V.A)(e).constructor):t.apply(e,n))}function ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ue=function(){return!!e})()}function de(e,t,n,r){var i=(0,$.A)((0,V.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function he(e,t,n){pe(e,t),t.set(e,n)}function pe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fe(e,t){return e.get(ge(e,t))}function ge(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var me=new WeakMap,ye=new WeakMap,ve=new WeakSet,be=function(e){function t(e){var n,r,i;(0,o.A)(this,t),n=ce(this,t,[e]),pe(r=n,i=ve),i.add(r),he(n,me,void 0),he(n,ye,[]);var a={features:e.features,style:(0,se.convertTypeFeatureStyleToOpenLayersStyle)(e.style),hitTolerance:e.hitTolerance||0};return function(e,t,n){e.set(ge(e,t),n)}(me,n,new ae(a)),fe(me,n).on("select",ge(ve,n,we).bind(n)),n}return(0,G.A)(t,e),(0,a.A)(t,[{key:"startInteraction",value:function(){de(t,"startInteraction",this,3)([fe(me,this)])}},{key:"stopInteraction",value:function(){de(t,"stopInteraction",this,3)([fe(me,this)])}},{key:"getFeatures",value:function(){return fe(me,this).getFeatures()}},{key:"onSelectChanged",value:function(e){M.A.onEvent(fe(ye,this),e)}},{key:"offSelectChanged",value:function(e){M.A.offEvent(fe(ye,this),e)}}])}(le.N);function we(e){M.A.emitEvent(this,fe(ye,this),e)}var xe=n(43681),Ae=n(13178),Se=n(72412),Ce=n(73802),Ee=n(11830),ke=n(33828),Te=n(76200),_e=n(24258),Oe=n(16775);function Pe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ie(e,t){return e.get(Me(e,t))}function Me(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Le=new WeakMap,Re=new WeakSet,je=function(){return(0,a.A)((function e(t){var n,r;(0,o.A)(this,e),Pe(n=this,r=Re),r.add(n),(0,s.A)(this,"mapId",void 0),function(e,t,n){Pe(e,t),t.set(e,n)}(this,Le,[]),this.mapId=t}),[{key:"addNotificationMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"info",e,t)}},{key:"addNotificationSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"success",e,t)}},{key:"addNotificationWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"warning",e,t)}},{key:"addNotificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Me(Re,this,De).call(this,"error",e,t)}},{key:"showMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"info",e,t,r),n&&this.addNotificationMessage(e,t)}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"success",e,t,r),n&&this.addNotificationSuccess(e,t)}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"warning",e,t,r),n&&this.addNotificationWarning(e,t)}},{key:"showError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Me(Re,this,Ne).call(this,"error",e,t,r),n&&this.addNotificationError(e,t)}},{key:"onSnackbarOpen",value:function(e){M.A.onEvent(Ie(Le,this),e)}},{key:"offSnackbarOpen",value:function(e){M.A.offEvent(Ie(Le,this),e)}}])}();function Fe(e,t){var n=(0,Te.getLocalizedMessage)(e,Oe.K.getDisplayLanguage(this.mapId));return t.length>0&&(n=(0,Te.replaceParams)(t,n)),n}function De(e,t,n){var r={key:(0,Te.generateId)(),notificationType:e,message:Me(Re,this,Fe).call(this,t,n),count:1};Oe.K.addNotification(this.mapId,r).catch((function(e){I.vF.logPromiseFailed("addNotification in Notifications",e)}))}function Ne(e,t,n,r){var i={snackbarType:e,message:Me(Re,this,Fe).call(this,t,n),button:r};Me(Re,this,Be).call(this,i)}function Be(e){M.A.emitEvent(this,Ie(Le,this),e)}function ze(e,t,n){Ve(e,t),t.set(e,n)}function Ve(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $e(e,t,n){return e.set(Ue(e,t),n),n}function Ge(e,t){return e.get(Ue(e,t))}function Ue(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var We=new WeakMap,qe=new WeakMap,He=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Xe=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ut=new WeakSet,dt=function(){return(0,a.A)((function e(t,n){var r,i;(0,o.A)(this,e),Ve(r=this,i=ut),i.add(r),(0,s.A)(this,"mapFeaturesConfig",void 0),(0,s.A)(this,"mapId",void 0),(0,s.A)(this,"map",void 0),(0,s.A)(this,"plugins",{}),(0,s.A)(this,"overviewRoot",void 0),(0,s.A)(this,"appBarApi",void 0),(0,s.A)(this,"navBarApi",void 0),(0,s.A)(this,"footerBarApi",void 0),(0,s.A)(this,"stateApi",void 0),(0,s.A)(this,"basemap",void 0),(0,s.A)(this,"notifications",void 0),(0,s.A)(this,"layer",void 0),(0,s.A)(this,"modal",void 0),(0,s.A)(this,"iconImageCacheSize",void 0),ze(this,We,void 0),ze(this,qe,!1),ze(this,He,!1),ze(this,Ye,!1),ze(this,Ke,!1),ze(this,Xe,[]),ze(this,Ze,[]),ze(this,Je,[]),ze(this,Qe,[]),ze(this,et,[]),ze(this,tt,[]),ze(this,nt,[]),ze(this,rt,[]),ze(this,it,[]),ze(this,ot,[]),ze(this,at,[]),ze(this,st,[]),ze(this,lt,[]),ze(this,ct,void 0),this.mapId=t.mapId,this.mapFeaturesConfig=t,$e(We,this,n),this.iconImageCacheSize=1,this.appBarApi=new A.r(this.mapId),this.navBarApi=new S.v(this.mapId),this.footerBarApi=new C.x(this.mapId),this.stateApi=new N(this.mapId),this.notifications=new je(this.mapId),this.modal=new ke.ModalApi,this.basemap=new y.i(_.d.getBasemapOptions(this.mapId),this.mapId)}),[{key:"mapInit",get:function(){return Ge(qe,this)}},{key:"mapReady",get:function(){return Ge(He,this)}},{key:"mapLayersProcessed",get:function(){return Ge(Ye,this)}},{key:"mapLayersLoaded",get:function(){return Ge(Ke,this)}},{key:"createMap",value:function(e){var t,n,r,i,o,a,s=null===(t=this.mapFeaturesConfig)||void 0===t?void 0:t.map.viewSettings,l=b.M.PROJECTIONS[s.projection];s.maxExtent&&(a=b.M.transformExtent(s.maxExtent,b.M.PROJECTION_NAMES.LNGLAT,l.getCode()));var c=new h.A({target:e,layers:[(0,se.createEmptyBasemap)()],view:new p.Ay({projection:l,center:b.M.transformFromLonLat(null!==(n=s.initialView)&&void 0!==n&&n.zoomAndCenter?null===(r=s.initialView)||void 0===r?void 0:r.zoomAndCenter[1]:g.VN[s.projection],l),zoom:null!==(i=s.initialView)&&void 0!==i&&i.zoomAndCenter?null===(o=s.initialView)||void 0===o?void 0:o.zoomAndCenter[0]:3.5,extent:a||void 0,minZoom:s.minZoom||0,maxZoom:s.maxZoom||17,rotation:s.rotation||0}),controls:[],keyboardEventTarget:document.getElementById("map-".concat(this.mapId))});return this.map=c,this.initMap(),c}},{key:"initMap",value:function(){this.map.on("moveend",Ue(ut,this,pt).bind(this)),Ue(ut,this,ht).call(this,this.getView()),"static"!==this.mapFeaturesConfig.map.interaction&&(this.map.on("pointermove",c()(Ue(ut,this,gt).bind(this),10,{leading:!0}).bind(this)),this.map.on("singleclick",c()(Ue(ut,this,mt).bind(this),1e3,{leading:!0}).bind(this))),$e(ct,this,Date.now()),this.layer=new v.A(this),this.layer.loadListOfGeoviewLayer(this.mapFeaturesConfig.map.listOfGeoviewLayerConfig).catch((function(e){I.vF.logPromiseFailed("loadListOfGeoviewLayer in initMap in MapViewer",e)})),this.loadGeometries(),$e(qe,this,!0),Ue(ut,this,Tt).call(this),_.d.resetBasemap(this.mapId).then().catch((function(e){I.vF.logPromiseFailed(" MapEventProcessor.resetBasemap in map-viewer",e)})),Ue(ut,this,xt).call(this)}},{key:"addComponent",value:function(e,t){e&&t&&Ue(ut,this,Dt).call(this,{mapComponentId:e,component:t})}},{key:"removeComponent",value:function(e){e&&Ue(ut,this,Nt).call(this,{mapComponentId:e})}},{key:"addLocalizeRessourceBundle",value:function(e,t){Ge(We,this).addResourceBundle(e,"translation",t,!0,!1)}},{key:"getDisplayLanguage",value:function(){return Oe.K.getDisplayLanguage(this.mapId)}},{key:"getDisplayTheme",value:function(){return Oe.K.getDisplayTheme(this.mapId)}},{key:"getMapState",value:function(){return _.d.getMapState(this.mapId)}},{key:"getView",value:function(){return this.map.getView()}},{key:"getProjection",value:function(){return this.getView().getProjection()}},{key:"getMapLayerOrderInfo",value:function(){return _.d.getMapOrderedLayerInfo(this.mapId)}},{key:"setInteraction",value:function(e){_.d.setInteraction(this.mapId,e)}},{key:"setLanguage",value:function(e,t){if(g.ns.includes(e)){var n=Oe.K.setDisplayLanguage(this.mapId,e);return t&&I.vF.logInfo("reset layers not implemented yet"),Ue(ut,this,Bt).call(this,{language:e}),n}return this.notifications.addNotificationError((0,Te.getLocalizedMessage)("validation.changeDisplayLanguage",e)),Promise.resolve([void 0,void 0])}},{key:"setProjection",value:function(e){return g.if.includes(Number(e))?_.d.setProjection(this.mapId,e):(this.notifications.addNotificationError("validation.changeDisplayProjection"),Promise.resolve())}},{key:"rotate",value:function(e){this.getView().animate({rotation:e})}},{key:"setTheme",value:function(e){g.qf.includes(e)?Oe.K.setDisplayTheme(this.mapId,e):this.notifications.addNotificationError((0,Te.getLocalizedMessage)("validation.changeDisplayTheme",this.getDisplayLanguage()))}},{key:"setView",value:function(e){var t,n,r,i,o=this.getView(),a={};a.projection="EPSG:".concat(e.projection),a.zoom=null!==(t=e.initialView)&&void 0!==t&&t.zoomAndCenter?null===(n=e.initialView)||void 0===n?void 0:n.zoomAndCenter[0]:o.getZoom(),a.center=null!==(r=e.initialView)&&void 0!==r&&r.zoomAndCenter?b.M.transformFromLonLat(null===(i=e.initialView)||void 0===i?void 0:i.zoomAndCenter[1],a.projection):b.M.transformFromLonLat(b.M.transformToLonLat(o.getCenter(),o.getProjection()),a.projection),a.minZoom=e.minZoom?e.minZoom:o.getMinZoom(),a.maxZoom=e.maxZoom?e.maxZoom:o.getMaxZoom(),a.rotation=e.rotation?e.rotation:o.getRotation(),e.maxExtent&&(a.extent=b.M.transformExtent(e.maxExtent,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(e.projection)));var s=new p.Ay(a);this.map.setView(s),Ue(ut,this,ht).call(this,s)}},{key:"setCenter",value:function(e){var t=this.getView(),n=b.M.transformFromLonLat(e,t.getProjection());t.setCenter(n)}},{key:"setZoomLevel",value:function(e){this.getView().setZoom(e)}},{key:"setMinZoomLevel",value:function(e){this.getView().setMinZoom(e)}},{key:"setMaxZoomLevel",value:function(e){this.getView().setMaxZoom(e)}},{key:"setExtent",value:(n=(0,i.A)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.d.zoomToExtent(this.mapId,t);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"setMaxExtent",value:function(e){var t=this.getView(),n={initialView:{zoomAndCenter:[t.getZoom(),this.convertCoordinateLngLatToMapProj(t.getCenter())]},minZoom:t.getMinZoom(),maxZoom:t.getMaxZoom(),maxExtent:b.M.transformExtent(e,b.M.PROJECTION_NAMES.LNGLAT,t.getProjection()),projection:t.getProjection().getCode().split(":")[1]};this.setView(n)}},{key:"refreshLayers",value:function(){var e=this;return this.layer.refreshLayers(),new Promise((function(t){e.map.once("rendercomplete",(function(){t()}))}))}},{key:"clickMarkerIconHide",value:function(){_.d.clickMarkerIconHide(this.mapId)}},{key:"clickMarkerIconShow",value:function(e){_.d.clickMarkerIconShow(this.mapId,e)}},{key:"loadGeometries",value:function(){var e,t=this,n=(null===(e=this.map.getTargetElement())||void 0===e||null===(e=e.closest(".geoview-map"))||void 0===e?void 0:e.getAttribute("data-geometry-endpoint"))||"",r=f.parse(location.search);r.geoms&&""!==n&&r.geoms.split(",").forEach((function(e){fetch("".concat(n).concat(e)).then((function(e){200===e.status&&e.json().then((function(e){void 0!==e.geometry&&t.layer.geometry.addPolygon(e.geometry.coordinates,void 0,(0,Te.generateId)(null))})).catch((function(e){I.vF.logPromiseFailed("response.json in loadGeometry in MapViewer",e)}))})).catch((function(e){I.vF.logPromiseFailed("fetch in loadGeometries in MapViewer",e)}))}))}},{key:"remove",value:(t=(0,i.A)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=document.getElementById(this.mapId)).classList.remove("geoview-map"),this.overviewRoot&&this.overviewRoot.unmount(),(0,w.d1f)(this.mapId),e.next=6,x.k.removePlugins(this.mapId);case 6:try{this.layer.removeAllGeoviewLayers()}catch(e){}return(0,m.e4)(this.mapId),t&&n.remove(),delete w.FHQ.maps[this.mapId],e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"reload",value:(e=(0,i.A)(d().mark((function e(t){var n,r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t||_.d.getGeoViewMapConfig(this.mapId),r=void 0!==this.map.getSize()?this.map.getSize()[1]:800,e.next=4,this.remove(!1);case 4:i=e.sent,w.FHQ.createMapFromConfig(i.id,JSON.stringify(n),r).catch((function(e){I.vF.logError("Couldn't reload the map in map-viewer",e)}));case 6:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"reloadWithCurrentState",value:function(){var e=this.createMapConfigFromMapState();this.reload(e).catch((function(e){I.vF.logError("Couldn't reload the map in map-viewer",e)}))}},{key:"zoomToExtent",value:function(e,t){return _.d.zoomToExtent(this.mapId,e,t)}},{key:"zoomToLngLatExtentOrCoordinate",value:function(e,t){var n=2===e.length?[e[0],e[1],e[0],e[1]]:e,r=b.M.transformExtent(n,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(this.getMapState().currentProjection));return _.d.zoomToExtent(this.mapId,r,t)}},{key:"initSelectInteractions",value:function(){var e=new be({mapViewer:this,hitTolerance:5});return e.startInteraction(),e}},{key:"initExtentInteractions",value:function(){var e=new Ae.z({mapViewer:this,pixelTolerance:5});return e.startInteraction(),e}},{key:"initTranslateInteractions",value:function(){var e=this.initSelectInteractions().getFeatures(),t=new Ee.H({mapViewer:this,features:e});return t.startInteraction(),t}},{key:"initDrawInteractions",value:function(e,t,n){var r=new xe.X({mapViewer:this,geometryGroupKey:e,type:t,style:n});return r.startInteraction(),r}},{key:"initModifyInteractions",value:function(e){var t=new Se.B({mapViewer:this,geometryGroupKey:e});return t.startInteraction(),t}},{key:"initSnapInteractions",value:function(e){var t=new Ce.P({mapViewer:this,geometryGroupKey:e});return t.startInteraction(),t}},{key:"getNorthVisibility",value:function(){var e=[this.map.getSize()[0]/2,1],t=b.M.transformToLonLat(this.map.getCoordinateFromPixel(e),this.getView().getProjection());return!t||t[0]>0}},{key:"getNorthArrowAngle",value:function(){try{var e={x:_e.Tg[1],y:_e.Tg[0]},t=this.getView().calculateExtent(),n=b.M.transformToLonLat([(t[0]+t[2])/2,t[1]],this.getView().getProjection()),r={x:n[0],y:n[1]},i=(r.x-e.x)*Math.PI/180,o=e.y*Math.PI/180,a=r.y*Math.PI/180,s=Math.sin(i)*Math.cos(a),l=Math.cos(o)*Math.sin(a)-Math.sin(o)*Math.cos(a)*Math.cos(i);return((180*Math.atan2(s,l)/Math.PI+360)%360).toFixed(1)}catch(e){return"180.0"}}},{key:"convertCoordinateLngLatToMapProj",value:function(e){return this.convertCoordinateFromProjToMapProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertCoordinateMapProjToLngLat",value:function(e){return this.convertCoordinateFromMapProjToProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertExtentLngLatToMapProj",value:function(e){return this.convertExtentFromProjToMapProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertExtentMapProjToLngLat",value:function(e){return this.convertExtentFromMapProjToProj(e,b.M.PROJECTION_NAMES.LNGLAT)}},{key:"convertCoordinateFromProjToMapProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transform(e,t,this.getProjection()):e}},{key:"convertCoordinateFromMapProjToProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transform(e,this.getProjection(),t):e}},{key:"convertExtentFromProjToMapProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transformExtent(e,t,this.getProjection()):e}},{key:"convertExtentFromMapProjToProj",value:function(e,t){return t!==this.getProjection().getCode()?b.M.transformExtent(e,this.getProjection(),t):e}},{key:"createMapConfigFromMapState",value:function(){return _.d.createMapConfigFromMapState(this.mapId)}},{key:"onMapInit",value:function(e){M.A.onEvent(Ge(Xe,this),e)}},{key:"offMapInit",value:function(e){M.A.offEvent(Ge(Xe,this),e)}},{key:"onMapReady",value:function(e){M.A.onEvent(Ge(Ze,this),e)}},{key:"offMapReady",value:function(e){M.A.offEvent(Ge(Ze,this),e)}},{key:"onMapLayersProcessed",value:function(e){M.A.onEvent(Ge(Je,this),e)}},{key:"offMapLayersProcessed",value:function(e){M.A.offEvent(Ge(Je,this),e)}},{key:"onMapLayersLoaded",value:function(e){M.A.onEvent(Ge(Qe,this),e)}},{key:"offMapLayersLoaded",value:function(e){M.A.offEvent(Ge(Qe,this),e)}},{key:"onMapMoveEnd",value:function(e){M.A.onEvent(Ge(et,this),e)}},{key:"offMapMoveEnd",value:function(e){M.A.offEvent(Ge(et,this),e)}},{key:"onMapPointerMove",value:function(e){M.A.onEvent(Ge(tt,this),e)}},{key:"offMapPointerMove",value:function(e){M.A.offEvent(Ge(tt,this),e)}},{key:"onMapSingleClick",value:function(e){M.A.onEvent(Ge(nt,this),e)}},{key:"offMapSingleClick",value:function(e){M.A.offEvent(Ge(nt,this),e)}},{key:"onMapZoomEnd",value:function(e){M.A.onEvent(Ge(rt,this),e)}},{key:"offMapZoomEnd",value:function(e){M.A.offEvent(Ge(rt,this),e)}},{key:"onMapRotation",value:function(e){M.A.onEvent(Ge(it,this),e)}},{key:"offMapRotation",value:function(e){M.A.offEvent(Ge(it,this),e)}},{key:"onMapChangeSize",value:function(e){M.A.onEvent(Ge(ot,this),e)}},{key:"offMapChangeSize",value:function(e){M.A.offEvent(Ge(ot,this),e)}},{key:"onMapComponentAdded",value:function(e){M.A.onEvent(Ge(at,this),e)}},{key:"offMapComponentAdded",value:function(e){M.A.offEvent(Ge(at,this),e)}},{key:"onMapComponentRemoved",value:function(e){M.A.onEvent(Ge(st,this),e)}},{key:"offMapComponentRemoved",value:function(e){M.A.offEvent(Ge(st,this),e)}},{key:"onMapLanguageChanged",value:function(e){M.A.onEvent(Ge(lt,this),e)}},{key:"offMapLanguageChanged",value:function(e){M.A.offEvent(Ge(lt,this),e)}}],[{key:"setFullscreen",value:function(e,t){e&&(t.requestFullscreen?t.requestFullscreen().catch((function(e){I.vF.logPromiseFailed("element.requestFullscreen",e)})):t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()),e||(document.exitFullscreen?document.exitFullscreen().catch((function(e){I.vF.logPromiseFailed("document.exitFullscreen",e)})):document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen())}}]);var e,t,n}();function ht(e){e.on("change:resolution",c()(Ue(ut,this,yt).bind(this),100).bind(this)),e.on("change:rotation",c()(Ue(ut,this,vt).bind(this),100).bind(this))}function pt(e){return ft.apply(this,arguments)}function ft(){return(ft=(0,i.A)(d().mark((function e(t){var n,r,i,o,a,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getView().getCenter(),r=this.getView().getProjection().getCode(),i={projected:n,pixel:this.map.getPixelFromCoordinate(n),lnglat:b.M.transformPoints([n],r,b.M.PROJECTION_NAMES.LNGLAT)[0],dragging:!1},o=this.getNorthArrowAngle(),a=this.getNorthVisibility(),s=this.getView().calculateExtent(),e.next=9,_.d.getScaleInfoFromDomElement(this.mapId);case 9:l=e.sent,_.d.setMapMoveEnd(this.mapId,n,i,o,a,s,l),Ue(ut,this,It).call(this,{lnglat:n}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),I.vF.logError("Failed in MapViewer.#handleMapMoveEnd",e.t0);case 17:case"end":return e.stop()}}),e,this,[[0,14]])})))).apply(this,arguments)}function gt(e){try{var t=this.getView().getProjection().getCode(),n={projected:e.coordinate,pixel:e.pixel,lnglat:b.M.transformPoints([e.coordinate],t,b.M.PROJECTION_NAMES.LNGLAT)[0],dragging:e.dragging};_.d.setMapPointerPosition(this.mapId,n),Ue(ut,this,Mt).call(this,n)}catch(e){I.vF.logError("Failed in MapViewer.#handleMapPointerMove",e)}}function mt(e){try{var t=this.getView().getProjection().getCode(),n={projected:e.coordinate,pixel:e.pixel,lnglat:b.M.transformPoints([e.coordinate],t,b.M.PROJECTION_NAMES.LNGLAT)[0],dragging:e.dragging};_.d.setClickCoordinates(this.mapId,n).catch((function(e){I.vF.logPromiseFailed("setClickCoordinates in #handleMapSingleClick in MapViewer",e)})),Ue(ut,this,Lt).call(this,n)}catch(e){I.vF.logError("Failed in MapViewer.#handleMapSingleClick",e)}}function yt(e){try{var t=this.getView().getZoom();_.d.setZoom(this.mapId,t),Ue(ut,this,Rt).call(this,{zoom:t})}catch(e){I.vF.logError("Failed in MapViewer.#handleMapZoomEnd",e)}}function vt(e){try{var t=this.getView().getRotation();_.d.setRotation(this.mapId,t),Ue(ut,this,jt).call(this,{rotation:t})}catch(e){I.vF.logError("Failed in MapViewer.#handleMapRotation",e)}}function bt(e){return wt.apply(this,arguments)}function wt(){return(wt=(0,i.A)(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.d.getScaleInfoFromDomElement(this.mapId);case 3:n=e.sent,r=this.map.getSize(),_.d.setMapChangeSize(this.mapId,r,n),Ue(ut,this,Ft).call(this,{size:r}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),I.vF.logError("Failed in MapViewer.#handleMapChangeSize",e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})))).apply(this,arguments)}function xt(){var e=this;I.vF.logMarkerStart("mapReady-".concat(this.mapId));var t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("registered",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){I.vF.logTraceDetailed("checkMapReady - 1 - waiting on layer registration...",e.geoviewLayerId)})),i=(0,r.A)(n,2),o=i[0],a=i[1];o&&(clearInterval(t),I.vF.logInfo("Map is ready with ".concat(a," registered layers"),e.mapId),I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for map to be ready. Layers are still being processed..."),Ue(ut,e,At).call(e).catch((function(e){I.vF.logPromiseFailed("checkMapReadyGo in checkMapReady in MapViewer",e)})))}}),250)}function At(){return St.apply(this,arguments)}function St(){return(St=(0,i.A)(d().mark((function e(){var t,n,r,i,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $e(He,this,!0),Ue(ut,this,_t).call(this),_.d.initMapControls(this.mapId),Oe.K.setGuide(this.mapId).catch((function(e){I.vF.logPromiseFailed("in setGuide in #checkMapReadyGo",e)})),this.map.on("change:size",Ue(ut,this,bt).bind(this)),this.map.dispatchEvent("change:size"),(r=this.map.getTargetElement()).addEventListener("wheel",(function(e){e.preventDefault(),r.focus()})),r.addEventListener("mouseleave",(function(e){r.blur()})),Ue(ut,this,kt).call(this).catch((function(e){I.vF.logError("Failed in #checkLayerResultSetReady",e)})),Ue(ut,this,Ct).call(this),i=Date.now()-Ge(ct,this),e.next=14,(0,Te.delay)(zt._-i);case 14:_.d.setMapLoaded(this.mapId,!0),null!==(t=this.mapFeaturesConfig.map.viewSettings.initialView)&&void 0!==t&&t.extent&&setTimeout((function(){var e;return a.zoomToExtent(b.M.transformExtent(null===(e=a.mapFeaturesConfig.map.viewSettings.initialView)||void 0===e?void 0:e.extent,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(a.mapFeaturesConfig.map.viewSettings.projection)),{padding:[0,0,0,0]}).catch((function(e){return I.vF.logPromiseFailed("promiseMapLayers in #checkMapLayersProcessed in map-viewer",e)}))}),200),null!==(n=this.mapFeaturesConfig.map.viewSettings.initialView)&&void 0!==n&&n.layerIds&&(o=this.mapFeaturesConfig.map.viewSettings.initialView.layerIds.length?this.mapFeaturesConfig.map.viewSettings.initialView.layerIds:this.layer.getGeoviewLayerIds(),this.onMapLayersLoaded((function(){var e=a.layer.getExtentOfMultipleLayers(o);e.includes(1/0)&&(e=a.convertExtentLngLatToMapProj(g.Nt[a.mapFeaturesConfig.map.viewSettings.projection])),e.length&&setTimeout((function(){return a.zoomToExtent(e).catch((function(e){return I.vF.logPromiseFailed("promiseMapLayers in #checkMapLayersProcessed in map-viewer",e)}))}),200)})));case 17:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function Ct(){var e=this,t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("processed",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){I.vF.logTraceDetailed("checkMapReady - 2 - waiting on layer processed...",e.geoviewLayerId)})),i=(0,r.A)(n,2),o=i[0],a=i[1];o&&(clearInterval(t),I.vF.logInfo("Map is ready with ".concat(a," processed layers"),e.mapId),I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for all ".concat(a," layers to be processed")),$e(Ye,e,!0),Ue(ut,e,Ot).call(e),Ue(ut,e,Et).call(e))}}),250)}function Et(){var e=this,t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("loaded",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){I.vF.logTraceDetailed("checkMapReady - 3 - waiting on layer loaded/error status...",e.geoviewLayerId)})),i=(0,r.A)(n,2),o=i[0],a=i[1];o&&(clearInterval(t),I.vF.logInfo("Map is ready with ".concat(a," loaded layers"),e.mapId),I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for all ".concat(a," layers to be loaded")),$e(Ke,e,!0),Ue(ut,e,Pt).call(e))}}),250)}function kt(){var e=this;return new Promise((function(t){var n=setInterval((function(){if(e.layer&&e.layer.checkFeatureInfoLayerResultSetsReady((function(e){I.vF.logTraceDetailed("checkMapReady - 4 - waiting on layer resultSet...",e.layerPath)}))){clearInterval(n);var r=Object.keys(e.layer.featureInfoLayerSet.resultSet).length;I.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for layer result set of ".concat(r," layers to be instanciated")),t()}}),250)}))}function Tt(){M.A.emitEvent(this,Ge(Xe,this),void 0)}function _t(){M.A.emitEvent(this,Ge(Ze,this),void 0)}function Ot(){M.A.emitEvent(this,Ge(Je,this),void 0)}function Pt(){M.A.emitEvent(this,Ge(Qe,this),void 0)}function It(e){M.A.emitEvent(this,Ge(et,this),e)}function Mt(e){M.A.emitEvent(this,Ge(tt,this),e)}function Lt(e){M.A.emitEvent(this,Ge(nt,this),e)}function Rt(e){M.A.emitEvent(this,Ge(rt,this),e)}function jt(e){M.A.emitEvent(this,Ge(it,this),e)}function Ft(e){M.A.emitEvent(this,Ge(ot,this),e)}function Dt(e){M.A.emitEvent(this,Ge(at,this),e)}function Nt(e){M.A.emitEvent(this,Ge(st,this),e)}function Bt(e){M.A.emitEvent(this,Ge(lt,this),e)}var zt={_:2e3}},8058:(e,t,n)=>{"use strict";n.d(t,{M:()=>rr});var r=n(13718),i=n(47280),o=n(42432);var a=1,s=2,l=3,c=5,u=6378137,d=6356752.314,h=.0066943799901413165,p=484813681109536e-20,f=Math.PI/2,g=.16666666666666666,m=.04722222222222222,y=.022156084656084655,v=1e-10,b=.017453292519943295,w=57.29577951308232,x=Math.PI/4,A=2*Math.PI,S=3.14159265359,C={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const E={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var k=/[\s_\-\/\(\)]/g;function T(e,t){if(e[t])return e[t];for(var n,r=Object.keys(e),i=t.toLowerCase().replace(k,""),o=-1;++o=this.text.length)return;e=this.text[this.place++]}switch(this.state){case P:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},F.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(R.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},F.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=P)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=P,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},F.prototype.number=function(e){if(!j.test(e)){if(R.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},F.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},F.prototype.keyword=function(e){if(L.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=P)}if(!R.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},F.prototype.neutral=function(e){if(M.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(j.test(e))return this.word=e,void(this.state=3);if(!R.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},F.prototype.output=function(){for(;this.place0?90:-90)):(e.lat0=z(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(i),i}function $(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?$[e]=_(arguments[1]):$[e]=V(arguments[1]):$[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?$.apply(t,e):$(e)}));if("string"==typeof e){if(e in $)return $[e]}else"EPSG"in e?$["EPSG:"+e.EPSG]=e:"ESRI"in e?$["ESRI:"+e.ESRI]=e:"IAU2000"in e?$["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}($);const G=$;var U=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var W=["3857","900913","3785","102113"];const q=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in G}(e))return G[e];if(function(e){return U.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=V(e);if(function(e){var t=T(e,"authority");if(t){var n=T(t,"epsg");return n&&W.indexOf(n)>-1}}(t))return G["EPSG:3857"];var n=function(e){var t=T(e,"extension");if(t)return T(t,"proj4")}(t);return n?_(n):t}return function(e){return"+"===e[0]}(e)?_(e):void 0};function H(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e}function Y(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}function K(e){return e<0?-1:1}function X(e){return Math.abs(e)<=S?e:e-K(e)*A}function Z(e,t,n){var r=e*n,i=.5*e;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(f-t))/r}function J(e,t){for(var n,r,i=.5*e,o=f-2*Math.atan(t),a=0;a<=15;a++)if(n=e*Math.sin(o),o+=r=f-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-o,Math.abs(r)<=1e-10)return o;return-9999}function Q(e){return e}var ee=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,i=e.y;if(i*w>90&&i*w<-90&&r*w>180&&r*w<-180)return null;if(Math.abs(Math.abs(i)-f)<=v)return null;if(this.sphere)t=this.x0+this.a*this.k0*X(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(x+.5*i));else{var o=Math.sin(i),a=Z(this.e,i,o);t=this.x0+this.a*this.k0*X(r-this.long0),n=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,i=e.y-this.y0;if(this.sphere)n=f-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(n=J(this.e,o)))return null}return t=X(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:Q,inverse:Q,names:["longlat","identity"]}],te={},ne=[];function re(e,t){var n=ne.length;return e.names?(ne[n]=e,e.names.forEach((function(e){te[e.toLowerCase()]=n})),this):(console.log(t),!0)}const ie={start:function(){ee.forEach(re)},add:re,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==te[t]&&ne[te[t]]?ne[te[t]]:void 0}};var oe={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},ae=oe.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};oe.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var se={};se.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},se.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},se.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},se.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},se.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},se.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},se.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},se.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},se.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},se.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},se.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},se.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},se.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},se.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},se.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},se.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},se.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},se.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};const le=function(e,t,n,r,i,o,u){var d={};return d.datum_type=void 0===e||"none"===e?c:4,t&&(d.datum_params=t.map(parseFloat),0===d.datum_params[0]&&0===d.datum_params[1]&&0===d.datum_params[2]||(d.datum_type=a),d.datum_params.length>3&&(0===d.datum_params[3]&&0===d.datum_params[4]&&0===d.datum_params[5]&&0===d.datum_params[6]||(d.datum_type=s,d.datum_params[3]*=p,d.datum_params[4]*=p,d.datum_params[5]*=p,d.datum_params[6]=d.datum_params[6]/1e6+1))),u&&(d.datum_type=l,d.grids=u),d.a=n,d.b=r,d.es=i,d.ep2=o,d};var ce={};function ue(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ce[e]||null,isNull:!1}}function de(e){return e/3600*Math.PI/180}function he(e,t,n){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,n)))}function pe(e){return e.map((function(e){return[de(e.longitudeShift),de(e.latitudeShift)]}))}function fe(e,t,n){return{name:he(e,t+8,t+16).trim(),parent:he(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,n),upperLatitude:e.getFloat64(t+88,n),lowerLongitude:e.getFloat64(t+104,n),upperLongitude:e.getFloat64(t+120,n),latitudeInterval:e.getFloat64(t+136,n),longitudeInterval:e.getFloat64(t+152,n),gridNodeCount:e.getInt32(t+168,n)}}function ge(e,t,n,r){for(var i=t+176,o=[],a=0;a-1.001*f)l=-f;else if(l>f&&l<1.001*f)l=f;else{if(l<-f)return{x:-1/0,y:-1/0,z:e.z};if(l>f)return{x:1/0,y:1/0,z:e.z}}return s>Math.PI&&(s-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,{x:((r=n/Math.sqrt(1-t*o))+c)*a*Math.cos(s),y:(r+c)*a*Math.sin(s),z:(r*(1-t)+c)*i}}function be(e,t,n,r){var i,o,a,s,l,c,u,d,h,p,f,g,m,y,v,b=1e-12,w=e.x,x=e.y,A=e.z?e.z:0;if(i=Math.sqrt(w*w+x*x),o=Math.sqrt(w*w+x*x+A*A),i/n1e-24&&m<30);return{x:y,y:Math.atan(f/Math.abs(p)),z:v}}function we(e){return e===a||e===s}function xe(e,t,n){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===a?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==s||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return n;if(e.datum_type===c||t.datum_type===c)return n;var r=e.a,i=e.es;if(e.datum_type===l){if(0!==Ae(e,!1,n))return;r=u,i=h}var o=t.a,p=t.b,f=t.es;if(t.datum_type===l&&(o=u,p=d,f=h),i===f&&r===o&&!we(e.datum_type)&&!we(t.datum_type))return n;if((n=ve(n,i,r),we(e.datum_type)&&(n=function(e,t,n){if(t===a)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(t===s){var r=n[0],i=n[1],o=n[2],l=n[3],c=n[4],u=n[5],d=n[6];return{x:d*(e.x-u*e.y+c*e.z)+r,y:d*(u*e.x+e.y-l*e.z)+i,z:d*(-c*e.x+l*e.y+e.z)+o}}}(n,e.datum_type,e.datum_params)),we(t.datum_type)&&(n=function(e,t,n){if(t===a)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(t===s){var r=n[0],i=n[1],o=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=(e.x-r)/d,p=(e.y-i)/d,f=(e.z-o)/d;return{x:h+u*p-c*f,y:-u*h+p+l*f,z:c*h-l*p+f}}}(n,t.datum_type,t.datum_params)),n=be(n,f,o,p),t.datum_type===l)&&0!==Ae(t,!0,n))return;return n}function Ae(e,t,n){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},i={x:Number.NaN,y:Number.NaN},o=[];e:for(var a=0;ar.y||p>r.x||m1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=X(o.x+n.ll[0]),r.y=o.y+n.ll[1]}else isNaN(o.x)||(r.x=e.x+o.x,r.y=e.y+o.y);return r}function Ce(e,t){var n,r={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(r.x),o=Math.floor(r.y),a=r.x-1*i,s=r.y-1*o,l={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return l;if(o<0||o>=t.lim[1])return l;n=o*t.lim[0]+i;var c=t.cvs[n][0],u=t.cvs[n][1];n++;var d=t.cvs[n][0],h=t.cvs[n][1];n+=t.lim[0];var p=t.cvs[n][0],f=t.cvs[n][1];n--;var g=t.cvs[n][0],m=t.cvs[n][1],y=a*s,v=a*(1-s),b=(1-a)*(1-s),w=(1-a)*s;return l.x=b*c+v*d+w*g+y*p,l.y=b*u+v*h+w*m+y*f,l}function Ee(e,t,n){var r,i,o,a=n.x,s=n.y,l=n.z||0,c={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(r=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(r=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(r=l,i="z"),e.axis[o]){case"e":case"n":c[i]=r;break;case"w":case"s":c[i]=-r;break;case"u":void 0!==n[i]&&(c.z=r);break;case"d":void 0!==n[i]&&(c.z=-r);break;default:return null}return c}function ke(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function Te(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function _e(e,t,n,r){var i,o=void 0!==(n=Array.isArray(n)?ke(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(e){Te(e.x),Te(e.y)}(n),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===a||e.datum.datum_type===s||e.datum.datum_type===l)&&"WGS84"!==t.datumCode||(t.datum.datum_type===a||t.datum.datum_type===s||t.datum.datum_type===l)&&"WGS84"!==e.datumCode}(e,t)&&(n=_e(e,i=new ye("WGS84"),n,r),e=i),r&&"enu"!==e.axis&&(n=Ee(e,!1,n)),"longlat"===e.projName)n={x:n.x*b,y:n.y*b,z:n.z||0};else if(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter,z:n.z||0}),!(n=e.inverse(n)))return;if(e.from_greenwich&&(n.x+=e.from_greenwich),n=xe(e.datum,t.datum,n))return t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y,z:n.z||0}),"longlat"===t.projName?n={x:n.x*w,y:n.y*w,z:n.z||0}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter,z:n.z||0})),r&&"enu"!==t.axis?Ee(t,!0,n):(n&&!o&&delete n.z,n)}var Oe=ye("WGS84");function Pe(e,t,n,r){var i,o,a;return Array.isArray(n)?(i=_e(e,t,n,r)||{x:NaN,y:NaN},n.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(n.splice(3)):[i.x,i.y,n[2]].concat(n.splice(3)):[i.x,i.y].concat(n.splice(2)):[i.x,i.y]):(o=_e(e,t,n,r),2===(a=Object.keys(n)).length||a.forEach((function(r){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=n[r]})),o)}function Ie(e){return e instanceof ye?e:e.oProj?e.oProj:ye(e)}const Me=function(e,t,n){e=Ie(e);var r,i=!1;return void 0===t?(t=e,e=Oe,i=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=Oe,i=!0),t=Ie(t),n?Pe(e,t,n):(r={forward:function(n,r){return Pe(e,t,n,r)},inverse:function(n,r){return Pe(t,e,n,r)}},i&&(r.oProj=t),r)};var Le=6,Re="AJSAJS",je="AFAFAF",Fe=65,De=73,Ne=79,Be=86,ze=90;const Ve={forward:$e,inverse:function(e){var t=qe(Ke(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:Ge};function $e(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,f=e.northing,g=e.zoneNumber,m=Ye(g),y=Math.floor(p/1e5),v=Math.floor(f/1e5)%20,i=y,o=v,a=m,s=a-1,l=Re.charCodeAt(s),c=je.charCodeAt(s),u=l+i-1,d=c+o,h=!1,u>ze&&(u=u-ze+Fe-1,h=!0),(u===De||lDe||(u>De||lNe||(u>Ne||lze&&(u=u-ze+Fe-1),d>Be?(d=d-Be+Fe-1,h=!0):h=!1,(d===De||cDe||(d>De||cNe||(d>Ne||cBe&&(d=d-Be+Fe-1),String.fromCharCode(u)+String.fromCharCode(d))+n.substr(n.length-5,t)+r.substr(r.length-5,t);var i,o,a,s,l,c,u,d,h;var p,f,g,m,y,v}(function(e){var t,n,r,i,o,a,s,l,c=e.lat,u=e.lon,d=6378137,h=.00669438,p=.9996,f=Ue(c),g=Ue(u);l=Math.floor((u+180)/6)+1,180===u&&(l=60);c>=56&&c<64&&u>=3&&u<12&&(l=32);c>=72&&c<84&&(u>=0&&u<9?l=31:u>=9&&u<21?l=33:u>=21&&u<33?l=35:u>=33&&u<42&&(l=37));s=Ue(6*(l-1)-180+3),t=h/(1-h),n=d/Math.sqrt(1-h*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),i=t*Math.cos(f)*Math.cos(f),o=Math.cos(f)*(g-s),a=d*((1-h/4-3*h*h/64-5*h*h*h/256)*f-(3*h/8+3*h*h/32+45*h*h*h/1024)*Math.sin(2*f)+(15*h*h/256+45*h*h*h/1024)*Math.sin(4*f)-35*h*h*h/3072*Math.sin(6*f));var m=p*n*(o+(1-r+i)*o*o*o/6+(5-18*r+r*r+72*i-58*t)*o*o*o*o*o/120)+5e5,y=p*(a+n*Math.tan(f)*(o*o/2+(5-r+9*i+4*i*i)*o*o*o*o/24+(61-58*r+r*r+600*i-330*t)*o*o*o*o*o*o/720));c<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(m),zoneNumber:l,zoneLetter:He(c)}}({lat:e[1],lon:e[0]}),t)}function Ge(e){var t=qe(Ke(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Ue(e){return e*(Math.PI/180)}function We(e){return e/Math.PI*180}function qe(e){var t=e.northing,n=e.easting,r=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,l,c,u,d,h,p,f=.9996,g=6378137,m=.00669438,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=n-5e5,b=t;r<"N"&&(b-=1e7),d=6*(i-1)-180+3,o=.006739496752268451,p=(h=b/f/6367449.145945056)+(3*y/2-27*y*y*y/32)*Math.sin(2*h)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*h)+151*y*y*y/96*Math.sin(6*h),a=g/Math.sqrt(1-m*Math.sin(p)*Math.sin(p)),s=Math.tan(p)*Math.tan(p),l=o*Math.cos(p)*Math.cos(p),c=.99330562*g/Math.pow(1-m*Math.sin(p)*Math.sin(p),1.5),u=v/(a*f);var w=p-a*Math.tan(p)/c*(u*u/2-(5+3*s+10*l-4*l*l-9*o)*u*u*u*u/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*u*u*u*u*u*u/720);w=We(w);var x,A=(u-(1+2*s+l)*u*u*u/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*u*u*u*u*u/120)/Math.cos(p);if(A=d+We(A),e.accuracy){var S=qe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});x={top:S.lat,right:S.lon,bottom:w,left:A}}else x={lat:w,lon:A};return x}function He(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function Ye(e){var t=e%Le;return 0===t&&(t=Le),t}function Ke(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;r=e.substring(o,o+=2);for(var l=Ye(a),c=function(e,t){var n=Re.charCodeAt(t-1),r=1e5,i=!1;for(;n!==e.charCodeAt(0);){if(++n===De&&n++,n===Ne&&n++,n>ze){if(i)throw"Bad character: "+e;n=Fe,i=!0}r+=1e5}return r}(r.charAt(0),l),u=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n=je.charCodeAt(t-1),r=0,i=!1;for(;n!==e.charCodeAt(0);){if(++n===De&&n++,n===Ne&&n++,n>Be){if(i)throw"Bad character: "+e;n=Fe,i=!0}r+=1e5}return r}(r.charAt(1),l);u0&&(h=1e5/Math.pow(10,g),p=e.substring(o,o+g),m=parseFloat(p)*h,f=e.substring(o+g),y=parseFloat(f)*h),{easting:m+c,northing:y+u,zoneLetter:s,zoneNumber:a,accuracy:h}}function Xe(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function Ze(e,t,n){if(!(this instanceof Ze))return new Ze(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ze.fromMGRS=function(e){return new Ze(Ge(e))},Ze.prototype.toMGRS=function(e){return $e([this.x,this.y],e)};const Je=Ze;var Qe=1,et=.25,tt=.046875,nt=.01953125,rt=.01068115234375,it=.75,ot=.46875,at=.013020833333333334,st=.007120768229166667,lt=.3645833333333333,ct=.005696614583333333,ut=.3076171875;function dt(e){var t=[];t[0]=Qe-e*(et+e*(tt+e*(nt+e*rt))),t[1]=e*(it-e*(tt+e*(nt+e*rt)));var n=e*e;return t[2]=n*(ot-e*(at+e*st)),n*=e,t[3]=n*(lt-e*ct),t[4]=n*e*ut,t}function ht(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))}var pt=20;function ft(e,t,n){for(var r=1/(1-t),i=e,o=pt;o;--o){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(ht(i,a,Math.cos(i),n)-e)*(s*Math.sqrt(s))*r,Math.abs(s)v?Math.tan(o):0,f=Math.pow(p,2),g=Math.pow(f,2);t=1-this.es*Math.pow(s,2),c/=Math.sqrt(t);var m=ht(o,s,l,this.en);n=this.a*(this.k0*c*(1+u/6*(1-f+d+u/20*(5-18*f+g+14*d-58*f*d+u/42*(61+179*g-g*f-479*f)))))+this.x0,r=this.a*(this.k0*(m-this.ml0+s*a*c/2*(1+u/12*(5-f+9*d+4*h+u/30*(61+g-58*f+270*d-330*f*d+u/56*(1385+543*g-g*f-3111*f))))))+this.y0}else{var y=l*Math.sin(a);if(Math.abs(Math.abs(y)-1)=1){if(y-1>v)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(n=ft(t=this.ml0+a/this.k0,this.es,this.en),Math.abs(n)v?Math.tan(n):0,u=this.ep2*Math.pow(l,2),d=Math.pow(u,2),h=Math.pow(c,2),p=Math.pow(h,2);t=1-this.es*Math.pow(s,2);var g=o*Math.sqrt(t)/this.k0,m=Math.pow(g,2);r=n-(t*=c)*m/(1-this.es)*.5*(1-m/12*(5+3*h-9*u*h+u-4*d-m/30*(61+90*h-252*u*h+45*p+46*u-m/56*(1385+3633*h+4095*p+1574*p*h)))),i=X(this.long0+g*(1-m/6*(1+2*h+u-m/20*(5+28*h+24*p+8*u*h+6*u-m/42*(61+662*h+1320*p+720*p*h))))/l)}else r=f*K(a),i=0;else{var y=Math.exp(o/this.k0),b=.5*(y-1/y),w=this.lat0+a/this.k0,x=Math.cos(w);t=Math.sqrt((1-Math.pow(x,2))/(1+Math.pow(b,2))),r=Math.asin(t),a<0&&(r=-r),i=0===b&&0===x?0:X(Math.atan2(b,x)+this.long0)}return e.x=i,e.y=r,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function mt(e){var t=Math.exp(e);return t=(t-1/t)/2}function yt(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function vt(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(yt(1,t)+1))),e<0?-t:t}function bt(e,t){for(var n,r=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)n=r*o-a+e[i],a=o,o=n;return t+n*Math.sin(2*t)}function wt(e,t,n){for(var r,i,o=Math.sin(t),a=Math.cos(t),s=mt(n),l=function(e){var t=Math.exp(e);return(t+1/t)/2}(n),c=2*a*l,u=-2*o*s,d=e.length-1,h=e[d],p=0,f=0,g=0;--d>=0;)r=f,i=p,h=c*(f=h)-r-u*(p=g)+e[d],g=u*f-i+c*p;return[(c=o*l)*h-(u=a*s)*g,c*g+u*h]}const xt={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(gt.init.apply(this),this.forward=gt.forward,this.inverse=gt.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=bt(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)n=r*o-a+e[i],a=o,o=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=X(e.x-this.long0),n=e.y;n=bt(this.cbg,n);var r=Math.sin(n),i=Math.cos(n),o=Math.sin(t),a=Math.cos(t);n=Math.atan2(r,a*i),t=Math.atan2(o*i,yt(r,i*a)),t=vt(Math.tan(t));var s,l,c=wt(this.gtu,2*n,2*t);return n+=c[0],t+=c[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(s=1/0,l=1/0),e.x=s,e.y=l,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var o=wt(this.utg,2*i,2*r);i+=o[0],r+=o[1],r=Math.atan(mt(r));var a=Math.sin(i),s=Math.cos(i),l=Math.sin(r),c=Math.cos(r);i=Math.atan2(a*c,yt(l,c*s)),t=X((r=Math.atan2(l,c*s))+this.long0),n=bt(this.cgb,i)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};const At={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(X(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*b,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,xt.init.apply(this),this.forward=xt.forward,this.inverse=xt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function St(e,t){return Math.pow((1-e)/(1+e),t)}const Ct={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+x)/(Math.pow(Math.tan(.5*this.lat0+x),this.C)*St(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+x),this.C)*St(this.e*Math.sin(n),this.ratexp))-f,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+x)/this.K,1/this.C),i=20;i>0&&(n=2*Math.atan(r*St(this.e*Math.sin(e.y),-.5*this.e))-f,!(Math.abs(n-e.y)<1e-14));--i)e.y=n;return i?(e.x=t,e.y=n,e):null},names:["gauss"]};const Et={init:function(){Ct.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,n,r,i;return e.x=X(e.x-this.long0),Ct.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=i*n*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=yt(e.x,e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),n=Math.cos(a),i=Math.asin(n*this.sinc0+e.y*t*this.cosc0/o),r=Math.atan2(e.x*t,o*this.cosc0*n-e.y*this.sinc0*t)}else i=this.phic0,r=0;return e.x=r,e.y=i,Ct.inverse.apply(this,[e]),e.x=X(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};const kt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=v&&(this.k0=.5*(1+K(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=v&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=v&&Math.abs(Math.cos(this.lat_ts))>v&&(this.k0=.5*this.cons*Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Z(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Y(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-f,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,i,o,a,s=e.x,l=e.y,c=Math.sin(l),u=Math.cos(l),d=X(s-this.long0);return Math.abs(Math.abs(s-this.long0)-Math.PI)<=v&&Math.abs(l+this.lat0)<=v?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*u*Math.cos(d)),e.x=this.a*t*u*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*u*Math.cos(d))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,c,this.e))-f,i=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=v?(o=Z(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(s-this.long0),e.y=this.y0-this.con*a*Math.cos(s-this.long0),e):(Math.abs(this.sinlat0)0?X(this.long0+Math.atan2(e.x,-1*e.y)):X(this.long0+Math.atan2(e.x,e.y)):X(this.long0+Math.atan2(e.x*Math.sin(s),a*this.coslat0*Math.cos(s)-e.y*this.sinlat0*Math.sin(s))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=v){if(a<=v)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=a*this.cons/(2*this.a*this.k0),n=this.con*J(this.e,r),t=this.con*X(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=v?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=X(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),n=-1*J(this.e,Math.tan(.5*(f+o)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(f+e))*Math.pow((1-t)/(1+t),.5*n)}};const Tt={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,i=2*r-Math.pow(r,2),o=this.e=Math.sqrt(i);this.R=this.k0*n*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,i=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),a=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,l=0,c=o,u=-1e3,d=0;Math.abs(c-u)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=c,e},names:["somerc"]};var _t=1e-7;const Ot={init:function(){var e,t,n,r,i,o,a,s,l,c,u,d,h,p=0,g=0,m=0,y=0,w=0,S=0,C=0;this.no_off=(h="object"==typeof(d=this).PROJECTION?Object.keys(d.PROJECTION)[0]:d.PROJECTION,"no_uoff"in d||"no_off"in d||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(h)),this.no_rot="no_rot"in this;var E=!1;"alpha"in this&&(E=!0);var k=!1;if("rectified_grid_angle"in this&&(k=!0),E&&(C=this.alpha),k&&(p=this.rectified_grid_angle*b),E||k)g=this.longc;else if(m=this.long1,w=this.lat1,y=this.long2,S=this.lat2,Math.abs(w-S)<=_t||(e=Math.abs(w))<=_t||Math.abs(e-f)<=_t||Math.abs(Math.abs(this.lat0)-f)<=_t||Math.abs(Math.abs(S)-f)<=_t)throw new Error;var T=1-this.es;t=Math.sqrt(T),Math.abs(this.lat0)>v?(s=Math.sin(this.lat0),n=Math.cos(this.lat0),e=1-this.es*s*s,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/T),this.A=this.B*this.k0*t/e,(i=(r=this.B*t/(n*Math.sqrt(e)))*r-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(Z(this.e,this.lat0,s),this.B)):(this.B=1/t,this.A=this.k0,this.E=r=i=1),E||k?(E?(u=Math.asin(Math.sin(C)/r),k||(p=C)):(u=p,C=Math.asin(r*Math.sin(u))),this.lam0=g-Math.asin(.5*(i-1/i)*Math.tan(u))/this.B):(o=Math.pow(Z(this.e,w,Math.sin(w)),this.B),a=Math.pow(Z(this.e,S,Math.sin(S)),this.B),i=this.E/o,l=(a-o)/(a+o),c=((c=this.E*this.E)-a*o)/(c+a*o),(e=m-y)<-Math.pi?y-=A:e>Math.pi&&(y+=A),this.lam0=X(.5*(m+y)-Math.atan(c*Math.tan(.5*this.B*(m-y))/l)/this.B),u=Math.atan(2*Math.sin(this.B*X(m-this.lam0))/(i-1/i)),p=C=Math.asin(r*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(p),this.cosrot=Math.cos(p),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(C))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(x-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(x+i))},forward:function(e){var t,n,r,i,o,a,s,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-f)>v){if(t=.5*((o=this.E/Math.pow(Z(this.e,e.y,Math.sin(e.y)),this.B))-(a=1/o)),n=.5*(o+a),i=Math.sin(this.B*e.x),r=(t*this.singam-i*this.cosgam)/n,Math.abs(Math.abs(r)-1)0?this.v_pole_n:this.v_pole_s,s=this.ArB*e.y;return this.no_rot?(c.x=s,c.y=l):(s-=this.u_0,c.x=l*this.cosrot+s*this.sinrot,c.y=s*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,n,r,i,o,a,s,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(n=e.y,t=e.x):(n=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((r=Math.exp(-this.BrA*n))-1/r),o=.5*(r+1/r),s=((a=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(s)-1)v?this.ns=Math.log(r/s)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=v&&(n=K(n)*(f-2*v));var r,i,o=Math.abs(Math.abs(n)-f);if(o>v)r=Z(this.e,n,Math.sin(n)),i=this.a*this.f0*Math.pow(r,this.ns);else{if((o=n*this.ns)<=0)return null;i=0}var a=this.ns*X(t-this.long0);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e},inverse:function(e){var t,n,r,i,o,a=(e.x-this.x0)/this.k0,s=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+s*s),n=1):(t=-Math.sqrt(a*a+s*s),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*a,n*s)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(i=J(this.e,r)))return null}else i=-f;return o=X(l/this.ns+this.long0),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};const It={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,n,r,i,o,a,s,l=e.x,c=e.y,u=X(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),r=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,i,o,a,s,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),n=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(t)),e.x=this.long0-n/this.alfa,a=t,s=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,c+=1}while(0===s&&c<15);return c>=15?null:e},names:["Krovak","krovak"]};function Mt(e,t,n,r,i){return e*i-t*Math.sin(2*i)+n*Math.sin(4*i)-r*Math.sin(6*i)}function Lt(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Rt(e){return.375*e*(1+.25*e*(1+.46875*e))}function jt(e){return.05859375*e*e*(1+.75*e)}function Ft(e){return e*e*e*(35/3072)}function Dt(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)}function Nt(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t}var $t=.3333333333333333,Gt=.17222222222222222,Ut=.10257936507936508,Wt=.06388888888888888,qt=.0664021164021164,Ht=.016415012942191543;const Yt={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-f)0)switch(this.qp=Vt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=e*$t,t=e*e,n[0]+=t*Gt,n[1]=t*Wt,t*=e,n[0]+=t*Ut,n[1]+=t*qt,n[2]=t*Ht,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Vt(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,n,r,i,o,a,s,l,c,u,d=e.x,h=e.y;if(d=X(d-this.long0),this.sphere){if(o=Math.sin(h),u=Math.cos(h),r=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+u*r:1+this.sinph0*o+this.cosph0*u*r)<=v)return null;t=(n=Math.sqrt(2/n))*u*Math.sin(d),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*u*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(h+this.lat0)=0?(t=(c=Math.sqrt(a))*i,n=r*(this.mode===this.S_POLE?c:-c)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,i,o,a,s,l,c,u,d=e.x/this.a,h=e.y/this.a;if(this.sphere){var p,g=0,m=0;if((n=.5*(p=Math.sqrt(d*d+h*h)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=Math.sin(n),g=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(p)<=v?0:Math.asin(h*m/p),d*=m,h=g*p;break;case this.OBLIQ:n=Math.abs(p)<=v?this.lat0:Math.asin(g*this.sinph0+h*m*this.cosph0/p),d*=m*this.cosph0,h=(g-Math.sin(n)*this.sinph0)*p;break;case this.N_POLE:h=-h,n=f-n;break;case this.S_POLE:n-=f}t=0!==h||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(d,h):0}else{if(s=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(d/=this.dd,h*=this.dd,(a=Math.sqrt(d*d+h*h))1&&(e=e>1?1:-1),Math.asin(e)}const Xt={init:function(){Math.abs(this.lat1+this.lat2)v?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=Vt(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*X(t-this.long0),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),i=0,0!==t&&(i=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,a=this.phi1z(this.e3,n)),o=X(i/this.ns0+this.long0),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,i,o,a=Kt(.5*t);if(e0||Math.abs(o)<=v?(a=this.x0+1*this.a*n*Math.sin(r)/o,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)/o):(a=this.x0+this.infinity_dist*n*Math.sin(r),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*i)),e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),n=Math.sin(i),a=Kt((r=Math.cos(i))*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),o=X(this.long0+o)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]};const Jt={init:function(){this.sphere||(this.k0=Y(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,i=e.y,o=X(r-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Vt(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=X(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*f:f;for(var r,i,o,a,s=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(s),o=Math.cos(s),a=e*i,s+=r=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(r)<=1e-10)return s;return NaN}(this.e,2*e.y*this.k0/this.a),t=X(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};const Qt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,n=e.y,r=X(t-this.long0),i=Nt(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,n=e.y;return e.x=X(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Nt(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};const en={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Lt(this.es),this.e1=Rt(this.es),this.e2=jt(this.es),this.e3=Ft(this.es),this.ml0=this.a*Mt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,i=e.x,o=e.y,a=X(i-this.long0);if(r=a*Math.sin(o),this.sphere)Math.abs(o)<=v?(t=this.a*a,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(o),n=this.a*(Nt(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=v)t=this.a*a,n=-1*this.ml0;else{var s=Dt(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(r),n=this.a*Mt(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,i,o,a,s,l,c;if(r=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=v)t=X(r/this.a+this.long0),n=0;else{var u;for(a=this.lat0+i/this.a,s=r*r/this.a/this.a+a*a,l=a,o=20;o;--o)if(l+=c=-1*(a*(l*(u=Math.tan(l))+1)-l-.5*(l*l+s)*u)/((l-a)/u-1),Math.abs(c)<=v){n=l;break}t=X(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(i+this.ml0)<=v)n=0,t=X(this.long0+r/this.a);else{var d,h,p,f,g;for(a=(this.ml0+i)/this.a,s=r*r/this.a/this.a+a*a,l=a,o=20;o;--o)if(g=this.e*Math.sin(l),d=Math.sqrt(1-g*g)*Math.tan(l),h=this.a*Mt(this.e0,this.e1,this.e2,this.e3,l),p=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(a*(d*(f=h/this.a)+1)-f-.5*d*(f*f+s))/(this.es*Math.sin(2*l)*(f*f+s-2*a*f)/(4*d)+(a-f)*(d*p-2/Math.sin(2*l))-p),Math.abs(c)<=v){n=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=X(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};const tn={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,n=e.x,r=e.y-this.lat0,i=n-this.long0,o=r/p*1e-5,a=i,s=1,l=0;for(t=1;t<=10;t++)s*=o,l+=this.A[t]*s;var c,u=l,d=a,h=1,f=0,g=0,m=0;for(t=1;t<=6;t++)c=f*u+h*d,h=h*u-f*d,f=c,g=g+this.B_re[t]*h-this.B_im[t]*f,m=m+this.B_im[t]*h+this.B_re[t]*f;return e.x=m*this.a+this.x0,e.y=g*this.a+this.y0,e},inverse:function(e){var t,n,r=e.x,i=e.y,o=r-this.x0,a=(i-this.y0)/this.a,s=o/this.a,l=1,c=0,u=0,d=0;for(t=1;t<=6;t++)n=c*a+l*s,l=l*a-c*s,c=n,u=u+this.C_re[t]*l-this.C_im[t]*c,d=d+this.C_im[t]*l+this.C_re[t]*c;for(var h=0;h.999999999999&&(n=.999999999999),t=Math.asin(n);var r=X(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var i=Math.asin(n);return e.x=r,e.y=i,e},names:["Mollweide","moll"]};const an={init:function(){Math.abs(this.lat1+this.lat2)=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;return 0!==n&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere?(i=X(this.long0+o/this.ns),r=Nt(this.g-n/this.a),e.x=i,e.y=r,e):(r=Bt(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),i=X(this.long0+o/this.ns),e.x=i,e.y=r,e)},names:["Equidistant_Conic","eqdc"]};const sn={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,i=e.y,o=X(r-this.long0);Math.abs(i)<=v&&(t=this.x0+this.R*o,n=this.y0);var a=Kt(2*Math.abs(i/Math.PI));(Math.abs(o)<=v||Math.abs(Math.abs(i)-f)<=v)&&(t=this.x0,n=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var s=.5*Math.abs(Math.PI/o-o/Math.PI),l=s*s,c=Math.sin(a),u=Math.cos(a),d=u/(c+u-1),h=d*d,p=d*(2/c-1),g=p*p,m=Math.PI*this.R*(s*(d-g)+Math.sqrt(l*(d-g)*(d-g)-(g+l)*(h-g)))/(g+l);o<0&&(m=-m),t=this.x0+m;var y=l+d;return m=Math.PI*this.R*(p*y-s*Math.sqrt((g+l)*(l+1)-y*y))/(g+l),n=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,i,o,a,s,l,c,u,d,h;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,o=(r=e.x/d)*r+(i=e.y/d)*i,d=3*(i*i/(l=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(s=a-2*i*i+r*r)*s*s/l/l/l-9*a*s/l/l)/27)/(c=(a-s*s/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),h=Math.acos(d)/3,n=e.y>=0?(-u*Math.cos(h+Math.PI/3)-s/3/l)*Math.PI:-(-u*Math.cos(h+Math.PI/3)-s/3/l)*Math.PI,t=Math.abs(r)2*f*this.a)return;return n=t/this.a,r=Math.sin(n),i=Math.cos(n),o=this.long0,Math.abs(t)<=v?a=this.lat0:(a=Kt(i*this.sin_p12+e.y*r*this.cos_p12/t),s=Math.abs(this.lat0)-f,o=Math.abs(s)<=v?this.lat0>=0?X(this.long0+Math.atan2(e.x,-e.y)):X(this.long0-Math.atan2(-e.x,e.y)):X(this.long0+Math.atan2(e.x*r,t*this.cos_p12*i-e.y*this.sin_p12*r))),e.x=o,e.y=a,e}return l=Lt(this.es),c=Rt(this.es),u=jt(this.es),d=Ft(this.es),Math.abs(this.sin_p12-1)<=v?(a=Bt(((h=this.a*Mt(l,c,u,d,f))-(t=Math.sqrt(e.x*e.x+e.y*e.y)))/this.a,l,c,u,d),o=X(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=v?(h=this.a*Mt(l,c,u,d,f),a=Bt(((t=Math.sqrt(e.x*e.x+e.y*e.y))-h)/this.a,l,c,u,d),o=X(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),m=Math.atan2(e.x,e.y),p=Dt(this.a,this.e,this.sin_p12),y=Math.cos(m),w=-(b=this.e*this.cos_p12*y)*b/(1-this.es),x=3*this.es*(1-w)*this.sin_p12*this.cos_p12*y/(1-this.es),C=1-w*(S=(A=t/p)-w*(1+w)*Math.pow(A,3)/6-x*(1+3*w)*Math.pow(A,4)/24)*S/2-A*S*S*S/6,g=Math.asin(this.sin_p12*Math.cos(S)+this.cos_p12*Math.sin(S)*y),o=X(this.long0+Math.asin(Math.sin(m)*Math.sin(S)/Math.cos(g))),E=Math.sin(g),a=Math.atan2((E-this.es*C*this.sin_p12)*Math.tan(g),E*(1-this.es)),e.x=o,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]};const cn={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,a,s,l=e.x,c=e.y;return r=X(l-this.long0),t=Math.sin(c),n=Math.cos(c),i=Math.cos(r),((o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=v)&&(a=1*this.a*n*Math.sin(r),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)),e.x=a,e.y=s,e},inverse:function(e){var t,n,r,i,o,a,s;return e.x-=this.x0,e.y-=this.y0,n=Kt((t=Math.sqrt(e.x*e.x+e.y*e.y))/this.a),r=Math.sin(n),i=Math.cos(n),a=this.long0,Math.abs(t)<=v?(s=this.lat0,e.x=a,e.y=s,e):(s=Kt(i*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.abs(this.lat0)-f,Math.abs(o)<=v?(a=this.lat0>=0?X(this.long0+Math.atan2(e.x,-e.y)):X(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=s,e):(a=X(this.long0+Math.atan2(e.x*r,t*this.cos_p14*i-e.y*this.sin_p14*r)),e.x=a,e.y=s,e))},names:["ortho"]};var un=1,dn=2,hn=3,pn=4,fn=5,gn=6,mn={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function yn(e,t,n,r){var i;return ex&&i<=f+x?(r.value=mn.AREA_1,i-=f):i>f+x||i<=-(f+x)?(r.value=mn.AREA_2,i=i>=0?i-S:i+S):(r.value=mn.AREA_3,i+=f)),i}function vn(e,t){var n=e+t;return n<-S?n+=A:n>+S&&(n-=A),n}const bn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=f-x/2?this.face=fn:this.lat0<=-(f-x/2)?this.face=gn:Math.abs(this.long0)<=x?this.face=un:Math.abs(this.long0)<=f+x?this.face=this.long0>0?dn:pn:this.face=hn,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,n,r,i,o,a,s={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===fn)i=f-t,n>=x&&n<=f+x?(l.value=mn.AREA_0,r=n-f):n>f+x||n<=-(f+x)?(l.value=mn.AREA_1,r=n>0?n-S:n+S):n>-(f+x)&&n<=-x?(l.value=mn.AREA_2,r=n+f):(l.value=mn.AREA_3,r=n);else if(this.face===gn)i=f+t,n>=x&&n<=f+x?(l.value=mn.AREA_0,r=-n+f):n=-x?(l.value=mn.AREA_1,r=-n):n<-x&&n>=-(f+x)?(l.value=mn.AREA_2,r=-n-f):(l.value=mn.AREA_3,r=n>0?-n+S:-n-S);else{var c,u,d,h,p,g;this.face===dn?n=vn(n,+f):this.face===hn?n=vn(n,+S):this.face===pn&&(n=vn(n,-f)),h=Math.sin(t),p=Math.cos(t),g=Math.sin(n),c=p*Math.cos(n),u=p*g,d=h,this.face===un?r=yn(i=Math.acos(c),d,u,l):this.face===dn?r=yn(i=Math.acos(u),d,-c,l):this.face===hn?r=yn(i=Math.acos(-c),d,-u,l):this.face===pn?r=yn(i=Math.acos(-u),d,c,l):(i=r=0,l.value=mn.AREA_0)}return a=Math.atan(12/S*(r+Math.acos(Math.sin(r)*Math.cos(x))-f)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(r))))),l.value===mn.AREA_1?a+=f:l.value===mn.AREA_2?a+=S:l.value===mn.AREA_3&&(a+=1.5*S),s.x=o*Math.cos(a),s.y=o*Math.sin(a),s.x=s.x*this.a+this.x0,s.y=s.y*this.a+this.y0,e.x=s.x,e.y=s.y,e},inverse:function(e){var t,n,r,i,o,a,s,l,c,u,d,h,p={lam:0,phi:0},g={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?g.value=mn.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(g.value=mn.AREA_1,t-=f):e.x<0&&-e.x>=Math.abs(e.y)?(g.value=mn.AREA_2,t=t<0?t+S:t-S):(g.value=mn.AREA_3,t+=f),c=S/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),(s=1-(r=Math.cos(t))*r*(i=Math.tan(n))*i*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?s=-1:s>1&&(s=1),this.face===fn)l=Math.acos(s),p.phi=f-l,g.value===mn.AREA_0?p.lam=a+f:g.value===mn.AREA_1?p.lam=a<0?a+S:a-S:g.value===mn.AREA_2?p.lam=a-f:p.lam=a;else if(this.face===gn)l=Math.acos(s),p.phi=l-f,g.value===mn.AREA_0?p.lam=-a+f:g.value===mn.AREA_1?p.lam=-a:g.value===mn.AREA_2?p.lam=-a-f:p.lam=a<0?-a-S:-a+S;else{var m,y,v;c=(m=s)*m,y=(c+=(v=c>=1?0:Math.sqrt(1-c)*Math.sin(a))*v)>=1?0:Math.sqrt(1-c),g.value===mn.AREA_1?(c=y,y=-v,v=c):g.value===mn.AREA_2?(y=-y,v=-v):g.value===mn.AREA_3&&(c=y,y=v,v=-c),this.face===dn?(c=m,m=-y,y=c):this.face===hn?(m=-m,y=-y):this.face===pn&&(c=m,m=y,y=-c),p.phi=Math.acos(-v)-f,p.lam=Math.atan2(y,m),this.face===dn?p.lam=vn(p.lam,-f):this.face===hn?p.lam=vn(p.lam,-S):this.face===pn&&(p.lam=vn(p.lam,+f))}return 0!==this.es&&(u=p.phi<0?1:0,d=Math.tan(p.phi),h=this.b/Math.sqrt(d*d+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),u&&(p.phi=-p.phi)),p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var wn=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],xn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],An=.8487,Sn=1.3523,Cn=w/5,En=1/Cn,kn=18,Tn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};const _n={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=X(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*Cn);r<0?r=0:r>=kn&&(r=17);var i={x:Tn(wn[r],n=w*(n-En*r))*t,y:Tn(xn[r],n)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*An+this.x0,i.y=i.y*this.a*Sn+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(this.a*An),y:Math.abs(e.y-this.y0)/(this.a*Sn)};if(t.y>=1)t.x/=wn[18][0],t.y=e.y<0?-f:f;else{var n=Math.floor(t.y*kn);for(n<0?n=0:n>=kn&&(n=17);;)if(xn[n][0]>t.y)--n;else{if(!(xn[n+1][0]<=t.y))break;++n}var r=xn[n],i=5*(t.y-r[0])/(xn[n+1][0]-r[0]);i=function(e,t,n,r){for(var i=t;r;--r){var o=e(i);if(i-=o,Math.abs(o)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,n,r,i,o=e.x,a=e.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/yt(this.radius_p*Math.cos(a),Math.sin(a));if(n=s*Math.cos(o)*Math.cos(a),r=s*Math.sin(o)*Math.cos(a),i=s*Math.sin(a),(this.radius_g-n)*n-r*r-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/yt(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/yt(r,t)))}else"sphere"===this.shape&&(t=Math.cos(a),n=Math.cos(o)*t,r=Math.sin(o)*t,i=Math.sin(a),t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/yt(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/yt(r,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,n,r,i,o=-1,a=0,s=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*yt(1,s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*yt(1,a));var l=s/this.radius_p;if(t=a*a+l*l+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+a*a)),t=a*a+s*s+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var Dn=1.340264,Nn=-.081106,Bn=893e-6,zn=.003796,Vn=Math.sqrt(3)/2;const $n={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0},forward:function(e){var t=X(e.x-this.long0),n=e.y,r=Math.asin(Vn*Math.sin(n)),i=r*r,o=i*i*i;return e.x=t*Math.cos(r)/(Vn*(Dn+3*Nn*i+o*(7*Bn+9*zn*i))),e.y=r*(Dn+Nn*i+o*(Bn+zn*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t,n,r,i,o=e.y;for(i=0;i<12&&(o-=r=(o*(Dn+Nn*(t=o*o)+(n=t*t*t)*(Bn+zn*t))-e.y)/(Dn+3*Nn*t+n*(7*Bn+9*zn*t)),!(Math.abs(r)<1e-9));++i);return n=(t=o*o)*t*t,e.x=Vn*e.x*(Dn+3*Nn*t+n*(7*Bn+9*zn*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/Vn),e.x=X(e.x+this.long0),e},names:["eqearth","Equal Earth","Equal_Earth"]};var Gn=1e-10;function Un(e){var t,n,r,i=X(e.x-(this.long0||0)),o=e.y;return t=this.am1+this.m1-ht(o,n=Math.sin(o),r=Math.cos(o),this.en),n=r*i/(t*Math.sqrt(1-this.es*n*n)),e.x=t*Math.sin(n),e.y=this.am1-t*Math.cos(n),e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Wn(e){var t,n,r,i;if(e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a,n=yt(e.x,e.y=this.am1-e.y),i=ft(this.am1+this.m1-n,this.es,this.en),(t=Math.abs(i))Gn?(e.x=n*Math.sin(t=r*Math.cos(i)/n),e.y=this.cphi1-n*Math.cos(t)):e.x=e.y=0,e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function Hn(e){var t,n;e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a;var r=yt(e.x,e.y=this.cphi1-e.y);if(n=this.cphi1+this.phi1-r,Math.abs(n)>f)throw new Error;return t=Math.abs(Math.abs(n)-f)<=Gn?0:r*Math.atan2(e.x,e.y)/Math.cos(n),e.x=X(t+(this.long0||0)),e.y=Nt(n),e}const Yn={init:function(){var e;if(this.phi1=this.lat1,Math.abs(this.phi1)=f?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Hn,this.forward=qn)},names:["bonne","Bonne (Werner lat_1=90)"]};Me.defaultDatum="WGS84",Me.Proj=ye,Me.WGS84=new Me.Proj("WGS84"),Me.Point=Je,Me.toPoint=ke,Me.defs=G,Me.nadgrid=function(e,t){var n=new DataView(t),r=function(e){var t=e.getInt32(8,!1);if(11===t)return!1;t=e.getInt32(8,!0),11!==t&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(n),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:he(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(n,r),o=function(e,t,n){for(var r=176,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:25,i=[],o=e[2]-e[0],a=e[3]-e[1],s=0;s0&&Array.isArray(e[0]))for(var i=0;i{"use strict";n.d(t,{Aw:()=>b});var r=n(57054),i=n(2265),o=n(6883),a=function(e){return"uniqueValue"===(null==e?void 0:e.type)},s=function(e){return"esriSMS"===(null==e?void 0:e.type)},l=function(e){return"esriSFS"===(null==e?void 0:e.type)},c=function(e){return"esriSLS"===(null==e?void 0:e.type)},u=function(e){return"esriPMS"===(null==e?void 0:e.type)},d=function(e){return"simple"===(null==e?void 0:e.type)},h=function(e){return"classBreaks"===(null==e?void 0:e.type)};function p(e){switch(e){case"esriSLSDash":return"dash";case"esriSLSDashDot":return"dash-dot";case"esriSLSDashDotDot":return"dash-dot-dot";case"esriSLSDot":return"dot";case"esriSLSLongDash":return"longDash";case"esriSLSLongDashDot":return"longDash-dot";case"esriSLSNull":return"null";case"esriSLSShortDash":return"shortDash";case"esriSLSShortDashDot":return"shortDash-dot";case"esriSLSShortDashDotDot":return"shortDash-dot-dot";case"esriSLSSolid":case null:case void 0:return"solid";default:return o.vF.logInfo("Handling of ESRI renderer line style '".concat(e,"' is not coded, 'solid' will be used instead.")),"solid"}}function f(e){switch(e){case"esriSFSBackwardDiagonal":return"backwardDiagonal";case"esriSFSCross":return"cross";case"esriSFSDiagonalCross":return"diagonalCross";case"esriSFSForwardDiagonal":return"forwardDiagonal";case"esriSFSHorizontal":return"horizontal";case"esriSFSNull":case"esriSFSSolid":return"solid";case"esriSFSVertical":return"vertical";default:return o.vF.logInfo("Handling of ESRI renderer fill style '".concat(e,"' is not coded, 'solid' will be used instead.")),"solid"}}function g(e){switch(e){case"esriSMSCircle":return"circle";case"esriSMSCross":return"+";case"esriSMSDiamond":return"diamond";case"esriSMSSquare":return"square";case"esriSMSTriangle":return"triangle";case"esriSMSX":return"X";default:return o.vF.logInfo("Handling of ESRI renderer symbol style '".concat(e,"' is not coded, 'circle' will be used instead.")),"circle"}}function m(e){return e?(0,r.oJ)([e[0],e[1],e[2],e[3]/255]):"rgba(0,0,0,0)"}function y(e){if(e){if(s(e)){var t,n,r,i,a=[void 0!==e.xoffset?e.xoffset:0,void 0!==e.yoffset?e.yoffset:0];return{type:"simpleSymbol",rotation:void 0!==e.angle?e.angle:0,color:m(null==e?void 0:e.color),stroke:{color:m(null==e||null===(t=e.outline)||void 0===t?void 0:t.color),lineStyle:p(null==e||null===(n=e.outline)||void 0===n?void 0:n.style),width:null!==(r=null==e||null===(i=e.outline)||void 0===i?void 0:i.width)&&void 0!==r?r:0},size:.667*e.size,symbol:g(e.style),offset:a}}var d,h,y,v,b;if(c(e))return{type:"lineString",stroke:{color:m(null==e?void 0:e.color),lineStyle:p(null==e?void 0:e.style),width:null!==(d=null==e?void 0:e.width)&&void 0!==d?d:0}};if(l(e))return{type:"filledPolygon",color:m(null==e?void 0:e.color),stroke:{color:m(null==e||null===(h=e.outline)||void 0===h?void 0:h.color),lineStyle:p(null==e||null===(y=e.outline)||void 0===y?void 0:y.style),width:null!==(v=null==e||null===(b=e.outline)||void 0===b?void 0:b.width)&&void 0!==v?v:0},fillStyle:f(e.style)};if(u(e)){var w=[void 0!==e.xoffset?e.xoffset:0,void 0!==e.yoffset?e.yoffset:0];return{type:"iconSymbol",mimeType:e.contentType,src:e.imageData,rotation:void 0!==e.angle?e.angle:0,opacity:1,offset:w}}o.vF.logInfo("Handling of ESRI renderer symbol '".concat(e,"' is not coded, default GeoView settings will be used instead."))}}function v(e){return(0,i.hc)(e)||(0,i.cw)(e)?"Point":(0,i.C)(e)?"Polygon":(0,i.NF)(e)?"LineString":void 0}function b(e){return a(e)?function(e){var t={},n=null===e.defaultLabel?void 0:e.defaultLabel,r=!!e.defaultSymbol,o=y(e.defaultSymbol),a=[e.field1];e.field2&&a.push(e.field2),e.field3&&a.push(e.field3);var s=[];e.uniqueValueInfos.forEach((function(t){var n=y(t.symbol);n&&("geographic"===e.rotationType&&((0,i.hc)(n)||(0,i.cw)(n))&&(n.rotation=Math.PI/2-n.rotation),s.push({label:t.label,visible:!0,values:t.value.replaceAll("'","''").split(e.fieldDelimiter),settings:n}))}));var l=v(s[0].settings),c={styleType:"uniqueValue",defaultLabel:n,defaultVisible:r,defaultSettings:o,fields:a,uniqueValueStyleInfo:s};if(l)return t[l]=c,t}(e):d(e)?function(e){var t={},n=e.label,r=y(e.symbol);if(r){"geographic"===e.rotationType&&((0,i.hc)(r)||(0,i.cw)(r))&&(r.rotation=Math.PI/2-r.rotation);var o=v(r),a={styleType:"simple",label:n,settings:r};if(o)return t[o]=a,t}}(e):h(e)?function(e){for(var t={},n=null===e.defaultLabel?void 0:e.defaultLabel,r=y(e.defaultSymbol),o=!!e.defaultLabel,a=e.field,s=[],l=0;l{"use strict";n.d(t,{A$:()=>s,MU:()=>o,Z6:()=>i,eQ:()=>a,fT:()=>r,r7:()=>l});var r=["#800000","#008000","#000080","#808000","#800080","#008080","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#faebd7","#7fffd4","#ffe4c4","#deb887","#d2691e","#ff7f50","#6495ed","#fff8dc","#dc143c","#b8860b","#a9a9a9","#006400","#bdb76b","#8b008b","#556b2f","#ff8c00","#9932cc","#8b0000","#e9967a","#8fbc8f","#483d8b","#2f4f4f","#00ced1","#9400d3","#ff1493","#00bfff","#696969","#1e90ff","#b22222","#fffaf0","#228b22","#dcdcdc","#ffd700","#adff2f","#ff69b4","#cd5c5c","#4b0082","#f0e68c","#e6e6fa","#7cfc00","#add8e6","#f08080","#e0ffff","#90ee90","#ffb6c1","#20b2aa","#87cefa","#ba55d3","#9370db","#3cb371","#ffdead"],i=function(e){return e[e.unprocessedNode=0]="unprocessedNode",e[e.keyword=1]="keyword",e[e.variable=2]="variable",e[e.string=3]="string",e[e.number=4]="number",e[e.unary=5]="unary",e[e.binary=6]="binary",e[e.group=7]="group",e}({}),o=["is","is not","in","like","and","or","<","<=","=","<>",">",">=","||","/","*",","],a=["not","upper","lower","date"],s=["(",")"],l=[{key:"date",priority:15},{key:"upper",priority:15},{key:"lower",priority:15},{key:"u+",priority:15},{key:"u-",priority:15},{key:"*",priority:14},{key:"/",priority:14},{key:"+",priority:13},{key:"-",priority:13},{key:"||",priority:13},{key:",",priority:12},{key:"=",priority:11},{key:"<",priority:10},{key:">",priority:9},{key:"<=",priority:8},{key:">=",priority:7},{key:"<>",priority:6},{key:"is not",priority:5},{key:"is",priority:5},{key:"like",priority:4},{key:"in",priority:3},{key:"not",priority:2},{key:"and",priority:1},{key:"or",priority:0}]},58748:(e,t,n)=>{"use strict";n.d(t,{$G:()=>me,WN:()=>be,nS:()=>fe,qC:()=>ce,yt:()=>z});var r=n(42432),i=n(55723),o=n(55907),a=n(96880),s=n(74813),l=n.n(s),c=n(57054),u=n(58952),d=n(95005),h=n(3451),p=n(92368),f=n(66489),g=n(58373),m=n(64383),y=n(43910),v=n(59119),b=n(91366),w=n(76200),x=n(25079),A=n(2265),S=n(25488),C=n(6883);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=(0,c.oJ)((0,w.setAlphaColor)((0,c._j)(S.fT[T]),e));return t&&T++,n}var O=function(e){var t,n=null===(t=e.getGeometry())||void 0===t?void 0:t.getType();if(!n)throw new Error("Features must have a geometry type.");return n.startsWith("Multi")?n.slice(5):n},P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAYFBMVEX///8AAADr6+vk5ORWVlZsbGxKSko5OTn5+fnz8/OKiopvb28VFRUJCQmRkZH29va1tbXV1dW7u7suLi7GxsZeXl4/Pz/Pz8+lpaVjY2N7e3uurq7c3Nyenp5FRUUiIiJlLbf0AAAGlElEQVR4nN3d6XajMAwFYAOZhFCysBQ62Xj/txx3J4l1MWDLYvSbnvFXG8kydFDqK8pN9BmbWi09jlX0HdXCNen516I1Jbj0kAiJ+EAM8LiJ+tGUxIU6kmwlI07XsohTg+UW3cea1myfLg4VebXKyuSBcziuny5cIc3z5aEi35yOSX9waWn6Va/K5xkUNzfRB6fujbRsjFet6SyQPtxiYWO3Pv5o6py4CNWb4451vAPRXb/HVdEXgQxddnxjtYjs6w6vzavsPfKavG9+NwwiIt9vvzR0ctrQWUAZ00awqM6fI03LFXkNqDdKUIbWsWqVhYacG1N5Che7LP7W0MMCGfogaqX9JF9z3fyMBtQbokSFiVP8PS6Q09AeWpKma22GtUF7AUGaq7LRVMdFzM1t2xsWnQUqVG/kaOLfUaElcwMaOSut7Y0q+UNfdzuSGjk57WqJQRoxK+1ki9EaemdTrnfMYRziizUmWtOatN5nrHEyroWVPQbt09Itb5iH2ozA6JxGLjTmiF9M49v0rhjEwOrJGi4wUS5kbpxg4LkAYzjCdGAvwBeOMFED6g1buMKgesMWzjASNO4wcJ/GEw4x4euNS0wUBda4xeRhNW4xupMOmQUcY6LbOaDGNSZohnaOgb2nUMyKPoFqzqHqzVTMHjy/qUJVz8mYtKZP1TeBNNMxCmgC7QVmYFQLNOelYdBzzy7E3MzCIE2ILDAPo2r6uWfFn6FnYrCGu3rOxaT1K6lpuDVzMeoANNy7ztkYPTf0SmPe2czHKLwXWBhGqYJ+/afjrJ5OMKoAL2UwatxgVIv2AmxZwBFG1a/kW4DNeat4whUmBZobl8YVBlZPLo0zjIR64w4DswBPf+MSo1rwGgOHxilGXcArjQwatxjV0vdN7v++cYxB9cZ/f+MagzL0xrfGNSZot+Ycg+fmzWv1dI/RWYDW+L1vfGDQKYfX+8YLBmv8ZWg/GFRvqjdvGk8YuE/zpvGFQXPT+Vpp3jAop3We5sYfJkCG9ojRGnKf5qd6+sSk9V/6lMOHxifmfQ9NYfTcuF9pfjHwaZT7bs0zRhWcvadvDOyk35aGUQVdPSPHGdo/BnXSndvTQQaMAhnabb3hwBy46g0HBp8LOKw3LBi8T3OnYcKgnOZuD82FQZrclYYNA+fm6kbDh1GF9/uGEeM/C3BiVPvXr4YVo1r6teLqOr968mJUQc9Nd509N8wYvNLmzg03xmsWYMdgzbx6w49B9SafVz0DYNBeYDdrbkJgUE6L5mSBIBitoTvpGZowGJ2h6Sfs0zWBMCnQTO+kA2H8aEJhYL2Zeg4dDuOh9wyIUQk9N3f/880iMCpB59AT/oGgGFRvdhOyQFiM7tZc1pvAGKTZjO49Q2NgtzZWExyjCrDSRmrCY9AeOh93LiAAg7q13ahuTQLG2dyIwKC5GXMCJQODctqIbk0IBlZP65wmBYMzdDz886IwqjCOZNTcyME4qJ6CMFpDzo3d+wKSMLOfrYnCqMu86ikLoy6gk94PaoRhVAJObgfnRhpGXeicFg3lNHEYlKHzAY08jK6e1EdJhuqNQIzWTKyeEjGov4Ga2DjUwBjYre1pzfYkEaNzGqmJMlpjLLrBMWgvgKqnqeiGx2gNfXIL+hvDAhWAQTmtg5rHH5OAmZqhn44TRGCmah7bIhkYqNmDlXY/YiEYdQH3Dag391lACmZqt3bXsorBoOqJ9gL9X4IcDNSgvcDvjwnCoN5zh/YCPz8mCTO19/zRiMKoy4ns1iKQob9/CcOYLGb8egl4gziH9eZDM/yVkzXrh2XoP/TS+zRQbz7K1PD3Z3Y5a4CvjoK9QNq+a0Z8GSh8VHS9Sd93Nv1vNsUnUR9jNQQ6gdJ7gX1fd6VziZRA1fO1/50zaR+WNQbS3M8U+BNYMQH2aXcRZ6FHahG55XPP9LyAdQa7tbtVB4595ISlJn2Tn88iWG/6YT6QFheov+kF+BatqLDSHN7At88lhdVK2+6XkNEiy7lJskUkAd1JW739ANo9SYHObHqa6zKyQGdVbw71n0XcOF1mVT2T6+sSOJaaNDmfGum9mu1K0xEXZXZarSUE+D/vbTV6fg7bWEIUdEOf2600SZHQe0bLfZqkSOjnN7sFakApX95Ku/xX9w3QWNYbSQGeEYzI0FLi/5obkKFv7fCPCwvyOLwR8W3skZEYXzQT8L3iSWGcm4Va3u+bp5zWLNViyNChvoPpJB40i7Y8aBZuudMs3tLbQ9/Xl38GJru99HKKPgAAAABJRU5ErkJggg==",I={dash:[16,4],"dash-dot":[16,4,2,4],"dash-dot-dot":[16,4,2,4,2,4],dot:[2,2],longDash:[25,5],"longDash-dot":[25,5,2,5],null:[0,3],shortDash:[7,3],"shortDash-dot":[7,3,2,3],"shortDash-dot-dot":[7,3,2,3,2,3],solid:void 0},M=[{moveTo:[1,0],lineTo:[2,1]},{moveTo:[0,0],lineTo:[2,2]},{moveTo:[0,1],lineTo:[1,2]}],L=[{moveTo:[1,0],lineTo:[1,2]},{moveTo:[0,1],lineTo:[2,1]}],R=[{moveTo:[0,0],lineTo:[2,2]},{moveTo:[0,2],lineTo:[2,0]}],j=[{moveTo:[0,1],lineTo:[1,0]},{moveTo:[0,2],lineTo:[2,0]},{moveTo:[2,1],lineTo:[1,2]}],F=[{moveTo:[0,1],lineTo:[2,1]}],D=[{moveTo:[1,0],lineTo:[1,2]}],N=50,B=50;function z(e){return new Promise((function(t){var n=new Image;n.src=e,n.decode().then((function(){return t(n)})).catch((function(n){C.vF.logError("GeoviewRenderer.loadImage(src) - Error while loading the src image =",e,n),t(null)}))}))}function V(e){return $.apply(this,arguments)}function $(){return($=(0,a.A)(l().mark((function e(t){var n,r,i,o,a,s,c;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=null==t?void 0:t.getImage(),e.next=4,z(n.getSrc());case 4:if(!(r=e.sent)){e.next=16;break}return i=n.getSize(),o=Array.isArray(i)?i[0]:r.width||N,a=Array.isArray(i)?i[1]:r.height||B,(s=document.createElement("canvas")).width=o,s.height=a,(c=s.getContext("2d")).globalAlpha=n.getOpacity(),c.drawImage(r,0,0),e.abrupt("return",s);case 16:return e.abrupt("return",null);case 19:return e.prev=19,e.t0=e.catch(0),C.vF.logError("Error creating incon canvas for pointStyle",e.t0),e.abrupt("return",null);case 23:case"end":return e.stop()}}),e,null,[[0,19]])})))).apply(this,arguments)}function G(e){return U.apply(this,arguments)}function U(){return(U=(0,a.A)(l().mark((function e(t){var n,r,i,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,z(t);case 3:if(!(n=e.sent)){e.next=13;break}return r=n.width||N,i=n.height||B,(o=document.createElement("canvas")).width=r,o.height=i,o.getContext("2d").drawImage(n,0,0),e.abrupt("return",o);case 13:return e.abrupt("return",null);case 16:return e.prev=16,e.t0=e.catch(0),C.vF.logError("Error creating incon canvas for pointStyle",e.t0),e.abrupt("return",null);case 20:case"end":return e.stop()}}),e,null,[[0,16]])})))).apply(this,arguments)}function W(e){var t=e.getImage().getSize(),n=Array.isArray(t)?t:[N,B],r=(0,o.A)(n,2),i=r[0],a=r[1],s=document.createElement("canvas");s.width=i+4,s.height=a+4;var l=(0,b.toContext)(s.getContext("2d"));return l.setStyle(e),l.setTransform([1,0,0,1,0,0]),l.drawGeometry(new m.A([s.width/2,s.width/2])),s}function q(e){var t=document.createElement("canvas");t.width=N,t.height=B;var n=t.getContext("2d"),r=n.createLinearGradient(0,t.height,t.width,0);r.addColorStop(0,"#7f7f7f"),r.addColorStop(.667,"#ffffff"),r.addColorStop(1,"#ffffff"),n.fillStyle=r,n.fillRect(0,0,t.width,t.height);var i=(0,b.toContext)(n);return i.setStyle(e),i.setTransform([1,0,0,1,0,0]),i.drawGeometry(new y.A([[4,t.height-4],[t.width-4,4]])),t}function H(e){var t=document.createElement("canvas");t.width=N,t.height=B;var n=t.getContext("2d"),r=n.createLinearGradient(0,t.height,t.width,0);r.addColorStop(0,"#7f7f7f"),r.addColorStop(.667,"#ffffff"),r.addColorStop(1,"#ffffff"),n.fillStyle=r,n.fillRect(0,0,t.width,t.height);var i=(0,b.toContext)(n);return i.setStyle(e),i.setTransform([1,0,0,1,0,0]),i.drawGeometry(new v.Ay([[[4,4],[t.width-4,4],[t.width-4,t.height-4],[4,t.height-4],[4,4]]])),n.getImageData(0,0,t.width,t.height),t}function Y(e){var t,n,r,i;return void 0===e.stroke&&(e.stroke={}),void 0===e.stroke.color&&(e.stroke.color="color"in e?(0,c.oJ)((0,w.setAlphaColor)((0,c._j)(e.color),1)):_(1,!0)),{color:null===(t=e.stroke)||void 0===t?void 0:t.color,width:null===(n=e.stroke)||void 0===n?void 0:n.width,lineCap:"butt",lineJoin:"bevel",lineDash:I[void 0!==(null===(r=e.stroke)||void 0===r?void 0:r.lineStyle)?null===(i=e.stroke)||void 0===i?void 0:i.lineStyle:"solid"]}}function K(e,t){if(e.nodeType!==S.Z6.binary){if(e.nodeType===S.Z6.unary){if(t.length<1||"("===t[t.length-1].nodeValue)throw new Error("unary operator error");var n=t.pop();switch(e.nodeValue){case"not":if("boolean"!=typeof n.nodeValue)throw new Error("not operator error");t.push({nodeType:S.Z6.variable,nodeValue:!n.nodeValue});break;case"u-":if("number"!=typeof n.nodeValue)throw new Error("unary - operator error");t.push({nodeType:S.Z6.variable,nodeValue:-n.nodeValue});break;case"u+":if("number"!=typeof n.nodeValue)throw new Error("unary + operator error");t.push({nodeType:S.Z6.variable,nodeValue:n.nodeValue});break;case"date":if(null===n.nodeValue)t.push(n);else{if("string"!=typeof n.nodeValue)throw new Error("DATE operator error");n.nodeValue=x.P.applyInputDateFormat(n.nodeValue),t.push({nodeType:S.Z6.variable,nodeValue:x.P.convertToMilliseconds(x.P.convertToUTC(n.nodeValue))})}break;case"upper":if(null===n.nodeValue)t.push(n);else{if("string"!=typeof n.nodeValue)throw new Error("UPPER operator error");t.push({nodeType:S.Z6.variable,nodeValue:n.nodeValue.toUpperCase()})}break;case"lower":if(null===n.nodeValue)t.push(n);else{if("string"!=typeof n.nodeValue)throw new Error("LOWER operator error");t.push({nodeType:S.Z6.variable,nodeValue:n.nodeValue.toLowerCase()})}break;default:throw new Error("unknown operator error")}}}else{if(t.length<2||"("===t[t.length-2].nodeValue)throw new Error("binary operator error - operator = '".concat(e.nodeValue,"'"));var r,o=t.pop(),a=t.pop();switch(e.nodeValue){case"is not":if(null!==o.nodeValue)throw new Error("Invalid is not null operator syntax");t.push({nodeType:S.Z6.variable,nodeValue:null!==a.nodeValue});break;case"is":if(null!==o.nodeValue)throw new Error("Invalid is null operator syntax");t.push({nodeType:S.Z6.variable,nodeValue:null===a.nodeValue});break;case"=":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue===o.nodeValue});break;case"<":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue>o.nodeValue});break;case"<=":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue<=o.nodeValue});break;case">=":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue>=o.nodeValue});break;case"<>":null===a.nodeValue||null===o.nodeValue?t.push({nodeType:S.Z6.variable,nodeValue:null}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue!==o.nodeValue});break;case"and":if(null===a.nodeValue&&(null===o.nodeValue||!0===o.nodeValue)||!0===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:null});else if(null===a.nodeValue&&!1===o.nodeValue||!1===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:!1});else{if("boolean"!=typeof a.nodeValue||"boolean"!=typeof o.nodeValue)throw new Error("and operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue&&o.nodeValue})}break;case"or":if(null===a.nodeValue&&(null===o.nodeValue||!1===o.nodeValue)||!1===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:null});else if(null===a.nodeValue&&!0===o.nodeValue||!0===a.nodeValue&&null===o.nodeValue)t.push({nodeType:S.Z6.variable,nodeValue:!0});else{if("boolean"!=typeof a.nodeValue||"boolean"!=typeof o.nodeValue)throw new Error("or operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue||o.nodeValue})}break;case"+":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("+ operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue+o.nodeValue});break;case"-":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("- operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue-o.nodeValue});break;case"*":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("* operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue*o.nodeValue});break;case"/":if("number"!=typeof a.nodeValue||"number"!=typeof o.nodeValue)throw new Error("/ operator error");t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue/o.nodeValue});break;case"||":if("string"!=typeof a.nodeValue&&null!==a.nodeValue||"string"!=typeof o.nodeValue)throw new Error("|| operator error");t.push({nodeType:S.Z6.variable,nodeValue:null===a.nodeValue?null:"".concat(a.nodeValue).concat(o.nodeValue)});break;case"like":if("string"!=typeof a.nodeValue&&null!==a.nodeValue||"string"!=typeof o.nodeValue)throw new Error("like operator error");var s,l=new RegExp(o.nodeValue.toLowerCase().replaceAll(".","\\.").replaceAll("%",".*").replaceAll("_","."),""),c=a.nodeValue?a.nodeValue.toLowerCase().match(l):null;t.push({nodeType:S.Z6.variable,nodeValue:null!==c&&c[0]===(null===(s=a.nodeValue)||void 0===s?void 0:s.toLowerCase())});break;case",":if(r={nodeType:S.Z6.variable,nodeValue:Array.isArray(o.nodeValue)?[a.nodeValue].concat(o.nodeValue):[a.nodeValue,o.nodeValue]},(0,i.A)(r.nodeValue[0])!==(0,i.A)(r.nodeValue[1]))throw new Error("IN clause can't mix types");t.push(r);break;case"in":Array.isArray(o.nodeValue)?t.push({nodeType:S.Z6.variable,nodeValue:o.nodeValue.includes(a.nodeValue)}):t.push({nodeType:S.Z6.variable,nodeValue:a.nodeValue===o.nodeValue});break;default:throw new Error("unknown operator error")}}}function X(e,t){var n=[],r=[],i=function(e,t){return e<0&&t.length+e>=0?t[t.length+e]:e>0&&eo(t[a]);K(n.pop(),r))u=i(-2,n);n.push(k({},t[a]))}for(var d=i(-1,n);d&&"("!==d.nodeValue;K(n.pop(),r))d=i(-2,n);n.pop()}catch(e){throw new Error("Invalid vector layer filter (".concat(e.message,")."))}if(1!==r.length||r[0].nodeType!==S.Z6.variable)throw new Error("Invalid vector layer filter (invalid structure).");var h=r.pop();return h?!h.nodeValue:void 0}function Z(e,t,n){void 0===e.color&&(e.color=_(.25,!0));var r={color:e.color},i=Y(e),o={radius:void 0!==e.size?e.size:6,radius2:void 0!==e.size?e.size/3:2,angle:n,points:t};return o.stroke=new u.A(i),o.fill=new d.A(r),void 0!==e.offset&&(o.displacement=e.offset),void 0!==e.rotation&&(o.rotation=e.rotation),new h.Ay({image:new f.A(o)})}function J(e,t,n,r){void 0===e.color&&(e.color=_(.25,!0));var i={color:e.color},o=Y(e),a={radius:void 0!==e.size?e.size:6,angle:n,scale:r,points:t};return a.stroke=new u.A(o),a.fill=new d.A(i),void 0!==e.offset&&(a.displacement=e.offset),void 0!==e.rotation&&(a.rotation=e.rotation),new h.Ay({image:new f.A(a)})}var Q={circle:function(e){void 0===e.color&&(e.color=_(.25,!0));var t={color:e.color},n=Y(e),r={radius:void 0!==e.size?e.size:4};return r.stroke=new u.A(n),r.fill=new d.A(t),void 0!==e.offset&&(r.displacement=e.offset),void 0!==e.rotation&&(r.rotation=e.rotation),new h.Ay({image:new p.A(r)})},"+":function(e){return Z(e,4,0)},diamond:function(e){return J(e,4,0,[.75,1])},square:function(e){return J(e,4,Math.PI/4,[1,1])},triangle:function(e){return J(e,3,0,[1,1])},X:function(e){return Z(e,4,Math.PI/4)},star:function(e){return Z(e,5,0)}};function ee(e,t,n){if(void 0===n||0===n.length||!t||!X(t,n)){var r=(0,A.s0)(e)?e.settings:e;if((0,A.cw)(r)){var i=r.symbol;return Q[i].call("",r)}return(0,A.hc)(r)?function(e){var t={};return t.src="data:".concat(e.mimeType,";base64,").concat(e.src),void 0!==e.width&&void 0!==e.height&&(t.size=[e.width,e.height]),void 0!==e.offset&&(t.offset=e.offset),void 0!==e.rotation&&(t.rotation=e.rotation),void 0!==e.opacity&&(t.opacity=e.opacity),new h.Ay({image:new g.A(t)})}(r):void 0}}function te(e,t,n){if(void 0===n||0===n.length||!t||!X(t,n)){var r,i=(0,A.s0)(e)?e.settings:e;if(t&&(r=t.getGeometry()),(0,A.NF)(i)){var o=Y(i);return new h.Ay({stroke:new u.A(o),geometry:r})}}}function ne(e,t,n){var r=void 0!==e.paternSize?e.paternSize:8;void 0===e.color&&(e.color=_(.25,!0));var i={color:e.color},o=Y(e),a=document.createElement("canvas");a.width=2*r,a.height=2*r;var s=a.getContext("2d");s.strokeStyle=e.color,s.lineCap="butt",s.lineWidth=void 0!==e.paternWidth?e.paternWidth:1,s.beginPath();for(var l=0;l=t[0].minValue&&i<=t[0].maxValue)return 0;for(var o=1;ot[o].minValue&&i<=t[o].maxValue)return o}}var pe={simple:{Point:ee,LineString:te,Polygon:ie},uniqueValue:{Point:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.IG)(e)){var i=e.defaultSettings,o=e.fields,a=e.uniqueValueStyleInfo,s=de(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ee(a[s].settings);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ee(i)}},LineString:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.IG)(e)){var i=e.defaultSettings,o=e.fields,a=e.uniqueValueStyleInfo,s=de(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return te(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return te(i,t)}},Polygon:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.IG)(e)){var i=e.defaultSettings,o=e.fields,a=e.uniqueValueStyleInfo,s=de(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ie(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ie(i,t)}}},classBreaks:{Point:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.$h)(e)){var i=e.defaultSettings,o=e.field,a=e.classBreakStyleInfo,s=he(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ee(a[s].settings);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ee(i)}},LineString:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.$h)(e)){var i=e.defaultSettings,o=e.field,a=e.classBreakStyleInfo,s=he(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return te(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return te(i,t)}},Polygon:function(e,t,n,r){if((void 0===n||0===n.length||!t||!X(t,n))&&(0,A.$h)(e)){var i=e.defaultSettings,o=e.field,a=e.classBreakStyleInfo,s=he(o,a,t);if(void 0!==s&&(r||!1!==a[s].visible))return ie(a[s].settings,t);if(void 0===s&&void 0!==i&&(r||!1!==e.defaultVisible))return ie(i,t)}}}};function fe(e,t,n,i,o,a){var s=O(e),l=t;if(!t||!t[s]){var c=function(e,t){return"Point"===e?{styleType:"simple",label:t,settings:{type:"simpleSymbol",color:_(.25),stroke:{color:_(1,!0),lineStyle:"solid",width:1},symbol:"circle"}}:"LineString"===e?{styleType:"simple",label:t,settings:{type:"lineString",stroke:{color:_(1,!0)}}}:"Polygon"===e?{styleType:"simple",label:t,settings:{type:"filledPolygon",color:_(.25),stroke:{color:_(1,!0)},fillStyle:"solid"}}:void C.vF.logError("Geometry type ".concat(e," is not supported by the GeoView viewer."))}(s,n);c&&(t?l[s]=c:l=(0,r.A)({},s,c),null==a||a(s,c))}if(l[s]){var u=t[s],d=u.styleType;return pe[d][s].call("",u,e,i,o)}}var ge={};function me(e,t,n,r,i,o){return ye.apply(this,arguments)}function ye(){return(ye=(0,a.A)(l().mark((function e(t,n,r,i,o,a){var s,c,u,d,h,p,f,g,m;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.getGeometry()){e.next=21;break}if(c=O(t),!n[c]){e.next=21;break}if(u=n[c],d=u.styleType,!(h=pe[d][c](u,t,r,i))){e.next=21;break}if("Point"!==c){e.next=20;break}if(!((0,A.s0)(u)&&(0,A.cw)(u.settings)||(0,A.IG)(u)&&(0,A.cw)(u.uniqueValueStyleInfo[0].settings)||(0,A.$h)(u)&&(0,A.cw)(u.classBreakStyleInfo[0].settings))){e.next=12;break}s=W(h),e.next=18;break;case 12:return e.next=14,V(h);case 14:if(e.t0=e.sent,e.t0){e.next=17;break}e.t0=void 0;case 17:s=e.t0;case 18:e.next=21;break;case 20:"LineString"===c?s=q(h):o?(p=JSON.stringify(h.getStroke()),f=JSON.stringify(h.getFill()),ge[g=p+f]||(ge[g]=H(h)),s=ge[g]):s=H(h);case 21:if(!s){e.next=23;break}return e.abrupt("return",s);case 23:return e.next=25,null==a?void 0:a();case 25:if(!(m=e.sent)){e.next=35;break}return e.next=29,G(m);case 29:if(e.t1=e.sent,e.t1){e.next=32;break}e.t1=void 0;case 32:if(!(s=e.t1)){e.next=35;break}return e.abrupt("return",s);case 35:return e.next=37,G(P);case 37:return e.abrupt("return",e.sent);case 38:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ve(e,t,n){var r=function(e){return["+","-"].includes(e)?S.Z6.unprocessedNode:S.MU.includes(e)?S.Z6.binary:S.eQ.includes(e)?S.Z6.unary:S.A$.includes(e)?S.Z6.group:S.Z6.keyword};return e.reduce((function(e,i){return i.nodeType!==S.Z6.unprocessedNode?e.push(i):e=e.concat(i.nodeValue.trim().split(void 0===n?t:n).reduce((function(e,n){return""===n?(e.push({nodeType:r(t),nodeValue:t}),e):(e.push({nodeType:S.Z6.unprocessedNode,nodeValue:n.trim()}),e.push({nodeType:r(t),nodeValue:t}),e)}),[]).slice(0,-1)),e}),[])}function be(e){var t,n=e;if(n[0].nodeValue=n[0].nodeValue.replaceAll(/\s{2,}/g," ").trim(),n[0].nodeValue=n[0].nodeValue.split(/^date '|(?<=\s)date '/gi).join("date°'"),n=function(e){var t=!1,n=!1,r=0,i="",o=e.reduce((function(e,o){return n?(o.nodeType===S.Z6.unprocessedNode?t?(i="".concat(i).concat(o.nodeValue),t=!1):(e.push({nodeType:S.Z6.string,nodeValue:i}),e.push(o),i="",n=!1,t=!1,r=0):2===(r+=1)&&(i="".concat(i,"'"),t=!0,r=0),e):(o.nodeType===S.Z6.keyword?(n=!0,t=!0):e.push(o),e)}),[]);if(n){if(t||1!==r)throw new Error("string not closed");o.push({nodeType:S.Z6.string,nodeValue:i})}return o}(n=ve(n,"'")),n=ve(n,"("),(n=ve(n,")")).reduce((function(e,t){return t.nodeType===S.Z6.group?e+1:e}),0)%2)throw new Error("unbalanced parentheses");return n=ve(n,"date",/^date°$|^date°|(?<=\s)date°/g),n=ve(n,"upper",/^upper\b|(?<=\s)upper\b/gi),n=ve(n,"lower",/^lower\b|(?<=\s)lower\b/gi),n=ve(n,"is not",/^is\s+not\b|(?<=\s)is\s+not\b/gi),n=ve(n,"is",/^is\b(?!\s*not\b)|(?<=\s)is\b(?!\s*not\b)/gi),n=ve(n,"in",/^in\b|(?<=\s)in\b/gi),n=ve(n,","),n=ve(n,"not",/^not\b|(?<=\s)not\b/gi),n=ve(n,"and",/^and\b|(?<=\s)and\b/gi),n=ve(n,"or",/^or\b|(?<=\s)or\b/gi),n=ve(n,"like",/^like\b|(?<=\s)like\b/gi),n=ve(n,"=",/(?<])=/g),n=ve(n,"<",/<(?![>=])/g),n=ve(n,">",/(?(?!=)/g),n=ve(n,"<>"),n=ve(n,"<="),n=ve(n,">="),n=ve(n,"+"),n=ve(n,"-"),n=ve(n,"*"),n=ve(n,"/"),n=ve(n,"||"),n=(t=n).map((function(e,n){if(e.nodeType===S.Z6.unprocessedNode){if(Number.isNaN(Number(e.nodeValue.slice(0,1))))return["+","-"].includes(e.nodeValue)?0!==n&&[S.Z6.number,S.Z6.string,S.Z6.variable].includes(t[n-1].nodeType)?e.nodeType=S.Z6.binary:(e.nodeType=S.Z6.unary,e.nodeValue="u".concat(e.nodeValue)):"string"==typeof e.nodeValue&&"null"===e.nodeValue.toLowerCase()?(e.nodeType=S.Z6.variable,e.nodeValue=null):e.nodeType=S.Z6.variable,e;if(e.nodeType=S.Z6.number,e.nodeValue=Number(e.nodeValue),Number.isNaN(e.nodeValue))throw new Error("".concat(e.nodeValue," is an invalid number"));return e}return e}))}},35415:(e,t,n)=>{"use strict";n.r(t),n.d(t,{calculateDistance:()=>Oe,convertTypeFeatureStyleToOpenLayersStyle:()=>ye,coordFormatDMS:()=>me,createEmptyBasemap:()=>pe,extentToPolygon:()=>Se,geojsonToGeometry:()=>de,geometryToWKT:()=>ce,getArea:()=>Te,getDefaultDrawingStyle:()=>he,getESRIServiceMetadata:()=>te,getExtentIntersection:()=>xe,getExtentIntersectionMaybe:()=>Ae,getExtentUnion:()=>be,getExtentUnionMaybe:()=>we,getLegendStylesFromConfig:()=>fe,getLength:()=>_e,getMapServerUrl:()=>se,getMinOrMaxExtents:()=>ve,getOGCServerUrl:()=>le,getTranslateValues:()=>ge,getWFSServiceMetadata:()=>oe,getWMSServiceMetadata:()=>re,layerTypes:()=>ee,polygonToExtent:()=>Ce,validateExtent:()=>Ee,validateExtentWhenDefined:()=>ke,wktToGeometry:()=>ue});var r=n(96880),i=n(74813),o=n.n(i),a=n(34946),s=n(18064),l=n(98246),c=n(42669),u=n(43910),d=n(67103),h=n(87620),p=n(32332),f=n(64383),g=n(59119),m=n(4472),y=n(45282);class v extends m.Ay{constructor(){super()}getType(){return"text"}readFeature(e,t){return this.readFeatureFromText(b(e),this.adaptOptions(t))}readFeatureFromText(e,t){return(0,y.b0)()}readFeatures(e,t){return this.readFeaturesFromText(b(e),this.adaptOptions(t))}readFeaturesFromText(e,t){return(0,y.b0)()}readGeometry(e,t){return this.readGeometryFromText(b(e),this.adaptOptions(t))}readGeometryFromText(e,t){return(0,y.b0)()}readProjection(e){return this.readProjectionFromText(b(e))}readProjectionFromText(e){return this.dataProjection}writeFeature(e,t){return this.writeFeatureText(e,this.adaptOptions(t))}writeFeatureText(e,t){return(0,y.b0)()}writeFeatures(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))}writeFeaturesText(e,t){return(0,y.b0)()}writeGeometry(e,t){return this.writeGeometryText(e,this.adaptOptions(t))}writeGeometryText(e,t){return(0,y.b0)()}}function b(e){return"string"==typeof e?e:""}const w=v,x={POINT:f.A,LINESTRING:u.A,POLYGON:g.Ay,MULTIPOINT:h.A,MULTILINESTRING:d.A,MULTIPOLYGON:p.A},A="EMPTY",S="Z",C="M",E=0,k=1,T=2,_=3,O=4,P=5,I=6,M={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class L{constructor(e){this.wkt=e,this.index_=-1}isAlpha_(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isNumeric_(e,t){return t=void 0!==t&&t,e>="0"&&e<="9"||"."==e&&!t}isWhiteSpace_(e){return" "==e||"\t"==e||"\r"==e||"\n"==e}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const e=this.nextChar_(),t=this.index_;let n,r=e;if("("==e)n=T;else if(","==e)n=P;else if(")"==e)n=_;else if(this.isNumeric_(e)||"-"==e)n=O,r=this.readNumber_();else if(this.isAlpha_(e))n=k,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(""!==e)throw new Error("Unexpected character: "+e);n=I}return{position:t,value:r,type:n}}readNumber_(){let e;const t=this.index_;let n=!1,r=!1;do{"."==e?n=!0:"e"!=e&&"E"!=e||(r=!0),e=this.nextChar_()}while(this.isNumeric_(e,n)||!r&&("e"==e||"E"==e)||r&&("-"==e||"+"==e));return parseFloat(this.wkt.substring(t,this.index_--))}readText_(){let e;const t=this.index_;do{e=this.nextChar_()}while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}}class R{constructor(e){this.lexer_=e,this.token_={position:0,type:E},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(e){return this.token_.type==e}match(e){const t=this.isTokenType(e);return t&&this.consume_(),t}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let e="XY";const t=this.token_;if(this.isTokenType(k)){const n=t.value;n===S?e="XYZ":n===C?e="XYM":"ZM"===n&&(e="XYZM"),"XY"!==e&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(T)){const e=[];do{e.push(this.parseGeometry_())}while(this.match(P));if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(T)){const e=this.parsePoint_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(T)){const e=this.parsePointList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(T)){const e=this.parseLineStringTextList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(T)){let e;if(e=this.token_.type==T?this.parsePointTextList_():this.parsePointList_(),this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(T)){const e=this.parseLineStringTextList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(T)){const e=this.parsePolygonTextList_();if(this.match(_))return e}throw new Error(this.formatErrorMessage_())}parsePoint_(){const e=[],t=this.layout_.length;for(let n=0;n0&&(r+=" "+t)}return 0===n.length?r+" "+A:r+"("+n+")"}const z=class extends w{constructor(e){super(),e=e||{},this.splitCollection_=void 0!==e.splitCollection&&e.splitCollection}parse_(e){const t=new L(e);return new R(t).parse()}readFeatureFromText(e,t){const n=this.readGeometryFromText(e,t),r=new l.A;return r.setGeometry(n),r}readFeaturesFromText(e,t){let n=[];const r=this.readGeometryFromText(e,t);n=this.splitCollection_&&"GeometryCollection"==r.getType()?r.getGeometriesArray():[r];const i=[];for(let e=0,t=n.length;e0&&(i=i.concat("&layers=".concat(n))),e.next=5,fetch(i);case 5:return a=e.sent,e.t0=r,e.next=9,a.text();case 9:return e.t1=e.sent,l=e.t0.read.call(e.t0,e.t1),e.abrupt("return",l);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(e){return ae.apply(this,arguments)}function ae(){return(ae=(0,r.A)(o().mark((function e(t){var n,r,i,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.A.get(t,{params:{request:"getcapabilities",service:"WFS"}});case 2:return n=e.sent,r=(new DOMParser).parseFromString(n.data,"text/xml"),i=(0,X.xmlToJson)(r),s=i["wfs:WFS_Capabilities"],e.abrupt("return",s);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;if(n.includes("MapServer")&&(n=n.slice(0,n.indexOf("MapServer")+9)),n.includes("FeatureServer")&&(n=n.slice(0,n.indexOf("FeatureServer")+13)),t){var r=n.slice(n.indexOf("/services/"));n="".concat(n.slice(0,e.indexOf("services/")),"rest").concat(r)}return n}function le(e){var t=e;return t.includes("collections")&&(t=t.slice(0,t.indexOf("collections"))),t}function ce(e){return e?(new z).writeGeometry(e):null}function ue(e,t){return e?(new z).readGeometry(e,t):null}function de(e,t){return e?(new V.A).readGeometry(e,t):null}function he(e,t,n){return new $.Ay({stroke:new G.A({color:e||"orange",width:t||2}),fill:new U.A({color:n||"transparent"}),image:new W.A({radius:4,fill:new U.A({color:n||"orange"}),stroke:new G.A({color:e||"orange",width:t||2})})})}function pe(){var e={basemapId:"empty",source:new H.A,type:"empty",opacity:0,resolutions:[],origin:[],minScale:0,maxScale:17,extent:[0,0,0,0]},t=new Y.A(e);return t.set("mapId","basemap"),t}function fe(e){return(0,Q.qC)(e)}function ge(e){var t=(0,K.KX)(window.getComputedStyle(e)),n=t.transform||t.webkitTransform||t.mozTransform,r={x:0,y:0,z:0};if("none"===n||void 0===n)return r;var i=n.includes("3d")?"3d":"2d",o=n.match(/matrix.*\((.+)\)/),a=o&&o[1].split(", ");return"2d"===i?{x:Number(a&&a[4]),y:Number(a&&a[5]),z:0}:"3d"===i?{x:Number(a&&a[12]),y:Number(a&&a[13]),z:Number(a&&a[14])}:r}function me(e){var t=String.fromCharCode(176),n=Math.floor(Math.abs(e))*(e<0?-1:1),r=Math.floor(Math.abs(60*(e-n))),i=Math.round(3600*(Math.abs(e)-Math.abs(n)-r/60));return"".concat(Math.abs(n)).concat(t," ").concat(r>=10?"".concat(r):"0".concat(r),"' ").concat(i>=10?"".concat(i):"0".concat(i),'"')}function ye(e){return he(null==e?void 0:e.strokeColor,null==e?void 0:e.strokeWidth,null==e?void 0:e.fillColor)}function ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"max",r=[];return"max"===n?r=[Math.min(e[0],t[0]),Math.min(e[1],t[1]),Math.max(e[2],t[2]),Math.max(e[3],t[3])]:"min"===n&&(r=[Math.max(e[0],t[0]),Math.max(e[1],t[1]),Math.min(e[2],t[2]),Math.min(e[3],t[3])]),r}function be(e,t){return t?[Math.min(e[0],t[0]),Math.min(e[1],t[1]),Math.max(e[2],t[2]),Math.max(e[3],t[3])]:e}function we(e,t){return e?be(e,t):t}function xe(e,t){return t?[Math.max(e[0],t[0]),Math.max(e[1],t[1]),Math.min(e[2],t[2]),Math.min(e[3],t[3])]:e}function Ae(e,t){return e?xe(e,t):t}function Se(e){return new g.Ay([[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]])}function Ce(e){for(var t=e.getCoordinates()[0],n=t[0][0],r=t[0][1],i=t[0][0],o=t[0][1],a=1;a1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326",n={"EPSG:4326":[-180,-90,180,90],"EPSG:3857":[-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892],"EPSG:3978":[-7192737.96,-3004297.73,5183275.29,4484204.83]},r=e[0]n[t][2]||e[0]===1/0||Number.isNaN(e[2])?n[t][2]:e[2],a=e[0]>n[t][3]||e[0]===1/0||Number.isNaN(e[3])?n[t][3]:e[3];return[rr?o:r,a>i?a:i]}function ke(e){if(e)return Ee(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EPSG:4326")}function Te(e){return(0,q.UG)(e)}function _e(e){return(0,q.R3)(e)}function Oe(e,t,n){var r=Z.M.transformPoints(e,t,n),i=new u.A(r),o=[];return i.forEachSegment((function(e,t){o.push(Math.round(_e(new u.A([e,t]))/1e3*100)/100)})),{total:Math.round(_e(i)/1e3*100)/100,sections:o}}},49919:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});var r=n(42432),i=n(25968),o=n(47001),a=n(10281),s=function(e){var t;return{vertical:{alignSelf:"center",height:40,width:"1px !important",backgroundColor:e.palette.primary.contrastText},horizontal:{height:1,backgroundColor:e.palette.primary.contrastText},grow:{flexGrow:1,backgroundColor:null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.main}}},l=n(97282),c=["className","style","grow","orientation","sx"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{K:()=>p});var r=n(42432),i=n(25968),o=n(43331),a=n(17239),s=n(61385),l=n(74455),c=n(97282),u=["sx","className","style","children","onClick","aria-label","tooltip","tooltipPlacement","id","tabIndex","iconRef","size","disabled","color"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{Accordion:()=>$,AddCircleOutlineIcon:()=>so,AddIcon:()=>ao,AoiIcon:()=>_o.A,AppBarUI:()=>J,AppsIcon:()=>lo,ArrowBackIcon:()=>co.A,ArrowBackIosOutlinedIcon:()=>uo,ArrowDownIcon:()=>An,ArrowDownwardIcon:()=>ho.A,ArrowForwardIcon:()=>po.A,ArrowForwardIosOutlinedIcon:()=>fo,ArrowLeftIcon:()=>go,ArrowRightIcon:()=>mo,ArrowUpIcon:()=>yo.A,Autocomplete:()=>nt,Avatar:()=>dt,Badge:()=>xt,BlockIcon:()=>vo.A,Box:()=>s.A,BrowserNotSupportedIcon:()=>bo,Button:()=>Vt,ButtonDropDown:()=>kn,ButtonGroup:()=>wn,CONST_PANEL_TYPES:()=>gh.v,Card:()=>Wn,CardMedia:()=>er,ChartIcon:()=>Pa.A,CheckBoxIcon:()=>Ao,CheckBoxOutinedIcon:()=>Co,CheckBoxOutlineBlankIcon:()=>So,CheckCircleIcon:()=>xo,CheckIcon:()=>wo,Checkbox:()=>pr,CheckboxList:()=>ml,ChevronLeftIcon:()=>Eo,ChevronRightIcon:()=>ko,CircularProgress:()=>Mr,CircularProgressBase:()=>Tr,ClickMapMarker:()=>es,CloseIcon:()=>To.A,Collapse:()=>yl.SD,CollapseIcon:()=>la,Container:()=>ls,CustomSelect:()=>xp,CustomStepper:()=>fg,CustomTextField:()=>cI,DefaultPanel:()=>fh,DeleteIcon:()=>Oo,DeleteOutlineIcon:()=>Po,DetailsIcon:()=>Io,Dialog:()=>ys,DialogActions:()=>ws,DialogContent:()=>Ns,DialogTitle:()=>Cs,Divider:()=>Lr.c,DownloadIcon:()=>Mo,DownloadingIcon:()=>Lo,Drawer:()=>Ei,EmojiPeopleIcon:()=>jo,ErrorIcon:()=>Fo,ExpandIcon:()=>Do,ExpandLessIcon:()=>No,ExpandMoreIcon:()=>Bo,Fade:()=>Oi,FileUploadIcon:()=>zo,FilterAltIcon:()=>Vo,FilterAltOffIcon:()=>$o,FocusTrap:()=>_I.s,FullscreenExitIcon:()=>Uo,FullscreenIcon:()=>Go,GeoCaIcon:()=>xg,GitHubIcon:()=>Wo.A,Grid:()=>ro,GroupIcon:()=>qo,GroupWorkIcon:()=>Ho,GroupWorkOutlinedIcon:()=>Yo,HandleIcon:()=>Ro,HeightIcon:()=>ea,HelpIcon:()=>Ko,HighlightIcon:()=>Zo,HighlightOutlinedIcon:()=>Xo,HomeIcon:()=>Jo,HubOutlinedIcon:()=>Qo.A,IconButton:()=>io.K,InfoIcon:()=>na,InfoOutlinedIcon:()=>ra.A,KeyboardArrowDownIcon:()=>ia,KeyboardArrowLeftIcon:()=>sa,KeyboardArrowRightIcon:()=>aa,KeyboardArrowUpIcon:()=>oa,LayersClearOutlinedIcon:()=>ua,LayersIcon:()=>ca,LayersOutlinedIcon:()=>da.A,Link:()=>Es.A,List:()=>yl.B8,ListAltIcon:()=>ha,ListItem:()=>yl.ck,ListItemButton:()=>yl.Wj,ListItemIcon:()=>yl.L,ListItemText:()=>yl.Zq,LoadingButton:()=>Ks,LockIcon:()=>fa,LockOpenIcon:()=>ga,LoopIcon:()=>ma,MRTTable:()=>VP,MRT_ActionMenuItem:()=>oO,MRT_AggregationFns:()=>R_,MRT_BottomToolbar:()=>kP,MRT_ColumnActionMenu:()=>tP,MRT_ColumnPinningButtons:()=>TP,MRT_CopyButton:()=>DO,MRT_DefaultColumn:()=>SO,MRT_DefaultDisplayColumn:()=>CO,MRT_EditActionButtons:()=>Z_,MRT_EditCellTextField:()=>NO,MRT_EditRowModal:()=>bP,MRT_ExpandAllButton:()=>pO,MRT_ExpandButton:()=>fO,MRT_FilterCheckbox:()=>rP,MRT_FilterFns:()=>K_,MRT_FilterOptionMenu:()=>eP,MRT_FilterRangeFields:()=>oP,MRT_FilterRangeSlider:()=>aP,MRT_FilterTextField:()=>iP,MRT_GlobalFilterTextField:()=>FP,MRT_GrabHandleButton:()=>uO,MRT_LinearProgressBar:()=>AP,MRT_RowActionMenu:()=>aO,MRT_RowPinButton:()=>yO,MRT_SelectCheckbox:()=>bO,MRT_ShowHideColumnsButton:()=>PP,MRT_ShowHideColumnsMenu:()=>OP,MRT_ShowHideColumnsMenuItems:()=>_P,MRT_SortingFns:()=>k_,MRT_Table:()=>mP,MRT_TableBody:()=>UO,MRT_TableBodyCell:()=>BO,MRT_TableBodyCellValue:()=>FO,MRT_TableBodyRow:()=>$O,MRT_TableBodyRowGrabHandle:()=>dO,MRT_TableBodyRowPinButton:()=>vO,MRT_TableContainer:()=>xP,MRT_TableDetailPanel:()=>VO,MRT_TableFooter:()=>YO,MRT_TableFooterCell:()=>qO,MRT_TableFooterRow:()=>HO,MRT_TableHead:()=>gP,MRT_TableHeadCell:()=>hP,MRT_TableHeadCellColumnActionsButton:()=>nP,MRT_TableHeadCellFilterContainer:()=>sP,MRT_TableHeadCellFilterLabel:()=>lP,MRT_TableHeadCellGrabHandle:()=>cP,MRT_TableHeadCellResizeHandle:()=>uP,MRT_TableHeadCellSortLabel:()=>dP,MRT_TableHeadRow:()=>pP,MRT_TableLoadingOverlay:()=>yP,MRT_TablePagination:()=>CP,MRT_TablePaper:()=>NP,MRT_ToggleDensePaddingButton:()=>IP,MRT_ToggleFiltersButton:()=>MP,MRT_ToggleFullScreenButton:()=>LP,MRT_ToggleGlobalFilterButton:()=>RP,MRT_ToggleRowActionMenuButton:()=>lO,MRT_ToolbarAlertBanner:()=>fP,MRT_ToolbarDropZone:()=>EP,MRT_ToolbarInternalButtons:()=>jP,MRT_TopToolbar:()=>DP,MapIcon:()=>ba.A,MaterialReactTable:()=>BP,Memo_MRT_TableBody:()=>WO,Memo_MRT_TableBodyCell:()=>zO,Memo_MRT_TableBodyRow:()=>GO,Menu:()=>zl,MenuIcon:()=>wa,MenuItem:()=>wl,Modal:()=>dh,ModalApi:()=>Zl,MoreHorizIcon:()=>xa,MoreVertIcon:()=>Aa,MoveDownRoundedIcon:()=>Sa,MoveUpRoundedIcon:()=>Ca,NotificationsActiveIcon:()=>va,NotificationsIcon:()=>ya,OpacityIcon:()=>Ea,OpenInBrowserIcon:()=>ka,Panel:()=>Eh,Paper:()=>ph,PauseIcon:()=>Ta,PlayArrowIcon:()=>_a,Popover:()=>_h,Popper:()=>TI,ProgressBar:()=>hl,PublicIcon:()=>Oa.A,QuestionMarkIcon:()=>Ia.A,RadioButtonCheckedIcon:()=>Ma,RadioButtonUncheckedIcon:()=>La,RemoveCircleOutlineIcon:()=>ja,ReorderIcon:()=>ta,RestartAltIcon:()=>Fa,SatelliteIcon:()=>Da.A,SchoolIcon:()=>Na,SearchIcon:()=>Ba,Select:()=>kp,SendIcon:()=>za,SignpostIcon:()=>Va.A,Skeleton:()=>Bp,Slider:()=>Wp,Snackbar:()=>wf,Stack:()=>js,Stepper:()=>bg,StorageIcon:()=>$a.A,Switch:()=>Lg,SwitchLeftIcon:()=>Ua,SwitchRightIcon:()=>Ga,Table:()=>iv,TableBody:()=>uv,TableCell:()=>xv,TableChartOutlinedIcon:()=>qa,TableContainer:()=>Qy,TableHead:()=>Qv,TableRow:()=>mv,TableViewIcon:()=>Wa.A,Tabs:()=>oI,TextField:()=>fI,TimeSliderIcon:()=>oo,TodoIcon:()=>pa,Toolbar:()=>bI,Tooltip:()=>AI,Typography:()=>SI.o,UndoIcon:()=>Ha,UploadFileIcon:()=>Ya,VisibilityIcon:()=>Ka,VisibilityOffIcon:()=>Xa,VisibilityOffOutlinedIcon:()=>Ja,VisibilityOutlinedIcon:()=>Za,WarningIcon:()=>Qa,ZoomInIcon:()=>ao,ZoomInSearchIcon:()=>ts,ZoomOutIcon:()=>Ra,ZoomOutSearchIcon:()=>ns,cgpvTheme:()=>wg.w,createMRTColumnHelper:()=>c_,createRow:()=>u_,defaultDisplayColumnProps:()=>g_,flexRender:()=>l_,getAllLeafColumnDefs:()=>n_,getCanRankRows:()=>O_,getColumnFilterInfo:()=>a_,getColumnId:()=>t_,getDefaultColumnFilterFn:()=>o_,getDefaultColumnOrderIds:()=>E_,getIsRankingRows:()=>P_,getIsRowSelected:()=>I_,getLeadingDisplayColumnIds:()=>S_,getMRT_RowSelectionHandler:()=>M_,getMRT_Rows:()=>__,getMRT_SelectAllHandler:()=>L_,getTheme:()=>wg.O,getTrailingDisplayColumnIds:()=>C_,isCellEditable:()=>p_,mrtFilterOptions:()=>KO,openEditingCell:()=>f_,prepareColumns:()=>r_,rankGlobalFuzzy:()=>T_,reorderColumn:()=>i_,showRowActionsColumn:()=>b_,showRowDragColumn:()=>y_,showRowExpandColumn:()=>v_,showRowNumbersColumn:()=>x_,showRowPinningColumn:()=>m_,showRowSelectionColumn:()=>w_,showRowSpacerColumn:()=>A_,useDropdownOptions:()=>s_,useMRT_ColumnVirtualizer:()=>MO,useMRT_Effects:()=>_O,useMRT_RowVirtualizer:()=>LO,useMRT_Rows:()=>RO,useMRT_TableInstance:()=>OO,useMRT_TableOptions:()=>EO,useMaterialReactTable:()=>PO});var r=n(29067),i=n(55907),o=n(30538),a=n.t(o,2),s=n(44912),l=(n(91272),n(87286)),c=n(22554),u=n(48678),d=n(11367),h=n(56239),p=n(50402),f=n(95197);const g=o.createContext({});var m=n(33005),y=n(61870),v=n(35836),b=n(93724),w=n(37290);function x(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:s,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...h}=o,p=u[e]||r,f=(0,b.A)(d[e],i),{props:{component:g,...m},internalRef:x}=(0,w.A)({className:n,...l,externalForwardedProps:"root"===e?h:void 0,externalSlotProps:f}),A=(0,y.A)(x,f?.ref,t.ref),S=a?a(m):{},C={...i,...S},E="root"===e?g||c:g,k=(0,v.A)(p,{..."root"===e&&!c&&!u[e]&&s,..."root"!==e&&!u[e]&&s,...m,...E&&{as:E},ref:A},C);return Object.keys(S).forEach((e=>{delete k[e]})),[p,k]}var A=n(10383),S=n(59644);function C(e){return(0,S.Ay)("MuiAccordion",e)}const E=(0,A.A)("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]);var k=n(97282);const T=(0,u.Ay)(f.A,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${E.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((0,d.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${E.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${E.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}})),(0,d.A)((({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${E.expanded}`]:{margin:"16px 0"}}}]})))),_=(0,u.Ay)("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),O=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAccordion"}),{children:r,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:u=!1,expanded:d,onChange:f,square:y=!1,slots:v={},slotProps:b={},TransitionComponent:w,TransitionProps:A,...S}=n,[E,O]=(0,m.A)({controlled:d,default:a,name:"Accordion",state:"expanded"}),P=o.useCallback((e=>{O(!E),f&&f(e,!E)}),[E,f,O]),[I,...M]=o.Children.toArray(r),L=o.useMemo((()=>({expanded:E,disabled:s,disableGutters:u,toggle:P})),[E,s,u,P]),R={...n,square:y,disabled:s,disableGutters:u,expanded:E},j=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,a={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],heading:["heading"],region:["region"]};return(0,c.A)(a,C,t)})(R),F={slots:{transition:w,...v},slotProps:{transition:A,...b}},[D,N]=x("heading",{elementType:_,externalForwardedProps:F,className:j.heading,ownerState:R}),[B,z]=x("transition",{elementType:p.A,externalForwardedProps:F,ownerState:R});return(0,k.jsxs)(T,{className:(0,l.A)(j.root,i),ref:t,ownerState:R,square:y,...S,children:[(0,k.jsx)(D,{...N,children:(0,k.jsx)(g.Provider,{value:L,children:I})}),(0,k.jsx)(B,{in:E,timeout:"auto",...z,children:(0,k.jsx)("div",{"aria-labelledby":I.props.id,id:I.props["aria-controls"],role:"region",className:j.region,children:M})})]})}));var P=n(18443);function I(e){return(0,S.Ay)("MuiAccordionSummary",e)}const M=(0,A.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),L=(0,u.Ay)(P.A,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((0,d.A)((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${M.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${M.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${M.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${M.expanded}`]:{minHeight:64}}}]}}))),R=(0,u.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((0,d.A)((({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${M.expanded}`]:{margin:"20px 0"}}}]})))),j=(0,u.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((0,d.A)((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${M.expanded}`]:{transform:"rotate(180deg)"}})))),F=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAccordionSummary"}),{children:r,className:i,expandIcon:a,focusVisibleClassName:s,onClick:u,...d}=n,{disabled:p=!1,disableGutters:f,expanded:m,toggle:y}=o.useContext(g),v={...n,expanded:m,disabled:p,disableGutters:f},b=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e,o={root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,c.A)(o,I,t)})(v);return(0,k.jsxs)(L,{focusRipple:!1,disableRipple:!0,disabled:p,component:"div","aria-expanded":m,className:(0,l.A)(b.root,i),focusVisibleClassName:(0,l.A)(b.focusVisible,s),onClick:e=>{y&&y(e),u&&u(e)},ref:t,ownerState:v,...d,children:[(0,k.jsx)(R,{className:b.content,ownerState:v,children:r}),a&&(0,k.jsx)(j,{className:b.expandIconWrapper,ownerState:v,children:a})]})}));function D(e){return(0,S.Ay)("MuiAccordionDetails",e)}(0,A.A)("MuiAccordionDetails",["root"]);const N=(0,u.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((0,d.A)((({theme:e})=>({padding:e.spacing(1,2,2)})))),B=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAccordionDetails"}),{className:r,...i}=n,o=n,a=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},D,t)})(o);return(0,k.jsx)(N,{className:(0,l.A)(a.root,r),ref:t,ownerState:o,...i})}));var z=n(76200),V={loadingIcon:{animation:"rotate 1s infinite linear","@keyframes rotate":{from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}}};function $(e){var t=e.id,n=e.sx,a=e.items,l=e.className,c=e.defaultExpanded,u=void 0!==c&&c,d=e.showLoadingIcon,h=void 0!==d&&d,p=(0,o.useState)(Array(a.length).fill(u)),f=(0,i.A)(p,2),g=f[0],m=f[1],y=(0,o.useState)(Array(a.length).fill(!1)),v=(0,i.A)(y,2),b=v[0],w=v[1],x=function(e){return function(t,n){var i=(0,r.A)(g);i[e]=n,m(i)}},A=(0,o.useCallback)((function(e){return function(t){if(!g[e]&&h){var n=(0,r.A)(b);if(n[e]=!0,w(n),"height"===t.propertyName){var i=(0,r.A)(b);i[e]=!1,w(i)}}}}),[g,h,b]);return(0,k.jsx)(s.A,{id:(0,z.generateId)(t),sx:n,className:"accordion-group",children:a.map((function(e,t){return(0,k.jsxs)(O,{className:l,expanded:g[t],onChange:x(t),onTransitionEnd:A(t),children:[(0,k.jsx)(F,{expandIcon:h&&b[t]?(0,k.jsx)(ma,{sx:V.loadingIcon}):(0,k.jsx)(Bo,{}),"aria-controls":"accordion-panel-".concat(t,"-a-content"),children:(0,k.jsx)("div",{children:e.title})}),(0,k.jsx)(B,{children:e.content})]},t)}))})}var G=n(42432),U=n(99324);function W(e){return(0,S.Ay)("MuiAppBar",e)}(0,A.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const q=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,H=(0,u.Ay)(f.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,U.A)(n.position)}`],t[`color${(0,U.A)(n.color)}`]]}})((0,d.A)((({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.contrastText)).map((([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}}))),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?q(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?q(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]})))),Y=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:o=!1,position:a="fixed",...s}=n,u={...n,color:i,position:a,enableColorOnDark:o},d=(e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${(0,U.A)(t)}`,`position${(0,U.A)(n)}`]};return(0,c.A)(i,W,r)})(u);return(0,k.jsx)(H,{square:!0,component:"header",ownerState:u,elevation:4,className:(0,l.A)(d.root,r,"fixed"===a&&"mui-fixed"),ref:t,...s})}));var K=n(38811),X=n(39561);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){var t=(0,X.T$)(),n=(0,K.CS)(Y);return(0,k.jsx)(n,function(e){for(var t=1;t{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current};var oe=n(45134),ae=n(36332);function se(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const le=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=se(c));const u=c?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=se(r)),"start"===i?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),ce=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),ue=[];const de=function(e){const{unstable_isActiveElementInListbox:t=ce,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?ue:null),disableClearable:h=!1,disableCloseOnSelect:p=!1,disabled:f,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:y=le,filterSelectedOptions:v=!1,freeSolo:b=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:A=e=>e.label??e,groupBy:S,handleHomeEndKeys:C=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:T,isOptionEqualToValue:_=(e,t)=>e===t,multiple:O=!1,onChange:P,onClose:I,onHighlightChange:M,onInputChange:L,onOpen:R,open:j,openOnFocus:F=!1,options:D,readOnly:N=!1,selectOnFocus:B=!e.freeSolo,value:z}=e,V=(0,ne.A)(E);let $=A;$=e=>{const t=A(e);return"string"!=typeof t?String(t):t};const G=o.useRef(!1),U=o.useRef(!0),W=o.useRef(null),q=o.useRef(null),[H,Y]=o.useState(null),[K,X]=o.useState(-1),Z=i?0:-1,J=o.useRef(Z),[Q,ee]=(0,re.A)({controlled:z,default:d,name:u}),[te,se]=(0,re.A)({controlled:T,default:"",name:u,state:"inputValue"}),[de,he]=o.useState(!1),pe=o.useCallback(((e,t,n)=>{if(!(O?Q.length!v||!(O?Q:[Q]).some((t=>null!==t&&_(e,t))))),{inputValue:ve&&me?"":te,getOptionLabel:$}):[],xe=ie({filteredOptions:we,value:Q,inputValue:te});o.useEffect((()=>{const e=Q!==xe.value;de&&!e||b&&!e||pe(null,Q,"reset")}),[Q,pe,de,xe.value,b]);const Ae=fe&&we.length>0&&!N,Se=(0,oe.A)((e=>{-1===e?W.current.focus():H.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{O&&K>Q.length-1&&(X(-1),Se(-1))}),[Q,O,K,Se]);const Ce=(0,oe.A)((({event:e,index:t,reason:r="auto"})=>{if(J.current=t,-1===t?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${V}-option-${t}`),M&&M(e,-1===t?null:we[t],r),!q.current)return;const i=q.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let o=q.current;if("listbox"!==q.current.getAttribute("role")&&(o=q.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t)return void(o.scrollTop=0);const a=q.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0){if(!be)return;const o=function(e,t){if(!q.current||e<0||e>=we.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),i=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if(n="next"===t?(n+1)%we.length:(n-1+we.length)%we.length,n===e)return-1}}((()=>{const e=we.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const n=J.current+t;return n<0?-1===n&&k?-1:m&&-1!==J.current||Math.abs(t)>1?0:e:n>e?n===e+1&&k?-1:m||Math.abs(t)>1?e:0:n})(),n);if(Ce({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)W.current.value=te;else{const e=$(we[o]);W.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&W.current.setSelectionRange(te.length,e.length)}})),ke=o.useCallback((()=>{if(!be)return;const e=(()=>{if(-1!==J.current&&xe.filteredOptions&&xe.filteredOptions.length!==we.length&&xe.inputValue===te&&(O?Q.length===xe.value.length&&xe.value.every(((e,t)=>$(Q[t])===$(e))):(e=xe.value,t=Q,(e?$(e):"")===(t?$(t):"")))){const e=xe.filteredOptions[J.current];if(e)return we.findIndex((t=>$(t)===$(e)))}var e,t;return-1})();if(-1!==e)return void(J.current=e);const t=O?Q[0]:Q;if(0!==we.length&&null!=t){if(q.current)if(null==t)J.current>=we.length-1?Ce({index:we.length-1}):Ce({index:J.current});else{const e=we[J.current];if(O&&e&&-1!==Q.findIndex((t=>_(e,t))))return;const n=we.findIndex((e=>_(e,t)));-1===n?Ee({diff:"reset"}):Ce({index:n})}}else Ee({diff:"reset"})}),[we.length,!O&&Q,v,Ee,Ce,be,te,O]),Te=(0,oe.A)((e=>{(0,ae.A)(q,e),e&&ke()}));o.useEffect((()=>{ke()}),[ke]);const _e=e=>{fe||(ge(!0),ye(!0),R&&R(e))},Oe=(e,t)=>{fe&&(ge(!1),I&&I(e,t))},Pe=(e,t,n,r)=>{if(O){if(Q.length===t.length&&Q.every(((e,n)=>e===t[n])))return}else if(Q===t)return;P&&P(e,t,n,r),ee(t)},Ie=o.useRef(!1),Me=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(O){o=Array.isArray(Q)?Q.slice():[];const e=o.findIndex((e=>_(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}pe(e,o,i),Pe(e,o,i,{option:t}),p||e&&(e.ctrlKey||e.metaKey)||Oe(e,i),(!0===s||"touch"===s&&Ie.current||"mouse"===s&&!Ie.current)&&W.current.blur()},Le=(e,t)=>{if(!O)return;""===te&&Oe(e,"toggleInput");let n=K;-1===K?""===te&&"previous"===t&&(n=Q.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Q.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Q.length||"previous"===t&&-1===n)return-1;const e=H.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),Se(n)},Re=e=>{G.current=!0,se(""),L&&L(e,"","clear"),Pe(e,O?[]:null,"clear")},je=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),Se(-1)),229!==t.which))switch(t.key){case"Home":be&&C&&(t.preventDefault(),Ee({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":be&&C&&(t.preventDefault(),Ee({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ee({diff:-5,direction:"previous",reason:"keyboard",event:t}),_e(t);break;case"PageDown":t.preventDefault(),Ee({diff:5,direction:"next",reason:"keyboard",event:t}),_e(t);break;case"ArrowDown":t.preventDefault(),Ee({diff:1,direction:"next",reason:"keyboard",event:t}),_e(t);break;case"ArrowUp":t.preventDefault(),Ee({diff:-1,direction:"previous",reason:"keyboard",event:t}),_e(t);break;case"ArrowLeft":Le(t,"previous");break;case"ArrowRight":Le(t,"next");break;case"Enter":if(-1!==J.current&&be){const e=we[J.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Me(t,e,"selectOption"),r&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else b&&""!==te&&!1===ve&&(O&&t.preventDefault(),Me(t,te,"createOption","freeSolo"));break;case"Escape":be?(t.preventDefault(),t.stopPropagation(),Oe(t,"escape")):c&&(""!==te||O&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Re(t));break;case"Backspace":if(O&&!N&&""===te&&Q.length>0){const e=-1===K?Q.length-1:K,n=Q.slice();n.splice(e,1),Pe(t,n,"removeOption",{option:Q[e]})}break;case"Delete":if(O&&!N&&""===te&&Q.length>0&&-1!==K){const e=K,n=Q.slice();n.splice(e,1),Pe(t,n,"removeOption",{option:Q[e]})}}},Fe=e=>{he(!0),F&&!G.current&&_e(e)},De=e=>{t(q)?W.current.focus():(he(!1),U.current=!0,G.current=!1,a&&-1!==J.current&&be?Me(e,we[J.current],"blur"):a&&b&&""!==te?Me(e,te,"blur","freeSolo"):l&&pe(e,Q,"blur"),Oe(e,"blur"))},Ne=e=>{const t=e.target.value;te!==t&&(se(t),ye(!1),L&&L(e,t,"input")),""===t?h||O||Pe(e,null,"clear"):_e(e)},Be=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&Ce({event:e,index:t,reason:"mouse"})},ze=e=>{Ce({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ie.current=!0},Ve=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Me(e,we[t],"selectOption"),Ie.current=!1},$e=e=>t=>{const n=Q.slice();n.splice(e,1),Pe(t,n,"removeOption",{option:Q[e]})},Ge=e=>{fe?Oe(e,"toggleInput"):_e(e)},Ue=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==V&&e.preventDefault()},We=e=>{e.currentTarget.contains(e.target)&&(W.current.focus(),B&&U.current&&W.current.selectionEnd-W.current.selectionStart==0&&W.current.select(),U.current=!1)},qe=e=>{f||""!==te&&fe||Ge(e)};let He=b&&te.length>0;He=He||(O?Q.length>0:null!==Q);let Ye=we;if(S){new Map;Ye=we.reduce(((e,t,n)=>{const r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return f&&de&&De(),{getRootProps:(e={})=>({"aria-owns":Ae?`${V}-listbox`:null,...e,onKeyDown:je(e),onMouseDown:Ue,onClick:We}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:te,onBlur:De,onFocus:Fe,onChange:Ne,onMouseDown:qe,"aria-activedescendant":be?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ae?`${V}-listbox`:void 0,"aria-expanded":Ae,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ge}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!N&&{onDelete:$e(e)}}),getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:Te,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(O?Q:[Q]).some((e=>null!=e&&_(t,e))),r=!!w&&w(t);return{key:x?.(t)??$(t),tabIndex:-1,role:"option",id:`${V}-option-${e}`,onMouseMove:Be,onClick:Ve,onTouchStart:ze,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:V,inputValue:te,value:Q,dirty:He,expanded:be&&H,popupOpen:be,focused:de||-1!==K,anchorEl:H,setAnchorEl:Y,focusedTag:K,groupedOptions:Ye}};var he=n(64578);function pe(e){return(0,S.Ay)("MuiListSubheader",e)}(0,A.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fe=(0,u.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,U.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((0,d.A)((({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]})))),ge=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:a=!1,disableSticky:s=!1,inset:u=!1,...d}=n,p={...n,color:i,component:o,disableGutters:a,disableSticky:s,inset:u},f=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root","default"!==n&&`color${(0,U.A)(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,c.A)(a,pe,t)})(p);return(0,k.jsx)(fe,{as:o,className:(0,l.A)(f.root,r),ref:t,ownerState:p,...d})}));ge&&(ge.muiSkipListHighlight=!0);const me=ge;var ye=n(17239),ve=n(33071);const be=(0,ve.A)((0,k.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var we=n(22626);function xe(e){return(0,S.Ay)("MuiChip",e)}const Ae=(0,A.A)("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Se=(0,u.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${Ae.avatar}`]:t.avatar},{[`& .${Ae.avatar}`]:t[`avatar${(0,U.A)(s)}`]},{[`& .${Ae.avatar}`]:t[`avatarColor${(0,U.A)(r)}`]},{[`& .${Ae.icon}`]:t.icon},{[`& .${Ae.icon}`]:t[`icon${(0,U.A)(s)}`]},{[`& .${Ae.icon}`]:t[`iconColor${(0,U.A)(i)}`]},{[`& .${Ae.deleteIcon}`]:t.deleteIcon},{[`& .${Ae.deleteIcon}`]:t[`deleteIcon${(0,U.A)(s)}`]},{[`& .${Ae.deleteIcon}`]:t[`deleteIconColor${(0,U.A)(r)}`]},{[`& .${Ae.deleteIcon}`]:t[`deleteIcon${(0,U.A)(l)}Color${(0,U.A)(r)}`]},t.root,t[`size${(0,U.A)(s)}`],t[`color${(0,U.A)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,U.A)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,U.A)(r)}`],t[l],t[`${l}${(0,U.A)(r)}`]]}})((0,d.A)((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ae.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ae.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ae.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ae.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ae.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ae.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ae.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,te.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,te.X4)(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ae.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ae.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.contrastText)).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Ae.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:(0,te.X4)(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${Ae.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${Ae.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ae.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter((([,e])=>e&&e.dark)).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${Ae.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,te.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ae.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter((([,e])=>e&&e.dark)).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${Ae.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ae.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ae.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ae.avatar}`]:{marginLeft:4},[`& .${Ae.avatarSmall}`]:{marginLeft:2},[`& .${Ae.icon}`]:{marginLeft:4},[`& .${Ae.iconSmall}`]:{marginLeft:2},[`& .${Ae.deleteIcon}`]:{marginRight:5},[`& .${Ae.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,te.X4)(e.palette[t].main,.7)}`,[`&.${Ae.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${Ae.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${Ae.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,te.X4)(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),Ce=(0,u.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,U.A)(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Ee(e){return"Backspace"===e.key||"Delete"===e.key}const ke=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:s="default",component:u,deleteIcon:d,disabled:p=!1,icon:f,label:g,onClick:m,onDelete:y,onKeyDown:v,onKeyUp:b,size:w="medium",variant:x="filled",tabIndex:A,skipFocusWhenDisabled:S=!1,...C}=n,E=o.useRef(null),T=(0,we.A)(E,t),_=e=>{e.stopPropagation(),y&&y(e)},O=!(!1===a||!m)||a,I=O||y?P.A:u||"div",M={...n,component:I,disabled:p,size:w,color:s,iconColor:o.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:O,variant:x},L=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${(0,U.A)(r)}`,`color${(0,U.A)(i)}`,s&&"clickable",s&&`clickableColor${(0,U.A)(i)}`,a&&"deletable",a&&`deletableColor${(0,U.A)(i)}`,`${l}${(0,U.A)(i)}`],label:["label",`label${(0,U.A)(r)}`],avatar:["avatar",`avatar${(0,U.A)(r)}`,`avatarColor${(0,U.A)(i)}`],icon:["icon",`icon${(0,U.A)(r)}`,`iconColor${(0,U.A)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,U.A)(r)}`,`deleteIconColor${(0,U.A)(i)}`,`deleteIcon${(0,U.A)(l)}Color${(0,U.A)(i)}`]};return(0,c.A)(u,xe,t)})(M),R=I===P.A?{component:u||"div",focusVisibleClassName:L.focusVisible,...y&&{disableRipple:!0}}:{};let j=null;y&&(j=d&&o.isValidElement(d)?o.cloneElement(d,{className:(0,l.A)(d.props.className,L.deleteIcon),onClick:_}):(0,k.jsx)(be,{className:(0,l.A)(L.deleteIcon),onClick:_}));let F=null;r&&o.isValidElement(r)&&(F=o.cloneElement(r,{className:(0,l.A)(L.avatar,r.props.className)}));let D=null;return f&&o.isValidElement(f)&&(D=o.cloneElement(f,{className:(0,l.A)(L.icon,f.props.className)})),(0,k.jsxs)(Se,{as:I,className:(0,l.A)(L.root,i),disabled:!(!O||!p)||void 0,onClick:m,onKeyDown:e=>{e.currentTarget===e.target&&Ee(e)&&e.preventDefault(),v&&v(e)},onKeyUp:e=>{e.currentTarget===e.target&&y&&Ee(e)&&y(e),b&&b(e)},ref:T,tabIndex:S&&p?-1:A,ownerState:M,...R,...C,children:[F||D,(0,k.jsx)(Ce,{className:(0,l.A)(L.label),ownerState:M,children:g}),j]})}));var Te=n(56689),_e=n(85205);function Oe(e){return(0,S.Ay)("MuiOutlinedInput",e)}const Pe={..._e.A,...(0,A.A)("MuiOutlinedInput",["root","notchedOutline","input"])};function Ie(e){return(0,S.Ay)("MuiFilledInput",e)}const Me={..._e.A,...(0,A.A)("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Le=(0,ve.A)((0,k.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Re=n(25912);function je(e){return(0,S.Ay)("MuiAutocomplete",e)}const Fe=(0,A.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var De,Ne;const Be=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fe.tag}`]:t.tag},{[`& .${Fe.tag}`]:t[`tagSize${(0,U.A)(s)}`]},{[`& .${Fe.inputRoot}`]:t.inputRoot},{[`& .${Fe.input}`]:t.input},{[`& .${Fe.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Fe.focused} .${Fe.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fe.clearIndicator}`]:{visibility:"visible"}},[`& .${Fe.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Fe.inputRoot}`]:{[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:30},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:56},[`& .${Fe.input}`]:{width:0,minWidth:30}},[`& .${Te.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Te.A.root}.${_e.A.sizeSmall}`]:{[`& .${Te.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Pe.root}`]:{padding:9,[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:39},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:65},[`& .${Fe.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fe.endAdornment}`]:{right:9}},[`& .${Pe.root}.${_e.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fe.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Me.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fe.hasPopupIcon}&, .${Fe.hasClearIcon}&`]:{paddingRight:39},[`.${Fe.hasPopupIcon}.${Fe.hasClearIcon}&`]:{paddingRight:65},[`& .${Me.input}`]:{padding:"7px 4px"},[`& .${Fe.endAdornment}`]:{right:9}},[`& .${Me.root}.${_e.A.sizeSmall}`]:{paddingBottom:1,[`& .${Me.input}`]:{padding:"2.5px 4px"}},[`& .${_e.A.hiddenLabel}`]:{paddingTop:8},[`& .${Me.root}.${_e.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fe.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Me.root}.${_e.A.hiddenLabel}.${_e.A.sizeSmall}`]:{[`& .${Fe.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fe.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Fe.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Fe.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Fe.inputRoot}`]:{flexWrap:"wrap"}}}]}),ze=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ve=(0,u.Ay)(ye.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),$e=(0,u.Ay)(ye.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Ge=(0,u.Ay)(he.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fe.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((0,d.A)((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})))),Ue=(0,u.Ay)(f.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,d.A)((({theme:e})=>({...e.typography.body1,overflow:"auto"})))),We=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,d.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),qe=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,d.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),He=(0,u.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,d.A)((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Fe.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Fe.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fe.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})))),Ye=(0,u.Ay)(me,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,d.A)((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})))),Ke=(0,u.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fe.option}`]:{paddingLeft:24}}),Xe=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:u,className:d,clearIcon:p=De||(De=(0,k.jsx)(Le,{fontSize:"small"})),clearOnBlur:g=!n.freeSolo,clearOnEscape:m=!1,clearText:y="Clear",closeText:v="Close",componentsProps:b,defaultValue:w=(n.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:S=!1,disabled:C=!1,disabledItemsFocusable:E=!1,disableListWrap:T=!1,disablePortal:_=!1,filterOptions:O,filterSelectedOptions:P=!1,forcePopupIcon:I="auto",freeSolo:M=!1,fullWidth:L=!1,getLimitTagsText:R=e=>`+${e}`,getOptionDisabled:j,getOptionKey:F,getOptionLabel:D,isOptionEqualToValue:N,groupBy:B,handleHomeEndKeys:z=!n.freeSolo,id:V,includeInputInList:$=!1,inputValue:G,limitTags:W=-1,ListboxComponent:q,ListboxProps:H,loading:Y=!1,loadingText:K="Loading…",multiple:X=!1,noOptionsText:Z="No options",onChange:J,onClose:Q,onHighlightChange:ee,onInputChange:te,onOpen:ne,open:re,openOnFocus:ie=!1,openText:oe="Open",options:ae,PaperComponent:se,PopperComponent:le,popupIcon:ce=Ne||(Ne=(0,k.jsx)(Re.A,{})),readOnly:ue=!1,renderGroup:pe,renderInput:fe,renderOption:ge,renderTags:me,selectOnFocus:ye=!n.freeSolo,size:ve="medium",slots:be={},slotProps:we={},value:xe,...Ae}=n,{getRootProps:Se,getInputProps:Ce,getInputLabelProps:Ee,getPopupIndicatorProps:Te,getClearProps:_e,getTagProps:Oe,getListboxProps:Pe,getOptionProps:Ie,value:Me,dirty:Fe,expanded:Xe,id:Ze,popupOpen:Je,focused:Qe,focusedTag:et,anchorEl:tt,setAnchorEl:nt,inputValue:rt,groupedOptions:it}=de({...n,componentName:"Autocomplete"}),ot=!A&&!C&&Fe&&!ue,at=(!M||!0===I)&&!1!==I,{onMouseDown:st}=Ce(),{ref:lt,...ct}=Pe(),ut=D||(e=>e.label??e),dt={...n,disablePortal:_,expanded:Xe,focused:Qe,fullWidth:L,getOptionLabel:ut,hasClearIcon:ot,hasPopupIcon:at,inputFocused:-1===et,popupOpen:Je,size:ve},ht=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:d}=e,h={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${(0,U.A)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,c.A)(h,je,t)})(dt),pt={slots:{listbox:q,paper:se,popper:le,...be},slotProps:{chip:u,listbox:H,...b,...we}},[ft,gt]=x("listbox",{elementType:"ul",externalForwardedProps:pt,ownerState:dt,className:ht.listbox,additionalProps:ct,ref:lt}),[mt,yt]=x("paper",{elementType:f.A,externalForwardedProps:pt,ownerState:dt,className:ht.paper}),[vt,bt]=x("popper",{elementType:he.A,externalForwardedProps:pt,ownerState:dt,className:ht.popper,additionalProps:{disablePortal:_,style:{width:tt?tt.clientWidth:null},role:"presentation",anchorEl:tt,open:Je}});let wt;if(X&&Me.length>0){const e=e=>({className:ht.tag,disabled:C,...Oe(e)});wt=me?me(Me,e,dt):Me.map(((t,n)=>{const{key:r,...i}=e({index:n});return(0,k.jsx)(ke,{label:ut(t),size:ve,...i,...pt.slotProps.chip},r)}))}if(W>-1&&Array.isArray(wt)){const e=wt.length-W;!Qe&&e>0&&(wt=wt.splice(0,W),wt.push((0,k.jsx)("span",{className:ht.tag,children:R(e)},wt.length)))}const xt=pe||(e=>(0,k.jsxs)("li",{children:[(0,k.jsx)(Ye,{className:ht.groupLabel,ownerState:dt,component:"div",children:e.group}),(0,k.jsx)(Ke,{className:ht.groupUl,ownerState:dt,children:e.children})]},e.key)),At=ge||((e,t)=>{const{key:n,...r}=e;return(0,k.jsx)("li",{...r,children:ut(t)},n)}),St=(e,t)=>{const n=Ie({option:e,index:t});return At({...n,className:ht.option},e,{selected:n["aria-selected"],index:t,inputValue:rt},dt)},Ct=pt.slotProps.clearIndicator,Et=pt.slotProps.popupIndicator,kt=e=>(0,k.jsx)(Ge,{as:vt,...bt,children:(0,k.jsx)(Ue,{as:mt,...yt,children:e})});let Tt=null;return it.length>0?Tt=kt((0,k.jsx)(He,{as:ft,...gt,children:it.map(((e,t)=>B?xt({key:e.key,group:e.group,children:e.options.map(((t,n)=>St(t,e.index+n)))}):St(e,t)))})):Y&&0===it.length?Tt=kt((0,k.jsx)(We,{className:ht.loading,ownerState:dt,children:K})):0!==it.length||M||Y||(Tt=kt((0,k.jsx)(qe,{className:ht.noOptions,ownerState:dt,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:Z}))),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(Be,{ref:t,className:(0,l.A)(ht.root,d),ownerState:dt,...Se(Ae),children:fe({id:Ze,disabled:C,fullWidth:!0,size:"small"===ve?"small":void 0,InputLabelProps:Ee(),InputProps:{ref:nt,className:ht.inputRoot,startAdornment:wt,onClick:e=>{e.target===e.currentTarget&&st(e)},...(ot||at)&&{endAdornment:(0,k.jsxs)(ze,{className:ht.endAdornment,ownerState:dt,children:[ot?(0,k.jsx)(Ve,{..._e(),"aria-label":y,title:y,ownerState:dt,...Ct,className:(0,l.A)(ht.clearIndicator,Ct?.className),children:p}):null,at?(0,k.jsx)($e,{...Te(),disabled:C,"aria-label":Je?v:oe,title:Je?v:oe,ownerState:dt,...Et,className:(0,l.A)(ht.popupIndicator,Et?.className),children:ce}):null]})}},inputProps:{className:ht.input,disabled:C,readOnly:ue,...Ce()}})}),tt?Tt:null]})})),Ze=Xe;var Je=["fullWidth"];function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((0,d.A)((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]})))),at=(0,u.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),st=(0,u.Ay)(rt,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const lt=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:s="div",slots:u={},slotProps:d={},imgProps:p,sizes:f,src:g,srcSet:m,variant:y="circular",...v}=n;let b=null;const w=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=o.useState(!1);return o.useEffect((()=>{if(!n&&!r)return;a(!1);let i=!0;const o=new Image;return o.onload=()=>{i&&a("loaded")},o.onerror=()=>{i&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{i=!1}}),[e,t,n,r]),i}({...p,src:g,srcSet:m}),A=g||m,S=A&&"error"!==w,C={...n,colorDefault:!S,component:s,variant:y};delete C.ownerState;const E=(e=>{const{classes:t,variant:n,colorDefault:r}=e,i={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,c.A)(i,it,t)})(C),[T,_]=x("img",{className:E.img,elementType:at,externalForwardedProps:{slots:u,slotProps:{img:{...p,...d.img}}},additionalProps:{alt:r,src:g,srcSet:m,sizes:f},ownerState:C});return b=S?(0,k.jsx)(T,{..._}):i||0===i?i:A&&r?r[0]:(0,k.jsx)(st,{ownerState:C,className:E.fallback}),(0,k.jsx)(ot,{as:s,className:(0,l.A)(E.root,a),ref:t,...v,ownerState:C,children:b})}));function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;tl?`${l}+`:s}};function ft(e){return(0,S.Ay)("MuiBadge",e)}const gt=(0,A.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),mt=(0,u.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yt=(0,u.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,U.A)(n.anchorOrigin.vertical)}${(0,U.A)(n.anchorOrigin.horizontal)}${(0,U.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,U.A)(n.color)}`],n.invisible&&t.invisible]}})((0,d.A)((({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.contrastText)).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})))),vt=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiBadge"}),{anchorOrigin:r={vertical:"top",horizontal:"right"},className:i,classes:o,component:a,components:s={},componentsProps:u={},children:d,overlap:p="rectangular",color:f="default",invisible:g=!1,max:m=99,badgeContent:y,slots:v,slotProps:b,showZero:w=!1,variant:x="standard",...A}=n,{badgeContent:S,invisible:C,max:E,displayValue:T}=pt({max:m,invisible:g,badgeContent:y,showZero:w}),_=ie({anchorOrigin:r,color:f,overlap:p,variant:x,badgeContent:y}),O=C||null==S&&"dot"!==x,{color:P=f,overlap:I=p,anchorOrigin:M=r,variant:L=x}=O?_:n,R="dot"!==L?T:void 0,j={...n,badgeContent:S,invisible:O,max:E,displayValue:R,showZero:w,anchorOrigin:M,color:P,overlap:I,variant:L},F=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${(0,U.A)(n.vertical)}${(0,U.A)(n.horizontal)}`,`anchorOrigin${(0,U.A)(n.vertical)}${(0,U.A)(n.horizontal)}${(0,U.A)(i)}`,`overlap${(0,U.A)(i)}`,"default"!==t&&`color${(0,U.A)(t)}`]};return(0,c.A)(s,ft,a)})(j),D=v?.root??s.Root??mt,N=v?.badge??s.Badge??yt,B=b?.root??u.root,z=b?.badge??u.badge,V=(0,ht.A)({elementType:D,externalSlotProps:B,externalForwardedProps:A,additionalProps:{ref:t,as:a},ownerState:j,className:(0,l.A)(B?.className,F.root,i)}),$=(0,ht.A)({elementType:N,externalSlotProps:z,ownerState:j,className:(0,l.A)(F.badge,z?.className)});return(0,k.jsxs)(D,{...V,children:[d,(0,k.jsx)(N,{...$,children:R})]})})),bt=vt;function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){return(0,k.jsx)(bt,function(e){for(var t=1;t *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Mt=(0,u.Ay)(P.A,{shouldForwardProp:e=>(0,kt.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,U.A)(n.color)}`],t[`size${(0,U.A)(n.size)}`],t[`${n.variant}Size${(0,U.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((0,d.A)((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${_t.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${_t.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${_t.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${_t.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter((([,e])=>e&&e.main&&e.dark&&e.contrastText)).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,te.X4)(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{"--variant-containedColor":e.vars?e.vars.palette.text.primary:e.palette.getContrastText?.(t),"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${_t.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_t.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}}))),Lt=(0,u.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,U.A)(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...It]}),Rt=(0,u.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,U.A)(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...It]}),jt=o.forwardRef((function(e,t){const n=o.useContext(Ot),r=o.useContext(Pt),i=(0,Et.A)(n,e),a=(0,h.b)({props:i,name:"MuiButton"}),{children:s,color:u="primary",component:d="button",className:p,disabled:f=!1,disableElevation:g=!1,disableFocusRipple:m=!1,endIcon:y,focusVisibleClassName:v,fullWidth:b=!1,size:w="medium",startIcon:x,type:A,variant:S="text",...C}=a,E={...a,color:u,component:d,disabled:f,disableElevation:g,disableFocusRipple:m,fullWidth:b,size:w,type:A,variant:S},T=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${(0,U.A)(t)}`,`size${(0,U.A)(i)}`,`${o}Size${(0,U.A)(i)}`,`color${(0,U.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,U.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,U.A)(i)}`]},l=(0,c.A)(s,Tt,a);return{...a,...l}})(E),_=x&&(0,k.jsx)(Lt,{className:T.startIcon,ownerState:E,children:x}),O=y&&(0,k.jsx)(Rt,{className:T.endIcon,ownerState:E,children:y}),P=r||"";return(0,k.jsxs)(Mt,{ownerState:E,className:(0,l.A)(n.className,T.root,p,P),component:d,disabled:f,focusRipple:!m,focusVisibleClassName:(0,l.A)(T.focusVisible,v),ref:t,type:A,...C,classes:T,children:[_,s,O]})}));var Ft=n(61385),Dt=n(74455);function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t{r&&p.current.focus()}),[r]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const y=o.Children.map(a,((e,t)=>{if(t===m){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,k.jsx)(Wt.A,{role:"menu",ref:g,className:s,onKeyDown:e=>{const t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=(0,Ut.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Jt(t,r,c,l,Kt);else if("ArrowUp"===n)e.preventDefault(),Jt(t,r,c,l,Xt);else if("Home"===n)e.preventDefault(),Jt(t,null,c,l,Kt);else if("End"===n)e.preventDefault(),Jt(t,null,c,l,Xt);else if(1===n.length){const i=f.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&Zt(r,i);i.previousKeyMatched&&(s||Jt(t,r,!1,l,Kt,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...h,children:y})})),en=Qt;var tn=n(93996),nn=n(67577),rn=n(41079),on=n(27279);function an(e){return(0,S.Ay)("MuiMenuItem",e)}const sn=(0,A.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ln=(0,u.Ay)(P.A,{shouldForwardProp:e=>(0,kt.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((0,d.A)((({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,te.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nn.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nn.A.inset}`]:{marginLeft:52},[`& .${on.A.root}`]:{marginTop:0,marginBottom:0},[`& .${on.A.inset}`]:{paddingLeft:36},[`& .${rn.A.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${rn.A.root} svg`]:{fontSize:"1.25rem"}}}]})))),cn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:f,className:g,...m}=n,y=o.useContext(tn.A),v=o.useMemo((()=>({dense:a||y.dense||!1,disableGutters:u})),[y.dense,a,u]),b=o.useRef(null);(0,Yt.A)((()=>{r&&b.current&&b.current.focus()}),[r]);const w={...n,dense:v.dense,divider:s,disableGutters:u},x=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},l=(0,c.A)(s,an,a);return{...a,...l}})(n),A=(0,we.A)(b,t);let S;return n.disabled||(S=void 0!==f?f:-1),(0,k.jsx)(tn.A.Provider,{value:v,children:(0,k.jsx)(ln,{ref:A,role:p,tabIndex:S,component:i,focusVisibleClassName:(0,l.A)(x.focusVisible,d),className:(0,l.A)(x.root,g),...m,ownerState:w,classes:x})})})),un=cn;function dn(e){return(0,S.Ay)("MuiButtonGroup",e)}const hn=(0,A.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),pn=(0,u.Ay)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hn.grouped}`]:t.grouped},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.orientation)}`]},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.variant)}`]},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.variant)}${(0,U.A)(n.orientation)}`]},{[`& .${hn.grouped}`]:t[`grouped${(0,U.A)(n.variant)}${(0,U.A)(n.color)}`]},{[`& .${hn.firstButton}`]:t.firstButton},{[`& .${hn.lastButton}`]:t.lastButton},{[`& .${hn.middleButton}`]:t.middleButton},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((0,d.A)((({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${hn.lastButton},& .${hn.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${hn.lastButton},& .${hn.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main)).flatMap((([t])=>[{props:{variant:"text",color:t},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,te.X4)(e.palette[t].main,.5)}}}])),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${hn.lastButton},& .${hn.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${hn.lastButton},& .${hn.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${hn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${hn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter((([,e])=>e&&e.dark)).map((([t])=>({props:{variant:"contained",color:t},style:{[`& .${hn.firstButton},& .${hn.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}})))],[`& .${hn.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}})))),fn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiButtonGroup"}),{children:r,className:i,color:a="primary",component:s="div",disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,disableRipple:f=!1,fullWidth:g=!1,orientation:m="horizontal",size:y="medium",variant:v="outlined",...b}=n,w={...n,color:a,component:s,disabled:u,disableElevation:d,disableFocusRipple:p,disableRipple:f,fullWidth:g,orientation:m,size:y,variant:v},x=(e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:o,orientation:a,variant:s}=e,l={root:["root",s,a,o&&"fullWidth",i&&"disableElevation",`color${(0,U.A)(n)}`],grouped:["grouped",`grouped${(0,U.A)(a)}`,`grouped${(0,U.A)(s)}`,`grouped${(0,U.A)(s)}${(0,U.A)(a)}`,`grouped${(0,U.A)(s)}${(0,U.A)(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,c.A)(l,dn,t)})(w),A=o.useMemo((()=>({className:x.grouped,color:a,disabled:u,disableElevation:d,disableFocusRipple:p,disableRipple:f,fullWidth:g,size:y,variant:v})),[a,u,d,p,f,g,y,v,x.grouped]),S=function(e){return o.Children.toArray(e).filter((e=>o.isValidElement(e)))}(r),C=S.length,E=e=>{const t=0===e,n=e===C-1;return t&&n?"":t?x.firstButton:n?x.lastButton:x.middleButton};return(0,k.jsx)(pn,{as:s,role:"group",className:(0,l.A)(x.root,i),ref:t,ownerState:w,...b,children:(0,k.jsx)(Ot.Provider,{value:A,children:S.map(((e,t)=>(0,k.jsx)(Pt.Provider,{value:E(t),children:e},t)))})})})),gn=fn;var mn=["children"];function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;tt.root})({overflow:"hidden"}),On=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCard"}),{className:r,raised:i=!1,...o}=n,a={...n,raised:i},s=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},Tn,t)})(a);return(0,k.jsx)(_n,{className:(0,l.A)(s.root,r),elevation:i?8:void 0,ref:t,ownerState:a,...o})}));var Pn=n(62785),In=n(71505);function Mn(e){return(0,S.Ay)("MuiCardHeader",e)}const Ln=(0,A.A)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),Rn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>({[`& .${Ln.title}`]:t.title,[`& .${Ln.subheader}`]:t.subheader,...t.root})})({display:"flex",alignItems:"center",padding:16}),jn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Fn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Dn=(0,u.Ay)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${Pn.A.root}:where(& .${Ln.title})`]:{display:"block"},[`.${Pn.A.root}:where(& .${Ln.subheader})`]:{display:"block"}}),Nn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardHeader"}),{action:r,avatar:i,className:o,component:a="div",disableTypography:s=!1,subheader:u,subheaderTypographyProps:d,title:p,titleTypographyProps:f,...g}=n,m={...n,component:a,disableTypography:s},y=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Mn,t)})(m);let v=p;null==v||v.type===In.A||s||(v=(0,k.jsx)(In.A,{variant:i?"body2":"h5",className:y.title,component:"span",...f,children:v}));let b=u;return null==b||b.type===In.A||s||(b=(0,k.jsx)(In.A,{variant:i?"body2":"body1",className:y.subheader,color:"textSecondary",component:"span",...d,children:b})),(0,k.jsxs)(Rn,{className:(0,l.A)(y.root,o),as:a,ref:t,ownerState:m,...g,children:[i&&(0,k.jsx)(jn,{className:y.avatar,ownerState:m,children:i}),(0,k.jsxs)(Dn,{className:y.content,ownerState:m,children:[v,b]}),r&&(0,k.jsx)(Fn,{className:y.action,ownerState:m,children:r})]})}));function Bn(e){return(0,S.Ay)("MuiCardContent",e)}(0,A.A)("MuiCardContent",["root"]);const zn=(0,u.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Vn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardContent"}),{className:r,component:i="div",...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},Bn,t)})(a);return(0,k.jsx)(zn,{as:i,className:(0,l.A)(s.root,r),ownerState:a,ref:t,...o})}));var $n=["title","contentCard"];function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),Yn=["video","audio","picture","iframe","img"],Kn=["picture","img"],Xn=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCardMedia"}),{children:r,className:i,component:o="div",image:a,src:s,style:u,...d}=n,p=Yn.includes(o),f=!p&&a?{backgroundImage:`url("${a}")`,...u}:u,g={...n,component:o,isMediaComponent:p,isImageComponent:Kn.includes(o)},m=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,c.A)(i,qn,t)})(g);return(0,k.jsx)(Hn,{className:(0,l.A)(m.root,i),as:o,role:!p&&a?"img":void 0,ref:t,style:f,ownerState:g,src:p?a||s:void 0,...d,children:r})})),Zn=Xn;var Jn=["sx","src","alt","click","keyDown"];function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){var t=e.sx,n=e.src,r=e.alt,i=e.click,o=e.keyDown,a=(0,Q.A)(e,Jn);return(0,k.jsx)(Zn,function(e){for(var t=1;t(0,kt.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,U.A)(n.size)}`],"default"!==n.color&&t[`color${(0,U.A)(n.color)}`]]}})((0,d.A)((({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,te.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{[`&.${ar.checked}, &.${ar.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${ar.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),lr=(0,k.jsx)(rr,{}),cr=(0,k.jsx)(nr,{}),ur=(0,k.jsx)(ir,{}),dr=o.forwardRef((function(e,t){const n=(0,h.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:r=lr,color:i="primary",icon:a=cr,indeterminate:s=!1,indeterminateIcon:u=ur,inputProps:d,size:p="medium",disableRipple:f=!1,className:g,...m}=n,y=s?u:a,v=s?u:r,b={...n,disableRipple:f,color:i,indeterminate:s,size:p},w=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${(0,U.A)(r)}`,`size${(0,U.A)(i)}`]},a=(0,c.A)(o,or,t);return{...t,...a}})(b);return(0,k.jsx)(sr,{type:"checkbox",inputProps:{"data-indeterminate":s,...d},icon:o.cloneElement(y,{fontSize:y.props.fontSize??p}),checkedIcon:o.cloneElement(v,{fontSize:v.props.fontSize??p}),ownerState:b,ref:t,className:(0,l.A)(w.root,g),...m,classes:w})}));function hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var pr=(0,o.forwardRef)((function(e,t){return(0,k.jsx)(dr,function(e){for(var t=1;t {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var isDevelopment = false;\n\n/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n return document.styleSheets[i];\n }\n } // this function should always return with a value\n // TS can't understand it though so we make it stop complaining here\n\n\n return undefined;\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n tag.setAttribute('data-s', '');\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n // Using Node instead of HTMLElement since container may be a ShadowRoot\n function StyleSheet(options) {\n var _this = this;\n\n this._insertTag = function (tag) {\n var before;\n\n if (_this.tags.length === 0) {\n if (_this.insertionPoint) {\n before = _this.insertionPoint.nextSibling;\n } else if (_this.prepend) {\n before = _this.container.firstChild;\n } else {\n before = _this.before;\n }\n } else {\n before = _this.tags[_this.tags.length - 1].nextSibling;\n }\n\n _this.container.insertBefore(tag, before);\n\n _this.tags.push(tag);\n };\n\n this.isSpeedy = options.speedy === undefined ? !isDevelopment : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.prepend = options.prepend;\n this.insertionPoint = options.insertionPoint;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.hydrate = function hydrate(nodes) {\n nodes.forEach(this._insertTag);\n };\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n this._insertTag(createStyleElement(this));\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n this.tags.forEach(function (tag) {\n var _tag$parentNode;\n\n return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\n","import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @return {object}\n */\nexport function comment (value, root, parent) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @return {object}\n */\nexport function declaration (value, root, parent, length) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)\n}\n","import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, stringify, rulesheet, middleware, compile } from 'stylis';\nimport '@emotion/weak-memoize';\nimport '@emotion/memoize';\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n var previous = 0;\n var character = 0;\n\n while (true) {\n previous = character;\n character = peek(); // &\\f\n\n if (previous === 38 && character === 12) {\n points[index] = 1;\n }\n\n if (token(character)) {\n break;\n }\n\n next();\n }\n\n return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n // pretend we've started with a comma\n var index = -1;\n var character = 44;\n\n do {\n switch (token(character)) {\n case 0:\n // &\\f\n if (character === 38 && peek() === 12) {\n // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n // and when it should just concatenate the outer and inner selectors\n // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n points[index] = 1;\n }\n\n parsed[index] += identifierWithPointTracking(position - 1, points, index);\n break;\n\n case 2:\n parsed[index] += delimit(character);\n break;\n\n case 4:\n // comma\n if (character === 44) {\n // colon\n parsed[++index] = peek() === 58 ? '&\\f' : '';\n points[index] = parsed[index].length;\n break;\n }\n\n // fallthrough\n\n default:\n parsed[index] += from(character);\n }\n } while (character = next());\n\n return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n element.length < 1) {\n return;\n }\n\n var value = element.value,\n parent = element.parent;\n var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n while (parent.type !== 'rule') {\n parent = parent.parent;\n if (!parent) return;\n } // short-circuit for the simplest case\n\n\n if (element.props.length === 1 && value.charCodeAt(0) !== 58\n /* colon */\n && !fixedElements.get(parent)) {\n return;\n } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n if (isImplicitRule) {\n return;\n }\n\n fixedElements.set(element, true);\n var points = [];\n var rules = getRules(value, points);\n var parentRules = parent.props;\n\n for (var i = 0, k = 0; i < rules.length; i++) {\n for (var j = 0; j < parentRules.length; j++, k++) {\n element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n }\n }\n};\nvar removeLabel = function removeLabel(element) {\n if (element.type === 'decl') {\n var value = element.value;\n\n if ( // charcode for l\n value.charCodeAt(0) === 108 && // charcode for b\n value.charCodeAt(2) === 98) {\n // this ignores label\n element[\"return\"] = '';\n element.value = '';\n }\n }\n};\n\n/* eslint-disable no-fallthrough */\n\nfunction prefix(value, length) {\n switch (hash(value, length)) {\n // color-adjust\n case 5103:\n return WEBKIT + 'print-' + value + value;\n // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return WEBKIT + value + value;\n // appearance, user-select, transform, hyphens, text-size-adjust\n\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return WEBKIT + value + MOZ + value + MS + value + value;\n // flex, flex-direction\n\n case 6828:\n case 4268:\n return WEBKIT + value + MS + value + value;\n // order\n\n case 6165:\n return WEBKIT + value + MS + 'flex-' + value + value;\n // align-items\n\n case 5187:\n return WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;\n // align-self\n\n case 5443:\n return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;\n // align-content\n\n case 4675:\n return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;\n // flex-shrink\n\n case 5548:\n return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;\n // flex-basis\n\n case 5292:\n return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;\n // flex-grow\n\n case 6060:\n return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;\n // transition\n\n case 4554:\n return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;\n // cursor\n\n case 6187:\n return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;\n // background, background-image\n\n case 5495:\n case 3959:\n return replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1');\n // justify-content\n\n case 4968:\n return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;\n // (margin|padding)-inline-(start|end)\n\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;\n // (min|max)?(width|height|inline-size|block-size)\n\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n // stretch, max-content, min-content, fill-available\n if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {\n // (m)ax-content, (m)in-content\n case 109:\n // -\n if (charat(value, length + 4) !== 45) break;\n // (f)ill-available, (f)it-content\n\n case 102:\n return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;\n // (s)tretch\n\n case 115:\n return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;\n }\n break;\n // position: sticky\n\n case 4949:\n // (s)ticky?\n if (charat(value, length + 1) !== 115) break;\n // display: (flex|inline-flex)\n\n case 6444:\n switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n // stic(k)y\n case 107:\n return replace(value, ':', ':' + WEBKIT) + value;\n // (inline-)?fl(e)x\n\n case 101:\n return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;\n }\n\n break;\n // writing-mode\n\n case 5936:\n switch (charat(value, length + 11)) {\n // vertical-l(r)\n case 114:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value;\n // vertical-r(l)\n\n case 108:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value;\n // horizontal(-)tb\n\n case 45:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value;\n }\n\n return WEBKIT + value + MS + value + value;\n }\n\n return value;\n}\n\nvar prefixer = function prefixer(element, index, children, callback) {\n if (element.length > -1) if (!element[\"return\"]) switch (element.type) {\n case DECLARATION:\n element[\"return\"] = prefix(element.value, element.length);\n break;\n\n case KEYFRAMES:\n return serialize([copy(element, {\n value: replace(element.value, '@', '@' + WEBKIT)\n })], callback);\n\n case RULESET:\n if (element.length) return combine(element.props, function (value) {\n switch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n // :read-(only|write)\n case ':read-only':\n case ':read-write':\n return serialize([copy(element, {\n props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]\n })], callback);\n // :placeholder\n\n case '::placeholder':\n return serialize([copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]\n })], callback);\n }\n\n return '';\n });\n }\n};\n\nvar defaultStylisPlugins = [prefixer];\n\nvar createCache = function\n /*: EmotionCache */\ncreateCache(options\n/*: Options */\n) {\n var key = options.key;\n\n if (key === 'css') {\n var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n // note this very very intentionally targets all style elements regardless of the key to ensure\n // that creating a cache works inside of render of a React component\n\n Array.prototype.forEach.call(ssrStyles, function (node\n /*: HTMLStyleElement */\n ) {\n // we want to only move elements which have a space in the data-emotion attribute value\n // because that indicates that it is an Emotion 11 server-side rendered style elements\n // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n // will not result in the Emotion 10 styles being destroyed\n var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n if (dataEmotionAttribute.indexOf(' ') === -1) {\n return;\n }\n\n document.head.appendChild(node);\n node.setAttribute('data-s', '');\n });\n }\n\n var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n var inserted = {};\n var container;\n /* : Node */\n\n var nodesToHydrate = [];\n\n {\n container = options.container || document.head;\n Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node\n /*: HTMLStyleElement */\n ) {\n var attrib = node.getAttribute(\"data-emotion\").split(' ');\n\n for (var i = 1; i < attrib.length; i++) {\n inserted[attrib[i]] = true;\n }\n\n nodesToHydrate.push(node);\n });\n }\n\n var _insert;\n /*: (\n selector: string,\n serialized: SerializedStyles,\n sheet: StyleSheet,\n shouldCache: boolean\n ) => string | void */\n\n\n var omnipresentPlugins = [compat, removeLabel];\n\n {\n var currentSheet;\n var finalizingPlugins = [stringify, rulesheet(function (rule) {\n currentSheet.insert(rule);\n })];\n var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n var stylis = function stylis(styles) {\n return serialize(compile(styles), serializer);\n };\n\n _insert = function\n /*: void */\n insert(selector\n /*: string */\n , serialized\n /*: SerializedStyles */\n , sheet\n /*: StyleSheet */\n , shouldCache\n /*: boolean */\n ) {\n currentSheet = sheet;\n\n stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n if (shouldCache) {\n cache.inserted[serialized.name] = true;\n }\n };\n }\n\n var cache\n /*: EmotionCache */\n = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy,\n prepend: options.prepend,\n insertionPoint: options.insertionPoint\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n cache.sheet.hydrate(nodesToHydrate);\n return cache;\n};\n\nexport { createCache as default };\n","import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar isDevelopment = false;\n\n/* import { type EmotionCache } from '@emotion/utils' */\nvar EmotionCacheContext\n/*: React.Context */\n= /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache()\n/*: EmotionCache | null*/\n{\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache\n/* > */\n(func\n/*: (props: Props, cache: EmotionCache, ref: Ref) => React.Node */\n)\n/*: React.AbstractComponent */\n{\n return /*#__PURE__*/forwardRef(function (props\n /*: Props */\n , ref\n /*: Ref */\n ) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\nvar useTheme = function useTheme() {\n return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme\n/*: Object */\n, theme\n/*: Object | (Object => Object) */\n) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n return mergedTheme;\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\n/*\ntype ThemeProviderProps = {\n theme: Object | (Object => Object),\n children: React.Node\n}\n*/\n\nvar ThemeProvider = function ThemeProvider(props\n/*: ThemeProviderProps */\n) {\n var theme = React.useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme\n/* */\n(Component\n/*: React.AbstractComponent */\n)\n/*: React.AbstractComponent<$Diff> */\n{\n var componentName = Component.displayName || Component.name || 'Component';\n\n var render = function render(props, ref) {\n var theme = React.useContext(ThemeContext);\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n };\n\n var WithTheme = /*#__PURE__*/React.forwardRef(render);\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar hasOwn = {}.hasOwnProperty;\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type\n/*: React.ElementType */\n, props\n/*: Object */\n) {\n\n var newProps\n /*: any */\n = {};\n\n for (var key in props) {\n if (hasOwn.call(props, key)) {\n newProps[key] = props[key];\n }\n }\n\n newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:\n\n return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(\n/* */\nfunction (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var WrappedComponent = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var key in props) {\n if (hasOwn.call(props, key) && key !== 'css' && key !== typePropName && (!isDevelopment )) {\n newProps[key] = props[key];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof WrappedComponent === 'string'\n }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwn as h, isDevelopment as i, useTheme as u, withEmotionCache as w };\n","import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext, i as isDevelopment } from './emotion-element-5486c51c.browser.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-5486c51c.browser.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport 'hoist-non-react-statics';\n\nvar jsx\n/*: typeof React.createElement */\n= function jsx\n/*: typeof React.createElement */\n(type\n/*: React.ElementType */\n, props\n/*: Object */\n) {\n var args = arguments;\n\n if (props == null || !hasOwn.call(props, 'css')) {\n return React.createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n }\n\n return React.createElement.apply(null, createElementArgArray);\n};\n\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global\n/*: React.AbstractComponent<\nGlobalProps\n> */\n= /* #__PURE__ */withEmotionCache(function (props\n/*: GlobalProps */\n, cache) {\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = React.useRef();\n useInsertionEffectWithLayoutFallback(function () {\n var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n var sheet = new cache.sheet.constructor({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false;\n var node\n /*: HTMLStyleElement | null*/\n = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useInsertionEffectWithLayoutFallback(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\n/* import type { Interpolation, SerializedStyles } from '@emotion/utils' */\n\nfunction css()\n/*: SerializedStyles */\n{\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\n/*\ntype Keyframes = {|\n name: string,\n styles: string,\n anim: 1,\n toString: () => string\n|} & string\n*/\n\nvar keyframes = function\n /*: Keyframes */\nkeyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name;\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n};\n\n/*\ntype ClassNameArg =\n | string\n | boolean\n | { [key: string]: boolean }\n | Array\n | null\n | void\n*/\n\nvar classnames = function\n /*: string */\nclassnames(args\n/*: Array */\n) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered\n/*: Object */\n, css\n/*: (...args: Array) => string */\n, className\n/*: string */\n) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serializedArr = _ref.serializedArr;\n useInsertionEffectAlwaysWithSyncFallback(function () {\n\n for (var i = 0; i < serializedArr.length; i++) {\n insertStyles(cache, serializedArr[i], false);\n }\n });\n\n return null;\n};\n/*\ntype Props = {\n children: ({\n css: (...args: any) => string,\n cx: (...args: Array) => string,\n theme: Object\n }) => React.Node\n} */\n\n\nvar ClassNames\n/*: React.AbstractComponent*/\n= /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n var serializedArr = [];\n\n var css = function css() {\n if (hasRendered && isDevelopment) {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n registerStyles(cache, serialized, false);\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && isDevelopment) {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: React.useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serializedArr: serializedArr\n }), ele);\n});\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n","var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = false;\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n var componentSelector = interpolation;\n\n if (componentSelector.__emotion_styles !== undefined) {\n\n return componentSelector;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n var keyframes = interpolation;\n\n if (keyframes.anim === 1) {\n cursor = {\n name: keyframes.name,\n styles: keyframes.styles,\n next: cursor\n };\n return keyframes.name;\n }\n\n var serializedStyles = interpolation;\n\n if (serializedStyles.styles !== undefined) {\n var next = serializedStyles.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = serializedStyles.styles + \";\";\n\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n }\n\n break;\n }\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n var asString = interpolation;\n\n if (registered == null) {\n return asString;\n }\n\n var cached = registered[asString];\n return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var key in obj) {\n var value = obj[key];\n\n if (typeof value !== 'object') {\n var asString = value;\n\n if (registered != null && registered[asString] !== undefined) {\n string += key + \"{\" + registered[asString] + \"}\";\n } else if (isProcessableValue(asString)) {\n string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n\n string += key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;\\n{]+)\\s*(;|$)/g;\n// keyframes are stored on the SerializedStyles object as a linked list\n\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n var asTemplateStringsArr = strings;\n\n styles += asTemplateStringsArr[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n var templateStringsArr = strings;\n\n styles += templateStringsArr[i];\n }\n }\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n}\n\nexport { serializeStyles };\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","import * as React from 'react';\n\nvar syncFallback = function syncFallback(create) {\n return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n","var isBrowser = true;\n\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (registered[className] !== undefined) {\n registeredStyles.push(registered[className] + \";\");\n } else {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n}\nvar registerStyles = function registerStyles(cache, serialized, isStringTag) {\n var className = cache.key + \"-\" + serialized.name;\n\n if ( // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (isStringTag === false || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n isBrowser === false ) && cache.registered[className] === undefined) {\n cache.registered[className] = serialized.styles;\n }\n};\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n registerStyles(cache, serialized, isStringTag);\n var className = cache.key + \"-\" + serialized.name;\n\n if (cache.inserted[serialized.name] === undefined) {\n var current = serialized;\n\n do {\n cache.insert(serialized === current ? \".\" + className : '', current, cache.sheet, true);\n\n current = current.next;\n } while (current !== undefined);\n }\n};\n\nexport { getRegisteredStyles, insertStyles, registerStyles };\n","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome,
,